myshell-react-lib 0.1.36 → 0.1.37

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/index.cjs CHANGED
@@ -11463,7 +11463,7 @@ var import_react14 = require("react");
11463
11463
  var import_react_use7 = require("react-use");
11464
11464
  var import_jsx_runtime43 = require("react/jsx-runtime");
11465
11465
  function TopNavigationBar(param) {
11466
- var searchElement = param.searchElement, title = param.title, border = param.border, backUrl = param.backUrl, children = param.children, _param_hasBackground = param.hasBackground, hasBackground = _param_hasBackground === void 0 ? true : _param_hasBackground, avatar = param.avatar, onBack = param.onBack, _param_pageType = param.pageType, pageType = _param_pageType === void 0 ? 2 : _param_pageType;
11466
+ var searchElement = param.searchElement, title = param.title, border = param.border, backUrl = param.backUrl, children = param.children, _param_hasBackground = param.hasBackground, hasBackground = _param_hasBackground === void 0 ? false : _param_hasBackground, avatar = param.avatar, onBack = param.onBack, _param_pageType = param.pageType, pageType = _param_pageType === void 0 ? 2 : _param_pageType, className = param.className;
11467
11467
  var isMobile2 = (0, import_react_use7.useMedia)("(max-width: 768px)");
11468
11468
  var navbarRef = (0, import_react14.useRef)(null);
11469
11469
  var _ref = _sliced_to_array((0, import_react14.useState)(hasBackground), 2), showBackground = _ref[0], setShowBackground = _ref[1];
@@ -11487,7 +11487,7 @@ function TopNavigationBar(param) {
11487
11487
  ]);
11488
11488
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", {
11489
11489
  ref: navbarRef,
11490
- className: cn("w-full flex flex-col md:flex-row justify-center items-center px-4 md:px-6", !isMobile2 && border && "border-b border-Colors-Border-Default", showBackground && "bg-Colors-Background-Normal-Primary-Default"),
11490
+ className: cn("w-full flex flex-col md:flex-row justify-center items-center px-4 md:px-6", !isMobile2 && border && "border-b border-Colors-Border-Default", showBackground ? "bg-Colors-Background-Normal-Primary-Default" : "bg-cc-Button-Plain-bg-default md:bg-Colors-Background-Normal-Primary-Default", className),
11491
11491
  children: [
11492
11492
  /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", {
11493
11493
  className: "relative w-full flex justify-between items-center h-13 md:h-15 pt-5 pb-1.5 md:pt-2 md:pb-2",