@ctlyst.id/internal-ui 3.1.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -2513,8 +2513,8 @@ import { Box as Box15, Image as Image2, useColorModeValue as useColorModeValue2
2513
2513
  import { jsx as jsx33 } from "react/jsx-runtime";
2514
2514
  var Logo = ({ url, imageUrl, height }) => {
2515
2515
  if (url)
2516
- return /* @__PURE__ */ jsx33(Box15, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ jsx33(Image2, { w: "100%", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl }) });
2517
- return /* @__PURE__ */ jsx33(Image2, { w: "100%", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl });
2516
+ return /* @__PURE__ */ jsx33(Box15, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ jsx33(Image2, { w: "initial", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl, objectFit: "contain" }) });
2517
+ return /* @__PURE__ */ jsx33(Image2, { w: "initial", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl, objectFit: "contain" });
2518
2518
  };
2519
2519
  var XMSLogo = () => /* @__PURE__ */ jsx33(
2520
2520
  Image2,
@@ -11065,12 +11065,7 @@ import * as Icon7 from "@ctlyst.id/internal-icon";
11065
11065
  import { Fragment as Fragment9, jsx as jsx59, jsxs as jsxs25 } from "react/jsx-runtime";
11066
11066
  var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, setActive, active }) => {
11067
11067
  return /* @__PURE__ */ jsx59(Box28, { as: motion.div, animate: { padding: isCollapse ? "8px 16px" : "8px" }, children: /* @__PURE__ */ jsx59(Accordion2, { index: menu.findIndex((item) => item.children.some((child) => child.navLink === active)), children: menu.map((item) => {
11068
- let isActive;
11069
- if (item.navLink.includes("/")) {
11070
- isActive = item.navLink === active;
11071
- } else {
11072
- isActive = active == null ? void 0 : active.includes(item.navLink);
11073
- }
11068
+ const isActive = active == null ? void 0 : active.includes(item.navLink);
11074
11069
  return /* @__PURE__ */ jsx59(AccordionItem2, { mt: "4", children: ({ isExpanded }) => {
11075
11070
  const isOpenOptions = isCollapse || !isCollapse && !isExpanded;
11076
11071
  const noChild = !item.children.length;