diff --git a/src/assets/img/icons/alert-circle.svg b/src/assets/img/icons/alert-circle.svg new file mode 100644 index 00000000..904aefb9 --- /dev/null +++ b/src/assets/img/icons/alert-circle.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/img/icons/chevron-up.svg b/src/assets/img/icons/chevron-up.svg new file mode 100644 index 00000000..f235d47f --- /dev/null +++ b/src/assets/img/icons/chevron-up.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/constants/button-variants.js b/src/constants/button-variants.js deleted file mode 100644 index cf73718a..00000000 --- a/src/constants/button-variants.js +++ /dev/null @@ -1,9 +0,0 @@ -const buttonVariants = Object.freeze({ - primary: 'primary', - secondary: 'secondary', - success: 'success', - link: 'link', - navigation: 'navigation' -}); - -export default buttonVariants; diff --git a/src/constants/component-variants.js b/src/constants/component-variants.js new file mode 100644 index 00000000..7fd84311 --- /dev/null +++ b/src/constants/component-variants.js @@ -0,0 +1,15 @@ +export const buttonVariants = Object.freeze({ + primary: 'primary', + secondary: 'secondary', + success: 'success', + link: 'link', + navigation: 'navigation' +}); +export const dropdownVariants = Object.freeze({ + primary: 'primary', + compact: 'compact' +}); +export const modalPositions = Object.freeze({ + center: 'center', + edge: 'edge' +}); diff --git a/src/constants/error-messages.js b/src/constants/error-messages.js index 71e7d515..d712e973 100644 --- a/src/constants/error-messages.js +++ b/src/constants/error-messages.js @@ -23,8 +23,13 @@ const errorMessages = Object.freeze({ LAST_NAME_REQUIRED: 'Please enter your last name', EMAIL_ADDRESS_REQUIRED: 'Email is required.', EMAIL_ADDRESS_FORMAT: 'Please enter a valid email address.', - SERVICE_ZIP_REQUIRED: 'Please enter your service ZIP', - SERVICE_ZIP_FORMAT: 'Please enter a valid service ZIP', + SERVICE_ZIP_REQUIRED: 'ZIP code is required', + SERVICE_ZIP_FORMAT: 'Invalid ZIP, please enter a new ZIP (5 characters)', + MOBILE_SERVICE_ZIP_FORMAT: 'Invalid ZIP code', + NO_SERVICE_IN_AREA: (area) => `We're sorry, but we don't offer service in ${area} at this time.`, + PROVIDER_REQUIRED: 'Please select a provider.', + INVALID_ZIP: 'The ZIP you entered was invalid. Please enter a valid ZIP.', + ZIP_CODE_NOT_SERVICED_FOR_VEHICLE: 'We do not currently offer glass service for your vehicle in this ZIP code. Please try another ZIP code.', VIN_REQUIRED: 'Please enter your VIN', VIN_FORMAT: // eslint-disable-next-line max-len diff --git a/src/digital-components/button-question/button-question.vue b/src/digital-components/button-question/button-question.vue index 5c380612..da7eb5c7 100644 --- a/src/digital-components/button-question/button-question.vue +++ b/src/digital-components/button-question/button-question.vue @@ -294,6 +294,11 @@ export default { this.resetField({ value: newValue }); + }, + answers() { + this.resetField({ + value: this.modelValue + }); } }, beforeMount() { diff --git a/src/digital-components/dropdown-question/dropdown-question.vue b/src/digital-components/dropdown-question/dropdown-question.vue index 69b8a530..55636eef 100644 --- a/src/digital-components/dropdown-question/dropdown-question.vue +++ b/src/digital-components/dropdown-question/dropdown-question.vue @@ -2,8 +2,9 @@