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,301 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { ChevronDownIcon, Check } from "../icons";
4
+ const cn = (...classes) => {
5
+ return classes.filter(Boolean).join(" ");
6
+ };
7
+ if (typeof document !== "undefined") {
8
+ const styleId = "custom-select-styles";
9
+ if (!document.getElementById(styleId)) {
10
+ const styleElement = document.createElement("style");
11
+ styleElement.id = styleId;
12
+ styleElement.innerHTML = `
13
+ /* Container */
14
+ .select-container {
15
+ position: relative;
16
+ display: inline-block;
17
+ width: 100%;
18
+ }
19
+
20
+ /* Trigger Button */
21
+ .select-trigger {
22
+ display: flex;
23
+ height: 40px;
24
+ width: 100%;
25
+ align-items: center;
26
+ justify-content: space-between;
27
+ white-space: nowrap;
28
+ border-radius: 6px;
29
+ border: 1px solid #e2e8f0;
30
+ background-color: #fff;
31
+ padding: 8px 12px;
32
+ font-size: 14px;
33
+ line-height: 1.5;
34
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
35
+ transition: all 0.15s ease-in-out;
36
+ cursor: pointer;
37
+ outline: none;
38
+ font-family: inherit;
39
+ text-align: left;
40
+ }
41
+
42
+ .select-trigger:hover:not(:disabled) {
43
+ background-color: #f8fafc;
44
+ border-color: #cbd5e1;
45
+ }
46
+
47
+ .select-trigger:focus:not(:disabled) {
48
+ border-color: #94a3b8;
49
+ box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.2);
50
+ }
51
+
52
+ .select-trigger:disabled {
53
+ cursor: not-allowed;
54
+ opacity: 0.5;
55
+ background-color: #f9fafb;
56
+ }
57
+
58
+ .select-trigger-error {
59
+ border-color: #ef4444;
60
+ }
61
+
62
+ .select-trigger-error:focus {
63
+ border-color: #ef4444;
64
+ box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
65
+ }
66
+
67
+ /* Select Value */
68
+ .select-value {
69
+ flex: 1;
70
+ overflow: hidden;
71
+ text-overflow: ellipsis;
72
+ white-space: nowrap;
73
+ color: #1e293b;
74
+ }
75
+
76
+ .select-placeholder {
77
+ color: #94a3b8;
78
+ }
79
+
80
+ /* Select Icon */
81
+ .select-icon {
82
+ height: 16px;
83
+ width: 16px;
84
+ opacity: 0.5;
85
+ flex-shrink: 0;
86
+ margin-left: 8px;
87
+ transition: transform 0.2s;
88
+ }
89
+
90
+ .select-trigger[aria-expanded="true"] .select-icon {
91
+ transform: rotate(180deg);
92
+ }
93
+
94
+ .select-icon-error {
95
+ color: #ef4444;
96
+ }
97
+
98
+ /* Content Dropdown */
99
+ .select-content {
100
+ position: absolute;
101
+ top: 100%;
102
+ left: 0;
103
+ right: 0;
104
+ z-index: 1050;
105
+ margin-top: 4px;
106
+ overflow: hidden;
107
+ border-radius: 6px;
108
+ border: 1px solid #e2e8f0;
109
+ background-color: #ffffff;
110
+ color: #1e293b;
111
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
112
+ animation: select-show 0.15s ease-out;
113
+ }
114
+
115
+ @keyframes select-show {
116
+ from {
117
+ opacity: 0;
118
+ transform: translateY(-4px);
119
+ }
120
+ to {
121
+ opacity: 1;
122
+ transform: translateY(0);
123
+ }
124
+ }
125
+
126
+ /* Viewport */
127
+ .select-viewport {
128
+ padding: 4px;
129
+ max-height: 256px;
130
+ overflow-y: auto;
131
+ }
132
+
133
+ /* Select Item */
134
+ .select-item {
135
+ position: relative;
136
+ display: flex;
137
+ width: 100%;
138
+ cursor: pointer;
139
+ user-select: none;
140
+ align-items: center;
141
+ border-radius: 4px;
142
+ padding: 8px 8px 8px 32px;
143
+ font-size: 14px;
144
+ outline: none;
145
+ transition: background-color 0.1s ease;
146
+ }
147
+
148
+ .select-item:hover:not(.select-item-disabled) {
149
+ background-color: #f1f5f9;
150
+ }
151
+
152
+ .select-item:focus {
153
+ background-color: #f1f5f9;
154
+ }
155
+
156
+ .select-item-selected {
157
+ background-color: #f3f4f6;
158
+ }
159
+
160
+ .select-item-disabled {
161
+ pointer-events: none;
162
+ opacity: 0.5;
163
+ cursor: not-allowed;
164
+ }
165
+
166
+ /* Item Indicator */
167
+ .select-item-indicator {
168
+ position: absolute;
169
+ left: 8px;
170
+ display: flex;
171
+ height: 14px;
172
+ width: 14px;
173
+ align-items: center;
174
+ justify-content: center;
175
+ }
176
+
177
+ /* Item Text */
178
+ .select-item-text {
179
+ flex: 1;
180
+ }
181
+
182
+ /* Select Group */
183
+ .select-group {
184
+ padding: 2px 0;
185
+ }
186
+
187
+ /* Select Label */
188
+ .select-label {
189
+ padding: 8px 8px 6px;
190
+ font-size: 12px;
191
+ font-weight: 600;
192
+ color: #64748b;
193
+ }
194
+
195
+ /* Select Separator */
196
+ .select-separator {
197
+ margin: 4px 0;
198
+ height: 1px;
199
+ background-color: #e2e8f0;
200
+ }
201
+
202
+ /* Scrollbar styling */
203
+ .select-viewport::-webkit-scrollbar {
204
+ width: 8px;
205
+ }
206
+
207
+ .select-viewport::-webkit-scrollbar-track {
208
+ background: #f1f5f9;
209
+ border-radius: 4px;
210
+ }
211
+
212
+ .select-viewport::-webkit-scrollbar-thumb {
213
+ background: #cbd5e1;
214
+ border-radius: 4px;
215
+ }
216
+
217
+ .select-viewport::-webkit-scrollbar-thumb:hover {
218
+ background: #94a3b8;
219
+ }
220
+ `;
221
+ document.head.appendChild(styleElement);
222
+ }
223
+ }
224
+ const SelectContext = React.createContext(undefined);
225
+ const useSelectContext = () => {
226
+ const context = React.useContext(SelectContext);
227
+ if (!context) {
228
+ throw new Error("Select components must be used within a Select");
229
+ }
230
+ return context;
231
+ };
232
+ const Select = ({ children, value, onValueChange, defaultValue, disabled = false, }) => {
233
+ const [isOpen, setIsOpen] = React.useState(false);
234
+ const [selectedValue, setSelectedValue] = React.useState(value || defaultValue || "");
235
+ const [selectedLabel, setSelectedLabel] = React.useState("");
236
+ const triggerRef = React.useRef(null);
237
+ const contentRef = React.useRef(null);
238
+ React.useEffect(() => {
239
+ if (value !== undefined) {
240
+ setSelectedValue(value);
241
+ }
242
+ }, [value]);
243
+ React.useEffect(() => {
244
+ const handleClickOutside = (event) => {
245
+ if (triggerRef.current &&
246
+ contentRef.current &&
247
+ !triggerRef.current.contains(event.target) &&
248
+ !contentRef.current.contains(event.target)) {
249
+ setIsOpen(false);
250
+ }
251
+ };
252
+ if (isOpen) {
253
+ document.addEventListener("mousedown", handleClickOutside);
254
+ return () => document.removeEventListener("mousedown", handleClickOutside);
255
+ }
256
+ }, [isOpen]);
257
+ const handleSelect = (value, label) => {
258
+ setSelectedValue(value);
259
+ setSelectedLabel(label);
260
+ if (onValueChange) {
261
+ onValueChange(value);
262
+ }
263
+ setIsOpen(false);
264
+ };
265
+ return (_jsx(SelectContext.Provider, { value: {
266
+ isOpen,
267
+ setIsOpen,
268
+ selectedValue,
269
+ selectedLabel,
270
+ handleSelect,
271
+ triggerRef,
272
+ contentRef,
273
+ disabled,
274
+ }, children: _jsx("div", { className: "select-container", children: children }) }));
275
+ };
276
+ const SelectTrigger = React.forwardRef(({ children, className, error = false, ...props }, ref) => {
277
+ const { isOpen, setIsOpen, triggerRef, disabled } = useSelectContext();
278
+ return (_jsxs("button", { ref: triggerRef, type: "button", className: cn("select-trigger", error && "select-trigger-error", className), onClick: () => !disabled && setIsOpen(!isOpen), disabled: disabled, "aria-expanded": isOpen, "aria-haspopup": "listbox", ...props, children: [children, _jsx(ChevronDownIcon, { className: cn("select-icon", error && "select-icon-error") })] }));
279
+ });
280
+ SelectTrigger.displayName = "SelectTrigger";
281
+ const SelectValue = ({ placeholder = "Select...", }) => {
282
+ const { selectedLabel, selectedValue } = useSelectContext();
283
+ return (_jsx("span", { className: cn("select-value", !selectedValue && "select-placeholder"), children: selectedLabel || placeholder }));
284
+ };
285
+ const SelectContent = React.forwardRef(({ children, className, ...props }, ref) => {
286
+ const { isOpen, contentRef } = useSelectContext();
287
+ if (!isOpen)
288
+ return null;
289
+ return (_jsx("div", { ref: contentRef, className: cn("select-content", className), role: "listbox", ...props, children: _jsx("div", { className: "select-viewport", children: children }) }));
290
+ });
291
+ SelectContent.displayName = "SelectContent";
292
+ const SelectItem = React.forwardRef(({ children, value, className, disabled = false, ...props }, ref) => {
293
+ const { selectedValue, handleSelect } = useSelectContext();
294
+ const isSelected = selectedValue === value;
295
+ return (_jsxs("div", { ref: ref, className: cn("select-item", isSelected && "select-item-selected", disabled && "select-item-disabled", className), onClick: () => !disabled && handleSelect(value, children), role: "option", "aria-selected": isSelected, "data-disabled": disabled, ...props, children: [isSelected && (_jsx("span", { className: "select-item-indicator", children: _jsx(Check, {}) })), _jsx("span", { className: "select-item-text", children: children })] }));
296
+ });
297
+ SelectItem.displayName = "SelectItem";
298
+ const SelectGroup = ({ children, className }) => (_jsx("div", { className: cn("select-group", className), children: children }));
299
+ const SelectLabel = ({ children, className }) => (_jsx("div", { className: cn("select-label", className), children: children }));
300
+ const SelectSeparator = ({ className }) => (_jsx("div", { className: cn("select-separator", className) }));
301
+ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, };
@@ -0,0 +1,2 @@
1
+ export * from "./SelectDropdown";
2
+ export { CustomCalendarWithDateSelector } from "./Calendar";
@@ -0,0 +1,2 @@
1
+ export * from "./SelectDropdown";
2
+ export { CustomCalendarWithDateSelector } from "./Calendar";
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ export declare const PHONE_VERIFY_STYLES: Record<string, React.CSSProperties>;
3
+ export declare const PATIENT_DETAILS_STYLES: Record<string, React.CSSProperties>;
4
+ export declare const SUCCESS_STYLES: Record<string, React.CSSProperties>;
@@ -0,0 +1,220 @@
1
+ export const PHONE_VERIFY_STYLES = {
2
+ container: {
3
+ border: "1px solid #e5e7eb",
4
+ borderRadius: 12,
5
+ overflow: "hidden",
6
+ backgroundColor: "#fff",
7
+ boxShadow: "0 1px 3px rgba(0, 0, 0, 0.04)",
8
+ },
9
+ header: {
10
+ padding: "18px 24px",
11
+ borderBottom: "1px solid #e5e7eb",
12
+ backgroundColor: "#27903F",
13
+ color: "#fff",
14
+ },
15
+ title: {
16
+ margin: 0,
17
+ fontSize: 18,
18
+ fontWeight: 600,
19
+ color: "#fff",
20
+ },
21
+ content: { padding: "24px" },
22
+ label: {
23
+ display: "block",
24
+ fontSize: 14,
25
+ fontWeight: 500,
26
+ color: "#111827",
27
+ marginBottom: 8,
28
+ },
29
+ phoneInputContainer: { display: "flex", gap: 10 },
30
+ phoneInput: {
31
+ flex: 1,
32
+ padding: "10px 14px",
33
+ borderRadius: 8,
34
+ border: "1px solid #e5e7eb",
35
+ fontSize: 14,
36
+ outline: "none",
37
+ color: "#111827",
38
+ boxSizing: "border-box",
39
+ transition: "border-color 0.2s ease, box-shadow 0.2s ease",
40
+ minHeight: 40,
41
+ },
42
+ phoneDisplay: {
43
+ padding: "10px 14px",
44
+ background: "#f9fafb",
45
+ borderRadius: 8,
46
+ fontSize: 14,
47
+ color: "#111827",
48
+ fontWeight: 500,
49
+ border: "1px solid #e5e7eb",
50
+ },
51
+ otpInput: {
52
+ width: "100%",
53
+ padding: "10px 14px",
54
+ border: "1px solid #e5e7eb",
55
+ borderRadius: 8,
56
+ fontSize: 14,
57
+ outline: "none",
58
+ color: "#111827",
59
+ boxSizing: "border-box",
60
+ transition: "border-color 0.2s ease, box-shadow 0.2s ease",
61
+ },
62
+ otpHint: {
63
+ marginTop: 8,
64
+ fontSize: 12,
65
+ color: "#6b7280",
66
+ },
67
+ successMessage: {
68
+ marginTop: 20,
69
+ padding: 16,
70
+ borderRadius: 8,
71
+ backgroundColor: "#F6FBF6",
72
+ border: "1px solid #4E8F50",
73
+ display: "flex",
74
+ alignItems: "center",
75
+ gap: 12,
76
+ },
77
+ successIcon: { fontSize: 24, color: "#4E8F50" },
78
+ successTitle: {
79
+ fontSize: 14,
80
+ fontWeight: 600,
81
+ color: "#4E8F50",
82
+ },
83
+ successSubtitle: {
84
+ fontSize: 12,
85
+ color: "#6B7280",
86
+ marginTop: 2,
87
+ },
88
+ footer: {
89
+ padding: "16px 24px",
90
+ borderTop: "1px solid #e5e7eb",
91
+ backgroundColor: "#fff",
92
+ display: "flex",
93
+ gap: 12,
94
+ justifyContent: "flex-end",
95
+ },
96
+ };
97
+ export const PATIENT_DETAILS_STYLES = {
98
+ sectionCard: {
99
+ border: "1px solid #E5E7EB",
100
+ borderRadius: "12px",
101
+ marginBottom: "24px",
102
+ overflow: "hidden",
103
+ boxShadow: "0 1px 3px rgba(0, 0, 0, 0.04)",
104
+ },
105
+ sectionHeader: {
106
+ backgroundColor: "#27903F",
107
+ padding: "18px 24px",
108
+ display: "flex",
109
+ alignItems: "center",
110
+ gap: "12px",
111
+ borderBottom: "1px solid #E5E7EB",
112
+ color: "#fff",
113
+ },
114
+ sectionTitle: {
115
+ fontSize: "18px",
116
+ fontWeight: 600,
117
+ margin: 0,
118
+ color: "#fff",
119
+ },
120
+ sectionBody: { padding: "24px" },
121
+ gridRow: {
122
+ display: "grid",
123
+ gridTemplateColumns: "1fr 1fr",
124
+ gap: "20px",
125
+ marginTop: "20px",
126
+ },
127
+ label: {
128
+ display: "block",
129
+ fontSize: 14,
130
+ marginBottom: 8,
131
+ color: "#111827",
132
+ fontWeight: 500,
133
+ },
134
+ input: {
135
+ width: "100%",
136
+ padding: "10px 14px",
137
+ borderRadius: 8,
138
+ border: "1px solid #e5e7eb",
139
+ outline: "none",
140
+ fontSize: 14,
141
+ boxSizing: "border-box",
142
+ transition: "border-color 0.2s ease, box-shadow 0.2s ease",
143
+ minHeight: 40,
144
+ },
145
+ phoneDisplay: { display: "flex", gap: "10px" },
146
+ phoneCode: {
147
+ width: "100px",
148
+ padding: "10px 14px",
149
+ borderRadius: 8,
150
+ border: "1px solid #e5e7eb",
151
+ backgroundColor: "#F9FAFB",
152
+ fontSize: 14,
153
+ boxSizing: "border-box",
154
+ },
155
+ phoneNumber: {
156
+ flex: 1,
157
+ padding: "10px 14px",
158
+ borderRadius: 8,
159
+ border: "1px solid #e5e7eb",
160
+ backgroundColor: "#F9FAFB",
161
+ fontSize: 14,
162
+ boxSizing: "border-box",
163
+ },
164
+ };
165
+ export const SUCCESS_STYLES = {
166
+ container: {
167
+ display: "flex",
168
+ flexDirection: "column",
169
+ alignItems: "center",
170
+ padding: "32px 24px",
171
+ textAlign: "center",
172
+ },
173
+ header: {
174
+ marginBottom: "24px",
175
+ },
176
+ iconContainer: {
177
+ display: "flex",
178
+ alignItems: "center",
179
+ justifyContent: "center",
180
+ width: "72px",
181
+ height: "72px",
182
+ borderRadius: "50%",
183
+ backgroundColor: "#ecfdf5",
184
+ marginBottom: "20px",
185
+ },
186
+ detailsContainer: {
187
+ display: "flex",
188
+ flexDirection: "column",
189
+ alignItems: "center",
190
+ gap: "12px",
191
+ textAlign: "center",
192
+ },
193
+ detailsTitle: {
194
+ fontWeight: 600,
195
+ fontSize: "18px",
196
+ color: "#4E8F50",
197
+ margin: 0,
198
+ },
199
+ detailsList: {
200
+ display: "flex",
201
+ flexDirection: "column",
202
+ gap: "4px",
203
+ fontSize: "14px",
204
+ width: "100%",
205
+ maxWidth: "400px",
206
+ textAlign: "center",
207
+ color: "#374151",
208
+ },
209
+ confirmationNote: {
210
+ marginTop: "12px",
211
+ fontSize: "14px",
212
+ color: "#6B7280",
213
+ lineHeight: "1.5",
214
+ },
215
+ actionContainer: {
216
+ marginTop: "32px",
217
+ display: "flex",
218
+ justifyContent: "center",
219
+ },
220
+ };
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const ENQUIRY_FORM_STYLES: Record<string, React.CSSProperties>;
@@ -0,0 +1,3 @@
1
+ export const ENQUIRY_FORM_STYLES = {
2
+ container: {},
3
+ };
@@ -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";
@@ -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";
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ export declare const CONTAINER_STYLES: Record<string, React.CSSProperties>;
3
+ export declare const BUTTON_STYLES: Record<string, React.CSSProperties>;
@@ -0,0 +1,78 @@
1
+ export const CONTAINER_STYLES = {
2
+ container: {
3
+ display: "flex",
4
+ justifyContent: "center",
5
+ padding: 20,
6
+ fontFamily: "'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial",
7
+ background: "#f6f8fa",
8
+ },
9
+ card: {
10
+ width: "100%",
11
+ maxWidth: 720,
12
+ background: "#fff",
13
+ borderRadius: 12,
14
+ boxShadow: "0 4px 12px rgba(0, 0, 0, 0.08)",
15
+ padding: 24,
16
+ boxSizing: "border-box",
17
+ },
18
+ header: {
19
+ display: "flex",
20
+ alignItems: "center",
21
+ justifyContent: "space-between",
22
+ marginBottom: 20,
23
+ },
24
+ title: {
25
+ marginLeft: 10,
26
+ fontSize: 20,
27
+ fontWeight: 600,
28
+ margin: 0,
29
+ },
30
+ section: { marginTop: 16 },
31
+ errorMessage: {
32
+ marginBottom: 16,
33
+ padding: "12px 16px",
34
+ borderRadius: 8,
35
+ backgroundColor: "#fee2e2",
36
+ color: "#ef4444",
37
+ fontWeight: 500,
38
+ fontSize: 14,
39
+ border: "1px solid rgba(239, 68, 68, 0.2)",
40
+ },
41
+ actions: {
42
+ display: "flex",
43
+ gap: 12,
44
+ marginTop: 24,
45
+ paddingTop: 20,
46
+ borderTop: "1px solid #e5e7eb",
47
+ justifyContent: "flex-end",
48
+ },
49
+ };
50
+ export const BUTTON_STYLES = {
51
+ primary: {
52
+ background: "#009b4d",
53
+ color: "#fff",
54
+ border: "none",
55
+ padding: "10px 20px",
56
+ borderRadius: 8,
57
+ cursor: "pointer",
58
+ fontWeight: 600,
59
+ fontSize: 14,
60
+ transition: "all 0.2s ease",
61
+ minHeight: 40,
62
+ boxShadow: "0 1px 2px rgba(0, 0, 0, 0.05)",
63
+ lineHeight: "1.5",
64
+ },
65
+ secondary: {
66
+ background: "#fff",
67
+ color: "#111827",
68
+ border: "1px solid #e5e7eb",
69
+ padding: "10px 20px",
70
+ borderRadius: 8,
71
+ cursor: "pointer",
72
+ fontWeight: 600,
73
+ fontSize: 14,
74
+ transition: "all 0.2s ease",
75
+ minHeight: 40,
76
+ lineHeight: "1.5",
77
+ },
78
+ };
@@ -1,6 +1 @@
1
- import React from "react";
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";