@akinon/projectzero 1.41.0-rc.0 → 1.41.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.
Files changed (27) hide show
  1. package/CHANGELOG.md +1 -36
  2. package/app-template/CHANGELOG.md +23 -330
  3. package/app-template/package.json +16 -15
  4. package/app-template/public/locales/en/account.json +4 -4
  5. package/app-template/public/locales/en/auth.json +1 -2
  6. package/app-template/public/locales/tr/account.json +1 -1
  7. package/app-template/public/locales/tr/auth.json +1 -2
  8. package/app-template/src/app/[commerce]/[locale]/[currency]/account/coupons/page.tsx +4 -4
  9. package/app-template/src/app/[commerce]/[locale]/[currency]/account/profile/page.tsx +0 -1
  10. package/app-template/src/app/[commerce]/[locale]/[currency]/orders/completed/[token]/page.tsx +8 -12
  11. package/app-template/src/components/checkbox.tsx +2 -2
  12. package/app-template/src/components/input.tsx +7 -19
  13. package/app-template/src/components/price.tsx +3 -3
  14. package/app-template/src/plugins.js +2 -1
  15. package/app-template/src/views/account/address-form.tsx +7 -22
  16. package/app-template/src/views/account/contact-form.tsx +6 -22
  17. package/app-template/src/views/account/favourite-products/favourite-products-list.tsx +1 -5
  18. package/app-template/src/views/basket/summary.tsx +35 -26
  19. package/app-template/src/views/category/filters/index.tsx +105 -5
  20. package/app-template/src/views/login/index.tsx +20 -9
  21. package/app-template/src/views/product/product-info.tsx +42 -32
  22. package/app-template/tsconfig.json +4 -14
  23. package/commands/create.ts +5 -29
  24. package/dist/commands/create.js +2 -25
  25. package/package.json +1 -1
  26. package/app-template/src/app/[commerce]/[locale]/[currency]/[...prettyurl]/page.tsx +0 -8
  27. package/app-template/src/views/category/filters/filter-item.tsx +0 -131
package/CHANGELOG.md CHANGED
@@ -1,11 +1,6 @@
1
1
  # @akinon/projectzero
2
2
 
3
- ## 1.41.0-rc.0
4
-
5
- ### Minor Changes
6
-
7
- - 9b6bf91: ZERO-2660: Change campaings to campaigns
8
- - 00ffde2: ZERO-2637: enhance create command with improved messaging
3
+ ## 1.41.0
9
4
 
10
5
  ## 1.40.0
11
6
 
@@ -26,36 +21,6 @@
26
21
  - cd78ddc: ZERO-2661: rename .npmignore to .gitignore during project creation
27
22
  - 735f4f0: ZERO-2661: create .npmignore in app-template
28
23
 
29
- ## 1.34.0-rc.16
30
-
31
- ### Minor Changes
32
-
33
- - cd78ddc: ZERO-2661: rename .npmignore to .gitignore during project creation
34
-
35
- ## 1.34.0-rc.15
36
-
37
- ### Minor Changes
38
-
39
- - 735f4f0: ZERO-2661: create .npmignore in app-template
40
-
41
- ## 1.34.0-rc.14
42
-
43
- ## 1.34.0-rc.13
44
-
45
- ## 1.34.0-rc.12
46
-
47
- ## 1.34.0-rc.11
48
-
49
- ## 1.34.0-rc.10
50
-
51
- ## 1.34.0-rc.9
52
-
53
- ## 1.34.0-rc.8
54
-
55
- ## 1.34.0-rc.7
56
-
57
- ## 1.34.0-rc.6
58
-
59
24
  ## 1.33.2
60
25
 
61
26
  ### Patch Changes
@@ -1,46 +1,27 @@
1
1
  # projectzeronext
2
2
 
