wickes-css2 2.97.0-IM-1593-code-width.1 → 2.97.0-develop.2

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.
Files changed (102) hide show
  1. package/build/css/category-main.css +1 -1
  2. package/build/css/components/tile-calculator.css +1 -1
  3. package/build/css/main.css +1 -1
  4. package/build/css/my-account-main-v2.css +1 -1
  5. package/build/css/my-account-main.css +1 -1
  6. package/build/css/pages/page_address-book.css +1 -0
  7. package/build/css/pages/page_change-password.css +1 -0
  8. package/build/css/pages/page_ti.css +1 -1
  9. package/build/css/pages/tradePro-rewards.css +1 -1
  10. package/build/css/pdp-main-before-combine.css +1 -1
  11. package/build/css/pdp-main-critical.css +1 -1
  12. package/build/css/pdp-main-non-critical.css +1 -1
  13. package/build/css/pdp-main.css +1 -1
  14. package/build/js/account-members.min.js +1 -1
  15. package/build/js/add-project-list-id.min.js +1 -1
  16. package/build/js/address-book.min.js +1 -0
  17. package/build/js/basket.min.js +2 -2
  18. package/build/js/bundle.min.js +1 -1
  19. package/build/js/change-password.min.js +1 -0
  20. package/build/js/checkout.min.js +2 -2
  21. package/build/js/emulation.min.js +7 -10
  22. package/build/js/energy-efficiency.min.js +1 -1
  23. package/build/js/general.bundle.min.js +1 -1
  24. package/build/js/global-search.min.js +1 -1
  25. package/build/js/merged-checkout.min.js +2 -2
  26. package/build/js/page/address-book.js +193 -0
  27. package/build/js/page/change-password.js +118 -0
  28. package/build/js/page/utils/errorMesages.js +14 -0
  29. package/build/js/page/utils/helpers.js +18 -0
  30. package/build/js/page/utils/validation.js +5 -1
  31. package/build/js/pdp.bundle.min.js +1 -1
  32. package/build/js/personal-details.min.js +1 -1
  33. package/build/js/plp.bundle.min.js +1 -1
  34. package/build/js/project-list.min.js +6 -2
  35. package/build/js/pstrength.min.js +161 -0
  36. package/build/js/quiz.min.js +1 -1
  37. package/build/js/track-my-order.min.js +1 -1
  38. package/package.json +10 -2
  39. package/src/components/address-card.hbs +40 -0
  40. package/src/components/base/link.hbs +13 -0
  41. package/src/components/leave-modal.hbs +13 -0
  42. package/src/components/my-account/delete-address-modal.hbs +23 -0
  43. package/src/components/my-account/leave-modal.hbs +1 -1
  44. package/src/components/pdp-info-v2.hbs +37 -0
  45. package/src/components/price-block-order.hbs +0 -1
  46. package/src/components/shopping-list-pdf.hbs +7 -37
  47. package/src/components/ti-header.hbs +34 -0
  48. package/src/components/ti-radio.hbs +57 -0
  49. package/src/components/ti-total-area.hbs +32 -0
  50. package/src/components/ti.hbs +791 -0
  51. package/src/components/tile-banner.hbs +13 -0
  52. package/src/components/tile-why-wickes.hbs +32 -0
  53. package/src/components/voucher.hbs +7 -6
  54. package/src/data/data_flooring-installation.json +186 -0
  55. package/src/data/data_voucher_tradePro.json +1 -1
  56. package/src/data/my-account/data_address-book.json +225 -0
  57. package/src/data/my-account/data_change-password.json +85 -0
  58. package/src/elements/form-row.hbs +11 -2
  59. package/src/js/components/general/switchVat.js +0 -11
  60. package/src/js/components/leave-event.js +2 -0
  61. package/src/js/components/pwdstrength.js +21 -0
  62. package/src/js/components/toggle-password-visibility.js +58 -0
  63. package/src/js/emulation/checkout_your-details.js +5 -5
  64. package/src/js/emulation/forms.js +1 -1
  65. package/src/js/emulation/project-list-print.js +1 -4
  66. package/src/js/libs/jquery.pstrength.custom-1.2.0.js +161 -0
  67. package/src/js/page/address-book.js +193 -0
  68. package/src/js/page/change-password.js +118 -0
  69. package/src/js/page/utils/errorMesages.js +14 -0
  70. package/src/js/page/utils/helpers.js +18 -0
  71. package/src/js/page/utils/validation.js +5 -1
  72. package/src/layouts/base.hbs +1 -1
  73. package/src/page_my-account_address-book-form.html +94 -0
  74. package/src/page_my-account_address-book.html +47 -24
  75. package/src/page_my-account_address-book_tradePro.html +45 -18
  76. package/src/page_my-account_change-password.html +62 -29
  77. package/src/page_personal-details-installer.html +6 -4
  78. package/src/page_personal-details.html +2 -0
  79. package/src/partials/header.hbs +1 -1
  80. package/src/scss/common/_common.scss +8 -0
  81. package/src/scss/components/_cards-slider.scss +0 -26
  82. package/src/scss/components/_leave-modal.scss +75 -0
  83. package/src/scss/components/_price-block-critical.scss +3 -3
  84. package/src/scss/components/_price-block.scss +8 -3
  85. package/src/scss/components/_rewards.scss +0 -20
  86. package/src/scss/components/_ti-header.scss +43 -0
  87. package/src/scss/components/_ti-radio.scss +142 -0
  88. package/src/scss/components/_ti-total-area.scss +53 -0
  89. package/src/scss/components/_tile-banner.scss +141 -0
  90. package/src/scss/components/_tile-why-wickes.scss +57 -0
  91. package/src/scss/components/tile-calculator.scss +4 -1
  92. package/src/scss/helpers/_mixins.scss +8 -0
  93. package/src/scss/libs/_pstrength.scss +34 -0
  94. package/src/scss/pages/_my-account_change-password.scss +0 -2
  95. package/src/scss/pages/page_address-book.scss +356 -0
  96. package/src/scss/pages/page_change-password.scss +147 -0
  97. package/src/scss/pages/page_ti.scss +719 -3
  98. package/src/scss/pages/tradePro-rewards.scss +1 -0
  99. package/src/sitemap.html +3 -4
  100. package/src/page_activate-trade-pro-api-flow.html +0 -62
  101. package/src/page_my-shopping-list-pdf-vat.html +0 -7
  102. /package/src/components/{button.hbs → base/button.hbs} +0 -0
