jett.admin.npmpackage 1.0.80 → 1.0.82
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 +3 -34
- package/dist/index.js +5 -34
- package/dist/index.mjs +5 -37
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -286,9 +286,6 @@
|
|
|
286
286
|
.top-0 {
|
|
287
287
|
top: calc(var(--spacing) * 0);
|
|
288
288
|
}
|
|
289
|
-
.top-\[-15px\] {
|
|
290
|
-
top: -15px;
|
|
291
|
-
}
|
|
292
289
|
.top-full {
|
|
293
290
|
top: 100%;
|
|
294
291
|
}
|
|
@@ -301,9 +298,6 @@
|
|
|
301
298
|
.left-0 {
|
|
302
299
|
left: calc(var(--spacing) * 0);
|
|
303
300
|
}
|
|
304
|
-
.left-1\/2 {
|
|
305
|
-
left: calc(1/2 * 100%);
|
|
306
|
-
}
|
|
307
301
|
.z-10 {
|
|
308
302
|
z-index: 10;
|
|
309
303
|
}
|
|
@@ -316,6 +310,9 @@
|
|
|
316
310
|
.mt-1 {
|
|
317
311
|
margin-top: calc(var(--spacing) * 1);
|
|
318
312
|
}
|
|
313
|
+
.mt-2 {
|
|
314
|
+
margin-top: calc(var(--spacing) * 2);
|
|
315
|
+
}
|
|
319
316
|
.mt-auto {
|
|
320
317
|
margin-top: auto;
|
|
321
318
|
}
|
|
@@ -478,10 +475,6 @@
|
|
|
478
475
|
.border-collapse {
|
|
479
476
|
border-collapse: collapse;
|
|
480
477
|
}
|
|
481
|
-
.-translate-x-1\/2 {
|
|
482
|
-
--tw-translate-x: calc(calc(1/2 * 100%) * -1);
|
|
483
|
-
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
484
|
-
}
|
|
485
478
|
.-translate-x-full {
|
|
486
479
|
--tw-translate-x: -100%;
|
|
487
480
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
@@ -739,9 +732,6 @@
|
|
|
739
732
|
.py-3 {
|
|
740
733
|
padding-block: calc(var(--spacing) * 3);
|
|
741
734
|
}
|
|
742
|
-
.pt-2 {
|
|
743
|
-
padding-top: calc(var(--spacing) * 2);
|
|
744
|
-
}
|
|
745
735
|
.pt-5 {
|
|
746
736
|
padding-top: calc(var(--spacing) * 5);
|
|
747
737
|
}
|
|
@@ -808,18 +798,12 @@
|
|
|
808
798
|
--tw-font-weight: var(--font-weight-semibold);
|
|
809
799
|
font-weight: var(--font-weight-semibold);
|
|
810
800
|
}
|
|
811
|
-
.whitespace-nowrap {
|
|
812
|
-
white-space: nowrap;
|
|
813
|
-
}
|
|
814
801
|
.text-\[\#000\] {
|
|
815
802
|
color: #000;
|
|
816
803
|
}
|
|
817
804
|
.text-\[\#3f3f46cc\] {
|
|
818
805
|
color: #3f3f46cc;
|
|
819
806
|
}
|
|
820
|
-
.text-\[\#6B7280\] {
|
|
821
|
-
color: #6B7280;
|
|
822
|
-
}
|
|
823
807
|
.text-\[\#737373\] {
|
|
824
808
|
color: #737373;
|
|
825
809
|
}
|
|
@@ -856,9 +840,6 @@
|
|
|
856
840
|
.text-yellow-800 {
|
|
857
841
|
color: var(--color-yellow-800);
|
|
858
842
|
}
|
|
859
|
-
.opacity-0 {
|
|
860
|
-
opacity: 0%;
|
|
861
|
-
}
|
|
862
843
|
.shadow {
|
|
863
844
|
--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));
|
|
864
845
|
box-shadow:
|
|
@@ -940,11 +921,6 @@
|
|
|
940
921
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
941
922
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
942
923
|
}
|
|
943
|
-
.transition-opacity {
|
|
944
|
-
transition-property: opacity;
|
|
945
|
-
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
946
|
-
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
947
|
-
}
|
|
948
924
|
.transition-transform {
|
|
949
925
|
transition-property:
|
|
950
926
|
transform,
|
|
@@ -976,13 +952,6 @@
|
|
|
976
952
|
-webkit-user-select: none;
|
|
977
953
|
user-select: none;
|
|
978
954
|
}
|
|
979
|
-
.group-hover\:opacity-80 {
|
|
980
|
-
&:is(:where(.group):hover *) {
|
|
981
|
-
@media (hover: hover) {
|
|
982
|
-
opacity: 80%;
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
955
|
.peer-checked\:border-primary {
|
|
987
956
|
&:is(:where(.peer):checked ~ *) {
|
|
988
957
|
border-color: var(--color-primary);
|
package/dist/index.js
CHANGED
|
@@ -591,7 +591,7 @@ var navItemsConstant = [
|
|
|
591
591
|
{
|
|
592
592
|
label: "Admin Users",
|
|
593
593
|
onClick: () => {
|
|
594
|
-
window.location.href = "/users
|
|
594
|
+
window.location.href = "/orgselector/?path=admin-users";
|
|
595
595
|
}
|
|
596
596
|
},
|
|
597
597
|
{ label: "Roles", onClick: () => {
|
|
@@ -736,21 +736,9 @@ var AppSideBar = ({
|
|
|
736
736
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = (0, import_react12.useState)(false);
|
|
737
737
|
const [currAppearance, setCurrAppearance] = (0, import_react12.useState)("light");
|
|
738
738
|
(0, import_react12.useEffect)(() => {
|
|
739
|
-
|
|
740
|
-
|
|
739
|
+
setCurrAppearance("light");
|
|
740
|
+
localStorage.setItem("themeMode", "light");
|
|
741
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]);
|
|
754
742
|
const countryOptions = [
|
|
755
743
|
{ label: "India", value: "india" },
|
|
756
744
|
{ label: "Dubai", value: "dubai" },
|
|
@@ -916,7 +904,7 @@ var AppSideBar = ({
|
|
|
916
904
|
})
|
|
917
905
|
));
|
|
918
906
|
}))),
|
|
919
|
-
/* @__PURE__ */ import_react12.default.createElement("div", { className: "mt-auto bg-[#fafafa] dark:bg-[#18181b] sticky bottom-0
|
|
907
|
+
/* @__PURE__ */ import_react12.default.createElement("div", { className: "mt-auto bg-[#fafafa] dark:bg-[#18181b] sticky bottom-0 mt-2" }, /* @__PURE__ */ import_react12.default.createElement(
|
|
920
908
|
"div",
|
|
921
909
|
{
|
|
922
910
|
className: "flex items-center justify-between p-2 rounded-lg hover:bg-[#f4f4f5] dark:hover:bg-[#27272a] cursor-pointer transition-colors duration-200",
|
|
@@ -925,24 +913,7 @@ var AppSideBar = ({
|
|
|
925
913
|
}
|
|
926
914
|
},
|
|
927
915
|
/* @__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
|
-
))))
|
|
916
|
+
))
|
|
946
917
|
));
|
|
947
918
|
};
|
|
948
919
|
|
package/dist/index.mjs
CHANGED
|
@@ -396,9 +396,6 @@ import {
|
|
|
396
396
|
Globe as Globe2,
|
|
397
397
|
LogOut,
|
|
398
398
|
Menu,
|
|
399
|
-
Moon,
|
|
400
|
-
Sun,
|
|
401
|
-
SunMoon,
|
|
402
399
|
X
|
|
403
400
|
} from "lucide-react";
|
|
404
401
|
import React12, { useEffect, useState as useState3 } from "react";
|
|
@@ -565,7 +562,7 @@ var navItemsConstant = [
|
|
|
565
562
|
{
|
|
566
563
|
label: "Admin Users",
|
|
567
564
|
onClick: () => {
|
|
568
|
-
window.location.href = "/users
|
|
565
|
+
window.location.href = "/orgselector/?path=admin-users";
|
|
569
566
|
}
|
|
570
567
|
},
|
|
571
568
|
{ label: "Roles", onClick: () => {
|
|
@@ -710,21 +707,9 @@ var AppSideBar = ({
|
|
|
710
707
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState3(false);
|
|
711
708
|
const [currAppearance, setCurrAppearance] = useState3("light");
|
|
712
709
|
useEffect(() => {
|
|
713
|
-
|
|
714
|
-
|
|
710
|
+
setCurrAppearance("light");
|
|
711
|
+
localStorage.setItem("themeMode", "light");
|
|
715
712
|
}, []);
|
|
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]);
|
|
728
713
|
const countryOptions = [
|
|
729
714
|
{ label: "India", value: "india" },
|
|
730
715
|
{ label: "Dubai", value: "dubai" },
|
|
@@ -890,7 +875,7 @@ var AppSideBar = ({
|
|
|
890
875
|
})
|
|
891
876
|
));
|
|
892
877
|
}))),
|
|
893
|
-
/* @__PURE__ */ React12.createElement("div", { className: "mt-auto bg-[#fafafa] dark:bg-[#18181b] sticky bottom-0
|
|
878
|
+
/* @__PURE__ */ React12.createElement("div", { className: "mt-auto bg-[#fafafa] dark:bg-[#18181b] sticky bottom-0 mt-2" }, /* @__PURE__ */ React12.createElement(
|
|
894
879
|
"div",
|
|
895
880
|
{
|
|
896
881
|
className: "flex items-center justify-between p-2 rounded-lg hover:bg-[#f4f4f5] dark:hover:bg-[#27272a] cursor-pointer transition-colors duration-200",
|
|
@@ -899,24 +884,7 @@ var AppSideBar = ({
|
|
|
899
884
|
}
|
|
900
885
|
},
|
|
901
886
|
/* @__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
|
-
))))
|
|
887
|
+
))
|
|
920
888
|
));
|
|
921
889
|
};
|
|
922
890
|
|