@targetprocess/menu 12.23.3-alpha.0 → 12.23.4-alpha.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 +77 -115
  2. package/dist/menu.js +77 -115
  3. package/package.json +3 -3
package/dist/menu.es.js CHANGED
@@ -4,139 +4,101 @@ import { Popover } from '@targetprocess/popover';
4
4
  import classNames from 'classnames';
5
5
  import { CaretIcon } from '@targetprocess/icons';
6
6
 
7
- function _classCallCheck(instance, Constructor) {
8
- if (!(instance instanceof Constructor)) {
9
- throw new TypeError("Cannot call a class as a function");
10
- }
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");
11
13
  }
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);
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);
19
18
  }
20
19
  }
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;
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;
28
24
  }
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;
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;
42
32
  }
43
33
  function _extends() {
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
- }
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]);
52
38
  }
53
- return target;
54
- };
55
- return _extends.apply(this, arguments);
39
+ return n;
40
+ }, _extends.apply(null, arguments);
56
41
  }
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, {
42
+ function _getPrototypeOf(t) {
43
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
44
+ return t.__proto__ || Object.getPrototypeOf(t);
45
+ }, _getPrototypeOf(t);
46
+ }
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, {
62
50
  constructor: {
63
- value: subClass,
64
- writable: true,
65
- configurable: true
51
+ value: t,
52
+ writable: !0,
53
+ configurable: !0
66
54
  }
67
- });
68
- Object.defineProperty(subClass, "prototype", {
69
- writable: false
70
- });
71
- if (superClass) _setPrototypeOf(subClass, superClass);
72
- }
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);
55
+ }), Object.defineProperty(t, "prototype", {
56
+ writable: !1
57
+ }), e && _setPrototypeOf(t, e);
85
58
  }
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];
95
- }
96
- return target;
97
- }
98
- function _objectWithoutProperties(source, excluded) {
99
- if (source == null) return {};
100
- var target = _objectWithoutPropertiesLoose(source, excluded);
101
- var key, i;
59
+ function _objectWithoutProperties(e, t) {
60
+ if (null == e) return {};
61
+ var o,
62
+ r,
63
+ i = _objectWithoutPropertiesLoose(e, t);
102
64
  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
- }
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]);
110
67
  }
111
- return target;
68
+ return i;
112
69
  }
113
- function _assertThisInitialized(self) {
114
- if (self === void 0) {
115
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
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];
116
76
  }
117
- return self;
77
+ return t;
118
78
  }
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);
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);
83
+ }
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);
126
88
  }
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;
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;
133
95
  throw new TypeError("@@toPrimitive must return a primitive value.");
134
96
  }
135
- return (hint === "string" ? String : Number)(input);
97
+ return ("string" === r ? String : Number)(t);
136
98
  }