@@ -2,7 +2,9 @@
2
2
 
3
3
  .ti {
4
4
  &__step,
5
- &__estimate {
5
+ &__estimate,
6
+ &__new,
7
+ &__next {
6
8
  display: flex;
7
9
  }
8
10
 
@@ -13,9 +15,43 @@
13
15
  align-content: flex-start;
14
16
  justify-content: flex-start;
15
17
 
16
- &1 {
18
+ &1,
19
+ &2-inactive,
20
+ &2-active,
21
+ &3-active {
17
22
  @include ti-step-state;
18
23
  }
24
+
25
+ &2-inactive {
26
+ & .ti__cost-ready {
27
+ display: flex;
28
+ }
29
+ }
30
+
31
+ &2-active {
32
+ & .ti__cost {
33
+ display: flex;
34
+ }
35
+ }
36
+
37
+ &3-active {
38
+ & .ti__choose {
39
+ display: flex;
40
+ }
41
+ }
42
+ }
43
+
44
+ &__step1-return,
45
+ &__step2-return {
46
+ position: absolute;
47
+ top: 50%;
48
+ right: 0;
49
+ cursor: pointer;
50
+ font-size: $font-size-base;
51
+ font-weight: 500;
52
+ line-height: 22px;
53
+ transform: translateY(-50%);
54
+ display: none;
19
55
  }
20
56
 
21
57
  &__card,
@@ -24,7 +60,11 @@
24
60
  }
25
61
 
26
62
  &__estimate,
27
- &__error {
63
+ &__error,
64
+ &__new,
65
+ &__next,
66
+ &__cost,
67
+ &__choose {
28
68
  @include make-col(12);
29
69
  }
30
70
 
@@ -92,6 +132,521 @@
92
132
  }
93
133
  }
94
134
 
