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.
Files changed (265) hide show
  1. package/dist/client/MedosClient.d.ts +1 -0
  2. package/dist/client/MedosClient.js +8 -1
  3. package/dist/components/AppointmentCalender.js +19 -22
  4. package/dist/components/AppointmentConfirmationStep.d.ts +1 -0
  5. package/dist/components/AppointmentConfirmationStep.js +34 -42
  6. package/dist/components/AppointmentDateTimeModal.d.ts +1 -0
  7. package/dist/components/AppointmentDateTimeModal.js +201 -168
  8. package/dist/components/AppointmentSummaryStep.d.ts +12 -0
  9. package/dist/components/AppointmentSummaryStep.js +168 -0
  10. package/dist/components/BookingOptionStep.d.ts +14 -0
  11. package/dist/components/BookingOptionStep.js +346 -0
  12. package/dist/components/ContactInformationStep.js +10 -4
  13. package/dist/components/ContactPreferenceStep.js +10 -1
  14. package/dist/components/DoctorSelectModal.js +105 -59
  15. package/dist/components/EnquiryForm.js +81 -69
  16. package/dist/components/Icons/CloseIcon.d.ts +9 -0
  17. package/dist/components/Icons/CloseIcon.js +5 -0
  18. package/dist/components/InquiryDetailsStep.js +5 -1
  19. package/dist/components/PatientDetailsStep.js +17 -12
  20. package/dist/components/PatientSelectionStep.d.ts +12 -0
  21. package/dist/components/PatientSelectionStep.js +254 -0
  22. package/dist/components/PhoneVerificationStep.js +1 -1
  23. package/dist/components/SuccessStep.js +1 -1
  24. package/dist/components/appointment-booking/AppointmentCalender.js +145 -67
  25. package/dist/components/appointment-booking/appointment-modal-styles.d.ts +272 -0
  26. package/dist/components/appointment-booking/appointment-modal-styles.js +419 -0
  27. package/dist/components/appointment-booking/components/AppointmentConfirmationStep.d.ts +28 -0
  28. package/dist/components/appointment-booking/components/AppointmentConfirmationStep.js +107 -0
  29. package/dist/components/appointment-booking/components/AppointmentDateTimeModal.d.ts +18 -0
  30. package/dist/components/appointment-booking/components/AppointmentDateTimeModal.js +306 -0
  31. package/dist/components/appointment-booking/components/AppointmentSummaryStep.d.ts +12 -0
  32. package/dist/components/appointment-booking/components/AppointmentSummaryStep.js +194 -0
  33. package/dist/components/appointment-booking/components/BookingOptionStep.d.ts +14 -0
  34. package/dist/components/appointment-booking/components/BookingOptionStep.js +350 -0
  35. package/dist/components/appointment-booking/components/DoctorSelectModal.d.ts +14 -0
  36. package/dist/components/appointment-booking/components/DoctorSelectModal.js +213 -0
  37. package/dist/components/appointment-booking/components/PatientDetailsStep.d.ts +3 -0
  38. package/dist/components/appointment-booking/components/PatientDetailsStep.js +96 -0
  39. package/dist/components/appointment-booking/components/PatientSelectionStep.d.ts +12 -0
  40. package/dist/components/appointment-booking/components/PatientSelectionStep.js +254 -0
  41. package/dist/components/appointment-booking/components/PhoneVerificationStep.d.ts +3 -0
  42. package/dist/components/appointment-booking/components/PhoneVerificationStep.js +49 -0
  43. package/dist/components/appointment-booking/components/SuccessStep.d.ts +5 -0
  44. package/dist/components/appointment-booking/components/SuccessStep.js +9 -0
  45. package/dist/components/appointment-booking/components/index.d.ts +9 -0
  46. package/dist/components/appointment-booking/components/index.js +9 -0
  47. package/dist/components/appointment-booking/hooks/useAppointmentFlow.d.ts +0 -1
  48. package/dist/components/appointment-booking/hooks/useAppointmentFlow.js +111 -25
  49. package/dist/components/appointment-booking/hooks/useAppointmentState.js +32 -0
  50. package/dist/components/appointment-booking/hooks/useInitializeAddresses.js +0 -1
  51. package/dist/components/appointment-booking/index.d.ts +2 -4
  52. package/dist/components/appointment-booking/index.js +2 -2
  53. package/dist/components/appointment-booking/types.d.ts +167 -0
  54. package/dist/components/appointment-booking/types.js +16 -0
  55. package/dist/components/appointment-modal-styles.d.ts +259 -0
  56. package/dist/components/appointment-modal-styles.js +395 -0
  57. package/dist/components/constant.d.ts +2 -0
  58. package/dist/components/constant.js +15 -0
  59. package/dist/components/constants/constant.d.ts +2 -0
  60. package/dist/components/constants/constant.js +15 -0
  61. package/dist/components/constants/index.d.ts +3 -0
  62. package/dist/components/constants/index.js +24 -0
  63. package/dist/components/constants/options.d.ts +13 -0
  64. package/dist/components/constants/options.js +35 -0
  65. package/dist/components/constants/validation.d.ts +6 -0
  66. package/dist/components/constants/validation.js +16 -0
  67. package/dist/components/custom-calendar.js +20 -11
  68. package/dist/components/enquiry-form/EnquiryForm.d.ts +7 -0
  69. package/dist/components/enquiry-form/EnquiryForm.js +238 -0
  70. package/dist/components/enquiry-form/components/ContactInformationStep.d.ts +13 -0
  71. package/dist/components/enquiry-form/components/ContactInformationStep.js +21 -0
  72. package/dist/components/enquiry-form/components/ContactPreferenceStep.d.ts +9 -0
  73. package/dist/components/enquiry-form/components/ContactPreferenceStep.js +20 -0
  74. package/dist/components/enquiry-form/components/InquiryDetailsStep.d.ts +10 -0
  75. package/dist/components/enquiry-form/components/InquiryDetailsStep.js +20 -0
  76. package/dist/components/enquiry-form/components/index.d.ts +3 -0
  77. package/dist/components/enquiry-form/components/index.js +3 -0
  78. package/dist/components/enquiry-form/index.d.ts +2 -0
  79. package/dist/components/enquiry-form/index.js +2 -0
  80. package/dist/components/index.d.ts +7 -0
  81. package/dist/components/index.js +7 -0
  82. package/dist/components/shared/icons/Check.d.ts +6 -0
  83. package/dist/components/shared/icons/Check.js +2 -0
  84. package/dist/components/shared/icons/ChevronDownIcon.d.ts +4 -0
  85. package/dist/components/shared/icons/ChevronDownIcon.js +2 -0
  86. package/dist/components/shared/icons/ChevronLeft.d.ts +3 -0
  87. package/dist/components/shared/icons/ChevronLeft.js +3 -0
  88. package/dist/components/shared/icons/ChevronRight.d.ts +3 -0
  89. package/dist/components/shared/icons/ChevronRight.js +3 -0
  90. package/dist/components/shared/icons/CloseIcon.d.ts +9 -0
  91. package/dist/components/shared/icons/CloseIcon.js +5 -0
  92. package/dist/components/shared/icons/ConfirmationCheck.d.ts +1 -0
  93. package/dist/components/shared/icons/ConfirmationCheck.js +9 -0
  94. package/dist/components/shared/icons/ConsultationType.d.ts +1 -0
  95. package/dist/components/shared/icons/ConsultationType.js +2 -0
  96. package/dist/components/shared/icons/Date&TimeIcon.d.ts +1 -0
  97. package/dist/components/shared/icons/Date&TimeIcon.js +2 -0
  98. package/dist/components/shared/icons/MapIcon.d.ts +1 -0
  99. package/dist/components/shared/icons/MapIcon.js +2 -0
  100. package/dist/components/shared/icons/MedosLogo.d.ts +3 -0
  101. package/dist/components/shared/icons/MedosLogo.js +3 -0
  102. package/dist/components/shared/icons/PaymentMethodIcon.d.ts +1 -0
  103. package/dist/components/shared/icons/PaymentMethodIcon.js +2 -0
  104. package/dist/components/shared/icons/SuccessIcon.d.ts +8 -0
  105. package/dist/components/shared/icons/SuccessIcon.js +14 -0
  106. package/dist/components/shared/icons/UserIcon.d.ts +1 -0
  107. package/dist/components/shared/icons/UserIcon.js +2 -0
  108. package/dist/components/shared/icons/index.d.ts +13 -0
  109. package/dist/components/shared/icons/index.js +13 -0
  110. package/dist/components/shared/index.d.ts +2 -0
  111. package/dist/components/shared/index.js +2 -0
  112. package/dist/components/shared/ui/Calendar.d.ts +5 -0
  113. package/dist/components/shared/ui/Calendar.js +167 -0
  114. package/dist/components/shared/ui/SelectDropdown.d.ts +41 -0
  115. package/dist/components/shared/ui/SelectDropdown.js +301 -0
  116. package/dist/components/shared/ui/index.d.ts +2 -0
  117. package/dist/components/shared/ui/index.js +2 -0
  118. package/dist/components/styles/appointment.d.ts +4 -0
  119. package/dist/components/styles/appointment.js +220 -0
  120. package/dist/components/styles/enquiry.d.ts +2 -0
  121. package/dist/components/styles/enquiry.js +3 -0
  122. package/dist/components/styles/index.d.ts +2 -0
  123. package/dist/components/styles/index.js +2 -0
  124. package/dist/components/styles/shared.d.ts +3 -0
  125. package/dist/components/styles/shared.js +78 -0
  126. package/dist/components/styles.d.ts +1 -6
  127. package/dist/components/styles.js +1 -257
  128. package/dist/components/theme-styles.d.ts +5 -4
  129. package/dist/components/theme-styles.js +239 -125
  130. package/dist/components/types/appointment.d.ts +42 -0
  131. package/dist/components/types/appointment.js +1 -0
  132. package/dist/components/types/common.d.ts +24 -0
  133. package/dist/components/types/common.js +1 -0
  134. package/dist/components/types/enquiry.d.ts +59 -0
  135. package/dist/components/types/enquiry.js +1 -0
  136. package/dist/components/types/index.d.ts +4 -0
  137. package/dist/components/types/index.js +4 -0
  138. package/dist/components/types.d.ts +1 -52
  139. package/dist/components/types.js +1 -23
  140. package/dist/components/utils/date.d.ts +4 -0
  141. package/dist/components/utils/date.js +65 -0
  142. package/dist/components/utils/formatting.d.ts +4 -0
  143. package/dist/components/utils/formatting.js +9 -0
  144. package/dist/components/utils/index.d.ts +3 -0
  145. package/dist/components/utils/index.js +3 -0
  146. package/dist/components/utils/validation.d.ts +4 -0
  147. package/dist/components/utils/validation.js +37 -0
  148. package/dist/components/utils.d.ts +1 -5
  149. package/dist/components/utils.js +1 -15
  150. package/dist/components/validation.d.ts +1 -2
  151. package/dist/components/validation.js +1 -7
  152. package/dist/constants/index.d.ts +1 -1
  153. package/dist/constants/index.js +1 -1
  154. package/dist/core/theme/index.d.ts +1 -0
  155. package/dist/core/theme/index.js +1 -0
  156. package/dist/core/theme/responsive.d.ts +15 -0
  157. package/dist/core/theme/responsive.js +113 -0
  158. package/dist/core/theme/themes.js +16 -4
  159. package/dist/core/theme/types.d.ts +8 -0
  160. package/dist/index.d.ts +4 -2
  161. package/dist/index.js +2 -1
  162. package/dist/react/ThemeProvider.d.ts +2 -1
  163. package/dist/react/ThemeProvider.js +49 -10
  164. package/dist/react/index.d.ts +3 -3
  165. package/dist/react/index.js +1 -1
  166. package/dist/services/AppointmentService.d.ts +80 -2
  167. package/dist/services/AppointmentService.js +131 -5
  168. package/dist/services/AuthService.js +1 -1
  169. package/dist/services/WorkspaceService.d.ts +58 -3
  170. package/dist/services/WorkspaceService.js +10 -1
  171. package/dist/vanilla/AppointmentCalendarWidget.d.ts +17 -7
  172. package/dist/vanilla/AppointmentCalendarWidget.js +1401 -380
  173. package/dist/vanilla/EnquiryFormWidget.d.ts +1 -0
  174. package/dist/vanilla/EnquiryFormWidget.js +25 -43
  175. package/dist/vanilla/client/MedosClient.d.ts +1 -0
  176. package/dist/vanilla/components/AppointmentConfirmationStep.d.ts +1 -0
  177. package/dist/vanilla/components/AppointmentDateTimeModal.d.ts +1 -0
  178. package/dist/vanilla/components/AppointmentSummaryStep.d.ts +12 -0
  179. package/dist/vanilla/components/BookingOptionStep.d.ts +14 -0
  180. package/dist/vanilla/components/Icons/CloseIcon.d.ts +9 -0
  181. package/dist/vanilla/components/PatientSelectionStep.d.ts +12 -0
  182. package/dist/vanilla/components/VanillaCalendar.js +33 -18
  183. package/dist/vanilla/components/VanillaIcons.d.ts +5 -0
  184. package/dist/vanilla/components/VanillaIcons.js +92 -0
  185. package/dist/vanilla/components/VanillaSelect.d.ts +3 -0
  186. package/dist/vanilla/components/VanillaSelect.js +93 -5
  187. package/dist/vanilla/components/appointment-booking/appointment-modal-styles.d.ts +272 -0
  188. package/dist/vanilla/components/appointment-booking/components/AppointmentConfirmationStep.d.ts +28 -0
  189. package/dist/vanilla/components/appointment-booking/components/AppointmentDateTimeModal.d.ts +18 -0
  190. package/dist/vanilla/components/appointment-booking/components/AppointmentSummaryStep.d.ts +12 -0
  191. package/dist/vanilla/components/appointment-booking/components/BookingOptionStep.d.ts +14 -0
  192. package/dist/vanilla/components/appointment-booking/components/DoctorSelectModal.d.ts +14 -0
  193. package/dist/vanilla/components/appointment-booking/components/PatientDetailsStep.d.ts +3 -0
  194. package/dist/vanilla/components/appointment-booking/components/PatientSelectionStep.d.ts +12 -0
  195. package/dist/vanilla/components/appointment-booking/components/PhoneVerificationStep.d.ts +3 -0
  196. package/dist/vanilla/components/appointment-booking/components/SuccessStep.d.ts +5 -0
  197. package/dist/vanilla/components/appointment-booking/components/index.d.ts +9 -0
  198. package/dist/vanilla/components/appointment-booking/hooks/useAppointmentFlow.d.ts +0 -1
  199. package/dist/vanilla/components/appointment-booking/index.d.ts +2 -4
  200. package/dist/vanilla/components/appointment-booking/types.d.ts +167 -0
  201. package/dist/vanilla/components/appointment-modal-styles.d.ts +259 -0
  202. package/dist/vanilla/components/constant.d.ts +2 -0
  203. package/dist/vanilla/components/constants/constant.d.ts +2 -0
  204. package/dist/vanilla/components/constants/index.d.ts +3 -0
  205. package/dist/vanilla/components/constants/options.d.ts +13 -0
  206. package/dist/vanilla/components/constants/validation.d.ts +6 -0
  207. package/dist/vanilla/components/enquiry-form/EnquiryForm.d.ts +7 -0
  208. package/dist/vanilla/components/enquiry-form/components/ContactInformationStep.d.ts +13 -0
  209. package/dist/vanilla/components/enquiry-form/components/ContactPreferenceStep.d.ts +9 -0
  210. package/dist/vanilla/components/enquiry-form/components/InquiryDetailsStep.d.ts +10 -0
  211. package/dist/vanilla/components/enquiry-form/components/index.d.ts +3 -0
  212. package/dist/vanilla/components/enquiry-form/index.d.ts +2 -0
  213. package/dist/vanilla/components/index.d.ts +7 -3
  214. package/dist/vanilla/components/shared/icons/Check.d.ts +6 -0
  215. package/dist/vanilla/components/shared/icons/ChevronDownIcon.d.ts +4 -0
  216. package/dist/vanilla/components/shared/icons/ChevronLeft.d.ts +3 -0
  217. package/dist/vanilla/components/shared/icons/ChevronRight.d.ts +3 -0
  218. package/dist/vanilla/components/shared/icons/CloseIcon.d.ts +9 -0
  219. package/dist/vanilla/components/shared/icons/ConfirmationCheck.d.ts +1 -0
  220. package/dist/vanilla/components/shared/icons/ConsultationType.d.ts +1 -0
  221. package/dist/vanilla/components/shared/icons/Date&TimeIcon.d.ts +1 -0
  222. package/dist/vanilla/components/shared/icons/MapIcon.d.ts +1 -0
  223. package/dist/vanilla/components/shared/icons/MedosLogo.d.ts +3 -0
  224. package/dist/vanilla/components/shared/icons/PaymentMethodIcon.d.ts +1 -0
  225. package/dist/vanilla/components/shared/icons/SuccessIcon.d.ts +8 -0
  226. package/dist/vanilla/components/shared/icons/UserIcon.d.ts +1 -0
  227. package/dist/vanilla/components/shared/icons/index.d.ts +13 -0
  228. package/dist/vanilla/components/shared/index.d.ts +2 -0
  229. package/dist/vanilla/components/shared/ui/Calendar.d.ts +5 -0
  230. package/dist/vanilla/components/shared/ui/SelectDropdown.d.ts +41 -0
  231. package/dist/vanilla/components/shared/ui/index.d.ts +2 -0
  232. package/dist/vanilla/components/styles/appointment.d.ts +4 -0
  233. package/dist/vanilla/components/styles/enquiry.d.ts +2 -0
  234. package/dist/vanilla/components/styles/index.d.ts +2 -0
  235. package/dist/vanilla/components/styles/shared.d.ts +3 -0
  236. package/dist/vanilla/components/styles.d.ts +1 -6
  237. package/dist/vanilla/components/theme-styles.d.ts +5 -4
  238. package/dist/vanilla/components/types/appointment.d.ts +42 -0
  239. package/dist/vanilla/components/types/common.d.ts +24 -0
  240. package/dist/vanilla/components/types/enquiry.d.ts +59 -0
  241. package/dist/vanilla/components/types/index.d.ts +4 -0
  242. package/dist/vanilla/components/types.d.ts +1 -52
  243. package/dist/vanilla/components/utils/date.d.ts +4 -0
  244. package/dist/vanilla/components/utils/formatting.d.ts +4 -0
  245. package/dist/vanilla/components/utils/index.d.ts +3 -0
  246. package/dist/vanilla/components/utils/validation.d.ts +4 -0
  247. package/dist/vanilla/components/utils.d.ts +1 -5
  248. package/dist/vanilla/components/validation.d.ts +1 -2
  249. package/dist/vanilla/constants/index.d.ts +1 -1
  250. package/dist/vanilla/core/theme/index.d.ts +1 -0
  251. package/dist/vanilla/core/theme/responsive.d.ts +15 -0
  252. package/dist/vanilla/core/theme/types.d.ts +8 -0
  253. package/dist/vanilla/enquiry-widget.js +3632 -90
  254. package/dist/vanilla/index.d.ts +4 -2
  255. package/dist/vanilla/react/ThemeProvider.d.ts +2 -1
  256. package/dist/vanilla/react/index.d.ts +3 -3
  257. package/dist/vanilla/services/AppointmentService.d.ts +80 -2
  258. package/dist/vanilla/services/WorkspaceService.d.ts +58 -3
  259. package/dist/vanilla/vanilla/AppointmentCalendarWidget.d.ts +17 -7
  260. package/dist/vanilla/vanilla/EnquiryFormWidget.d.ts +1 -0
  261. package/dist/vanilla/vanilla/components/VanillaIcons.d.ts +5 -0
  262. package/dist/vanilla/vanilla/components/VanillaSelect.d.ts +3 -0
  263. package/dist/vanilla/widget.css +1045 -205
  264. package/dist/vanilla/widget.js +10365 -5737
  265. 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,395 @@
