sixseconds-modules 1.2.9 → 1.3.0

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
@@ -4481,41 +4481,41 @@ function Language({
4481
4481
  const DropdownMenu = ({ headerMenuArray, initialState }) => {
4482
4482
  const pathname = window.location.pathname;
4483
4483
  const isMobile = useMediaQuery("(max-width: 1324px)");
4484
- return /* @__PURE__ */ jsx("nav", { style: { backgroundColor: "#fff", color: "#000" }, children: !isMobile ? /* @__PURE__ */ jsx("ul", { className: "hidden lg:flex space-x-4 md:space-x-1 lg:space-x-4 main_list_Menu desktopMenu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("li", { className: "menu-item group relative font-sans px-0 md:px-1 lg:px-2 pt-5 pb-5", children: [
4484
+ return /* @__PURE__ */ jsx("nav", { style: { backgroundColor: "#fff", color: "#000" }, children: !isMobile ? /* @__PURE__ */ jsx("ul", { className: " main_list_Menu desktopMenu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs("li", { className: "menu-item", children: [
4485
4485
  /* @__PURE__ */ jsx(
4486
4486
  "a",
4487
4487
  {
4488
4488
  href: items.value || "",
4489
4489
  target: items.target,
4490
- className: `menu-link pr-1 py-2 text-[15px] font-semibold font-sans hover:text-customBlue ${pathname === items.value ? "text-customBlue" : "text-[#2C2E35]"}`,
4490
+ className: `menu-link`,
4491
4491
  children: items.label
4492
4492
  }
4493
4493
  ),
4494
- Boolean(items.children.length) && /* @__PURE__ */ jsx("ul", { className: "submenuData absolute min-w-[200px] max-w-[240px] left-0 w-auto top-[57px] mt-2 hidden group-hover:block bg-white text-black shadow-lg border-t-[3px] border-[#2ea3f2]", children: items.children?.map((child, index2) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
4494
+ Boolean(items.children.length) && /* @__PURE__ */ jsx("ul", { className: "submenuData ", children: items.children?.map((child, index2) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
4495
4495
  "a",
4496
4496
  {
4497
4497
  href: child.value || "",
4498
4498
  target: child.target,
4499
- className: "submenu-link block font-semibold font-sans px-4 py-2 text-[rgba(0,0,0,0.7)] hover:bg-gray-200",
4499
+ className: "submenu-link",
4500
4500
  children: child.label
4501
4501
  }
4502
4502
  ) }, index2) })) })
4503
- ] }, index) })) }) : initialState.toggles.dropDownMenu && /* @__PURE__ */ jsx("div", { className: "lg:hidden px-5 smallDeviceMenu", id: "mobile-menu", children: /* @__PURE__ */ jsx("div", { className: " px-0 pb-3 h-[95vh] overflow-y-auto pt-2", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
4503
+ ] }, index) })) }) : initialState.toggles.dropDownMenu && /* @__PURE__ */ jsx("div", { className: "lg:hidden smallDeviceMenu", id: "mobile-menu", children: /* @__PURE__ */ jsx("div", { className: " layout_mobile_menu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
4504
4504
  /* @__PURE__ */ jsx(
4505
4505
  "a",
4506
4506
  {
4507
4507
  href: items.value || "",
4508
- className: `bg_main_menu px-3 py-2 text-[15px] bg-[rgba(0,0,0,.03)] block font-semibold font-sans hover:text-customBlue ${pathname === items.value ? "text-customBlue" : "text-[#2C2E35]"}`,
4508
+ className: `bg_main_menu ${pathname === items.value ? "text-customBlue" : "text-[#2C2E35]"}`,
4509
4509
  children: items.label
4510
4510
  },
4511
4511
  index
4512
4512
  ),
4513
- Boolean(items.children.length) && /* @__PURE__ */ jsx("ul", { className: "mx-auto min-w-[90%] max-w-[90%] top-[57px] mt-2 group-hover:block bg-white text-black", children: items.children?.map((items2, index2) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
4513
+ Boolean(items.children.length) && /* @__PURE__ */ jsx("ul", { className: "submenu_child", children: items.children?.map((items2, index2) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
4514
4514
  "a",
4515
4515
  {
4516
4516
  href: items2.value || "",
4517
4517
  target: items2.target,
4518
- className: "block border-b border-[rgba(0,0,0,.03)] font-semibold font-sans px-4 py-2 text-[rgba(0,0,0,0.7)] hover:bg-gray-200",
4518
+ className: "submenu_child_link ",
4519
4519
  children: items2.label
4520
4520
  }
4521
4521
  ) }, index2) })) })
@@ -5186,7 +5186,7 @@ const Notification = ({ setInitialState, userData, initialState }) => {
5186
5186
  position: "absolute"
5187
5187
  },
5188
5188
  children: [
5189
- /* @__PURE__ */ jsx(Box, { className: "flex border-b pb-2", children: userData?.appAccess?.map((tab) => /* @__PURE__ */ jsx(
5189
+ /* @__PURE__ */ jsx(Box, { sx: { paddingBottom: "8px", display: "flex", borderBottom: "1px solid #ddd" }, children: userData?.appAccess?.map((tab) => /* @__PURE__ */ jsx(
5190
5190
  Button,
5191
5191
  {
5192
5192
  onClick: () => setActiveTab(tab.name),
@@ -5309,10 +5309,9 @@ const AppMenus = ({ menuItems, setInitialState }) => {
5309
5309
  {
5310
5310
  width: 34,
5311
5311
  height: 34,
5312
- style: { margin: "0px auto" },
5312
+ style: { margin: "0px auto", width: "34px", height: "34px" },
5313
5313
  src: item.icon,
5314
- alt: "",
5315
- className: "w-[34px] h-[34px]"
5314
+ alt: ""
5316
5315
  }
5317
5316
  ) }),
5318
5317
  /* @__PURE__ */ jsx(
@@ -5379,7 +5378,7 @@ const Header = ({
5379
5378
  }
5380
5379
  }, [isMenu]);
5381
5380
  return /* @__PURE__ */ jsxs(Fragment, { children: [
5382
- /* @__PURE__ */ jsx(SubHeaderStyled, { sx, children: /* @__PURE__ */ jsxs(Container, { maxWidth: false, sx: { display: "flex", justifyContent: "space-between" }, children: [
5381
+ /* @__PURE__ */ jsx(SubHeaderStyled, { sx, children: /* @__PURE__ */ jsxs(Container, { maxWidth: false, sx: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
5383
5382
  /* @__PURE__ */ jsxs(Box, { sx: { position: "relative" }, children: [
5384
5383
  logo,
5385
5384
  frontCustomComponent
@@ -5395,7 +5394,7 @@ const Header = ({
5395
5394
  margin: { md: "10px", lg: "10px", xs: "10px 0" },
5396
5395
  position: "relative"
5397
5396
  },
5398
- children: /* @__PURE__ */ jsxs(Box, { className: "notification flex items-center gap-1", children: [
5397
+ children: /* @__PURE__ */ jsxs(Box, { className: "notification", children: [
5399
5398
  endCustomComponents,
5400
5399
  isAccessAppMenu && /* @__PURE__ */ jsxs(Box, { children: [
5401
5400
  /* @__PURE__ */ jsx(
@@ -5488,9 +5487,9 @@ const Header = ({
5488
5487
  isMobile && isMenu && /* @__PURE__ */ jsx(
5489
5488
  IconButton,
5490
5489
  {
5491
- className: "hamburger-icon-btn md:hidden ",
5490
+ className: "hamburger-icon-btn",
5492
5491
  onClick: () => setState((p) => ({ ...p, toggles: { ...p.toggles, dropDownMenu: !p.toggles.dropDownMenu } })),
5493
- children: /* @__PURE__ */ jsx(MenuIcon, { className: "w-5 h-5" })
5492
+ children: /* @__PURE__ */ jsx(MenuIcon, { style: { width: "20px", height: "20px" } })
5494
5493
  }
5495
5494
  )
5496
5495
  ] })