jett.admin.npmpackage 1.0.73 → 1.0.74

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.css CHANGED
@@ -258,6 +258,17 @@
258
258
  .visible {
259
259
  visibility: visible;
260
260
  }
261
+ .sr-only {
262
+ position: absolute;
263
+ width: 1px;
264
+ height: 1px;
265
+ padding: 0;
266
+ margin: -1px;
267
+ overflow: hidden;
268
+ clip-path: inset(50%);
269
+ white-space: nowrap;
270
+ border-width: 0;
271
+ }
261
272
  .absolute {
262
273
  position: absolute;
263
274
  }
@@ -276,6 +287,12 @@
276
287
  .top-0 {
277
288
  top: calc(var(--spacing) * 0);
278
289
  }
290
+ .top-5 {
291
+ top: calc(var(--spacing) * 5);
292
+ }
293
+ .top-\[-15px\] {
294
+ top: -15px;
295
+ }
279
296
  .top-full {
280
297
  top: 100%;
281
298
  }
@@ -288,6 +305,12 @@
288
305
  .left-0 {
289
306
  left: calc(var(--spacing) * 0);
290
307
  }
308
+ .left-1\/2 {
309
+ left: calc(1/2 * 100%);
310
+ }
311
+ .left-5 {
312
+ left: calc(var(--spacing) * 5);
313
+ }
291
314
  .z-10 {
292
315
  z-index: 10;
293
316
  }
@@ -321,6 +344,9 @@
321
344
  .ml-2 {
322
345
  margin-left: calc(var(--spacing) * 2);
323
346
  }
347
+ .ml-\[2px\] {
348
+ margin-left: 2px;
349
+ }
324
350
  .ml-\[8px\] {
325
351
  margin-left: 8px;
326
352
  }
@@ -354,6 +380,12 @@
354
380
  .h-6 {
355
381
  height: calc(var(--spacing) * 6);
356
382
  }
383
+ .h-7 {
384
+ height: calc(var(--spacing) * 7);
385
+ }
386
+ .h-8 {
387
+ height: calc(var(--spacing) * 8);
388
+ }
357
389
  .h-9 {
358
390
  height: calc(var(--spacing) * 9);
359
391
  }
@@ -396,6 +428,9 @@
396
428
  .w-6 {
397
429
  width: calc(var(--spacing) * 6);
398
430
  }
431
+ .w-7 {
432
+ width: calc(var(--spacing) * 7);
433
+ }
399
434
  .w-9 {
400
435
  width: calc(var(--spacing) * 9);
401
436
  }
@@ -405,6 +440,9 @@
405
440
  .w-11 {
406
441
  width: calc(var(--spacing) * 11);
407
442
  }
443
+ .w-16 {
444
+ width: calc(var(--spacing) * 16);
445
+ }
408
446
  .w-20 {
409
447
  width: calc(var(--spacing) * 20);
410
448
  }
@@ -438,6 +476,10 @@
438
476
  .border-collapse {
439
477
  border-collapse: collapse;
440
478
  }
479
+ .-translate-x-1\/2 {
480
+ --tw-translate-x: calc(calc(1/2 * 100%) * -1);
481
+ translate: var(--tw-translate-x) var(--tw-translate-y);
482
+ }
441
483
  .-translate-x-full {
442
484
  --tw-translate-x: -100%;
443
485
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -454,6 +496,10 @@
454
496
  --tw-translate-x: calc(var(--spacing) * 6);
455
497
  translate: var(--tw-translate-x) var(--tw-translate-y);
456
498
  }
