@vpdev2/metakyc-sdk 1.0.42 → 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/components/CreateApplicantForm.d.ts.map +1 -1
- package/dist/components/core/Select.d.ts +1 -1
- package/dist/components/core/Select.d.ts.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +74 -52
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
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,
|
|
2620
|
-
e && /* @__PURE__ */ i(
|
|
2621
|
-
|
|
2622
|
-
|
|
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:
|
|
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-
|
|
2631
|
-
"disabled:
|
|
2632
|
-
t ? "border-danger-500
|
|
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
|
-
|
|
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(
|
|
2639
|
-
n.map((d, m) => /* @__PURE__ */ a(
|
|
2651
|
+
s && /* @__PURE__ */ a(
|
|
2640
2652
|
"option",
|
|
2641
2653
|
{
|
|
2642
|
-
value:
|
|
2643
|
-
disabled:
|
|
2644
|
-
|
|
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
|
|
2661
|
+
},
|
|
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
|
|
2645
2674
|
},
|
|
2646
|
-
|
|
2675
|
+
m.value || `option-${w}`
|
|
2647
2676
|
))
|
|
2648
2677
|
]
|
|
2649
2678
|
}
|
|
2650
2679
|
),
|
|
2651
|
-
t && /* @__PURE__ */ a("p", { className: "mt-1 text-sm
|
|
2652
|
-
!t && r && /* @__PURE__ */ a("p", { className: "mt-1 text-sm text-
|
|
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";
|
|
@@ -5241,39 +5270,32 @@ const Oe = {
|
|
|
5241
5270
|
return /* @__PURE__ */ a("div", { className: "metakyc-sdk", children: /* @__PURE__ */ i($, { children: [
|
|
5242
5271
|
/* @__PURE__ */ a(oe, { children: /* @__PURE__ */ a(He, { title: (o == null ? void 0 : o.title) || "Create Applicant" }) }),
|
|
5243
5272
|
/* @__PURE__ */ i(B, { children: [
|
|
5244
|
-
(u.title || u.subtitle || u.description) && /* @__PURE__ */ i(
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
u.title
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
),
|
|
5258
|
-
u.subtitle
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
),
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
style: { color: "var(--metakyc-text-secondary, #6b7280)" },
|
|
5271
|
-
children: u.description
|
|
5272
|
-
}
|
|
5273
|
-
)
|
|
5274
|
-
]
|
|
5275
|
-
}
|
|
5276
|
-
),
|
|
5273
|
+
(u.title || u.subtitle || u.description) && /* @__PURE__ */ i("div", { className: "mb-4", children: [
|
|
5274
|
+
u.title && /* @__PURE__ */ a(
|
|
5275
|
+
"h3",
|
|
5276
|
+
{
|
|
5277
|
+
className: "font-semibold text-base",
|
|
5278
|
+
style: { color: "var(--metakyc-text-primary, #111827)" },
|
|
5279
|
+
children: u.title
|
|
5280
|
+
}
|
|
5281
|
+
),
|
|
5282
|
+
u.subtitle && /* @__PURE__ */ a(
|
|
5283
|
+
"p",
|
|
5284
|
+
{
|
|
5285
|
+
className: "text-sm mt-0.5",
|
|
5286
|
+
style: { color: "var(--metakyc-text-secondary, #6b7280)" },
|
|
5287
|
+
children: u.subtitle
|
|
5288
|
+
}
|
|
5289
|
+
),
|
|
5290
|
+
u.description && u.description !== u.subtitle && /* @__PURE__ */ a(
|
|
5291
|
+
"p",
|
|
5292
|
+
{
|
|
5293
|
+
className: "text-xs mt-1",
|
|
5294
|
+
style: { color: "var(--metakyc-text-secondary, #6b7280)" },
|
|
5295
|
+
children: u.description
|
|
5296
|
+
}
|
|
5297
|
+
)
|
|
5298
|
+
] }),
|
|
5277
5299
|
(H || R.length > 0) && /* @__PURE__ */ i("div", { className: "mb-4 p-3 bg-red-50 border border-red-200 rounded-lg", children: [
|
|
5278
5300
|
H && /* @__PURE__ */ i("p", { className: "text-red-600 text-sm", children: [
|
|
5279
5301
|
/* @__PURE__ */ a("strong", { children: "Error:" }),
|