@protacon/muster-booking-frontend 1.32.0 → 1.33.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.
@@ -174,13 +174,98 @@ nav.disabled {
174
174
  cursor: pointer;
175
175
  }
176
176
 
177
+ .vehicle-info-container.selected-vehicle {
178
+ border: 1px solid #000;
179
+ background: #c9c9c920;
180
+ }
181
+
182
+ .vehicle-info-container.selected-vehicle:has(+ .vehicle-buttons-container) {
183
+ border-bottom: none;
184
+ }
185
+
186
+ .row {
187
+ margin-left: -4px;
188
+ margin-right: -4px;
189
+ }
190
+
191
+ .multiple-products-info-container-row {
192
+ display: flex;
193
+ width: 100%;
194
+ align-items: flex-start;
195
+ }
196
+
197
+ .product-card {
198
+ height: 100%;
199
+ margin-bottom: 0;
200
+ }
201
+
177
202
  .vehicle-info-container {
178
203
  display: flex;
179
204
  flex-direction: row;
180
205
  height: 70px;
181
206
  padding: 9px;
182
- border: 0;
207
+ margin: 0 !important;
183
208
  cursor: context-menu;
209
+ align-items: center;
210
+ width: 100%;
211
+
212
+ border-radius: 8px;
213
+ }
214
+
215
+ .multiple-products-info-container-row > .vehicle-info-container,
216
+ .multiple-products-info-container-row > .add-vehicle-info-container {
217
+ flex: 1;
218
+ align-self: flex-start;
219
+ min-height: 90px;
220
+ }
221
+
222
+ .multiple-products-info-container-row .vehicle-info-container:first-child,
223
+ .multiple-products-info-container-row .add-vehicle-info-container:first-child {
224
+ border-radius: 8px 0 0 8px;
225
+ margin-top: 16px;
226
+ }
227
+
228
+ .multiple-products-info-container-row .vehicle-info-container:last-child,
229
+ .multiple-products-info-container-row .add-vehicle-info-container:last-child {
230
+ border-left: none;
231
+ border-radius: 0 8px 8px 0;
232
+ margin-top: 16px;
233
+ }
234
+
235
+ .multiple-products-info-container-row:has(+ .d-md-block .vehicle-buttons-container) .vehicle-info-container:first-child,
236
+ .multiple-products-info-container-row:has(+ div .vehicle-buttons-container) .vehicle-info-container:first-child {
237
+ border-radius: 8px 0 0 0;
238
+ }
239
+
240
+ .multiple-products-info-container-row:has(+ .d-md-block .vehicle-buttons-container) .vehicle-info-container:last-child,
241
+ .multiple-products-info-container-row:has(+ div .vehicle-buttons-container) .vehicle-info-container:last-child {
242
+ border-radius: 0 8px 0 0;
243
+ }
244
+
245
+ .add-vehicle-info-container {
246
+ padding: 9px;
247
+ cursor: pointer;
248
+ align-items: center;
249
+ width: 100%;
250
+ margin: 0;
251
+ border: 1px solid #000000;
252
+ border-radius: 8px;
253
+ align-self: flex-start;
254
+ }
255
+
256
+ .vehicle-buttons-container {
257
+ width: 100%;
258
+ padding: 16px;
259
+ margin-top: 0;
260
+ }
261
+
262
+ .vehicle-info-container:has(+ .vehicle-buttons-container),
263
+ .vehicle-form-section:has(.vehicle-buttons-container) .vehicle-info-container {
264
+ border-radius: 8px 8px 0 0;
265
+ }
266
+
267
+ .vehicle-form-section .vehicle-buttons-container {
268
+ margin-top: 0;
184
269
  }
185
270
 
