@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/index.js CHANGED
@@ -2701,7 +2701,26 @@ const ar = ({
2701
2701
  {
2702
2702
  type: "button",
2703
2703
  onClick: (m) => h(p, m),
2704
- className: "hover:text-blue-600 dark:hover:text-blue-200 text-base leading-none -mr-0.5",
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("div", { className: "metakyc-multiselect-dropdown absolute z-50 w-full mt-1 rounded-lg border border-gray-200 dark:border-gray-600 bg-white dark:bg-gray-800 shadow-lg", children: [
2717
- /* @__PURE__ */ n("div", { className: "metakyc-multiselect-search-wrapper p-2 border-b border-gray-100 dark:border-gray-700", children: /* @__PURE__ */ n(
2718
- "input",
2719
- {
2720
- type: "text",
2721
- value: u,
2722
- onChange: (p) => y(p.target.value),
2723
- placeholder: "Search...",
2724
- autoFocus: !0,
2725
- onClick: (p) => p.stopPropagation(),
2726
- className: "metakyc-multiselect-search w-full px-2 py-1.5 text-sm rounded border border-gray-200 dark:border-gray-600 bg-gray-50 dark:bg-gray-700 text-gray-900 dark:text-gray-100 focus:outline-none focus:ring-1 focus:ring-blue-500"
2727
- }
2728
- ) }),
2729
- /* @__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(
2730
- "li",
2731
- {
2732
- onClick: () => v(p.value),
2733
- className: G(
2734
- "metakyc-multiselect-option",
2735
- "flex items-center gap-2 px-3 py-2 text-sm cursor-pointer",
2736
- "hover:bg-gray-50 dark:hover:bg-gray-700",
2737
- e.includes(p.value) && "metakyc-multiselect-option-selected bg-blue-50 dark:bg-blue-900/20"
2738
- ),
2739
- children: [
2740
- /* @__PURE__ */ n(
2741
- "input",
2742
- {
2743
- type: "checkbox",
2744
- checked: e.includes(p.value),
2745
- readOnly: !0,
2746
- className: "rounded border-gray-300 text-blue-600 pointer-events-none"
2747
- }
2748
- ),
2749
- /* @__PURE__ */ n("span", { className: "text-gray-900 dark:text-gray-100", children: p.label })
2750
- ]
2751
- },
2752
- p.value
2753
- )) }),
2754
- e.length > 0 && /* @__PURE__ */ n("div", { className: "metakyc-multiselect-clear p-2 border-t border-gray-100 dark:border-gray-700", children: /* @__PURE__ */ o(
2755
- "button",
2756
- {
2757
- type: "button",
2758
- onClick: () => {
2759
- r([]), y("");
2760
- },
2761
- className: "text-xs text-red-500 hover:text-red-700 dark:text-red-400 dark:hover:text-red-300",
2762
- children: [
2763
- "Clear all (",
2764
- e.length,
2765
- " selected)"
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 = ({