@ctlyst.id/internal-ui 3.1.0 → 3.1.1
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.js +3 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/index.css +0 -50
- package/dist/index.css.map +0 -1
- package/dist/poppins-latin-400-normal-SFWTNBQB.woff2 +0 -0
- package/dist/poppins-latin-400-normal-ZPTYLX7I.woff +0 -0
- package/dist/poppins-latin-ext-400-normal-7PFKV6Y5.woff +0 -0
- package/dist/poppins-latin-ext-400-normal-K3FV5HAI.woff2 +0 -0
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: "
|
2517
|
-
return /* @__PURE__ */ jsx33(Image2, { w: "
|
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
|
-
|
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;
|