@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.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.js
CHANGED
@@ -2810,8 +2810,8 @@ var import_react42 = require("@chakra-ui/react");
|
|
2810
2810
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
2811
2811
|
var Logo = ({ url, imageUrl, height }) => {
|
2812
2812
|
if (url)
|
2813
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react42.Box, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react42.Image, { w: "
|
2814
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react42.Image, { w: "
|
2813
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react42.Box, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react42.Image, { w: "initial", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl, objectFit: "contain" }) });
|
2814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react42.Image, { w: "initial", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl, objectFit: "contain" });
|
2815
2815
|
};
|
2816
2816
|
var XMSLogo = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
2817
2817
|
import_react42.Image,
|
@@ -11214,12 +11214,7 @@ var Icon7 = __toESM(require("@ctlyst.id/internal-icon"));
|
|
11214
11214
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
11215
11215
|
var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, setActive, active }) => {
|
11216
11216
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react108.Box, { as: motion.div, animate: { padding: isCollapse ? "8px 16px" : "8px" }, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react108.Accordion, { index: menu.findIndex((item) => item.children.some((child) => child.navLink === active)), children: menu.map((item) => {
|
11217
|
-
|
11218
|
-
if (item.navLink.includes("/")) {
|
11219
|
-
isActive = item.navLink === active;
|
11220
|
-
} else {
|
11221
|
-
isActive = active == null ? void 0 : active.includes(item.navLink);
|
11222
|
-
}
|
11217
|
+
const isActive = active == null ? void 0 : active.includes(item.navLink);
|
11223
11218
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react108.AccordionItem, { mt: "4", children: ({ isExpanded }) => {
|
11224
11219
|
const isOpenOptions = isCollapse || !isCollapse && !isExpanded;
|
11225
11220
|
const noChild = !item.children.length;
|