sixseconds-modules 1.2.8 → 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/README.md +50 -50
- package/dist/components/header/type.d.ts +20 -20
- package/dist/index.cjs.js +17 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.es.js +17 -18
- package/dist/index.es.js.map +1 -1
- package/dist/types/custom.d.ts +25 -23
- package/dist/types/htmlElements.d.ts +7 -5
- package/dist/types/index.d.ts +4 -4
- package/dist/types/reactTypes.d.ts +5 -3
- package/dist/vite-env.d.ts +2 -2
- package/package.json +88 -89
package/dist/index.d.ts
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import MenuIcon from "@mui/icons-material/Menu";
|
|
3
|
-
import { styled, AppBar, Box, Avatar, ClickAwayListener, Stack, Typography, Link, useMediaQuery, Dialog, Button, MenuItem, Grid, Container, Badge, IconButton } from "@mui/material";
|
|
4
2
|
import * as React from "react";
|
|
5
3
|
import React__default, { createElement, useState, Component, useEffect } from "react";
|
|
4
|
+
import { styled, AppBar, Box, Avatar, ClickAwayListener, Stack, Typography, Link, useMediaQuery, Dialog, Button, MenuItem, Grid, Container, Badge, IconButton } from "@mui/material";
|
|
5
|
+
import MenuIcon from "@mui/icons-material/Menu";
|
|
6
6
|
import CheckIcon from "@mui/icons-material/Check";
|
|
7
7
|
import axios from "axios";
|
|
8
8
|
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" }));
|
|
@@ -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: "
|
|
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
|
|
4490
|
+
className: `menu-link`,
|
|
4491
4491
|
children: items.label
|
|
4492
4492
|
}
|
|
4493
4493
|
),
|
|
4494
|
-
Boolean(items.children.length) && /* @__PURE__ */ jsx("ul", { className: "submenuData
|
|
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
|
|
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
|
|
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
|
|
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: "
|
|
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: "
|
|
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, {
|
|
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
|
|
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: "
|
|
5490
|
+
className: "hamburger-icon-btn",
|
|
5492
5491
|
onClick: () => setState((p) => ({ ...p, toggles: { ...p.toggles, dropDownMenu: !p.toggles.dropDownMenu } })),
|
|
5493
|
-
children: /* @__PURE__ */ jsx(MenuIcon, {
|
|
5492
|
+
children: /* @__PURE__ */ jsx(MenuIcon, { style: { width: "20px", height: "20px" } })
|
|
5494
5493
|
}
|
|
5495
5494
|
)
|
|
5496
5495
|
] })
|