pr360-questionnaire 2.3.3 → 2.3.5

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.
@@ -16995,6 +16995,22 @@ meter::-webkit-meter-optimum-value {
16995
16995
  margin-bottom: 10px;
16996
16996
  }
16997
16997
  }
16998
+ .button--booking {
16999
+ background-color: #3B6A8B;
17000
+ color: #FFFFFF;
17001
+ text-decoration: none;
17002
+ display: inline-block;
17003
+ width: auto;
17004
+ min-width: 180px;
17005
+ min-height: auto;
17006
+ padding: 12px 32px;
17007
+ margin: 20px 0;
17008
+ text-align: center;
17009
+ }
17010
+ .button--booking:hover {
17011
+ background-color: #2d5270;
17012
+ color: #FFFFFF;
17013
+ }
16998
17014
  .button--link {
16999
17015
  background-color: transparent;
17000
17016
  border: 0px;
@@ -17453,7 +17469,7 @@ meter::-webkit-meter-optimum-value {
17453
17469
  <vimeo-video controls src=${this.currentStep.url} class="questionnaire--video"></vimeo-video>
17454
17470
  ${this.canSelfBook ? x`
17455
17471
  <div data-test-id="questionnaire-info"><h4>Thank you for completing the assessment. Based on your results ${this.siteSource || "we"} would like to help you set up an initial call with a professional.</h4></div>
17456
- <a class="button button--primary u-push-top" href=${this.currentStep.bookingUrl} target="_blank">Book Appointment</a>
17472
+ <a class="button button--booking" href=${this.currentStep.bookingUrl} target="_blank">Book Appointment</a>
17457
17473
  <div data-test-id="site-phone-number"><h4>Or if you'd like to speak with ${this.siteSource || "us"}, </br> please feel free to</h4><a href="tel:${this.phoneNumber}"><h1>Call ${this.siteSource || "Us"}</h1></a></div>
17458
17474
  ` : x`
17459
17475
  <div data-test-id="questionnaire-info"><h4>Thank you for completing the assessment. ${this.siteSource || "We"} will be calling you within 24 hours with more information.</h4></div>
@@ -32239,6 +32255,7 @@ ${inspect(response)}
32239
32255
  f3(bookingLink?.textContent).to.contain("Book Appointment");
32240
32256
  f3(bookingLink?.getAttribute("target")).to.equal("_blank");
32241
32257
  f3(bookingLink?.classList.contains("button")).to.be.true;
32258
+ f3(bookingLink?.classList.contains("button--booking")).to.be.true;
32242
32259
  const infoDiv = questionnaireElement.shadowRoot?.querySelector('[data-test-id="questionnaire-info"]');
32243
32260
  f3(infoDiv).to.exist;
32244
32261
  f3(infoDiv?.textContent).to.contain("set up an initial call with a professional");
@@ -255,6 +255,24 @@ meter::-webkit-meter-optimum-value {
255
255
 
256
256
  }
257
257
 
258
+ &--booking {
259
+ background-color: #3B6A8B;
260
+ color: #FFFFFF;
261
+ text-decoration: none;
262
+ display: inline-block;
263
+ width: auto;
264
+ min-width: 180px;
265
+ min-height: auto;
266
+ padding: 12px 32px;
267
+ margin: 20px 0;
268
+ text-align: center;
269
+
270
+ &:hover {
271
+ background-color: #2d5270;
272
+ color: #FFFFFF;
273
+ }
274
+ }
275
+
258
276
  &--link {
259
277
  background-color: transparent;
260
278
  border: 0px;
package/dist/index.js CHANGED
@@ -7190,6 +7190,22 @@ meter::-webkit-meter-optimum-value {
7190
7190
  margin-bottom: 10px;
7191
7191
  }
7192
7192
  }
7193
+ .button--booking {
7194
+ background-color: #3B6A8B;
7195
+ color: #FFFFFF;
7196
+ text-decoration: none;
7197
+ display: inline-block;
7198
+ width: auto;
7199
+ min-width: 180px;
7200
+ min-height: auto;
7201
+ padding: 12px 32px;
7202
+ margin: 20px 0;
7203
+ text-align: center;
7204
+ }
7205
+ .button--booking:hover {
7206
+ background-color: #2d5270;
7207
+ color: #FFFFFF;
7208
+ }
7193
7209
  .button--link {
7194
7210
  background-color: transparent;
7195
7211
  border: 0px;
@@ -7642,7 +7658,7 @@ meter::-webkit-meter-optimum-value {
7642
7658
  <vimeo-video controls src=${this.currentStep.url} class="questionnaire--video"></vimeo-video>
7643
7659
  ${this.canSelfBook ? x`
7644
7660
  <div data-test-id="questionnaire-info"><h4>Thank you for completing the assessment. Based on your results ${this.siteSource || "we"} would like to help you set up an initial call with a professional.</h4></div>
7645
- <a class="button button--primary u-push-top" href=${this.currentStep.bookingUrl} target="_blank">Book Appointment</a>
7661
+ <a class="button button--booking" href=${this.currentStep.bookingUrl} target="_blank">Book Appointment</a>
7646
7662
  <div data-test-id="site-phone-number"><h4>Or if you'd like to speak with ${this.siteSource || "us"}, </br> please feel free to</h4><a href="tel:${this.phoneNumber}"><h1>Call ${this.siteSource || "Us"}</h1></a></div>
7647
7663
  ` : x`
7648
7664
  <div data-test-id="questionnaire-info"><h4>Thank you for completing the assessment. ${this.siteSource || "We"} will be calling you within 24 hours with more information.</h4></div>
@@ -244,7 +244,7 @@ export class QuestionnaireElement extends LitElement {
244
244
  ${this.canSelfBook ?
245
245
  html`
246
246
  <div data-test-id="questionnaire-info"><h4>Thank you for completing the assessment. Based on your results ${this.siteSource || 'we'} would like to help you set up an initial call with a professional.</h4></div>
247
- <a class="button button--primary u-push-top" href=${(this.currentStep as Video).bookingUrl} target="_blank">Book Appointment</a>
247
+ <a class="button button--booking" href=${(this.currentStep as Video).bookingUrl} target="_blank">Book Appointment</a>
248
248
  <div data-test-id="site-phone-number"><h4>Or if you'd like to speak with ${this.siteSource || 'us'}, </br> please feel free to</h4><a href="tel:${this.phoneNumber}"><h1>Call ${this.siteSource || 'Us'}</h1></a></div>
249
249
  ` :
250
250
  html`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pr360-questionnaire",
3
3
  "description": "An element to render a questionnaire for PatientReach 360.",
4
- "version": "2.3.3",
4
+ "version": "2.3.5",
5
5
  "main": "dist/index.js",
6
6
  "author": {
7
7
  "email": "chris@launchscout.com",
@@ -157,6 +157,7 @@ describe('questionnaire test', async () => {
157
157
  expect(bookingLink?.getAttribute('target')).to.equal('_blank');
158
158
  // Should have button styling
159
159
  expect(bookingLink?.classList.contains('button')).to.be.true;
160
+ expect(bookingLink?.classList.contains('button--booking')).to.be.true;
160
161
 
161
162
  // The message about professional should appear
162
163
  const infoDiv = questionnaireElement.shadowRoot?.querySelector('[data-test-id="questionnaire-info"]');