summaryrefslogtreecommitdiff
path: root/website/src/scripts/contact/selectors.ts
diff options
context:
space:
mode:
Diffstat (limited to 'website/src/scripts/contact/selectors.ts')
-rw-r--r--website/src/scripts/contact/selectors.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/website/src/scripts/contact/selectors.ts b/website/src/scripts/contact/selectors.ts
new file mode 100644
index 0000000..5c30f9c
--- /dev/null
+++ b/website/src/scripts/contact/selectors.ts
@@ -0,0 +1,27 @@
+export type Selectors = {
+ contactForm: {
+ emailElem: () => HTMLInputElement;
+ errorElem: () => Element | null;
+ nameElem: () => HTMLInputElement;
+ messageElem: () => HTMLTextAreaElement;
+ self: () => HTMLFormElement | null;
+ submitButton: () => HTMLInputElement | null;
+ };
+ otpDialog: {
+ allOtpInputs: () => NodeListOf<HTMLInputElement>;
+ errorElem: () => Element | null;
+ firstOtpInput: () => HTMLInputElement | null;
+ otpForm: () => HTMLFormElement | null;
+ otpRecipient: () => Element | null;
+ otpValidUntil: () => Element | null;
+ resendButton: () => HTMLButtonElement | null;
+ self: () => HTMLDialogElement;
+ submitButton: () => HTMLInputElement | null;
+ };
+ successSection: {
+ email: () => Element | null;
+ message: () => Element | null;
+ name: () => Element | null;
+ self: () => Element | null;
+ };
+};