@synerise/ds-menu 0.21.8 → 0.21.10

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,22 @@
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.21.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@0.21.9...@synerise/ds-menu@0.21.10) (2025-03-10)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-menu
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.21.9](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@0.21.8...@synerise/ds-menu@0.21.9) (2025-03-04)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-menu
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.21.8](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@0.21.7...@synerise/ds-menu@0.21.8) (2025-02-27)
7
23
 
8
24
 
@@ -10,23 +10,23 @@ import { PrefixelWrapper } from '../Item/Text/Text.styles';
10
10
  var NOOP = function NOOP() {};
11
11
  export var ArrowRight = styled.div.withConfig({
12
12
  displayName: "Breadcrumbstyles__ArrowRight",
13
- componentId: "gvmxah-0"
13
+ componentId: "sc-gvmxah-0"
14
14
  })(["transition:opacity 0.3s ease-in-out;opacity:", ";svg{transition:fill 0.3s ease-in-out;}"], function (props) {
15
15
  return props.visible ? '1' : '0';
16
16
  });
17
17
  export var BreadcrumbContent = styled.div.withConfig({
18
18
  displayName: "Breadcrumbstyles__BreadcrumbContent",
19
- componentId: "gvmxah-1"
19
+ componentId: "sc-gvmxah-1"
20
20
  })(["display:flex;"]);
21
21
  export var Description = styled.div.withConfig({
22
22
  displayName: "Breadcrumbstyles__Description",
23
- componentId: "gvmxah-2"
23
+ componentId: "sc-gvmxah-2"
24
24
  })(["direction:ltr;width:100%;font-weight:400;color:", ";.search-highlight{font-weight:500;}text-overflow:ellipsis;overflow:hidden;"], function (props) {
25
25
  return props.theme.palette['grey-600'];
26
26
  });
27
27
  export var ContentWrapper = styled.div.withConfig({
28
28
  displayName: "Breadcrumbstyles__ContentWrapper",
29
- componentId: "gvmxah-3"
29
+ componentId: "sc-gvmxah-3"
30
30
  })(["position:relative;&::before{pointer-events:none;content:", ";position:absolute;display:block;width:50px;height:18px;transition:opacity 0.3s ease-in-out;background-image:", ";}&::after{pointer-events:none;content:", ";position:absolute;left:0;top:0;display:block;width:50px;height:18px;transition:opacity 0.3s ease-in-out;background-image:", ";}"], function (props) {
31
31
  return props.gradientOverlap ? "''" : 'none';
32
32
  }, function (props) {
@@ -38,7 +38,7 @@ export var ContentWrapper = styled.div.withConfig({
38
38
  });
39
39
  export var BreadcrumbName = styled.div.withConfig({
40
40
  displayName: "Breadcrumbstyles__BreadcrumbName",
41
- componentId: "gvmxah-4"
41
+ componentId: "sc-gvmxah-4"
42
42
  })(["direction:ltr;font-weight:400;transition:color 0.3s ease-in-out;color:", ";.search-highlight{font-weight:500;}"], function (props) {
43
43
  return props.theme.palette['grey-600'];
44
44
  });
@@ -57,7 +57,7 @@ export var Breadcrumb = styled(function (_ref) {
57
57
  }, rest), children);
58
58
  }).withConfig({
59
59
  displayName: "Breadcrumbstyles__Breadcrumb",
60
- componentId: "gvmxah-5"
60
+ componentId: "sc-gvmxah-5"
61
61
  })(["min-height:50px;", "{direction:", ";flex-wrap:", ";}&:hover{", " > .ds-icon > svg{fill:", ";}", ",", "{color:", ";}", "::after{opacity:0;}", "::before{opacity:0;}}&:focus:active{", "::before{background-image:", ";}}", ""], BreadcrumbContent, function (props) {
62
62
  return props.compact ? 'rtl' : 'ltr';
63
63
  }, function (props) {
@@ -73,5 +73,5 @@ export var Breadcrumb = styled(function (_ref) {
73
73
  });
74
74
  export var BreadcrumbRoute = styled.div.withConfig({
75
75
  displayName: "Breadcrumbstyles__BreadcrumbRoute",
76
- componentId: "gvmxah-6"
76
+ componentId: "sc-gvmxah-6"
77
77
  })(["display:flex;padding-top:height:18px;.active{font-weight:500;}"]);
@@ -1,13 +1,13 @@
1
1
  import styled from 'styled-components';
2
2
  export var MenuHeader = styled.div.withConfig({
3
3
  displayName: "Headerstyles__MenuHeader",
4
- componentId: "xecv8y-0"
4
+ componentId: "sc-xecv8y-0"
5
5
  })(["display:flex;align-items:center;font-size:10px;font-weight:500;text-transform:uppercase;color:", ";height:16px;margin:12px;line-height:1.6;letter-spacing:0.1px;"], function (props) {
6
6
  return props.theme.palette['grey-500'];
7
7
  });
8
8
  export var HeaderIconWrapper = styled.div.withConfig({
9
9
  displayName: "Headerstyles__HeaderIconWrapper",
10
- componentId: "xecv8y-1"
10
+ componentId: "sc-xecv8y-1"
11
11
  })(["& > .ds-icon > svg{fill:", ";}"], function (props) {
12
12
  return props.theme.palette['grey-400'];
13
13
  });
@@ -20,7 +20,7 @@ export var SelectItem = styled(function (_ref) {
20
20
  );
21
21
  }).withConfig({
22
22
  displayName: "Selectstyles__SelectItem",
23
- componentId: "h6ad3-0"
23
+ componentId: "sc-h6ad3-0"
24
24
  })(["&{", " > *{filter:opacity(0);transition:filter 0.3s ease-in-out,color 0.3s ease-in-out;}}&:hover,&:focus{", " > *{filter:opacity(100%);color:", ";}}"], SuffixWraper, SuffixWraper, function (props) {
25
25
  return props.theme.palette['blue-600'];
26
26
  });
@@ -10,7 +10,7 @@ import Text from '../Text/Text';
10
10
  var NOOP = function NOOP() {};
11
11
  export var SubtitleItemWrapper = styled.ul.withConfig({
12
12
  displayName: "SubmenuTextstyles__SubtitleItemWrapper",
13
- componentId: "dxm3s9-0"
13
+ componentId: "sc-dxm3s9-0"
14
14
  })(["display:flex;flex:1;"]);
15
15
 
16
16
  // eslint-disable-next-line import/prefer-default-export
@@ -30,7 +30,7 @@ export var SubmenuText = styled(function (_ref) {
30
30
  );
31
31
  }).withConfig({
32
32
  displayName: "SubmenuTextstyles__SubmenuText",
33
- componentId: "dxm3s9-1"
33
+ componentId: "sc-dxm3s9-1"
34
34
  })(["&&&{padding:0;&:focus:active{background-color:", ";}display:flex;flex:1;}&{", "{padding:0;}}"], function (props) {
35
35
  return props.theme.palette['grey-050'];
36
36
  }, ContentWrapper);