3
- ## 1.41.0-rc.0
3
+ ## 1.41.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - c53ea3e: ZERO-2609: Reset additional form fields when selectedFormType is not company
8
- - 27a5296: ZERO-2631:Fix Checkbox Click
9
- - 9b6bf91: ZERO-2660: Change campaings to campaigns
10
- - 74a1269: ZERO-2658:Edit product name clickability on completed order page
11
- - 75080fd: ZERO-2630: Add max limit to postcode area
12
- - 91265bb: ZERO-2551: Improve pretty url and caching performance
13
- - 902d828: ZERO-2621:edit position of loaderSpinner in favorites page
14
- - 7a4bb76: ZERO-2610:Refactor FilterItem component for better readability and efficiency
15
- - dff0d59: ZERO-2659: add formData support to proxy api requests
16
- - beb499e: ZERO-2551: Add new tsconfig paths
17
- - 4614eee: ZERO-2602: The script that checks the build for standalone projects
18
- - f046f8e: ZERO-2575: update version for react-number-format
7
+ - 8f09473: ZERO-2686: create akifast plugin
19
8
 
20
9
  ### Patch Changes
21
10
 
22
- - Updated dependencies [a4c8d6a]
23
- - Updated dependencies [c53ea3e]
24
- - Updated dependencies [c53ef7b]
25
- - Updated dependencies [1448a96]
26
- - Updated dependencies [75080fd]
27
- - Updated dependencies [91265bb]
28
- - Updated dependencies [bbe18b9]
29
- - Updated dependencies [dff0d59]
30
- - Updated dependencies [beb499e]
31
- - Updated dependencies [f046f8e]
32
- - @akinon/next@1.41.0-rc.0
33
- - @akinon/pz-b2b@1.41.0-rc.0
34
- - @akinon/pz-basket-gift-pack@1.41.0-rc.0
35
- - @akinon/pz-bkm@1.41.0-rc.0
36
- - @akinon/pz-checkout-gift-pack@1.41.0-rc.0
37
- - @akinon/pz-click-collect@1.41.0-rc.0
38
- - @akinon/pz-credit-payment@1.41.0-rc.0
39
- - @akinon/pz-gpay@1.41.0-rc.0
40
- - @akinon/pz-masterpass@1.41.0-rc.0
41
- - @akinon/pz-one-click-checkout@1.41.0-rc.0
42
- - @akinon/pz-otp@1.41.0-rc.0
43
- - @akinon/pz-pay-on-delivery@1.41.0-rc.0
11
+ - Updated dependencies [8f09473]
12
+ - @akinon/pz-one-click-checkout@1.41.0
13
+ - @akinon/next@1.41.0
14
+ - @akinon/pz-akifast@1.41.0
15
+ - @akinon/pz-b2b@1.41.0
16
+ - @akinon/pz-basket-gift-pack@1.41.0
17
+ - @akinon/pz-bkm@1.41.0
18
+ - @akinon/pz-checkout-gift-pack@1.41.0
19
+ - @akinon/pz-click-collect@1.41.0
20
+ - @akinon/pz-credit-payment@1.41.0
21
+ - @akinon/pz-gpay@1.41.0
22
+ - @akinon/pz-masterpass@1.41.0
23
+ - @akinon/pz-otp@1.41.0
24
+ - @akinon/pz-pay-on-delivery@1.41.0
44
25
 
45
26
  ## 1.40.0
46
27
 
@@ -163,301 +144,13 @@
163
144
 
164
145
  ### Patch Changes
165
146
 
