@vpdev2/metakyc-sdk 1.0.62 → 1.0.63
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/Input.d.ts +1 -1
- package/dist/components/core/Input.d.ts.map +1 -1
- package/dist/components/core/PhoneInput.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +43 -19
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme/theme-manager.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1690,6 +1690,8 @@ class dr {
|
|
|
1690
1690
|
danger: t.danger,
|
|
1691
1691
|
info: t.info,
|
|
1692
1692
|
background: t.background,
|
|
1693
|
+
// alias used by Input, Select, SearchableSelect, MultiSelect components
|
|
1694
|
+
"input-bg": t.background,
|
|
1693
1695
|
surface: t.surface,
|
|
1694
1696
|
border: t.border,
|
|
1695
1697
|
"text-primary": t.textPrimary,
|
|
@@ -2513,34 +2515,45 @@ const V = ({
|
|
|
2513
2515
|
}
|
|
2514
2516
|
);
|
|
2515
2517
|
}, me = Ue(
|
|
2516
|
-
({ label: e, error: t, helperText: n, leftIcon: a, rightIcon: i, className: o,
|
|
2517
|
-
e && /* @__PURE__ */ s(
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2518
|
+
({ label: e, error: t, helperText: n, leftIcon: a, rightIcon: i, className: o, style: c, ...d }, u) => /* @__PURE__ */ s("div", { className: "w-full", children: [
|
|
2519
|
+
e && /* @__PURE__ */ s(
|
|
2520
|
+
"label",
|
|
2521
|
+
{
|
|
2522
|
+
className: "block text-sm font-medium mb-1",
|
|
2523
|
+
style: { color: "var(--metakyc-text-primary, #374151)" },
|
|
2524
|
+
children: [
|
|
2525
|
+
e,
|
|
2526
|
+
d.required && /* @__PURE__ */ r("span", { className: "text-danger-500 ml-1", children: "*" })
|
|
2527
|
+
]
|
|
2528
|
+
}
|
|
2529
|
+
),
|
|
2521
2530
|
/* @__PURE__ */ s("div", { className: "relative", children: [
|
|
2522
2531
|
a && /* @__PURE__ */ r("div", { className: "absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none", children: a }),
|
|
2523
2532
|
/* @__PURE__ */ r(
|
|
2524
2533
|
"input",
|
|
2525
2534
|
{
|
|
2526
|
-
ref:
|
|
2535
|
+
ref: u,
|
|
2527
2536
|
className: oe(
|
|
2528
2537
|
"block w-full rounded-lg border px-3 py-2 text-sm transition-colors",
|
|
2529
|
-
"focus:outline-none focus:ring-2 focus:ring-
|
|
2530
|
-
"disabled:
|
|
2531
|
-
t ? "border-danger-500 focus:ring-danger-500" : "border-gray-300 dark:border-gray-600",
|
|
2532
|
-
"dark:bg-gray-800 dark:text-white",
|
|
2538
|
+
"focus:outline-none focus:ring-2 focus:ring-offset-0",
|
|
2539
|
+
"disabled:opacity-60 disabled:cursor-not-allowed",
|
|
2533
2540
|
a ? "pl-10" : "",
|
|
2534
2541
|
i ? "pr-10" : "",
|
|
2535
2542
|
o
|
|
2536
2543
|
),
|
|
2537
|
-
|
|
2544
|
+
style: {
|
|
2545
|
+
backgroundColor: "var(--metakyc-input-bg, #ffffff)",
|
|
2546
|
+
color: "var(--metakyc-text-primary, #111827)",
|
|
2547
|
+
borderColor: t ? "var(--metakyc-danger, #ef4444)" : "var(--metakyc-border, #d1d5db)",
|
|
2548
|
+
...c
|
|
2549
|
+
},
|
|
2550
|
+
...d
|
|
2538
2551
|
}
|
|
2539
2552
|
),
|
|
2540
2553
|
i && /* @__PURE__ */ r("div", { className: "absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none", children: i })
|
|
2541
2554
|
] }),
|
|
2542
|
-
t && /* @__PURE__ */ r("p", { className: "mt-1 text-sm
|
|
2543
|
-
!t && n && /* @__PURE__ */ r("p", { className: "mt-1 text-sm text-
|
|
2555
|
+
t && /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-danger, #ef4444)" }, children: t }),
|
|
2556
|
+
!t && n && /* @__PURE__ */ r("p", { className: "mt-1 text-sm", style: { color: "var(--metakyc-text-secondary, #6b7280)" }, children: n })
|
|
2544
2557
|
] })
|
|
2545
2558
|
);
|
|
2546
2559
|
me.displayName = "Input";
|
|
@@ -3285,10 +3298,17 @@ const Cr = ({
|
|
|
3285
3298
|
] });
|
|
3286
3299
|
}, Ar = Ue(
|
|
3287
3300
|
({ countryCode: e = "+1", onCountryCodeChange: t, className: n, ...a }, i) => /* @__PURE__ */ s("div", { className: "w-full", children: [
|
|
3288
|
-
a.label && /* @__PURE__ */ s(
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3301
|
+
a.label && /* @__PURE__ */ s(
|
|
3302
|
+
"label",
|
|
3303
|
+
{
|
|
3304
|
+
className: "block text-sm font-medium mb-1",
|
|
3305
|
+
style: { color: "var(--metakyc-text-primary, #374151)" },
|
|
3306
|
+
children: [
|
|
3307
|
+
a.label,
|
|
3308
|
+
a.required && /* @__PURE__ */ r("span", { className: "text-danger-500 ml-1", children: "*" })
|
|
3309
|
+
]
|
|
3310
|
+
}
|
|
3311
|
+
),
|
|
3292
3312
|
/* @__PURE__ */ s("div", { className: "flex gap-2", children: [
|
|
3293
3313
|
/* @__PURE__ */ r(
|
|
3294
3314
|
"input",
|
|
@@ -3298,9 +3318,13 @@ const Cr = ({
|
|
|
3298
3318
|
onChange: (o) => t == null ? void 0 : t(o.target.value),
|
|
3299
3319
|
className: oe(
|
|
3300
3320
|
"w-20 rounded-lg border px-3 py-2 text-sm",
|
|
3301
|
-
"focus:outline-none focus:ring-2 focus:ring-
|
|
3302
|
-
"border-gray-300 dark:border-gray-600 dark:bg-gray-800 dark:text-white"
|
|
3321
|
+
"focus:outline-none focus:ring-2 focus:ring-offset-0"
|
|
3303
3322
|
),
|
|
3323
|
+
style: {
|
|
3324
|
+
backgroundColor: "var(--metakyc-input-bg, #ffffff)",
|
|
3325
|
+
color: "var(--metakyc-text-primary, #111827)",
|
|
3326
|
+
borderColor: "var(--metakyc-border, #d1d5db)"
|
|
3327
|
+
},
|
|
3304
3328
|
placeholder: "+1"
|
|
3305
3329
|
}
|
|
3306
3330
|
),
|