nexus-shared 1.0.9 → 1.1.0
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 +0 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -7
- package/dist/index.d.ts +1 -7
- package/dist/index.js +1 -37
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.css +0 -975
- package/dist/index.css.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -4,13 +4,11 @@ var dotenv = require('dotenv');
|
|
|
4
4
|
var Link = require('next/link');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
var Script = require('next/script');
|
|
8
7
|
|
|
9
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
9
|
|
|
11
10
|
var Link__default = /*#__PURE__*/_interopDefault(Link);
|
|
12
11
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
13
|
-
var Script__default = /*#__PURE__*/_interopDefault(Script);
|
|
14
12
|
|
|
15
13
|
// src/load-env.ts
|
|
16
14
|
dotenv.config();
|
|
@@ -2608,41 +2606,6 @@ var LayoutHelpers = ({ globalLayout }) => {
|
|
|
2608
2606
|
}, []);
|
|
2609
2607
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nexus-popup-container" });
|
|
2610
2608
|
};
|
|
2611
|
-
var GlobalLayout = async ({ children, globalLayout, bodyClassName }) => {
|
|
2612
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("html", { lang: "en", children: [
|
|
2613
|
-
/* @__PURE__ */ jsxRuntime.jsxs("head", { children: [
|
|
2614
|
-
/* @__PURE__ */ jsxRuntime.jsx("title", { children: globalLayout.defaultDocumentTitle }),
|
|
2615
|
-
/* @__PURE__ */ jsxRuntime.jsx("meta", { name: "description", content: globalLayout.defaultDocumentDescription }),
|
|
2616
|
-
/* @__PURE__ */ jsxRuntime.jsx("meta", { name: "keywords", content: globalLayout.defaultDocumentKeywords.join(", ") }),
|
|
2617
|
-
/* @__PURE__ */ jsxRuntime.jsx("link", { rel: "icon", href: "/favicon.ico" }),
|
|
2618
|
-
/* @__PURE__ */ jsxRuntime.jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0" }),
|
|
2619
|
-
/* @__PURE__ */ jsxRuntime.jsx("style", { id: "nexus-styles" })
|
|
2620
|
-
] }),
|
|
2621
|
-
/* @__PURE__ */ jsxRuntime.jsxs("body", { className: bodyClassName, children: [
|
|
2622
|
-
/* @__PURE__ */ jsxRuntime.jsx(LayoutHelpers, { globalLayout }),
|
|
2623
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2624
|
-
"div",
|
|
2625
|
-
{
|
|
2626
|
-
style: {
|
|
2627
|
-
zIndex: "1000",
|
|
2628
|
-
width: "100vw",
|
|
2629
|
-
height: "100vh",
|
|
2630
|
-
position: "fixed",
|
|
2631
|
-
display: "flex",
|
|
2632
|
-
justifyContent: "center",
|
|
2633
|
-
alignItems: "center",
|
|
2634
|
-
backgroundColor: "rgb(40, 40, 40)"
|
|
2635
|
-
},
|
|
2636
|
-
id: ROOT_LOADER_IDENTITY,
|
|
2637
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: FILES.LOGO.ICON, alt: "logo", style: { minHeight: "3rem", minWidth: "3rem", width: "3rem", height: "3rem" } })
|
|
2638
|
-
}
|
|
2639
|
-
),
|
|
2640
|
-
children,
|
|
2641
|
-
/* @__PURE__ */ jsxRuntime.jsx(Script__default.default, { type: "module", src: "https://cdn.jsdelivr.net/npm/ionicons@5.5.2/dist/ionicons/ionicons.esm.js", strategy: "lazyOnload" }),
|
|
2642
|
-
/* @__PURE__ */ jsxRuntime.jsx(Script__default.default, { noModule: true, src: "https://cdn.jsdelivr.net/npm/ionicons@5.5.2/dist/ionicons/ionicons.js", strategy: "lazyOnload" })
|
|
2643
|
-
] })
|
|
2644
|
-
] });
|
|
2645
|
-
};
|
|
2646
2609
|
var onClicked = (event, element, button) => {
|
|
2647
2610
|
if (button.id === GetCurrentThemeName()) return;
|
|
2648
2611
|
const themeCode = button.id;
|
|
@@ -2955,7 +2918,6 @@ exports.GetUtilityMenuCode = GetUtilityMenuCode;
|
|
|
2955
2918
|
exports.GetUtilityMenus = GetUtilityMenus;
|
|
2956
2919
|
exports.GetVisibleAndHiddenItems = GetVisibleAndHiddenItems;
|
|
2957
2920
|
exports.GlobalDialogbox = GlobalDialogbox;
|
|
2958
|
-
exports.GlobalLayout = GlobalLayout;
|
|
2959
2921
|
exports.HasFlag = HasFlag;
|
|
2960
2922
|
exports.HideLoader = HideLoader;
|
|
2961
2923
|
exports.Icon = Icon;
|