sixseconds-modules 1.6.169 → 1.6.171
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 +15 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +16 -11
- 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,11 @@ 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
|
+
});
|
|
13647
13652
|
unstable_ClassNameGenerator.configure((componentName) => `sixseconds-modules-${componentName}`);
|
|
13648
13653
|
function createEmotionCache() {
|
|
13649
13654
|
if (typeof document === "undefined") {
|
|
@@ -13663,7 +13668,7 @@ function createEmotionCache() {
|
|
|
13663
13668
|
}
|
|
13664
13669
|
function MuiProvider({ children }) {
|
|
13665
13670
|
const cacheRef = useRef(createEmotionCache());
|
|
13666
|
-
return /* @__PURE__ */ jsx(CacheProvider, { value: cacheRef.current, children });
|
|
13671
|
+
return /* @__PURE__ */ jsx(CacheProvider, { value: cacheRef.current, children: /* @__PURE__ */ jsx(ThemeProvider, { theme: isolatedTheme, children }) });
|
|
13667
13672
|
}
|
|
13668
13673
|
const DangerDialog = ({
|
|
13669
13674
|
open,
|
|
@@ -13688,7 +13693,7 @@ const DangerDialog = ({
|
|
|
13688
13693
|
onClose: () => handleCloseUtil(setInitialState),
|
|
13689
13694
|
open,
|
|
13690
13695
|
"aria-labelledby": "draggable-dialog-title",
|
|
13691
|
-
children: /* @__PURE__ */ jsxs(Box, { sx: { p: 3 }, children: [
|
|
13696
|
+
children: /* @__PURE__ */ jsxs(Box, { sx: { p: 3 }, className: "sixseconds-header-root", children: [
|
|
13692
13697
|
/* @__PURE__ */ jsxs(Stack$1, { direction: "column", spacing: 2, alignItems: "flex-start", sx: { textAlign: "start", mb: 2 }, children: [
|
|
13693
13698
|
/* @__PURE__ */ jsx(ExitToAppTwoToneIcon, { sx: { color: "#d32f2f", fontSize: "48px" } }),
|
|
13694
13699
|
/* @__PURE__ */ jsx(
|
|
@@ -14160,7 +14165,7 @@ function ViewProfileDialog({ userData, setInitialState, isOpen }) {
|
|
|
14160
14165
|
},
|
|
14161
14166
|
onClose: () => handleCloseUtil(setInitialState),
|
|
14162
14167
|
open: isOpen,
|
|
14163
|
-
children: /* @__PURE__ */ jsxs(ProfileStyled, { children: [
|
|
14168
|
+
children: /* @__PURE__ */ jsxs(ProfileStyled, { className: "sixseconds-header-root", children: [
|
|
14164
14169
|
/* @__PURE__ */ jsx(Box, { sx: { display: "flex", justifyContent: "flex-end", p: 1.5 }, children: /* @__PURE__ */ jsx(
|
|
14165
14170
|
IconButton,
|
|
14166
14171
|
{
|
|
@@ -14401,7 +14406,7 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
|
|
|
14401
14406
|
},
|
|
14402
14407
|
onClose: () => handleCloseUtil(setInitialState),
|
|
14403
14408
|
open: isOpen,
|
|
14404
|
-
children: /* @__PURE__ */ jsx("form", { onSubmit: formik.handleSubmit, children: /* @__PURE__ */ jsxs(ChangePasswordStyled, { children: [
|
|
14409
|
+
children: /* @__PURE__ */ jsx("form", { onSubmit: formik.handleSubmit, children: /* @__PURE__ */ jsxs(ChangePasswordStyled, { className: "sixseconds-header-root", children: [
|
|
14405
14410
|
/* @__PURE__ */ jsx(Box, { sx: { display: "flex", justifyContent: "flex-end", p: 1.5 }, children: /* @__PURE__ */ jsx(
|
|
14406
14411
|
IconButton,
|
|
14407
14412
|
{
|
|
@@ -14564,10 +14569,10 @@ const AppMenus = ({ menuItems, setInitialState, t: t2, appName, router }) => {
|
|
|
14564
14569
|
const DropdownMenu = ({ headerMenuArray, initialState }) => {
|
|
14565
14570
|
const pathname = window.location.pathname;
|
|
14566
14571
|
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__ */
|
|
14572
|
+
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
14573
|
/* @__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)
|
|
14574
|
+
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)) })
|
|
14575
|
+
] }, 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
14576
|
/* @__PURE__ */ jsx(
|
|
14572
14577
|
"a",
|
|
14573
14578
|
{
|
|
@@ -14578,7 +14583,7 @@ const DropdownMenu = ({ headerMenuArray, initialState }) => {
|
|
|
14578
14583
|
},
|
|
14579
14584
|
index
|
|
14580
14585
|
),
|
|
14581
|
-
Boolean(items.children.length) && /* @__PURE__ */ jsx("ul", { className: "sixseconds-header-submenu-child", children: items.children?.map((items2, index2) => /* @__PURE__ */ jsx(
|
|
14586
|
+
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
14587
|
"a",
|
|
14583
14588
|
{
|
|
14584
14589
|
href: items2.value || "",
|
|
@@ -14586,8 +14591,8 @@ const DropdownMenu = ({ headerMenuArray, initialState }) => {
|
|
|
14586
14591
|
className: "sixseconds-header-submenu-child-link",
|
|
14587
14592
|
children: items2.label
|
|
14588
14593
|
}
|
|
14589
|
-
) }, index2)
|
|
14590
|
-
] })) }) }) });
|
|
14594
|
+
) }, index2)) })
|
|
14595
|
+
] }, index)) }) }) });
|
|
14591
14596
|
};
|
|
14592
14597
|
function Language({
|
|
14593
14598
|
interFaceLangList,
|