@simplybusiness/theme-simplybusiness 2.10.10 → 2.11.0

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,40 @@
1
1
  # @simplybusiness/theme-simplybusiness
2
2
 
3
+ ## 2.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - a295210: Coverage recommendations skeleton
8
+
9
+ ### Patch Changes
10
+
11
+ - 8d1278f: Implement back button in Showcase and implement more styling
12
+ - 56c673f: Migrate CSS from SASS-style nesting to native CSS nesting syntax
13
+ - Update 62 CSS source files to use native CSS nesting with `&` prefix
14
+ - Switch PostCSS plugin from `postcss-nested` to `postcss-nesting`
15
+ - No functional changes to compiled CSS output (still Safari 14 compatible)
16
+
17
+ - Updated dependencies [a295210]
18
+ - Updated dependencies [8d1278f]
19
+ - Updated dependencies [a934bca]
20
+ - Updated dependencies [56c673f]
21
+ - Updated dependencies [c54e331]
22
+ - Updated dependencies [7cf76f2]
23
+ - @simplybusiness/mobius-journey@11.21.0
24
+ - @simplybusiness/mobius@6.9.5
25
+ - @simplybusiness/mobius-interventions@3.3.7
26
+ - @simplybusiness/mobius-datepicker@7.3.6
27
+ - @simplybusiness/theme-core@7.14.7
28
+ - @simplybusiness/mobius-chatbot@2.2.5
29
+
30
+ ## 2.10.11
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies [f530f7c]
35
+ - @simplybusiness/mobius-interventions@3.3.6
36
+ - @simplybusiness/mobius-journey@11.20.6
37
+
3
38
  ## 2.10.10
4
39
 
5
40
  ### Patch Changes
package/dist/index.css CHANGED
@@ -268,7 +268,7 @@ h6.mobius-accordion__link-text,
268
268
  border-color:var(--color-valid);
269
269
  color:transparent;
270
270
  }
