@vpdev2/metakyc-sdk 1.0.43 → 1.0.44

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
@@ -2616,40 +2616,69 @@ const $ = ({ children: e, className: t, ...r }) => /* @__PURE__ */ a(
2616
2616
  }
2617
2617
  ) });
2618
2618
  }, Ae = Te(
2619
- ({ label: e, error: t, helperText: r, options: n, placeholder: s, className: l, ...o }, c) => /* @__PURE__ */ i("div", { className: "w-full", children: [
2620
- e && /* @__PURE__ */ i("label", { className: "block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1", children: [
2621
- e,
2622
- o.required && /* @__PURE__ */ a("span", { className: "text-danger-500 ml-1", children: "*" })
2623
- ] }),
2619
+ ({ label: e, error: t, helperText: r, options: n, placeholder: s, className: l, style: o, ...c }, d) => /* @__PURE__ */ i("div", { className: "w-full", children: [
2620
+ e && /* @__PURE__ */ i(
2621
+ "label",
2622
+ {
2623
+ className: "block text-sm font-medium mb-1",
2624
+ style: { color: "var(--metakyc-text-primary, #374151)" },
2625
+ children: [
2626
+ e,
2627
+ c.required && /* @__PURE__ */ a("span", { className: "text-danger-500 ml-1", children: "*" })
2628
+ ]
2629
+ }
2630
+ ),
2624
2631
  /* @__PURE__ */ i(
2625
2632
  "select",
2626
2633
  {
2627
- ref: c,
2634
+ ref: d,
2628
2635
  className: ie(
2629
2636
  "block w-full rounded-lg border px-3 py-2 text-sm transition-colors",
2630
- "focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent",
2631
- "disabled:bg-gray-100 disabled:cursor-not-allowed",
2632
- t ? "border-danger-500 focus:ring-danger-500" : "border-gray-300 dark:border-gray-600",
2633
- "dark:bg-gray-800 dark:text-white",
2637
+ "focus:outline-none focus:ring-2 focus:ring-offset-0",
2638
+ "disabled:opacity-60 disabled:cursor-not-allowed",
2639
+ t ? "border-danger-500" : "",
2634
2640
  l
2635
2641
  ),
2636
- ...o,
2642
+ style: {
2643
+ backgroundColor: "var(--metakyc-input-bg, #ffffff)",
2644
+ color: "var(--metakyc-text-primary, #111827)",
2645
+ borderColor: t ? "var(--metakyc-error, #ef4444)" : "var(--metakyc-border, #d1d5db)",
2646
+ // ring color via outline on focus
2647
+ ...o
2648
+ },
2649
+ ...c,
2637
2650
  children: [
2638
- s && /* @__PURE__ */ a("option", { value: "", disabled: !0, children: s }, "__placeholder__"),
2639
- n.map((d, m) => /* @__PURE__ */ a(
2651
+ s && /* @__PURE__ */ a(
2640
2652
  "option",
2641
2653
  {
2642
- value: d.value,
2643
- disabled: d.disabled,
2644
- children: d.label
2654
+ value: "",
2655
+ disabled: !0,
2656
+ style: {
2657
+ backgroundColor: "var(--metakyc-input-bg, #ffffff)",
2658
+ color: "var(--metakyc-text-secondary, #6b7280)"
2659
+ },
2660
+ children: s
2645
2661
  },
2646
- d.value || `option-${m}`
2662
+ "__placeholder__"
2663
+ ),
2664
+ n.map((m, w) => /* @__PURE__ */ a(
2665
+ "option",
2666
+ {
2667
+ value: m.value,
2668
+ disabled: m.disabled,
2669
+ style: {
2670
+ backgroundColor: "var(--metakyc-input-bg, #ffffff)",
2671
+ color: m.disabled ? "var(--metakyc-text-secondary, #9ca3af)" : "var(--metakyc-text-primary, #111827)"
2672
+ },
2673
+ children: m.label
2674
+ },
2675
+ m.value || `option-${w}`
2647
2676
  ))
2648
2677
  ]
2649
2678
  }
2650
2679
  ),
2651
- t && /* @__PURE__ */ a("p", { className: "mt-1 text-sm text-danger-500", children: t }),
2652
- !t && r && /* @__PURE__ */ a("p", { className: "mt-1 text-sm text-gray-500", children: r })
2680
+ t && /* @__PURE__ */ a("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-error, #ef4444)" }, children: t }),
2681
+ !t && r && /* @__PURE__ */ a("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: r })
2653
2682
  ] })
2654
2683
  );
2655
2684
  Ae.displayName = "Select";