@synerise/ds-menu 0.19.14 → 0.19.16

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/Elements/Breadcrumb/Breadcrumb.d.ts +1 -1
  3. package/dist/Elements/Breadcrumb/Breadcrumb.js +1 -1
  4. package/dist/Elements/Breadcrumb/Breadcrumb.types.d.ts +1 -1
  5. package/dist/Elements/Header/Header.d.ts +1 -1
  6. package/dist/Elements/Header/Header.js +1 -1
  7. package/dist/Elements/Item/Danger/Danger.d.ts +1 -1
  8. package/dist/Elements/Item/Danger/Danger.js +1 -1
  9. package/dist/Elements/Item/Danger/Danger.styles.d.ts +1 -1
  10. package/dist/Elements/Item/Danger/Danger.styles.js +1 -1
  11. package/dist/Elements/Item/MenuItem.d.ts +1 -1
  12. package/dist/Elements/Item/MenuItem.js +1 -1
  13. package/dist/Elements/Item/MenuItem.types.d.ts +1 -1
  14. package/dist/Elements/Item/Select/Select.d.ts +1 -1
  15. package/dist/Elements/Item/Select/Select.js +1 -1
  16. package/dist/Elements/Item/Select/Select.styles.d.ts +1 -1
  17. package/dist/Elements/Item/Select/Select.styles.js +2 -3
  18. package/dist/Elements/Item/SubmenuText/SubmenuText.d.ts +1 -1
  19. package/dist/Elements/Item/SubmenuText/SubmenuText.js +1 -1
  20. package/dist/Elements/Item/SubmenuText/SubmenuText.styles.d.ts +1 -1
  21. package/dist/Elements/Item/SubmenuText/SubmenuText.styles.js +1 -1
  22. package/dist/Elements/Item/Text/Text.d.ts +1 -1
  23. package/dist/Elements/Item/Text/Text.js +2 -2
  24. package/dist/Elements/Item/Text/Text.styles.d.ts +1 -1
  25. package/dist/Elements/Item/Text/Text.types.d.ts +1 -1
  26. package/dist/Elements/SubMenu/SubMenu.d.ts +1 -1
  27. package/dist/Elements/SubMenu/SubMenu.js +1 -1
  28. package/dist/Elements/SubMenu/SubMenu.types.d.ts +1 -1
  29. package/dist/Menu.d.ts +1 -1
  30. package/dist/Menu.js +1 -1
  31. package/package.json +7 -6
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.19.16](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@0.19.15...@synerise/ds-menu@0.19.16) (2024-09-26)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-menu
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.19.15](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@0.19.14...@synerise/ds-menu@0.19.15) (2024-09-17)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-menu
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.19.14](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@0.19.13...@synerise/ds-menu@0.19.14) (2024-09-13)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-menu
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { MenuItemProps } from '../Item/MenuItem.types';
3
3
  import { BreadcrumbProps } from './Breadcrumb.types';
4
4
  declare const Breadcrumb: React.FC<BreadcrumbProps & MenuItemProps>;
@@ -4,7 +4,7 @@ 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 * as React from 'react';
7
+ import React from 'react';
8
8
  import Icon, { AngleRightS } from '@synerise/ds-icon';
9
9
  import { theme } from '@synerise/ds-core';
10
10
  import { escapeRegEx } from '@synerise/ds-utils';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface BreadcrumbProps {
3
3
  prefixel?: React.ReactNode;
4
4
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { HeaderProps } from './Header.types';
3
3
  declare const MenuHeader: React.FC<HeaderProps>;
4
4
  export default MenuHeader;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import Tooltip from '@synerise/ds-tooltip/dist/Tooltip';
3
3
  import Icon, { InfoFillS } from '@synerise/ds-icon';
4
4
  import * as S from './Header.styles';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import '@synerise/ds-core/dist/js/style';
3
3
  import { BasicItemProps } from '../Text/Text.types';
4
4
  declare const Danger: React.FC<BasicItemProps>;
@@ -2,7 +2,7 @@ var _excluded = ["children"];
2
2
 
3
3
  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; }
