sixseconds-modules 1.4.3 → 1.4.4

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.
@@ -18,5 +18,5 @@ interface SubHeaderProps {
18
18
  t?: t;
19
19
  sx?: any;
20
20
  }
21
- export declare const Header: ({ frontCustomComponent, endCustomComponents, userData, interFaceLangList, centerCustomComponents, selectedInterFaceLang, logoutHandler, logo, isNotification, extraMenuOptions, isMenu, isAccessAppMenu, sx, }: SubHeaderProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const Header: ({ frontCustomComponent, endCustomComponents, userData, interFaceLangList, centerCustomComponents, updateInterfaceLang, selectedInterFaceLang, logoutHandler, logo, isNotification, extraMenuOptions, isMenu, isAccessAppMenu, sx, }: SubHeaderProps) => import("react/jsx-runtime").JSX.Element;
22
22
  export {};
@@ -8,5 +8,5 @@ interface IProps {
8
8
  selectedInterFaceLang?: any;
9
9
  setInitialState: SetStateAction<IState>;
10
10
  }
11
- export default function Language({ interFaceLangList, selectedInterFaceLang, setInitialState, }: IProps): import("react/jsx-runtime").JSX.Element;
11
+ export default function Language({ interFaceLangList, updateInterfaceLang, selectedInterFaceLang, setInitialState, }: IProps): import("react/jsx-runtime").JSX.Element;
12
12
  export {};
package/dist/index.cjs.js CHANGED
@@ -4446,7 +4446,7 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
4446
4446
  };
4447
4447
  function Language({
4448
4448
  interFaceLangList,
4449
- // updateInterfaceLang,
4449
+ updateInterfaceLang,
4450
4450
  selectedInterFaceLang,
4451
4451
  setInitialState
4452
4452
  }) {
@@ -4455,6 +4455,7 @@ function Language({
4455
4455
  {
4456
4456
  sx: {
4457
4457
  p: 2,
4458
+ zIndex: 999999,
4458
4459
  borderRadius: "16px",
4459
4460
  border: "1px solid #EDEDED",
4460
4461
  boxShadow: "0px 12px 16px -4px #1A191914",
@@ -4493,6 +4494,7 @@ function Language({
4493
4494
  spacing: 2,
4494
4495
  alignItems: "center",
4495
4496
  onClick: () => {
4497
+ updateInterfaceLang(lang2);
4496
4498
  setInitialState((p) => ({ ...p, toggles: { ...p.toggles, lang: false } }));
4497
4499
  },
4498
4500
  children: /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "row", alignItems: "center", justifyContent: "flex-start", gap: 2, children: [
@@ -5181,6 +5183,7 @@ const Notification = ({ setInitialState, userData, initialState }) => {
5181
5183
  {
5182
5184
  sx: {
5183
5185
  p: 2,
5186
+ zIndex: 999999,
5184
5187
  borderRadius: "16px",
5185
5188
  border: "1px solid #EDEDED",
5186
5189
  boxShadow: "0px 12px 16px -4px #1A191914",
@@ -5346,7 +5349,7 @@ const Header = ({
5346
5349
  interFaceLangList,
5347
5350
  // toggleSiderMenu,
5348
5351
  centerCustomComponents,
5349
- // updateInterfaceLang,
5352
+ updateInterfaceLang,
5350
5353
  selectedInterFaceLang,
5351
5354
  logoutHandler,
5352
5355
  logo,
@@ -5427,6 +5430,25 @@ const Header = ({
5427
5430
  ),
5428
5431
  state.toggles.appMenus && userData?.appAccess?.length && /* @__PURE__ */ jsxRuntime.jsx(material.Box, { className: "profile headerMenu", children: /* @__PURE__ */ jsxRuntime.jsx(AppMenus, { menuItems: userData?.appAccess, setInitialState: setState }) })
5429
5432
  ] }),
5433
+ isNotification && /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { position: "relative" }, children: [
5434
+ /* @__PURE__ */ jsxRuntime.jsx(
5435
+ material.Typography,
5436
+ {
5437
+ sx: {
5438
+ cursor: "pointer",
5439
+ margin: {
5440
+ md: "10px",
5441
+ lg: "10px",
5442
+ xs: "10px 3px!important"
5443
+ }
5444
+ },
5445
+ "data-toggle-name": "notification",
5446
+ onClick: (e) => handleOpenUtil(e, setState),
5447
+ children: /* @__PURE__ */ jsxRuntime.jsx(material.Badge, { badgeContent: userData?.notificationCount, color: "error", className: "notification_icon_error", children: /* @__PURE__ */ jsxRuntime.jsx(SVG.Bell, {}) })
5448
+ }
5449
+ ),
5450
+ state.toggles.notification && /* @__PURE__ */ jsxRuntime.jsx(material.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(Notification, { initialState: state, userData, setInitialState: setState }) })
5451
+ ] }),
5430
5452
  Boolean(interFaceLangList?.length) && /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { position: "relative" }, children: [
5431
5453
  /* @__PURE__ */ jsxRuntime.jsxs(
5432
5454
  material.Typography,
@@ -5457,30 +5479,12 @@ const Header = ({
5457
5479
  setInitialState: setState,
5458
5480
  interFaceLangList,
5459
5481
  userData,
5482
+ updateInterfaceLang,
5460
5483
  setState,
5461
5484
  selectedInterFaceLang
5462
5485
  }
5463
5486
  )
5464
5487
  ] }),
5465
- isNotification && /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { position: "relative" }, children: [
5466
- /* @__PURE__ */ jsxRuntime.jsx(
5467
- material.Typography,
5468
- {
5469
- sx: {
5470
- cursor: "pointer",
5471
- margin: {
5472
- md: "10px",
5473
- lg: "10px",
5474
- xs: "10px 3px!important"
5475
- }
5476
- },
5477
- "data-toggle-name": "notification",
5478
- onClick: (e) => handleOpenUtil(e, setState),
5479
- children: /* @__PURE__ */ jsxRuntime.jsx(material.Badge, { badgeContent: userData?.notificationCount, color: "error", className: "notification_icon_error", children: /* @__PURE__ */ jsxRuntime.jsx(SVG.Bell, {}) })
5480
- }
5481
- ),
5482
- state.toggles.notification && /* @__PURE__ */ jsxRuntime.jsx(material.Box, { children: /* @__PURE__ */ jsxRuntime.jsx(Notification, { initialState: state, userData, setInitialState: setState }) })
5483
- ] }),
5484
5488
  Boolean(userData?.fullName) && /* @__PURE__ */ jsxRuntime.jsx(
5485
5489
  UserProfile,
5486
5490
  {
@@ -5541,6 +5545,8 @@ const App = () => {
5541
5545
  frontCustomComponent: "sdf",
5542
5546
  centerCustomComponents: "center",
5543
5547
  endCustomComponents: "end",
5548
+ updateInterfaceLang: () => {
5549
+ },
5544
5550
  userData: {
5545
5551
  userprofile: "",
5546
5552
  email: "sanskar.sahu@digimonk.in",
@@ -5588,7 +5594,6 @@ const App = () => {
5588
5594
  flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1735277337.png"
5589
5595
  }
5590
5596
  ],
5591
- updateInterfaceLang: [],
5592
5597
  selectedInterFaceLang: {
5593
5598
  label: "Spanish",
5594
5599
  value: 3,