137
- function _toPropertyKey(arg) {
138
- var key = _toPrimitive(arg, "string");
139
- return typeof key === "symbol" ? key : String(key);
99
+ function _toPropertyKey(t) {
100
+ var i = _toPrimitive(t, "string");
101
+ return "symbol" == typeof i ? i : i + "";
140
102
  }
141
103
 
142
104
  function styleInject(css, ref) {
@@ -166,8 +128,8 @@ function styleInject(css, ref) {
166
128
  }
167
129
  }
168
130
 
169
- var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.menu__menu__12-23-3-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-3-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-3-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-3-alpha-0 {\n padding-left: var(--IconsSizeDefault, 16px);\n }\n.menu__item__menu__12-23-3-alpha-0 .submenu-icon__menu__12-23-3-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-3-alpha-0 .submenu-icon--left__menu__12-23-3-alpha-0 {\n margin-right: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-23-3-alpha-0 .submenu-icon--right__menu__12-23-3-alpha-0 {\n margin-left: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-23-3-alpha-0:not(.menu__item--disabled__menu__12-23-3-alpha-0):hover {\n cursor: pointer;\n }\n.menu__item--disabled__menu__12-23-3-alpha-0 {\n opacity: var(--ControlDisabledOpacity, 0.5);\n cursor: not-allowed;\n }\n.menu__item--danger__menu__12-23-3-alpha-0 {\n color: var(--ActionColorDelete, #AE304A);\n }\n.menu__item--danger__menu__12-23-3-alpha-0:not(.menu__item--disabled__menu__12-23-3-alpha-0):hover {\n background-color: var(--ActionBackgroundDelete, #F3E0E4);\n }\n.menu__item--current__menu__12-23-3-alpha-0 {\n background-color: var(--HighlightBlockBackground, #F5F6F6); /* keyboard current background */\n }\n.menu__item--selected__menu__12-23-3-alpha-0:not(.menu__item--danger__menu__12-23-3-alpha-0) {\n background-color: var(--ActionBackgroundSelected, #F1CE4A);\n }\n.menu__item__menu__12-23-3-alpha-0:not(.menu__item--danger__menu__12-23-3-alpha-0):not(.menu__item--disabled__menu__12-23-3-alpha-0):not(.menu__item--selected__menu__12-23-3-alpha-0):hover {\n background-color: var(--ActionBackgroundHover, #F9E9AE);\n }\n.menu__item__menu__12-23-3-alpha-0:last-child {\n border-radius: 0 0 var(--BorderRadiusDefault, 3px) var(--BorderRadiusDefault, 3px);\n }\n.menu__separator__menu__12-23-3-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-3-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";
170
- var styles = {"menu":"menu__menu__12-23-3-alpha-0","menu__item":"menu__item__menu__12-23-3-alpha-0","menu__item__content":"menu__item__content__menu__12-23-3-alpha-0","menu__item__content--left":"menu__item__content--left__menu__12-23-3-alpha-0","submenu-icon":"submenu-icon__menu__12-23-3-alpha-0","submenu-icon--left":"submenu-icon--left__menu__12-23-3-alpha-0","submenu-icon--right":"submenu-icon--right__menu__12-23-3-alpha-0","menu__item--disabled":"menu__item--disabled__menu__12-23-3-alpha-0","menu__item--danger":"menu__item--danger__menu__12-23-3-alpha-0","menu__item--current":"menu__item--current__menu__12-23-3-alpha-0","menu__item--selected":"menu__item--selected__menu__12-23-3-alpha-0","menu__separator":"menu__separator__menu__12-23-3-alpha-0","menu__separator__title":"menu__separator__title__menu__12-23-3-alpha-0"};
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"};
171
133
  styleInject(css);
172
134
 
173
135
  /**
package/dist/menu.js CHANGED
@@ -10,139 +10,101 @@ var popover = require('@targetprocess/popover');
10
10
  var classNames = _interopDefault(require('classnames'));
11
11
  var icons = require('@targetprocess/icons');
12
12
 
13
- function _classCallCheck(instance, Constructor) {
14
- if (!(instance instanceof Constructor)) {
15
- throw new TypeError("Cannot call a class as a function");
16
- }
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");
17
19
  }
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);
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);
25
24
  }
26
25
  }
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;
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;
34
30
  }
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;
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;
48
38
  }
49
39
  function _extends() {
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
- }
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]);
58
44
  }
59
- return target;
60
- };
61
- return _extends.apply(this, arguments);
45
+ return n;
46
+ }, _extends.apply(null, arguments);
62
47
  }
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, {
48
+ function _getPrototypeOf(t) {
49
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
50
+ return t.__proto__ || Object.getPrototypeOf(t);
51
+ }, _getPrototypeOf(t);
52
+ }
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, {
68
56
  constructor: {
69
- value: subClass,
70
- writable: true,
71
- configurable: true
57
+ value: t,
58
+ writable: !0,
59
+ configurable: !0
72
60
  }
73
- });
74
- Object.defineProperty(subClass, "prototype", {
75
- writable: false
76
- });
77
- if (superClass) _setPrototypeOf(subClass, superClass);
78
- }
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);
61
+ }), Object.defineProperty(t, "prototype", {
62
+ writable: !1
63
+ }), e && _setPrototypeOf(t, e);
91
64
  }
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];
101
- }
102
- return target;
103
- }
104
- function _objectWithoutProperties(source, excluded) {
105
- if (source == null) return {};
106
- var target = _objectWithoutPropertiesLoose(source, excluded);
107
- var key, i;
65
+ function _objectWithoutProperties(e, t) {
66
+ if (null == e) return {};
67
+ var o,
68
+ r,
69
+ i = _objectWithoutPropertiesLoose(e, t);
108
70
  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
- }
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]);
116
73
  }
117
- return target;
74
+ return i;
118
75
  }
119
- function _assertThisInitialized(self) {
120
- if (self === void 0) {
121
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
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];
122
82
  }
123
- return self;
83
+ return t;
124
84
  }
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);
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);
89
+ }
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);
132
94
  }
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;
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;
139
101
  throw new TypeError("@@toPrimitive must return a primitive value.");
140
102
  }
141
- return (hint === "string" ? String : Number)(input);
103
+ return ("string" === r ? String : Number)(t);
142
104
  }
143
- function _toPropertyKey(arg) {
144
- var key = _toPrimitive(arg, "string");
145
- return typeof key === "symbol" ? key : String(key);
105
+ function _toPropertyKey(t) {
106
+ var i = _toPrimitive(t, "string");
107
+ return "symbol" == typeof i ? i : i + "";
146
108
  }
147
109
 
148
110
  function styleInject(css, ref) {
@@ -172,8 +134,8 @@ function styleInject(css, ref) {
172
134
  }
173
135
  }
174
136
 
175
- var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.menu__menu__12-23-3-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-3-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-3-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-3-alpha-0 {\n padding-left: var(--IconsSizeDefault, 16px);\n }\n.menu__item__menu__12-23-3-alpha-0 .submenu-icon__menu__12-23-3-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-3-alpha-0 .submenu-icon--left__menu__12-23-3-alpha-0 {\n margin-right: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-23-3-alpha-0 .submenu-icon--right__menu__12-23-3-alpha-0 {\n margin-left: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-23-3-alpha-0:not(.menu__item--disabled__menu__12-23-3-alpha-0):hover {\n cursor: pointer;\n }\n.menu__item--disabled__menu__12-23-3-alpha-0 {\n opacity: var(--ControlDisabledOpacity, 0.5);\n cursor: not-allowed;\n }\n.menu__item--danger__menu__12-23-3-alpha-0 {\n color: var(--ActionColorDelete, #AE304A);\n }\n.menu__item--danger__menu__12-23-3-alpha-0:not(.menu__item--disabled__menu__12-23-3-alpha-0):hover {\n background-color: var(--ActionBackgroundDelete, #F3E0E4);\n }\n.menu__item--current__menu__12-23-3-alpha-0 {\n background-color: var(--HighlightBlockBackground, #F5F6F6); /* keyboard current background */\n }\n.menu__item--selected__menu__12-23-3-alpha-0:not(.menu__item--danger__menu__12-23-3-alpha-0) {\n background-color: var(--ActionBackgroundSelected, #F1CE4A);\n }\n.menu__item__menu__12-23-3-alpha-0:not(.menu__item--danger__menu__12-23-3-alpha-0):not(.menu__item--disabled__menu__12-23-3-alpha-0):not(.menu__item--selected__menu__12-23-3-alpha-0):hover {\n background-color: var(--ActionBackgroundHover, #F9E9AE);\n }\n.menu__item__menu__12-23-3-alpha-0:last-child {\n border-radius: 0 0 var(--BorderRadiusDefault, 3px) var(--BorderRadiusDefault, 3px);\n }\n.menu__separator__menu__12-23-3-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-3-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";
176
- var styles = {"menu":"menu__menu__12-23-3-alpha-0","menu__item":"menu__item__menu__12-23-3-alpha-0","menu__item__content":"menu__item__content__menu__12-23-3-alpha-0","menu__item__content--left":"menu__item__content--left__menu__12-23-3-alpha-0","submenu-icon":"submenu-icon__menu__12-23-3-alpha-0","submenu-icon--left":"submenu-icon--left__menu__12-23-3-alpha-0","submenu-icon--right":"submenu-icon--right__menu__12-23-3-alpha-0","menu__item--disabled":"menu__item--disabled__menu__12-23-3-alpha-0","menu__item--danger":"menu__item--danger__menu__12-23-3-alpha-0","menu__item--current":"menu__item--current__menu__12-23-3-alpha-0","menu__item--selected":"menu__item--selected__menu__12-23-3-alpha-0","menu__separator":"menu__separator__menu__12-23-3-alpha-0","menu__separator__title":"menu__separator__title__menu__12-23-3-alpha-0"};
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"};
177
139
  styleInject(css);
178
140
 
179
141
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@targetprocess/menu",
3
- "version": "12.23.3-alpha.0",
3
+ "version": "12.23.4-alpha.0",
4
4
  "description": "",
5
5
  "main": "dist/menu.js",
6
6
  "module": "dist/menu.es.js",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@targetprocess/icons": "^12.23.0",
14
- "@targetprocess/popover": "^12.23.3-alpha.0",
14
+ "@targetprocess/popover": "^12.23.4-alpha.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": "f06f19623c59a5507d8cc5f1cd78c77a6cd1b3df"
24
+ "gitHead": "99534dff51718fc768b54c72fef84f2853e37818"
25
25
  }