499
+ .translate-x-8 {
500
+ --tw-translate-x: calc(var(--spacing) * 8);
501
+ translate: var(--tw-translate-x) var(--tw-translate-y);
502
+ }
457
503
  .translate-x-\[100\%\] {
458
504
  --tw-translate-x: 100%;
459
505
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -742,6 +788,9 @@
742
788
  .text-\[\#3f3f46cc\] {
743
789
  color: #3f3f46cc;
744
790
  }
791
+ .text-\[\#6B7280\] {
792
+ color: #6B7280;
793
+ }
745
794
  .text-\[\#737373\] {
746
795
  color: #737373;
747
796
  }
@@ -778,6 +827,9 @@
778
827
  .text-yellow-800 {
779
828
  color: var(--color-yellow-800);
780
829
  }
830
+ .opacity-0 {
831
+ opacity: 0%;
832
+ }
781
833
  .shadow {
782
834
  --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
783
835
  box-shadow:
@@ -787,6 +839,15 @@
787
839
  var(--tw-ring-shadow),
788
840
  var(--tw-shadow);
789
841
  }
842
+ .shadow-inner {
843
+ --tw-shadow: inset 0 2px 4px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
844
+ box-shadow:
845
+ var(--tw-inset-shadow),
846
+ var(--tw-inset-ring-shadow),
847
+ var(--tw-ring-offset-shadow),
848
+ var(--tw-ring-shadow),
849
+ var(--tw-shadow);
850
+ }
790
851
  .shadow-lg {
791
852
  --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
792
853
  box-shadow:
@@ -850,6 +911,11 @@
850
911
  transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
851
912
  transition-duration: var(--tw-duration, var(--default-transition-duration));
852
913
  }
914
+ .transition-opacity {
915
+ transition-property: opacity;
916
+ transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
917
+ transition-duration: var(--tw-duration, var(--default-transition-duration));
918
+ }
853
919
  .transition-transform {
854
920
  transition-property:
855
921
  transform,
@@ -881,6 +947,13 @@
881
947
  -webkit-user-select: none;
882
948
  user-select: none;
883
949
  }
950
+ .group-hover\:opacity-80 {
951
+ &:is(:where(.group):hover *) {
952
+ @media (hover: hover) {
953
+ opacity: 80%;
954
+ }
955
+ }
956
+ }
884
957
  .peer-checked\:border-primary {
885
958
  &:is(:where(.peer):checked ~ *) {
886
959
  border-color: var(--color-primary);
@@ -1072,6 +1145,11 @@
1072
1145
  background-color: #1d1d20;
1073
1146
  }
1074
1147
  }
1148
+ .dark\:bg-\[\#4B5563\] {
1149
+ &:where(.dark, .dark *) {
1150
+ background-color: #4B5563;
1151
+ }
1152
+ }
1075
1153
  .dark\:bg-\[\#18181b\] {
1076
1154
  &:where(.dark, .dark *) {
1077
1155
  background-color: #18181b;
package/dist/index.js CHANGED
@@ -734,6 +734,23 @@ var AppSideBar = ({
734
734
  const [authData, setAuthData] = (0, import_react12.useState)(null);
735
735
  const [selectedCountry, setSelectedCountry] = (0, import_react12.useState)("dubai");
736
736
  const [isMobileMenuOpen, setIsMobileMenuOpen] = (0, import_react12.useState)(false);
737
+ const [currAppearance, setCurrAppearance] = (0, import_react12.useState)("light");
738
+ (0, import_react12.useEffect)(() => {
739
+ const savedTheme = localStorage.getItem("themeMode") || "light";
740
+ setCurrAppearance(savedTheme);
741
+ }, []);
742
+ const handleCurrAppearance = (appearance) => {
743
+ setCurrAppearance(appearance);
744
+ localStorage.setItem("themeMode", appearance);
745
+ };
746
+ (0, import_react12.useEffect)(() => {
747
+ const root = document.documentElement;
748
+ if (currAppearance === "light") {
749
+ root.classList.remove("dark");
750
+ } else {
751
+ root.classList.add("dark");
752
+ }
753
+ }, [currAppearance]);
737
754
  const countryOptions = [
738
755
  { label: "India", value: "india" },
739
756
  { label: "Dubai", value: "dubai" },
@@ -909,7 +926,24 @@ var AppSideBar = ({
909
926
  },
910
927
  /* @__PURE__ */ import_react12.default.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ import_react12.default.createElement("span", { className: "relative flex shrink-0 overflow-hidden dark:bg-[#27272a] rounded-full h-10 w-10" }, /* @__PURE__ */ import_react12.default.createElement("span", { className: "flex h-full w-full items-center justify-center rounded-full bg-muted dark:text-white" }, ((_a = authData == null ? void 0 : authData.userInfo) == null ? void 0 : _a.UserName) ? authData.userInfo.UserName.split("")[0] : "A")), /* @__PURE__ */ import_react12.default.createElement("div", null, /* @__PURE__ */ import_react12.default.createElement("p", { className: "font-semibold dark:text-white" }, ((_b = authData == null ? void 0 : authData.userInfo) == null ? void 0 : _b.UserName) ? authData.userInfo.UserName : "Admin User"), /* @__PURE__ */ import_react12.default.createElement("p", { className: "text-sm dark:text-[#f4f4f5cc]" }, role))),
911
928
  /* @__PURE__ */ import_react12.default.createElement("div", { className: "dark:text-[#f4f4f5cc]" }, /* @__PURE__ */ import_react12.default.createElement(import_lucide_react6.LogOut, null))
912
- ))
929
+ )),
930
+ /* @__PURE__ */ import_react12.default.createElement("div", { className: "flex items-center gap-4 absolute top-5 left-5 group" }, /* @__PURE__ */ import_react12.default.createElement("label", { className: "inline-flex items-center cursor-pointer relative" }, /* @__PURE__ */ import_react12.default.createElement(
931
+ "input",
932
+ {
933
+ type: "checkbox",
934
+ className: "sr-only",
935
+ checked: currAppearance === "dark",
936
+ onChange: () => handleCurrAppearance(
937
+ currAppearance === "light" ? "dark" : "light"
938
+ )
939
+ }
940
+ ), /* @__PURE__ */ import_react12.default.createElement("div", { className: "w-16 h-8 bg-gray-200 dark:bg-[#4B5563] rounded-full shadow-inner" }), /* @__PURE__ */ import_react12.default.createElement(
941
+ "div",
942
+ {
943
+ className: `dot ml-[2px] absolute w-7 h-7 bg-white rounded-full transition-transform duration-200 ease-in-out flex items-center justify-center ${currAppearance === "dark" ? "translate-x-8" : "translate-x-0"}`
944
+ },
945
+ currAppearance === "light" ? /* @__PURE__ */ import_react12.default.createElement(import_lucide_react6.Sun, { width: 18, height: 18 }) : /* @__PURE__ */ import_react12.default.createElement(import_lucide_react6.Moon, { width: 18, height: 18, className: "text-black" })
946
+ ), /* @__PURE__ */ import_react12.default.createElement("span", { className: "absolute top-[-15px] left-1/2 -translate-x-1/2 font-medium text-[#6B7280]] dark:text-[#f4f4f5cc] text-xs opacity-0 group-hover:opacity-80 transition-opacity" }, "Theme")))
913
947
  ));
