medos-sdk 1.1.7 → 1.1.8
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/components/SuccessStep.js +1 -1
- package/dist/vanilla/AppointmentCalendarWidget.d.ts +8 -0
- package/dist/vanilla/AppointmentCalendarWidget.js +463 -158
- package/dist/vanilla/EnquiryFormWidget.d.ts +2 -0
- package/dist/vanilla/EnquiryFormWidget.js +155 -100
- package/dist/vanilla/components/VanillaCalendar.d.ts +32 -0
- package/dist/vanilla/components/VanillaCalendar.js +366 -0
- package/dist/vanilla/components/VanillaIcons.d.ts +17 -0
- package/dist/vanilla/components/VanillaIcons.js +268 -0
- package/dist/vanilla/components/VanillaSelect.d.ts +46 -0
- package/dist/vanilla/components/VanillaSelect.js +523 -0
- package/dist/vanilla/components/index.d.ts +3 -0
- package/dist/vanilla/components/index.js +3 -0
- package/dist/vanilla/components/theme-injector.d.ts +1 -0
- package/dist/vanilla/components/theme-injector.js +447 -0
- package/dist/vanilla/enquiry-widget.js +1366 -100
- package/dist/vanilla/vanilla/AppointmentCalendarWidget.d.ts +8 -0
- package/dist/vanilla/vanilla/EnquiryFormWidget.d.ts +2 -0
- package/dist/vanilla/vanilla/components/VanillaCalendar.d.ts +32 -0
- package/dist/vanilla/vanilla/components/VanillaIcons.d.ts +17 -0
- package/dist/vanilla/vanilla/components/VanillaSelect.d.ts +46 -0
- package/dist/vanilla/vanilla/components/index.d.ts +3 -0
- package/dist/vanilla/vanilla/components/theme-injector.d.ts +1 -0
- package/dist/vanilla/vanilla/widget.d.ts +2 -0
- package/dist/vanilla/widget.d.ts +2 -0
- package/dist/vanilla/widget.js +2213 -257
- package/package.json +1 -1
|
@@ -5,5 +5,5 @@ export const SuccessStep = ({ onReset }) => {
|
|
|
5
5
|
const theme = useTheme();
|
|
6
6
|
const SUCCESS_STYLES = getSuccessStyles(theme);
|
|
7
7
|
const BUTTON_STYLES = getButtonStyles(theme);
|
|
8
|
-
return (_jsxs("div", { style: SUCCESS_STYLES.container, children: [_jsx("div", { style: SUCCESS_STYLES.iconContainer, children: _jsx("div", { style: { fontSize: "48px", color: theme.colors.success }, children: "\u2713" }) }), _jsxs("div", { style: SUCCESS_STYLES.detailsContainer, children: [_jsx("h3", { style: SUCCESS_STYLES.detailsTitle, children: "Inquiry Submitted Successfully" }), _jsx("p", { style: SUCCESS_STYLES.confirmationNote, children: "Thank you for your inquiry. We will get back to you soon." })] }), _jsx("div", { style: SUCCESS_STYLES.actionContainer, children: _jsx("button", { onClick: onReset, style: BUTTON_STYLES.primary, children: "Submit Another Inquiry" }) })] }));
|
|
8
|
+
return (_jsxs("div", { style: SUCCESS_STYLES.container, children: [_jsx("div", { style: SUCCESS_STYLES.iconContainer, children: _jsx("div", { style: { fontSize: "48px", color: theme.colors.success }, children: "\u2713" }) }), _jsxs("div", { style: SUCCESS_STYLES.detailsContainer, children: [_jsx("h3", { style: SUCCESS_STYLES.detailsTitle, children: "Inquiry Submitted Successfully" }), _jsx("p", { style: SUCCESS_STYLES.confirmationNote, children: "Thank you for your inquiry. We will get back to you soon." })] }), _jsx("div", { style: { ...SUCCESS_STYLES.actionContainer, textAlign: "center" }, children: _jsx("button", { onClick: onReset, style: BUTTON_STYLES.primary, children: "Submit Another Inquiry" }) })] }));
|
|
9
9
|
};
|
|
@@ -12,12 +12,19 @@ declare class AppointmentCalendarWidget {
|
|
|
12
12
|
private mounted;
|
|
13
13
|
private state;
|
|
14
14
|
private doctors;
|
|
15
|
+
private addressSelect;
|
|
16
|
+
private doctorSelect;
|
|
17
|
+
private calendar;
|
|
18
|
+
private countryCodeSelect;
|
|
19
|
+
private genderSelect;
|
|
20
|
+
private bloodGroupSelect;
|
|
15
21
|
constructor(container: HTMLElement | string, options: AppointmentCalendarWidgetOptions);
|
|
16
22
|
private init;
|
|
17
23
|
private loadAddresses;
|
|
18
24
|
private handleAddressChange;
|
|
19
25
|
private loadSlots;
|
|
20
26
|
private canProceedFromMergedStep;
|
|
27
|
+
private updateSubmitButtonState;
|
|
21
28
|
private sendOtp;
|
|
22
29
|
private verifyOtp;
|
|
23
30
|
private submitAppointment;
|
|
@@ -26,6 +33,7 @@ declare class AppointmentCalendarWidget {
|
|
|
26
33
|
private reset;
|
|
27
34
|
private setState;
|
|
28
35
|
private render;
|
|
36
|
+
private initializeCustomComponents;
|
|
29
37
|
private renderStep;
|
|
30
38
|
private renderStep0;
|
|
31
39
|
private renderStep1;
|