@@ -16,19 +16,19 @@ var visibleElementStyle = function visibleElementStyle() {
16
16
  };
17
17
  export var ArrowRight = styled.div.withConfig({
18
18
  displayName: "Textstyles__ArrowRight",
19
- componentId: "dgb761-0"
19
+ componentId: "sc-dgb761-0"
20
20
  })(["transition:all ", ";opacity:", ";"], TRANSITION_FN, function (props) {
21
21
  return props.disabled ? '1' : '0';
22
22
  });
23
23
  export var Inner = styled.div.withConfig({
24
24
  displayName: "Textstyles__Inner",
25
- componentId: "dgb761-1"
25
+ componentId: "sc-dgb761-1"
26
26
  })(["padding-left:", ";width:100%;display:flex;"], function (props) {
27
27
  return calculateIndent(props.indentLevel) + "px";
28
28
  });
29
29
  export var PrefixelWrapper = styled.div.withConfig({
30
30
  displayName: "Textstyles__PrefixelWrapper",
31
- componentId: "dgb761-2"
31
+ componentId: "sc-dgb761-2"
32
32
  })(["display:flex;", ";transition:opacity ", ";margin-top:-7px;margin-bottom:-7px;margin-left:-4px;margin-right:12px;align-items:center;", ""], function (props) {
33
33
  return props.visible ? visibleElementStyle() : hiddenElementStyle();
34
34
  }, TRANSITION_FN, function (props) {
@@ -48,7 +48,7 @@ var applySizeStyles = function applySizeStyles(props) {
48
48
  };
49
49
  export var Wrapper = styled(MenuItem).withConfig({
50
50
  displayName: "Textstyles__Wrapper",
51
- componentId: "dgb761-3"
51
+ componentId: "sc-dgb761-3"
52
52
  })(["&&&{", " ", " ", ";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:", ";}}", "}}"], function (props) {
53
53
  return !props.description && props.size === ItemSize.DEFAULT && "max-height: 32px;";
54
54
  }, function (props) {
@@ -106,19 +106,19 @@ export var Wrapper = styled(MenuItem).withConfig({
106
106
  });
107
107
  export var Content = styled.div.withConfig({
108
108
  displayName: "Textstyles__Content",
109
- componentId: "dgb761-4"
109
+ componentId: "sc-dgb761-4"
110
110
  })(["text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:13px;line-height:1.39;min-height:18px;align-items:center;flex-wrap:wrap;user-select:none;", ""], function (props) {
111
111
  return !!props.highlight && "\n font-weight:400;\n & > .search-highlight{\n font-weight:600;\n }\n ";
112
112
  });
113
113
  export var Description = styled.div.withConfig({
114
114
  displayName: "Textstyles__Description",
115
- componentId: "dgb761-5"
115
+ componentId: "sc-dgb761-5"
116
116
  })(["text-overflow:ellipsis;overflow:hidden;color:", ";font-weight:normal;line-height:1.39;font-size:13px;width:100%;"], function (props) {
117
117
  return props.theme.palette['grey-600'];
118
118
  });
119
119
  export var SuffixWraper = styled.div.withConfig({
120
120
  displayName: "Textstyles__SuffixWraper",
121
- componentId: "dgb761-6"
121
+ componentId: "sc-dgb761-6"
122
122
  })(["justify-content:flex-end;display:flex;transition:opacity ", ";", ";", ";svg{margin-right:-4px;}"], TRANSITION_FN, function (props) {
123
123
  return props.visible ? visibleElementStyle() : hiddenElementStyle();
124
124
  }, function (props) {
@@ -126,9 +126,9 @@ export var SuffixWraper = styled.div.withConfig({
126
126
  });
127
127
  export var ContentWrapper = styled.div.withConfig({
128
128
  displayName: "Textstyles__ContentWrapper",
129
- componentId: "dgb761-7"
129
+ componentId: "sc-dgb761-7"
130
130
  })(["padding:7px 0;width:100%;display:flex;align-items:center;flex-wrap:nowrap;user-select:none;"]);
131
131
  export var ContentDivider = styled.div.withConfig({
132
132
  displayName: "Textstyles__ContentDivider",
133
- componentId: "dgb761-8"
133
+ componentId: "sc-dgb761-8"
134
134
  })(["flex:1;"]);
@@ -11,6 +11,7 @@ import * as S from '../../Menu.styles';
11
11
  import MenuItem from '../Item/MenuItem';
12
12
  import SubmenuText from '../Item/SubmenuText/SubmenuText';
13
13
  var SubMenuItem = /*#__PURE__*/function (_React$PureComponent) {
14
+ _inheritsLoose(SubMenuItem, _React$PureComponent);
14
15
  function SubMenuItem(props) {
15
16
  var _this;
16
17
  _this = _React$PureComponent.call(this, props) || this;
@@ -20,7 +21,6 @@ var SubMenuItem = /*#__PURE__*/function (_React$PureComponent) {
20
21
  };
21
22
  return _this;
22
23
  }
23
- _inheritsLoose(SubMenuItem, _React$PureComponent);
24
24
  var _proto = SubMenuItem.prototype;
25
25
  _proto.render = function render() {
26
26
  var _this$props = this.props,
package/dist/Menu.js CHANGED
@@ -16,6 +16,7 @@ import MenuItem from './Elements/Item/MenuItem';
16
16
  import Breadcrumb from './Elements/Breadcrumb/Breadcrumb';
17
17
  import Header from './Elements/Header/Header';
18
18
  export var Menu = /*#__PURE__*/function (_Component) {
19
+ _inheritsLoose(Menu, _Component);
19
20
  function Menu() {
20
21
  var _this;
21
22
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -27,7 +28,6 @@ export var Menu = /*#__PURE__*/function (_Component) {
27
28
  };
28
29
  return _this;
29
30
  }
30
- _inheritsLoose(Menu, _Component);
31
31
  var _proto = Menu.prototype;
32
32
  _proto.toggleItems = function toggleItems() {
33
33
  var allItemsVisible = this.state.allItemsVisible;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-menu",
3
- "version": "0.21.8",
3
+ "version": "0.21.10",
4
4
  "description": "Menu UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -21,7 +21,7 @@
21
21
  "build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
22
22
  "build:watch": "npm run build:js -- --watch",
23
23
  "defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
24
- "pack:ci": "npm pack --pack-destination ../../portal/storybook-static/static",
24
+ "pack:ci": "npm pack --pack-destination ../../storybook/storybook-static/static",
25
25
  "prepublish": "npm run build",
26
26
  "test": "jest",
27
27
  "test:watch": "npm run test -- --watchAll",
@@ -34,10 +34,10 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-button": "^0.23.2",
38
- "@synerise/ds-icon": "^0.71.2",
39
- "@synerise/ds-tooltip": "^0.16.1",
40
- "@synerise/ds-utils": "^0.32.2",
37
+ "@synerise/ds-button": "^0.23.4",
38
+ "@synerise/ds-icon": "^0.72.1",
39
+ "@synerise/ds-tooltip": "^0.16.3",
40
+ "@synerise/ds-utils": "^0.32.3",
41
41
  "classnames": "2.3.2",
42
42
  "copy-to-clipboard": "^3.3.1",
43
43
  "rc-menu": "~9.6.3",
@@ -50,5 +50,5 @@
50
50
  "react": ">=16.9.0 <= 18.3.1",
51
51
  "styled-components": "^5.3.3"
52
52
  },
53
- "gitHead": "7b1edcd256eb34848761e3649a8c21a411966a98"
53
+ "gitHead": "a176b46dab123cd503247ae57022f8e808772d68"
54
54
  }