@targetprocess/menu 12.23.4-alpha.0 → 12.24.0

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 (3) hide show
  1. package/dist/menu.es.js +115 -77
  2. package/dist/menu.js +115 -77
  3. package/package.json +4 -4
package/dist/menu.es.js CHANGED
@@ -4,101 +4,139 @@ import { Popover } from '@targetprocess/popover';
4
4
  import classNames from 'classnames';
5
5
  import { CaretIcon } from '@targetprocess/icons';
6
6
 
7
- function _assertThisInitialized(e) {
8
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9
- return e;
10
- }
11
- function _classCallCheck(a, n) {
12
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
7
+ function _classCallCheck(instance, Constructor) {
8
+ if (!(instance instanceof Constructor)) {
9
+ throw new TypeError("Cannot call a class as a function");
10
+ }
13
11
  }
14
- function _defineProperties(e, r) {
15
- for (var t = 0; t < r.length; t++) {
16
- var o = r[t];
17
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
12
+ function _defineProperties(target, props) {
13
+ for (var i = 0; i < props.length; i++) {
14
+ var descriptor = props[i];
15
+ descriptor.enumerable = descriptor.enumerable || false;
16
+ descriptor.configurable = true;
17
+ if ("value" in descriptor) descriptor.writable = true;
18
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
18
19
  }
19
20
  }
20
- function _createClass(e, r, t) {
21
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
22
- writable: !1
23
- }), e;
21
+ function _createClass(Constructor, protoProps, staticProps) {
22
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
23
+ if (staticProps) _defineProperties(Constructor, staticProps);
24
+ Object.defineProperty(Constructor, "prototype", {
25
+ writable: false
26
+ });
27
+ return Constructor;
24
28
  }
25
- function _defineProperty(e, r, t) {
26
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
27
- value: t,
28
- enumerable: !0,
29
- configurable: !0,
30
- writable: !0
31
- }) : e[r] = t, e;
29
+ function _defineProperty(obj, key, value) {
30
+ key = _toPropertyKey(key);
31
+ if (key in obj) {
32
+ Object.defineProperty(obj, key, {
33
+ value: value,
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true
37
+ });
38
+ } else {
39
+ obj[key] = value;
40
+ }
41
+ return obj;
32
42
  }
33
43
  function _extends() {
34
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
35
- for (var e = 1; e < arguments.length; e++) {
36
- var t = arguments[e];
37
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
44
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
45
+ for (var i = 1; i < arguments.length; i++) {
46
+ var source = arguments[i];
47
+ for (var key in source) {
48
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
49
+ target[key] = source[key];
50
+ }
51
+ }
38
52
  }
39
- return n;
40
- }, _extends.apply(null, arguments);
41
- }
42
- function _getPrototypeOf(t) {
43
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
44
- return t.__proto__ || Object.getPrototypeOf(t);
45
- }, _getPrototypeOf(t);
53
+ return target;
54
+ };
55
+ return _extends.apply(this, arguments);
46
56
  }
47
- function _inherits(t, e) {
48
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
49
- t.prototype = Object.create(e && e.prototype, {
57
+ function _inherits(subClass, superClass) {
58
+ if (typeof superClass !== "function" && superClass !== null) {
59
+ throw new TypeError("Super expression must either be null or a function");
60
+ }
61
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
50
62
  constructor: {
51
- value: t,
52
- writable: !0,
53
- configurable: !0
63
+ value: subClass,
64
+ writable: true,
65
+ configurable: true
54
66
  }
55
- }), Object.defineProperty(t, "prototype", {
56
- writable: !1
57
- }), e && _setPrototypeOf(t, e);
67
+ });
68
+ Object.defineProperty(subClass, "prototype", {
69
+ writable: false
70
+ });
71
+ if (superClass) _setPrototypeOf(subClass, superClass);
58
72
  }