166
- - Updated dependencies [a4c8d6a]
167
- - Updated dependencies [d09b677]
168
- - Updated dependencies [6d4aadb]
169
- - Updated dependencies [8e6e8cf]
170
- - Updated dependencies [c53ef7b]
171
- - Updated dependencies [ebb63ce]
172
- - Updated dependencies [7cebe87]
173
- - Updated dependencies [616690d]
174
- - Updated dependencies [f3b595e]
175
- - Updated dependencies [91265bb]
176
- - Updated dependencies [59fb7c3]
177
- - Updated dependencies [bbe18b9]
178
- - Updated dependencies [f0c23bc]
179
- - Updated dependencies [3420416]
180
- - Updated dependencies [495d155]
181
- - Updated dependencies [beb499e]
182
- - Updated dependencies [6c18543]
183
- - Updated dependencies [40ad73e]
184
- - Updated dependencies [495d155]
185
- - Updated dependencies [f046f8e]
186
- - Updated dependencies [6b2972b]
187
- - Updated dependencies [3e68768]
188
- - @akinon/next@1.34.0-rc.20
189
- - @akinon/pz-masterpass@1.34.0-rc.20
190
- - @akinon/pz-one-click-checkout@1.34.0-rc.20
191
- - @akinon/pz-b2b@1.34.0-rc.20
192
- - @akinon/pz-gpay@1.34.0-rc.20
193
- - @akinon/pz-otp@1.34.0-rc.20
194
- - @akinon/pz-pay-on-delivery@1.34.0-rc.20
195
-
196
- ## 1.34.0-rc.19
197
-
198
- ### Patch Changes
199
-
200
- - Updated dependencies [c53ef7b]
201
- - @akinon/next@1.34.0-rc.19
202
- - @akinon/pz-b2b@1.34.0-rc.19
203
- - @akinon/pz-gpay@1.34.0-rc.19
204
- - @akinon/pz-masterpass@1.34.0-rc.19
205
- - @akinon/pz-one-click-checkout@1.34.0-rc.19
206
- - @akinon/pz-otp@1.34.0-rc.19
207
- - @akinon/pz-pay-on-delivery@1.34.0-rc.19
208
-
209
- ## 1.34.0-rc.18
210
-
211
- ### Minor Changes
212
-
213
- - 9b6bf91: ZERO-2660: Change campaings to campaigns
214
- - 902d828: ZERO-2621:edit position of loaderSpinner in favorites page
215
-
216
- ### Patch Changes
217
-
218
- - Updated dependencies [a4c8d6a]
219
- - @akinon/next@1.34.0-rc.18
220
- - @akinon/pz-b2b@1.34.0-rc.18
221
- - @akinon/pz-gpay@1.34.0-rc.18
222
- - @akinon/pz-masterpass@1.34.0-rc.18
223
- - @akinon/pz-one-click-checkout@1.34.0-rc.18
224
- - @akinon/pz-otp@1.34.0-rc.18
225
- - @akinon/pz-pay-on-delivery@1.34.0-rc.18
226
-
227
- ## 1.34.0-rc.17
228
-
229
- ### Minor Changes
230
-
231
- - 567e4c1: ZERO-2580:Add checked attribute from props to checkbox
232
- - d09b677: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
233
- - 27a5296: ZERO-2631:Fix Checkbox Click
234
- - ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
235
- - 74a1269: ZERO-2658:Edit product name clickability on completed order page
236
- - 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
237
- - 91265bb: ZERO-2551: Improve pretty url and caching performance
238
- - f0c23bc: ZERO-2135: add custom not found page
239
- - 3420416: ZERO-2533: extend eslint config from @akinon/next
240
- - beb499e: ZERO-2551: Add new tsconfig paths
241
- - 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
242
- - 202f84e: ZERO-2569: Fix static keys
243
- - 4614eee: ZERO-2602: The script that checks the build for standalone projects
244
- - f046f8e: ZERO-2575: update version for react-number-format
245
- - 12c10a4: ZERO-2570: Category filters routes to absolute url
246
-
247
- ### Patch Changes
248
-
249
- - Updated dependencies [d09b677]
250
- - Updated dependencies [6d4aadb]
251
- - Updated dependencies [8e6e8cf]
252
- - Updated dependencies [ebb63ce]
253
- - Updated dependencies [7cebe87]
254
- - Updated dependencies [616690d]
255
- - Updated dependencies [f3b595e]
256
- - Updated dependencies [91265bb]
257
- - Updated dependencies [59fb7c3]
258
- - Updated dependencies [bbe18b9]
259
- - Updated dependencies [f0c23bc]
260
- - Updated dependencies [3420416]
261
- - Updated dependencies [495d155]
262
- - Updated dependencies [beb499e]
263
- - Updated dependencies [6c18543]
264
- - Updated dependencies [40ad73e]
265
- - Updated dependencies [495d155]
266
- - Updated dependencies [f046f8e]
267
- - Updated dependencies [6b2972b]
268
- - Updated dependencies [3e68768]
269
- - @akinon/next@1.34.0-rc.17
270
- - @akinon/pz-masterpass@1.34.0-rc.17
271
- - @akinon/pz-one-click-checkout@1.34.0-rc.17
272
- - @akinon/pz-b2b@1.34.0-rc.17
273
- - @akinon/pz-gpay@1.34.0-rc.17
274
- - @akinon/pz-otp@1.34.0-rc.17
275
- - @akinon/pz-pay-on-delivery@1.34.0-rc.17
276
-
277
- ## 1.34.0-rc.16
278
-
279
- ### Patch Changes
280
-
281
- - @akinon/next@1.34.0-rc.16
282
- - @akinon/pz-b2b@1.34.0-rc.16
283
- - @akinon/pz-gpay@1.34.0-rc.16
284
- - @akinon/pz-masterpass@1.34.0-rc.16
285
- - @akinon/pz-one-click-checkout@1.34.0-rc.16
286
- - @akinon/pz-otp@1.34.0-rc.16
287
- - @akinon/pz-pay-on-delivery@1.34.0-rc.16
288
-
289
- ## 1.34.0-rc.15
290
-
291
- ### Patch Changes
292
-
293
- - @akinon/next@1.34.0-rc.15
294
- - @akinon/pz-b2b@1.34.0-rc.15
295
- - @akinon/pz-gpay@1.34.0-rc.15
296
- - @akinon/pz-masterpass@1.34.0-rc.15
297
- - @akinon/pz-one-click-checkout@1.34.0-rc.15
298
- - @akinon/pz-otp@1.34.0-rc.15
299
- - @akinon/pz-pay-on-delivery@1.34.0-rc.15
300
-
301
- ## 1.34.0-rc.14
302
-
303
- ### Minor Changes
304
-
305
- - 4614eee: ZERO-2602: The script that checks the build for standalone projects
306
-
307
- ### Patch Changes
308
-
309
- - @akinon/next@1.34.0-rc.14
310
- - @akinon/pz-b2b@1.34.0-rc.14
311
- - @akinon/pz-gpay@1.34.0-rc.14
312
- - @akinon/pz-masterpass@1.34.0-rc.14
313
- - @akinon/pz-one-click-checkout@1.34.0-rc.14
314
- - @akinon/pz-otp@1.34.0-rc.14
315
- - @akinon/pz-pay-on-delivery@1.34.0-rc.14
316
-
317
- ## 1.34.0-rc.13
318
-
319
- ### Minor Changes
320
-
321
- - 74a1269: ZERO-2658:Edit product name clickability on completed order page
322
-
323
- ### Patch Changes
324
-
325
- - @akinon/next@1.34.0-rc.13
326
- - @akinon/pz-b2b@1.34.0-rc.13
327
- - @akinon/pz-gpay@1.34.0-rc.13
328
- - @akinon/pz-masterpass@1.34.0-rc.13
329
- - @akinon/pz-one-click-checkout@1.34.0-rc.13
330
- - @akinon/pz-otp@1.34.0-rc.13
331
- - @akinon/pz-pay-on-delivery@1.34.0-rc.13
332
-
333
- ## 1.34.0-rc.12
334
-
335
- ### Patch Changes
336
-
337
- - Updated dependencies [616690d]
338
- - @akinon/next@1.34.0-rc.12
339
- - @akinon/pz-b2b@1.34.0-rc.12
340
- - @akinon/pz-gpay@1.34.0-rc.12
341
- - @akinon/pz-masterpass@1.34.0-rc.12
342
- - @akinon/pz-one-click-checkout@1.34.0-rc.12
343
- - @akinon/pz-otp@1.34.0-rc.12
344
- - @akinon/pz-pay-on-delivery@1.34.0-rc.12
345
-
346
- ## 1.34.0-rc.11
347
-
348
- ### Patch Changes
349
-
350
- - Updated dependencies [8e6e8cf]
351
- - @akinon/next@1.34.0-rc.11
352
- - @akinon/pz-b2b@1.34.0-rc.11
353
- - @akinon/pz-gpay@1.34.0-rc.11
354
- - @akinon/pz-masterpass@1.34.0-rc.11
355
- - @akinon/pz-one-click-checkout@1.34.0-rc.11
356
- - @akinon/pz-otp@1.34.0-rc.11
357
- - @akinon/pz-pay-on-delivery@1.34.0-rc.11
358
-
359
- ## 1.34.0-rc.10
360
-
361
- ### Patch Changes
362
-
363
- - Updated dependencies [bbe18b9]
364
- - @akinon/next@1.34.0-rc.10
365
- - @akinon/pz-b2b@1.34.0-rc.10
366
- - @akinon/pz-gpay@1.34.0-rc.10
367
- - @akinon/pz-masterpass@1.34.0-rc.10
368
- - @akinon/pz-one-click-checkout@1.34.0-rc.10
369
- - @akinon/pz-otp@1.34.0-rc.10
370
- - @akinon/pz-pay-on-delivery@1.34.0-rc.10
371
-
372
- ## 1.34.0-rc.9
373
-
374
- ### Minor Changes
375
-
376
- - beb499e: ZERO-2551: Add new tsconfig paths
377
-
378
- ### Patch Changes
379
-
380
- - Updated dependencies [beb499e]
381
- - @akinon/next@1.34.0-rc.9
382
- - @akinon/pz-b2b@1.34.0-rc.9
383
- - @akinon/pz-gpay@1.34.0-rc.9
384
- - @akinon/pz-masterpass@1.34.0-rc.9
385
- - @akinon/pz-one-click-checkout@1.34.0-rc.9
386
- - @akinon/pz-otp@1.34.0-rc.9
387
- - @akinon/pz-pay-on-delivery@1.34.0-rc.9
388
-
389
- ## 1.34.0-rc.8
390
-
391
- ### Minor Changes
392
-
393
- - 91265bb: ZERO-2551: Improve pretty url and caching performance
394
-
395
- ### Patch Changes
396
-
397
- - Updated dependencies [91265bb]
398
- - @akinon/next@1.34.0-rc.8
399
- - @akinon/pz-b2b@1.34.0-rc.8
400
- - @akinon/pz-gpay@1.34.0-rc.8
401
- - @akinon/pz-masterpass@1.34.0-rc.8
402
- - @akinon/pz-one-click-checkout@1.34.0-rc.8
403
- - @akinon/pz-otp@1.34.0-rc.8
404
- - @akinon/pz-pay-on-delivery@1.34.0-rc.8
405
-
406
- ## 1.34.0-rc.7
407
-
408
- ### Minor Changes
409
-
410
- - 0d0f36c: ZERO-2598: Fix eslint warnings and update dependencies
411
-
412
- ### Patch Changes
413
-
414
- - @akinon/next@1.34.0-rc.7
415
- - @akinon/pz-b2b@1.34.0-rc.7
416
- - @akinon/pz-gpay@1.34.0-rc.7
417
- - @akinon/pz-masterpass@1.34.0-rc.7
418
- - @akinon/pz-one-click-checkout@1.34.0-rc.7
419
- - @akinon/pz-otp@1.34.0-rc.7
420
- - @akinon/pz-pay-on-delivery@1.34.0-rc.7
421
-
422
- ## 1.34.0-rc.6
423
-
424
- ### Minor Changes
425
-
426
- - 567e4c1: ZERO-2580:Add checked attribute from props to checkbox
427
- - d09b677: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
428
- - 27a5296: ZERO-2631:Fix Checkbox Click
429
- - ebb63ce: ZERO-2525: Fix category facet removal bug and add close icon to active filters
430
- - f0c23bc: ZERO-2135: add custom not found page
431
- - 3420416: ZERO-2533: extend eslint config from @akinon/next
432
- - 6c18543: ZERO-2542:Refactor and show error in OneClickCheckoutButtons
433
- - 202f84e: ZERO-2569: Fix static keys
434
- - f046f8e: ZERO-2575: update version for react-number-format
435
- - 12c10a4: ZERO-2570: Category filters routes to absolute url
436
-
437
- ### Patch Changes
438
-
439
- - Updated dependencies [d09b677]
440
- - Updated dependencies [6d4aadb]
441
- - Updated dependencies [ebb63ce]
442
- - Updated dependencies [7cebe87]
443
- - Updated dependencies [f3b595e]
444
- - Updated dependencies [59fb7c3]
445
- - Updated dependencies [f0c23bc]
446
- - Updated dependencies [3420416]
447
- - Updated dependencies [495d155]
448
- - Updated dependencies [6c18543]
449
- - Updated dependencies [40ad73e]
450
- - Updated dependencies [495d155]
451
- - Updated dependencies [f046f8e]
452
- - Updated dependencies [6b2972b]
453
- - Updated dependencies [3e68768]
454
- - @akinon/next@1.34.0-rc.6
455
- - @akinon/pz-masterpass@1.34.0-rc.6
456
- - @akinon/pz-one-click-checkout@1.34.0-rc.6
457
- - @akinon/pz-b2b@1.34.0-rc.6
458
- - @akinon/pz-gpay@1.34.0-rc.6
459
- - @akinon/pz-otp@1.34.0-rc.6
460
- - @akinon/pz-pay-on-delivery@1.34.0-rc.6
147
+ - @akinon/next@1.34.0
148
+ - @akinon/pz-b2b@1.34.0
149
+ - @akinon/pz-gpay@1.34.0
150
+ - @akinon/pz-masterpass@1.34.0
151
+ - @akinon/pz-one-click-checkout@1.34.0
152
+ - @akinon/pz-otp@1.34.0
153
+ - @akinon/pz-pay-on-delivery@1.34.0
461
154
 
