@targetprocess/menu 12.27.1 → 12.27.4
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/Menu.jsx +3 -1
- package/dist/menu.es.js +4 -3
- package/dist/menu.js +4 -3
- package/package.json +4 -4
package/Menu.jsx
CHANGED
|
@@ -277,6 +277,7 @@ export class Menu extends React.Component {
|
|
|
277
277
|
inline={this.props.appendInline}
|
|
278
278
|
relativeToParent={this.props.relativeToParent}
|
|
279
279
|
getPopoverPosition={getPopoverPosition}
|
|
280
|
+
getContainerElement={this.props.getContainerElement}
|
|
280
281
|
>
|
|
281
282
|
{trigger}
|
|
282
283
|
</Popover>
|
|
@@ -320,7 +321,8 @@ Menu.propTypes = {
|
|
|
320
321
|
isOpenMenu: PropTypes.bool,
|
|
321
322
|
currentEvent: PropTypes.string,
|
|
322
323
|
onChangeMenuState: PropTypes.func
|
|
323
|
-
})
|
|
324
|
+
}),
|
|
325
|
+
getContainerElement: Popover.propTypes && Popover.propTypes.getContainerElement
|
|
324
326
|
}
|
|
325
327
|
|
|
326
328
|
Menu.defaultProps = {
|
package/dist/menu.es.js
CHANGED
|
@@ -166,8 +166,8 @@ function styleInject(css, ref) {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.menu__menu__12-27-
|
|
170
|
-
var styles = {"menu":"menu__menu__12-27-
|
|
169
|
+
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.menu__menu__12-27-4 {\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-27-4 {\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-27-4 {\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-27-4 {\n padding-left: var(--IconsSizeDefault, 16px);\n }\n.menu__item__menu__12-27-4 .submenu-icon__menu__12-27-4 {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n }\n.menu__item__menu__12-27-4 .submenu-icon--left__menu__12-27-4 {\n margin-right: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-27-4 .submenu-icon--right__menu__12-27-4 {\n margin-left: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-27-4:not(.menu__item--disabled__menu__12-27-4):hover {\n cursor: pointer;\n }\n.menu__item--disabled__menu__12-27-4 {\n opacity: var(--ControlDisabledOpacity, 0.5);\n cursor: not-allowed;\n }\n.menu__item--danger__menu__12-27-4 {\n color: var(--ActionColorDelete, #AE304A);\n }\n.menu__item--danger__menu__12-27-4:not(.menu__item--disabled__menu__12-27-4):hover {\n background-color: var(--ActionBackgroundDelete, #F3E0E4);\n }\n.menu__item--current__menu__12-27-4 {\n background-color: var(--HighlightBlockBackground, #F5F6F6); /* keyboard current background */\n }\n.menu__item--selected__menu__12-27-4:not(.menu__item--danger__menu__12-27-4) {\n background-color: var(--ActionBackgroundSelected, #F1CE4A);\n }\n.menu__item__menu__12-27-4:not(.menu__item--danger__menu__12-27-4):not(.menu__item--disabled__menu__12-27-4):not(.menu__item--selected__menu__12-27-4):hover {\n background-color: var(--ActionBackgroundHover, #F9E9AE);\n }\n.menu__item__menu__12-27-4:last-child {\n border-radius: 0 0 var(--BorderRadiusDefault, 3px) var(--BorderRadiusDefault, 3px);\n }\n.menu__separator__menu__12-27-4 {\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-27-4 {\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-27-4","menu__item":"menu__item__menu__12-27-4","menu__item__content":"menu__item__content__menu__12-27-4","menu__item__content--left":"menu__item__content--left__menu__12-27-4","submenu-icon":"submenu-icon__menu__12-27-4","submenu-icon--left":"submenu-icon--left__menu__12-27-4","submenu-icon--right":"submenu-icon--right__menu__12-27-4","menu__item--disabled":"menu__item--disabled__menu__12-27-4","menu__item--danger":"menu__item--danger__menu__12-27-4","menu__item--current":"menu__item--current__menu__12-27-4","menu__item--selected":"menu__item--selected__menu__12-27-4","menu__separator":"menu__separator__menu__12-27-4","menu__separator__title":"menu__separator__title__menu__12-27-4"};
|
|
171
171
|
styleInject(css);
|
|
172
172
|
|
|
173
173
|
/**
|
|
@@ -567,7 +567,8 @@ var Menu = /*#__PURE__*/function (_React$Component) {
|
|
|
567
567
|
body: renderBody(menuItems),
|
|
568
568
|
inline: this.props.appendInline,
|
|
569
569
|
relativeToParent: this.props.relativeToParent,
|
|
570
|
-
getPopoverPosition: getPopoverPosition
|
|
570
|
+
getPopoverPosition: getPopoverPosition,
|
|
571
|
+
getContainerElement: this.props.getContainerElement
|
|
571
572
|
}, trigger);
|
|
572
573
|
}
|
|
573
574
|
}]);
|
package/dist/menu.js
CHANGED
|
@@ -172,8 +172,8 @@ function styleInject(css, ref) {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.menu__menu__12-27-
|
|
176
|
-
var styles = {"menu":"menu__menu__12-27-
|
|
175
|
+
var css = "/*********************************************************************\n* © Copyright IBM Corp. 2024\n*********************************************************************/\n.menu__menu__12-27-4 {\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-27-4 {\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-27-4 {\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-27-4 {\n padding-left: var(--IconsSizeDefault, 16px);\n }\n.menu__item__menu__12-27-4 .submenu-icon__menu__12-27-4 {\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n }\n.menu__item__menu__12-27-4 .submenu-icon--left__menu__12-27-4 {\n margin-right: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-27-4 .submenu-icon--right__menu__12-27-4 {\n margin-left: var(--SpaceS, 8px);\n }\n.menu__item__menu__12-27-4:not(.menu__item--disabled__menu__12-27-4):hover {\n cursor: pointer;\n }\n.menu__item--disabled__menu__12-27-4 {\n opacity: var(--ControlDisabledOpacity, 0.5);\n cursor: not-allowed;\n }\n.menu__item--danger__menu__12-27-4 {\n color: var(--ActionColorDelete, #AE304A);\n }\n.menu__item--danger__menu__12-27-4:not(.menu__item--disabled__menu__12-27-4):hover {\n background-color: var(--ActionBackgroundDelete, #F3E0E4);\n }\n.menu__item--current__menu__12-27-4 {\n background-color: var(--HighlightBlockBackground, #F5F6F6); /* keyboard current background */\n }\n.menu__item--selected__menu__12-27-4:not(.menu__item--danger__menu__12-27-4) {\n background-color: var(--ActionBackgroundSelected, #F1CE4A);\n }\n.menu__item__menu__12-27-4:not(.menu__item--danger__menu__12-27-4):not(.menu__item--disabled__menu__12-27-4):not(.menu__item--selected__menu__12-27-4):hover {\n background-color: var(--ActionBackgroundHover, #F9E9AE);\n }\n.menu__item__menu__12-27-4:last-child {\n border-radius: 0 0 var(--BorderRadiusDefault, 3px) var(--BorderRadiusDefault, 3px);\n }\n.menu__separator__menu__12-27-4 {\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-27-4 {\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-27-4","menu__item":"menu__item__menu__12-27-4","menu__item__content":"menu__item__content__menu__12-27-4","menu__item__content--left":"menu__item__content--left__menu__12-27-4","submenu-icon":"submenu-icon__menu__12-27-4","submenu-icon--left":"submenu-icon--left__menu__12-27-4","submenu-icon--right":"submenu-icon--right__menu__12-27-4","menu__item--disabled":"menu__item--disabled__menu__12-27-4","menu__item--danger":"menu__item--danger__menu__12-27-4","menu__item--current":"menu__item--current__menu__12-27-4","menu__item--selected":"menu__item--selected__menu__12-27-4","menu__separator":"menu__separator__menu__12-27-4","menu__separator__title":"menu__separator__title__menu__12-27-4"};
|
|
177
177
|
styleInject(css);
|
|
178
178
|
|
|
179
179
|
/**
|
|
@@ -573,7 +573,8 @@ var Menu = /*#__PURE__*/function (_React$Component) {
|
|
|
573
573
|
body: renderBody(menuItems),
|
|
574
574
|
inline: this.props.appendInline,
|
|
575
575
|
relativeToParent: this.props.relativeToParent,
|
|
576
|
-
getPopoverPosition: getPopoverPosition
|
|
576
|
+
getPopoverPosition: getPopoverPosition,
|
|
577
|
+
getContainerElement: this.props.getContainerElement
|
|
577
578
|
}, trigger);
|
|
578
579
|
}
|
|
579
580
|
}]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@targetprocess/menu",
|
|
3
|
-
"version": "12.27.
|
|
3
|
+
"version": "12.27.4",
|
|
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.27.
|
|
14
|
-
"@targetprocess/popover": "^12.27.
|
|
13
|
+
"@targetprocess/icons": "^12.27.4",
|
|
14
|
+
"@targetprocess/popover": "^12.27.4",
|
|
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": "d651f7c71f39fec22aa1b55b180d62ccdb8a1b21"
|
|
25
25
|
}
|