4
4
 
5
- import * as React from 'react';
5
+ import React from 'react';
6
6
  import '@synerise/ds-core/dist/js/style';
7
7
  import * as S from './Danger.styles';
8
8
 
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export declare const DangerItem: import("styled-components").StyledComponent<({ children, disabled, ...rest }: any) => React.JSX.Element, any, {}, never>;
@@ -5,7 +5,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
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
7
  import styled from 'styled-components';
8
- import * as React from 'react';
8
+ import React from 'react';
9
9
  import { IconContainer } from '@synerise/ds-icon';
10
10
  import Text from '../Text/Text';
11
11
  import { ContentWrapper, PrefixelWrapper } from '../Text/Text.styles'; // eslint-disable-next-line import/prefer-default-export
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import '@synerise/ds-core/dist/js/style';
3
3
  import { MenuItemProps } from './MenuItem.types';
4
4
  import { SubMenuProps } from '../SubMenu/SubMenu.types';
@@ -4,7 +4,7 @@ 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 * as React from 'react';
7
+ import React from 'react';
8
8
  import '@synerise/ds-core/dist/js/style';
9
9
  import { ItemType } from './MenuItem.types';
10
10
  import SubMenuItem from '../SubMenu/SubMenu';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { MenuProps } from 'antd/lib/menu';
3
3
  import type { TriggerProps } from 'rc-trigger';
4
4
  import { TooltipProps } from '@synerise/ds-tooltip/dist/Tooltip.types';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import '@synerise/ds-core/dist/js/style';
3
3
  import { BasicItemProps } from '../Text/Text.types';
4
4
  declare const Select: React.FC<BasicItemProps>;
@@ -4,7 +4,7 @@ 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 * as React from 'react';
7
+ import React from 'react';
8
8
  import { v4 as uuid } from 'uuid';
9
9
  import '@synerise/ds-core/dist/js/style';
10
10
  import * as S from './Select.styles';
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export declare const SelectItem: import("styled-components").StyledComponent<({ children, disabled, ...rest }: any) => React.JSX.Element, any, {}, never>;
@@ -5,7 +5,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
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
7
  import styled from 'styled-components';
8
- import * as React from 'react';
8
+ import React from 'react';
9
9
  import { SuffixWraper } from '../Text/Text.styles';
10
10
  import Text from '../Text/Text'; // eslint-disable-next-line import/prefer-default-export
11
11
 
@@ -21,8 +21,7 @@ export var SelectItem = styled(function (_ref) {
21
21
  disabled: disabled
22
22
  }, rest), children)
23
23
  );
