@simplybusiness/theme-simplybusiness 1.20.4 → 1.21.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @simplybusiness/theme-simplybusiness
2
2
 
3
+ ## 1.21.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [30251a9]
8
+ - Updated dependencies [db0dc74]
9
+ - @simplybusiness/mobius-interventions@1.59.0
10
+
11
+ ## 1.21.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 7f89535: Create new interventions component for QCP
16
+ - fba968e: Add styling support for ProgressSteps
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [7f89535]
21
+ - Updated dependencies [d0e80c8]
22
+ - Updated dependencies [b2aeffa]
23
+ - Updated dependencies [fba968e]
24
+ - @simplybusiness/mobius-interventions@1.58.0
25
+ - @simplybusiness/mobius-journey@8.31.0
26
+
3
27
  ## 1.20.4
4
28
 
5
29
  ### Patch Changes
Binary file
Binary file
package/dist/index.css CHANGED
@@ -3620,14 +3620,6 @@ svg:not(:host).svg-inline--mobius-icon{
3620
3620
  color:var(--color-text-inverted);
3621
3621
  margin:0 0 0 auto;
3622
3622
  }
3623
- :root,
3624
- :host{
3625
- --progress-steps-shape-size:44px;
3626
- --progress-steps-primary-color:var(--color-primary-hover);
3627
- --progress-steps-secondary-color:var(--color-background-light);
3628
- --progress-steps-tertiary-color:var(--color-primary-hover);
3629
- --progress-steps-incomplete-number-text-color:var(--color-text-medium);
3630
- }
3631
3623
  .mobius-progress-steps{
3632
3624
  width:100%;
3633
3625
  display:grid;
@@ -3648,21 +3640,28 @@ svg:not(:host).svg-inline--mobius-icon{
3648
3640
  background-color:var(--progress-steps-primary-color);
3649
3641
  }
3650
3642
  .mobius-progress-steps__item.--is-active .mobius-progress-steps__item-name.mobius-text{
3651
- color:var(--progress-steps-tertiary-color);
3643
+ color:var(--progress-steps-active-label-color);
3644
+ text-decoration:var(--progress-steps-active-label-text-decoration, none);
3652
3645
  }
3653
3646
  .mobius-progress-steps__item.--is-active .mobius-progress-steps__item-shape{
3654
- background-color:var(--progress-steps-tertiary-color);
3647
+ background-color:var(--progress-steps-active-background-color);
3655
3648
  border-color:var(--progress-steps-tertiary-color);
3649
+ background-image:var(--progress-steps-active-icon, none);
3656
3650
  }
3657
3651
  :is(.mobius-progress-steps__item.--is-active .mobius-progress-steps__item-shape)::after{
3658
- background-color:var(--progress-steps-secondary-color);
3652
+ background-color:var(--progress-steps-active-line-color);
3659
3653
  }
3660
3654
  .mobius-progress-steps__item.--is-active .mobius-progress-steps__item-number{
3661
- color:var(--color-text-inverted);
3655
+ color:var(--progress-steps-active-text-color);
3656
+ visibility:var(--progress-steps-active-number-visibility, visible);
3662
3657
  }
3663
3658
  .mobius-progress-steps__item.--is-complete::after{
3664
3659
  background-color:var(--progress-steps-primary-color);
3665
3660
  }
3661
+ .mobius-progress-steps__item.--is-complete .mobius-progress-steps__item-link{
3662
+ color:var(--progress-steps-complete-label-color);
3663
+ text-decoration:var(--progress-steps-complete-label-text-decoration, underline);
3664
+ }
3666
3665
  :is(:is(.mobius-progress-steps__item.--is-complete .mobius-progress-steps__item-link):hover,:is(.mobius-progress-steps__item.--is-complete .mobius-progress-steps__item-link):focus-visible) .mobius-progress-steps__item-shape{
3667
3666
  background-color:var(--progress-steps-primary-color);
3668
3667
  }
@@ -3671,32 +3670,44 @@ svg:not(:host).svg-inline--mobius-icon{
3671
3670
  }
3672
3671
  .mobius-progress-steps__item.--is-complete .mobius-progress-steps__item-shape{
3673
3672
  border-color:var(--progress-steps-primary-color);
3674
- background-color:var(--color-background);
3673
+ background-color:var(--progress-steps-complete-step-background-color);
3674
+ background-image:var(--progress-steps-complete-icon, none);
3675
3675
  }
3676
3676
  :is(.mobius-progress-steps__item.--is-complete .mobius-progress-steps__item-shape)::after{
3677
- background-color:var(--progress-steps-primary-color);
3677
+ background-color:var(--progress-steps-complete-line-color);
3678
3678
  }
3679
3679
  .mobius-progress-steps__item.--is-complete .mobius-progress-steps__item-number{
3680
- color:var(--color-primary);
3680
+ color:var(--progress-steps-complete-step-text-color);
3681
+ visibility:var(--progress-steps-complete-number-visibility, visible);
3681
3682
  }
3682
3683
  .mobius-progress-steps__item.--is-complete .mobius-progress-steps__item-icon{
3683
- color:var(--progress-steps-primary-color);
3684
+ color:var(--progress-steps-complete-step-text-color);
3685
+ visibility:var(--progress-steps-complete-number-visibility, visible);
3684
3686
  }
3685
3687
  .mobius-progress-steps__item.--is-incomplete .mobius-progress-steps__item-name.mobius-text{
3686
- color:var(--color-text);
3688
+ color:var(--progress-steps-incomplete-label-color);
3689
+ text-decoration:var(--progress-steps-complete-label-text-decoration, none);
3687
3690
  }
3688
3691
  .mobius-progress-steps__item.--is-incomplete .mobius-progress-steps__item-shape{
3689
3692
  border-color:var(--progress-steps-secondary-color);
3693
+ background-color:var(--progress-steps-incomplete-background-color);
3690
3694
  }
3691
3695
  :is(.mobius-progress-steps__item.--is-incomplete .mobius-progress-steps__item-shape)::after{
3692
- background-color:var(--progress-steps-secondary-color);
3696
+ background-color:var(--progress-steps-incomplete-line-color);
3693
3697
  }
3694
3698
  .mobius-progress-steps__item.--is-incomplete .mobius-progress-steps__item-number{
3695
- color:var(--progress-steps-incomplete-number-text-color);
3699
+ color:var(--progress-steps-incomplete-text-color);
3700
+ visibility:var(--progress-steps-incomplete-number-visibility, visible);
3696
3701
  }
3697
3702
  .mobius-progress-steps__item-link{
3698
3703
  display:block;
3704
+ -webkit-text-decoration:none;
3705
+ text-decoration:none;
3699
3706
  }
3707
+ .mobius-progress-steps__item-link:hover{
3708
+ -webkit-text-decoration:none;
3709
+ text-decoration:none;
3710
+ }
3700
3711
  .mobius-progress-steps__item-link:focus-visible{
3701
3712
  padding:0;
3702
3713
  }
@@ -3708,9 +3719,11 @@ svg:not(:host).svg-inline--mobius-icon{
3708
3719
  margin:0 auto;
3709
3720
  border-radius:50%;
3710
3721
  border:var(--size-border-width) solid currentColor;
3711
- font-size:var(--font-size-small-title);
3722
+ font-size:var(--progress-steps-shape-font-size);
3712
3723
  font-weight:var(--font-weight-bold);
3713
3724
  background-color:var(--progress-steps-secondary-color);
3725
+ background-repeat:no-repeat;
3726
+ background-position:center;
3714
3727
  }
3715
3728
  .mobius-progress-steps__item-shape::after{
3716
3729
  content:"";
@@ -3731,7 +3744,8 @@ svg:not(:host).svg-inline--mobius-icon{
3731
3744
  }
3732
3745
  @media (min-width: 960px){
3733
3746
  .mobius-progress-steps__item-shape{
3734
- --progress-steps-shape-size:64px;
3747
+ --progress-steps-shape-size:var(--progress-steps-shape-size-lg);
3748
+ --progress-steps-shape-font-size:var(--progress-steps-shape-font-size-lg);
3735
3749
  }
3736
3750
 
3737
3751
  .mobius-progress-steps__item-name.mobius-text{
@@ -6657,6 +6671,117 @@ svg:not(:host).svg-inline--mobius-icon{
6657
6671
  margin-bottom:0px;
6658
6672
  font-size:10px;
6659
6673
  }
6674
+ .qcp-inactivity-intervention__qcp-intervention-modal{
6675
+ display:grid;
6676
+ grid-template-columns:auto auto;
6677
+ width:fit-content;
6678
+ background-color:var(--color-neutral-100);
6679
+ border-radius:var(--size-xs);
6680
+ overflow:visible;
6681
+ grid-template-areas:"text image";
6682
+ }
6683
+ @media (max-width: 640px){
6684
+ .qcp-inactivity-intervention__qcp-intervention-modal{
6685
+ grid-template-columns:1fr;
6686
+ width:328px;
6687
+ grid-template-areas:"image" "text";
6688
+ }
6689
+ }
6690
+ .qcp-inactivity-intervention__qcp-content-container{
6691
+ border-radius:var(--size-xs) 0 0 var(--size-xs);
6692
+ display:grid;
6693
+ margin:0;
6694
+ align-items:flex-start;
6695
+ width:392px;
6696
+ grid-area:text;
6697
+ }
6698
+ @media (max-width: 640px){
6699
+ .qcp-inactivity-intervention__qcp-content-container{
6700
+ width:100%;
6701
+ height:auto;
6702
+ }
6703
+ }
6704
+ .qcp-inactivity-intervention__qcp-text-container{
6705
+ margin:var(--size-md) var(--size-lg) 0 var(--size-lg);
6706
+ }
6707
+ @media (max-width: 640px){
6708
+ .qcp-inactivity-intervention__qcp-text-container{
6709
+ margin:var(--size-sm);
6710
+ }
6711
+ }
6712
+ .qcp-inactivity-intervention__qcp-subtext{
6713
+ margin:0;
6714
+ color:var(--color-text-medium);
6715
+ }
6716
+ @media (max-width: 640px){
6717
+ .qcp-inactivity-intervention__qcp-subtext{
6718
+ margin-bottom:var(--size-lg);
6719
+ }
6720
+ }
6721
+ .qcp-inactivity-intervention__qcp-image{
6722
+ background-image:url(c862b1604d0ceb19b9e8.webp);
6723
+ background-position:center;
6724
+ background-repeat:no-repeat;
6725
+ background-size:cover;
6726
+ border-radius:var(--size-xs) 0 0 var(--size-xs);
6727
+ overflow:hidden;
6728
+ width:240px;
6729
+ height:312px;
6730
+ grid-area:image;
6731
+ }
6732
+ @media (max-width: 640px){
6733
+ .qcp-inactivity-intervention__qcp-image{
6734
+ background-image:url(5cbbdbab4722e58e208f.webp);
6735
+ width:100%;
6736
+ height:148px;
6737
+ }
6738
+ }
6739
+ .qcp-inactivity-intervention__qcp-phone-number{
6740
+ display:grid;
6741
+ grid-template-columns:auto 1fr;
6742
+ margin:var(--size-lg) 0 var(--size-sm) 0;
6743
+ }
6744
+ .qcp-inactivity-intervention__qcp-phone-number-text{
6745
+ margin:0 0 0 var(--size-xxs);
6746
+ }
6747
+ .qcp-inactivity-intervention__button{
6748
+ margin:var(--size-sm) 0;
6749
+ width:156px;
6750
+ }
6751
+ @media (max-width: 640px){
6752
+ .qcp-inactivity-intervention__button{
6753
+ margin:var(--size-sm) 0 0 0;
6754
+ width:100%;
6755
+ }
6756
+ }
6757
+ .qcp-inactivity-intervention__agent-chat-button{
6758
+ margin:var(--size-lg) 0 0 0;
6759
+ width:100%;
6760
+ }
6761
+ @media (max-width: 640px){
6762
+ .qcp-inactivity-intervention__agent-chat-button{
6763
+ margin:0;
6764
+ }
6765
+ }
6766
+ .qcp-inactivity-intervention__full-width-button{
6767
+ width:100%;
6768
+ }
6769
+ .qcp-inactivity-intervention__bottom-button{
6770
+ margin-bottom:var(--size-sm);
6771
+ }
6772
+ @media (max-width: 640px){
6773
+ .qcp-inactivity-intervention__desktop-only{
6774
+ display:none;
6775
+ }
6776
+ }
6777
+ .qcp-inactivity-intervention__mobile-only{
6778
+ display:none;
6779
+ }
6780
+ @media (max-width: 640px){
6781
+ .qcp-inactivity-intervention__mobile-only{
6782
+ display:block;
6783
+ }
6784
+ }
6660
6785
  .star-rating__footer{
6661
6786
  box-sizing:border-box;
6662
6787
  position:fixed;
@@ -7360,10 +7485,31 @@ svg:not(:host).svg-inline--mobius-icon{
7360
7485
  --header-phone-icon-color:var(--color-secondary);
7361
7486
  --header-powered-by-icon-color:var(--color-text-medium);
7362
7487
  --progress-steps-shape-size:44px;
7488
+ --progress-steps-shape-size-lg:64px;
7489
+
7490
+ --progress-steps-shape-font-size:24px;
7491
+ --progress-steps-shape-font-size-lg:var(--progress-steps-shape-font-size);
7492
+
7363
7493
  --progress-steps-primary-color:var(--color-primary-hover);
7364
7494
  --progress-steps-secondary-color:var(--color-background-light);
7365
7495
  --progress-steps-tertiary-color:var(--color-primary-hover);
7366
7496
  --progress-steps-incomplete-number-text-color:var(--color-text-medium);
7497
+
7498
+ --progress-steps-complete-step-background-color:var(--color-background);
7499
+ --progress-steps-complete-step-text-color:var(--progress-steps-primary-color);
7500
+ --progress-steps-complete-label-color:var(--color-secondary);
7501
+ --progress-steps-complete-line-color:var(--progress-steps-primary-color);
7502
+ --progress-steps-complete-label-text-decoration:underline;
7503
+
7504
+ --progress-steps-incomplete-background-color:var(--color-background-light);
7505
+ --progress-steps-incomplete-text-color:var(--color-text-medium);
7506
+ --progress-steps-incomplete-label-color:var(--color-text);
7507
+ --progress-steps-incomplete-line-color:var(--progress-steps-secondary-color);
7508
+
7509
+ --progress-steps-active-background-color:var(--progress-steps-primary-color);
7510
+ --progress-steps-active-text-color:var(--color-text-inverted);
7511
+ --progress-steps-active-label-color:var(--color-text);
7512
+ --progress-steps-active-line-color:var(--progress-steps-secondary-color);
7367
7513
  --section-max-width:552px;
7368
7514
  --questionnaire-list-icon:url("data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%22448%22 height%3D%22512%22 viewbox%3D%220 0 24 24%22%3E %3Cpath d%3D%22M448 130L431 147 177.5 399.2l-16.9 16.9-16.9-16.9L17 273.1 0 256.2l33.9-34 17 16.9L160.6 348.3 397.1 112.9l17-16.9L448 130z%22 fill%3D%22%23e943c9%22 %2F%3E%3C%2Fsvg%3E");
7369
7515
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplybusiness/theme-simplybusiness",
3
- "version": "1.20.4",
3
+ "version": "1.21.1",
4
4
  "main": "dist/index.css",
5
5
  "simplyBusiness": {
6
6
  "publishToPublicNpm": true
@@ -29,8 +29,8 @@
29
29
  "@simplybusiness/mobius": "^5.28.2",
30
30
  "@simplybusiness/mobius-chatbot": "^1.4.6",
31
31
  "@simplybusiness/mobius-datepicker": "^6.5.23",
32
- "@simplybusiness/mobius-interventions": "^1.57.0",
33
- "@simplybusiness/mobius-journey": "^8.30.1",
32
+ "@simplybusiness/mobius-interventions": "^1.59.0",
33
+ "@simplybusiness/mobius-journey": "^8.31.0",
34
34
  "@simplybusiness/theme-core": "^7.7.2"
35
35
  },
36
36
  "devDependencies": {
package/src/variables.css CHANGED
@@ -14,11 +14,32 @@
14
14
 
15
15
  /* Progress Steps */
16
16
  --progress-steps-shape-size: 44px;
17
+ --progress-steps-shape-size-lg: 64px;
18
+
19
+ --progress-steps-shape-font-size: 24px;
20
+ --progress-steps-shape-font-size-lg: var(--progress-steps-shape-font-size);
21
+
17
22
  --progress-steps-primary-color: var(--color-primary-hover);
18
23
  --progress-steps-secondary-color: var(--color-background-light);
19
24
  --progress-steps-tertiary-color: var(--color-primary-hover);
20
25
  --progress-steps-incomplete-number-text-color: var(--color-text-medium);
21
26
 
27
+ --progress-steps-complete-step-background-color: var(--color-background);
28
+ --progress-steps-complete-step-text-color: var(--progress-steps-primary-color);
29
+ --progress-steps-complete-label-color: var(--color-secondary);
30
+ --progress-steps-complete-line-color: var(--progress-steps-primary-color);
31
+ --progress-steps-complete-label-text-decoration: underline;
32
+
33
+ --progress-steps-incomplete-background-color: var(--color-background-light);
34
+ --progress-steps-incomplete-text-color: var(--color-text-medium);
35
+ --progress-steps-incomplete-label-color: var(--color-text);
36
+ --progress-steps-incomplete-line-color: var(--progress-steps-secondary-color);
37
+
38
+ --progress-steps-active-background-color: var(--progress-steps-primary-color);
39
+ --progress-steps-active-text-color: var(--color-text-inverted);
40
+ --progress-steps-active-label-color: var(--color-text);
41
+ --progress-steps-active-line-color: var(--progress-steps-secondary-color);
42
+
22
43
  /* Section */
23
44
  --section-max-width: 552px;
24
45
  --questionnaire-list-icon: url("./images/tick.svg");