myshell-react-lib 0.1.36 → 0.1.38
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 ?
|
|
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,10 +11487,10 @@ 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
|
|
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
|
-
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",
|
|
11493
|
+
className: cn("relative w-full flex justify-between items-center h-13 md:h-15", searchElement && "pt-5 pb-1.5 md:pt-2 md:pb-2"),
|
|
11494
11494
|
children: [
|
|
11495
11495
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", {
|
|
11496
11496
|
className: "flex-1 flex items-center justify-start",
|
|
@@ -11521,8 +11521,8 @@ function TopNavigationBar(param) {
|
|
|
11521
11521
|
]
|
|
11522
11522
|
}),
|
|
11523
11523
|
title && !(avatar === null || avatar === void 0 ? void 0 : avatar.logo) && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Display, {
|
|
11524
|
-
size:
|
|
11525
|
-
className: "line-clamp-1",
|
|
11524
|
+
size: "sm",
|
|
11525
|
+
className: "line-clamp-1 text-xl",
|
|
11526
11526
|
children: title
|
|
11527
11527
|
})
|
|
11528
11528
|
]
|