59
- function _objectWithoutProperties(e, t) {
60
- if (null == e) return {};
61
- var o,
62
- r,
63
- i = _objectWithoutPropertiesLoose(e, t);
64
- if (Object.getOwnPropertySymbols) {
65
- var s = Object.getOwnPropertySymbols(e);
66
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
73
+ function _getPrototypeOf(o) {
74
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
75
+ return o.__proto__ || Object.getPrototypeOf(o);
76
+ };
77
+ return _getPrototypeOf(o);
78
+ }
79
+ function _setPrototypeOf(o, p) {
80
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
81
+ o.__proto__ = p;
82
+ return o;
83
+ };
84
+ return _setPrototypeOf(o, p);
85
+ }
86
+ function _objectWithoutPropertiesLoose(source, excluded) {
87
+ if (source == null) return {};
88
+ var target = {};
89
+ var sourceKeys = Object.keys(source);
90
+ var key, i;
91
+ for (i = 0; i < sourceKeys.length; i++) {
92
+ key = sourceKeys[i];
93
+ if (excluded.indexOf(key) >= 0) continue;
94
+ target[key] = source[key];
67
95
  }
68
- return i;
96
+ return target;
69
97
  }
70
- function _objectWithoutPropertiesLoose(r, e) {
71
- if (null == r) return {};
72
- var t = {};
73
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
74
- if (e.includes(n)) continue;
75
- t[n] = r[n];
98
+ function _objectWithoutProperties(source, excluded) {
99
+ if (source == null) return {};
100
+ var target = _objectWithoutPropertiesLoose(source, excluded);
101
+ var key, i;
102
+ if (Object.getOwnPropertySymbols) {
103
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
104
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
105
+ key = sourceSymbolKeys[i];
106
+ if (excluded.indexOf(key) >= 0) continue;
107
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
108
+ target[key] = source[key];
109
+ }
76
110
  }
77
- return t;
111
+ return target;
78
112
  }
