jett.admin.npmpackage 1.0.57 → 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 +37 -11
- package/dist/index.mjs +37 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -334,7 +334,7 @@ var CustomSearch = ({
|
|
|
334
334
|
onChange,
|
|
335
335
|
placeholder = "Search Markets..."
|
|
336
336
|
}) => {
|
|
337
|
-
return /* @__PURE__ */ import_react8.default.createElement("div", { className: "flex items-center border bg-transparent text-[14px] border-[hsl(0_0%_89.8%)] \r\n rounded-md h-10 px-2 w-full focus-within:outline-2 focus-within:outline-black focus-within:outline-offset-2 dark:text-white" }, /* @__PURE__ */ import_react8.default.createElement(import_lucide_react2.Search, { width: 16, height: 16, color: "gray", className: "mr-2" }), /* @__PURE__ */ import_react8.default.createElement(
|
|
337
|
+
return /* @__PURE__ */ import_react8.default.createElement("div", { className: "flex items-center border bg-transparent text-[14px] border-[hsl(0_0%_89.8%)] dark:border-[#303036] \r\n rounded-md h-10 px-2 w-full focus-within:outline-2 focus-within:outline-black focus-within:outline-offset-2 dark:text-white" }, /* @__PURE__ */ import_react8.default.createElement(import_lucide_react2.Search, { width: 16, height: 16, color: "gray", className: "mr-2" }), /* @__PURE__ */ import_react8.default.createElement(
|
|
338
338
|
"input",
|
|
339
339
|
{
|
|
340
340
|
type: "text",
|
|
@@ -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
|
" ",
|
|
@@ -687,8 +687,8 @@ var CustomSelect = ({
|
|
|
687
687
|
"div",
|
|
688
688
|
{
|
|
689
689
|
onClick: () => !disabled && setOpen((prev) => !prev),
|
|
690
|
-
className: `flex justify-between items-center rounded-md px-3 py-2 text-sm border h-10 cursor-pointer dark:bg-[#18181b] dark:text-white
|
|
691
|
-
${disabled ? "bg-gray-100 text-gray-400" : "bg-white
|
|
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 dark:bg-[#18181b] dark:text-white"}
|
|
692
692
|
${error ? "border-red-500" : "border-gray-300"}
|
|
693
693
|
`
|
|
694
694
|
},
|
|
@@ -853,7 +853,7 @@ var AppSideBar = ({
|
|
|
853
853
|
));
|
|
854
854
|
})
|
|
855
855
|
));
|
|
856
|
-
}))), /* @__PURE__ */ import_react12.default.createElement("div", { className: "mt-auto bg-[#fafafa] dark:bg-
|
|
856
|
+
}))), /* @__PURE__ */ import_react12.default.createElement("div", { className: "mt-auto bg-[#fafafa] dark:bg-[#18181b] sticky bottom-0 pt-2" }, /* @__PURE__ */ import_react12.default.createElement(
|
|
857
857
|
"div",
|
|
858
858
|
{
|
|
859
859
|
className: "flex items-center justify-between p-2 rounded-lg hover:bg-accent dark:hover:bg-[#27272a] cursor-pointer",
|
|
@@ -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
|
@@ -286,7 +286,7 @@ var CustomSearch = ({
|
|
|
286
286
|
onChange,
|
|
287
287
|
placeholder = "Search Markets..."
|
|
288
288
|
}) => {
|
|
289
|
-
return /* @__PURE__ */ React8.createElement("div", { className: "flex items-center border bg-transparent text-[14px] border-[hsl(0_0%_89.8%)] \r\n rounded-md h-10 px-2 w-full focus-within:outline-2 focus-within:outline-black focus-within:outline-offset-2 dark:text-white" }, /* @__PURE__ */ React8.createElement(Search2, { width: 16, height: 16, color: "gray", className: "mr-2" }), /* @__PURE__ */ React8.createElement(
|
|
289
|
+
return /* @__PURE__ */ React8.createElement("div", { className: "flex items-center border bg-transparent text-[14px] border-[hsl(0_0%_89.8%)] dark:border-[#303036] \r\n rounded-md h-10 px-2 w-full focus-within:outline-2 focus-within:outline-black focus-within:outline-offset-2 dark:text-white" }, /* @__PURE__ */ React8.createElement(Search2, { width: 16, height: 16, color: "gray", className: "mr-2" }), /* @__PURE__ */ React8.createElement(
|
|
290
290
|
"input",
|
|
291
291
|
{
|
|
292
292
|
type: "text",
|
|
@@ -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
|
" ",
|
|
@@ -653,8 +653,8 @@ var CustomSelect = ({
|
|
|
653
653
|
"div",
|
|
654
654
|
{
|
|
655
655
|
onClick: () => !disabled && setOpen((prev) => !prev),
|
|
656
|
-
className: `flex justify-between items-center rounded-md px-3 py-2 text-sm border h-10 cursor-pointer dark:bg-[#18181b] dark:text-white
|
|
657
|
-
${disabled ? "bg-gray-100 text-gray-400" : "bg-white
|
|
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 dark:bg-[#18181b] dark:text-white"}
|
|
658
658
|
${error ? "border-red-500" : "border-gray-300"}
|
|
659
659
|
`
|
|
660
660
|
},
|
|
@@ -819,7 +819,7 @@ var AppSideBar = ({
|
|
|
819
819
|
));
|
|
820
820
|
})
|
|
821
821
|
));
|
|
822
|
-
}))), /* @__PURE__ */ React12.createElement("div", { className: "mt-auto bg-[#fafafa] dark:bg-
|
|
822
|
+
}))), /* @__PURE__ */ React12.createElement("div", { className: "mt-auto bg-[#fafafa] dark:bg-[#18181b] sticky bottom-0 pt-2" }, /* @__PURE__ */ React12.createElement(
|
|
823
823
|
"div",
|
|
824
824
|
{
|
|
825
825
|
className: "flex items-center justify-between p-2 rounded-lg hover:bg-accent dark:hover:bg-[#27272a] cursor-pointer",
|
|
@@ -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,
|