wickes-css2 2.97.0-IM-1593-code-width.1 → 2.97.0-develop.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.
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
@@ -0,0 +1,142 @@
1
+ .choose {
2
+ width: 100%;
3
+ background: $gray-bg;
4
+ padding: 20px;
5
+ height: auto;
6
+ display: flex;
7
+ flex-direction: column;
8
+
9
+ &__info {
10
+ padding-top: 10px;
11
+ padding-left: 34px;
12
+ font-size: .875rem;
13
+ font-weight: 700;
14
+ line-height: 22px;
15
+ margin-bottom: 0;
16
+ }
17
+
18
+ &__list {
19
+ padding-left: 50px;
20
+ list-style-position: outside;
21
+ margin-bottom: 0;
22
+ }
23
+
24
+ &__item {
25
+ font-size: .875rem;
26
+ font-weight: 400;
27
+ line-height: 24px;
28
+ }
29
+
30
+ &__add {
31
+ text-align: center;
32
+
33
+ .ti__phone {
34
+ padding: 6px;
35
+ margin-right: .75rem;
36
+ border: 1px solid $blue;
37
+ border-radius: 50%;
38
+ text-align: center;
39
+ color: $blue;
40
+ align-self: center;
41
+ display: flex;
42
+ }
43
+
44
+ .contact-info {
45
+ margin: 0;
46
+
47
+ a {
48
+ text-decoration: none;
49
+
50
+ &:hover {
51
+ text-decoration: underline;
52
+ }
53
+ }
54
+ }
55
+ }
56
+
57
+ &__callback {
58
+ .form-details {
59
+ display: none;
60
+
61
+ &_open {
62
+ display: block;
63
+
64
+ .form-row__error {
65
+ display: none;
66
+ }
67
+ }
68
+
69
+ &__info {
70
+ font-weight: bold;
71
+ }
72
+
73
+ .warning-required {
74
+ margin-top: 10px;
75
+ margin-bottom: 20px;
76
+ }
77
+ }
78
+ }
79
+ }
80
+
81
+ @include media-breakpoint-down(md) {
82
+ .choose {
83
+ padding: 15px;
84
+ }
85
+ }
86
+
87
+ @include media-breakpoint-down(sm) {
88
+ .choose {
89
+ &__callback {
90
+ & label {
91
+ padding-bottom: 10px;
92
+ }
93
+ }
94
+
95
+ &__callback,
96
+ &__add {
97
+ height: auto;
98
+ }
99
+
100
+ &__add {
101
+ .ti__phone {
102
+ align-self: baseline;
103
+ }
104
+
105
+ .contact-info {
106
+ text-align: left;
107
+ }
108
+ }
109
+
110
+ &__info {
111
+ padding-left: 0;
112
+ }
113
+
114
+ &__list {
115
+ padding-left: 15px;
116
+ }
117
+
118
+ .form-details {
119
+ .form-row {
120
+ padding: 0;
121
+ }
122
+ }
123
+ }
124
+ }
125
+
126
+ @include media-breakpoint-up(md) {
127
+ .ti__choose {
128
+ .choose {
129
+ &__callback {
130
+ & label {
131
+ margin-bottom: .75rem;
132
+ }
133
+
134
+ .form-details {
135
+ margin-left: 34px;
136
+ width: 50%;
137
+ margin-bottom: 25px;
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
@@ -3,11 +3,50 @@
3
3
  background: $gray-bg;
4
4
  padding: 20px;
5
5
 
6
+ & .step1-inactive {
7
+ width: 100%;
8
+ flex-wrap: wrap;
9
+ }
10
+
6
11
  &__title {
7
12
  font-weight: 500;
8
13
  margin-bottom: 13px;
9
14
  }
10
15
 
16
+ &__waste {
17
+ width: 100%;
18
+ text-align: right;
19
+ font-size: .875rem;
20
+ font-weight: 400;
21
+ line-height: 1;
22
+ justify-content: flex-end;
23
+ margin-bottom: 0;
24
+ padding-bottom: 5px;
25
+
26
+ .ti__total:not(.ti__total-waste) & {
27
+ display: none;
28
+ }
29
+ }
30
+
31
+ &__row {
32
+ width: 100%;
33
+ display: flex;
34
+ justify-content: space-between;
35
+ padding-bottom: 5px;
36
+
37
+ &-specification {
38
+ font-size: .875rem;
39
+ font-weight: 700;
40
+ line-height: 22px;
41
+ }
42
+
43
+ &-value {
44
+ font-size: .875rem;
45
+ font-weight: 400;
46
+ line-height: 22px;
47
+ }
48
+ }
49
+
11
50
  &__accordion-wrap {
12
51
  color: $black;
13
52
  }
@@ -117,6 +156,12 @@
117
156
  font-size: 1rem;
118
157
  font-weight: 500;
119
158
  line-height: 24px;
159
+
160
+ .ti__step1-inactive & {
161
+ font-size: .875rem;
162
+ font-weight: 700;
163
+ line-height: 22px;
164
+ }
120
165
  }
121
166
 
122
167
  &__form-row {
@@ -155,6 +200,10 @@
155
200
  background: $gray-bg;
156
201
  padding: 5px 20px;
157
202
 
203
+ .ti__step1-inactive & {
204
+ padding: 0 20px;
205
+ }
206
+
158
207
  &::before {
159
208
  content: '';
160
209
  display: block;
@@ -202,6 +251,10 @@
202
251
  display: none;
203
252
  }
204
253
 
254
+ .ti__step1-inactive & {
255
+ padding: 8px 15px;
256
+ }
257
+
205
258
  &-value {
206
259
  font-size: 1.125rem;
207
260
  line-height: 24px;
@@ -0,0 +1,141 @@
1
+ @import '../helpers/helpers';
2
+
3
+ .tile-estimation {
4
+ &__banner {
5
+ position: relative;
6
+ width: 100%;
7
+ height: 240px;
8
+ background: url('./../img/placeholders/tile-banner-desktop.jpg') no-repeat center center;
9
+ background-size: cover;
10
+
11
+ @include media-breakpoint-only(md) {
12
+ background-image: url('./../img/placeholders/tile-banner-tablet.jpg');
13
+ height: 200px;
14
+ }
15
+
16
+ @include media-breakpoint-down(sm) {
17
+ background-image: url('./../img/placeholders/tile-banner-mobile.jpg');
18
+ height: 220px;
19
+ }
20
+
21
+ &-logo {
22
+ height: auto;
23
+ position: absolute;
24
+ top: 0;
25
+
26
+ @include media-breakpoint-up(lg) {
27
+ right: 20px;
28
+ width: 90px;
29
+ }
30
+
31
+ @include media-breakpoint-only(md) {
32
+ left: 15px;
33
+ width: 75px;
34
+ }
35
+
36
+ @include media-breakpoint-down(sm) {
37
+ right: 10px;
38
+ width: 60px;
39
+ }
40
+ }
41
+
42
+ &-info {
43
+ position: relative;
44
+ left: 20px;
45
+
46
+ @include media-breakpoint-up(lg) {
47
+ max-width: 570px;
48
+ top: 50px;
49
+ }
50
+
51
+ @include media-breakpoint-only(md) {
52
+ top: 50%;
53
+ transform: translateY(-50%);
54
+ max-width: 360px;
55
+ left: 15px;
56
+ }
57
+
58
+ @include media-breakpoint-down(sm) {
59
+ max-width: 170px;
60
+ top: 50%;
61
+ transform: translateY(-50%);
62
+ left: 10px;
63
+ }
64
+
65
+ &::after {
66
+ content: '';
67
+ position: absolute;
68
+ bottom: -20px;
69
+
70
+ width: 90px;
71
+ border-top: 3px solid $blue-dark;
72
+
73
+ @include media-breakpoint-up(lg) {
74
+ left: 50%;
75
+ transform: translateX(-50%);
76
+ }
77
+
78
+ @include media-breakpoint-only(md) {
79
+ left: 0;
80
+ }
81
+
82
+ @include media-breakpoint-down(sm) {
83
+ left: 0;
84
+ width: 25px;
85
+ bottom: -15px;
86
+ }
87
+ }
88
+ }
89
+
90
+ &-header {
91
+ text-align: center;
92
+ font-size: 1.375rem;
93
+ font-weight: 700;
94
+ line-height: 32px;
95
+ margin-bottom: 0;
96
+
97
+ @include media-breakpoint-only(md) {
98
+ text-align: left;
99
+ max-width: 360px;
100
+ font-size: 1rem;
101
+ line-height: 23px;
102
+ }
103
+
104
+ @include media-breakpoint-down(sm) {
105
+ text-align: left;
106
+ max-width: 170px;
107
+ font-size: .875rem;
108
+ font-weight: 700;
109
+ line-height: 19px;
110
+ }
111
+ }
112
+
113
+ &-text {
114
+ text-align: center;
115
+ max-width: 430px;
116
+ font-size: 1.125rem;
117
+ font-weight: 400;
118
+ line-height: 24px;
119
+ margin-bottom: 0;
120
+
121
+ @include media-breakpoint-up(lg) {
122
+ margin: 10px auto 0;
123
+ }
124
+
125
+ @include media-breakpoint-only(md) {
126
+ margin-top: 5px;
127
+ text-align: left;
128
+ max-width: 320px;
129
+ font-size: $font-size-13;
130
+ }
131
+
132
+ @include media-breakpoint-down(sm) {
133
+ max-width: 155px;
134
+ text-align: left;
135
+ font-size: $font-size-13;
136
+ font-weight: 400;
137
+ line-height: 17px;
138
+ }
139
+ }
140
+ }
141
+ }
@@ -0,0 +1,57 @@
1
+ .why-wickes {
2
+ padding: 20px 0;
3
+
4
+ &__header {
5
+ margin: 10px 0 0;
6
+ font-size: 1.5rem;
7
+ font-weight: 300;
8
+ line-height: 32px;
9
+
10
+ @include media-breakpoint-down(sm) {
11
+ font-size: 1.25rem;
12
+ margin: 0;
13
+ }
14
+ }
15
+
16
+ &__list {
17
+ margin-left: 5px;
18
+ padding-left: 0;
19
+ margin-bottom: 0;
20
+ }
21
+
22
+ &__item {
23
+ padding-top: 20px;
24
+ list-style-type: none;
25
+ display: flex;
26
+ align-items: flex-start;
27
+
28
+ @include media-breakpoint-down(sm) {
29
+ padding-top: 10px;
30
+ }
31
+ }
32
+
33
+ &__info {
34
+ font-size: 1.125rem;
35
+ font-weight: 300;
36
+ line-height: 24px;
37
+ margin-bottom: 0;
38
+
39
+ @include media-breakpoint-down(sm) {
40
+ font-size: 1rem;
41
+ }
42
+ }
43
+
44
+ &__bullet {
45
+ font-size: 1.125rem;
46
+ font-weight: 300;
47
+ line-height: 24px;
48
+ color: $green;
49
+ text-align: center;
50
+ height: 24px;
51
+ margin-right: 20px;
52
+
53
+ @include media-breakpoint-down(md) {
54
+ margin-right: 15px;
55
+ }
56
+ }
57
+ }
@@ -1,4 +1,7 @@
1
- @import '../helpers/helpers';
1
+ @import './tile-banner';
2
2
  @import './tile-product';
3
+ @import './tile-why-wickes';
4
+ @import './ti-header';
3
5
  @import './ti-floor';
4
6
  @import './ti-total-area';
7
+ @import './ti-radio';
@@ -139,3 +139,11 @@
139
139
  display: -webkit-box;
140
140
  -webkit-line-clamp: $line-clamp;
141
141
  }
142
+
143
+ @mixin font-size($font-size-px) {
144
+ font-size: #{$font-size-px / 16}rem;
145
+ }
146
+
147
+ @mixin line-height($line-height-px) {
148
+ line-height: #{$line-height-px / 16}rem;
149
+ }
@@ -0,0 +1,34 @@
1
+ .pstrength {
2
+ &-bars {
3
+ display: flex;
4
+ gap: 2px;
5
+ margin-top: 8px;
6
+ }
7
+
8
+ &-bar {
9
+ height: 4px;
10
+ width: 100%;
11
+ background-color: $gray-light;
12
+ border-radius: 4px;
13
+
14
+ &.red {
15
+ background-color: $red;
16
+ }
17
+
18
+ &.orange {
19
+ background-color: $orange;
20
+ }
21
+
22
+ &.green {
23
+ background-color: $green;
24
+ }
25
+ }
26
+
27
+ &-info {
28
+ @include font-size(12);
29
+ @include line-height(16);
30
+ margin-top: 4px;
31
+ color: $gray-dark;
32
+ font-weight: 400;
33
+ }
34
+ }
@@ -1,7 +1,6 @@
1
1
  @import '../helpers/helpers';
2
2
 
3
3
  .form-change-password {
4
-
5
4
  &-ASM {
6
5
  height: 100%;
7
6
 
@@ -52,7 +51,6 @@
52
51
  }
53
52
 
54
53
  .form-row__action {
55
-
56
54
  .form-row__col-btn {
57
55
  @include media-breakpoint-down(sm) {
58
56
  @include make-col(12);