914
948
  };
915
949
 
package/dist/index.mjs CHANGED
@@ -391,7 +391,7 @@ var CustomUpload = ({
391
391
  };
392
392
 
393
393
  // src/sideBar/SideBar.jsx
394
- import { ChevronDown as ChevronDown3, Globe as Globe2, LogOut, Menu, X } from "lucide-react";
394
+ import { ChevronDown as ChevronDown3, Globe as Globe2, LogOut, Menu, Moon, Sun, X } from "lucide-react";
395
395
  import React12, { useEffect, useState as useState3 } from "react";
396
396
 
397
397
  // ConstantUI.js
@@ -699,6 +699,23 @@ var AppSideBar = ({
699
699
  const [authData, setAuthData] = useState3(null);
700
700
  const [selectedCountry, setSelectedCountry] = useState3("dubai");
701
701
  const [isMobileMenuOpen, setIsMobileMenuOpen] = useState3(false);
702
+ const [currAppearance, setCurrAppearance] = useState3("light");
703
+ useEffect(() => {
704
+ const savedTheme = localStorage.getItem("themeMode") || "light";
705
+ setCurrAppearance(savedTheme);
706
+ }, []);
707
+ const handleCurrAppearance = (appearance) => {
708
+ setCurrAppearance(appearance);
709
+ localStorage.setItem("themeMode", appearance);
710
+ };
711
+ useEffect(() => {
712
+ const root = document.documentElement;
713
+ if (currAppearance === "light") {
714
+ root.classList.remove("dark");
715
+ } else {
716
+ root.classList.add("dark");
717
+ }
718
+ }, [currAppearance]);
702
719
  const countryOptions = [
703
720
  { label: "India", value: "india" },
704
721
  { label: "Dubai", value: "dubai" },
@@ -874,7 +891,24 @@ var AppSideBar = ({
874
891
  },
875
892
  /* @__PURE__ */ React12.createElement("div", { className: "flex items-center gap-3" }, /* @__PURE__ */ React12.createElement("span", { className: "relative flex shrink-0 overflow-hidden dark:bg-[#27272a] rounded-full h-10 w-10" }, /* @__PURE__ */ React12.createElement("span", { className: "flex h-full w-full items-center justify-center rounded-full bg-muted dark:text-white" }, ((_a = authData == null ? void 0 : authData.userInfo) == null ? void 0 : _a.UserName) ? authData.userInfo.UserName.split("")[0] : "A")), /* @__PURE__ */ React12.createElement("div", null, /* @__PURE__ */ React12.createElement("p", { className: "font-semibold dark:text-white" }, ((_b = authData == null ? void 0 : authData.userInfo) == null ? void 0 : _b.UserName) ? authData.userInfo.UserName : "Admin User"), /* @__PURE__ */ React12.createElement("p", { className: "text-sm dark:text-[#f4f4f5cc]" }, role))),
876
893
  /* @__PURE__ */ React12.createElement("div", { className: "dark:text-[#f4f4f5cc]" }, /* @__PURE__ */ React12.createElement(LogOut, null))
877
- ))
894
+ )),
895
+ /* @__PURE__ */ React12.createElement("div", { className: "flex items-center gap-4 absolute top-5 left-5 group" }, /* @__PURE__ */ React12.createElement("label", { className: "inline-flex items-center cursor-pointer relative" }, /* @__PURE__ */ React12.createElement(
896
+ "input",
897
+ {
898
+ type: "checkbox",
899
+ className: "sr-only",
900
+ checked: currAppearance === "dark",
901
+ onChange: () => handleCurrAppearance(
902
+ currAppearance === "light" ? "dark" : "light"
903
+ )
904
+ }
905
+ ), /* @__PURE__ */ React12.createElement("div", { className: "w-16 h-8 bg-gray-200 dark:bg-[#4B5563] rounded-full shadow-inner" }), /* @__PURE__ */ React12.createElement(
906
+ "div",
907
+ {
908
+ className: `dot ml-[2px] absolute w-7 h-7 bg-white rounded-full transition-transform duration-200 ease-in-out flex items-center justify-center ${currAppearance === "dark" ? "translate-x-8" : "translate-x-0"}`
909
+ },
910
+ currAppearance === "light" ? /* @__PURE__ */ React12.createElement(Sun, { width: 18, height: 18 }) : /* @__PURE__ */ React12.createElement(Moon, { width: 18, height: 18, className: "text-black" })
911
+ ), /* @__PURE__ */ React12.createElement("span", { className: "absolute top-[-15px] left-1/2 -translate-x-1/2 font-medium text-[#6B7280]] dark:text-[#f4f4f5cc] text-xs opacity-0 group-hover:opacity-80 transition-opacity" }, "Theme")))
878
912
  ));
879
913
  };
880
914
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jett.admin.npmpackage",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "exports": {