sixseconds-modules 1.4.2 → 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.
package/dist/index.es.js CHANGED
@@ -4428,7 +4428,7 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
4428
4428
  };
4429
4429
  function Language({
4430
4430
  interFaceLangList,
4431
- // updateInterfaceLang,
4431
+ updateInterfaceLang,
4432
4432
  selectedInterFaceLang,
4433
4433
  setInitialState
4434
4434
  }) {
@@ -4437,6 +4437,7 @@ function Language({
4437
4437
  {
4438
4438
  sx: {
4439
4439
  p: 2,
4440
+ zIndex: 999999,
4440
4441
  borderRadius: "16px",
4441
4442
  border: "1px solid #EDEDED",
4442
4443
  boxShadow: "0px 12px 16px -4px #1A191914",
@@ -4475,6 +4476,7 @@ function Language({
4475
4476
  spacing: 2,
4476
4477
  alignItems: "center",
4477
4478
  onClick: () => {
4479
+ updateInterfaceLang(lang2);
4478
4480
  setInitialState((p) => ({ ...p, toggles: { ...p.toggles, lang: false } }));
4479
4481
  },
4480
4482
  children: /* @__PURE__ */ jsx(Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", justifyContent: "flex-start", gap: 2, children: [
@@ -5163,6 +5165,7 @@ const Notification = ({ setInitialState, userData, initialState }) => {
5163
5165
  {
5164
5166
  sx: {
5165
5167
  p: 2,
5168
+ zIndex: 999999,
5166
5169
  borderRadius: "16px",
5167
5170
  border: "1px solid #EDEDED",
5168
5171
  boxShadow: "0px 12px 16px -4px #1A191914",
@@ -5328,7 +5331,7 @@ const Header = ({
5328
5331
  interFaceLangList,
5329
5332
  // toggleSiderMenu,
5330
5333
  centerCustomComponents,
5331
- // updateInterfaceLang,
5334
+ updateInterfaceLang,
5332
5335
  selectedInterFaceLang,
5333
5336
  logoutHandler,
5334
5337
  logo,
@@ -5409,6 +5412,25 @@ const Header = ({
5409
5412
  ),
5410
5413
  state.toggles.appMenus && userData?.appAccess?.length && /* @__PURE__ */ jsx(Box, { className: "profile headerMenu", children: /* @__PURE__ */ jsx(AppMenus, { menuItems: userData?.appAccess, setInitialState: setState }) })
5411
5414
  ] }),
5415
+ isNotification && /* @__PURE__ */ jsxs(Box, { sx: { position: "relative" }, children: [
5416
+ /* @__PURE__ */ jsx(
5417
+ Typography,
5418
+ {
5419
+ sx: {
5420
+ cursor: "pointer",
5421
+ margin: {
5422
+ md: "10px",
5423
+ lg: "10px",
5424
+ xs: "10px 3px!important"
5425
+ }
5426
+ },
5427
+ "data-toggle-name": "notification",
5428
+ onClick: (e) => handleOpenUtil(e, setState),
5429
+ children: /* @__PURE__ */ jsx(Badge, { badgeContent: userData?.notificationCount, color: "error", className: "notification_icon_error", children: /* @__PURE__ */ jsx(SVG.Bell, {}) })
5430
+ }
5431
+ ),
5432
+ state.toggles.notification && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Notification, { initialState: state, userData, setInitialState: setState }) })
5433
+ ] }),
5412
5434
  Boolean(interFaceLangList?.length) && /* @__PURE__ */ jsxs(Box, { sx: { position: "relative" }, children: [
5413
5435
  /* @__PURE__ */ jsxs(
5414
5436
  Typography,
@@ -5439,30 +5461,12 @@ const Header = ({
5439
5461
  setInitialState: setState,
5440
5462
  interFaceLangList,
5441
5463
  userData,
5464
+ updateInterfaceLang,
5442
5465
  setState,
5443
5466
  selectedInterFaceLang
5444
5467
  }
5445
5468
  )
5446
5469
  ] }),
5447
- isNotification && /* @__PURE__ */ jsxs(Box, { sx: { position: "relative" }, children: [
5448
- /* @__PURE__ */ jsx(
5449
- Typography,
5450
- {
5451
- sx: {
5452
- cursor: "pointer",
5453
- margin: {
5454
- md: "10px",
5455
- lg: "10px",
5456
- xs: "10px 3px!important"
5457
- }
5458
- },
5459
- "data-toggle-name": "notification",
5460
- onClick: (e) => handleOpenUtil(e, setState),
5461
- children: /* @__PURE__ */ jsx(Badge, { badgeContent: userData?.notificationCount, color: "error", className: "notification_icon_error", children: /* @__PURE__ */ jsx(SVG.Bell, {}) })
5462
- }
5463
- ),
5464
- state.toggles.notification && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Notification, { initialState: state, userData, setInitialState: setState }) })
5465
- ] }),
5466
5470
  Boolean(userData?.fullName) && /* @__PURE__ */ jsx(
5467
5471
  UserProfile,
5468
5472
  {
@@ -5523,6 +5527,8 @@ const App = () => {
5523
5527
  frontCustomComponent: "sdf",
5524
5528
  centerCustomComponents: "center",
5525
5529
  endCustomComponents: "end",
5530
+ updateInterfaceLang: () => {
5531
+ },
5526
5532
  userData: {
5527
5533
  userprofile: "",
5528
5534
  email: "sanskar.sahu@digimonk.in",
@@ -5570,7 +5576,6 @@ const App = () => {
5570
5576
  flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1735277337.png"
5571
5577
  }
5572
5578
  ],
5573
- updateInterfaceLang: [],
5574
5579
  selectedInterFaceLang: {
5575
5580
  label: "Spanish",
5576
5581
  value: 3,