@planetaexo/design-system 0.9.3 → 0.9.4
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.cjs +55 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -14
- package/dist/index.d.ts +13 -14
- package/dist/index.js +55 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3894,8 +3894,11 @@ function BookingConfirmationEmail({
|
|
|
3894
3894
|
);
|
|
3895
3895
|
}
|
|
3896
3896
|
function BookingOtpEmail({
|
|
3897
|
-
|
|
3897
|
+
greeting,
|
|
3898
|
+
intro,
|
|
3899
|
+
code,
|
|
3898
3900
|
expiryMessage,
|
|
3901
|
+
teamSignature,
|
|
3899
3902
|
logoUrl,
|
|
3900
3903
|
className
|
|
3901
3904
|
}) {
|
|
@@ -3915,15 +3918,44 @@ function BookingOtpEmail({
|
|
|
3915
3918
|
className,
|
|
3916
3919
|
children: [
|
|
3917
3920
|
/* @__PURE__ */ jsxRuntime.jsx(EmailLogo, { src: logoUrl }),
|
|
3921
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { fontSize: "16px", lineHeight: "1.5", margin: "0 0 12px" }, children: greeting }),
|
|
3922
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { fontSize: "15px", lineHeight: "1.5", margin: "0 0 24px" }, children: intro }),
|
|
3918
3923
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3919
|
-
"
|
|
3924
|
+
"table",
|
|
3920
3925
|
{
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
},
|
|
3926
|
-
children:
|
|
3926
|
+
role: "presentation",
|
|
3927
|
+
cellPadding: 0,
|
|
3928
|
+
cellSpacing: 0,
|
|
3929
|
+
border: 0,
|
|
3930
|
+
style: { width: "100%", borderCollapse: "collapse", margin: "0 0 24px" },
|
|
3931
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("tbody", { children: /* @__PURE__ */ jsxRuntime.jsx("tr", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3932
|
+
"td",
|
|
3933
|
+
{
|
|
3934
|
+
align: "center",
|
|
3935
|
+
style: {
|
|
3936
|
+
backgroundColor: emailTokens.primaryLight,
|
|
3937
|
+
border: `1px solid ${emailTokens.border}`,
|
|
3938
|
+
borderRadius: "12px",
|
|
3939
|
+
padding: "24px 16px"
|
|
3940
|
+
},
|
|
3941
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3942
|
+
"div",
|
|
3943
|
+
{
|
|
3944
|
+
style: {
|
|
3945
|
+
fontFamily: emailTokens.fontFamily,
|
|
3946
|
+
fontSize: "36px",
|
|
3947
|
+
fontWeight: 700,
|
|
3948
|
+
letterSpacing: "0.3em",
|
|
3949
|
+
color: emailTokens.foreground,
|
|
3950
|
+
lineHeight: 1,
|
|
3951
|
+
// Padding esquerdo compensa letter-spacing final, mantendo visualmente centralizado.
|
|
3952
|
+
paddingLeft: "0.3em"
|
|
3953
|
+
},
|
|
3954
|
+
children: code
|
|
3955
|
+
}
|
|
3956
|
+
)
|
|
3957
|
+
}
|
|
3958
|
+
) }) })
|
|
3927
3959
|
}
|
|
3928
3960
|
),
|
|
3929
3961
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -3933,11 +3965,12 @@ function BookingOtpEmail({
|
|
|
3933
3965
|
color: emailTokens.mutedForeground,
|
|
3934
3966
|
fontSize: "14px",
|
|
3935
3967
|
lineHeight: "1.5",
|
|
3936
|
-
margin: "0"
|
|
3968
|
+
margin: "0 0 24px"
|
|
3937
3969
|
},
|
|
3938
3970
|
children: expiryMessage
|
|
3939
3971
|
}
|
|
3940
|
-
)
|
|
3972
|
+
),
|
|
3973
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { style: { fontSize: "14px", lineHeight: "1.5", margin: "0" }, children: teamSignature })
|
|
3941
3974
|
]
|
|
3942
3975
|
}
|
|
3943
3976
|
);
|
|
@@ -5683,11 +5716,19 @@ var OTPCodeInput = ({
|
|
|
5683
5716
|
const numeric = raw.replace(/\D/g, "");
|
|
5684
5717
|
if (!numeric) return;
|
|
5685
5718
|
const newDigits = [...digits];
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
focusSlot(index + 1);
|
|
5719
|
+
if (numeric.length === 1) {
|
|
5720
|
+
newDigits[index] = numeric;
|
|
5721
|
+
updateValue(newDigits);
|
|
5722
|
+
if (index < length - 1) focusSlot(index + 1);
|
|
5723
|
+
return;
|
|
5690
5724
|
}
|
|
5725
|
+
const toPaste = numeric.slice(0, length - index);
|
|
5726
|
+
for (let i = 0; i < toPaste.length; i++) {
|
|
5727
|
+
newDigits[index + i] = toPaste[i];
|
|
5728
|
+
}
|
|
5729
|
+
updateValue(newDigits);
|
|
5730
|
+
const lastFilled = Math.min(index + toPaste.length, length) - 1;
|
|
5731
|
+
focusSlot(lastFilled < length - 1 ? lastFilled + 1 : lastFilled);
|
|
5691
5732
|
};
|
|
5692
5733
|
const handleKeyDown = (index, e) => {
|
|
5693
5734
|
if (e.key === "Backspace") {
|