79
- function _possibleConstructorReturn(t, e) {
80
- if (e && ("object" == typeof e || "function" == typeof e)) return e;
81
- if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
82
- return _assertThisInitialized(t);
113
+ function _assertThisInitialized(self) {
114
+ if (self === void 0) {
115
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
116
+ }
117
+ return self;
83
118
  }
84
- function _setPrototypeOf(t, e) {
85
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
86
- return t.__proto__ = e, t;
87
- }, _setPrototypeOf(t, e);
119
+ function _possibleConstructorReturn(self, call) {
120
+ if (call && (typeof call === "object" || typeof call === "function")) {
121
+ return call;
122
+ } else if (call !== void 0) {
123
+ throw new TypeError("Derived constructors may only return object or undefined");
124
+ }
125
+ return _assertThisInitialized(self);
88
126
  }
89
- function _toPrimitive(t, r) {
90
- if ("object" != typeof t || !t) return t;
91
- var e = t[Symbol.toPrimitive];
92
- if (void 0 !== e) {
93
- var i = e.call(t, r || "default");
94
- if ("object" != typeof i) return i;
127
+ function _toPrimitive(input, hint) {
128
+ if (typeof input !== "object" || input === null) return input;
129
+ var prim = input[Symbol.toPrimitive];
130
+ if (prim !== undefined) {
131
+ var res = prim.call(input, hint || "default");
132
+ if (typeof res !== "object") return res;
95
133
  throw new TypeError("@@toPrimitive must return a primitive value.");
96
134
  }
97
- return ("string" === r ? String : Number)(t);
135
+ return (hint === "string" ? String : Number)(input);
98
136
  }
99
- function _toPropertyKey(t) {
100
- var i = _toPrimitive(t, "string");
101
- return "symbol" == typeof i ? i : i + "";
137
+ function _toPropertyKey(arg) {
138
+ var key = _toPrimitive(arg, "string");
139
+ return typeof key === "symbol" ? key : String(key);
102
140
  }
103
141
 
104
142
  function styleInject(css, ref) {
@@ -128,8 +166,8 @@ function styleInject(css, ref) {
128
166
  }
129
167
  }
130
168
 
131
- var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.menu__menu__12-23-4-alpha-0 {\n -webkit-transition-property: opacity !important;\n transition-property: opacity !important;\n -webkit-transform: none !important;\n transform: none !important;\n padding: 0;\n}\n.menu__item__menu__12-23-4-alpha-0 {\n font-size: var(--FontSizeDefault, 13px);\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n.menu__item__content__menu__12-23-4-alpha-0 {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n.menu__item__content--left__menu__12-23-4-alpha-0 {\n padding-left: var(--IconsSizeDefault, 16px);\n }\n.menu__item__menu__12-23-4-alpha-0 .submenu-icon__menu__12-23-4-alpha-0 {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n }\n.menu__item__menu__12-23-4-alpha-0 .submenu-icon--left__menu__12-23-4-alpha-0 {\n margin-right: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-23-4-alpha-0 .submenu-icon--right__menu__12-23-4-alpha-0 {\n margin-left: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-23-4-alpha-0:not(.menu__item--disabled__menu__12-23-4-alpha-0):hover {\n cursor: pointer;\n }\n.menu__item--disabled__menu__12-23-4-alpha-0 {\n opacity: var(--ControlDisabledOpacity, 0.5);\n cursor: not-allowed;\n }\n.menu__item--danger__menu__12-23-4-alpha-0 {\n color: var(--ActionColorDelete, #AE304A);\n }\n.menu__item--danger__menu__12-23-4-alpha-0:not(.menu__item--disabled__menu__12-23-4-alpha-0):hover {\n background-color: var(--ActionBackgroundDelete, #F3E0E4);\n }\n.menu__item--current__menu__12-23-4-alpha-0 {\n background-color: var(--HighlightBlockBackground, #F5F6F6); /* keyboard current background */\n }\n.menu__item--selected__menu__12-23-4-alpha-0:not(.menu__item--danger__menu__12-23-4-alpha-0) {\n background-color: var(--ActionBackgroundSelected, #F1CE4A);\n }\n.menu__item__menu__12-23-4-alpha-0:not(.menu__item--danger__menu__12-23-4-alpha-0):not(.menu__item--disabled__menu__12-23-4-alpha-0):not(.menu__item--selected__menu__12-23-4-alpha-0):hover {\n background-color: var(--ActionBackgroundHover, #F9E9AE);\n }\n.menu__item__menu__12-23-4-alpha-0:last-child {\n border-radius: 0 0 var(--BorderRadiusDefault, 3px) var(--BorderRadiusDefault, 3px);\n }\n.menu__separator__menu__12-23-4-alpha-0 {\n margin: var(--SpaceXS, 4px) 0;\n border-top: solid 1px var(--HighlightBlockBorderColor, rgba(64, 66, 73, 0.1));\n }\n.menu__separator__title__menu__12-23-4-alpha-0 {\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px) var(--SpaceXS, 4px) var(--SpaceSM, 12px);\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: var(--FontSizeLabel, 11px);\n line-height: 1.3;\n font-weight: var(--FontWeightSemibold, 600);\n text-transform: uppercase;\n color: var(--FontColorGray, rgba(0, 0, 0, 0.7));\n letter-spacing: 0.4px;\n }\n";
132
- var styles = {"menu":"menu__menu__12-23-4-alpha-0","menu__item":"menu__item__menu__12-23-4-alpha-0","menu__item__content":"menu__item__content__menu__12-23-4-alpha-0","menu__item__content--left":"menu__item__content--left__menu__12-23-4-alpha-0","submenu-icon":"submenu-icon__menu__12-23-4-alpha-0","submenu-icon--left":"submenu-icon--left__menu__12-23-4-alpha-0","submenu-icon--right":"submenu-icon--right__menu__12-23-4-alpha-0","menu__item--disabled":"menu__item--disabled__menu__12-23-4-alpha-0","menu__item--danger":"menu__item--danger__menu__12-23-4-alpha-0","menu__item--current":"menu__item--current__menu__12-23-4-alpha-0","menu__item--selected":"menu__item--selected__menu__12-23-4-alpha-0","menu__separator":"menu__separator__menu__12-23-4-alpha-0","menu__separator__title":"menu__separator__title__menu__12-23-4-alpha-0"};
169
+ var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.menu__menu__12-24-0 {\n -webkit-transition-property: opacity !important;\n transition-property: opacity !important;\n -webkit-transform: none !important;\n transform: none !important;\n padding: 0;\n}\n.menu__item__menu__12-24-0 {\n font-size: var(--FontSizeDefault, 13px);\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n.menu__item__content__menu__12-24-0 {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n.menu__item__content--left__menu__12-24-0 {\n padding-left: var(--IconsSizeDefault, 16px);\n }\n.menu__item__menu__12-24-0 .submenu-icon__menu__12-24-0 {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n }\n.menu__item__menu__12-24-0 .submenu-icon--left__menu__12-24-0 {\n margin-right: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-24-0 .submenu-icon--right__menu__12-24-0 {\n margin-left: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-24-0:not(.menu__item--disabled__menu__12-24-0):hover {\n cursor: pointer;\n }\n.menu__item--disabled__menu__12-24-0 {\n opacity: var(--ControlDisabledOpacity, 0.5);\n cursor: not-allowed;\n }\n.menu__item--danger__menu__12-24-0 {\n color: var(--ActionColorDelete, #AE304A);\n }\n.menu__item--danger__menu__12-24-0:not(.menu__item--disabled__menu__12-24-0):hover {\n background-color: var(--ActionBackgroundDelete, #F3E0E4);\n }\n.menu__item--current__menu__12-24-0 {\n background-color: var(--HighlightBlockBackground, #F5F6F6); /* keyboard current background */\n }\n.menu__item--selected__menu__12-24-0:not(.menu__item--danger__menu__12-24-0) {\n background-color: var(--ActionBackgroundSelected, #F1CE4A);\n }\n.menu__item__menu__12-24-0:not(.menu__item--danger__menu__12-24-0):not(.menu__item--disabled__menu__12-24-0):not(.menu__item--selected__menu__12-24-0):hover {\n background-color: var(--ActionBackgroundHover, #F9E9AE);\n }\n.menu__item__menu__12-24-0:last-child {\n border-radius: 0 0 var(--BorderRadiusDefault, 3px) var(--BorderRadiusDefault, 3px);\n }\n.menu__separator__menu__12-24-0 {\n margin: var(--SpaceXS, 4px) 0;\n border-top: solid 1px var(--HighlightBlockBorderColor, rgba(64, 66, 73, 0.1));\n }\n.menu__separator__title__menu__12-24-0 {\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px) var(--SpaceXS, 4px) var(--SpaceSM, 12px);\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: var(--FontSizeLabel, 11px);\n line-height: 1.3;\n font-weight: var(--FontWeightSemibold, 600);\n text-transform: uppercase;\n color: var(--FontColorGray, rgba(0, 0, 0, 0.7));\n letter-spacing: 0.4px;\n }\n";
170
+ var styles = {"menu":"menu__menu__12-24-0","menu__item":"menu__item__menu__12-24-0","menu__item__content":"menu__item__content__menu__12-24-0","menu__item__content--left":"menu__item__content--left__menu__12-24-0","submenu-icon":"submenu-icon__menu__12-24-0","submenu-icon--left":"submenu-icon--left__menu__12-24-0","submenu-icon--right":"submenu-icon--right__menu__12-24-0","menu__item--disabled":"menu__item--disabled__menu__12-24-0","menu__item--danger":"menu__item--danger__menu__12-24-0","menu__item--current":"menu__item--current__menu__12-24-0","menu__item--selected":"menu__item--selected__menu__12-24-0","menu__separator":"menu__separator__menu__12-24-0","menu__separator__title":"menu__separator__title__menu__12-24-0"};
133
171
  styleInject(css);
134
172
 
135
173
  /**
package/dist/menu.js CHANGED
@@ -10,101 +10,139 @@ var popover = require('@targetprocess/popover');
10
10
  var classNames = _interopDefault(require('classnames'));
11
11
  var icons = require('@targetprocess/icons');
12
12
 
13
- function _assertThisInitialized(e) {
14
- if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15
- return e;
16
- }
17
- function _classCallCheck(a, n) {
18
- if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
13
+ function _classCallCheck(instance, Constructor) {
14
+ if (!(instance instanceof Constructor)) {
15
+ throw new TypeError("Cannot call a class as a function");
16
+ }
19
17
  }
20
- function _defineProperties(e, r) {
21
- for (var t = 0; t < r.length; t++) {
22
- var o = r[t];
23
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
18
+ function _defineProperties(target, props) {
19
+ for (var i = 0; i < props.length; i++) {
20
+ var descriptor = props[i];
21
+ descriptor.enumerable = descriptor.enumerable || false;
22
+ descriptor.configurable = true;
23
+ if ("value" in descriptor) descriptor.writable = true;
24
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
24
25
  }
25
26
  }
26
- function _createClass(e, r, t) {
27
- return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
28
- writable: !1
29
- }), e;
27
+ function _createClass(Constructor, protoProps, staticProps) {
28
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
29
+ if (staticProps) _defineProperties(Constructor, staticProps);
30
+ Object.defineProperty(Constructor, "prototype", {
31
+ writable: false
32
+ });
33
+ return Constructor;
30
34
  }
31
- function _defineProperty(e, r, t) {
32
- return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
33
- value: t,
34
- enumerable: !0,
35
- configurable: !0,
36
- writable: !0
37
- }) : e[r] = t, e;
35
+ function _defineProperty(obj, key, value) {
36
+ key = _toPropertyKey(key);
37
+ if (key in obj) {
38
+ Object.defineProperty(obj, key, {
39
+ value: value,
40
+ enumerable: true,
41
+ configurable: true,
42
+ writable: true
43
+ });
44
+ } else {
45
+ obj[key] = value;
46
+ }
47
+ return obj;
38
48
  }
39
49
  function _extends() {
40
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
41
- for (var e = 1; e < arguments.length; e++) {
42
- var t = arguments[e];
43
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
50
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
51
+ for (var i = 1; i < arguments.length; i++) {
52
+ var source = arguments[i];
53
+ for (var key in source) {
54
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
55
+ target[key] = source[key];
56
+ }
57
+ }
44
58
  }
45
- return n;
46
- }, _extends.apply(null, arguments);
47
- }
48
- function _getPrototypeOf(t) {
49
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
50
- return t.__proto__ || Object.getPrototypeOf(t);
51
- }, _getPrototypeOf(t);
59
+ return target;
60
+ };
61
+ return _extends.apply(this, arguments);
52
62
  }
53
- function _inherits(t, e) {
54
- if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
55
- t.prototype = Object.create(e && e.prototype, {
63
+ function _inherits(subClass, superClass) {
64
+ if (typeof superClass !== "function" && superClass !== null) {
65
+ throw new TypeError("Super expression must either be null or a function");
66
+ }
67
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
56
68
  constructor: {
57
- value: t,
58
- writable: !0,
59
- configurable: !0
69
+ value: subClass,
70
+ writable: true,
71
+ configurable: true
60
72
  }
61
- }), Object.defineProperty(t, "prototype", {
62
- writable: !1
63
- }), e && _setPrototypeOf(t, e);
73
+ });
74
+ Object.defineProperty(subClass, "prototype", {
75
+ writable: false
76
+ });
77
+ if (superClass) _setPrototypeOf(subClass, superClass);
64
78
  }
65
- function _objectWithoutProperties(e, t) {
66
- if (null == e) return {};
67
- var o,
68
- r,
69
- i = _objectWithoutPropertiesLoose(e, t);
70
- if (Object.getOwnPropertySymbols) {
71
- var s = Object.getOwnPropertySymbols(e);
72
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
79
+ function _getPrototypeOf(o) {
80
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
81
+ return o.__proto__ || Object.getPrototypeOf(o);
82
+ };
83
+ return _getPrototypeOf(o);
84
+ }
85
+ function _setPrototypeOf(o, p) {
86
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
87
+ o.__proto__ = p;
88
+ return o;
89
+ };
90
+ return _setPrototypeOf(o, p);
91
+ }
92
+ function _objectWithoutPropertiesLoose(source, excluded) {
93
+ if (source == null) return {};
94
+ var target = {};
95
+ var sourceKeys = Object.keys(source);
96
+ var key, i;
97
+ for (i = 0; i < sourceKeys.length; i++) {
98
+ key = sourceKeys[i];
99
+ if (excluded.indexOf(key) >= 0) continue;
100
+ target[key] = source[key];
73
101
  }
74
- return i;
102
+ return target;
75
103
  }
76
- function _objectWithoutPropertiesLoose(r, e) {
77
- if (null == r) return {};
78
- var t = {};
79
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
80
- if (e.includes(n)) continue;
81
- t[n] = r[n];
104
+ function _objectWithoutProperties(source, excluded) {
105
+ if (source == null) return {};
106
+ var target = _objectWithoutPropertiesLoose(source, excluded);
107
+ var key, i;
108
+ if (Object.getOwnPropertySymbols) {
109
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
110
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
111
+ key = sourceSymbolKeys[i];
112
+ if (excluded.indexOf(key) >= 0) continue;
113
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
114
+ target[key] = source[key];
115
+ }
82
116
  }
83
- return t;
117
+ return target;
84
118
  }
85
- function _possibleConstructorReturn(t, e) {
86
- if (e && ("object" == typeof e || "function" == typeof e)) return e;
87
- if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
88
- return _assertThisInitialized(t);
119
+ function _assertThisInitialized(self) {
120
+ if (self === void 0) {
121
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
122
+ }
123
+ return self;
89
124
  }
90
- function _setPrototypeOf(t, e) {
91
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
92
- return t.__proto__ = e, t;
93
- }, _setPrototypeOf(t, e);
125
+ function _possibleConstructorReturn(self, call) {
126
+ if (call && (typeof call === "object" || typeof call === "function")) {
127
+ return call;
128
+ } else if (call !== void 0) {
129
+ throw new TypeError("Derived constructors may only return object or undefined");
130
+ }
131
+ return _assertThisInitialized(self);
94
132
  }
95
- function _toPrimitive(t, r) {
96
- if ("object" != typeof t || !t) return t;
97
- var e = t[Symbol.toPrimitive];
98
- if (void 0 !== e) {
99
- var i = e.call(t, r || "default");
100
- if ("object" != typeof i) return i;
133
+ function _toPrimitive(input, hint) {
134
+ if (typeof input !== "object" || input === null) return input;
135
+ var prim = input[Symbol.toPrimitive];
136
+ if (prim !== undefined) {
137
+ var res = prim.call(input, hint || "default");
138
+ if (typeof res !== "object") return res;
101
139
  throw new TypeError("@@toPrimitive must return a primitive value.");
102
140
  }
103
- return ("string" === r ? String : Number)(t);
141
+ return (hint === "string" ? String : Number)(input);
104
142
  }
105
- function _toPropertyKey(t) {
106
- var i = _toPrimitive(t, "string");
107
- return "symbol" == typeof i ? i : i + "";
143
+ function _toPropertyKey(arg) {
144
+ var key = _toPrimitive(arg, "string");
145
+ return typeof key === "symbol" ? key : String(key);
108
146
  }
109
147
 
110
148
  function styleInject(css, ref) {
@@ -134,8 +172,8 @@ function styleInject(css, ref) {
134
172
  }
135
173
  }
136
174
 
137
- var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.menu__menu__12-23-4-alpha-0 {\n -webkit-transition-property: opacity !important;\n transition-property: opacity !important;\n -webkit-transform: none !important;\n transform: none !important;\n padding: 0;\n}\n.menu__item__menu__12-23-4-alpha-0 {\n font-size: var(--FontSizeDefault, 13px);\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n.menu__item__content__menu__12-23-4-alpha-0 {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n.menu__item__content--left__menu__12-23-4-alpha-0 {\n padding-left: var(--IconsSizeDefault, 16px);\n }\n.menu__item__menu__12-23-4-alpha-0 .submenu-icon__menu__12-23-4-alpha-0 {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n }\n.menu__item__menu__12-23-4-alpha-0 .submenu-icon--left__menu__12-23-4-alpha-0 {\n margin-right: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-23-4-alpha-0 .submenu-icon--right__menu__12-23-4-alpha-0 {\n margin-left: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-23-4-alpha-0:not(.menu__item--disabled__menu__12-23-4-alpha-0):hover {\n cursor: pointer;\n }\n.menu__item--disabled__menu__12-23-4-alpha-0 {\n opacity: var(--ControlDisabledOpacity, 0.5);\n cursor: not-allowed;\n }\n.menu__item--danger__menu__12-23-4-alpha-0 {\n color: var(--ActionColorDelete, #AE304A);\n }\n.menu__item--danger__menu__12-23-4-alpha-0:not(.menu__item--disabled__menu__12-23-4-alpha-0):hover {\n background-color: var(--ActionBackgroundDelete, #F3E0E4);\n }\n.menu__item--current__menu__12-23-4-alpha-0 {\n background-color: var(--HighlightBlockBackground, #F5F6F6); /* keyboard current background */\n }\n.menu__item--selected__menu__12-23-4-alpha-0:not(.menu__item--danger__menu__12-23-4-alpha-0) {\n background-color: var(--ActionBackgroundSelected, #F1CE4A);\n }\n.menu__item__menu__12-23-4-alpha-0:not(.menu__item--danger__menu__12-23-4-alpha-0):not(.menu__item--disabled__menu__12-23-4-alpha-0):not(.menu__item--selected__menu__12-23-4-alpha-0):hover {\n background-color: var(--ActionBackgroundHover, #F9E9AE);\n }\n.menu__item__menu__12-23-4-alpha-0:last-child {\n border-radius: 0 0 var(--BorderRadiusDefault, 3px) var(--BorderRadiusDefault, 3px);\n }\n.menu__separator__menu__12-23-4-alpha-0 {\n margin: var(--SpaceXS, 4px) 0;\n border-top: solid 1px var(--HighlightBlockBorderColor, rgba(64, 66, 73, 0.1));\n }\n.menu__separator__title__menu__12-23-4-alpha-0 {\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px) var(--SpaceXS, 4px) var(--SpaceSM, 12px);\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: var(--FontSizeLabel, 11px);\n line-height: 1.3;\n font-weight: var(--FontWeightSemibold, 600);\n text-transform: uppercase;\n color: var(--FontColorGray, rgba(0, 0, 0, 0.7));\n letter-spacing: 0.4px;\n }\n";
138
- var styles = {"menu":"menu__menu__12-23-4-alpha-0","menu__item":"menu__item__menu__12-23-4-alpha-0","menu__item__content":"menu__item__content__menu__12-23-4-alpha-0","menu__item__content--left":"menu__item__content--left__menu__12-23-4-alpha-0","submenu-icon":"submenu-icon__menu__12-23-4-alpha-0","submenu-icon--left":"submenu-icon--left__menu__12-23-4-alpha-0","submenu-icon--right":"submenu-icon--right__menu__12-23-4-alpha-0","menu__item--disabled":"menu__item--disabled__menu__12-23-4-alpha-0","menu__item--danger":"menu__item--danger__menu__12-23-4-alpha-0","menu__item--current":"menu__item--current__menu__12-23-4-alpha-0","menu__item--selected":"menu__item--selected__menu__12-23-4-alpha-0","menu__separator":"menu__separator__menu__12-23-4-alpha-0","menu__separator__title":"menu__separator__title__menu__12-23-4-alpha-0"};
175
+ var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.menu__menu__12-24-0 {\n -webkit-transition-property: opacity !important;\n transition-property: opacity !important;\n -webkit-transform: none !important;\n transform: none !important;\n padding: 0;\n}\n.menu__item__menu__12-24-0 {\n font-size: var(--FontSizeDefault, 13px);\n position: relative;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n }\n.menu__item__content__menu__12-24-0 {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n }\n.menu__item__content--left__menu__12-24-0 {\n padding-left: var(--IconsSizeDefault, 16px);\n }\n.menu__item__menu__12-24-0 .submenu-icon__menu__12-24-0 {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n }\n.menu__item__menu__12-24-0 .submenu-icon--left__menu__12-24-0 {\n margin-right: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-24-0 .submenu-icon--right__menu__12-24-0 {\n margin-left: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-24-0:not(.menu__item--disabled__menu__12-24-0):hover {\n cursor: pointer;\n }\n.menu__item--disabled__menu__12-24-0 {\n opacity: var(--ControlDisabledOpacity, 0.5);\n cursor: not-allowed;\n }\n.menu__item--danger__menu__12-24-0 {\n color: var(--ActionColorDelete, #AE304A);\n }\n.menu__item--danger__menu__12-24-0:not(.menu__item--disabled__menu__12-24-0):hover {\n background-color: var(--ActionBackgroundDelete, #F3E0E4);\n }\n.menu__item--current__menu__12-24-0 {\n background-color: var(--HighlightBlockBackground, #F5F6F6); /* keyboard current background */\n }\n.menu__item--selected__menu__12-24-0:not(.menu__item--danger__menu__12-24-0) {\n background-color: var(--ActionBackgroundSelected, #F1CE4A);\n }\n.menu__item__menu__12-24-0:not(.menu__item--danger__menu__12-24-0):not(.menu__item--disabled__menu__12-24-0):not(.menu__item--selected__menu__12-24-0):hover {\n background-color: var(--ActionBackgroundHover, #F9E9AE);\n }\n.menu__item__menu__12-24-0:last-child {\n border-radius: 0 0 var(--BorderRadiusDefault, 3px) var(--BorderRadiusDefault, 3px);\n }\n.menu__separator__menu__12-24-0 {\n margin: var(--SpaceXS, 4px) 0;\n border-top: solid 1px var(--HighlightBlockBorderColor, rgba(64, 66, 73, 0.1));\n }\n.menu__separator__title__menu__12-24-0 {\n padding: var(--SpaceS, 8px) var(--SpaceSM, 12px) var(--SpaceXS, 4px) var(--SpaceSM, 12px);\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n font-size: var(--FontSizeLabel, 11px);\n line-height: 1.3;\n font-weight: var(--FontWeightSemibold, 600);\n text-transform: uppercase;\n color: var(--FontColorGray, rgba(0, 0, 0, 0.7));\n letter-spacing: 0.4px;\n }\n";
176
+ var styles = {"menu":"menu__menu__12-24-0","menu__item":"menu__item__menu__12-24-0","menu__item__content":"menu__item__content__menu__12-24-0","menu__item__content--left":"menu__item__content--left__menu__12-24-0","submenu-icon":"submenu-icon__menu__12-24-0","submenu-icon--left":"submenu-icon--left__menu__12-24-0","submenu-icon--right":"submenu-icon--right__menu__12-24-0","menu__item--disabled":"menu__item--disabled__menu__12-24-0","menu__item--danger":"menu__item--danger__menu__12-24-0","menu__item--current":"menu__item--current__menu__12-24-0","menu__item--selected":"menu__item--selected__menu__12-24-0","menu__separator":"menu__separator__menu__12-24-0","menu__separator__title":"menu__separator__title__menu__12-24-0"};
139
177
  styleInject(css);
140
178
 
141
179
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@targetprocess/menu",
3
- "version": "12.23.4-alpha.0",
3
+ "version": "12.24.0",
4
4
  "description": "",
5
5
  "main": "dist/menu.js",
6
6
  "module": "dist/menu.es.js",
@@ -10,8 +10,8 @@
10
10
  "prepack": "node -r ../../.ts-node.js ../../config/rollup.config.js ."
11
11
  },
12
12
  "dependencies": {
13
- "@targetprocess/icons": "^12.23.0",
14
- "@targetprocess/popover": "^12.23.4-alpha.0",
13
+ "@targetprocess/icons": "^12.24.0",
14
+ "@targetprocess/popover": "^12.24.0",
15
15
  "classnames": "^2.2.5",
16
16
  "prop-types": "^15.6.0",
17
17
  "react": "^16.7.0",
@@ -21,5 +21,5 @@
21
21
  "access": "public"
22
22
  },
23
23
  "sideEffects": false,
24
- "gitHead": "99534dff51718fc768b54c72fef84f2853e37818"
24
+ "gitHead": "c079d436e88f2ce5f20f29ac1681a38ce7d1ef4a"
25
25
  }