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
@@ -0,0 +1,356 @@
1
+ @import '../helpers/helpers';
2
+ @import '../components/leave-modal';
3
+
4
+ .address-book {
5
+ padding-top: 0;
6
+ padding-bottom: 40px;
7
+
8
+ .globalMessages {
9
+ .notification {
10
+ margin-bottom: 8px;
11
+
12
+ &:first-child {
13
+ margin-top: 16px;
14
+ }
15
+ }
16
+ }
17
+
18
+ &__header {
19
+ margin-top: 16px;
20
+
21
+ .title {
22
+ @include font-size(26);
23
+ @include line-height(36);
24
+ font-weight: 500;
25
+ margin-bottom: 0;
26
+ text-align: left;
27
+ }
28
+
29
+ .btn--add-address {
30
+ margin-top: 24px;
31
+ }
32
+ }
33
+
34
+ &__items {
35
+ display: grid;
36
+ margin-top: 24px;
37
+ grid-gap: 16px;
38
+ }
39
+
40
+ .icon-wrap {
41
+ @include font-size(16);
42
+ display: inline-flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ width: 24px;
46
+ height: 24px;
47
+ margin-right: 4px;
48
+ }
49
+
50
+ .address-card {
51
+ position: relative;
52
+ padding: 24px;
53
+ display: flex;
54
+ justify-content: space-between;
55
+ flex-direction: column;
56
+ border-radius: 4px;
57
+ border: 1px solid $gray;
58
+
59
+ &--add {
60
+ align-items: center;
61
+ justify-content: center;
62
+ grid-gap: 24px;
63
+ min-height: 328px;
64
+
65
+ .icon-wrap {
66
+ @include font-size(32);
67
+ margin-right: 0;
68
+ width: 48px;
69
+ height: 48px;
70
+ color: $blue-satin;
71
+ }
72
+
73
+ .description {
74
+ @include font-size(16);
75
+ @include line-height(24);
76
+ font-weight: 500;
77
+ margin-bottom: 0;
78
+ }
79
+ }
80
+
81
+ .status {
82
+ display: flex;
83
+ align-items: center;
84
+ position: absolute;
85
+ right: 0;
86
+ top: 0;
87
+ background: $blue;
88
+ color: $white;
89
+ padding: 9px 9px 9px 16px;
90
+ border-radius: 0 0 0 24px;
91
+ }
92
+
93
+ &.default {
94
+ border-color: $blue;
95
+ }
96
+
97
+ &__type {
98
+ @include font-size(16);
99
+ @include line-height(24);
100
+ font-weight: 500;
101
+ margin-bottom: 16px;
102
+
103
+ .type-icon {
104
+ margin-right: 11px;
105
+ }
106
+ }
107
+
108
+ &__information {
109
+ margin-bottom: 16px;
110
+ }
111
+
112
+ &__ctas {
113
+ display: flex;
114
+ align-items: center;
115
+ margin-top: auto;
116
+ grid-gap: 24px;
117
+
118
+ .link {
119
+ @include font-size(14);
120
+ @include line-height(22);
121
+ font-weight: 500;
122
+ text-decoration: none;
123
+ display: flex;
124
+ align-items: center;
125
+
126
+ &:hover {
127
+ text-decoration: underline;
128
+ }
129
+ }
130
+
131
+ .link--set-default {
132
+ margin-left: auto;
133
+ }
134
+ }
135
+
136
+ .information {
137
+ @include font-size(16);
138
+ @include line-height(24);
139
+ margin-bottom: 0;
140
+
141
+ & + .information {
142
+ margin-top: 4px;
143
+ }
144
+ }
145
+ }
146
+
147
+ &__form {
148
+ margin-top: 24px;
149
+
150
+ .form-row__label,
151
+ .form-row__field {
152
+ padding: 0;
153
+ margin: 0;
154
+ }
155
+
156
+ .form-row__error {
157
+ padding: 0;
158
+ }
159
+
160
+ .form-row__label {
161
+ @include font-size(16);
162
+ @include line-height(24);
163
+ font-weight: 500;
164
+ margin-bottom: 8px;
165
+ }
166
+
167
+ .form-row {
168
+ margin-bottom: 24px;
169
+ padding: 0;
170
+ margin-right: 0;
171
+ margin-left: 0;
172
+
173
+ &.row-title {
174
+ max-width: 112px;
175
+ }
176
+
177
+ &--required {
178
+ @include font-size(12);
179
+ @include line-height(16);
180
+ margin-bottom: 24px;
181
+ }
182
+ }
183
+
184
+ &-ctas {
185
+ margin-top: 24px;
186
+ display: flex;
187
+ grid-gap: 16px;
188
+ }
189
+ }
190
+ }
191
+
192
+ .delete-modal {
193
+ .modal-dialog {
194
+ margin-top: 40px;
195
+ margin-bottom: 40px;
196
+ }
197
+
198
+ .modal-box__row {
199
+ width: 100%;
200
+ }
201
+
202
+ .modal-header {
203
+ padding: 20px 16px;
204
+
205
+ .modal-box__inner-columns {
206
+ display: flex;
207
+ align-items: center;
208
+ }
209
+
210
+ .modal-title {
211
+ @include font-size(18);
212
+ @include line-height(24);
213
+ font-weight: 500;
214
+ padding-right: 5px;
215
+ }
216
+
217
+ .icon-wrap {
218
+ min-width: 40px;
219
+ height: 40px;
220
+ font-size: 1.65rem;
221
+ color: $gray;
222
+ margin-right: 8px;
223
+ }
224
+
225
+ .close {
226
+ position: absolute;
227
+ top: 15px;
228
+ right: 15px;
229
+ padding: 0;
230
+ margin: 0;
231
+ }
232
+ }
233
+
234
+ .address-info {
235
+ padding: 16px 16px 0;
236
+
237
+ &__data {
238
+ @include font-size(16);
239
+ @include line-height(24);
240
+ font-weight: 400;
241
+
242
+ .information {
243
+ margin-bottom: 0;
244
+
245
+ & + .information {
246
+ margin-top: 4px;
247
+ }
248
+ }
249
+ }
250
+
251
+ &__warning {
252
+ @include font-size(16);
253
+ @include line-height(24);
254
+ font-weight: 400;
255
+ display: flex;
256
+ align-items: center;
257
+ margin-bottom: 0;
258
+ margin-top: 16px;
259
+
260
+ .icon-wrap {
261
+ margin-right: 8px;
262
+ }
263
+
264
+ .info-icon {
265
+ color: $orange;
266
+ }
267
+ }
268
+ }
269
+
270
+ .actions {
271
+ padding: 16px;
272
+ margin-top: 16px;
273
+ display: flex;
274
+ grid-gap: 16px;
275
+ }
276
+ }
277
+
278
+ @include media-breakpoint-up(sm) {
279
+ .address-book {
280
+ &__header {
281
+ display: flex;
282
+ justify-content: space-between;
283
+ align-items: center;
284
+
285
+ .btn--add-address {
286
+ margin-top: 0;
287
+ max-width: 193px;
288
+ }
289
+ }
290
+ }
291
+ }
292
+
293
+ @include media-breakpoint-up(md) {
294
+ .address-book {
295
+ padding-bottom: 72px;
296
+
297
+ &__header {
298
+ margin-top: 24px;
299
+
300
+ .title {
301
+ @include font-size(34);
302
+ @include line-height(46);
303
+ }
304
+ }
305
+
306
+ &__items {
307
+ grid-template-columns: 1fr 1fr;
308
+ grid-auto-rows: auto;
309
+ grid-gap: 24px;
310
+ }
311
+
312
+ .address-card {
313
+ flex: 1 1 0;
314
+ }
315
+
316
+ &__form-ctas {
317
+ .btn {
318
+ width: auto;
319
+ }
320
+ }
321
+ }
322
+
323
+ .delete-modal {
324
+ .actions .btn {
325
+ width: auto;
326
+ }
327
+ }
328
+ }
329
+
330
+
331
+ @include media-breakpoint-up(lg) {
332
+ .address-book {
333
+ padding-top: 40px;
334
+ padding-bottom: 72px;
335
+
336
+ .globalMessages {
337
+ .notification {
338
+ &:first-child {
339
+ margin-top: 0;
340
+ }
341
+
342
+ &:last-child {
343
+ margin-bottom: 24px;
344
+ }
345
+ }
346
+ }
347
+
348
+ &__header {
349
+ margin-top: 0;
350
+ }
351
+
352
+ .add-address {
353
+ max-width: 453px;
354
+ }
355
+ }
356
+ }
@@ -0,0 +1,147 @@
1
+ @import '../helpers/helpers';
2
+ @import '../components/leave-modal';
3
+ @import '../libs/pstrength';
4
+
5
+ .change-password {
6
+ padding-top: 0;
7
+
8
+ .globalMessages {
9
+ .notification:first-child {
10
+ margin-top: 16px
11
+ }
12
+
13
+ .notification {
14
+ margin-bottom: 8px;
15
+
16
+ &_link {
17
+ color: $white;
18
+ text-decoration: none;
19
+ padding: 0 5px;
20
+
21
+ &:hover {
22
+ text-decoration: none;
23
+ color: $white;
24
+ }
25
+ }
26
+ }
27
+ }
28
+
29
+ .warning-required {
30
+ margin-top: 0;
31
+ margin-bottom: 24px;
32
+
33
+ &::before {
34
+ margin-right: 4px;
35
+ }
36
+ }
37
+
38
+ &__header {
39
+ .title {
40
+ @include font-size(26);
41
+ @include line-height(36);
42
+ margin-bottom: 24px;
43
+ }
44
+ }
45
+
46
+ .account-nav {
47
+ margin-bottom: 16px;
48
+ }
49
+
50
+ &__form {
51
+ .form-row {
52
+ padding: 0;
53
+ margin: 0 0 24px;
54
+
55
+ &__label,
56
+ &__field {
57
+ padding-right: 0;
58
+ padding-left: 0;
59
+ }
60
+
61
+ &__label {
62
+ &::before {
63
+ margin-right: 4px;
64
+ }
65
+ }
66
+
67
+ &__info,
68
+ &__error {
69
+ padding-left: 0;
70
+ }
71
+
72
+ .tbx {
73
+ padding-right: 35px;
74
+ }
75
+
76
+ .toggle-show {
77
+ @include font-size(16);
78
+ cursor: pointer;
79
+ position: absolute;
80
+ right: 8px;
81
+ top: 0;
82
+ height: 100%;
83
+ display: inline-flex;
84
+ align-items: center;
85
+ justify-content: center;
86
+ width: 24px;
87
+ }
88
+
89
+ .input-wrap {
90
+ position: relative;
91
+ }
92
+ }
93
+ }
94
+
95
+ &__ctas {
96
+ display: flex;
97
+
98
+ .btn--cancel {
99
+ margin-left: 16px;
100
+ }
101
+ }
102
+ }
103
+
104
+ @include media-breakpoint-up(sm) {
105
+ .change-password {
106
+ &__ctas {
107
+ .btn {
108
+ width: auto;
109
+ }
110
+ }
111
+ }
112
+ }
113
+
114
+ @include media-breakpoint-up(md) {
115
+ .change-password {
116
+ &__header {
117
+ .title {
118
+ @include font-size(34);
119
+ @include line-height(46);
120
+ }
121
+ }
122
+
123
+ .account-nav {
124
+ margin-bottom: 24px;
125
+ }
126
+
127
+ &__form {
128
+ max-width: 384px;
129
+ }
130
+ }
131
+ }
132
+
133
+ @include media-breakpoint-up(lg) {
134
+ .change-password {
135
+ padding-top: 40px;
136
+
137
+ .globalMessages {
138
+ .notification:first-child {
139
+ margin-top: 0;
140
+ }
141
+
142
+ .notification:last-child {
143
+ margin-bottom: 24px;
144
+ }
145
+ }
146
+ }
147
+ }