@synerise/ds-menu 0.17.18 → 0.17.20

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,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.17.20](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@0.17.19...@synerise/ds-menu@0.17.20) (2023-10-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **scrollbar:** fixed toggling rail visibility on resize ([8df2258](https://github.com/Synerise/synerise-design/commit/8df2258d9f9ae8837510f4ddd6786c3018bdf96a))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.17.19](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@0.17.18...@synerise/ds-menu@0.17.19) (2023-09-26)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-menu
20
+
21
+
22
+
23
+
24
+
6
25
  ## [0.17.18](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@0.17.17...@synerise/ds-menu@0.17.18) (2023-09-21)
7
26
 
8
27
 
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FlattenSimpleInterpolation } from 'styled-components';
3
2
  import { ThemeProps } from '@synerise/ds-core';
4
3
  export declare const ArrowRight: import("styled-components").StyledComponent<"div", any, {
@@ -1,4 +1,4 @@
1
- export declare type HeaderProps = {
1
+ export type HeaderProps = {
2
2
  headerText: string;
3
3
  tooltip?: string;
4
4
  };
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const DangerItem: import("styled-components").StyledComponent<({ children, disabled, ...rest }: any) => JSX.Element, any, {}, never>;
@@ -14,7 +14,7 @@ export declare enum ItemSize {
14
14
  DEFAULT = "default",
15
15
  LARGE = "large"
16
16
  }
17
- export declare type TriggerHandle = React.Component<TriggerProps> & {
17
+ export type TriggerHandle = React.Component<TriggerProps> & {
18
18
  getPopupDomNode: () => HTMLElement;
19
19
  };
20
20
  export interface MenuItemProps extends Omit<MenuProps, 'dataSource' | 'footer'> {
@@ -1,2 +1 @@
1
- /// <reference types="react" />
2
1
  export declare const SelectItem: import("styled-components").StyledComponent<({ children, disabled, ...rest }: any) => JSX.Element, any, {}, never>;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare const SubtitleItemWrapper: import("styled-components").StyledComponent<"ul", any, {}, never>;
3
2
  export declare const SubmenuText: import("styled-components").StyledComponent<({ children, disabled, childrenCollapsed, ...rest }: any) => JSX.Element, any, {}, never>;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import 'rc-trigger/assets/index.less';
3
3
  import { BasicItemProps } from './Text.types';
4
- export declare type HoverTooltipProps = React.PropsWithChildren<{
4
+ export type HoverTooltipProps = React.PropsWithChildren<{
5
5
  hoverTooltipProps?: BasicItemProps['hoverTooltipProps'];
6
6
  renderHoverTooltip?: () => JSX.Element;
7
7
  style?: React.CSSProperties;
@@ -157,7 +157,6 @@ var Text = function Text(_ref2) {
157
157
  }, [rest.className, size]);
158
158
  var element =
159
159
  /*#__PURE__*/
160
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
161
160
  // @ts-ignore
162
161
  // eslint-disable-next-line jsx-a11y/mouse-events-have-key-events
163
162
  React.createElement(S.Wrapper, _extends({
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import MenuItem from 'antd/lib/menu/MenuItem';
3
- declare type WrapperProps = {
3
+ type WrapperProps = {
4
4
  disabled?: boolean;
5
5
  prefixel?: React.ReactNode;
6
6
  suffixel?: boolean;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { MenuProps } from 'antd/lib/menu';
3
3
  import { MenuItemProps } from '../MenuItem.types';
4
- export declare type AddonRenderer = (hovered: boolean) => React.ReactNode;
4
+ export type AddonRenderer = (hovered: boolean) => React.ReactNode;
5
5
  export interface BasicItemProps {
6
6
  className?: string;
7
7
  parent?: boolean;
@@ -71,8 +71,7 @@ var SubMenuItem = /*#__PURE__*/function (_React$PureComponent) {
71
71
  className: classNames('ds-menu-item', {
72
72
  'ant-menu-item-selected': !!menuItemKey && !!selectedKeys && selectedKeys.includes(menuItemKey)
73
73
  })
74
- }), Boolean(subMenu) && // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
75
- // @ts-ignore */
74
+ }), Boolean(subMenu) && // @ts-ignore */
76
75
  subMenu.map(function (subItem, index) {
77
76
  return /*#__PURE__*/React.createElement(MenuItem, _extends({
78
77
  parent: subItem.parent,
@@ -23,6 +23,6 @@ export interface SubMenuProps extends Omit<MenuProps, 'dataSource' | 'footer'> {
23
23
  export interface SubMenuState {
24
24
  uuidKey: string;
25
25
  }
26
- export declare type SubMenuItemProps = SubMenuProps & MenuItemProps & {
26
+ export type SubMenuItemProps = SubMenuProps & MenuItemProps & {
27
27
  onClick?: (item: SubMenuProps) => void;
28
28
  };
@@ -1,15 +1,15 @@
1
- import * as React from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { Menu } from 'antd';
3
3
  import { AntdMenuProps, MenuDividerProps } from './Menu.types';
4
- declare type SubMenuProps = {
4
+ export declare const MenuDivider: import("styled-components").StyledComponent<"div", any, MenuDividerProps, never>;
5
+ export declare const AntdMenu: import("styled-components").StyledComponent<typeof Menu, any, AntdMenuProps, never>;
6
+ export declare const SubMenuItem: import("styled-components").StyledComponent<typeof import("antd/lib/menu/SubMenu").default, any, {
5
7
  ordered?: boolean | undefined;
6
8
  disabled?: boolean | undefined;
7
9
  danger?: boolean | undefined;
8
- prefixel?: React.ReactNode;
9
- title: string | React.ReactNode;
10
- tabIndex?: number;
11
- };
12
- export declare const MenuDivider: import("styled-components").StyledComponent<"div", any, MenuDividerProps, never>;
13
- export declare const AntdMenu: import("styled-components").StyledComponent<typeof Menu, any, AntdMenuProps, never>;
14
- export declare const SubMenuItem: import("styled-components").StyledComponent<typeof import("antd/lib/menu/SubMenu").default, any, SubMenuProps, never>;
15
- export {};
10
+ prefixel?: ReactNode;
11
+ title: string | ReactNode;
12
+ tabIndex?: number | undefined;
13
+ } & {
14
+ children?: ReactNode;
15
+ }, never>;
@@ -23,7 +23,7 @@ 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-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-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']);
@@ -7,7 +7,7 @@ export interface AntdMenuProps extends Omit<MenuProps, 'dataSource' | 'footer'>
7
7
  showTextTooltip?: boolean;
8
8
  asInfoCardContainer?: boolean;
9
9
  }
10
- export declare type MenuDividerProps = {
10
+ export type MenuDividerProps = {
11
11
  higher?: boolean;
12
12
  level?: number;
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-menu",
3
- "version": "0.17.18",
3
+ "version": "0.17.20",
4
4
  "description": "Menu UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -32,10 +32,10 @@
32
32
  ],
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
- "@synerise/ds-icon": "^0.58.1",
36
- "@synerise/ds-tooltip": "^0.14.3",
37
- "@synerise/ds-utils": "^0.24.15",
38
- "classnames": "^2.2.6",
35
+ "@synerise/ds-icon": "^0.58.3",
36
+ "@synerise/ds-tooltip": "^0.14.5",
37
+ "@synerise/ds-utils": "^0.24.17",
38
+ "classnames": "2.3.2",
39
39
  "copy-to-clipboard": "^3.3.1",
40
40
  "rc-menu": "8.10.7",
41
41
  "rc-trigger": "5.2.5",
@@ -51,5 +51,5 @@
51
51
  "@testing-library/jest-dom": "5.1.1",
52
52
  "@testing-library/react": "10.0.1"
53
53
  },
54
- "gitHead": "7df57233258ec34b90c3c92dbe1696788abd6ec6"
54
+ "gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67"
55
55
  }