135
+ &__new {
136
+ justify-content: center;
137
+
138
+ &-link {
139
+ font-size: $font-size-base;
140
+ font-weight: bold;
141
+ line-height: 22px;
142
+
143
+ a {
144
+ position: relative;
145
+ top: 5px;
146
+ cursor: pointer;
147
+ border-bottom: 1px solid $blue;
148
+ text-decoration: none;
149
+
150
+ &:hover {
151
+ border-bottom-color: $link-hover-color;
152
+ }
153
+ }
154
+ }
155
+ }
156
+
157
+ &__next {
158
+ margin: 20px 0 0;
159
+ justify-content: center;
160
+ align-items: center;
161
+ align-content: center;
162
+
163
+ &-two {
164
+ display: none;
165
+ }
166
+
167
+ & .btn {
168
+ max-width: 380px;
169
+ display: flex;
170
+ justify-content: center;
171
+ align-items: center;
172
+ }
173
+
174
+ &-button-arrow {
175
+ @include primary-text;
176
+ font-weight: 700;
177
+ text-align: center;
178
+ padding-left: 10px;
179
+ }
180
+ }
181
+
182
+ &__cost {
183
+ display: none;
184
+ flex-wrap: wrap;
185
+ padding-top: 15px;
186
+
187
+ &_input-invalid {
188
+ .ti__cost {
189
+ &_removal-input {
190
+ & input {
191
+ border-color: $red;
192
+ }
193
+ }
194
+
195
+ &_removal_error-msg {
196
+ display: block;
197
+ }
198
+ }
199
+ }
200
+
201
+ &_error-msg,
202
+ &_removal_error-msg {
203
+ @include additional-text;
204
+ width: 100%;
205
+ margin: 8px 0 0;
206
+ color: $red;
207
+ display: none;
208
+ }
209
+
210
+ &-ready,
211
+ &_postcode,
212
+ &_removal,
213
+ &_levelling,
214
+ &_options {
215
+ @include make-col(12);
216
+ }
217
+
218
+ &-ready {
219
+ display: none;
220
+ flex-wrap: wrap;
221
+ }
222
+
223
+ &_postcode {
224
+ padding: 30px 20px;
225
+ background: $gray-bg;
226
+
227
+ &-row,
228
+ &-label {
229
+ @include primary-text;
230
+ font-weight: 500;
231
+ }
232
+
233
+ &-row {
234
+ display: flex;
235
+ flex-wrap: wrap;
236
+ align-items: center;
237
+ margin: 0;
238
+ }
239
+
240
+ &-label {
241
+ display: block;
242
+ position: relative;
243
+
244
+ &::before {
245
+ content: '*';
246
+ display: inline-block;
247
+ color: $red;
248
+ padding-right: 4px;
249
+ }
250
+ }
251
+
252
+ &-input {
253
+ padding-left: 15px;
254
+ width: 100px;
255
+
256
+ & input {
257
+ padding: 8px;
258
+
259
+ .ti__cost-invalid & {
260
+ border-color: $red;
261
+ }
262
+ }
263
+ }
264
+ }
265
+
266
+ &_removal,
267
+ &_levelling {
268
+ margin: 15px 0;
269
+ padding: 20px;
270
+ background: $gray-bg;
271
+
272
+ &-title,
273
+ &-label {
274
+ @include primary-text;
275
+ font-weight: 500;
276
+ }
277
+
278
+ &-title {
279
+ margin: 0;
280
+ display: flex;
281
+
282
+ &::before {
283
+ content: '*';
284
+ display: inline-block;
285
+ color: $red;
286
+ padding-right: 8px;
287
+ }
288
+ }
289
+
290
+ &-radio {
291
+ margin: 10px 0 0;
292
+
293
+ & label {
294
+ padding: 0 35px;
295
+ }
296
+ }
297
+
298
+ &-row {
299
+ margin: 15px 0 10px;
300
+ display: none;
301
+ align-items: center;
302
+
303
+ &.ti__cost_removal-row {
304
+ margin: 15px 0 0;
305
+ }
306
+
307
+ .ti__cost_removal-yes & {
308
+ display: flex;
309
+ }
310
+ }
311
+
312
+ &-label {
313
+ padding-right: 15px;
314
+ }
315
+
316
+ &-input {
317
+ width: 60px;
318
+ flex-shrink: 0;
319
+
320
+ & input {
321
+ text-align: center;
322
+ padding: 8px;
323
+ }
324
+ }
325
+ }
326
+
327
+ &_options {
328
+ padding: 20px;
329
+ background: $gray-bg;
330
+ margin: 0;
331
+
332
+ & .collapsed .icon {
333
+ position: relative;
334
+ transform: rotate(180deg);
335
+ }
336
+
337
+ &-title,
338
+ &-what {
339
+ font-size: 1rem;
340
+ font-weight: 500;
341
+ display: flex;
342
+ }
343
+
344
+ &-title {
345
+ &::before {
346
+ content: '*';
347
+ display: inline-block;
348
+ color: $red;
349
+ padding-right: 8px;
350
+ }
351
+ }
352
+
353
+ &-what {
354
+ color: $blue;
355
+ line-height: 19px;
356
+ text-decoration: underline;
357
+ cursor: pointer;
358
+ align-items: center;
359
+
360
+ & span:first-child {
361
+ padding-right: 2px;
362
+ }
363
+
364
+ & .icon {
365
+ width: 15px;
366
+ height: 100%;
367
+ display: block;
368
+ line-height: inherit;
369
+ }
370
+ }
371
+
372
+ &-list {
373
+ display: flex;
374
+ flex-wrap: wrap;
375
+ margin-top: -1px;
376
+ }
377
+
378
+ &-item {
379
+ @include make-col(4);
380
+ margin-top: 15px;
381
+ padding-right: 5px;
382
+ }
383
+ }
384
+
385
+ &_options,
386
+ &_levelling {
387
+ &-title {
388
+ line-height: 24px;
389
+ margin-bottom: 5px;
390
+ }
391
+
392
+ & .notification {
393
+ margin-top: 5px;
394
+ margin-bottom: 0;
395
+ padding: 8px 25px 8px 15px;
396
+ line-height: 22px;
397
+ }
398
+
399
+ & .collapsed .icon {
400
+ position: relative;
401
+ transform: rotate(180deg);
402
+ }
403
+ }
404
+
405
+ &_levelling {
406
+ display: none;
407
+
408
+ &_open {
409
+ display: block;
410
+ margin-bottom: 0;
411
+ }
412
+ }
413
+
414
+ &-invalid,
415
+ &-invalid-2 {
416
+ & .ti__cost_error-msg {
417
+ display: block;
418
+ }
419
+ }
420
+ }
421
+
422
+ &__choose {
423
+ display: none;
424
+ flex-wrap: wrap;
425
+
426
+ &_title {
427
+ width: 100%;
428
+ padding: 20px 0 10px;
429
+ margin-bottom: 0;
430
+ }
431
+
432
+ &_first {
433
+ width: 100%;
434
+
435
+ .notification_general {
436
+ margin: 0;
437
+ }
438
+ }
439
+
440
+ &_divider {
441
+ @include make-col(1);
442
+ font-size: 1rem;
443
+ font-weight: bold;
444
+ position: relative;
445
+ text-align: center;
446
+ }
447
+
448
+ &_second {
449
+ @include make-col(12);
450
+ padding-left: 0;
451
+
452
+ .choose {
453
+ height: auto;
454
+ display: flex;
455
+ flex-direction: row;
456
+ justify-content: start;
457
+ padding: 10px 20px;
458
+ }
459
+ }
460
+
461
+ .ti__new {
462
+ margin: 20px 0 25px;
463
+ color: $blue;
464
+
465
+ &:hover {
466
+ color: $link-hover-color;
467
+ }
468
+ }
469
+ }
470
+
471
+ &__overview {
472
+ @include make-col(7);
473
+
474
+ &-price {
475
+ @include make-col(5);
476
+ padding-top: 15px;
477
+ padding-left: 20px;
478
+ display: flex;
479
+ flex-wrap: wrap;
480
+ align-items: flex-start;
481
+ align-content: flex-start;
482
+
483
+ &_total {
484
+ height: 48px;
485
+
486
+ &::after {
487
+ content: '';
488
+ display: block;
489
+ position: absolute;
490
+ bottom: 0;
491
+ left: 20px;
492
+ width: calc(100% - 40px);
493
+ border-bottom: 1px solid $gray;
494
+ }
495
+
496
+ &-text {
497
+ font-size: 1.125rem;
498
+ font-weight: 700;
499
+ line-height: 46px;
500
+ }
501
+
502
+ &-value {
503
+ font-size: 1.5rem;
504
+ font-weight: 700;
505
+ line-height: 46px;
506
+ color: $blue-dark;
507
+ }
508
+ }
509
+
510
+ &_total,
511
+ &_area,
512
+ &_head,
513
+ &_access,
514
+ &_floor {
515
+ width: 100%;
516
+ position: relative;
517
+ display: flex;
518
+ justify-content: flex-start;
519
+ padding: 0 20px;
520
+ background: $gray-bg;
521
+ align-items: baseline;
522
+
523
+ &-spec {
524
+ font-size: $font-size-base;
525
+ font-weight: 700;
526
+ line-height: 22px;
527
+ }
528
+
529
+ &-rest {
530
+ margin-left: auto;
531
+ }
532
+ }
533
+
534
+ &_head {
535
+ padding-top: 10px;
536
+ height: 38px;
537
+ font-size: 1.5rem;
538
+ font-weight: 500;
539
+ line-height: 2rem;
540
+ }
541
+
542
+ &_area {
543
+ padding-top: 10px;
544
+ height: 43px;
545
+
546
+ &-wline {
547
+ &::after {
548
+ content: '';
549
+ display: block;
550
+ position: absolute;
551
+ bottom: 0;
552
+ left: 20px;
553
+ width: calc(100% - 40px);
554
+ border-bottom: 1px solid $gray;
555
+ }
556
+ }
557
+
558
+ }
559
+
560
+ &_floor,
561
+ &_access {
562
+ display: flex;
563
+ flex-direction: column;
564
+
565
+ &-head,
566
+ &-item {
567
+ @include make-col(12);
568
+ display: flex;
569
+ width: 100%;
570
+ }
571
+
572
+ &-head {
573
+ font-weight: bold;
574
+ padding-top: 10px;
575
+ }
576
+
577
+ &-spec {
578
+ @include make-col(7);
579
+ flex-direction: row;
580
+ font-weight: normal;
581
+ }
582
+
583
+ &-rest {
584
+ @include make-col(5);
585
+ text-align: right;
586
+ font-size: 1rem;
587
+ font-weight: bold;
588
+ }
589
+ }
590
+
591
+ &-estim,
592
+ &_floor-only {
593
+ width: 100%;
594
+ padding-top: 10px;
595
+ background: $gray-bg;
596
+
597
+ & .ti__overview-price_total {
598
+ padding-bottom: 10px;
599
+ padding-top: 15px;
600
+
601
+ &::before {
602
+ content: '';
603
+ display: block;
604
+ position: absolute;
605
+ top: 0;
606
+ left: 20px;
607
+ width: calc(100% - 40px);
608
+ border-top: 1px solid $gray;
609
+ }
610
+ }
611
+ }
612
+
613
+ &_floor-only {
614
+ & .ti__overview-price_total {
615
+ padding-top: 0;
616
+ padding-bottom: 0;
617
+
618
+ &::after {
619
+ display: none;
620
+ }
621
+ }
622
+ }
623
+
624
+ &_shortcut {
625
+ width: 100%;
626
+ background: $gray-bg;
627
+ position: relative;
628
+ padding: 15px 20px 10px;
629
+
630
+ &-text,
631
+ &-link {
632
+ font-size: $font-size-base;
633
+ line-height: 22px;
634
+ text-align: right;
635
+ margin-bottom: 0;
636
+ }
637
+
638
+ &-text {
639
+ font-weight: 400;
640
+ }
641
+
642
+ &-link {
643
+ font-weight: 500;
644
+ text-decoration: underline;
645
+ }
646
+ }
647
+ }
648
+ }
649
+
95
650
  &__prod {
96
651
  margin-top: 15px;
97
652
 
@@ -123,6 +678,66 @@
123
678
  }
