@synerise/ds-menu 1.0.3 → 1.0.5
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 +16 -0
- package/dist/Elements/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/Elements/Breadcrumb/Breadcrumb.styles.js +2 -2
- package/dist/Elements/Item/Danger/Danger.js +1 -1
- package/dist/Elements/Item/Danger/Danger.styles.js +2 -2
- package/dist/Elements/Item/MenuItem.js +2 -2
- package/dist/Elements/Item/MenuItem.types.js +6 -6
- package/dist/Elements/Item/Select/Select.js +2 -2
- package/dist/Elements/Item/Select/Select.styles.js +2 -2
- package/dist/Elements/Item/SubmenuText/SubmenuText.js +2 -2
- package/dist/Elements/Item/SubmenuText/SubmenuText.styles.js +2 -2
- package/dist/Elements/Item/Text/Text.js +2 -2
- package/dist/Elements/SubMenu/SubMenu.js +5 -5
- package/dist/Menu.js +5 -5
- package/dist/Menu.types.js +3 -3
- package/package.json +5 -5
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
|
+
## [1.0.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@1.0.4...@synerise/ds-menu@1.0.5) (2025-04-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-menu
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.0.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@1.0.3...@synerise/ds-menu@1.0.4) (2025-04-02)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-menu
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.0.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-menu@1.0.2...@synerise/ds-menu@1.0.3) (2025-03-31)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-menu
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["path", "disabled", "highlight", "description", "onPathClick", "compact", "startWithArrow", "gradientOverlap", "highlightActivePath"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
5
5
|
import Icon, { AngleRightS } from '@synerise/ds-icon';
|
|
6
6
|
import { theme } from '@synerise/ds-core';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "disabled", "onPathClick", "compact"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
6
|
import Text from '../Item/Text/Text';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var _excluded = ["children"];
|
|
2
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import '@synerise/ds-core/dist/js/style';
|
|
5
5
|
import * as S from './Danger.styles';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "disabled"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { IconContainer } from '@synerise/ds-icon';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["prefixel", "suffixel", "ordered", "disabled", "danger", "text", "description", "subMenu", "children", "type", "indentLevel", "timeToHideTooltip", "onClick", "menuItemKey", "onTitleClick"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import '@synerise/ds-core/dist/js/style';
|
|
6
6
|
import { ItemType } from './MenuItem.types';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export var ItemType
|
|
2
|
-
(function (ItemType) {
|
|
1
|
+
export var ItemType = /*#__PURE__*/function (ItemType) {
|
|
3
2
|
ItemType["DEFAULT"] = "default";
|
|
4
3
|
ItemType["SELECT"] = "select";
|
|
5
4
|
ItemType["DANGER"] = "danger";
|
|
6
5
|
ItemType["DIVIDER"] = "divider";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
return ItemType;
|
|
7
|
+
}({});
|
|
8
|
+
export var ItemSize = /*#__PURE__*/function (ItemSize) {
|
|
10
9
|
ItemSize["DEFAULT"] = "default";
|
|
11
10
|
ItemSize["LARGE"] = "large";
|
|
12
|
-
|
|
11
|
+
return ItemSize;
|
|
12
|
+
}({});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["disabled", "children"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { v4 as uuid } from 'uuid';
|
|
6
6
|
import '@synerise/ds-core/dist/js/style';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "disabled"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { SuffixWraper } from '../Text/Text.styles';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["disabled", "children", "prefixel", "suffixel", "key"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { v4 as uuid } from 'uuid';
|
|
6
6
|
import '@synerise/ds-core/dist/js/style';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["children", "disabled", "childrenCollapsed"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import styled from 'styled-components';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { ContentWrapper } from '../Text/Text.styles';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _excluded = ["parent", "disabled", "prefixel", "suffixel", "danger", "children", "description", "copyable", "copyHint", "copyValue", "copyTooltip", "timeToHideTooltip", "highlight", "style", "prefixVisibilityTrigger", "suffixVisibilityTrigger", "indentLevel", "ordered", "onClick", "checked", "tooltipProps", "hoverTooltipProps", "renderHoverTooltip", "size"];
|
|
2
|
-
function _objectWithoutPropertiesLoose(
|
|
3
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
2
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
4
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
5
5
|
import "rc-trigger/assets/index.css";
|
|
6
6
|
import classNames from 'classnames';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _excluded = ["text", "prefixel", "suffixel", "subMenu", "disabled", "danger", "ordered", "onTitleClick", "menuItemKey", "selectedKeys", "suffixVisibilityTrigger", "prefixVisibilityTrigger", "size", "description"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
4
|
-
function _inheritsLoose(
|
|
5
|
-
function _setPrototypeOf(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
5
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { v4 as uuid } from 'uuid';
|
|
8
8
|
import classNames from 'classnames';
|
|
@@ -11,7 +11,6 @@ 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);
|
|
15
14
|
function SubMenuItem(props) {
|
|
16
15
|
var _this;
|
|
17
16
|
_this = _React$PureComponent.call(this, props) || this;
|
|
@@ -21,6 +20,7 @@ var SubMenuItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21
20
|
};
|
|
22
21
|
return _this;
|
|
23
22
|
}
|
|
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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _excluded = ["dataSource", "ordered", "selectable", "children", "showTextTooltip", "texts", "maxToShowItems"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
3
|
-
function _objectWithoutPropertiesLoose(
|
|
4
|
-
function _inheritsLoose(
|
|
5
|
-
function _setPrototypeOf(
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
+
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
5
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
6
6
|
import React, { Children, Component } from 'react';
|
|
7
7
|
import Button from '@synerise/ds-button';
|
|
8
8
|
import Icon, { ArrowDownCircleM, ArrowUpCircleM } from '@synerise/ds-icon';
|
|
@@ -16,7 +16,6 @@ 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);
|
|
20
19
|
function Menu() {
|
|
21
20
|
var _this;
|
|
22
21
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -28,6 +27,7 @@ export var Menu = /*#__PURE__*/function (_Component) {
|
|
|
28
27
|
};
|
|
29
28
|
return _this;
|
|
30
29
|
}
|
|
30
|
+
_inheritsLoose(Menu, _Component);
|
|
31
31
|
var _proto = Menu.prototype;
|
|
32
32
|
_proto.toggleItems = function toggleItems() {
|
|
33
33
|
var allItemsVisible = this.state.allItemsVisible;
|
package/dist/Menu.types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export var VisibilityTrigger
|
|
2
|
-
(function (VisibilityTrigger) {
|
|
1
|
+
export var VisibilityTrigger = /*#__PURE__*/function (VisibilityTrigger) {
|
|
3
2
|
VisibilityTrigger["DEFAULT"] = "default";
|
|
4
3
|
VisibilityTrigger["HOVER"] = "hover";
|
|
5
|
-
|
|
4
|
+
return VisibilityTrigger;
|
|
5
|
+
}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-menu",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Menu UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-button": "^1.1.
|
|
38
|
-
"@synerise/ds-icon": "^1.
|
|
39
|
-
"@synerise/ds-tooltip": "^1.1.
|
|
37
|
+
"@synerise/ds-button": "^1.1.4",
|
|
38
|
+
"@synerise/ds-icon": "^1.4.0",
|
|
39
|
+
"@synerise/ds-tooltip": "^1.1.4",
|
|
40
40
|
"@synerise/ds-utils": "^1.0.1",
|
|
41
41
|
"classnames": "2.3.2",
|
|
42
42
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"react": ">=16.9.0 <= 18.3.1",
|
|
51
51
|
"styled-components": "^5.3.3"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "6735f9babfeef53122f54ca86cba5f581e8870d9"
|
|
54
54
|
}
|