jett.admin.npmpackage 1.0.73 → 1.0.77
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 +96 -0
- package/dist/index.js +37 -4
- package/dist/index.mjs +47 -5
- package/package.json +1 -1
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,9 @@
|
|
|
276
287
|
.top-0 {
|
|
277
288
|
top: calc(var(--spacing) * 0);
|
|
278
289
|
}
|
|
290
|
+
.top-\[-15px\] {
|
|
291
|
+
top: -15px;
|
|
292
|
+
}
|
|
279
293
|
.top-full {
|
|
280
294
|
top: 100%;
|
|
281
295
|
}
|
|
@@ -288,6 +302,9 @@
|
|
|
288
302
|
.left-0 {
|
|
289
303
|
left: calc(var(--spacing) * 0);
|
|
290
304
|
}
|
|
305
|
+
.left-1\/2 {
|
|
306
|
+
left: calc(1/2 * 100%);
|
|
307
|
+
}
|
|
291
308
|
.z-10 {
|
|
292
309
|
z-index: 10;
|
|
293
310
|
}
|
|
@@ -306,6 +323,9 @@
|
|
|
306
323
|
.mr-2 {
|
|
307
324
|
margin-right: calc(var(--spacing) * 2);
|
|
308
325
|
}
|
|
326
|
+
.mr-\[8px\] {
|
|
327
|
+
margin-right: 8px;
|
|
328
|
+
}
|
|
309
329
|
.mb-1 {
|
|
310
330
|
margin-bottom: calc(var(--spacing) * 1);
|
|
311
331
|
}
|
|
@@ -321,9 +341,15 @@
|
|
|
321
341
|
.ml-2 {
|
|
322
342
|
margin-left: calc(var(--spacing) * 2);
|
|
323
343
|
}
|
|
344
|
+
.ml-\[2px\] {
|
|
345
|
+
margin-left: 2px;
|
|
346
|
+
}
|
|
324
347
|
.ml-\[8px\] {
|
|
325
348
|
margin-left: 8px;
|
|
326
349
|
}
|
|
350
|
+
.ml-\[16px\] {
|
|
351
|
+
margin-left: 16px;
|
|
352
|
+
}
|
|
327
353
|
.ml-\[20px\] {
|
|
328
354
|
margin-left: 20px;
|
|
329
355
|
}
|
|
@@ -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);
|
|
@@ -491,6 +537,9 @@
|
|
|
491
537
|
.justify-center {
|
|
492
538
|
justify-content: center;
|
|
493
539
|
}
|
|
540
|
+
.justify-end {
|
|
541
|
+
justify-content: flex-end;
|
|
542
|
+
}
|
|
494
543
|
.gap-1 {
|
|
495
544
|
gap: calc(var(--spacing) * 1);
|
|
496
545
|
}
|
|
@@ -685,9 +734,18 @@
|
|
|
685
734
|
.pt-2 {
|
|
686
735
|
padding-top: calc(var(--spacing) * 2);
|
|
687
736
|
}
|
|
737
|
+
.pt-5 {
|
|
738
|
+
padding-top: calc(var(--spacing) * 5);
|
|
739
|
+
}
|
|
688
740
|
.pt-20 {
|
|
689
741
|
padding-top: calc(var(--spacing) * 20);
|
|
690
742
|
}
|
|
743
|
+
.pb-4 {
|
|
744
|
+
padding-bottom: calc(var(--spacing) * 4);
|
|
745
|
+
}
|
|
746
|
+
.pl-4 {
|
|
747
|
+
padding-left: calc(var(--spacing) * 4);
|
|
748
|
+
}
|
|
691
749
|
.text-center {
|
|
692
750
|
text-align: center;
|
|
693
751
|
}
|
|
@@ -715,6 +773,9 @@
|
|
|
715
773
|
.text-\[14px\] {
|
|
716
774
|
font-size: 14px;
|
|
717
775
|
}
|
|
776
|
+
.text-\[16px\] {
|
|
777
|
+
font-size: 16px;
|
|
778
|
+
}
|
|
718
779
|
.leading-5 {
|
|
719
780
|
--tw-leading: calc(var(--spacing) * 5);
|
|
720
781
|
line-height: calc(var(--spacing) * 5);
|
|
@@ -739,9 +800,15 @@
|
|
|
739
800
|
--tw-font-weight: var(--font-weight-semibold);
|
|
740
801
|
font-weight: var(--font-weight-semibold);
|
|
741
802
|
}
|
|
803
|
+
.whitespace-nowrap {
|
|
804
|
+
white-space: nowrap;
|
|
805
|
+
}
|
|
742
806
|
.text-\[\#3f3f46cc\] {
|
|
743
807
|
color: #3f3f46cc;
|
|
744
808
|
}
|
|
809
|
+
.text-\[\#6B7280\] {
|
|
810
|
+
color: #6B7280;
|
|
811
|
+
}
|
|
745
812
|
.text-\[\#737373\] {
|
|
746
813
|
color: #737373;
|
|
747
814
|
}
|
|
@@ -778,6 +845,9 @@
|
|
|
778
845
|
.text-yellow-800 {
|
|
779
846
|
color: var(--color-yellow-800);
|
|
780
847
|
}
|
|
848
|
+
.opacity-0 {
|
|
849
|
+
opacity: 0%;
|
|
850
|
+
}
|
|
781
851
|
.shadow {
|
|
782
852
|
--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
853
|
box-shadow:
|
|
@@ -787,6 +857,15 @@
|
|
|
787
857
|
var(--tw-ring-shadow),
|
|
788
858
|
var(--tw-shadow);
|
|
789
859
|
}
|
|
860
|
+
.shadow-inner {
|
|
861
|
+
--tw-shadow: inset 0 2px 4px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
|
|
862
|
+
box-shadow:
|
|
863
|
+
var(--tw-inset-shadow),
|
|
864
|
+
var(--tw-inset-ring-shadow),
|
|
865
|
+
var(--tw-ring-offset-shadow),
|
|
866
|
+
var(--tw-ring-shadow),
|
|
867
|
+
var(--tw-shadow);
|
|
868
|
+
}
|
|
790
869
|
.shadow-lg {
|
|
791
870
|
--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
871
|
box-shadow:
|
|
@@ -850,6 +929,11 @@
|
|
|
850
929
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
851
930
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
852
931
|
}
|
|
932
|
+
.transition-opacity {
|
|
933
|
+
transition-property: opacity;
|
|
934
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
935
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
936
|
+
}
|
|
853
937
|
.transition-transform {
|
|
854
938
|
transition-property:
|
|
855
939
|
transform,
|
|
@@ -881,6 +965,13 @@
|
|
|
881
965
|
-webkit-user-select: none;
|
|
882
966
|
user-select: none;
|
|
883
967
|
}
|
|
968
|
+
.group-hover\:opacity-80 {
|
|
969
|
+
&:is(:where(.group):hover *) {
|
|
970
|
+
@media (hover: hover) {
|
|
971
|
+
opacity: 80%;
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
884
975
|
.peer-checked\:border-primary {
|
|
885
976
|
&:is(:where(.peer):checked ~ *) {
|
|
886
977
|
border-color: var(--color-primary);
|
|
@@ -1072,6 +1163,11 @@
|
|
|
1072
1163
|
background-color: #1d1d20;
|
|
1073
1164
|
}
|
|
1074
1165
|
}
|
|
1166
|
+
.dark\:bg-\[\#4B5563\] {
|
|
1167
|
+
&:where(.dark, .dark *) {
|
|
1168
|
+
background-color: #4B5563;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1075
1171
|
.dark\:bg-\[\#18181b\] {
|
|
1076
1172
|
&:where(.dark, .dark *) {
|
|
1077
1173
|
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" },
|
|
@@ -816,7 +833,7 @@ var AppSideBar = ({
|
|
|
816
833
|
className: "object-contain"
|
|
817
834
|
}
|
|
818
835
|
))),
|
|
819
|
-
/* @__PURE__ */ import_react12.default.createElement("div", { className: "mb-4" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "flex ml-[20px] items-center gap-2 mb-2 dark:text-[#f4f4f5cc]" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "text-primary" }, /* @__PURE__ */ import_react12.default.createElement(import_lucide_react6.Globe, { width: 20, height: 20 })), /* @__PURE__ */ import_react12.default.createElement("h3", { className: "text-[#3f3f46cc] dark:text-[#f4f4f5cc] font-medium" }, "Data Centers")), /* @__PURE__ */ import_react12.default.createElement("div",
|
|
836
|
+
/* @__PURE__ */ import_react12.default.createElement("div", { className: "mb-4" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "flex ml-[20px] items-center gap-2 mb-2 dark:text-[#f4f4f5cc]" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "text-primary" }, /* @__PURE__ */ import_react12.default.createElement(import_lucide_react6.Globe, { width: 20, height: 20 })), /* @__PURE__ */ import_react12.default.createElement("h3", { className: "text-[#3f3f46cc] dark:text-[#f4f4f5cc] font-medium" }, "Data Centers")), /* @__PURE__ */ import_react12.default.createElement("div", { className: "mr-[8px] ml-[16px]" }, /* @__PURE__ */ import_react12.default.createElement(
|
|
820
837
|
CustomSelect,
|
|
821
838
|
{
|
|
822
839
|
heading: "",
|
|
@@ -907,9 +924,25 @@ var AppSideBar = ({
|
|
|
907
924
|
window.location.href = "/profile";
|
|
908
925
|
}
|
|
909
926
|
},
|
|
910
|
-
/* @__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
|
-
|
|
912
|
-
))
|
|
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)))
|
|
928
|
+
)),
|
|
929
|
+
/* @__PURE__ */ import_react12.default.createElement("div", { className: "flex w-full justify-space-between items-center gap-4 group pl-4 pb-4 pt-5" }, /* @__PURE__ */ import_react12.default.createElement("div", { className: "flex text-[16px] font-medium dark:text-[#f4f4f5cc] gap-2" }, /* @__PURE__ */ import_react12.default.createElement(import_lucide_react6.SunMoon, { className: "mr-10px" }), /* @__PURE__ */ import_react12.default.createElement("span", null, "Appearance ")), /* @__PURE__ */ import_react12.default.createElement("div", { className: "flex w-full justify-end" }, /* @__PURE__ */ import_react12.default.createElement("label", { className: "flex items-center cursor-pointer relative" }, /* @__PURE__ */ import_react12.default.createElement(
|
|
930
|
+
"input",
|
|
931
|
+
{
|
|
932
|
+
type: "checkbox",
|
|
933
|
+
className: "sr-only",
|
|
934
|
+
checked: currAppearance === "dark",
|
|
935
|
+
onChange: () => handleCurrAppearance(
|
|
936
|
+
currAppearance === "light" ? "dark" : "light"
|
|
937
|
+
)
|
|
938
|
+
}
|
|
939
|
+
), /* @__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(
|
|
940
|
+
"div",
|
|
941
|
+
{
|
|
942
|
+
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"}`
|
|
943
|
+
},
|
|
944
|
+
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" })
|
|
945
|
+
), /* @__PURE__ */ import_react12.default.createElement("span", { className: "absolute whitespace-nowrap 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" }, "Choose your app\u2019s style."))))
|
|
913
946
|
));
|
|
914
947
|
};
|
|
915
948
|
|
package/dist/index.mjs
CHANGED
|
@@ -391,7 +391,16 @@ var CustomUpload = ({
|
|
|
391
391
|
};
|
|
392
392
|
|
|
393
393
|
// src/sideBar/SideBar.jsx
|
|
394
|
-
import {
|
|
394
|
+
import {
|
|
395
|
+
ChevronDown as ChevronDown3,
|
|
396
|
+
Globe as Globe2,
|
|
397
|
+
LogOut,
|
|
398
|
+
Menu,
|
|
399
|
+
Moon,
|
|
400
|
+
Sun,
|
|
401
|
+
SunMoon,
|
|
402
|
+
X
|
|
403
|
+
} from "lucide-react";
|
|
395
404
|
import React12, { useEffect, useState as useState3 } from "react";
|
|
396
405
|
|
|
397
406
|
// ConstantUI.js
|
|
@@ -699,6 +708,23 @@ var AppSideBar = ({
|
|
|
699
708
|
const [authData, setAuthData] = useState3(null);
|
|
700
709
|
const [selectedCountry, setSelectedCountry] = useState3("dubai");
|
|
701
710
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState3(false);
|
|
711
|
+
const [currAppearance, setCurrAppearance] = useState3("light");
|
|
712
|
+
useEffect(() => {
|
|
713
|
+
const savedTheme = localStorage.getItem("themeMode") || "light";
|
|
714
|
+
setCurrAppearance(savedTheme);
|
|
715
|
+
}, []);
|
|
716
|
+
const handleCurrAppearance = (appearance) => {
|
|
717
|
+
setCurrAppearance(appearance);
|
|
718
|
+
localStorage.setItem("themeMode", appearance);
|
|
719
|
+
};
|
|
720
|
+
useEffect(() => {
|
|
721
|
+
const root = document.documentElement;
|
|
722
|
+
if (currAppearance === "light") {
|
|
723
|
+
root.classList.remove("dark");
|
|
724
|
+
} else {
|
|
725
|
+
root.classList.add("dark");
|
|
726
|
+
}
|
|
727
|
+
}, [currAppearance]);
|
|
702
728
|
const countryOptions = [
|
|
703
729
|
{ label: "India", value: "india" },
|
|
704
730
|
{ label: "Dubai", value: "dubai" },
|
|
@@ -781,7 +807,7 @@ var AppSideBar = ({
|
|
|
781
807
|
className: "object-contain"
|
|
782
808
|
}
|
|
783
809
|
))),
|
|
784
|
-
/* @__PURE__ */ React12.createElement("div", { className: "mb-4" }, /* @__PURE__ */ React12.createElement("div", { className: "flex ml-[20px] items-center gap-2 mb-2 dark:text-[#f4f4f5cc]" }, /* @__PURE__ */ React12.createElement("div", { className: "text-primary" }, /* @__PURE__ */ React12.createElement(Globe2, { width: 20, height: 20 })), /* @__PURE__ */ React12.createElement("h3", { className: "text-[#3f3f46cc] dark:text-[#f4f4f5cc] font-medium" }, "Data Centers")), /* @__PURE__ */ React12.createElement("div",
|
|
810
|
+
/* @__PURE__ */ React12.createElement("div", { className: "mb-4" }, /* @__PURE__ */ React12.createElement("div", { className: "flex ml-[20px] items-center gap-2 mb-2 dark:text-[#f4f4f5cc]" }, /* @__PURE__ */ React12.createElement("div", { className: "text-primary" }, /* @__PURE__ */ React12.createElement(Globe2, { width: 20, height: 20 })), /* @__PURE__ */ React12.createElement("h3", { className: "text-[#3f3f46cc] dark:text-[#f4f4f5cc] font-medium" }, "Data Centers")), /* @__PURE__ */ React12.createElement("div", { className: "mr-[8px] ml-[16px]" }, /* @__PURE__ */ React12.createElement(
|
|
785
811
|
CustomSelect,
|
|
786
812
|
{
|
|
787
813
|
heading: "",
|
|
@@ -872,9 +898,25 @@ var AppSideBar = ({
|
|
|
872
898
|
window.location.href = "/profile";
|
|
873
899
|
}
|
|
874
900
|
},
|
|
875
|
-
/* @__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
|
-
|
|
877
|
-
))
|
|
901
|
+
/* @__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)))
|
|
902
|
+
)),
|
|
903
|
+
/* @__PURE__ */ React12.createElement("div", { className: "flex w-full justify-space-between items-center gap-4 group pl-4 pb-4 pt-5" }, /* @__PURE__ */ React12.createElement("div", { className: "flex text-[16px] font-medium dark:text-[#f4f4f5cc] gap-2" }, /* @__PURE__ */ React12.createElement(SunMoon, { className: "mr-10px" }), /* @__PURE__ */ React12.createElement("span", null, "Appearance ")), /* @__PURE__ */ React12.createElement("div", { className: "flex w-full justify-end" }, /* @__PURE__ */ React12.createElement("label", { className: "flex items-center cursor-pointer relative" }, /* @__PURE__ */ React12.createElement(
|
|
904
|
+
"input",
|
|
905
|
+
{
|
|
906
|
+
type: "checkbox",
|
|
907
|
+
className: "sr-only",
|
|
908
|
+
checked: currAppearance === "dark",
|
|
909
|
+
onChange: () => handleCurrAppearance(
|
|
910
|
+
currAppearance === "light" ? "dark" : "light"
|
|
911
|
+
)
|
|
912
|
+
}
|
|
913
|
+
), /* @__PURE__ */ React12.createElement("div", { className: "w-16 h-8 bg-gray-200 dark:bg-[#4B5563] rounded-full shadow-inner" }), /* @__PURE__ */ React12.createElement(
|
|
914
|
+
"div",
|
|
915
|
+
{
|
|
916
|
+
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"}`
|
|
917
|
+
},
|
|
918
|
+
currAppearance === "light" ? /* @__PURE__ */ React12.createElement(Sun, { width: 18, height: 18 }) : /* @__PURE__ */ React12.createElement(Moon, { width: 18, height: 18, className: "text-black" })
|
|
919
|
+
), /* @__PURE__ */ React12.createElement("span", { className: "absolute whitespace-nowrap 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" }, "Choose your app\u2019s style."))))
|
|
878
920
|
));
|
|
879
921
|
};
|
|
880
922
|
|