jett.admin.npmpackage 1.0.58 → 1.0.59
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.js +34 -8
- package/dist/index.mjs +34 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -677,7 +677,7 @@ var CustomSelect = ({
|
|
|
677
677
|
label && /* @__PURE__ */ import_react11.default.createElement(
|
|
678
678
|
"label",
|
|
679
679
|
{
|
|
680
|
-
className: `font-medium text-sm mb-1 ${heading ? "text-
|
|
680
|
+
className: `font-medium text-sm mb-1 ${heading ? "text-[#737373] dark:text-white" : "text-black dark:text-white"}`
|
|
681
681
|
},
|
|
682
682
|
label,
|
|
683
683
|
" ",
|
|
@@ -688,7 +688,7 @@ var CustomSelect = ({
|
|
|
688
688
|
{
|
|
689
689
|
onClick: () => !disabled && setOpen((prev) => !prev),
|
|
690
690
|
className: `flex justify-between items-center rounded-md px-3 py-2 text-sm border h-10 cursor-pointer dark:border-[#303036] dark:bg-[#18181b] dark:text-white
|
|
691
|
-
${disabled ? "bg-gray-100 text-gray-400" : "bg-white
|
|
691
|
+
${disabled ? "bg-gray-100 text-gray-400" : "bg-white dark:bg-[#18181b] dark:text-white"}
|
|
692
692
|
${error ? "border-red-500" : "border-gray-300"}
|
|
693
693
|
`
|
|
694
694
|
},
|
|
@@ -920,12 +920,38 @@ var RightSheet = ({
|
|
|
920
920
|
|
|
921
921
|
// src/Table/CustomTable.jsx
|
|
922
922
|
var import_react14 = __toESM(require("react"));
|
|
923
|
-
var CustomTable = ({
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
923
|
+
var CustomTable = ({
|
|
924
|
+
tableHeader,
|
|
925
|
+
setIsAllChecked,
|
|
926
|
+
isAllChecked,
|
|
927
|
+
children,
|
|
928
|
+
isHideCheckbox = "false"
|
|
929
|
+
}) => {
|
|
930
|
+
return /* @__PURE__ */ import_react14.default.createElement("div", { className: "border border-[#e5e5e5] dark:border-[#303036] rounded-lg overflow-x-auto" }, /* @__PURE__ */ import_react14.default.createElement("div", { className: "w-full relative overflow-x-auto" }, /* @__PURE__ */ import_react14.default.createElement("table", { className: "w-full caption-bottom text-sm overflow-x-auto bg-white dark:bg-[#18181b] table-fixed border-collapse" }, /* @__PURE__ */ import_react14.default.createElement("thead", { className: "border-b border-[#e5e5e5] dark:bg-[#18181b]" }, /* @__PURE__ */ import_react14.default.createElement(
|
|
931
|
+
"tr",
|
|
932
|
+
{
|
|
933
|
+
className: "transition-colors text-[#737373] hover:bg-muted/50 \r\n data-[state=selected]:bg-muted"
|
|
934
|
+
},
|
|
935
|
+
!isHideCheckbox && /* @__PURE__ */ import_react14.default.createElement("th", { className: "px-4 py-3 text-left w-[50px]" }, /* @__PURE__ */ import_react14.default.createElement(
|
|
936
|
+
CustomCheckbox,
|
|
937
|
+
{
|
|
938
|
+
checked: isAllChecked,
|
|
939
|
+
onChange: () => {
|
|
940
|
+
setIsAllChecked(!isAllChecked);
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
)),
|
|
944
|
+
tableHeader.map((header, index) => {
|
|
945
|
+
return /* @__PURE__ */ import_react14.default.createElement(
|
|
946
|
+
"th",
|
|
947
|
+
{
|
|
948
|
+
className: `px-4 py-3 text-sm dark:bg-[#18181b] font-medium ${index == tableHeader.length - 1 ? "text-right" : "text-left"}`,
|
|
949
|
+
key: header + index
|
|
950
|
+
},
|
|
951
|
+
header
|
|
952
|
+
);
|
|
953
|
+
})
|
|
954
|
+
)), /* @__PURE__ */ import_react14.default.createElement("tbody", null, children))));
|
|
929
955
|
};
|
|
930
956
|
// Annotate the CommonJS export names for ESM import in node:
|
|
931
957
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -643,7 +643,7 @@ var CustomSelect = ({
|
|
|
643
643
|
label && /* @__PURE__ */ React11.createElement(
|
|
644
644
|
"label",
|
|
645
645
|
{
|
|
646
|
-
className: `font-medium text-sm mb-1 ${heading ? "text-
|
|
646
|
+
className: `font-medium text-sm mb-1 ${heading ? "text-[#737373] dark:text-white" : "text-black dark:text-white"}`
|
|
647
647
|
},
|
|
648
648
|
label,
|
|
649
649
|
" ",
|
|
@@ -654,7 +654,7 @@ var CustomSelect = ({
|
|
|
654
654
|
{
|
|
655
655
|
onClick: () => !disabled && setOpen((prev) => !prev),
|
|
656
656
|
className: `flex justify-between items-center rounded-md px-3 py-2 text-sm border h-10 cursor-pointer dark:border-[#303036] dark:bg-[#18181b] dark:text-white
|
|
657
|
-
${disabled ? "bg-gray-100 text-gray-400" : "bg-white
|
|
657
|
+
${disabled ? "bg-gray-100 text-gray-400" : "bg-white dark:bg-[#18181b] dark:text-white"}
|
|
658
658
|
${error ? "border-red-500" : "border-gray-300"}
|
|
659
659
|
`
|
|
660
660
|
},
|
|
@@ -886,12 +886,38 @@ var RightSheet = ({
|
|
|
886
886
|
|
|
887
887
|
// src/Table/CustomTable.jsx
|
|
888
888
|
import React14 from "react";
|
|
889
|
-
var CustomTable = ({
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
889
|
+
var CustomTable = ({
|
|
890
|
+
tableHeader,
|
|
891
|
+
setIsAllChecked,
|
|
892
|
+
isAllChecked,
|
|
893
|
+
children,
|
|
894
|
+
isHideCheckbox = "false"
|
|
895
|
+
}) => {
|
|
896
|
+
return /* @__PURE__ */ React14.createElement("div", { className: "border border-[#e5e5e5] dark:border-[#303036] rounded-lg overflow-x-auto" }, /* @__PURE__ */ React14.createElement("div", { className: "w-full relative overflow-x-auto" }, /* @__PURE__ */ React14.createElement("table", { className: "w-full caption-bottom text-sm overflow-x-auto bg-white dark:bg-[#18181b] table-fixed border-collapse" }, /* @__PURE__ */ React14.createElement("thead", { className: "border-b border-[#e5e5e5] dark:bg-[#18181b]" }, /* @__PURE__ */ React14.createElement(
|
|
897
|
+
"tr",
|
|
898
|
+
{
|
|
899
|
+
className: "transition-colors text-[#737373] hover:bg-muted/50 \r\n data-[state=selected]:bg-muted"
|
|
900
|
+
},
|
|
901
|
+
!isHideCheckbox && /* @__PURE__ */ React14.createElement("th", { className: "px-4 py-3 text-left w-[50px]" }, /* @__PURE__ */ React14.createElement(
|
|
902
|
+
CustomCheckbox,
|
|
903
|
+
{
|
|
904
|
+
checked: isAllChecked,
|
|
905
|
+
onChange: () => {
|
|
906
|
+
setIsAllChecked(!isAllChecked);
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
)),
|
|
910
|
+
tableHeader.map((header, index) => {
|
|
911
|
+
return /* @__PURE__ */ React14.createElement(
|
|
912
|
+
"th",
|
|
913
|
+
{
|
|
914
|
+
className: `px-4 py-3 text-sm dark:bg-[#18181b] font-medium ${index == tableHeader.length - 1 ? "text-right" : "text-left"}`,
|
|
915
|
+
key: header + index
|
|
916
|
+
},
|
|
917
|
+
header
|
|
918
|
+
);
|
|
919
|
+
})
|
|
920
|
+
)), /* @__PURE__ */ React14.createElement("tbody", null, children))));
|
|
895
921
|
};
|
|
896
922
|
export {
|
|
897
923
|
AppSideBar,
|