186
271
  .vehicle-icon {
@@ -221,14 +306,6 @@ nav.disabled {
221
306
  line-height: 17px;
222
307
  }
223
308
 
224
- .description {
225
- margin: 0px;
226
- color: #7e7a7a;
227
- font-size: 14px;
228
- font-weight: 400;
229
- line-height: 17px;
230
- }
231
-
232
309
  .header-text {
233
310
  color: #000000;
234
311
  font-weight: 700;
@@ -302,6 +379,8 @@ input[type='radio']:checked::before {
302
379
  width: 76px;
303
380
  height: 76px;
304
381
  padding: 0px;
382
+ background-color: #007bff;
383
+ color: #ffffff;
305
384
  }
306
385
 
307
386
  .rounded-circle-vehicle {
@@ -310,14 +389,50 @@ input[type='radio']:checked::before {
310
389
  background-color: transparent;
311
390
  position: relative;
312
391
  }
313
- .icon-booking-vehicle {
314
- color: #000000;
315
- }
316
392
 
317
393
  .vehicle-info {
318
394
  width: 100%;
319
395
  }
320
396
 
397
+ .product-row {
398
+ display: flex;
399
+ justify-content: space-between;
400
+ width: 100%;
401
+ }
402
+
403
+ .product-container {
404
+ padding: 0;
405
+ }
406
+
407
+ .primary-product {
408
+ margin-bottom: 1rem;
409
+ padding: 0px 4px 0px 4px;
410
+ }
411
+
412
+ .secondary-product-container {
413
+ margin: 0;
414
+ padding: 0px 4px 0px 4px;
415
+ }
416
+
417
+ .secondary-product {
418
+ padding: 0 0 1rem 3rem;
419
+ margin: 0;
420
+ }
421
+
422
+ .product-header {
423
+ margin: 0;
424
+ padding: 0;
425
+ display: flex;
426
+ justify-content: space-between;
427
+ width: 100%;
428
+ }
429
+
430
+ .empty-secondary-product {
431
+ padding: 0;
432
+ margin: 0;
433
+ height: 0;
434
+ }
435
+
321
436
  .vehicle-card-row {
322
437
  display: flex;
323
438
  justify-content: space-between;
@@ -329,18 +444,17 @@ input[type='radio']:checked::before {
329
444
  height: 64px;
330
445
  }
331
446
 
332
- .vehicle-step-component .plate-clear-icon {
333
- width: 54px;
334
- height: 54px;
335
- }
336
-
337
447
  .vehicle-step-component .plate-spinner {
338
448
  width: 32px;
339
449
  height: 32px;
340
450
  }
341
451
 
342
- .vehicle-step-component .campaign-code {
343
- margin-left: 8px;
452
+ .vehicle-step-component .campaign-code-activated {
453
+ margin-left: 4px;
454
+ }
455
+
456
+ .btn-save-vehicle {
457
+ width: 33%;
344
458
  }
345
459
 
346
460
  .vehicle-buttons {
@@ -392,21 +506,52 @@ input[type='radio']:checked::before {
392
506
  fill: #3a7203;
393
507
  }
394
508
 
395
- .info-container,
396
509
  .campaign-container {
397
510
  clear: both;
511
+ margin: 0 15px 0 15px;
398
512
  }
399
513
 
400
514
  .cls-2 {
401
515
  fill: red;
402
516
  }
517
+
403
518
  .transparent {
404
519
  background-color: transparent;
405
520
  border: none;
406
521
  }
407
522
 
523
+ .vehicle-step-component .btn-add-vehicle {
524
+ width: fit-content;
525
+ border: none;
526
+ color: #3a7203;
527
+ background-color: transparent;
528
+ padding: 0;
529
+ margin-bottom: 10px;
530
+ }
531
+
532
+ .vehicle-step-component .icon-another-platenumber-toggle {
533
+ margin-right: 8px;
534
+ padding-bottom: 5px;
535
+ }
536
+
537
+ .vehicle-step-component .btn-remove-vehicle {
538
+ width: fit-content;
539
+ border: none;
540
+ color: #000;
541
+ background-color: transparent;
542
+ padding: 0;
543
+ margin-bottom: 10px;
544
+ }
545
+
546
+ .vehicle-step-component .icon-remove-vehicle {
547
+ width: 25px;
548
+ height: 25px;
549
+ margin-right: 8px;
550
+ padding-bottom: 5px;
551
+ }
552
+
408
553
  @media screen and (max-width: 991px) {
409
- .form-check-container {
554
+ .form-check-container .product-card {
410
555
  margin-bottom: 0.5rem;
411
556
  }
412
557
 
@@ -418,7 +563,7 @@ input[type='radio']:checked::before {
418
563
  .vehicle-step-component .plate-input-booking {
419
564
  left: 46px;
420
565
  width: calc(100% - 46px);
421
- font-size: 45px !important;
566
+ font-size: 45px;
422
567
  }
423
568
 
424
569
  .vehicle-step-component .plate-load-button,
@@ -433,11 +578,6 @@ input[type='radio']:checked::before {
433
578
  height: 56px;
434
579
  }
435
580
 
436
- .vehicle-step-component .plate-clear-icon {
437
- width: 48px;
438
- height: 48px;
439
- }
440
-
441
581
  .header-text {
442
582
  margin: 0;
443
583
  margin-top: 8px;
@@ -445,6 +585,84 @@ input[type='radio']:checked::before {
445
585
  }
446
586
  }
447
587
 
588
+ @media (max-width: 768px) {
589
+ .multiple-products-info-container-row {
590
+ flex-direction: column;
591
+ }
592
+
593
+ .vehicle-info-container {
594
+ width: 100%;
595
+ margin-bottom: 10px;
596
+ }
597
+
598
+ .vehicle-button {
599
+ width: 46%;
600
+ padding: 8px;
601
+ margin: 5px;
602
+ border: 2px solid #d1d1d1;
603
+ border-radius: 8px;
604
+ cursor: pointer;
605
+ background-color: #fdfdfd;
606
+ font-size: 12px;
607
+ line-height: 1;
608
+ text-align: center;
609
+ display: block;
610
+ float: left;
611
+ }
612
+
613
+ .btn-save-vehicle {
614
+ width: 100%;
615
+ }
616
+
617
+ .multiple-products-info-container-row > .vehicle-info-container:first-child,
618
+ .multiple-products-info-container-row > .add-vehicle-info-container:first-child {
619
+ border-radius: 8px 8px 0 0;
620
+ margin-bottom: 0;
621
+ padding-bottom: 0;
622
+ }
623
+
624
+ .multiple-products-info-container-row > .vehicle-info-container:last-child,
625
+ .multiple-products-info-container-row > .add-vehicle-info-container:last-child {
626
+ border-top: none;
627
+ border-radius: 0 0 8px 8px;
628
+ margin-top: 0;
629
+ padding-top: 0;
630
+ }
631
+
632
+ .d-md-none > .vehicle-info-container:first-of-type {
633
+ border-radius: 8px 8px 0 0;
634
+ }
635
+
636
+ .d-md-none > .vehicle-info-container:nth-of-type(2),
637
+ .d-md-none > .vehicle-info-container:last-of-type {
638
+ border-radius: 0;
639
+ border-top: none;
640
+ }
641
+
642
+ .d-md-none > .vehicle-info-container:last-of-type:not(:has(+ .vehicle-buttons-container)) {
643
+ border-radius: 0 0 8px 8px;
644
+ border-top: none;
645
+ }
646
+
647
+ .d-md-none > .vehicle-info-container:first-of-type:has(+ .vehicle-buttons-container) {
648
+ border-radius: 8px 8px 0 0;
649
+ }
650
+
651
+ .d-md-none > .vehicle-buttons-container + .vehicle-info-container {
652
+ border-radius: 0;
653
+ border-top: none;
654
+ }
655
+
656
+ .d-md-none > .vehicle-buttons-container + .vehicle-info-container:has(+ .vehicle-buttons-container) {
657
+ border-radius: 0;
658
+ border-top: none;
659
+ }
660
+
661
+ .d-md-none > .vehicle-buttons-container:last-child {
662
+ border-radius: 0 0 8px 8px;
663
+ }
664
+ }
665
+
448
666
  @media screen and (max-width: 424px) {
449
667
  .vehicle-step-component .plate-container {
450
668
  background-size: 20px;
@@ -454,7 +672,7 @@ input[type='radio']:checked::before {
454
672
  .vehicle-step-component .plate-input-booking {
455
673
  left: 38px;
456
674
  width: calc(100% - 38px);
457
- font-size: 40px !important;
675
+ font-size: 40px;
458
676
  letter-spacing: 1px;
459
677
  }
460
678
 
@@ -470,9 +688,22 @@ input[type='radio']:checked::before {
470
688
  height: 50px;
471
689
  }
472
690
 
473
- .vehicle-step-component .plate-clear-icon {
474
- width: 40px;
475
- height: 40px;
691
+ .multiple-products-info-container-row > .vehicle-info-container:first-child {
692
+ border-radius: 8px 8px 0 0;
693
+ margin-bottom: 0;
694
+ margin-top: 16px;
695
+ border-left: 1px solid #607091ff;
696
+ }
697
+
698
+ .multiple-products-info-container-row > .vehicle-info-container:last-child {
699
+ border-top: none;
700
+ border-radius: 0 0 8px 8px;
701
+ margin-top: 0;
702
+ border-left: 1px solid #607091ff;
703
+ }
704
+
705
+ .vehicle-buttons-container {
706
+ border-radius: 8px;
476
707
  }
477
708
  }
478
709
 
@@ -517,13 +748,7 @@ button {
517
748
  padding: 16px;
518
749
  }
519
750
 
520
- .next-button {
521
- background: #8ac100;
522
- border: none;
523
- }
524
-
525
751
  .return-to-start-button {
526
- background: #8ac100;
527
752
  width: auto;
528
753
  }
529
754
 
@@ -714,7 +939,6 @@ input[type='checkbox'] {
714
939
 
715
940
  .search-time-slot {
716
941
  width: auto;
717
- background: #8ac100;
718
942
  }
719
943
 
720
944
  .react-datepicker {
@@ -809,16 +1033,11 @@ input[type='checkbox'] {
809
1033
  height: auto;
810
1034
  }
811
1035
 
812
- .dropdown-toggle::after {
813
- display: none !important;
814
- }
815
-
816
1036
  .sort-button {
817
- color: #95c01f !important;
1037
+ color: #95c01f;
818
1038
  height: auto;
819
1039
  width: auto;
820
1040
  padding: 0 5px 0 5px;
821
- background-color: transparent !important;
822
1041
  border: none;
823
1042
  margin: auto;
824
1043
  margin-right: 2px;
@@ -826,6 +1045,10 @@ input[type='checkbox'] {
826
1045
  justify-content: space-between;
827
1046
  }
828
1047
 
1048
+ .sort-button:focus {
1049
+ color: #95c01f;
1050
+ }
1051
+
829
1052
  .sort-dropdown {
830
1053
  height: 20px;
831
1054
  margin: auto;
@@ -1001,13 +1224,22 @@ input[type='checkbox'] {
1001
1224
  }
1002
1225
  .react-datepicker__day--selected {
1003
1226
  background-color: #95c01f;
1004
- padding: 0 !important;
1005
- width: 14% !important;
1227
+ padding: 0;
1228
+ width: 14%;
1006
1229
  }
1007
1230
  .react-datepicker__day--selected:hover {
1008
1231
  background-color: #3a7203;
1009
1232
  }
1010
1233
 
1234
+ .react-datepicker__day--keyboard-selected:not(.react-datepicker__day--selected) {
1235
+ background-color: transparent;
1236
+ color: inherit;
1237
+ }
1238
+
1239
+ .react-datepicker__day--today.react-datepicker__day--keyboard-selected:not(.react-datepicker__day--selected) {
1240
+ background-color: transparent;
1241
+ }
1242
+
1011
1243
  .day-with-price {
1012
1244
  padding: 6px;
1013
1245
  height: 76px;
@@ -1220,8 +1452,8 @@ input[type='checkbox'] {
1220
1452
  margin-top: 4px;
1221
1453
  }
1222
1454
 
1223
- .summary-component .campaign-code {
1224
- margin-left: 8px;
1455
+ .summary-component .campaign-code-activated {
1456
+ margin-left: 4px;
1225
1457
  }
1226
1458
 
1227
1459
  .summary-component .campaign-name {
@@ -1245,7 +1477,6 @@ input[type='checkbox'] {
1245
1477
  }
1246
1478
 
1247
1479
  .confirmation-calendar-button {
1248
- background-color: #8ac100;
1249
1480
  margin-bottom: 16px;
1250
1481
  margin-top: 16px;
1251
1482
  width: auto;
@@ -1470,11 +1701,21 @@ body {
1470
1701
  box-shadow 0.15s ease-in-out;
1471
1702
  }
1472
1703
 
1473
- .btn-booking:disabled,
1474
- .btn-booking:disabled:hover {
1475
- background-color: #e3e3e3 !important;
1476
- color: #495057 !important;
1477
- border: none;
1704
+ .btn-blue {
1705
+ background-color: #007bff;
1706
+ color: #ffffff;
1707
+ }
1708
+
1709
+ .btn-primary {
1710
+ background-color: #8ac100;
1711
+ color: #fff;
1712
+ border: 1px solid transparent;
1713
+ }
1714
+
1715
+ .btn-primary:hover {
1716
+ background: #e3e3e3;
1717
+ color: #000000;
1718
+ border: 1px solid transparent;
1478
1719
  }
1479
1720
 
1480
1721
  .input-group-booking > .custom-file,
@@ -1546,10 +1787,7 @@ input[type='checkbox'].form-check-input-booking {
1546
1787
  }
1547
1788
 
1548
1789
  .btn-apply-booking {
1549
- background: #8ac100;
1550
- border: none;
1551
1790
  border-radius: 0 5px 5px 0;
1552
- color: #ffffff;
1553
1791
  font-weight: 700;
1554
1792
  font-size: 16px;
1555
1793
  line-height: 24px;
@@ -1575,12 +1813,12 @@ input[type='checkbox'].form-check-input-booking {
1575
1813
  }
1576
1814
 
1577
1815
  ::-webkit-scrollbar {
1578
- width: 16px;
1816
+ width: 8px;
1579
1817
  }
1580
1818
 
1581
1819
  ::-webkit-scrollbar-thumb {
1582
1820
  background: #888;
1583
- border-left: 12px white solid;
1821
+ border-left: 4px white solid;
1584
1822
  }
1585
1823
 
1586
1824
  ::-webkit-scrollbar-thumb:hover {
@@ -1601,6 +1839,7 @@ input[type='checkbox'].form-check-input-booking {
1601
1839
  0% {
1602
1840
  transform: rotate(0deg);
1603
1841
  }
1842
+
1604
1843
  100% {
1605
1844
  transform: rotate(360deg);
1606
1845
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Muster by Pinja",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "/dist/index.bundle.js",
7
- "version": "1.32.0",
7
+ "version": "1.33.0",
8
8
  "scripts": {
9
9
  "start": "webpack-dev-server",
10
10
  "build": "cross-env NODE_ENV=production OUTPUT=library webpack --progress",