sixseconds-modules 1.6.169 → 1.6.170
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.js +30 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +31 -8
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -17,7 +17,7 @@ import React__default, { useRef, useEffect, useState, useCallback, useMemo, useL
|
|
|
17
17
|
import axios from "axios";
|
|
18
18
|
import Cookies from "js-cookie";
|
|
19
19
|
import { CacheProvider } from "@emotion/react";
|
|
20
|
-
import { Box, Typography, unstable_ClassNameGenerator, Dialog, Stack as Stack$1, Button as Button$1, IconButton, Grid, Avatar, Chip, Link, Divider, ClickAwayListener, useMediaQuery, MenuItem, AppBar, Container, Badge, FormLabel, TextField, InputAdornment, styled as styled$1 } from "@mui/material";
|
|
20
|
+
import { Box, Typography, ThemeProvider, createTheme, unstable_ClassNameGenerator, Dialog, Stack as Stack$1, Button as Button$1, IconButton, Grid, Avatar, Chip, Link, Divider, ClickAwayListener, useMediaQuery, MenuItem, AppBar, Container, Badge, FormLabel, TextField, InputAdornment, styled as styled$1 } from "@mui/material";
|
|
21
21
|
import MenuIcon from "@mui/icons-material/Menu";
|
|
22
22
|
import CloseIcon from "@mui/icons-material/Close";
|
|
23
23
|
import toast from "react-hot-toast";
|
|
@@ -13644,6 +13644,29 @@ var createCache = function createCache2(options) {
|
|
|
13644
13644
|
cache.sheet.hydrate(nodesToHydrate);
|
|
13645
13645
|
return cache;
|
|
13646
13646
|
};
|
|
13647
|
+
const isolatedTheme = createTheme({
|
|
13648
|
+
typography: {
|
|
13649
|
+
fontFamily: "'IBM Plex Sans', sans-serif"
|
|
13650
|
+
},
|
|
13651
|
+
components: {
|
|
13652
|
+
MuiDialog: {
|
|
13653
|
+
defaultProps: {
|
|
13654
|
+
disablePortal: true
|
|
13655
|
+
// Prevents modals from portaling out into the Host's body so they stay inside MuiProvider's DOM subtree.
|
|
13656
|
+
}
|
|
13657
|
+
},
|
|
13658
|
+
MuiPopover: {
|
|
13659
|
+
defaultProps: {
|
|
13660
|
+
disablePortal: true
|
|
13661
|
+
}
|
|
13662
|
+
},
|
|
13663
|
+
MuiMenu: {
|
|
13664
|
+
defaultProps: {
|
|
13665
|
+
disablePortal: true
|
|
13666
|
+
}
|
|
13667
|
+
}
|
|
13668
|
+
}
|
|
13669
|
+
});
|
|
13647
13670
|
unstable_ClassNameGenerator.configure((componentName) => `sixseconds-modules-${componentName}`);
|
|
13648
13671
|
function createEmotionCache() {
|
|
13649
13672
|
if (typeof document === "undefined") {
|
|
@@ -13663,7 +13686,7 @@ function createEmotionCache() {
|
|
|
13663
13686
|
}
|
|
13664
13687
|
function MuiProvider({ children }) {
|
|
13665
13688
|
const cacheRef = useRef(createEmotionCache());
|
|
13666
|
-
return /* @__PURE__ */ jsx(CacheProvider, { value: cacheRef.current, children });
|
|
13689
|
+
return /* @__PURE__ */ jsx(CacheProvider, { value: cacheRef.current, children: /* @__PURE__ */ jsx(ThemeProvider, { theme: isolatedTheme, children }) });
|
|
13667
13690
|
}
|
|
13668
13691
|
const DangerDialog = ({
|
|
13669
13692
|
open,
|
|
@@ -14564,10 +14587,10 @@ const AppMenus = ({ menuItems, setInitialState, t: t2, appName, router }) => {
|
|
|
14564
14587
|
const DropdownMenu = ({ headerMenuArray, initialState }) => {
|
|
14565
14588
|
const pathname = window.location.pathname;
|
|
14566
14589
|
const isMobile = useMediaQuery("(max-width: 1324px)");
|
|
14567
|
-
return /* @__PURE__ */ jsx("nav", { style: { backgroundColor: "transparent", color: "#000" }, children: !isMobile ? /* @__PURE__ */ jsx("ul", { className: "sixseconds-header-main-list-menu sixseconds-header-desktop-menu", children: headerMenuArray.map((items, index) => /* @__PURE__ */
|
|
14590
|
+
return /* @__PURE__ */ jsx("nav", { style: { backgroundColor: "transparent", color: "#000" }, children: !isMobile ? /* @__PURE__ */ jsx("ul", { className: "sixseconds-header-main-list-menu sixseconds-header-desktop-menu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxs("li", { className: "sixseconds-header-menu-item", style: { listStyle: "none" }, children: [
|
|
14568
14591
|
/* @__PURE__ */ jsx("a", { href: items.value || "", target: items.target, className: `sixseconds-header-menu-link`, children: items.label }),
|
|
14569
|
-
Boolean(items.children.length) && /* @__PURE__ */ jsx("ul", { className: "sixseconds-header-submenu-data", children: items.children?.map((child, index2) => /* @__PURE__ */ jsx(
|
|
14570
|
-
] }, index)
|
|
14592
|
+
Boolean(items.children.length) && /* @__PURE__ */ jsx("ul", { className: "sixseconds-header-submenu-data", children: items.children?.map((child, index2) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: child.value || "", target: child.target, className: "sixseconds-header-submenu-link", children: child.label }) }, index2)) })
|
|
14593
|
+
] }, index)) }) : initialState.toggles.dropDownMenu && /* @__PURE__ */ jsx("div", { className: "lg:hidden sixseconds-header-small-device-menu", id: "mobile-menu", children: /* @__PURE__ */ jsx("div", { className: "sixseconds-header-layout-mobile-menu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxs("div", { children: [
|
|
14571
14594
|
/* @__PURE__ */ jsx(
|
|
14572
14595
|
"a",
|
|
14573
14596
|
{
|
|
@@ -14578,7 +14601,7 @@ const DropdownMenu = ({ headerMenuArray, initialState }) => {
|
|
|
14578
14601
|
},
|
|
14579
14602
|
index
|
|
14580
14603
|
),
|
|
14581
|
-
Boolean(items.children.length) && /* @__PURE__ */ jsx("ul", { className: "sixseconds-header-submenu-child", children: items.children?.map((items2, index2) => /* @__PURE__ */ jsx(
|
|
14604
|
+
Boolean(items.children.length) && /* @__PURE__ */ jsx("ul", { className: "sixseconds-header-submenu-child", children: items.children?.map((items2, index2) => /* @__PURE__ */ jsx("li", { style: { listStyleType: "none" }, children: /* @__PURE__ */ jsx(
|
|
14582
14605
|
"a",
|
|
14583
14606
|
{
|
|
14584
14607
|
href: items2.value || "",
|
|
@@ -14586,8 +14609,8 @@ const DropdownMenu = ({ headerMenuArray, initialState }) => {
|
|
|
14586
14609
|
className: "sixseconds-header-submenu-child-link",
|
|
14587
14610
|
children: items2.label
|
|
14588
14611
|
}
|
|
14589
|
-
) }, index2)
|
|
14590
|
-
] })) }) }) });
|
|
14612
|
+
) }, index2)) })
|
|
14613
|
+
] }, index)) }) }) });
|
|
14591
14614
|
};
|
|
14592
14615
|
function Language({
|
|
14593
14616
|
interFaceLangList,
|