@paymanai/payman-ask-sdk 1.2.0 → 1.2.2
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 +8 -71
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -71
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -745,19 +745,7 @@ function OtpInput({ value, onChange, maxLength, disabled = false }) {
|
|
|
745
745
|
onPaste: handlePaste,
|
|
746
746
|
onFocus: (e) => e.target.select(),
|
|
747
747
|
"aria-label": `Digit ${i + 1}`,
|
|
748
|
-
|
|
749
|
-
width: "40px",
|
|
750
|
-
height: "48px",
|
|
751
|
-
textAlign: "center",
|
|
752
|
-
fontSize: "20px",
|
|
753
|
-
fontWeight: 600,
|
|
754
|
-
border: "1px solid hsl(var(--border, 214.3 31.8% 91.4%))",
|
|
755
|
-
borderRadius: "8px",
|
|
756
|
-
outline: "none",
|
|
757
|
-
backgroundColor: disabled ? "hsl(var(--muted, 210 40% 96.1%))" : "transparent",
|
|
758
|
-
color: "hsl(var(--foreground, 222.2 84% 4.9%))",
|
|
759
|
-
opacity: disabled ? 0.5 : 1
|
|
760
|
-
}
|
|
748
|
+
className: `w-10 h-12 text-center text-xl font-semibold border border-border rounded-lg outline-none text-foreground ${disabled ? "bg-muted opacity-50" : "bg-transparent"}`
|
|
761
749
|
},
|
|
762
750
|
i
|
|
763
751
|
)) });
|
|
@@ -946,67 +934,16 @@ function UserActionModal({
|
|
|
946
934
|
ref: dialogRef,
|
|
947
935
|
role: "dialog",
|
|
948
936
|
"aria-modal": "true",
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
borderRadius: "12px",
|
|
952
|
-
padding: "24px",
|
|
953
|
-
width: "100%",
|
|
954
|
-
maxWidth: "420px",
|
|
955
|
-
margin: "0 16px",
|
|
956
|
-
boxShadow: "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
|
|
957
|
-
},
|
|
937
|
+
className: "bg-card rounded-xl p-6 shadow-2xl",
|
|
938
|
+
style: { width: "100%", maxWidth: "420px", margin: "0 16px" },
|
|
958
939
|
tabIndex: -1,
|
|
959
940
|
children: [
|
|
960
|
-
/* @__PURE__ */ jsxs("div", {
|
|
961
|
-
/* @__PURE__ */ jsx(
|
|
962
|
-
|
|
963
|
-
{
|
|
964
|
-
style: {
|
|
965
|
-
display: "inline-flex",
|
|
966
|
-
alignItems: "center",
|
|
967
|
-
justifyContent: "center",
|
|
968
|
-
width: "48px",
|
|
969
|
-
height: "48px",
|
|
970
|
-
borderRadius: "50%",
|
|
971
|
-
backgroundColor: "hsl(var(--muted, 210 40% 96.1%))",
|
|
972
|
-
marginBottom: "12px"
|
|
973
|
-
},
|
|
974
|
-
children: /* @__PURE__ */ jsx(
|
|
975
|
-
ShieldCheck,
|
|
976
|
-
{
|
|
977
|
-
className: "text-primary",
|
|
978
|
-
style: { width: "24px", height: "24px" }
|
|
979
|
-
}
|
|
980
|
-
)
|
|
981
|
-
}
|
|
982
|
-
),
|
|
983
|
-
/* @__PURE__ */ jsx(
|
|
984
|
-
"h2",
|
|
985
|
-
{
|
|
986
|
-
style: {
|
|
987
|
-
fontSize: "18px",
|
|
988
|
-
fontWeight: 600,
|
|
989
|
-
color: "hsl(var(--foreground, 222.2 84% 4.9%))",
|
|
990
|
-
margin: 0
|
|
991
|
-
},
|
|
992
|
-
children: MODAL_CONTENT.TITLE
|
|
993
|
-
}
|
|
994
|
-
)
|
|
941
|
+
/* @__PURE__ */ jsxs("div", { className: "text-center mb-4", children: [
|
|
942
|
+
/* @__PURE__ */ jsx("div", { className: "inline-flex items-center justify-center w-12 h-12 rounded-full bg-muted mb-3", children: /* @__PURE__ */ jsx(ShieldCheck, { className: "w-6 h-6 text-primary" }) }),
|
|
943
|
+
/* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold text-foreground m-0", children: MODAL_CONTENT.TITLE })
|
|
995
944
|
] }),
|
|
996
|
-
/* @__PURE__ */ jsx(
|
|
997
|
-
|
|
998
|
-
{
|
|
999
|
-
style: {
|
|
1000
|
-
fontSize: "14px",
|
|
1001
|
-
color: "hsl(var(--muted-foreground, 215.4 16.3% 46.9%))",
|
|
1002
|
-
textAlign: "center",
|
|
1003
|
-
margin: "0 0 24px 0",
|
|
1004
|
-
lineHeight: 1.5
|
|
1005
|
-
},
|
|
1006
|
-
children: userActionRequest.message
|
|
1007
|
-
}
|
|
1008
|
-
),
|
|
1009
|
-
/* @__PURE__ */ jsx("div", { style: { marginBottom: "24px" }, children: /* @__PURE__ */ jsx(
|
|
945
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground text-center mb-6 leading-relaxed", children: userActionRequest.message }),
|
|
946
|
+
/* @__PURE__ */ jsx("div", { className: "mb-6", children: /* @__PURE__ */ jsx(
|
|
1010
947
|
OtpInput,
|
|
1011
948
|
{
|
|
1012
949
|
value: otp,
|