1
+ export const getMobileStyles = (theme, breakpoint) => {
2
+ const borderRadius = "12px";
3
+ const cardBorder = `1px solid ${theme.colors.border}`;
4
+ const buttonRadius = "8px";
5
+ return {
6
+ container: {
7
+ backgroundColor: theme.colors.background,
8
+ padding: "20px 16px",
9
+ maxWidth: "100%",
10
+ fontFamily: theme.typography.fontFamily,
11
+ color: theme.colors.text,
12
+ minHeight: "100vh",
13
+ boxSizing: "border-box",
14
+ },
15
+ header: { marginBottom: 24 },
16
+ title: {
17
+ fontSize: 18,
18
+ fontWeight: 600,
19
+ margin: 0,
20
+ color: theme.colors.text,
21
+ },
22
+ section: { marginBottom: 24 },
23
+ sectionTitle: {
24
+ fontSize: 15,
25
+ fontWeight: 600,
26
+ marginBottom: 12,
27
+ color: theme.colors.text,
28
+ },
29
+ required: { color: theme.colors.error, marginLeft: 4 },
30
+ modeContainer: {
31
+ display: "flex",
32
+ flexDirection: "column",
33
+ gap: 10,
34
+ },
35
+ modeOption: {
36
+ display: "flex",
37
+ alignItems: "center",
38
+ gap: 12,
39
+ padding: "14px 16px",
40
+ border: cardBorder,
41
+ borderRadius,
42
+ cursor: "pointer",
43
+ fontSize: 15,
44
+ transition: "all 0.2s ease",
45
+ backgroundColor: theme.colors.surface,
46
+ },
47
+ radioInput: { width: 18, height: 18, accentColor: theme.colors.primary },
48
+ chargeAmount: { fontSize: 18, fontWeight: 600, color: theme.colors.text },
49
+ paymentOption: {
50
+ padding: "14px 16px",
51
+ border: cardBorder,
52
+ borderRadius,
53
+ fontSize: 15,
54
+ color: theme.colors.textSecondary,
55
+ backgroundColor: theme.colors.surface,
56
+ },
57
+ dateSection: {
58
+ marginBottom: 24,
59
+ padding: "16px",
60
+ backgroundColor: theme.colors.backgroundSecondary,
61
+ borderRadius,
62
+ border: cardBorder,
63
+ },
64
+ dateSectionHeader: { marginBottom: 12 },
65
+ dateSectionTitle: {
66
+ fontSize: 12,
67
+ fontWeight: 600,
68
+ color: theme.colors.textSecondary,
69
+ margin: 0,
70
+ letterSpacing: "0.5px",
71
+ textTransform: "uppercase",
72
+ },
73
+ monthNavigationContainer: {
74
+ display: "flex",
75
+ alignItems: "center",
76
+ justifyContent: "space-between",
77
+ marginBottom: 16,
78
+ position: "relative",
79
+ },
80
+ monthYearDisplay: {
81
+ fontSize: 16,
82
+ fontWeight: 600,
83
+ color: theme.colors.text,
84
+ textAlign: "center",
85
+ flex: 1,
86
+ },
87
+ navButton: {
88
+ background: "none",
89
+ border: "none",
90
+ color: theme.colors.text,
91
+ cursor: "pointer",
92
+ padding: 8,
93
+ borderRadius: buttonRadius,
94
+ display: "flex",
95
+ alignItems: "center",
96
+ justifyContent: "center",
97
+ transition: "all 0.2s ease",
98
+ minWidth: 36,
99
+ minHeight: 36,
100
+ flexShrink: 0,
101
+ },
102
+ dateCardsContainer: {
103
+ display: "flex",
104
+ justifyContent: "space-around",
105
+ alignItems: "center",
106
+ gap: 8,
107
+ width: "100%",
108
+ maxWidth: "100%",
109
+ overflow: "hidden",
110
+ },
111
+ dateCard: {
112
+ width: 56,
113
+ height: 56,
114
+ border: `2px solid ${theme.colors.border}`,
115
+ borderRadius: "50%",
116
+ display: "flex",
117
+ flexDirection: "column",
118
+ alignItems: "center",
119
+ justifyContent: "center",
120
+ cursor: "pointer",
121
+ transition: "all 0.2s ease",
122
+ backgroundColor: theme.colors.surface,
123
+ position: "relative",
124
+ flex: "0 0 auto",
125
+ },
126
+ dateCardSelected: {
127
+ borderColor: theme.colors.primary,
128
+ backgroundColor: theme.colors.primary,
129
+ color: theme.colors.textOnPrimary,
130
+ },
131
+ dateCardWeekday: {
132
+ fontSize: 9,
133
+ fontWeight: 500,
134
+ textTransform: "uppercase",
135
+ marginBottom: 2,
136
+ letterSpacing: "0.3px",
137
+ lineHeight: 1,
138
+ },
139
+ dateCardDay: { fontSize: 14, fontWeight: 700, lineHeight: 1 },
140
+ slotsContainer: { marginBottom: 24 },
141
+ slotGrid: {
142
+ display: "grid",
143
+ gridTemplateColumns: "repeat(2, 1fr)",
144
+ gap: 12,
145
+ marginTop: 12,
146
+ maxHeight: "280px",
147
+ overflowY: "auto",
148
+ paddingRight: "8px",
149
+ paddingBottom: "4px",
150
+ scrollbarWidth: "thin",
151
+ scrollbarColor: `${theme.colors.primary}40 ${theme.colors.surface}`,
152
+ },
153
+ slotButton: {
154
+ padding: "14px 10px",
155
+ border: `2px solid ${theme.colors.border}`,
156
+ borderRadius: buttonRadius,
157
+ backgroundColor: theme.colors.surface,
158
+ color: theme.colors.text,
159
+ fontSize: 13,
160
+ fontWeight: 600,
161
+ cursor: "pointer",
162
+ transition: "all 0.25s cubic-bezier(0.4, 0, 0.2, 1)",
163
+ minHeight: 48,
164
+ boxShadow: "0 1px 2px rgba(0, 0, 0, 0.03)",
165
+ position: "relative",
166
+ letterSpacing: "0.3px",
167
+ },
168
+ slotButtonSelected: {
169
+ borderColor: theme.colors.primary,
170
+ backgroundColor: theme.colors.primary,
171
+ color: theme.colors.textOnPrimary,
172
+ boxShadow: `0 4px 12px ${theme.colors.primary}30, 0 2px 4px ${theme.colors.primary}20`,
173
+ transform: "translateY(-1px)",
174
+ },
175
+ noSlots: {
176
+ textAlign: "center",
177
+ color: theme.colors.textSecondary,
178
+ fontSize: 14,
179
+ marginTop: 16,
180
+ padding: "20px",
181
+ },
182
+ footer: {
183
+ display: "flex",
184
+ gap: 12,
185
+ marginTop: "auto",
186
+ paddingTop: 20,
187
+ borderTop: cardBorder,
188
+ },
189
+ backButton: {
190
+ flex: 1,
191
+ padding: "12px 20px",
192
+ border: cardBorder,
193
+ borderRadius: buttonRadius,
194
+ backgroundColor: theme.colors.surface,
195
+ color: theme.colors.text,
196
+ fontSize: 14,
197
+ fontWeight: 600,
198
+ cursor: "pointer",
199
+ transition: "all 0.2s ease",
200
+ minHeight: 44,
201
+ },
202
+ nextButton: {
203
+ flex: 1,
204
+ padding: "12px 20px",
205
+ border: "none",
206
+ borderRadius: buttonRadius,
207
+ backgroundColor: theme.colors.secondary,
208
+ color: theme.colors.textOnSecondary,
209
+ fontSize: 14,
210
+ fontWeight: 600,
211
+ cursor: "pointer",
212
+ transition: "all 0.2s ease",
213
+ minHeight: 44,
214
+ boxShadow: "0 1px 2px rgba(0, 0, 0, 0.05)",
215
+ },
216
+ };
217
+ };
218
+ export const getDesktopStyles = (theme, breakpoint) => {
219
+ const borderRadius = "12px";
220
+ const buttonRadius = "8px";
221
+ const cardBorder = `1px solid ${theme.colors.border}`;
222
+ return {
223
+ modalWrapper: {
224
+ backgroundColor: theme.colors.background,
225
+ borderRadius,
226
+ padding: "24px",
227
+ maxWidth: 800,
228
+ margin: "0 auto",
229
+ fontFamily: theme.typography.fontFamily,
230
+ color: theme.colors.text,
231
+ boxSizing: "border-box",
232
+ },
233
+ sectionCard: {
234
+ border: cardBorder,
235
+ borderRadius,
236
+ marginBottom: 20,
237
+ position: "relative",
238
+ overflow: "hidden",
239
+ boxShadow: "0 1px 3px rgba(0, 0, 0, 0.04)",
240
+ },
241
+ sectionHeader: {
242
+ background: theme.colors.primary,
243
+ color: theme.colors.textOnPrimary,
244
+ borderBottom: cardBorder,
245
+ padding: "14px 20px",
246
+ display: "flex",
247
+ alignItems: "center",
248
+ gap: 10,
249
+ },
250
+ sectionTitle: { fontSize: 16, fontWeight: 600 },
251
+ sectionBody: {
252
+ padding: "20px",
253
+ position: "relative",
254
+ },
255
+ label: {
256
+ fontSize: 14,
257
+ fontWeight: 500,
258
+ marginBottom: 8,
259
+ display: "block",
260
+ color: theme.colors.text,
261
+ },
262
+ modeContainer: {
263
+ display: "flex",
264
+ gap: 20,
265
+ marginTop: 8,
266
+ flexDirection: "row",
267
+ },
268
+ radioLabel: {
269
+ display: "flex",
270
+ alignItems: "center",
271
+ gap: 10,
272
+ cursor: "pointer",
273
+ fontSize: 14,
274
+ padding: "8px 16px",
275
+ borderRadius: buttonRadius,
276
+ border: cardBorder,
277
+ transition: "all 0.2s ease",
278
+ backgroundColor: theme.colors.surface,
279
+ },
280
+ radioInput: {
281
+ width: 18,
282
+ height: 18,
283
+ accentColor: theme.colors.secondary,
284
+ cursor: "pointer",
285
+ },
286
+ rupee: {
287
+ fontWeight: 600,
288
+ fontSize: 18,
289
+ color: theme.colors.text,
290
+ },
291
+ dateTimeContainer: {
292
+ display: "flex",
293
+ gap: 24,
294
+ flexDirection: "row",
295
+ alignItems: "flex-start",
296
+ },
297
+ calendarBox: {
298
+ border: cardBorder,
299
+ borderRadius,
300
+ padding: 0,
301
+ width: "320px",
302
+ minWidth: "320px",
303
+ overflow: "visible",
304
+ backgroundColor: theme.colors.surface,
305
+ },
306
+ timesContainer: {
307
+ flex: 1,
308
+ minWidth: "320px",
309
+ },
310
+ timesLabel: {
311
+ fontWeight: 600,
312
+ fontSize: 15,
313
+ color: theme.colors.text,
314
+ marginBottom: 4,
315
+ },
316
+ dateLabel: {
317
+ color: theme.colors.textSecondary,
318
+ fontSize: 13,
319
+ fontWeight: 400,
320
+ },
321
+ noSlots: {
322
+ color: theme.colors.textSecondary,
323
+ fontSize: 14,
324
+ marginTop: 12,
325
+ padding: "16px",
326
+ textAlign: "center",
327
+ backgroundColor: theme.colors.backgroundSecondary,
328
+ borderRadius: buttonRadius,
329
+ },
330
+ slotGrid: {
331
+ display: "grid",
332
+ gridTemplateColumns: "repeat(2, 1fr)",
333
+ gap: 12,
334
+ marginTop: 16,
335
+ maxHeight: "340px",
336
+ overflowY: "auto",
337
+ paddingRight: "8px",
338
+ paddingBottom: "4px",
339
+ scrollbarWidth: "thin",
340
+ scrollbarColor: `${theme.colors.secondary}40 ${theme.colors.surface}`,
341
+ },
342
+ slotButton: {
343
+ borderRadius: buttonRadius,
344
+ padding: "12px 16px",
345
+ border: `2px solid ${theme.colors.border}`,
346
+ fontSize: 14,
347
+ fontWeight: 600,
348
+ cursor: "pointer",
349
+ transition: "all 0.25s cubic-bezier(0.4, 0, 0.2, 1)",
350
+ minHeight: 48,
351
+ backgroundColor: theme.colors.surface,
352
+ boxShadow: "0 1px 3px rgba(0, 0, 0, 0.04)",
353
+ position: "relative",
354
+ letterSpacing: "0.3px",
355
+ textAlign: "center",
356
+ },
357
+ footer: {
358
+ display: "flex",
359
+ justifyContent: "flex-end",
360
+ alignItems: "center",
361
+ marginTop: 24,
362
+ paddingTop: 20,
363
+ gap: 12,
364
+ flexDirection: "row",
365
+ borderTop: cardBorder,
366
+ },
367
+ backBtn: {
368
+ border: cardBorder,
369
+ background: theme.colors.surface,
370
+ color: theme.colors.text,
371
+ borderRadius: buttonRadius,
372
+ fontWeight: 600,
373
+ padding: "10px 20px",
374
+ cursor: "pointer",
375
+ width: "auto",
376
+ minHeight: 40,
377
+ fontSize: 14,
378
+ transition: "all 0.2s ease",
379
+ },
380
+ continueBtn: {
381
+ background: theme.colors.secondary,
382
+ color: theme.colors.textOnSecondary,
383
+ border: "none",
384
+ borderRadius: buttonRadius,
385
+ fontWeight: 600,
386
+ padding: "10px 20px",
387
+ cursor: "pointer",
388
+ width: "auto",
389
+ minHeight: 40,
390
+ fontSize: 14,
391
+ transition: "all 0.2s ease",
392
+ boxShadow: "0 1px 2px rgba(0, 0, 0, 0.05)",
393
+ },
394
+ };
395
+ };
@@ -0,0 +1,2 @@
1
+ export declare const MONTHS: string[];
2
+ export declare const WEEKDAYS: string[];
@@ -0,0 +1,15 @@
1
+ export const MONTHS = [
2
+ "January",
3
+ "February",
4
+ "March",
5
+ "April",
6
+ "May",
7
+ "June",
8
+ "July",
9
+ "August",
10
+ "September",
11
+ "October",
12
+ "November",
13
+ "December",
14
+ ];
15
+ export const WEEKDAYS = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
@@ -0,0 +1,2 @@
1
+ export declare const MONTHS: string[];
2
+ export declare const WEEKDAYS: string[];
@@ -0,0 +1,15 @@
1
+ export const MONTHS = [
2
+ "January",
3
+ "February",
4
+ "March",
5
+ "April",
6
+ "May",
7
+ "June",
8
+ "July",
9
+ "August",
10
+ "September",
11
+ "October",
12
+ "November",
13
+ "December",
14
+ ];
15
+ export const WEEKDAYS = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
@@ -0,0 +1,3 @@
1
+ export declare const API_BASE_URL = "https://api.medos.one/v1";
2
+ export declare const MONTHS: string[];
3
+ export declare const WEEKDAYS: string[];