sixseconds-modules 1.6.4 → 1.6.8

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.es.js CHANGED
@@ -17,6 +17,7 @@ import { styled, AppBar, Box, Avatar, ClickAwayListener, Stack, Typography, Link
17
17
  import MenuIcon from "@mui/icons-material/Menu";
18
18
  import CheckIcon from "@mui/icons-material/Check";
19
19
  import axios from "axios";
20
+ import ExitToAppTwoToneIcon from "@mui/icons-material/ExitToAppTwoTone";
20
21
  const SvgBell = (props) => /* @__PURE__ */ React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("rect", { width: 24, height: 24, fill: "white", fillOpacity: 0.01 }), /* @__PURE__ */ React.createElement("path", { d: "M20.7013 16.4944C20.145 15.5366 19.4816 13.7192 19.4816 10.5V9.83475C19.4816 5.68294 16.1509 2.28056 12.057 2.25019L11.9998 2.25C10.0132 2.25258 8.10904 3.0442 6.70613 4.45072C5.30322 5.85723 4.51649 7.76344 4.519 9.75V10.5C4.519 13.719 3.85535 15.5363 3.29875 16.494C3.16581 16.7218 3.09527 16.9805 3.09425 17.2443C3.09322 17.508 3.16175 17.7673 3.29291 17.9961C3.42408 18.2249 3.61325 18.415 3.84135 18.5474C4.06944 18.6798 4.32841 18.7496 4.59213 18.75H8.24997C8.24997 19.7446 8.64506 20.6984 9.34832 21.4016C10.0516 22.1049 11.0054 22.5 12 22.5C12.9945 22.5 13.9484 22.1049 14.6516 21.4016C15.3549 20.6984 15.75 19.7446 15.75 18.75H19.4078C19.6715 18.7497 19.9304 18.6798 20.1585 18.5475C20.3866 18.4151 20.5757 18.225 20.7069 17.9963C20.8381 17.7675 20.9066 17.5083 20.9056 17.2446C20.9047 16.9809 20.8342 16.7221 20.7013 16.4944ZM12 21C11.4034 20.9993 10.8315 20.7621 10.4097 20.3403C9.98791 19.9184 9.75064 19.3465 9.74997 18.75H14.25C14.2493 19.3465 14.012 19.9184 13.5902 20.3403C13.1684 20.7621 12.5965 20.9993 12 21ZM4.5955 17.2478C5.24491 16.1306 6.019 14.0531 6.019 10.5V9.75C6.01651 8.1612 6.64527 6.63649 7.76695 5.51127C8.88863 4.38606 10.4114 3.75251 12.0002 3.75L12.0458 3.75019C15.3188 3.77447 17.9817 6.504 17.9817 9.83475V10.5C17.9817 14.0531 18.7554 16.1306 19.4078 17.25L4.5955 17.2478Z", fill: "#808080" }));
