sixseconds-modules 1.6.94 → 1.6.96

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.
@@ -1,2 +1,2 @@
1
1
  import { IHeaderProps } from './type';
2
- export declare const Header: ({ router, frontCustomComponent, endCustomComponents, totallyEndCustomComponent, userData, interFaceLangList, centerCustomComponents, updateInterfaceLang, selectedInterFaceLang, logoutHandler, logo, isNotification, extraMenuOptions, isMenu, isAccessAppMenu, notificationAccessApps, sx, t, }: IHeaderProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Header: ({ router, frontCustomComponent, endCustomComponents, totallyEndCustomComponent, userData, interFaceLangList, centerCustomComponents, updateInterfaceLang, selectedInterFaceLang, logoutHandler, logo, isNotification, extraMenuOptions, isMenu, isAccessAppMenu, notificationAccessApps, sx, isMainLogo, handleSideToggle, t, }: IHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -87,4 +87,6 @@ export interface IHeaderProps {
87
87
  centerCustomComponents?: React.ReactNode
88
88
  endCustomComponents?: React.ReactNode
89
89
  totallyEndCustomComponent?: React.ReactNode
90
+ isMainLogo?: boolean
91
+ handleSideToggle?: any
90
92
  }
package/dist/index.cjs.js CHANGED
@@ -15,8 +15,8 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
15
15
  const jsxRuntime = require("react/jsx-runtime");
16
16
  const material = require("@mui/material");
17
17
  const React = require("react");
18
- const Cookies = require("js-cookie");
19
18
  const axios = require("axios");
19
+ const Cookies = require("js-cookie");
20
20
  const MenuIcon = require("@mui/icons-material/Menu");
21
21
  const toast = require("react-hot-toast");
22
22
  const VisibilityOffIcon = require("@mui/icons-material/VisibilityOff");
@@ -2659,7 +2659,7 @@ function createEnv(opts) {
2659
2659
  }
2660
2660
  return runtimeEnv;
2661
2661
  }
2662
- const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_MODULES_CARDS_ADMIN_FRONTEND_BASE_URL": "https://admin-cards.6seconds.org", "VITE_MODULES_CARDS_HOME_FRONTEND_BASE_URL": "https://cards.6seconds.org", "VITE_MODULES_CERT_FRONTEND_BASE_URL": "https://cert.6seconds.org", "VITE_MODULES_EVENTS_FRONTEND_BASE_URL": "https://newevents.6seconds.org", "VITE_MODULES_SSO_BACKEND_BASE_URL": "https://ssoapi.6seconds.org", "VITE_MODULES_SSO_FRONTEND_BASE_URL": "https://sso.6seconds.org", "VITE_MODULES_TOOLS_FRONTEND_BASE_URL": "https://newtools.6seconds.org" };
2662
+ const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "development", "PROD": true, "SSR": false, "VITE_MODULES_CARDS_ADMIN_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_CARDS_HOME_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_CERT_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_EVENTS_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_SSO_BACKEND_BASE_URL": "https://dev-ssoapi.6seconds.org", "VITE_MODULES_SSO_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_TOOLS_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org" };
2663
2663
  const env = createEnv({
2664
2664
  runtimeEnv: __vite_import_meta_env__
2665
2665
  });
@@ -9198,11 +9198,11 @@ const DangerDialog = ({
9198
9198
  material.Dialog,
9199
9199
  {
9200
9200
  fullWidth: false,
9201
- sx: { "& .MuiPaper-root": { maxWidth: "400px", borderRadius: "12px" } },
9201
+ sx: { "& .MuiPaper-root": { maxWidth: "450px", borderRadius: "12px", width: "450px" } },
9202
9202
  onClose: () => handleCloseUtil(setInitialState),
9203
9203
  open,
9204
9204
  "aria-labelledby": "draggable-dialog-title",
9205
- children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { p: 2 }, children: [
9205
+ children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { p: 2, width: "270px" }, children: [
9206
9206
  /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "column", spacing: 2, alignItems: "self-start", children: [
9207
9207
  /* @__PURE__ */ jsxRuntime.jsx(ExitToAppTwoToneIcon, { fontSize: "large", sx: { color: "#EC5962" } }),
9208
9208
  /* @__PURE__ */ jsxRuntime.jsx("h5", { children: title }),
@@ -9912,7 +9912,7 @@ const AppMenus = ({ menuItems, setInitialState, t: t2, appName, router }) => {
9912
9912
  }
9913
9913
  }
9914
9914
  };
9915
- return /* @__PURE__ */ jsxRuntime.jsx(material.ClickAwayListener, { onClickAway: () => handleCloseUtil(setInitialState), children: /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { p: 2 }, children: /* @__PURE__ */ jsxRuntime.jsx(material.Grid, { container: true, rowGap: 3, children: menuItems?.length > 0 && menuItems?.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
9915
+ return /* @__PURE__ */ jsxRuntime.jsx(material.ClickAwayListener, { touchEvent: "onTouchStart", onClickAway: () => handleCloseUtil(setInitialState), children: /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { p: 2 }, children: /* @__PURE__ */ jsxRuntime.jsx(material.Grid, { container: true, rowGap: 3, children: menuItems?.length > 0 && menuItems?.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
9916
9916
  material.Grid,
9917
9917
  {
9918
9918
  onClick: () => handleRedirection2(appName, item.link, item.type),
@@ -10835,6 +10835,8 @@ const Header = ({
10835
10835
  isAccessAppMenu,
10836
10836
  notificationAccessApps,
10837
10837
  sx,
10838
+ isMainLogo = true,
10839
+ handleSideToggle,
10838
10840
  t
10839
10841
  }) => {
10840
10842
  const isMobile = material.useMediaQuery("(max-width: 1324px)");
@@ -10883,6 +10885,8 @@ const Header = ({
10883
10885
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
10884
10886
  /* @__PURE__ */ jsxRuntime.jsx(SubHeaderStyled, { sx, children: /* @__PURE__ */ jsxRuntime.jsxs(material.Container, { maxWidth: false, sx: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
10885
10887
  /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { display: "flex !important", alignItems: "center !important" }, children: [
10888
+ handleSideToggle && /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { display: { md: "none", lg: "none", xs: "block" } }, children: /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { onClick: handleSideToggle, children: /* @__PURE__ */ jsxRuntime.jsx(MenuIcon, {}) }) }),
10889
+ isMainLogo && /* @__PURE__ */ jsxRuntime.jsx(Logo, {}),
10886
10890
  logo,
10887
10891
  frontCustomComponent
10888
10892
  ] }),
@@ -11401,6 +11405,8 @@ const App = () => {
11401
11405
  {
11402
11406
  isAccessAppMenu: true,
11403
11407
  isMenu: true,
11408
+ handleSideToggle: () => {
11409
+ },
11404
11410
  updateInterfaceLang: () => {
11405
11411
  },
11406
11412
  notificationAccessApps: [
@@ -11483,7 +11489,7 @@ const App = () => {
11483
11489
  value: "zh",
11484
11490
  flag: ""
11485
11491
  },
11486
- logo: /* @__PURE__ */ jsxRuntime.jsx(Logo, {}),
11492
+ isMainLogo: true,
11487
11493
  isNotification: true,
11488
11494
  totallyEndCustomComponent: "asdfsdf",
11489
11495
  extraMenuOptions: {