nexus-shared 1.1.0 → 1.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.cjs +38 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +975 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +37 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4,11 +4,13 @@ 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');
|
|
7
8
|
|
|
8
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
10
|
|
|
10
11
|
var Link__default = /*#__PURE__*/_interopDefault(Link);
|
|
11
12
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
13
|
+
var Script__default = /*#__PURE__*/_interopDefault(Script);
|
|
12
14
|
|
|
13
15
|
// src/load-env.ts
|
|
14
16
|
dotenv.config();
|
|
@@ -2606,6 +2608,41 @@ var LayoutHelpers = ({ globalLayout }) => {
|
|
|
2606
2608
|
}, []);
|
|
2607
2609
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nexus-popup-container" });
|
|
2608
2610
|
};
|
|
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
|
+
};
|
|
2609
2646
|
var onClicked = (event, element, button) => {
|
|
2610
2647
|
if (button.id === GetCurrentThemeName()) return;
|
|
2611
2648
|
const themeCode = button.id;
|
|
@@ -2918,6 +2955,7 @@ exports.GetUtilityMenuCode = GetUtilityMenuCode;
|
|
|
2918
2955
|
exports.GetUtilityMenus = GetUtilityMenus;
|
|
2919
2956
|
exports.GetVisibleAndHiddenItems = GetVisibleAndHiddenItems;
|
|
2920
2957
|
exports.GlobalDialogbox = GlobalDialogbox;
|
|
2958
|
+
exports.GlobalLayout = GlobalLayout;
|
|
2921
2959
|
exports.HasFlag = HasFlag;
|
|
2922
2960
|
exports.HideLoader = HideLoader;
|
|
2923
2961
|
exports.Icon = Icon;
|