medos-sdk 1.2.0 → 1.2.1
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/vanilla/AppointmentCalendarWidget.js +18 -18
- package/dist/vanilla/widget.css +365 -1091
- package/dist/vanilla/widget.js +18 -18
- package/package.json +1 -1
|
@@ -900,8 +900,8 @@ class AppointmentCalendarWidget {
|
|
|
900
900
|
return `
|
|
901
901
|
<div class="medos-section-card">
|
|
902
902
|
<div class="medos-section-header">
|
|
903
|
-
${VanillaIcons.phone(
|
|
904
|
-
<span class="medos-section-title">
|
|
903
|
+
${VanillaIcons.phone(18)}
|
|
904
|
+
<span class="medos-section-title">Verify Details</span>
|
|
905
905
|
</div>
|
|
906
906
|
<div class="medos-section-body">
|
|
907
907
|
<p class="medos-section-description">Enter Phone Number</p>
|
|
@@ -914,7 +914,7 @@ class AppointmentCalendarWidget {
|
|
|
914
914
|
type="tel"
|
|
915
915
|
class="medos-input"
|
|
916
916
|
id="medos-phone"
|
|
917
|
-
placeholder="
|
|
917
|
+
placeholder="0000 000 000"
|
|
918
918
|
value="${this.escapeHtml(this.state.patientPhone)}"
|
|
919
919
|
maxlength="15"
|
|
920
920
|
/>
|
|
@@ -924,16 +924,16 @@ class AppointmentCalendarWidget {
|
|
|
924
924
|
? '<div class="medos-validation-error">Phone number should be 7-15 digits</div>'
|
|
925
925
|
: ""}
|
|
926
926
|
</div>
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
927
|
+
<div class="medos-actions">
|
|
928
|
+
<button class="medos-btn medos-btn-primary" id="medos-btn-send-otp" ${canSendOtp ? "" : "disabled"}>${this.state.otpSending ? "Sending..." : "Continue"}</button>
|
|
929
|
+
</div>
|
|
930
930
|
</div>
|
|
931
931
|
`;
|
|
932
932
|
}
|
|
933
933
|
return `
|
|
934
934
|
<div class="medos-section-card">
|
|
935
935
|
<div class="medos-section-header">
|
|
936
|
-
${VanillaIcons.phone(
|
|
936
|
+
${VanillaIcons.phone(18)}
|
|
937
937
|
<span class="medos-section-title">Enter OTP</span>
|
|
938
938
|
</div>
|
|
939
939
|
<div class="medos-section-body">
|
|
@@ -943,19 +943,19 @@ class AppointmentCalendarWidget {
|
|
|
943
943
|
type="text"
|
|
944
944
|
class="medos-input medos-otp-input"
|
|
945
945
|
id="medos-otp"
|
|
946
|
-
placeholder="
|
|
946
|
+
placeholder="000000"
|
|
947
947
|
value="${this.escapeHtml(this.state.otpCode)}"
|
|
948
948
|
maxlength="6"
|
|
949
949
|
/>
|
|
950
950
|
</div>
|
|
951
951
|
<button class="medos-link-btn" id="medos-btn-change-number">Change phone number</button>
|
|
952
952
|
</div>
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
<button class="medos-btn medos-btn-primary" id="medos-btn-verify-otp" ${this.state.otpCode.length === 6 && !this.state.otpVerifying
|
|
953
|
+
<div class="medos-actions">
|
|
954
|
+
<button class="medos-btn medos-btn-secondary" id="medos-btn-resend-otp">Resend OTP</button>
|
|
955
|
+
<button class="medos-btn medos-btn-primary" id="medos-btn-verify-otp" ${this.state.otpCode.length === 6 && !this.state.otpVerifying
|
|
957
956
|
? ""
|
|
958
957
|
: "disabled"}>${this.state.otpVerifying ? "Verifying..." : "Verify OTP"}</button>
|
|
958
|
+
</div>
|
|
959
959
|
</div>
|
|
960
960
|
`;
|
|
961
961
|
}
|
|
@@ -968,7 +968,7 @@ class AppointmentCalendarWidget {
|
|
|
968
968
|
return `
|
|
969
969
|
<div class="medos-section-card">
|
|
970
970
|
<div class="medos-section-header">
|
|
971
|
-
<h3 class="medos-section-title"
|
|
971
|
+
<h3 class="medos-section-title">Choose Booking Option</h3>
|
|
972
972
|
</div>
|
|
973
973
|
<div class="medos-section-body">
|
|
974
974
|
<p class="medos-section-description">
|
|
@@ -1002,7 +1002,7 @@ class AppointmentCalendarWidget {
|
|
|
1002
1002
|
.join("")}
|
|
1003
1003
|
</div>
|
|
1004
1004
|
</div>
|
|
1005
|
-
${hasActivePacks ? '<hr style="margin:
|
|
1005
|
+
${hasActivePacks ? '<hr style="margin: 24px 0;" />' : ""}
|
|
1006
1006
|
`
|
|
1007
1007
|
: ""}
|
|
1008
1008
|
|
|
@@ -1050,10 +1050,10 @@ class AppointmentCalendarWidget {
|
|
|
1050
1050
|
: ""}
|
|
1051
1051
|
</div>
|
|
1052
1052
|
</div>
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1053
|
+
<div class="medos-actions">
|
|
1054
|
+
<button class="medos-btn medos-btn-secondary" id="medos-btn-back">${VanillaIcons.arrowLeft(14)} Back</button>
|
|
1055
|
+
<button class="medos-btn medos-btn-primary" id="medos-btn-continue" ${this.state.bookingOptionType ? "" : "disabled"}>Next</button>
|
|
1056
|
+
</div>
|
|
1057
1057
|
</div>
|
|
1058
1058
|
`;
|
|
1059
1059
|
}
|