24
- }) // Safari doesn't support animating opacity yet, therefore I am using filter property to simulate fading
25
- .withConfig({
24
+ }).withConfig({
26
25
  displayName: "Selectstyles__SelectItem",
27
26
  componentId: "h6ad3-0"
28
27
  })(["&{", " > *{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) {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import '@synerise/ds-core/dist/js/style';
3
3
  import { BasicItemProps } from '../Text/Text.types';
4
4
  declare const SubmenuText: React.FC<BasicItemProps>;
@@ -4,7 +4,7 @@ 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 * as React from 'react';
7
+ import React from 'react';
8
8
  import { v4 as uuid } from 'uuid';
9
9
  import '@synerise/ds-core/dist/js/style';
10
10
  import * as S from './SubmenuText.styles';
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export declare const SubtitleItemWrapper: import("styled-components").StyledComponent<"ul", any, {}, never>;
3
3
  export declare const SubmenuText: import("styled-components").StyledComponent<({ children, disabled, childrenCollapsed, ...rest }: any) => React.JSX.Element, any, {}, never>;
@@ -5,7 +5,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
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
7
  import styled from 'styled-components';
8
- import * as React from 'react';
8
+ import React from 'react';
9
9
  import { ContentWrapper } from '../Text/Text.styles';
10
10
  import Text from '../Text/Text'; // eslint-disable-next-line @typescript-eslint/no-empty-function
11
11
 
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import 'rc-trigger/assets/index.less';
3
3
  import { BasicItemProps } from './Text.types';
4
4
  export type HoverTooltipProps = React.PropsWithChildren<{
@@ -4,11 +4,11 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
4
4
 
5
5
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
6
 
7
- import * as React from 'react';
7
+ import React from 'react';
8
8
  import "rc-trigger/assets/index.css";
9
9
  import classNames from 'classnames';
10
10
  import { useTheme } from 'styled-components';
11
- import * as copy from 'copy-to-clipboard';
11
+ import copy from 'copy-to-clipboard';
12
12
  import Trigger from 'rc-trigger';
13
13
  import Tooltip from '@synerise/ds-tooltip';
14
14
  import { escapeRegEx } from '@synerise/ds-utils';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import MenuItem from 'antd/lib/menu/MenuItem';
3
3
  type WrapperProps = {
4
4
  disabled?: boolean;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { MenuProps } from 'antd/lib/menu';
3
3
  import { MenuItemProps } from '../MenuItem.types';
4
4
  export type AddonRenderer = (hovered: boolean) => React.ReactNode;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import '@synerise/ds-core/dist/js/style';
3
3
  import { MenuItemProps } from '../Item/MenuItem.types';
4
4
  import { SubMenuProps, SubMenuState } from './SubMenu.types';
@@ -6,7 +6,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
6
6
 
7
7
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
8
8
 
9
- import * as React from 'react';
9
+ import React from 'react';
10
10
  import { v4 as uuid } from 'uuid';
11
11
  import classNames from 'classnames';
12
12
  import '@synerise/ds-core/dist/js/style';
@@ -1,5 +1,5 @@
1
1
  import { MenuProps } from 'antd/lib/menu';
2
- import * as React from 'react';
2
+ import React from 'react';
3
3
  import { MenuItemProps } from '../Item/MenuItem.types';
4
4
  export interface SubMenuProps extends Omit<MenuProps, 'dataSource' | 'footer'> {
5
5
  key?: React.ReactText;
package/dist/Menu.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import '@synerise/ds-core/dist/js/style';
3
3
  import './style/index.less';
4
4
  import * as S from './Menu.styles';
package/dist/Menu.js CHANGED
@@ -8,7 +8,7 @@ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.crea
8
8
 
9
9
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
10
 
11
- import * as React from 'react';
11
+ import React from 'react';
12
12
  import '@synerise/ds-core/dist/js/style';
13
13
  import Tooltip from '@synerise/ds-tooltip';
14
14
  import "./style/index.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-menu",
3
- "version": "0.19.14",
3
+ "version": "0.19.16",
4
4
  "description": "Menu UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -25,7 +25,8 @@
25
25
  "prepublish": "npm run build",
26
26
  "test": "jest",
27
27
  "test:watch": "npm run test -- --watchAll",
28
- "types": "tsc --noEmit"
28
+ "types": "tsc --noEmit",
29
+ "upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
29
30
  },
30
31
  "sideEffects": [
31
32
  "dist/style/*",
@@ -33,9 +34,9 @@
33
34
  ],
34
35
  "types": "dist/index.d.ts",
35
36
  "dependencies": {
36
- "@synerise/ds-icon": "^0.65.5",
37
- "@synerise/ds-tooltip": "^0.14.40",
38
- "@synerise/ds-utils": "^0.29.2",
37
+ "@synerise/ds-icon": "^0.65.7",
38
+ "@synerise/ds-tooltip": "^0.14.42",
39
+ "@synerise/ds-utils": "^0.29.4",
39
40
  "classnames": "2.3.2",
40
41
  "copy-to-clipboard": "^3.3.1",
41
42
  "rc-menu": "8.10.7",
@@ -48,5 +49,5 @@
48
49
  "react": ">=16.9.0 <= 17.0.2",
49
50
  "styled-components": "^5.0.1"
50
51
  },
51
- "gitHead": "6f3231e4a9e0720ffee61b748488cecd590da6e6"
52
+ "gitHead": "fc06bd0f13401a57329fb92985b735de33108dbc"
52
53
  }