@copart/ops-tool-kit 1.12.3-alpha.2 → 1.12.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/ops-tool-kit.js +26 -8
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -47,7 +47,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
47
47
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
48
48
|
|
|
49
49
|
const name$r = "@copart/ops-tool-kit";
|
|
50
|
-
const version$8 = "1.12.3
|
|
50
|
+
const version$8 = "1.12.3";
|
|
51
51
|
const main$1 = "dist/ops-tool-kit.js";
|
|
52
52
|
const style = "dist/ops-tool-kit.css";
|
|
53
53
|
const files = [
|
|
@@ -68849,6 +68849,11 @@ var NavigationMenuLevel1 = function NavigationMenuLevel1(_ref4) {
|
|
|
68849
68849
|
});
|
|
68850
68850
|
}) : null));
|
|
68851
68851
|
};
|
|
68852
|
+
var statusColors = {
|
|
68853
|
+
1: '#C50F1F',
|
|
68854
|
+
2: '#FFAA44',
|
|
68855
|
+
3: '#6BB700'
|
|
68856
|
+
};
|
|
68852
68857
|
var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref5) {
|
|
68853
68858
|
var navItem = _ref5.navItem,
|
|
68854
68859
|
isHover = _ref5.isHover,
|
|
@@ -68943,11 +68948,20 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref5) {
|
|
|
68943
68948
|
} else if (allowMultipleNavItemsOpen) {
|
|
68944
68949
|
highlight = selected === navItem.fullRoute;
|
|
68945
68950
|
}
|
|
68951
|
+
|
|
68952
|
+
// Check if highlightMenu prop is true and highlight is false
|
|
68953
|
+
var shouldShowHighlightBackground = navItem.highlightMenu === true && !highlight;
|
|
68954
|
+
|
|
68955
|
+
// Use highlightMenuColor if it's a string, otherwise use default red color
|
|
68956
|
+
var backgroundColor = shouldShowHighlightBackground ? typeof navItem.highlightMenuColor === 'string' ? navItem.highlightMenuColor : statusColors[1] : '';
|
|
68946
68957
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
68947
68958
|
className: "utilities_ops-app-frame_NavigationBar_NavigationBar--NavMenuLevel2",
|
|
68948
68959
|
animate: isMenuExpanded ? 'open' : 'closed'
|
|
68949
68960
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
68950
68961
|
onClick: handleItemClick,
|
|
68962
|
+
style: {
|
|
68963
|
+
backgroundColor: backgroundColor
|
|
68964
|
+
},
|
|
68951
68965
|
className: _getClassName("NavItem ".concat(highlight ? 'expandedMenu' : '', " ").concat(selected === navItem.fullRoute && navItem !== null && navItem !== void 0 && navItem.subMenuItems ? 'NavItemSelected' : '', " ").concat(isDisabled ? 'disabled' : ''), _styleModuleImportMap$1, {
|
|
68952
68966
|
"handleMissingStyleName": "warn"
|
|
68953
68967
|
})
|
|
@@ -68974,6 +68988,15 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref5) {
|
|
|
68974
68988
|
});
|
|
68975
68989
|
}
|
|
68976
68990
|
},
|
|
68991
|
+
leave: {
|
|
68992
|
+
animation: 'slideUp',
|
|
68993
|
+
duration: 200,
|
|
68994
|
+
complete: function complete(elements) {
|
|
68995
|
+
elements.forEach(function (el) {
|
|
68996
|
+
el.style.removeProperty("height");
|
|
68997
|
+
});
|
|
68998
|
+
}
|
|
68999
|
+
},
|
|
68977
69000
|
style: {
|
|
68978
69001
|
marginLeft: '10px',
|
|
68979
69002
|
marginTop: '3px',
|
|
@@ -68996,11 +69019,6 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref5) {
|
|
|
68996
69019
|
});
|
|
68997
69020
|
}) : null));
|
|
68998
69021
|
};
|
|
68999
|
-
var statusColors = {
|
|
69000
|
-
1: '#C50F1F',
|
|
69001
|
-
2: '#FFAA44',
|
|
69002
|
-
3: '#6BB700'
|
|
69003
|
-
};
|
|
69004
69022
|
var NavigationMenuLevel3 = function NavigationMenuLevel3(_ref6) {
|
|
69005
69023
|
var navItem = _ref6.navItem,
|
|
69006
69024
|
count = _ref6.count,
|
|
@@ -82828,10 +82846,10 @@ var sharedStore = createCommonjsModule(function (module) {
|
|
|
82828
82846
|
var SHARED = '__core-js_shared__';
|
|
82829
82847
|
var store = module.exports = globalThis_1[SHARED] || defineGlobalProperty(SHARED, {});
|
|
82830
82848
|
(store.versions || (store.versions = [])).push({
|
|
82831
|
-
version: '3.
|
|
82849
|
+
version: '3.45.1',
|
|
82832
82850
|
mode: 'global',
|
|
82833
82851
|
copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
|
|
82834
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
82852
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE',
|
|
82835
82853
|
source: 'https://github.com/zloirock/core-js'
|
|
82836
82854
|
});
|
|
82837
82855
|
});
|