medos-sdk 1.1.10 → 1.1.12
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/client/MedosClient.d.ts +1 -0
- package/dist/client/MedosClient.js +8 -1
- package/dist/components/AppointmentCalender.js +19 -22
- package/dist/components/AppointmentConfirmationStep.d.ts +1 -0
- package/dist/components/AppointmentConfirmationStep.js +34 -42
- package/dist/components/AppointmentDateTimeModal.d.ts +1 -0
- package/dist/components/AppointmentDateTimeModal.js +201 -168
- package/dist/components/AppointmentSummaryStep.d.ts +12 -0
- package/dist/components/AppointmentSummaryStep.js +168 -0
- package/dist/components/BookingOptionStep.d.ts +14 -0
- package/dist/components/BookingOptionStep.js +346 -0
- package/dist/components/ContactInformationStep.js +10 -4
- package/dist/components/ContactPreferenceStep.js +10 -1
- package/dist/components/DoctorSelectModal.js +105 -59
- package/dist/components/EnquiryForm.js +81 -69
- package/dist/components/Icons/CloseIcon.d.ts +9 -0
- package/dist/components/Icons/CloseIcon.js +5 -0
- package/dist/components/InquiryDetailsStep.js +5 -1
- package/dist/components/PatientDetailsStep.js +17 -12
- package/dist/components/PatientSelectionStep.d.ts +12 -0
- package/dist/components/PatientSelectionStep.js +254 -0
- package/dist/components/PhoneVerificationStep.js +1 -1
- package/dist/components/SuccessStep.js +1 -1
- package/dist/components/appointment-booking/AppointmentCalender.js +145 -67
- package/dist/components/appointment-booking/appointment-modal-styles.d.ts +272 -0
- package/dist/components/appointment-booking/appointment-modal-styles.js +419 -0
- package/dist/components/appointment-booking/components/AppointmentConfirmationStep.d.ts +28 -0
- package/dist/components/appointment-booking/components/AppointmentConfirmationStep.js +107 -0
- package/dist/components/appointment-booking/components/AppointmentDateTimeModal.d.ts +18 -0
- package/dist/components/appointment-booking/components/AppointmentDateTimeModal.js +306 -0
- package/dist/components/appointment-booking/components/AppointmentSummaryStep.d.ts +12 -0
- package/dist/components/appointment-booking/components/AppointmentSummaryStep.js +194 -0
- package/dist/components/appointment-booking/components/BookingOptionStep.d.ts +14 -0
- package/dist/components/appointment-booking/components/BookingOptionStep.js +350 -0
- package/dist/components/appointment-booking/components/DoctorSelectModal.d.ts +14 -0
- package/dist/components/appointment-booking/components/DoctorSelectModal.js +213 -0
- package/dist/components/appointment-booking/components/PatientDetailsStep.d.ts +3 -0
- package/dist/components/appointment-booking/components/PatientDetailsStep.js +96 -0
- package/dist/components/appointment-booking/components/PatientSelectionStep.d.ts +12 -0
- package/dist/components/appointment-booking/components/PatientSelectionStep.js +254 -0
- package/dist/components/appointment-booking/components/PhoneVerificationStep.d.ts +3 -0
- package/dist/components/appointment-booking/components/PhoneVerificationStep.js +49 -0
- package/dist/components/appointment-booking/components/SuccessStep.d.ts +5 -0
- package/dist/components/appointment-booking/components/SuccessStep.js +9 -0
- package/dist/components/appointment-booking/components/index.d.ts +9 -0
- package/dist/components/appointment-booking/components/index.js +9 -0
- package/dist/components/appointment-booking/hooks/useAppointmentFlow.d.ts +0 -1
- package/dist/components/appointment-booking/hooks/useAppointmentFlow.js +111 -25
- package/dist/components/appointment-booking/hooks/useAppointmentState.js +32 -0
- package/dist/components/appointment-booking/hooks/useInitializeAddresses.js +0 -1
- package/dist/components/appointment-booking/index.d.ts +2 -4
- package/dist/components/appointment-booking/index.js +2 -2
- package/dist/components/appointment-booking/types.d.ts +167 -0
- package/dist/components/appointment-booking/types.js +16 -0
- package/dist/components/appointment-modal-styles.d.ts +259 -0
- package/dist/components/appointment-modal-styles.js +395 -0
- package/dist/components/constant.d.ts +2 -0
- package/dist/components/constant.js +15 -0
- package/dist/components/constants/constant.d.ts +2 -0
- package/dist/components/constants/constant.js +15 -0
- package/dist/components/constants/index.d.ts +3 -0
- package/dist/components/constants/index.js +24 -0
- package/dist/components/constants/options.d.ts +13 -0
- package/dist/components/constants/options.js +35 -0
- package/dist/components/constants/validation.d.ts +6 -0
- package/dist/components/constants/validation.js +16 -0
- package/dist/components/custom-calendar.js +20 -11
- package/dist/components/enquiry-form/EnquiryForm.d.ts +7 -0
- package/dist/components/enquiry-form/EnquiryForm.js +238 -0
- package/dist/components/enquiry-form/components/ContactInformationStep.d.ts +13 -0
- package/dist/components/enquiry-form/components/ContactInformationStep.js +21 -0
- package/dist/components/enquiry-form/components/ContactPreferenceStep.d.ts +9 -0
- package/dist/components/enquiry-form/components/ContactPreferenceStep.js +20 -0
- package/dist/components/enquiry-form/components/InquiryDetailsStep.d.ts +10 -0
- package/dist/components/enquiry-form/components/InquiryDetailsStep.js +20 -0
- package/dist/components/enquiry-form/components/index.d.ts +3 -0
- package/dist/components/enquiry-form/components/index.js +3 -0
- package/dist/components/enquiry-form/index.d.ts +2 -0
- package/dist/components/enquiry-form/index.js +2 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +7 -0
- package/dist/components/shared/icons/Check.d.ts +6 -0
- package/dist/components/shared/icons/Check.js +2 -0
- package/dist/components/shared/icons/ChevronDownIcon.d.ts +4 -0
- package/dist/components/shared/icons/ChevronDownIcon.js +2 -0
- package/dist/components/shared/icons/ChevronLeft.d.ts +3 -0
- package/dist/components/shared/icons/ChevronLeft.js +3 -0
- package/dist/components/shared/icons/ChevronRight.d.ts +3 -0
- package/dist/components/shared/icons/ChevronRight.js +3 -0
- package/dist/components/shared/icons/CloseIcon.d.ts +9 -0
- package/dist/components/shared/icons/CloseIcon.js +5 -0
- package/dist/components/shared/icons/ConfirmationCheck.d.ts +1 -0
- package/dist/components/shared/icons/ConfirmationCheck.js +9 -0
- package/dist/components/shared/icons/ConsultationType.d.ts +1 -0
- package/dist/components/shared/icons/ConsultationType.js +2 -0
- package/dist/components/shared/icons/Date&TimeIcon.d.ts +1 -0
- package/dist/components/shared/icons/Date&TimeIcon.js +2 -0
- package/dist/components/shared/icons/MapIcon.d.ts +1 -0
- package/dist/components/shared/icons/MapIcon.js +2 -0
- package/dist/components/shared/icons/MedosLogo.d.ts +3 -0
- package/dist/components/shared/icons/MedosLogo.js +3 -0
- package/dist/components/shared/icons/PaymentMethodIcon.d.ts +1 -0
- package/dist/components/shared/icons/PaymentMethodIcon.js +2 -0
- package/dist/components/shared/icons/SuccessIcon.d.ts +8 -0
- package/dist/components/shared/icons/SuccessIcon.js +14 -0
- package/dist/components/shared/icons/UserIcon.d.ts +1 -0
- package/dist/components/shared/icons/UserIcon.js +2 -0
- package/dist/components/shared/icons/index.d.ts +13 -0
- package/dist/components/shared/icons/index.js +13 -0
- package/dist/components/shared/index.d.ts +2 -0
- package/dist/components/shared/index.js +2 -0
- package/dist/components/shared/ui/Calendar.d.ts +5 -0
- package/dist/components/shared/ui/Calendar.js +167 -0
- package/dist/components/shared/ui/SelectDropdown.d.ts +41 -0
- package/dist/components/shared/ui/SelectDropdown.js +301 -0
- package/dist/components/shared/ui/index.d.ts +2 -0
- package/dist/components/shared/ui/index.js +2 -0
- package/dist/components/styles/appointment.d.ts +4 -0
- package/dist/components/styles/appointment.js +220 -0
- package/dist/components/styles/enquiry.d.ts +2 -0
- package/dist/components/styles/enquiry.js +3 -0
- package/dist/components/styles/index.d.ts +2 -0
- package/dist/components/styles/index.js +2 -0
- package/dist/components/styles/shared.d.ts +3 -0
- package/dist/components/styles/shared.js +78 -0
- package/dist/components/styles.d.ts +1 -6
- package/dist/components/styles.js +1 -257
- package/dist/components/theme-styles.d.ts +5 -4
- package/dist/components/theme-styles.js +239 -125
- package/dist/components/types/appointment.d.ts +42 -0
- package/dist/components/types/appointment.js +1 -0
- package/dist/components/types/common.d.ts +24 -0
- package/dist/components/types/common.js +1 -0
- package/dist/components/types/enquiry.d.ts +59 -0
- package/dist/components/types/enquiry.js +1 -0
- package/dist/components/types/index.d.ts +4 -0
- package/dist/components/types/index.js +4 -0
- package/dist/components/types.d.ts +1 -52
- package/dist/components/types.js +1 -23
- package/dist/components/utils/date.d.ts +4 -0
- package/dist/components/utils/date.js +65 -0
- package/dist/components/utils/formatting.d.ts +4 -0
- package/dist/components/utils/formatting.js +9 -0
- package/dist/components/utils/index.d.ts +3 -0
- package/dist/components/utils/index.js +3 -0
- package/dist/components/utils/validation.d.ts +4 -0
- package/dist/components/utils/validation.js +37 -0
- package/dist/components/utils.d.ts +1 -5
- package/dist/components/utils.js +1 -15
- package/dist/components/validation.d.ts +1 -2
- package/dist/components/validation.js +1 -7
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/core/theme/index.d.ts +1 -0
- package/dist/core/theme/index.js +1 -0
- package/dist/core/theme/responsive.d.ts +15 -0
- package/dist/core/theme/responsive.js +113 -0
- package/dist/core/theme/themes.js +16 -4
- package/dist/core/theme/types.d.ts +8 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2 -1
- package/dist/react/ThemeProvider.d.ts +2 -1
- package/dist/react/ThemeProvider.js +49 -10
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +1 -1
- package/dist/services/AppointmentService.d.ts +80 -2
- package/dist/services/AppointmentService.js +131 -5
- package/dist/services/AuthService.js +1 -1
- package/dist/services/WorkspaceService.d.ts +58 -3
- package/dist/services/WorkspaceService.js +10 -1
- package/dist/vanilla/AppointmentCalendarWidget.d.ts +17 -7
- package/dist/vanilla/AppointmentCalendarWidget.js +1401 -380
- package/dist/vanilla/EnquiryFormWidget.d.ts +1 -0
- package/dist/vanilla/EnquiryFormWidget.js +25 -43
- package/dist/vanilla/client/MedosClient.d.ts +1 -0
- package/dist/vanilla/components/AppointmentConfirmationStep.d.ts +1 -0
- package/dist/vanilla/components/AppointmentDateTimeModal.d.ts +1 -0
- package/dist/vanilla/components/AppointmentSummaryStep.d.ts +12 -0
- package/dist/vanilla/components/BookingOptionStep.d.ts +14 -0
- package/dist/vanilla/components/Icons/CloseIcon.d.ts +9 -0
- package/dist/vanilla/components/PatientSelectionStep.d.ts +12 -0
- package/dist/vanilla/components/VanillaCalendar.js +33 -18
- package/dist/vanilla/components/VanillaIcons.d.ts +5 -0
- package/dist/vanilla/components/VanillaIcons.js +92 -0
- package/dist/vanilla/components/VanillaSelect.d.ts +3 -0
- package/dist/vanilla/components/VanillaSelect.js +93 -5
- package/dist/vanilla/components/appointment-booking/appointment-modal-styles.d.ts +272 -0
- package/dist/vanilla/components/appointment-booking/components/AppointmentConfirmationStep.d.ts +28 -0
- package/dist/vanilla/components/appointment-booking/components/AppointmentDateTimeModal.d.ts +18 -0
- package/dist/vanilla/components/appointment-booking/components/AppointmentSummaryStep.d.ts +12 -0
- package/dist/vanilla/components/appointment-booking/components/BookingOptionStep.d.ts +14 -0
- package/dist/vanilla/components/appointment-booking/components/DoctorSelectModal.d.ts +14 -0
- package/dist/vanilla/components/appointment-booking/components/PatientDetailsStep.d.ts +3 -0
- package/dist/vanilla/components/appointment-booking/components/PatientSelectionStep.d.ts +12 -0
- package/dist/vanilla/components/appointment-booking/components/PhoneVerificationStep.d.ts +3 -0
- package/dist/vanilla/components/appointment-booking/components/SuccessStep.d.ts +5 -0
- package/dist/vanilla/components/appointment-booking/components/index.d.ts +9 -0
- package/dist/vanilla/components/appointment-booking/hooks/useAppointmentFlow.d.ts +0 -1
- package/dist/vanilla/components/appointment-booking/index.d.ts +2 -4
- package/dist/vanilla/components/appointment-booking/types.d.ts +167 -0
- package/dist/vanilla/components/appointment-modal-styles.d.ts +259 -0
- package/dist/vanilla/components/constant.d.ts +2 -0
- package/dist/vanilla/components/constants/constant.d.ts +2 -0
- package/dist/vanilla/components/constants/index.d.ts +3 -0
- package/dist/vanilla/components/constants/options.d.ts +13 -0
- package/dist/vanilla/components/constants/validation.d.ts +6 -0
- package/dist/vanilla/components/enquiry-form/EnquiryForm.d.ts +7 -0
- package/dist/vanilla/components/enquiry-form/components/ContactInformationStep.d.ts +13 -0
- package/dist/vanilla/components/enquiry-form/components/ContactPreferenceStep.d.ts +9 -0
- package/dist/vanilla/components/enquiry-form/components/InquiryDetailsStep.d.ts +10 -0
- package/dist/vanilla/components/enquiry-form/components/index.d.ts +3 -0
- package/dist/vanilla/components/enquiry-form/index.d.ts +2 -0
- package/dist/vanilla/components/index.d.ts +7 -3
- package/dist/vanilla/components/shared/icons/Check.d.ts +6 -0
- package/dist/vanilla/components/shared/icons/ChevronDownIcon.d.ts +4 -0
- package/dist/vanilla/components/shared/icons/ChevronLeft.d.ts +3 -0
- package/dist/vanilla/components/shared/icons/ChevronRight.d.ts +3 -0
- package/dist/vanilla/components/shared/icons/CloseIcon.d.ts +9 -0
- package/dist/vanilla/components/shared/icons/ConfirmationCheck.d.ts +1 -0
- package/dist/vanilla/components/shared/icons/ConsultationType.d.ts +1 -0
- package/dist/vanilla/components/shared/icons/Date&TimeIcon.d.ts +1 -0
- package/dist/vanilla/components/shared/icons/MapIcon.d.ts +1 -0
- package/dist/vanilla/components/shared/icons/MedosLogo.d.ts +3 -0
- package/dist/vanilla/components/shared/icons/PaymentMethodIcon.d.ts +1 -0
- package/dist/vanilla/components/shared/icons/SuccessIcon.d.ts +8 -0
- package/dist/vanilla/components/shared/icons/UserIcon.d.ts +1 -0
- package/dist/vanilla/components/shared/icons/index.d.ts +13 -0
- package/dist/vanilla/components/shared/index.d.ts +2 -0
- package/dist/vanilla/components/shared/ui/Calendar.d.ts +5 -0
- package/dist/vanilla/components/shared/ui/SelectDropdown.d.ts +41 -0
- package/dist/vanilla/components/shared/ui/index.d.ts +2 -0
- package/dist/vanilla/components/styles/appointment.d.ts +4 -0
- package/dist/vanilla/components/styles/enquiry.d.ts +2 -0
- package/dist/vanilla/components/styles/index.d.ts +2 -0
- package/dist/vanilla/components/styles/shared.d.ts +3 -0
- package/dist/vanilla/components/styles.d.ts +1 -6
- package/dist/vanilla/components/theme-styles.d.ts +5 -4
- package/dist/vanilla/components/types/appointment.d.ts +42 -0
- package/dist/vanilla/components/types/common.d.ts +24 -0
- package/dist/vanilla/components/types/enquiry.d.ts +59 -0
- package/dist/vanilla/components/types/index.d.ts +4 -0
- package/dist/vanilla/components/types.d.ts +1 -52
- package/dist/vanilla/components/utils/date.d.ts +4 -0
- package/dist/vanilla/components/utils/formatting.d.ts +4 -0
- package/dist/vanilla/components/utils/index.d.ts +3 -0
- package/dist/vanilla/components/utils/validation.d.ts +4 -0
- package/dist/vanilla/components/utils.d.ts +1 -5
- package/dist/vanilla/components/validation.d.ts +1 -2
- package/dist/vanilla/constants/index.d.ts +1 -1
- package/dist/vanilla/core/theme/index.d.ts +1 -0
- package/dist/vanilla/core/theme/responsive.d.ts +15 -0
- package/dist/vanilla/core/theme/types.d.ts +8 -0
- package/dist/vanilla/enquiry-widget.js +3632 -90
- package/dist/vanilla/index.d.ts +4 -2
- package/dist/vanilla/react/ThemeProvider.d.ts +2 -1
- package/dist/vanilla/react/index.d.ts +3 -3
- package/dist/vanilla/services/AppointmentService.d.ts +80 -2
- package/dist/vanilla/services/WorkspaceService.d.ts +58 -3
- package/dist/vanilla/vanilla/AppointmentCalendarWidget.d.ts +17 -7
- package/dist/vanilla/vanilla/EnquiryFormWidget.d.ts +1 -0
- package/dist/vanilla/vanilla/components/VanillaIcons.d.ts +5 -0
- package/dist/vanilla/vanilla/components/VanillaSelect.d.ts +3 -0
- package/dist/vanilla/widget.css +1045 -205
- package/dist/vanilla/widget.js +10365 -5737
- package/package.json +2 -2
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const getMobileStyles: (theme: any, breakpoint: string) => {
|
|
3
|
+
container: {
|
|
4
|
+
backgroundColor: any;
|
|
5
|
+
padding: string;
|
|
6
|
+
maxWidth: string;
|
|
7
|
+
fontFamily: any;
|
|
8
|
+
color: any;
|
|
9
|
+
minHeight: string;
|
|
10
|
+
boxSizing: "border-box";
|
|
11
|
+
};
|
|
12
|
+
header: {
|
|
13
|
+
marginBottom: number;
|
|
14
|
+
};
|
|
15
|
+
title: {
|
|
16
|
+
fontSize: number;
|
|
17
|
+
fontWeight: number;
|
|
18
|
+
margin: number;
|
|
19
|
+
color: any;
|
|
20
|
+
};
|
|
21
|
+
section: {
|
|
22
|
+
marginBottom: number;
|
|
23
|
+
};
|
|
24
|
+
sectionTitle: {
|
|
25
|
+
fontSize: number;
|
|
26
|
+
fontWeight: number;
|
|
27
|
+
marginBottom: number;
|
|
28
|
+
color: any;
|
|
29
|
+
};
|
|
30
|
+
required: {
|
|
31
|
+
color: any;
|
|
32
|
+
marginLeft: number;
|
|
33
|
+
};
|
|
34
|
+
modeContainer: {
|
|
35
|
+
display: string;
|
|
36
|
+
flexDirection: "column";
|
|
37
|
+
gap: number;
|
|
38
|
+
};
|
|
39
|
+
modeOption: {
|
|
40
|
+
display: string;
|
|
41
|
+
alignItems: string;
|
|
42
|
+
gap: number;
|
|
43
|
+
padding: string;
|
|
44
|
+
border: string;
|
|
45
|
+
borderRadius: string;
|
|
46
|
+
cursor: string;
|
|
47
|
+
fontSize: number;
|
|
48
|
+
transition: string;
|
|
49
|
+
backgroundColor: any;
|
|
50
|
+
};
|
|
51
|
+
radioInput: {
|
|
52
|
+
width: number;
|
|
53
|
+
height: number;
|
|
54
|
+
accentColor: any;
|
|
55
|
+
};
|
|
56
|
+
chargeAmount: {
|
|
57
|
+
fontSize: number;
|
|
58
|
+
fontWeight: number;
|
|
59
|
+
color: any;
|
|
60
|
+
};
|
|
61
|
+
paymentOption: {
|
|
62
|
+
padding: string;
|
|
63
|
+
border: string;
|
|
64
|
+
borderRadius: string;
|
|
65
|
+
fontSize: number;
|
|
66
|
+
color: any;
|
|
67
|
+
backgroundColor: any;
|
|
68
|
+
};
|
|
69
|
+
dateSection: {
|
|
70
|
+
marginBottom: number;
|
|
71
|
+
padding: string;
|
|
72
|
+
backgroundColor: any;
|
|
73
|
+
borderRadius: string;
|
|
74
|
+
border: string;
|
|
75
|
+
};
|
|
76
|
+
dateSectionHeader: {
|
|
77
|
+
marginBottom: number;
|
|
78
|
+
};
|
|
79
|
+
dateSectionTitle: {
|
|
80
|
+
fontSize: number;
|
|
81
|
+
fontWeight: number;
|
|
82
|
+
color: any;
|
|
83
|
+
margin: number;
|
|
84
|
+
letterSpacing: string;
|
|
85
|
+
textTransform: "uppercase";
|
|
86
|
+
};
|
|
87
|
+
monthNavigationContainer: {
|
|
88
|
+
display: string;
|
|
89
|
+
alignItems: string;
|
|
90
|
+
justifyContent: string;
|
|
91
|
+
marginBottom: number;
|
|
92
|
+
position: "relative";
|
|
93
|
+
};
|
|
94
|
+
monthYearDisplay: {
|
|
95
|
+
fontSize: number;
|
|
96
|
+
fontWeight: number;
|
|
97
|
+
color: any;
|
|
98
|
+
textAlign: "center";
|
|
99
|
+
flex: number;
|
|
100
|
+
};
|
|
101
|
+
navButton: {
|
|
102
|
+
background: string;
|
|
103
|
+
border: string;
|
|
104
|
+
color: any;
|
|
105
|
+
cursor: string;
|
|
106
|
+
padding: number;
|
|
107
|
+
borderRadius: string;
|
|
108
|
+
display: string;
|
|
109
|
+
alignItems: string;
|
|
110
|
+
justifyContent: string;
|
|
111
|
+
transition: string;
|
|
112
|
+
minWidth: number;
|
|
113
|
+
minHeight: number;
|
|
114
|
+
flexShrink: number;
|
|
115
|
+
};
|
|
116
|
+
dateCardsContainer: {
|
|
117
|
+
display: string;
|
|
118
|
+
justifyContent: string;
|
|
119
|
+
alignItems: string;
|
|
120
|
+
gap: number;
|
|
121
|
+
width: string;
|
|
122
|
+
maxWidth: string;
|
|
123
|
+
overflow: string;
|
|
124
|
+
};
|
|
125
|
+
dateCard: {
|
|
126
|
+
width: number;
|
|
127
|
+
height: number;
|
|
128
|
+
border: string;
|
|
129
|
+
borderRadius: string;
|
|
130
|
+
display: string;
|
|
131
|
+
flexDirection: "column";
|
|
132
|
+
alignItems: string;
|
|
133
|
+
justifyContent: string;
|
|
134
|
+
cursor: string;
|
|
135
|
+
transition: string;
|
|
136
|
+
backgroundColor: any;
|
|
137
|
+
position: "relative";
|
|
138
|
+
flex: string;
|
|
139
|
+
};
|
|
140
|
+
dateCardSelected: {
|
|
141
|
+
borderColor: any;
|
|
142
|
+
backgroundColor: any;
|
|
143
|
+
color: any;
|
|
144
|
+
};
|
|
145
|
+
dateCardWeekday: {
|
|
146
|
+
fontSize: number;
|
|
147
|
+
fontWeight: number;
|
|
148
|
+
textTransform: "uppercase";
|
|
149
|
+
marginBottom: number;
|
|
150
|
+
letterSpacing: string;
|
|
151
|
+
lineHeight: number;
|
|
152
|
+
};
|
|
153
|
+
dateCardDay: {
|
|
154
|
+
fontSize: number;
|
|
155
|
+
fontWeight: number;
|
|
156
|
+
lineHeight: number;
|
|
157
|
+
};
|
|
158
|
+
slotsContainer: {
|
|
159
|
+
marginBottom: number;
|
|
160
|
+
};
|
|
161
|
+
slotGrid: {
|
|
162
|
+
display: string;
|
|
163
|
+
gridTemplateColumns: string;
|
|
164
|
+
gap: number;
|
|
165
|
+
marginTop: number;
|
|
166
|
+
maxHeight: string;
|
|
167
|
+
overflowY: "auto";
|
|
168
|
+
paddingRight: string;
|
|
169
|
+
paddingBottom: string;
|
|
170
|
+
scrollbarWidth: "thin";
|
|
171
|
+
scrollbarColor: string;
|
|
172
|
+
};
|
|
173
|
+
slotButton: {
|
|
174
|
+
padding: string;
|
|
175
|
+
border: string;
|
|
176
|
+
borderRadius: string;
|
|
177
|
+
backgroundColor: any;
|
|
178
|
+
color: any;
|
|
179
|
+
fontSize: number;
|
|
180
|
+
fontWeight: number;
|
|
181
|
+
cursor: string;
|
|
182
|
+
transition: string;
|
|
183
|
+
minHeight: number;
|
|
184
|
+
boxShadow: string;
|
|
185
|
+
position: "relative";
|
|
186
|
+
letterSpacing: string;
|
|
187
|
+
};
|
|
188
|
+
slotButtonSelected: {
|
|
189
|
+
borderColor: any;
|
|
190
|
+
backgroundColor: any;
|
|
191
|
+
color: any;
|
|
192
|
+
boxShadow: string;
|
|
193
|
+
transform: string;
|
|
194
|
+
};
|
|
195
|
+
noSlots: {
|
|
196
|
+
textAlign: "center";
|
|
197
|
+
color: any;
|
|
198
|
+
fontSize: number;
|
|
199
|
+
marginTop: number;
|
|
200
|
+
padding: string;
|
|
201
|
+
};
|
|
202
|
+
footer: {
|
|
203
|
+
display: string;
|
|
204
|
+
gap: number;
|
|
205
|
+
marginTop: string;
|
|
206
|
+
paddingTop: number;
|
|
207
|
+
borderTop: string;
|
|
208
|
+
};
|
|
209
|
+
backButton: {
|
|
210
|
+
flex: number;
|
|
211
|
+
padding: string;
|
|
212
|
+
border: string;
|
|
213
|
+
borderRadius: string;
|
|
214
|
+
backgroundColor: any;
|
|
215
|
+
color: any;
|
|
216
|
+
fontSize: number;
|
|
217
|
+
fontWeight: number;
|
|
218
|
+
cursor: string;
|
|
219
|
+
transition: string;
|
|
220
|
+
minHeight: number;
|
|
221
|
+
};
|
|
222
|
+
nextButton: {
|
|
223
|
+
flex: number;
|
|
224
|
+
padding: string;
|
|
225
|
+
border: string;
|
|
226
|
+
borderRadius: string;
|
|
227
|
+
backgroundColor: any;
|
|
228
|
+
color: any;
|
|
229
|
+
fontSize: number;
|
|
230
|
+
fontWeight: number;
|
|
231
|
+
cursor: string;
|
|
232
|
+
transition: string;
|
|
233
|
+
minHeight: number;
|
|
234
|
+
boxShadow: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
export declare const getDesktopStyles: (theme: any, breakpoint: string) => {
|
|
238
|
+
modalWrapper: React.CSSProperties;
|
|
239
|
+
sectionCard: React.CSSProperties;
|
|
240
|
+
sectionHeader: React.CSSProperties;
|
|
241
|
+
sectionTitle: React.CSSProperties;
|
|
242
|
+
sectionBody: React.CSSProperties;
|
|
243
|
+
label: React.CSSProperties;
|
|
244
|
+
modeContainer: React.CSSProperties;
|
|
245
|
+
radioLabel: React.CSSProperties;
|
|
246
|
+
radioInput: React.CSSProperties;
|
|
247
|
+
rupee: React.CSSProperties;
|
|
248
|
+
dateTimeContainer: React.CSSProperties;
|
|
249
|
+
calendarBox: React.CSSProperties;
|
|
250
|
+
timesContainer: React.CSSProperties;
|
|
251
|
+
timesLabel: React.CSSProperties;
|
|
252
|
+
dateLabel: React.CSSProperties;
|
|
253
|
+
noSlots: React.CSSProperties;
|
|
254
|
+
slotGrid: React.CSSProperties;
|
|
255
|
+
slotButton: React.CSSProperties;
|
|
256
|
+
footer: React.CSSProperties;
|
|
257
|
+
backBtn: React.CSSProperties;
|
|
258
|
+
continueBtn: React.CSSProperties;
|
|
259
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const COUNTRY_CODES: {
|
|
2
|
+
code: string;
|
|
3
|
+
label: string;
|
|
4
|
+
}[];
|
|
5
|
+
export declare const GENDER_OPTIONS: {
|
|
6
|
+
value: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const BLOOD_GROUP_OPTIONS: {
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}[];
|
|
13
|
+
export declare const mapBloodGroupToApi: (uiBloodGroup: string) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const PHONE_MIN_LENGTH = 7;
|
|
2
|
+
export declare const PHONE_MAX_LENGTH = 15;
|
|
3
|
+
export declare const COUNTRY_CODE_REGEX: RegExp;
|
|
4
|
+
export declare const DATE_FORMAT_REGEX: RegExp;
|
|
5
|
+
export declare const MIN_BIRTH_YEAR = 1900;
|
|
6
|
+
export declare const VALID_BLOOD_GROUPS: string[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { EnquirySubmission } from "../../enquiry-form/types";
|
|
3
|
+
export interface EnquiryFormProps {
|
|
4
|
+
onSuccess?: (enquiry: EnquirySubmission) => void;
|
|
5
|
+
onError?: (error: Error) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const EnquiryForm: React.FC<EnquiryFormProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ContactInformationStepProps {
|
|
3
|
+
patientName: string;
|
|
4
|
+
patientEmail: string;
|
|
5
|
+
countryCode: string;
|
|
6
|
+
patientPhone: string;
|
|
7
|
+
onNameChange: (value: string) => void;
|
|
8
|
+
onEmailChange: (value: string) => void;
|
|
9
|
+
onCountryCodeChange: (value: string) => void;
|
|
10
|
+
onPhoneChange: (value: string) => void;
|
|
11
|
+
onNext: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const ContactInformationStep: React.FC<ContactInformationStepProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ContactPreferenceStepProps {
|
|
3
|
+
preferredContactMethod: "PHONE" | "EMAIL" | "BOTH";
|
|
4
|
+
onContactMethodChange: (method: "PHONE" | "EMAIL" | "BOTH") => void;
|
|
5
|
+
onBack: () => void;
|
|
6
|
+
onSubmit: () => void;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const ContactPreferenceStep: React.FC<ContactPreferenceStepProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface InquiryDetailsStepProps {
|
|
3
|
+
inquirySubject: string;
|
|
4
|
+
inquiryMessage: string;
|
|
5
|
+
onSubjectChange: (value: string) => void;
|
|
6
|
+
onMessageChange: (value: string) => void;
|
|
7
|
+
onBack: () => void;
|
|
8
|
+
onNext: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const InquiryDetailsStep: React.FC<InquiryDetailsStepProps>;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from "./appointment-booking";
|
|
2
|
+
export * from "./enquiry-form";
|
|
3
|
+
export * from "./shared";
|
|
4
|
+
export * from "./types";
|
|
5
|
+
export * from "./constants";
|
|
6
|
+
export * from "./utils";
|
|
7
|
+
export * from "./styles";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ConfirmationCheck: React.FC;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ConsultationTypeIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DateTimeIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MapPinIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PaymentMethodIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UserIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { Check } from "./Check";
|
|
2
|
+
export { ChevronDownIcon } from "./ChevronDownIcon";
|
|
3
|
+
export { default as ChevronLeft } from "./ChevronLeft";
|
|
4
|
+
export { default as ChevronRight } from "./ChevronRight";
|
|
5
|
+
export { CloseIcon } from "./CloseIcon";
|
|
6
|
+
export { ConfirmationCheck } from "./ConfirmationCheck";
|
|
7
|
+
export { ConsultationTypeIcon } from "./ConsultationType";
|
|
8
|
+
export { DateTimeIcon } from "./Date&TimeIcon";
|
|
9
|
+
export { MapPinIcon } from "./MapIcon";
|
|
10
|
+
export { default as MedosLogo } from "./MedosLogo";
|
|
11
|
+
export { PaymentMethodIcon } from "./PaymentMethodIcon";
|
|
12
|
+
export { SuccessIcon } from "./SuccessIcon";
|
|
13
|
+
export { UserIcon } from "./UserIcon";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface SelectProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
value?: string;
|
|
5
|
+
onValueChange?: (value: string) => void;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface SelectTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
error?: boolean;
|
|
13
|
+
}
|
|
14
|
+
interface SelectValueProps {
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
}
|
|
17
|
+
interface SelectContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
interface SelectItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
value: string;
|
|
24
|
+
className?: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
interface BaseComponentProps {
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const Select: React.FC<SelectProps>;
|
|
32
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<SelectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
declare const SelectValue: React.FC<SelectValueProps>;
|
|
34
|
+
declare const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
36
|
+
declare const SelectGroup: React.FC<BaseComponentProps>;
|
|
37
|
+
declare const SelectLabel: React.FC<BaseComponentProps>;
|
|
38
|
+
declare const SelectSeparator: React.FC<{
|
|
39
|
+
className?: string;
|
|
40
|
+
}>;
|
|
41
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { getContainerStyles, getButtonStyles, getPhoneVerifyStyles, getPatientDetailsStyles, getSuccessStyles, CONTAINER_STYLES, BUTTON_STYLES, PHONE_VERIFY_STYLES, PATIENT_DETAILS_STYLES, SUCCESS_STYLES, } from "../theme-styles";
|
|
2
|
+
export { getMobileStyles, getDesktopStyles, } from "../appointment-booking/appointment-modal-styles";
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const CONTAINER_STYLES: Record<string, React.CSSProperties>;
|
|
3
|
-
export declare const BUTTON_STYLES: Record<string, React.CSSProperties>;
|
|
4
|
-
export declare const PHONE_VERIFY_STYLES: Record<string, React.CSSProperties>;
|
|
5
|
-
export declare const PATIENT_DETAILS_STYLES: Record<string, React.CSSProperties>;
|
|
6
|
-
export declare const SUCCESS_STYLES: Record<string, React.CSSProperties>;
|
|
1
|
+
export * from "./styles";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { MedosTheme } from "../core/theme/types";
|
|
3
|
-
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
3
|
+
import { Breakpoint } from "../core/theme/responsive";
|
|
4
|
+
export declare function getContainerStyles(theme: MedosTheme, prefix?: string, breakpoint?: Breakpoint): Record<string, React.CSSProperties>;
|
|
5
|
+
export declare function getButtonStyles(theme: MedosTheme, prefix?: string, breakpoint?: Breakpoint): Record<string, React.CSSProperties>;
|
|
6
|
+
export declare function getPhoneVerifyStyles(theme: MedosTheme, prefix?: string, breakpoint?: Breakpoint): Record<string, React.CSSProperties>;
|
|
7
|
+
export declare function getPatientDetailsStyles(theme: MedosTheme, prefix?: string, breakpoint?: Breakpoint): Record<string, React.CSSProperties>;
|
|
7
8
|
export declare function getSuccessStyles(theme: MedosTheme, prefix?: string): Record<string, React.CSSProperties>;
|
|
8
9
|
export declare const CONTAINER_STYLES: Record<string, React.CSSProperties>;
|
|
9
10
|
export declare const BUTTON_STYLES: Record<string, React.CSSProperties>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type { AppointmentState, AppointmentAction, Patient, SessionPack, AvailablePackage, BookingOptionType, } from "../appointment-booking/types";
|
|
3
|
+
export { INITIAL_STATE } from "../appointment-booking/types";
|
|
4
|
+
export type PhoneVerificationStepProps = {
|
|
5
|
+
state: any;
|
|
6
|
+
dispatch: React.Dispatch<any>;
|
|
7
|
+
onSendOtp: () => Promise<void>;
|
|
8
|
+
onVerifyOtp: () => Promise<void>;
|
|
9
|
+
onBack: () => void;
|
|
10
|
+
onContinue: () => void;
|
|
11
|
+
};
|
|
12
|
+
export type PatientDetailsStepProps = {
|
|
13
|
+
state: any;
|
|
14
|
+
dispatch: React.Dispatch<any>;
|
|
15
|
+
onBack: () => void;
|
|
16
|
+
onSubmit: () => Promise<void>;
|
|
17
|
+
isFirstStep?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type SuccessStepProps = {
|
|
20
|
+
onReset: () => void;
|
|
21
|
+
};
|
|
22
|
+
export type PhoneInputSectionProps = {
|
|
23
|
+
countryCode: string;
|
|
24
|
+
patientPhone: string;
|
|
25
|
+
onCountryCodeChange: (code: string) => void;
|
|
26
|
+
onPhoneChange: (phone: string) => void;
|
|
27
|
+
};
|
|
28
|
+
export type OtpInputSectionProps = {
|
|
29
|
+
countryCode: string;
|
|
30
|
+
patientPhone: string;
|
|
31
|
+
otpCode: string;
|
|
32
|
+
otpVerified: boolean;
|
|
33
|
+
onOtpChange: (code: string) => void;
|
|
34
|
+
};
|
|
35
|
+
export type PatientInfoSectionProps = {
|
|
36
|
+
state: any;
|
|
37
|
+
dispatch: React.Dispatch<any>;
|
|
38
|
+
};
|
|
39
|
+
export type AddressInfoSectionProps = {
|
|
40
|
+
state: any;
|
|
41
|
+
dispatch: React.Dispatch<any>;
|
|
42
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface BaseComponentProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
}
|
|
6
|
+
export interface BaseFormProps {
|
|
7
|
+
onSubmit?: () => void | Promise<void>;
|
|
8
|
+
onBack?: () => void;
|
|
9
|
+
onNext?: () => void;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
error?: string | null;
|
|
12
|
+
}
|
|
13
|
+
export interface BaseStepProps extends BaseFormProps {
|
|
14
|
+
onContinue?: () => void;
|
|
15
|
+
onReset?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export interface SelectOption {
|
|
18
|
+
value: string;
|
|
19
|
+
label: string;
|
|
20
|
+
}
|
|
21
|
+
export interface CountryCodeOption {
|
|
22
|
+
code: string;
|
|
23
|
+
label: string;
|
|
24
|
+
}
|