@linzjs/lui 11.10.2 → 11.10.3

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/lui.esm.js CHANGED
@@ -20267,7 +20267,7 @@ var LOLDrawerMenuFirmSwitcher = function LOLDrawerMenuFirmSwitcher(props) {
20267
20267
  });
20268
20268
  };
20269
20269
 
20270
- var _excluded$5 = ["appSpecificLinks", "appSpecificSections", "path", "hasStickyHeader"];
20270
+ var _excluded$5 = ["appSpecificLinks", "appSpecificSections", "path", "hasStickyHeader", "showRequestsLink"];
20271
20271
  var LOLDrawerMenu = function LOLDrawerMenu(props) {
20272
20272
  return React__default.createElement(LuiDrawerMenu, {
20273
20273
  hasStickyHeader: props.hasStickyHeader
@@ -20284,6 +20284,7 @@ var LOLCommonDrawerMenu = function LOLCommonDrawerMenu(props) {
20284
20284
  appSpecificSections = props.appSpecificSections,
20285
20285
  path = props.path,
20286
20286
  hasStickyHeader = props.hasStickyHeader,
20287
+ showRequestsLink = props.showRequestsLink,
20287
20288
  restOfProps = _objectWithoutPropertiesLoose(props, _excluded$5);
20288
20289
 
20289
20290
  return React__default.createElement(LOLDrawerMenu, {
@@ -20292,7 +20293,7 @@ var LOLCommonDrawerMenu = function LOLCommonDrawerMenu(props) {
20292
20293
  pathname: path
20293
20294
  }, restOfProps)), React__default.createElement(LOLDrawerMenuFirmSwitcher, {
20294
20295
  minimumFilterCount: 5
20295
- }), appSpecificLinks && React__default.createElement(React__default.Fragment, null, React__default.createElement(LuiDrawerMenuDivider, null), appSpecificLinks), React__default.createElement(LuiDrawerMenuDivider, null), React__default.createElement(LOLCommonDrawerMenuAfterLinks, {
20296
+ }), showRequestsLink && React__default.createElement(React__default.Fragment, null, React__default.createElement(LuiDrawerMenuDivider, null), React__default.createElement(LOLCommonMenuRequestsLink, null)), appSpecificLinks && React__default.createElement(React__default.Fragment, null, React__default.createElement(LuiDrawerMenuDivider, null), appSpecificLinks), React__default.createElement(LuiDrawerMenuDivider, null), React__default.createElement(LOLCommonDrawerMenuAfterLinks, {
20296
20297
  path: path
20297
20298
  }));
20298
20299
  };
@@ -20319,6 +20320,28 @@ var LOLCommonDrawerMenuAfterLinks = function LOLCommonDrawerMenuAfterLinks(props
20319
20320
  }));
20320
20321
  };
20321
20322
 
20323
+ var LOLCommonMenuRequestsLink = function LOLCommonMenuRequestsLink() {
20324
+ var openRequestsApp = function openRequestsApp() {
20325
+ window.open('/requests', '_blank');
20326
+ };
20327
+
20328
+ return React__default.createElement(LuiDrawerMenuOption, {
20329
+ label: 'Create request',
20330
+ onClick: function onClick() {
20331
+ openRequestsApp();
20332
+ },
20333
+ badge: React__default.createElement("img", {
20334
+ src: ExternalIcon,
20335
+ alt: "Link opens in a new tab",
20336
+ style: {
20337
+ width: '16px',
20338
+ height: '16px',
20339
+ marginTop: '4px'
20340
+ }
20341
+ })
20342
+ });
20343
+ };
20344
+
20322
20345
  var id = 0;
20323
20346
 
20324
20347
  var getKey = function getKey() {
@@ -20353,7 +20376,7 @@ var LuiTooltip = function LuiTooltip(props) {
20353
20376
 
20354
20377
  (_document$getElementB = document.getElementById(id)) == null ? void 0 : (_document$getElementB2 = _document$getElementB._tippy) == null ? void 0 : _document$getElementB2.destroy();
20355
20378
  };
20356
- }, [id, message, placement, trigger]);
20379
+ }, [id, message, placement, trigger, animation]);
20357
20380
  return React__default.createElement("span", {
20358
20381
  id: id
20359
20382
  }, children);