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 CHANGED
@@ -1,50 +1,50 @@
1
- # React + TypeScript + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## Expanding the ESLint configuration
11
-
12
- If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
-
14
- - Configure the top-level `parserOptions` property like this:
15
-
16
- ```js
17
- export default tseslint.config({
18
- languageOptions: {
19
- // other options...
20
- parserOptions: {
21
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
22
- tsconfigRootDir: import.meta.dirname,
23
- },
24
- },
25
- })
26
- ```
27
-
28
- - Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29
- - Optionally add `...tseslint.configs.stylisticTypeChecked`
30
- - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
31
-
32
- ```js
33
- // eslint.config.js
34
- import react from 'eslint-plugin-react'
35
-
36
- export default tseslint.config({
37
- // Set the react version
38
- settings: { react: { version: '18.3' } },
39
- plugins: {
40
- // Add the react plugin
41
- react,
42
- },
43
- rules: {
44
- // other rules...
45
- // Enable its recommended rules
46
- ...react.configs.recommended.rules,
47
- ...react.configs['jsx-runtime'].rules,
48
- },
49
- })
50
- ```
1
+ # React + TypeScript + Vite
2
+
3
+ This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
+
5
+ Currently, two official plugins are available:
6
+
7
+ - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
8
+ - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
+
10
+ ## Expanding the ESLint configuration
11
+
12
+ If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13
+
14
+ - Configure the top-level `parserOptions` property like this:
15
+
16
+ ```js
17
+ export default tseslint.config({
18
+ languageOptions: {
19
+ // other options...
20
+ parserOptions: {
21
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
22
+ tsconfigRootDir: import.meta.dirname,
23
+ },
24
+ },
25
+ })
26
+ ```
27
+
28
+ - Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29
+ - Optionally add `...tseslint.configs.stylisticTypeChecked`
30
+ - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
31
+
32
+ ```js
33
+ // eslint.config.js
34
+ import react from 'eslint-plugin-react'
35
+
36
+ export default tseslint.config({
37
+ // Set the react version
38
+ settings: { react: { version: '18.3' } },
39
+ plugins: {
40
+ // Add the react plugin
41
+ react,
42
+ },
43
+ rules: {
44
+ // other rules...
45
+ // Enable its recommended rules
46
+ ...react.configs.recommended.rules,
47
+ ...react.configs['jsx-runtime'].rules,
48
+ },
49
+ })
50
+ ```
@@ -1,20 +1,20 @@
1
- export interface IState {
2
- languages: string[]
3
- menuData: []
4
- toggles: {
5
- appMenus: boolean
6
- notification: boolean
7
- logout: boolean
8
- lang: boolean
9
- dropDownMenu: boolean
10
- }
11
- }
12
-
13
- export interface INotificationState {
14
- notificationData: Notification[]
15
- page: number
16
- currentPage: number
17
- lastPage: number
18
- requestAcceptedDialog?: boolean
19
- userRequest?: any
20
- }
1
+ export interface IState {
2
+ languages: string[]
3
+ menuData: []
4
+ toggles: {
5
+ appMenus: boolean
6
+ notification: boolean
7
+ logout: boolean
8
+ lang: boolean
9
+ dropDownMenu: boolean
10
+ }
11
+ }
12
+
13
+ export interface INotificationState {
14
+ notificationData: Notification[]
15
+ page: number
16
+ currentPage: number
17
+ lastPage: number
18
+ requestAcceptedDialog?: boolean
19
+ userRequest?: any
20
+ }
package/dist/index.cjs.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const MenuIcon = require("@mui/icons-material/Menu");
5
- const material = require("@mui/material");
6
4
  const React = require("react");
5
+ const material = require("@mui/material");
6
+ const MenuIcon = require("@mui/icons-material/Menu");
7
7
  const CheckIcon = require("@mui/icons-material/Check");
8
8
  const axios = require("axios");
