@vpdev2/metakyc-sdk 1.0.30 → 1.0.31
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/components/core/MultiSelect.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +82 -55
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2701,7 +2701,26 @@ const ar = ({
|
|
|
2701
2701
|
{
|
|
2702
2702
|
type: "button",
|
|
2703
2703
|
onClick: (m) => h(p, m),
|
|
2704
|
-
className: "
|
|
2704
|
+
className: "metakyc-multiselect-chip-remove",
|
|
2705
|
+
style: {
|
|
2706
|
+
background: "transparent",
|
|
2707
|
+
border: "none",
|
|
2708
|
+
padding: "0 0 0 2px",
|
|
2709
|
+
margin: 0,
|
|
2710
|
+
cursor: "pointer",
|
|
2711
|
+
fontSize: "14px",
|
|
2712
|
+
lineHeight: 1,
|
|
2713
|
+
fontWeight: "bold",
|
|
2714
|
+
display: "inline-flex",
|
|
2715
|
+
alignItems: "center",
|
|
2716
|
+
boxShadow: "none",
|
|
2717
|
+
transform: "none",
|
|
2718
|
+
minWidth: 0,
|
|
2719
|
+
width: "auto",
|
|
2720
|
+
height: "auto",
|
|
2721
|
+
letterSpacing: "normal",
|
|
2722
|
+
textTransform: "none"
|
|
2723
|
+
},
|
|
2705
2724
|
children: "×"
|
|
2706
2725
|
}
|
|
2707
2726
|
)
|
|
@@ -2713,60 +2732,68 @@ const ar = ({
|
|
|
2713
2732
|
]
|
|
2714
2733
|
}
|
|
2715
2734
|
),
|
|
2716
|
-
c && /* @__PURE__ */ o(
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
"
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2735
|
+
c && /* @__PURE__ */ o(
|
|
2736
|
+
"div",
|
|
2737
|
+
{
|
|
2738
|
+
className: "metakyc-multiselect-dropdown absolute z-50 w-full mt-1 rounded-lg shadow-lg",
|
|
2739
|
+
style: { background: "inherit", border: "1px solid #d1d5db" },
|
|
2740
|
+
children: [
|
|
2741
|
+
/* @__PURE__ */ n("div", { className: "metakyc-multiselect-search-wrapper p-2", style: { borderBottom: "1px solid #e5e7eb" }, children: /* @__PURE__ */ n(
|
|
2742
|
+
"input",
|
|
2743
|
+
{
|
|
2744
|
+
type: "text",
|
|
2745
|
+
value: u,
|
|
2746
|
+
onChange: (p) => y(p.target.value),
|
|
2747
|
+
placeholder: "Search...",
|
|
2748
|
+
autoFocus: !0,
|
|
2749
|
+
onClick: (p) => p.stopPropagation(),
|
|
2750
|
+
className: "metakyc-multiselect-search w-full px-2 py-1.5 text-sm rounded focus:outline-none focus:ring-1 focus:ring-blue-500",
|
|
2751
|
+
style: { border: "1px solid #d1d5db" }
|
|
2752
|
+
}
|
|
2753
|
+
) }),
|
|
2754
|
+
/* @__PURE__ */ n("ul", { className: "max-h-48 overflow-y-auto py-1", children: g.length === 0 ? /* @__PURE__ */ n("li", { className: "px-3 py-2 text-sm text-gray-500 dark:text-gray-400", children: "No results" }) : g.map((p) => /* @__PURE__ */ o(
|
|
2755
|
+
"li",
|
|
2756
|
+
{
|
|
2757
|
+
onClick: () => v(p.value),
|
|
2758
|
+
className: G(
|
|
2759
|
+
"metakyc-multiselect-option",
|
|
2760
|
+
"flex items-center gap-2 px-3 py-2 text-sm cursor-pointer",
|
|
2761
|
+
"hover:bg-gray-50 dark:hover:bg-gray-700",
|
|
2762
|
+
e.includes(p.value) && "metakyc-multiselect-option-selected bg-blue-50 dark:bg-blue-900/20"
|
|
2763
|
+
),
|
|
2764
|
+
children: [
|
|
2765
|
+
/* @__PURE__ */ n(
|
|
2766
|
+
"input",
|
|
2767
|
+
{
|
|
2768
|
+
type: "checkbox",
|
|
2769
|
+
checked: e.includes(p.value),
|
|
2770
|
+
readOnly: !0,
|
|
2771
|
+
className: "rounded border-gray-300 text-blue-600 pointer-events-none"
|
|
2772
|
+
}
|
|
2773
|
+
),
|
|
2774
|
+
/* @__PURE__ */ n("span", { className: "text-gray-900 dark:text-gray-100", children: p.label })
|
|
2775
|
+
]
|
|
2776
|
+
},
|
|
2777
|
+
p.value
|
|
2778
|
+
)) }),
|
|
2779
|
+
e.length > 0 && /* @__PURE__ */ n("div", { className: "metakyc-multiselect-clear p-2 border-t border-gray-100 dark:border-gray-700", children: /* @__PURE__ */ o(
|
|
2780
|
+
"button",
|
|
2781
|
+
{
|
|
2782
|
+
type: "button",
|
|
2783
|
+
onClick: () => {
|
|
2784
|
+
r([]), y("");
|
|
2785
|
+
},
|
|
2786
|
+
className: "text-xs text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300",
|
|
2787
|
+
children: [
|
|
2788
|
+
"Clear all (",
|
|
2789
|
+
e.length,
|
|
2790
|
+
" selected)"
|
|
2791
|
+
]
|
|
2792
|
+
}
|
|
2793
|
+
) })
|
|
2794
|
+
]
|
|
2795
|
+
}
|
|
2796
|
+
)
|
|
2770
2797
|
] })
|
|
2771
2798
|
] });
|
|
2772
2799
|
}, sr = ({
|