21
22
  const SvgCredis = (props) => /* @__PURE__ */ React.createElement("svg", { width: 38, height: 38, viewBox: "0 0 38 38", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("rect", { width: 38, height: 38, rx: 19, fill: "#F8F8F8" }), /* @__PURE__ */ React.createElement("rect", { x: 11, y: 11, width: 16, height: 16, rx: 2, fill: "white", fillOpacity: 0.01 }), /* @__PURE__ */ React.createElement("path", { d: "M22.5 16.6V16.25C22.5 14.6812 20.1375 13.5 17 13.5C13.8625 13.5 11.5 14.6812 11.5 16.25V18.75C11.5 20.0562 13.1375 21.0938 15.5 21.4062V21.75C15.5 23.3188 17.8625 24.5 21 24.5C24.1375 24.5 26.5 23.3188 26.5 21.75V19.25C26.5 17.9562 24.9125 16.9187 22.5 16.6ZM25.5 19.25C25.5 20.075 23.575 21 21 21C20.7687 21 20.5375 20.9938 20.3062 20.975C21.6562 20.4875 22.5 19.6875 22.5 18.75V17.6062C24.3687 17.8875 25.5 18.6438 25.5 19.25ZM15.5 20.3875V18.9062C15.9974 18.9702 16.4985 19.0015 17 19C17.5015 19.0015 18.0026 18.9702 18.5 18.9062V20.3875C18.0038 20.4648 17.5022 20.5024 17 20.5C16.4978 20.5024 15.9962 20.4648 15.5 20.3875V20.3875ZM21.5 17.8688V18.75C21.5 19.275 20.725 19.8375 19.5 20.1812V18.7188C20.3062 18.525 20.9875 18.2313 21.5 17.8688V17.8688ZM17 14.5C19.575 14.5 21.5 15.425 21.5 16.25C21.5 17.075 19.575 18 17 18C14.425 18 12.5 17.075 12.5 16.25C12.5 15.425 14.425 14.5 17 14.5ZM12.5 18.75V17.8688C13.0125 18.2313 13.6938 18.525 14.5 18.7188V20.1812C13.275 19.8375 12.5 19.275 12.5 18.75ZM16.5 21.75V21.4875L17 21.5C17.2458 21.5 17.4833 21.4937 17.7125 21.4812C17.9625 21.5687 18.225 21.6437 18.5 21.7125V23.1812C17.275 22.8375 16.5 22.275 16.5 21.75V21.75ZM19.5 23.3875V21.9C19.9974 21.9652 20.4984 21.9987 21 22C21.5015 22.0015 22.0026 21.9702 22.5 21.9062V23.3875C21.5056 23.5375 20.4944 23.5375 19.5 23.3875V23.3875ZM23.5 23.1812V21.7188C24.3062 21.525 24.9875 21.2312 25.5 20.8687V21.75C25.5 22.275 24.725 22.8375 23.5 23.1812V23.1812Z", fill: "#808080" }));
22
23
  const SvgDown = (props) => /* @__PURE__ */ React.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props }, /* @__PURE__ */ React.createElement("rect", { width: 12, height: 12, fill: "white", fillOpacity: 0.01 }), /* @__PURE__ */ React.createElement("path", { d: "M10.0152 4.76517L6.26519 8.51517C6.23036 8.55 6.18902 8.57762 6.14353 8.59647C6.09803 8.61531 6.04926 8.62501 6.00001 8.62501C5.95077 8.62501 5.902 8.61531 5.8565 8.59647C5.81101 8.57762 5.76966 8.55 5.73484 8.51517L1.98484 4.76517C1.93239 4.71273 1.89668 4.64591 1.88221 4.57316C1.86774 4.50042 1.87516 4.42502 1.90355 4.35649C1.93193 4.28797 1.98 4.2294 2.04167 4.18819C2.10334 4.14699 2.17584 4.125 2.25001 4.125H9.75001C9.82418 4.125 9.89669 4.14699 9.95836 4.18819C10.02 4.2294 10.0681 4.28797 10.0965 4.35649C10.1249 4.42502 10.1323 4.50042 10.1178 4.57316C10.1034 4.64591 10.0676 4.71273 10.0152 4.76517Z", fill: "#808080" }));
@@ -129,7 +130,7 @@ function createEnv(opts) {
129
130
  }
130
131
  return runtimeEnv;
131
132
  }
132
- const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "localhost", "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": "http://localhost:2000", "VITE_MODULES_TOOLS_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org" };
133
+ const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
133
134
  const env = createEnv({
134
135
  runtimeEnv: __vite_import_meta_env__
135
136
  });
@@ -4301,6 +4302,7 @@ const UserProfile = ({ t: t2, userData, setInitialState, extraMenuOptions }) =>
4301
4302
  )
4302
4303
  ] }),
4303
4304
  /* @__PURE__ */ jsxs("ul", { children: [
4305
+ extraMenuOptions.components,
4304
4306
  extraMenuOptions.isViewProfile && /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
4305
4307
  Stack,
4306
4308
  {
@@ -4383,7 +4385,6 @@ const UserProfile = ({ t: t2, userData, setInitialState, extraMenuOptions }) =>
4383
4385
  ]
4384
4386
  }
4385
4387
  ) }),
4386
- extraMenuOptions.components,
4387
4388
  /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
4388
4389
  Stack,
4389
4390
  {
@@ -4520,7 +4521,7 @@ const DangerDialog = ({
4520
4521
  "aria-labelledby": "draggable-dialog-title",
4521
4522
  children: /* @__PURE__ */ jsxs(Box, { sx: { p: 2 }, children: [
4522
4523
  /* @__PURE__ */ jsxs(Stack, { direction: "column", spacing: 2, alignItems: "self-start", children: [
4523
- /* @__PURE__ */ jsx(SVG.Logout, {}),
4524
+ /* @__PURE__ */ jsx(ExitToAppTwoToneIcon, { fontSize: "large", sx: { color: "#EC5962" } }),
4524
4525
  /* @__PURE__ */ jsx("h5", { children: title }),
4525
4526
  /* @__PURE__ */ jsx(
4526
4527
  Stack,
@@ -5260,7 +5261,7 @@ const AppMenus = ({ menuItems, setInitialState, t: t2, appName }) => {
5260
5261
  Grid,
5261
5262
  {
5262
5263
  component: Link,
5263
- href: urlcat(item.link, { source: appName }),
5264
+ href: `${item.link}?source=${appName}`,
5264
5265
  target: item.type === "tab" ? "_self" : "_blank",
5265
5266
  item: true,
5266
5267
  md: 4,