@synerise/ds-menu 1.4.20 → 1.4.21
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,12 @@
|
|
|
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
|
+
## [1.4.21](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@1.4.20...@synerise/ds-menu@1.4.21) (2026-05-04)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- add exports field to all component packages for correct ESM detection ([6eccfde](https://github.com/Synerise/synerise-design/commit/6eccfde8f2dd73c59860793231fbd7bcd61813b4))
|
|
11
|
+
|
|
6
12
|
## [1.4.20](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@1.4.19...@synerise/ds-menu@1.4.20) (2026-04-29)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @synerise/ds-menu
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as MenuItem } from 'antd/lib/menu/MenuItem';
|
|
2
1
|
import { default as React } from 'react';
|
|
3
2
|
type WrapperProps = {
|
|
4
3
|
disabled?: boolean;
|
|
@@ -20,7 +19,7 @@ export declare const PrefixelWrapper: import('styled-components').StyledComponen
|
|
|
20
19
|
disabled?: boolean;
|
|
21
20
|
visible?: boolean;
|
|
22
21
|
}, never>;
|
|
23
|
-
export declare const Wrapper: import('styled-components').StyledComponent<typeof MenuItem, any, WrapperProps, never>;
|
|
22
|
+
export declare const Wrapper: import('styled-components').StyledComponent<typeof import('antd/lib/menu/MenuItem').default, any, WrapperProps, never>;
|
|
24
23
|
export declare const Content: import('styled-components').StyledComponent<"div", any, {
|
|
25
24
|
highlight?: boolean;
|
|
26
25
|
}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Menu } from "antd";
|
|
2
2
|
import styled, { css } from "styled-components";
|
|
3
3
|
import { IconContainer } from "@synerise/ds-icon";
|
|
4
4
|
import { ItemSize } from "../../../Menu.types.js";
|
|
@@ -32,10 +32,10 @@ const applySizeStyles = (props) => {
|
|
|
32
32
|
}
|
|
33
33
|
return css([""]);
|
|
34
34
|
};
|
|
35
|
-
const Wrapper = /* @__PURE__ */ styled(
|
|
35
|
+
const Wrapper = /* @__PURE__ */ styled(Menu.Item).withConfig({
|
|
36
36
|
displayName: "Textstyles__Wrapper",
|
|
37
37
|
componentId: "sc-dgb761-3"
|
|
38
|
-
})(["&&&{", " ", " ", ";color:", ";opacity:", ";cursor:", ";padding-right:12px;font-weight:500;border-radius:3px;display:flex;align-items:center;margin:0;transition:background-color ", ";padding-left:12px;", " ", " > .-title-content,> .ant-menu-title-content{display:flex;flex-grow:1;max-width:100%;}&.ant-menu-item-only-child,&.-item-only-child{margin-bottom:0px;}&.ant-menu-item-selected,&.-item-selected{background:", ";color:", ";.ds-menu-prefix > .ds-icon > svg{fill:", ";}&::before{color:", ";}&:focus,&:active{background:", ";&::before{color:", ";}}&::after{content:none;}}&.ant-menu-item-disabled,&.-item-disabled,&.ant-menu-submenu-disabled,&.-submenu-disabled{color:", " !important;}& .ds-menu-prefix > * > .ant-avatar::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:", ";opacity:0.05;border-radius:inherit;}& .ds-checkbox{padding:0px;}& .ds-checkbox > .ant-checkbox-wrapper{padding:0px;}& .ds-tag{margin:0;}&:focus:not(:active){box-shadow:", ";color:", ";background:", ";", " > .ds-icon > svg{fill:", ";}}", " &:active{&&{background:", ";}}&{.ds-icon{height:18px;display:flex;align-items:center;}}", " > .ds-icon > svg{", "}&:focus{color:", ";", "{opacity:1;svg{fill:", ";}}}&:hover{& .ds-menu-prefix > * > .ant-avatar::before,.ds-menu-prefix > .ant-badge::before,.ds-menu-prefix > .ant-avatar::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent;opacity:0.3;border-radius:inherit;box-sizing:border-box;}& .ds-menu-prefix > * > .ant-avatar::after,.ds-menu-prefix > .ant-badge::after,.ds-menu-prefix > .ant-avatar::after{opacity:0.1;}", "{opacity:1;svg{fill:", ";}}", "}}"], (props) => !props.description && props.size === ItemSize.DEFAULT && `max-height: 32px;`, (props) => props.size === ItemSize.LARGE && `min-height: 50px;`, (props) => props.ordered ? "" : disableOrdering(), (props) => props.theme.palette["grey-700"], (props) => props.disabled ? "0.4" : "1", (props) => props.disabled ? "not-allowed" : "pointer", TRANSITION_FN, (props) => props.disabled ? `
|
|
38
|
+
})(["&&&{", " ", " ", ";color:", ";opacity:", ";cursor:", ";padding-right:12px;font-weight:500;border-radius:3px;display:flex;align-items:center;margin:0;transition:background-color ", ";padding-left:12px;", " ", " > .-title-content,> .ant-menu-title-content{display:flex;flex-grow:1;max-width:100%;overflow:visible;}&.ant-menu-item-only-child,&.-item-only-child{margin-bottom:0px;}&.ant-menu-item-selected,&.-item-selected{background:", ";color:", ";.ds-menu-prefix > .ds-icon > svg{fill:", ";}&::before{color:", ";}&:focus,&:active{background:", ";&::before{color:", ";}}&::after{content:none;}}&.ant-menu-item-disabled,&.-item-disabled,&.ant-menu-submenu-disabled,&.-submenu-disabled{color:", " !important;}& .ds-menu-prefix > * > .ant-avatar::after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:", ";opacity:0.05;border-radius:inherit;}& .ds-checkbox{padding:0px;}& .ds-checkbox > .ant-checkbox-wrapper{padding:0px;}& .ds-tag{margin:0;}&:focus:not(:active){box-shadow:", ";color:", ";background:", ";", " > .ds-icon > svg{fill:", ";}}", " &:active{&&{background:", ";}}&{.ds-icon{height:18px;display:flex;align-items:center;}}", " > .ds-icon > svg{", "}&:focus{color:", ";", "{opacity:1;svg{fill:", ";}}}&:hover{& .ds-menu-prefix > * > .ant-avatar::before,.ds-menu-prefix > .ant-badge::before,.ds-menu-prefix > .ant-avatar::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent;opacity:0.3;border-radius:inherit;box-sizing:border-box;}& .ds-menu-prefix > * > .ant-avatar::after,.ds-menu-prefix > .ant-badge::after,.ds-menu-prefix > .ant-avatar::after{opacity:0.1;}", "{opacity:1;svg{fill:", ";}}", "}}"], (props) => !props.description && props.size === ItemSize.DEFAULT && `max-height: 32px;`, (props) => props.size === ItemSize.LARGE && `min-height: 50px;`, (props) => props.ordered ? "" : disableOrdering(), (props) => props.theme.palette["grey-700"], (props) => props.disabled ? "0.4" : "1", (props) => props.disabled ? "not-allowed" : "pointer", TRANSITION_FN, (props) => props.disabled ? `
|
|
39
39
|
& > :active {
|
|
40
40
|
pointer-events: none
|
|
41
41
|
}` : "", (props) => props.size && applySizeStyles(props), (props) => props.theme.palette["blue-050"], (props) => props.theme.palette["blue-600"], (props) => props.theme.palette["blue-600"], (props) => props.theme.palette["blue-600"], (props) => props.theme.palette["grey-050"], (props) => props.theme.palette["grey-600"], (props) => props.theme.palette["grey-600"], (props) => props.theme.palette["grey-800"], (props) => !props.disabled && `inset 0 0 0 2px ${props.theme.palette["blue-600"]} `, (props) => props.theme.palette["grey-700"], (props) => props.description ? props.theme.palette.white : props.theme.palette["grey-050"], PrefixelWrapper, (props) => props.theme.palette["grey-700"], (props) => !props.disabled && css(["&:focus:active,&:active{background:", ";&&{color:", ";.ds-menu-prefix{", " > svg{fill:", ";}}}}"], props.theme.palette["grey-100"], props.theme.palette["blue-600"], IconContainer, props.theme.palette["blue-600"]), (props) => props.theme.palette["blue-050"], PrefixelWrapper, (props) => !props.disabled && `
|
package/dist/Menu.types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-menu",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.21",
|
|
4
4
|
"description": "Menu UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./dist/*.js": "./dist/*.js",
|
|
15
|
+
"./dist/*": "./dist/*.js"
|
|
16
|
+
},
|
|
8
17
|
"files": [
|
|
9
18
|
"/dist",
|
|
10
19
|
"CHANGELOG.md",
|
|
@@ -32,12 +41,12 @@
|
|
|
32
41
|
],
|
|
33
42
|
"types": "dist/index.d.ts",
|
|
34
43
|
"dependencies": {
|
|
35
|
-
"@synerise/ds-button": "^1.5.
|
|
36
|
-
"@synerise/ds-divider": "^1.3.
|
|
37
|
-
"@synerise/ds-icon": "^1.17.
|
|
38
|
-
"@synerise/ds-popover": "^1.5.
|
|
39
|
-
"@synerise/ds-tooltip": "^1.4.
|
|
40
|
-
"@synerise/ds-utils": "^1.8.
|
|
44
|
+
"@synerise/ds-button": "^1.5.26",
|
|
45
|
+
"@synerise/ds-divider": "^1.3.10",
|
|
46
|
+
"@synerise/ds-icon": "^1.17.3",
|
|
47
|
+
"@synerise/ds-popover": "^1.5.5",
|
|
48
|
+
"@synerise/ds-tooltip": "^1.4.18",
|
|
49
|
+
"@synerise/ds-utils": "^1.8.1",
|
|
41
50
|
"classnames": "^2.5.1",
|
|
42
51
|
"rc-menu": "~9.6.3",
|
|
43
52
|
"react-intl": "^6.8.7",
|
|
@@ -54,5 +63,5 @@
|
|
|
54
63
|
"styled-components": "^5.3.3",
|
|
55
64
|
"vitest": "4"
|
|
56
65
|
},
|
|
57
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "c5eee882509cbeb4544cb45939620881b829d4d9"
|
|
58
67
|
}
|