9
9
  function _interopNamespaceDefault(e) {
@@ -4499,41 +4499,41 @@ function Language({
4499
4499
  const DropdownMenu = ({ headerMenuArray, initialState }) => {
4500
4500
  const pathname = window.location.pathname;
4501
4501
  const isMobile = material.useMediaQuery("(max-width: 1324px)");
4502
- return /* @__PURE__ */ jsxRuntime.jsx("nav", { style: { backgroundColor: "#fff", color: "#000" }, children: !isMobile ? /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "menu-item group relative font-sans px-0 md:px-1 lg:px-2 pt-5 pb-5", children: [
4502
+ return /* @__PURE__ */ jsxRuntime.jsx("nav", { style: { backgroundColor: "#fff", color: "#000" }, children: !isMobile ? /* @__PURE__ */ jsxRuntime.jsx("ul", { className: " main_list_Menu desktopMenu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "menu-item", children: [
4503
4503
  /* @__PURE__ */ jsxRuntime.jsx(
4504
4504
  "a",
4505
4505
  {
4506
4506
  href: items.value || "",
4507
4507
  target: items.target,
4508
- className: `menu-link pr-1 py-2 text-[15px] font-semibold font-sans hover:text-customBlue ${pathname === items.value ? "text-customBlue" : "text-[#2C2E35]"}`,
4508
+ className: `menu-link`,
4509
4509
  children: items.label
4510
4510
  }
4511
4511
  ),
4512
- Boolean(items.children.length) && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
4512
+ Boolean(items.children.length) && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "submenuData ", children: items.children?.map((child, index2) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
4513
4513
  "a",
4514
4514
  {
4515
4515
  href: child.value || "",
4516
4516
  target: child.target,
4517
- className: "submenu-link block font-semibold font-sans px-4 py-2 text-[rgba(0,0,0,0.7)] hover:bg-gray-200",
4517
+ className: "submenu-link",
4518
4518
  children: child.label
4519
4519
  }
4520
4520
  ) }, index2) })) })
4521
- ] }, index) })) }) : initialState.toggles.dropDownMenu && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:hidden px-5 smallDeviceMenu", id: "mobile-menu", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: " px-0 pb-3 h-[95vh] overflow-y-auto pt-2", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4521
+ ] }, index) })) }) : initialState.toggles.dropDownMenu && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lg:hidden smallDeviceMenu", id: "mobile-menu", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: " layout_mobile_menu", children: headerMenuArray.map((items, index) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4522
4522
  /* @__PURE__ */ jsxRuntime.jsx(
4523
4523
  "a",
4524
4524
  {
4525
4525
  href: items.value || "",
4526
- 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]"}`,
4526
+ className: `bg_main_menu ${pathname === items.value ? "text-customBlue" : "text-[#2C2E35]"}`,
4527
4527
  children: items.label
4528
4528
  },
4529
4529
  index
4530
4530
  ),
4531
- Boolean(items.children.length) && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
4531
+ Boolean(items.children.length) && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "submenu_child", children: items.children?.map((items2, index2) => /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
4532
4532
  "a",
4533
4533
  {
4534
4534
  href: items2.value || "",
4535
4535
  target: items2.target,
4536
- 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",
4536
+ className: "submenu_child_link ",
4537
4537
  children: items2.label
4538
4538
  }
4539
4539
  ) }, index2) })) })
@@ -5204,7 +5204,7 @@ const Notification = ({ setInitialState, userData, initialState }) => {
5204
5204
  position: "absolute"
5205
5205
  },
5206
5206
  children: [
5207
- /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "flex border-b pb-2", children: userData?.appAccess?.map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
5207
+ /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { paddingBottom: "8px", display: "flex", borderBottom: "1px solid #ddd" }, children: userData?.appAccess?.map((tab) => /* @__PURE__ */ jsxRuntime.jsx(
5208
5208
  material.Button,
5209
5209
  {
5210
5210
  onClick: () => setActiveTab(tab.name),
@@ -5327,10 +5327,9 @@ const AppMenus = ({ menuItems, setInitialState }) => {
5327
5327
  {
5328
5328
  width: 34,
5329
5329
  height: 34,
5330
- style: { margin: "0px auto" },
5330
+ style: { margin: "0px auto", width: "34px", height: "34px" },
5331
5331
  src: item.icon,
5332
- alt: "",
5333
- className: "w-[34px] h-[34px]"
5332
+ alt: ""
5334
5333
  }
5335
5334
  ) }),
5336
5335
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -5397,7 +5396,7 @@ const Header = ({
5397
5396
  }
5398
5397
  }, [isMenu]);
5399
5398
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5400
- /* @__PURE__ */ jsxRuntime.jsx(SubHeaderStyled, { sx, children: /* @__PURE__ */ jsxRuntime.jsxs(material.Container, { maxWidth: false, sx: { display: "flex", justifyContent: "space-between" }, children: [
5399
+ /* @__PURE__ */ jsxRuntime.jsx(SubHeaderStyled, { sx, children: /* @__PURE__ */ jsxRuntime.jsxs(material.Container, { maxWidth: false, sx: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
5401
5400
  /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { position: "relative" }, children: [
5402
5401
  logo,
5403
5402
  frontCustomComponent
@@ -5413,7 +5412,7 @@ const Header = ({
5413
5412
  margin: { md: "10px", lg: "10px", xs: "10px 0" },
5414
5413
  position: "relative"
5415
5414
  },
5416
- children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "notification flex items-center gap-1", children: [
5415
+ children: /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { className: "notification", children: [
5417
5416
  endCustomComponents,
5418
5417
  isAccessAppMenu && /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { children: [
5419
5418
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -5506,9 +5505,9 @@ const Header = ({
5506
5505
  isMobile && isMenu && /* @__PURE__ */ jsxRuntime.jsx(
5507
5506
  material.IconButton,
5508
5507
  {
5509
- className: "flex items-center p-2 text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 focus:outline-none",
5508
+ className: "hamburger-icon-btn",
5510
5509
  onClick: () => setState((p) => ({ ...p, toggles: { ...p.toggles, dropDownMenu: !p.toggles.dropDownMenu } })),
5511
- children: /* @__PURE__ */ jsxRuntime.jsx(MenuIcon, { className: "w-5 h-5" })
5510
+ children: /* @__PURE__ */ jsxRuntime.jsx(MenuIcon, { style: { width: "20px", height: "20px" } })
5512
5511
  }
5513
5512
  )
5514
5513
  ] })