sixseconds-modules 1.6.167 → 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 CHANGED
@@ -13662,6 +13662,29 @@ var createCache = function createCache2(options) {
13662
13662
  cache.sheet.hydrate(nodesToHydrate);
13663
13663
  return cache;
13664
13664
  };
13665
+ const isolatedTheme = material.createTheme({
13666
+ typography: {
13667
+ fontFamily: "'IBM Plex Sans', sans-serif"
13668
+ },
13669
+ components: {
13670
+ MuiDialog: {
13671
+ defaultProps: {
13672
+ disablePortal: true
13673
+ // Prevents modals from portaling out into the Host's body so they stay inside MuiProvider's DOM subtree.
13674
+ }
13675
+ },
13676
+ MuiPopover: {
13677
+ defaultProps: {
13678
+ disablePortal: true
13679
+ }
13680
+ },
13681
+ MuiMenu: {
13682
+ defaultProps: {
13683
+ disablePortal: true
13684
+ }
13685
+ }
13686
+ }
13687
+ });
13665
13688
  material.unstable_ClassNameGenerator.configure((componentName) => `sixseconds-modules-${componentName}`);
13666
13689
  function createEmotionCache() {
13667
13690
  if (typeof document === "undefined") {
@@ -13681,7 +13704,7 @@ function createEmotionCache() {
13681
13704
  }
13682
13705
  function MuiProvider({ children }) {
13683
13706
  const cacheRef = React.useRef(createEmotionCache());
13684
- return /* @__PURE__ */ jsxRuntime.jsx(react.CacheProvider, { value: cacheRef.current, children });
13707
+ return /* @__PURE__ */ jsxRuntime.jsx(react.CacheProvider, { value: cacheRef.current, children: /* @__PURE__ */ jsxRuntime.jsx(material.ThemeProvider, { theme: isolatedTheme, children }) });
13685
13708
  }
13686
13709
  const DangerDialog = ({
13687
13710
  open,
@@ -14582,10 +14605,10 @@ const AppMenus = ({ menuItems, setInitialState, t: t2, appName, router }) => {
14582
14605
  const DropdownMenu = ({ headerMenuArray, initialState }) => {
14583
14606
  const pathname = window.location.pathname;
14584
14607
  const isMobile = material.useMediaQuery("(max-width: 1324px)");
14585
- return /* @__PURE__ */ jsxRuntime.jsx("nav", { style: { backgroundColor: "transparent", color: "#000" }, children: !isMobile ? /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "sixseconds-header-main-list-menu sixseconds-header-desktop-menu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "sixseconds-header-menu-item", style: { listStyle: "none" }, children: [
14608
+ return /* @__PURE__ */ jsxRuntime.jsx("nav", { style: { backgroundColor: "transparent", color: "#000" }, children: !isMobile ? /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "sixseconds-header-main-list-menu sixseconds-header-desktop-menu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "sixseconds-header-menu-item", style: { listStyle: "none" }, children: [
14586
14609
  /* @__PURE__ */ jsxRuntime.jsx("a", { href: items.value || "", target: items.target, className: `sixseconds-header-menu-link`, children: items.label }),
14587
- Boolean(items.children.length) && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "sixseconds-header-submenu-data", children: items.children?.map((child, index2) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: child.value || "", target: child.target, className: "sixseconds-header-submenu-link", children: child.label }) }, index2) })) })
14588
- ] }, index) })) }) : initialState.toggles.dropDownMenu && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:hidden sixseconds-header-small-device-menu", id: "mobile-menu", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sixseconds-header-layout-mobile-menu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
14610
+ Boolean(items.children.length) && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "sixseconds-header-submenu-data", children: items.children?.map((child, index2) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: child.value || "", target: child.target, className: "sixseconds-header-submenu-link", children: child.label }) }, index2)) })
14611
+ ] }, index)) }) : initialState.toggles.dropDownMenu && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:hidden sixseconds-header-small-device-menu", id: "mobile-menu", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "sixseconds-header-layout-mobile-menu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
14589
14612
  /* @__PURE__ */ jsxRuntime.jsx(
14590
14613
  "a",
14591
14614
  {
@@ -14596,7 +14619,7 @@ const DropdownMenu = ({ headerMenuArray, initialState }) => {
14596
14619
  },
14597
14620
  index
14598
14621
  ),
14599
- Boolean(items.children.length) && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "sixseconds-header-submenu-child", children: items.children?.map((items2, index2) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("li", { style: { listStyleType: "none" }, children: /* @__PURE__ */ jsxRuntime.jsx(
14622
+ Boolean(items.children.length) && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "sixseconds-header-submenu-child", children: items.children?.map((items2, index2) => /* @__PURE__ */ jsxRuntime.jsx("li", { style: { listStyleType: "none" }, children: /* @__PURE__ */ jsxRuntime.jsx(
14600
14623
  "a",
14601
14624
  {
14602
14625
  href: items2.value || "",
@@ -14604,8 +14627,8 @@ const DropdownMenu = ({ headerMenuArray, initialState }) => {
14604
14627
  className: "sixseconds-header-submenu-child-link",
14605
14628
  children: items2.label
14606
14629
  }
14607
- ) }, index2) })) })
14608
- ] })) }) }) });
14630
+ ) }, index2)) })
14631
+ ] }, index)) }) }) });
14609
14632
  };
14610
14633
  function Language({
14611
14634
  interFaceLangList,
@@ -15254,7 +15277,7 @@ const SubHeaderStyled = styles.styled(material.AppBar)(() => ({
15254
15277
  alignItems: "center",
15255
15278
  fontFamily: "'IBM Plex Sans', sans-serif"
15256
15279
  },
15257
- "& .sixseconds-header-notification h6,p": {
15280
+ "& .sixseconds-header-notification h6, & .sixseconds-header-notification p": {
15258
15281
  margin: "10px",
15259
15282
  fontFamily: "'IBM Plex Sans', sans-serif"
15260
15283
  },
@@ -15576,8 +15599,9 @@ const HeaderInner = ({
15576
15599
  },
15577
15600
  children: [
15578
15601
  /* @__PURE__ */ jsxRuntime.jsx(
15579
- material.Typography,
15602
+ material.Box,
15580
15603
  {
15604
+ component: "span",
15581
15605
  sx: {
15582
15606
  cursor: "pointer"
15583
15607
  },
@@ -15614,8 +15638,9 @@ const HeaderInner = ({
15614
15638
  },
15615
15639
  children: [
15616
15640
  /* @__PURE__ */ jsxRuntime.jsxs(
15617
- material.Typography,
15641
+ material.Box,
15618
15642
  {
15643
+ component: "span",
15619
15644
  "data-toggle-name": "lang",
15620
15645
  onClick: (e) => handleOpenUtil(e, setState),
15621
15646
  sx: {