124
679
  }
125
680
 
681
+ .step1-inactive,
682
+ .step2-inactive,
683
+ .step3-inactive {
684
+ display: none;
685
+ }
686
+
687
+ .ti__step1-inactive {
688
+ & .step1-active {
689
+ display: none;
690
+ }
691
+
692
+ & .step1-inactive {
693
+ display: flex;
694
+ }
695
+
696
+ & .ti__estimate {
697
+ @include make-col(5);
698
+ }
699
+
700
+ & .ti__total {
701
+ @include make-col(12);
702
+ padding-left: 20px;
703
+ }
704
+
705
+ & .ti-total-area {
706
+ padding: 15px 20px 3px;
707
+ }
708
+ }
709
+
710
+ .ti__step2-inactive {
711
+ & .step2-active {
712
+ display: none;
713
+ }
714
+
715
+ & .step2-inactive {
716
+ display: flex;
717
+ }
718
+ }
719
+
720
+ .btn__text-desktop {
721
+ display: block;
722
+ }
723
+
724
+ .btn__text-mobile {
725
+ display: none;
726
+ }
727
+
728
+ .ti-divider-position {
729
+ bottom: 30px;
730
+ }
731
+
732
+
733
+ @include media-breakpoint-up(lg) {
734
+ .ti {
735
+ &__choose_divider {
736
+ line-height: 145px;
737
+ }
738
+ }
739
+ }
740
+
126
741
  @include media-breakpoint-up(md) {
127
742
  .ti {
128
743
  &__prod {
@@ -179,6 +794,55 @@
179
794
  margin-top: 10px;
180
795
  }
181
796
 
797
+ &__next {
798
+ margin: 15px 0 0;
799
+
800
+ & .btn {
801
+ white-space: normal;
802
+ max-width: 320px;
803
+ }
804
+ }
805
+
806
+ &__cost {
807
+ padding-top: 10px;
808
+
809
+ &_postcode,
810
+ &_removal,
811
+ &_levelling,
812
+ &_options {
813
+ padding: 20px 15px;
814
+ }
815
+
816
+ &_removal,
817
+ &_levelling {
818
+ margin: 10px 0;
819
+ }
820
+ }
821
+
822
+ &__choose {
823
+ &_title,
824
+ &_divider {
825
+ padding: 15px 0;
826
+ }
827
+
828
+ &_first,
829
+ &_second,
830
+ &_divider {
831
+ @include make-col(12);
832
+ }
833
+
834
+ &_divider {
835
+ // sass-lint:disable no-important
836
+ padding-top: 0;
837
+ }
838
+
839
+ &_first {
840
+ .ti__error {
841
+ margin-bottom: 15px;
842
+ }
843
+ }
844
+ }
845
+
182
846
  &__overview {
183
847
  @include make-col(12);
184
848
  margin-bottom: 15px;
@@ -250,6 +914,20 @@
250
914
  }
251
915
  }
252
916
 
917
+ &__step1-inactive {
918
+ & .ti__estimate {
919
+ @include make-col(12);
920
+ }
921
+
922
+ & .ti__total {
923
+ padding-left: 0;
924
+ }
925
+
926
+ & .ti-total-area {
927
+ padding: 15px 15px 5px;
928
+ }
929
+ }
930
+
253
931
  &__total {
254
932
  .bw {
255
933
  .store__name {
@@ -262,6 +940,12 @@
262
940
 
263
941
  @include media-breakpoint-down(sm) {
264
942
  .ti {
943
+ &__step1-return,
944
+ &__step2-return {
945
+ transform: none;
946
+ top: 22px;
947
+ }
948
+
265
949
  &__floors {
266
950
  @include make-col(12);
267
951
  padding-right: 0;
@@ -273,6 +957,38 @@
273
957
  margin-top: 10px;
274
958
  }
275
959
 
960
+ &__next {
961
+ margin: 10px 0 0;
962
+
963
+ & .btn {
964
+ max-width: 100%;
965
+ }
966
+ }
967
+
968
+ &__cost {
969
+ &_options {
970
+ &-what {
971
+ font-size: $font-size-base;
972
+ }
973
+
974
+ &-list {
975
+ margin-top: 0;
976
+ }
977
+
978
+ &-item {
979
+ @include make-col(12);
980
+ margin-top: 10px;
981
+ padding-right: 0;
982
+ }
983
+ }
984
+ }
985
+
986
+ &__choose {
987
+ &_title {
988
+ padding: 10px 0;
989
+ }
990
+ }
991
+
276
992
  &__prod {
277
993
  display: block;
278
994
  margin: 10px 0;