@cnc-ti/layout-basic 8.8.1 → 8.8.2
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.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3175,7 +3175,8 @@ var availableApps = {
|
|
|
3175
3175
|
CDD: { name: "Or\xE1culoS", url: process.env.NEXT_PUBLIC_CDD_APP_URL ?? "https://oraculos.cnc.org.br/", icon: "fa-solid fa-database", color: "#00B8D9" }
|
|
3176
3176
|
};
|
|
3177
3177
|
function AppsMenu({
|
|
3178
|
-
apps = Object.keys(availableApps).map((key) => ({ code: key, url: availableApps[key].url }))
|
|
3178
|
+
apps = Object.keys(availableApps).map((key) => ({ code: key, url: availableApps[key].url })),
|
|
3179
|
+
show = false
|
|
3179
3180
|
}) {
|
|
3180
3181
|
const [isOpen, setIsOpen] = useState(false);
|
|
3181
3182
|
const menuRef = useRef(null);
|
|
@@ -3197,6 +3198,9 @@ function AppsMenu({
|
|
|
3197
3198
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
3198
3199
|
};
|
|
3199
3200
|
}, [isOpen]);
|
|
3201
|
+
if (!show) {
|
|
3202
|
+
return null;
|
|
3203
|
+
}
|
|
3200
3204
|
return /* @__PURE__ */ jsxs4("div", { className: "cnc-relative cnc-flex cnc-items-center cnc-h-full", ref: menuRef, children: [
|
|
3201
3205
|
/* @__PURE__ */ jsx4(
|
|
3202
3206
|
"button",
|