271
- .mobius-button:where(.--is-success) > :not(.mobius-button__icon-wrapper){
271
+ .mobius-button:where(.--is-success) > :not(.mobius-button__icon-wrapper){
272
272
  opacity:0;
273
273
  visibility:hidden;
274
274
  }
@@ -294,7 +294,7 @@ h6.mobius-accordion__link-text,
294
294
  .mobius-button:where(.--is-loading){
295
295
  color:transparent;
296
296
  }
297
- .mobius-button:where(.--is-loading) > :not(.mobius-button__icon-wrapper){
297
+ .mobius-button:where(.--is-loading) > :not(.mobius-button__icon-wrapper){
298
298
  opacity:0;
299
299
  visibility:hidden;
300
300
  }
@@ -606,7 +606,7 @@ h6.mobius-accordion__link-text,
606
606
  opacity:0;
607
607
  transition:opacity var(--drawer-transition-duration) ease-in-out;
608
608
  }
609
- .mobius-drawer + .backdrop{
609
+ .mobius-drawer + .backdrop{
610
610
  position:fixed;
611
611
  top:0;
612
612
  right:0;
@@ -615,7 +615,7 @@ h6.mobius-accordion__link-text,
615
615
  background-color:var(--backdrop-color);
616
616
  opacity:0.3;
617
617
  }
618
- :is(.mobius-drawer + .backdrop) + ._dialog_overlay{
618
+ :is(.mobius-drawer + .backdrop) + ._dialog_overlay{
619
619
  position:fixed;
620
620
  top:0;
621
621
  right:0;
@@ -996,7 +996,7 @@ h6.mobius-accordion__link-text,
996
996
  opacity:0;
997
997
  transition:opacity var(--modal-transition-duration) ease-in-out;
998
998
  }
999
- .mobius-modal + .backdrop{
999
+ .mobius-modal + .backdrop{
1000
1000
  position:fixed;
1001
1001
  top:0;
1002
1002
  right:0;
@@ -1005,7 +1005,7 @@ h6.mobius-accordion__link-text,
1005
1005
  background-color:var(--backdrop-color);
1006
1006
  opacity:0.3;
1007
1007
  }
1008
- :is(.mobius-modal + .backdrop) + ._dialog_overlay{
1008
+ :is(.mobius-modal + .backdrop) + ._dialog_overlay{
1009
1009
  position:fixed;
1010
1010
  top:0;
1011
1011
  right:0;
@@ -1530,7 +1530,7 @@ h6.mobius-accordion__link-text,
1530
1530
  box-sizing:border-box;
1531
1531
  width:100%;
1532
1532
  }
1533
- .mobius-select__outer > :where(.mobius-label.--is-optional)::after{
1533
+ .mobius-select__outer > :where(.mobius-label.--is-optional)::after{
1534
1534
  content:" (optional)";
1535
1535
  }
1536
1536
  .mobius-select__wrapper{
@@ -1734,7 +1734,7 @@ h6.mobius-accordion__link-text,
1734
1734
  width:0;
1735
1735
  height:0;
1736
1736
  }
1737
- :is(.mobius-switch input):focus-visible + .mobius-switch__slider{
1737
+ :is(.mobius-switch input):focus-visible + .mobius-switch__slider{
1738
1738
  box-shadow:var(--box-shadow-default);
1739
1739
  }
1740
1740
  .mobius-switch__slider{
@@ -1978,7 +1978,7 @@ h6.mobius-accordion__link-text,
1978
1978
  border-top-right-radius:0;
1979
1979
  border-bottom-right-radius:0;
1980
1980
  }
1981
- .mobius-text-field__prefix-outside.mobius-button + .mobius-text-field__input-wrapper{
1981
+ .mobius-text-field__prefix-outside.mobius-button + .mobius-text-field__input-wrapper{
1982
1982
  border-top-left-radius:0;
1983
1983
  border-bottom-left-radius:0;
1984
1984
  }
@@ -4207,7 +4207,7 @@ svg:not(:host).svg-inline--mobius-icon{
4207
4207
 
4208
4208
  }
4209
4209
  .mobius-question__chatbox p{
4210
- margin:0
4210
+ margin:0;
4211
4211
  }
4212
4212
  .mobius-question__chatbox .mobius-question__chatbox-link-container{
4213
4213
  gap:var(--size-xs);
@@ -5618,6 +5618,124 @@ svg:not(:host).svg-inline--mobius-icon{
5618
5618
  --column-count:2;
5619
5619
  }
5620
5620
  }
5621
+ .mobius-recommendations__card{
5622
+ display:flex;
5623
+ flex-direction:column;
5624
+ gap:16px;
5625
+ padding:24px 16px;
5626
+ border:2px solid #e2dbfb;
5627
+ border-width:2px;
5628
+ background-color:#ffffff;
5629
+ transition:border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
5630
+ overflow:hidden;
5631
+ box-shadow:0px 12px 24px 0px rgba(0, 0, 0, 0.1607843137);
5632
+ position:relative;
5633
+ }
5634
+ .mobius-recommendations__card--selected{
5635
+ border:2px solid #2a1e81;
5636
+ border-radius:var(--radius-2);
5637
+ }
5638
+ .mobius-recommendations__card:focus-visible{
5639
+ outline:2px solid var(--color-focus);
5640
+ outline-offset:4px;
5641
+ }
5642
+ .mobius-recommendations__card-content{
5643
+ display:flex;
5644
+ flex-direction:column;
5645
+ gap:var(--size-md);
5646
+ }
5647
+ .mobius-recommendations__card-header{
5648
+ display:flex;
5649
+ justify-content:space-between;
5650
+ align-items:flex-start;
5651
+ gap:16px;
5652
+ }
5653
+ .mobius-recommendations__badge{
5654
+ display:flex;
5655
+ align-items:center;
5656
+ gap:8px;
5657
+ margin:-30px -24px 8px;
5658
+ padding:14px 24px;
5659
+ background:rgb(42, 30, 129);
5660
+ color:var(--color-text-inverted);
5661
+ font-size:14px;
5662
+ border-radius:22px 22px 0 0;
5663
+ }
5664
+ .mobius-recommendations__badge-icon{
5665
+ color:currentColor;
5666
+ }
5667
+ .mobius-recommendations__badge-label{
5668
+ line-height:1.2;
5669
+ }
5670
+ .mobius-recommendations__checkbox{
5671
+ min-width:24px;
5672
+ min-height:24px;
5673
+ border-radius:var(--radius-1);
5674
+ border:2px solid var(--color-border);
5675
+ display:grid;
5676
+ place-items:center;
5677
+ background-color:var(--color-background);
5678
+ transition:border-color var(--transition-standard), background-color var(--transition-standard), color var(--transition-standard);
5679
+ color:transparent;
5680
+ }
5681
+ .mobius-recommendations__checkbox--selected{
5682
+ border-color:var(--color-primary-hover);
5683
+ background-color:var(--color-primary-hover);
5684
+ color:var(--color-text-inverted);
5685
+ }
5686
+ .mobius-recommendations__checkbox-icon{
5687
+ width:10px;
5688
+ height:6px;
5689
+ border-left:2px solid currentColor;
5690
+ border-bottom:2px solid currentColor;
5691
+ transform:rotate(-45deg);
5692
+ }
5693
+ .mobius-recommendations__heading{
5694
+ margin:0;
5695
+ font-size:20px;
5696
+ line-height:1.2;
5697
+ color:#111118;
5698
+ }
5699
+ .mobius-recommendations__description{
5700
+ display:flex;
5701
+ flex-direction:column;
5702
+ gap:var(--size-xs);
5703
+ }
5704
+ .mobius-recommendations__footer{
5705
+ margin-top:auto;
5706
+ }
5707
+ .mobius-recommendations__cta{
5708
+ border-radius:20px;
5709
+ font-weight:var(--font-weight-bold);
5710
+ font-size:var(--font-size-2);
5711
+ padding:8px 12px;
5712
+ }
5713
+ .mobius-recommendations{
5714
+ display:flex;
5715
+ flex-direction:column;
5716
+ gap:var(--size-xl);
5717
+ padding-top:var(--size-xl);
5718
+ padding-bottom:var(--size-xl);
5719
+ }
5720
+ .mobius-recommendations__intro{
5721
+ max-width:720px;
5722
+ }
5723
+ @media (min-width: 1024px){
5724
+ .mobius-recommendations__intro{
5725
+ flex-direction:row;
5726
+ justify-content:space-between;
5727
+ align-items:flex-start;
5728
+ max-width:none;
5729
+ }
5730
+ }
5731
+ .mobius-recommendations__title{
5732
+ margin:0;
5733
+ }
5734
+ .mobius-recommendations__grid{
5735
+ display:grid;
5736
+ grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
5737
+ gap:var(--size-lg);
5738
+ }
5621
5739
  .mobius-quote-card__section{
5622
5740
  position:relative;
5623
5741
  font-size:var(--font-size-regular);
@@ -6330,22 +6448,12 @@ svg:not(:host).svg-inline--mobius-icon{
6330
6448
  width:100%;
6331
6449
  }
6332
6450
  }
6333
- .mobius-showcase-explore{
6451
+ .mobius-showcase__card.mobius-showcase-explore{
6334
6452
  flex:1;
6335
- min-width:0;
6336
- background-color:var(--color-background);
6337
- border:1px solid var(--color-border);
6338
- border-radius:var(--radius-2);
6339
- box-shadow:0px 12px 24px 0px #00000012;
6340
- padding:var(--size-lg);
6341
- display:flex;
6342
6453
  flex-direction:column;
6343
6454
  gap:var(--size-md);
6344
- }
6345
- @media screen and (min-width: 641px){
6346
- .mobius-showcase-explore{
6347
- padding:var(--size-xl);
6348
- }
6455
+ padding:var(--size-lg) var(--size-md);
6456
+ background-color:var(--color-azure-200);
6349
6457
  }
6350
6458
  .mobius-showcase-explore__title{
6351
6459
  margin:0;
@@ -6365,13 +6473,49 @@ svg:not(:host).svg-inline--mobius-icon{
6365
6473
  .mobius-showcase-explore__list-item{
6366
6474
  color:var(--color-text);
6367
6475
  }
6368
- .mobius-showcase-explore__cta{
6476
+ .mobius-showcase-explore__form{
6369
6477
  margin-top:auto;
6370
- align-self:flex-start;
6478
+ }
6479
+ .mobius-showcase-explore__cta{
6480
+ width:100%;
6481
+ }
6482
+ .showcase-products-list__item:not(:last-child){
6483
+ margin-bottom:var(--size-sm);
6371
6484
  }
6372
6485
  .showcase-products-list__item__title{
6373
6486
  font-size:var(--font-size-lead);
6374
6487
  }
6488
+ .showcase-product-drawer__trigger{
6489
+ width:fit-content;
6490
+ border-radius:var(--size-lg);
6491
+ }
6492
+ .mobius-showcase-form{
6493
+ width:100%;
6494
+ }
6495
+ .mobius-showcase-form .mobius-button{
6496
+ display:flex;
6497
+ align-items:center;
6498
+ gap:var(--size-xs);
6499
+ width:100%;
6500
+ justify-content:center;
6501
+ font-size:var(--font-size-lead);
6502
+ }
6503
+ .mobius-showcase-form__back{
6504
+ display:flex;
6505
+ justify-content:center;
6506
+ }
6507
+ @media screen and (min-width: 641px){
6508
+ .mobius-showcase-form__back{
6509
+ justify-content:flex-start;
6510
+ }
6511
+ }
6512
+ .mobius-showcase-form__back .mobius-button{
6513
+ font-size:var(--font-size-regular);
6514
+ padding:var(--size-sm) var(--size-lg);
6515
+ }
6516
+ .mobius-showcase-form__accept-showcase-cta{
6517
+ width:fit-content;
6518
+ }
6375
6519
  .mobius-disclaimers{
6376
6520
  margin:var(--size-lg) 0;
6377
6521
  padding:0 var(--size-sm);
@@ -6385,24 +6529,20 @@ svg:not(:host).svg-inline--mobius-icon{
6385
6529
  }
6386
6530
  @media screen and (min-width: 641px){
6387
6531
  .mobius-showcase__layout{
6388
- align-items:flex-start;
6532
+ align-items:stretch;
6389
6533
  flex-direction:row;
6390
6534
  }
6391
6535
  }
6392
- .mobius-showcase{
6393
- flex:2.5;
6394
- min-width:0;
6395
- }
6396
6536
  .mobius-showcase__image-wrapper{
6397
6537
  position:relative;
6398
6538
  overflow:hidden;
6399
6539
  aspect-ratio:100 / 45;
6400
6540
  width:100%;
6401
- border-radius:8px 8px 80px 80px;
6541
+ border-radius:var(--radius-2) var(--radius-2) 80px 80px;
6402
6542
  }
6403
6543
  @media screen and (min-width: 641px){
6404
6544
  .mobius-showcase__image-wrapper{
6405
- border-radius:160px 8px 8px 160px;
6545
+ border-radius:160px var(--radius-2) var(--radius-2) 160px;
6406
6546
  order:2;
6407
6547
  flex-basis:240px;
6408
6548
  flex-shrink:0;
@@ -6421,48 +6561,51 @@ svg:not(:host).svg-inline--mobius-icon{
6421
6561
  object-fit:cover;
6422
6562
  }
6423
6563
  .mobius-showcase__card{
6424
- border-radius:var(--radius-2);
6425
- box-shadow:0px 12px 24px 0px #00000029;
6426
- display:flex;
6427
- flex-direction:column;
6428
- overflow:hidden;
6429
- }
6430
- @media screen and (min-width: 641px){
6431
- .mobius-showcase__card{
6432
- flex-direction:row;
6433
- }
6434
- }
6435
- .mobius-showcase__group{
6436
6564
  display:flex;
6437
6565
  flex-direction:column;
6438
6566
  gap:var(--size-lg);
6439
6567
  margin:var(--size-lg) 0;
6568
+ flex:2.5;
6569
+ min-width:0;
6570
+ border-radius:var(--radius-2);
6571
+ box-shadow:0px 12px 24px 0px #00000029;
6572
+ overflow:hidden;
6573
+ }
6574
+ .mobius-showcase__title{
6575
+ margin-top:0;
6440
6576
  }
6441
6577
  @media screen and (min-width: 641px){
6442
- .mobius-showcase__group{
6578
+ .mobius-showcase__card{
6443
6579
  flex-direction:row;
6444
6580
  margin:0;
6445
6581
  }
6446
6582
  }
6447
6583
  .mobius-showcase__content{
6448
6584
  order:1;
6449
- padding:var(--size-lg);
6585
+ padding:var(--size-md);
6450
6586
  }
6451
6587
  @media screen and (min-width: 641px){
6452
6588
  .mobius-showcase__content{
6453
6589
  order:unset;
6454
- padding:32px 16px;
6455
- padding-left:calc(var(--size-sm) + var(--title-decorator-width));
6590
+ padding:var(--size-lg) var(--size-md);
6456
6591
  }
6457
6592
  }
6458
6593
  .mobius-showcase__heading{
6459
6594
  display:block;
6595
+ margin-top:0;
6460
6596
  margin-bottom:var(--size-xs);
6461
- margin-top:var(--size-md);
6462
6597
  color:var(--color-text);
6463
6598
  font-weight:600;
6464
6599
  text-transform:uppercase;
6465
6600
  }
6601
+ .mobius-showcase__audience{
6602
+ margin-bottom:0;
6603
+ }
6604
+ .mobius-showcase__coverage, .mobius-showcase__audience{
6605
+ color:var(--color-text-medium);
6606
+ font-size:var(--font-size-3);
6607
+ line-height:1.5;
6608
+ }
6466
6609
  .mobius-payment-summary__styled-div{
6467
6610
  display:grid;
6468
6611
  row-gap:var(--size-sm);
@@ -6751,7 +6894,7 @@ svg:not(:host).svg-inline--mobius-icon{
6751
6894
  width:100%;
6752
6895
  }
6753
6896
  }
6754
- .mobius-payment-summary__persistent-product-summary-div > div{
6897
+ .mobius-payment-summary__persistent-product-summary-div > div{
6755
6898
  margin-bottom:20px;
6756
6899
  background-color:var(--color-background);
6757
6900
  }
@@ -6996,6 +7139,36 @@ svg:not(:host).svg-inline--mobius-icon{
6996
7139
  .mobius-quote-details-form__buy_button{
6997
7140
  padding:10px 18px;
6998
7141
  }
7142
+ .mobius-price-block{
7143
+ position:relative;
7144
+ padding-left:16px;
7145
+ }
7146
+ .mobius-price-block::before{
7147
+ content:"";
7148
+ position:absolute;
7149
+ left:0;
7150
+ top:0;
7151
+ bottom:0;
7152
+ width:4px;
7153
+ border-radius:999px;
7154
+ box-shadow:inset 4px 0 #ff6bd6;
7155
+ }
7156
+ .mobius-price-block__price{
7157
+ display:flex;
7158
+ align-items:baseline;
7159
+ gap:6px;
7160
+ }
7161
+ .mobius-price-block__prefix,
7162
+ .mobius-price-block__suffix{
7163
+ font-size:14px;
7164
+ color:#6b6b70;
7165
+ }
7166
+ .mobius-price-block__value{
7167
+ margin:0;
7168
+ font-size:34px;
7169
+ font-weight:600;
7170
+ color:#111118;
7171
+ }
6999
7172
  .mobius-date-picker__container{
7000
7173
  position:relative;
7001
7174
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplybusiness/theme-simplybusiness",
3
- "version": "2.10.10",
3
+ "version": "2.11.0",
4
4
  "main": "dist/index.css",
5
5
  "simplyBusiness": {
6
6
  "publishToPublicNpm": true
@@ -26,15 +26,15 @@
26
26
  "./fonts": "./dist/fonts.css"
27
27
  },
28
28
  "dependencies": {
29
- "@simplybusiness/mobius": "^6.9.4",
30
- "@simplybusiness/mobius-chatbot": "^2.2.4",
31
- "@simplybusiness/mobius-datepicker": "^7.3.5",
32
- "@simplybusiness/mobius-interventions": "^3.3.5",
33
- "@simplybusiness/mobius-journey": "^11.20.5",
34
- "@simplybusiness/theme-core": "^7.14.6"
29
+ "@simplybusiness/mobius": "^6.9.5",
30
+ "@simplybusiness/mobius-chatbot": "^2.2.5",
31
+ "@simplybusiness/mobius-datepicker": "^7.3.6",
32
+ "@simplybusiness/mobius-interventions": "^3.3.7",
33
+ "@simplybusiness/mobius-journey": "^11.21.0",
34
+ "@simplybusiness/theme-core": "^7.14.7"
35
35
  },
36
36
  "devDependencies": {
37
- "build-scripts": "^1.0.2",
37
+ "build-scripts": "^1.0.3",
38
38
  "react": "^19.2.1",
39
39
  "react-dom": "^19.2.1"
40
40
  }
package/src/index.css CHANGED
@@ -75,6 +75,7 @@
75
75
  @import "@simplybusiness/mobius-journey/src/components/QuoteCards/QuoteCard/Upsells/Upsells.css";
76
76
  @import "@simplybusiness/mobius-journey/src/components/QuoteCards/QuoteCard/Ratings/Ratings.css";
77
77
  @import "@simplybusiness/mobius-journey/src/components/QuoteCards/QuoteCards.css";
78
+ @import "@simplybusiness/mobius-journey/src/components/Recommendations/Recommendations.css";
78
79
  @import "@simplybusiness/mobius-journey/src/components/QuoteCards/Section/Section.css";
79
80
  @import "@simplybusiness/mobius-journey/src/components/QuoteCards/Unquotable/Unquotable.css";
80
81
  @import "@simplybusiness/mobius-journey/src/components/QuoteHelp/QuoteHelp.css";
@@ -97,6 +98,7 @@
97
98
  @import "@simplybusiness/mobius-journey/src/components/shared/DialogueModal/DialogueModal.css";
98
99
  @import "@simplybusiness/mobius-journey/src/components/shared/TransferConsentPageUK/styles.css";
99
100
  @import "@simplybusiness/mobius-journey/src/components/shared/QuoteDetailsForm/styles.css";
101
+ @import "@simplybusiness/mobius-journey/src/components/shared/PriceBlock/PriceBlock.css";
100
102
 
101
103
  /* @simplybusiness/mobius-datepicker */
102
104
  @import "@simplybusiness/mobius-datepicker/src/components/DatePicker/DatePicker.css";