@copart/ops-tool-kit 1.12.1-alpha.12 → 1.12.1-alpha.13
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 +4 -12
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -32,7 +32,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
32
32
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
33
33
|
|
|
34
34
|
const name$r = "@copart/ops-tool-kit";
|
|
35
|
-
const version$7 = "1.12.1-alpha.
|
|
35
|
+
const version$7 = "1.12.1-alpha.13";
|
|
36
36
|
const main$1 = "dist/ops-tool-kit.js";
|
|
37
37
|
const style = "dist/ops-tool-kit.css";
|
|
38
38
|
const files = [
|
|
@@ -32907,14 +32907,6 @@ var AppBar$1 = function AppBar(props) {
|
|
|
32907
32907
|
setMobileMenuVisible(false);
|
|
32908
32908
|
}
|
|
32909
32909
|
};
|
|
32910
|
-
var calculateHeight = function calculateHeight() {
|
|
32911
|
-
var testDiv = document.createElement('div');
|
|
32912
|
-
testDiv.style.height = '100dvh';
|
|
32913
|
-
document.body.appendChild(testDiv);
|
|
32914
|
-
var supportsDvh = window.getComputedStyle(testDiv).height.includes('dvh');
|
|
32915
|
-
document.body.removeChild(testDiv);
|
|
32916
|
-
return supportsDvh ? "calc(100dvh - ".concat(notifications !== null && notifications !== void 0 && notifications.length ? sideBarTopValue : 48, "px)") : "calc(100vh - ".concat(notifications !== null && notifications !== void 0 && notifications.length ? sideBarTopValue : 48, "px)");
|
|
32917
|
-
};
|
|
32918
32910
|
var stack = (_window$toolkitEnv4 = window.toolkitEnv) !== null && _window$toolkitEnv4 !== void 0 && _window$toolkitEnv4.STACK ? window.toolkitEnv.STACK : process.env.STACK;
|
|
32919
32911
|
var mobileMenuItems = [{
|
|
32920
32912
|
name: 'Help',
|
|
@@ -33045,7 +33037,7 @@ var AppBar$1 = function AppBar(props) {
|
|
|
33045
33037
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
33046
33038
|
className: "utilities_ops-app-frame_AppBarComponent_AppBar--innerNotificationDiv",
|
|
33047
33039
|
style: {
|
|
33048
|
-
height:
|
|
33040
|
+
height: "calc(100vh - ".concat(notifications !== null && notifications !== void 0 && notifications.length ? sideBarTopValue : 48, "px)")
|
|
33049
33041
|
}
|
|
33050
33042
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
33051
33043
|
className: "utilities_ops-app-frame_AppBarComponent_AppBar--notificationsHeader"
|
|
@@ -33071,9 +33063,9 @@ var AppBar$1 = function AppBar(props) {
|
|
|
33071
33063
|
onClick: closeSidebar
|
|
33072
33064
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
33073
33065
|
className: "utilities_ops-app-frame_AppBarComponent_AppBar--settingsSidebar",
|
|
33074
|
-
style:
|
|
33066
|
+
style: {
|
|
33075
33067
|
height: "calc(100dvh - ".concat(notifications !== null && notifications !== void 0 && notifications.length ? sideBarTopValue : 48, "px)")
|
|
33076
|
-
}
|
|
33068
|
+
}
|
|
33077
33069
|
}, !stack || stack === 'c' ? /*#__PURE__*/React__default["default"].createElement(SettingsView$2, {
|
|
33078
33070
|
onSave: onSave,
|
|
33079
33071
|
onLogoutItemClicked: onLogoutItemClicked,
|