@synerise/ds-menu 0.18.23 → 0.19.1

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,28 @@
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.19.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@0.19.0...@synerise/ds-menu@0.19.1) (2024-06-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **menu:** fix focus and active state ([0d09b8e](https://github.com/Synerise/synerise-design/commit/0d09b8eed10cef19562646e3ec68a18f31bae644))
12
+
13
+
14
+
15
+
16
+
17
+ # [0.19.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@0.18.23...@synerise/ds-menu@0.19.0) (2024-05-29)
18
+
19
+
20
+ ### Features
21
+
22
+ * **list-item:** added prefix, suffix, ordered props ([3927035](https://github.com/Synerise/synerise-design/commit/39270352b6a681f3ac402edb6c2fb7a245883304))
23
+
24
+
25
+
26
+
27
+
6
28
  ## [0.18.23](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@0.18.22...@synerise/ds-menu@0.18.23) (2024-05-16)
7
29
 
8
30
  **Note:** Version bump only for package @synerise/ds-menu
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { FlattenSimpleInterpolation } from 'styled-components';
2
3
  import { ThemeProps } from '@synerise/ds-core';
3
4
  export declare const ArrowRight: import("styled-components").StyledComponent<"div", any, {
@@ -14,5 +15,5 @@ export declare const BreadcrumbName: import("styled-components").StyledComponent
14
15
  export declare const disableDefaultClickingStyles: (props: ThemeProps & {
15
16
  disabled?: boolean;
16
17
  }) => FlattenSimpleInterpolation;
17
- export declare const Breadcrumb: import("styled-components").StyledComponent<({ children, disabled, onPathClick, compact, ...rest }: any) => JSX.Element, any, {}, never>;
18
+ export declare const Breadcrumb: import("styled-components").StyledComponent<({ children, disabled, onPathClick, compact, ...rest }: any) => React.JSX.Element, any, {}, never>;
18
19
  export declare const BreadcrumbRoute: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -4,8 +4,8 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
4
4
 
5
5
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
6
 
7
+ import React from 'react';
7
8
  import styled, { css } from 'styled-components';
8
- import * as React from 'react';
9
9
  import Text from '../Item/Text/Text';
10
10
  import { PrefixelWrapper } from '../Item/Text/Text.styles'; // eslint-disable-next-line @typescript-eslint/no-empty-function
11
11
 
@@ -1 +1,2 @@
1
- export declare const DangerItem: import("styled-components").StyledComponent<({ children, disabled, ...rest }: any) => JSX.Element, any, {}, never>;
1
+ import * as React from 'react';
2
+ export declare const DangerItem: import("styled-components").StyledComponent<({ children, disabled, ...rest }: any) => React.JSX.Element, any, {}, never>;
@@ -1 +1,2 @@
1
- export declare const SelectItem: import("styled-components").StyledComponent<({ children, disabled, ...rest }: any) => JSX.Element, any, {}, never>;
1
+ import * as React from 'react';
2
+ export declare const SelectItem: import("styled-components").StyledComponent<({ children, disabled, ...rest }: any) => React.JSX.Element, any, {}, never>;
@@ -1,2 +1,3 @@
1
+ import * as React from 'react';
1
2
  export declare const SubtitleItemWrapper: import("styled-components").StyledComponent<"ul", any, {}, never>;
2
- export declare const SubmenuText: import("styled-components").StyledComponent<({ children, disabled, childrenCollapsed, ...rest }: any) => JSX.Element, any, {}, never>;
3
+ export declare const SubmenuText: import("styled-components").StyledComponent<({ children, disabled, childrenCollapsed, ...rest }: any) => React.JSX.Element, any, {}, never>;
@@ -23,11 +23,19 @@ export var MenuDivider = styled.div.withConfig({
23
23
  export var AntdMenu = styled(Menu).withConfig({
24
24
  displayName: "Menustyles__AntdMenu",
25
25
  componentId: "sc-10eu0qe-1"
26
- })(["", " ", " > li{> .ant-menu-submenu-title{padding-left:12px !important;}&:not(.ant-menu-submenu){padding-left:12px !important;}}.ant-menu-submenu-title{display:flex;", " .ds-submenu-title-wrapper{", " .ds-submenu-title{padding-top:5px;padding-bottom:5px;", "}}}&&{.ant-menu-submenu-open{.ant-menu-inline,.ant-menu-vertical,.ant-menu-vertical-left{border-right-width:0px;margin:8px 0 8px 0;}}}", ""], function (props) {
26
+ })(["", " ", " > li{> .ant-menu-submenu-title{padding-left:12px !important;}&:not(.ant-menu-submenu){padding-left:12px !important;}}.ant-menu-submenu-title{display:flex;", " .ds-submenu-title-wrapper{", " .ds-submenu-title{padding-top:5px;padding-bottom:5px;", "}}}&&& .ant-menu-item-selected{&:focus:not(:active){color:", ";background:", ";box-shadow:inset 0 0 0 2px ", ";&::before{color:", ";}}}&&{.ant-menu-submenu-open{.ant-menu-inline,.ant-menu-vertical,.ant-menu-vertical-left{border-right-width:0px;margin:8px 0 8px 0;}}}", ""], function (props) {
27
27
  return Boolean(props.asDropdownMenu) && !props.asInfoCardContainer && css(["&&{padding:8px;width:194px;"]);
28
28
  }, function (props) {
29
29
  return !!props.ordered && css(["&,ul{counter-reset:custom-counter;li:not(.ds-submenu-title){counter-increment:custom-counter;&::before{content:'0' counter(custom-counter) '. \\a0';line-height:1.39;font-weight:normal;color:", ";}}li.ant-menu-submenu{&::before{content:'';}}}"], props.theme.palette['grey-500']);
30
30
  }, overflowStyles, overflowStyles, overflowStyles, function (props) {
31
+ return props.theme.palette['blue-600'];
32
+ }, function (props) {
33
+ return props.theme.palette['blue-050'];
34
+ }, function (props) {
35
+ return props.theme.palette['blue-600'];
36
+ }, function (props) {
37
+ return props.theme.palette['blue-600'];
38
+ }, function (props) {
31
39
  return Boolean(props.asInfoCardContainer) && css(["&&& li.ds-menu-item{padding:0 !important;}"]);
32
40
  });
33
41
  export var SubMenuItem = styled(Menu.SubMenu).withConfig({
@@ -48,9 +56,9 @@ export var SubMenuItem = styled(Menu.SubMenu).withConfig({
48
56
  }, function (props) {
49
57
  return !!props.ordered && css(["&::before{content:'0' counter(custom-counter) '. \\a0';line-height:1.39;font-weight:normal;color:", ";}"], props.theme.palette['grey-500']);
50
58
  }, function (props) {
51
- return props.theme.palette['grey-050'];
59
+ return props.theme.palette['blue-050'];
52
60
  }, function (props) {
53
- return props.theme.palette['grey-600'];
61
+ return props.theme.palette['blue-600'];
54
62
  }, function (props) {
55
63
  return props.theme.palette['blue-600'];
56
64
  }, function (props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-menu",
3
- "version": "0.18.23",
3
+ "version": "0.19.1",
4
4
  "description": "Menu UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -33,9 +33,9 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-icon": "^0.61.0",
37
- "@synerise/ds-tooltip": "^0.14.28",
38
- "@synerise/ds-utils": "^0.26.6",
36
+ "@synerise/ds-icon": "^0.62.0",
37
+ "@synerise/ds-tooltip": "^0.14.29",
38
+ "@synerise/ds-utils": "^0.27.0",
39
39
  "classnames": "2.3.2",
40
40
  "copy-to-clipboard": "^3.3.1",
41
41
  "rc-menu": "8.10.7",
@@ -52,5 +52,5 @@
52
52
  "@testing-library/jest-dom": "5.1.1",
53
53
  "@testing-library/react": "10.0.1"
54
54
  },
55
- "gitHead": "fc089bbf34c691a313b3fa648851d7831a23e3d0"
55
+ "gitHead": "81acd8bf6b5fb04a22647e43d2c9289dcceb61a2"
56
56
  }