462
155
  ## 1.33.2
463
156
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.41.0-rc.0",
3
+ "version": "1.41.0",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -22,18 +22,19 @@
22
22
  "prestart": "pz-prestart"
23
23
  },
24
24
  "dependencies": {
25
- "@akinon/next": "1.41.0-rc.0",
26
- "@akinon/pz-b2b": "1.41.0-rc.0",
27
- "@akinon/pz-basket-gift-pack": "1.41.0-rc.0",
28
- "@akinon/pz-bkm": "1.41.0-rc.0",
29
- "@akinon/pz-checkout-gift-pack": "1.41.0-rc.0",
30
- "@akinon/pz-click-collect": "1.41.0-rc.0",
31
- "@akinon/pz-credit-payment": "1.41.0-rc.0",
32
- "@akinon/pz-gpay": "1.41.0-rc.0",
33
- "@akinon/pz-masterpass": "1.41.0-rc.0",
34
- "@akinon/pz-one-click-checkout": "1.41.0-rc.0",
35
- "@akinon/pz-otp": "1.41.0-rc.0",
36
- "@akinon/pz-pay-on-delivery": "1.41.0-rc.0",
25
+ "@akinon/next": "1.41.0",
26
+ "@akinon/pz-akifast": "1.41.0",
27
+ "@akinon/pz-b2b": "1.41.0",
28
+ "@akinon/pz-basket-gift-pack": "1.41.0",
29
+ "@akinon/pz-bkm": "1.41.0",
30
+ "@akinon/pz-checkout-gift-pack": "1.41.0",
31
+ "@akinon/pz-click-collect": "1.41.0",
32
+ "@akinon/pz-credit-payment": "1.41.0",
33
+ "@akinon/pz-gpay": "1.41.0",
34
+ "@akinon/pz-masterpass": "1.41.0",
35
+ "@akinon/pz-one-click-checkout": "1.41.0",
36
+ "@akinon/pz-otp": "1.41.0",
37
+ "@akinon/pz-pay-on-delivery": "1.41.0",
37
38
  "@hookform/resolvers": "2.9.0",
38
39
  "@next/third-parties": "14.1.0",
39
40
  "@react-google-maps/api": "2.17.1",
@@ -58,7 +59,7 @@
58
59
  "yup": "0.32.11"
59
60
  },
