jett.admin.npmpackage 1.0.37 → 1.0.39
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 +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -804,20 +804,20 @@ var CustomSelect = ({
|
|
|
804
804
|
"div",
|
|
805
805
|
{
|
|
806
806
|
onClick: () => !disabled && setOpen((prev) => !prev),
|
|
807
|
-
className: `flex justify-between items-center rounded-md px-3 py-2 text-sm border h-10 cursor-pointer
|
|
808
|
-
${disabled ? "bg-gray-100 text-gray-400" : "bg-white hover:border-gray-400"}
|
|
807
|
+
className: `flex justify-between items-center rounded-md px-3 py-2 text-sm border h-10 cursor-pointer dark:bg-black dark:text-white
|
|
808
|
+
${disabled ? "bg-gray-100 text-gray-400" : "bg-white hover:border-gray-400 dark:bg-black dark:text-white"}
|
|
809
809
|
${error ? "border-red-500" : "border-gray-300"}
|
|
810
810
|
`
|
|
811
811
|
},
|
|
812
|
-
/* @__PURE__ */ import_react14.default.createElement("span", { className: `${selectedOption ? "text-black" : "text-gray-400"}` }, selectedOption ? selectedOption.label : placeholder),
|
|
812
|
+
/* @__PURE__ */ import_react14.default.createElement("span", { className: `${selectedOption ? "text-black dark:text-white" : "text-gray-400 dark:text-white"}` }, selectedOption ? selectedOption.label : placeholder),
|
|
813
813
|
/* @__PURE__ */ import_react14.default.createElement(
|
|
814
814
|
import_lucide_react6.ChevronDown,
|
|
815
815
|
{
|
|
816
|
-
className: `w-4 h-4 text-gray-500 transition-transform ${open ? "rotate-180" : ""}`
|
|
816
|
+
className: `w-4 h-4 text-gray-500 transition-transform dark:text-white ${open ? "rotate-180" : ""}`
|
|
817
817
|
}
|
|
818
818
|
)
|
|
819
819
|
),
|
|
820
|
-
open && !disabled && /* @__PURE__ */ import_react14.default.createElement("div", { className: "absolute top-full mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-lg z-10 max-h-60 overflow-y-auto" }, /* @__PURE__ */ import_react14.default.createElement("div", { className: "flex items-center gap-2 p-2 border-b border-gray-200" }, /* @__PURE__ */ import_react14.default.createElement(import_lucide_react6.Search, { size: 16, className: "text-gray-400" }), /* @__PURE__ */ import_react14.default.createElement(
|
|
820
|
+
open && !disabled && /* @__PURE__ */ import_react14.default.createElement("div", { className: "absolute top-full mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-lg z-10 max-h-60 overflow-y-auto dark:bg-black dark:text-white" }, /* @__PURE__ */ import_react14.default.createElement("div", { className: "flex items-center gap-2 p-2 border-b border-gray-200" }, /* @__PURE__ */ import_react14.default.createElement(import_lucide_react6.Search, { size: 16, className: "text-gray-400" }), /* @__PURE__ */ import_react14.default.createElement(
|
|
821
821
|
"input",
|
|
822
822
|
{
|
|
823
823
|
type: "text",
|
|
@@ -831,10 +831,10 @@ var CustomSelect = ({
|
|
|
831
831
|
{
|
|
832
832
|
key: opt.value,
|
|
833
833
|
onClick: () => handleSelect(opt.value),
|
|
834
|
-
className: `px-3 py-2 text-sm cursor-pointer hover:bg-gray-100 ${value === opt.value ? "bg-gray-100 font-medium" : ""}`
|
|
834
|
+
className: `px-3 py-2 text-sm cursor-pointer hover:bg-gray-100 dark:hover:bg-[#27272a] ${value === opt.value ? "bg-gray-100 font-medium dark:bg-[#27272a] dark:text-white" : ""}`
|
|
835
835
|
},
|
|
836
836
|
opt.label
|
|
837
|
-
)) : /* @__PURE__ */ import_react14.default.createElement("li", { className: "px-3 py-2 text-sm text-gray-400" }, "No results found")))
|
|
837
|
+
)) : /* @__PURE__ */ import_react14.default.createElement("li", { className: "px-3 py-2 text-sm text-gray-400 dark:text-white" }, "No results found")))
|
|
838
838
|
);
|
|
839
839
|
};
|
|
840
840
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -756,20 +756,20 @@ var CustomSelect = ({
|
|
|
756
756
|
"div",
|
|
757
757
|
{
|
|
758
758
|
onClick: () => !disabled && setOpen((prev) => !prev),
|
|
759
|
-
className: `flex justify-between items-center rounded-md px-3 py-2 text-sm border h-10 cursor-pointer
|
|
760
|
-
${disabled ? "bg-gray-100 text-gray-400" : "bg-white hover:border-gray-400"}
|
|
759
|
+
className: `flex justify-between items-center rounded-md px-3 py-2 text-sm border h-10 cursor-pointer dark:bg-black dark:text-white
|
|
760
|
+
${disabled ? "bg-gray-100 text-gray-400" : "bg-white hover:border-gray-400 dark:bg-black dark:text-white"}
|
|
761
761
|
${error ? "border-red-500" : "border-gray-300"}
|
|
762
762
|
`
|
|
763
763
|
},
|
|
764
|
-
/* @__PURE__ */ React14.createElement("span", { className: `${selectedOption ? "text-black" : "text-gray-400"}` }, selectedOption ? selectedOption.label : placeholder),
|
|
764
|
+
/* @__PURE__ */ React14.createElement("span", { className: `${selectedOption ? "text-black dark:text-white" : "text-gray-400 dark:text-white"}` }, selectedOption ? selectedOption.label : placeholder),
|
|
765
765
|
/* @__PURE__ */ React14.createElement(
|
|
766
766
|
ChevronDown3,
|
|
767
767
|
{
|
|
768
|
-
className: `w-4 h-4 text-gray-500 transition-transform ${open ? "rotate-180" : ""}`
|
|
768
|
+
className: `w-4 h-4 text-gray-500 transition-transform dark:text-white ${open ? "rotate-180" : ""}`
|
|
769
769
|
}
|
|
770
770
|
)
|
|
771
771
|
),
|
|
772
|
-
open && !disabled && /* @__PURE__ */ React14.createElement("div", { className: "absolute top-full mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-lg z-10 max-h-60 overflow-y-auto" }, /* @__PURE__ */ React14.createElement("div", { className: "flex items-center gap-2 p-2 border-b border-gray-200" }, /* @__PURE__ */ React14.createElement(Search3, { size: 16, className: "text-gray-400" }), /* @__PURE__ */ React14.createElement(
|
|
772
|
+
open && !disabled && /* @__PURE__ */ React14.createElement("div", { className: "absolute top-full mt-1 w-full bg-white border border-gray-200 rounded-lg shadow-lg z-10 max-h-60 overflow-y-auto dark:bg-black dark:text-white" }, /* @__PURE__ */ React14.createElement("div", { className: "flex items-center gap-2 p-2 border-b border-gray-200" }, /* @__PURE__ */ React14.createElement(Search3, { size: 16, className: "text-gray-400" }), /* @__PURE__ */ React14.createElement(
|
|
773
773
|
"input",
|
|
774
774
|
{
|
|
775
775
|
type: "text",
|
|
@@ -783,10 +783,10 @@ var CustomSelect = ({
|
|
|
783
783
|
{
|
|
784
784
|
key: opt.value,
|
|
785
785
|
onClick: () => handleSelect(opt.value),
|
|
786
|
-
className: `px-3 py-2 text-sm cursor-pointer hover:bg-gray-100 ${value === opt.value ? "bg-gray-100 font-medium" : ""}`
|
|
786
|
+
className: `px-3 py-2 text-sm cursor-pointer hover:bg-gray-100 dark:hover:bg-[#27272a] ${value === opt.value ? "bg-gray-100 font-medium dark:bg-[#27272a] dark:text-white" : ""}`
|
|
787
787
|
},
|
|
788
788
|
opt.label
|
|
789
|
-
)) : /* @__PURE__ */ React14.createElement("li", { className: "px-3 py-2 text-sm text-gray-400" }, "No results found")))
|
|
789
|
+
)) : /* @__PURE__ */ React14.createElement("li", { className: "px-3 py-2 text-sm text-gray-400 dark:text-white" }, "No results found")))
|
|
790
790
|
);
|
|
791
791
|
};
|
|
792
792
|
export {
|