@targetprocess/menu 12.23.3 → 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.
- package/dist/menu.es.js +77 -115
- package/dist/menu.js +77 -115
- 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
|
|
8
|
-
if (
|
|
9
|
-
|
|
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(
|
|
13
|
-
for (var
|
|
14
|
-
var
|
|
15
|
-
|
|
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(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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 (
|
|
45
|
-
for (var
|
|
46
|
-
var
|
|
47
|
-
for (var
|
|
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
|
|
54
|
-
};
|
|
55
|
-
return _extends.apply(this, arguments);
|
|
39
|
+
return n;
|
|
40
|
+
}, _extends.apply(null, arguments);
|
|
56
41
|
}
|
|
57
|
-
function
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
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:
|
|
64
|
-
writable:
|
|
65
|
-
configurable:
|
|
51
|
+
value: t,
|
|
52
|
+
writable: !0,
|
|
53
|
+
configurable: !0
|
|
66
54
|
}
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
|
|
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
|
|
87
|
-
if (
|
|
88
|
-
var
|
|
89
|
-
|
|
90
|
-
|
|
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
|
|
104
|
-
for (
|
|
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
|
|
68
|
+
return i;
|
|
112
69
|
}
|
|
113
|
-
function
|
|
114
|
-
if (
|
|
115
|
-
|
|
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
|
|
77
|
+
return t;
|
|
118
78
|
}
|
|
119
|
-
function _possibleConstructorReturn(
|
|
120
|
-
if (
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
return
|
|
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(
|
|
128
|
-
if (
|
|
129
|
-
var
|
|
130
|
-
if (
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
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 (
|
|
97
|
+
return ("string" === r ? String : Number)(t);
|
|
136
98
|
}
|
|
137
|
-
function _toPropertyKey(
|
|
138
|
-
var
|
|
139
|
-
return
|
|
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-
|
|
170
|
-
var styles = {"menu":"menu__menu__12-23-
|
|
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
|
|
14
|
-
if (
|
|
15
|
-
|
|
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(
|
|
19
|
-
for (var
|
|
20
|
-
var
|
|
21
|
-
|
|
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(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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 (
|
|
51
|
-
for (var
|
|
52
|
-
var
|
|
53
|
-
for (var
|
|
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
|
|
60
|
-
};
|
|
61
|
-
return _extends.apply(this, arguments);
|
|
45
|
+
return n;
|
|
46
|
+
}, _extends.apply(null, arguments);
|
|
62
47
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
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:
|
|
70
|
-
writable:
|
|
71
|
-
configurable:
|
|
57
|
+
value: t,
|
|
58
|
+
writable: !0,
|
|
59
|
+
configurable: !0
|
|
72
60
|
}
|
|
73
|
-
})
|
|
74
|
-
|
|
75
|
-
|
|
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
|
|
93
|
-
if (
|
|
94
|
-
var
|
|
95
|
-
|
|
96
|
-
|
|
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
|
|
110
|
-
for (
|
|
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
|
|
74
|
+
return i;
|
|
118
75
|
}
|
|
119
|
-
function
|
|
120
|
-
if (
|
|
121
|
-
|
|
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
|
|
83
|
+
return t;
|
|
124
84
|
}
|
|
125
|
-
function _possibleConstructorReturn(
|
|
126
|
-
if (
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
return
|
|
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(
|
|
134
|
-
if (
|
|
135
|
-
var
|
|
136
|
-
if (
|
|
137
|
-
var
|
|
138
|
-
if (
|
|
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 (
|
|
103
|
+
return ("string" === r ? String : Number)(t);
|
|
142
104
|
}
|
|
143
|
-
function _toPropertyKey(
|
|
144
|
-
var
|
|
145
|
-
return
|
|
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-
|
|
176
|
-
var styles = {"menu":"menu__menu__12-23-
|
|
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
|
+
"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.
|
|
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": "
|
|
24
|
+
"gitHead": "99534dff51718fc768b54c72fef84f2853e37818"
|
|
25
25
|
}
|