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