60
61
  "devDependencies": {
61
- "@akinon/eslint-plugin-projectzero": "1.41.0-rc.0",
62
+ "@akinon/eslint-plugin-projectzero": "1.41.0",
62
63
  "@semantic-release/changelog": "6.0.2",
63
64
  "@semantic-release/exec": "6.0.3",
64
65
  "@semantic-release/git": "10.0.1",
@@ -85,7 +86,7 @@
85
86
  "jest-css-modules-transform": "4.3.0",
86
87
  "lint-staged": "13.1.0",
87
88
  "prettier": "2.6.2",
88
- "react-number-format": "5.3.4",
89
+ "react-number-format": "4.9.3",
89
90
  "sass": "1.49.9",
90
91
  "semantic-release": "19.0.5",
91
92
  "server-only": "0.0.1",
@@ -286,11 +286,11 @@
286
286
  "empty_coupon": "You don't have any coupons"
287
287
  },
288
288
  "title": {
289
- "campaigns": {
289
+ "campaings": {
290
290
  "active": "Active Campaigns",
291
- "to_be_active": "Campaigns to be Active",
292
- "expired": "Expired Campaigns",
293
- "used": "Used Campaigns"
291
+ "to_be_active": "Campaings to be Active",
292
+ "expired": "Expired Campaings",
293
+ "used": "Used Campaings"
294
294
  },
295
295
  "coupons": {
296
296
  "active": "Active Coupons",
@@ -88,8 +88,7 @@
88
88
  "or": "or",
89
89
  "forgot_password": "Forgot Password",
90
90
  "sign_in_with": "Sign in With",
91
- "submit": "Sign In",
92
- "quick_login": "Quick Login"
91
+ "submit": "Sign In"
93
92
  }
94
93
  },
95
94
  "otp_login": {
@@ -286,7 +286,7 @@
286
286
  "empty_coupon": "Herhangi bir kuponunuz yok"
287
287
  },
288
288
  "title": {
289
- "campaigns": {
289
+ "campaings": {
290
290
  "active": "Aktif Kampanyalar",
291
291
  "to_be_active": "Aktif Olacak Kampanyalar",
292
292
  "expired": "Süresi Dolmuş Kampanyalar",
@@ -88,8 +88,7 @@
88
88
  "or": "veya",
89
89
  "forgot_password": "Parolanızı mı unuttunuz",
90
90
  "sign_in_with": "Şununla giriş yap",
91
- "submit": "Giriş Yap",
92
- "quick_login": "Hızlı Giriş"
91
+ "submit": "Giriş Yap"
93
92
  }
94
93
  },
95
94
  "otp_login": {
@@ -51,7 +51,7 @@ export default function Page() {
51
51
  {basketOffersLoading && <LoaderSpinner className="mb-8" />}
52
52
  {basketOffersSuccess && (
53
53
  <CouponItem
54
- mainTitle={t('account.my_vouchers.title.campaigns.active')}
54
+ mainTitle={t('account.my_vouchers.title.campaings.active')}
55
55
  subTitles={[
56
56
  t('account.my_vouchers.card.campaign_name'),
57
57
  t('account.my_vouchers.card.starting_date'),
@@ -68,7 +68,7 @@ export default function Page() {
68
68
  {futureBasketOffersLoading && <LoaderSpinner className="mb-8" />}
69
69
  {futureBasketOffersSuccess && (
70
70
  <CouponItem
71
- mainTitle={t('account.my_vouchers.title.campaigns.to_be_active')}
71
+ mainTitle={t('account.my_vouchers.title.campaings.to_be_active')}
72
72
  subTitles={[
73
73
  t('account.my_vouchers.card.campaign_name'),
74
74
  t('account.my_vouchers.card.starting_date'),
@@ -85,7 +85,7 @@ export default function Page() {
85
85
  {expiredBasketOffersLoading && <LoaderSpinner className="mb-8" />}
86
86
  {expiredBasketOffersSuccess && (
87
87
  <CouponItem
88
- mainTitle={t('account.my_vouchers.title.campaigns.expired')}
88
+ mainTitle={t('account.my_vouchers.title.campaings.expired')}
89
89
  subTitles={[
90
90
  t('account.my_vouchers.card.campaign_name'),
91
91
  t('account.my_vouchers.card.starting_date'),
@@ -102,7 +102,7 @@ export default function Page() {
102
102
  {discountItemsLoading && <LoaderSpinner className="mb-8" />}
103
103
  {discountItemsSuccess && (
104
104
  <CouponItem
105
- mainTitle={t('account.my_vouchers.title.campaigns.used')}
105
+ mainTitle={t('account.my_vouchers.title.campaings.used')}
106
106
  subTitles={[
107
107
  t('account.my_vouchers.card.campaign_name'),
108
108
  t('account.my_vouchers.card.starting_date'),
@@ -247,7 +247,6 @@ export default function Page() {
247
247
  className="mb-5"
248
248
  required
249
249
  />
250
-
251
250
  <div className="mb-5">
252
251
  <Input
253
252
  label={t('account.my_profile.form.phone.placeholder')}
@@ -182,25 +182,21 @@ const CheckoutCompleted = ({
182
182
  }}
183
183
  >
184
184
  {data.order.orderitem_set.map((item) => (
185
- <div
186
- key={`order-item-${item.id}`}
187
- className="flex justify-between gap-x-4 w-full"
188
- >
189
- <Link
190
- className="flex justify-between gap-x-4 flex-1 items-center transition-all text-xs text-black-800 hover:text-secondary"
191
- href={item.product.absolute_url}
192
- passHref
193
- >
185
+ <div key={`order-item-${item.id}`} className="flex">
186
+ <Link href={item.product.absolute_url} passHref>
194
187
  <Image
195
188
  src={item.product.image}
196
189
  alt={item.product.name}
197
190
  width={64}
198
191
  height={96}
199
192
  />
200
-
201
- <span>{item.product.name}</span>
202
193
  </Link>
203
- <div className="flex justify-end items-center">
194
+ <div className="flex justify-between flex-1 items-center ml-4">
195
+ <>
196
+ <div className="text-xs text-black-800 transition-all w-full hover:text-secondary">
197
+ {item.product.name}
198
+ </div>
199
+ </>
204
200
  <div>
205
201
  {item.retail_price !== item.price && (
206
202
  <div className="text-black-800 line-through text-xs min-w-max sm:text-sm">
@@ -3,7 +3,7 @@ import { CheckboxProps } from '@theme/components/types';
3
3
  import { twMerge } from 'tailwind-merge';
4
4
 
5
5
  const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>((props, ref) => {
6
- const { children, checked = false, error, ...rest } = props;
6
+ const { children, checked, error, ...rest } = props;
7
7
 
8
8
  return (
9
9
  <label className={twMerge('flex flex-col text-xs', props.className)}>
@@ -12,7 +12,7 @@ const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>((props, ref) => {
12
12
  type="checkbox"
13
13
  {...rest}
14
14
  ref={ref}
15
- defaultChecked={checked}
15
+ checked={checked ?? false}
16
16
  className="w-4 h-4 shrink-0"
17
17
  />
18
18
  {children && <span className="ml-2">{children}</span>}
@@ -1,28 +1,17 @@
1
1
  import clsx from 'clsx';
2
- import { forwardRef, FocusEvent, useState, Ref } from 'react';
2
+ import { forwardRef, FocusEvent, useState } from 'react';
3
3
  import { Controller } from 'react-hook-form';
4
- import { PatternFormat, PatternFormatProps } from 'react-number-format';
4
+ import NumberFormat, { NumberFormatProps } from 'react-number-format';
5
5
  import { InputProps } from '@theme/components/types';
6
6
  import { twMerge } from 'tailwind-merge';
7
7
 
8
- const PatternFormatWithRef = forwardRef(
9
- (props: PatternFormatProps, ref: Ref<HTMLInputElement>) => {
10
- return <PatternFormat {...props} getInputRef={ref} />;
11
- }
12
- );
13
- PatternFormatWithRef.displayName = 'PatternFormatWithRef';
14
-
15
8
  export const Input = forwardRef<
16
9
  HTMLInputElement,
17
10
  InputProps &
18
11
  Pick<
19
- PatternFormatProps,
20
- 'mask' | 'allowEmptyFormatting' | 'onValueChange'
21
- > & {
22
- format?: string;
23
- defaultValue?: string;
24
- type?: string;
25
- }
12
+ NumberFormatProps,
13
+ 'format' | 'mask' | 'allowEmptyFormatting' | 'onValueChange'
14
+ >
26
15
  >((props, ref) => {
27
16
  const [focused, setFocused] = useState(false);
28
17
  const [hasValue, setHasValue] = useState(false);
@@ -48,7 +37,6 @@ export const Input = forwardRef<
48
37
  ),
49
38
  props.className
50
39
  );
51
-
52
40
  const inputProps: any = {
53
41
  id,
54
42
  ref,
@@ -91,14 +79,14 @@ export const Input = forwardRef<
91
79
  <Controller
92
80
  name={props.name ?? ''}
93
81
  control={props.control}
82
+ defaultValue={false}
94
83
  render={({ field }) => (
95
- <PatternFormatWithRef
84
+ <NumberFormat
96
85
  format={format}
97
86
  mask={mask ?? ''}
98
87
  {...rest}
99
88
  {...field}
100
89
  {...inputProps}
101
- type={props.type as 'text' | 'password' | 'tel'}
102
90
  />
103
91
  )}
104
92
  />