@duffel/components 2.0.1 → 2.1.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.
@@ -7,10 +7,10 @@
7
7
  .duffel-components .duffel-button {
8
8
  --BUTTON-BASE-COLOR: rgb(var(--ACCENT));
9
9
  --BUTTON-HOVER-COLOR: rgba(var(--ACCENT), var(--ACCENT-LIGHT-300));
10
- --BUTTON-FONT-SIZE: var(--FONT-SIZES-C0);
10
+ --BUTTON-FONT-SIZE: var(--FONT-SIZES-C1);
11
11
  --BUTTON-ICON-SIZE: 24px;
12
12
  --BUTTON-RADIUS: 5px;
13
- --BUTTON-SPACING: 6px 40px;
13
+ --BUTTON-SPACING: 2px 40px;
14
14
  --BUTTON-ICON-SPACING: 8px;
15
15
  --BUTTON-ICON-MARGIN: 12px;
16
16
  --TRANSITION-CUBIC-BEZIER: cubic-bezier(0.25, 0.8, 0.25, 1);
@@ -41,8 +41,8 @@
41
41
 
42
42
  .duffel-components .duffel-button.duffel-button--icon-only {
43
43
  padding: var(--BUTTON-ICON-SPACING);
44
- height: 48px;
45
- width: 48px;
44
+ height: 40px;
45
+ width: 40px;
46
46
  }
47
47
 
48
48
  .duffel-components .duffel-button.duffel-button--icon-only > svg {
@@ -123,13 +123,13 @@
123
123
  line-height: 24px
124
124
  }
125
125
  .duffel-components .duffel-button:not(.duffel-button--icon-only) {
126
- height: 32px;
126
+ height: 40px;
127
127
  }
128
128
 
129
129
  .duffel-components .duffel-button.duffel-button--icon-only {
130
130
  padding: var(--BUTTON-ICON-SPACING);
131
- height: 32px;
132
- width: 32px;
131
+ height: 40px;
132
+ width: 40px;
133
133
  }
134
134
  }
135
135
 
@@ -400,118 +400,6 @@
400
400
  text-transform: uppercase;
401
401
  }
402
402
 
403
- .duffel-components .passenger-selection-passenger {
404
- -webkit-appearance: none;
405
- -moz-appearance: none;
406
- appearance: none;
407
- border: none;
408
- background: none;
409
- cursor: pointer;
410
- font-size: var(--FONT-SIZES-C2);
411
- font-family: var(--FONT-FAMILY);
412
- margin-top: var(--SPACING-XS-2);
413
- height: 32px;
414
- display: flex;
415
- align-items: center;
416
- padding: var(--SPACING-SM-1) var(--SPACING-LG-1);
417
- width: 100%;
418
- }
419
-
420
- .duffel-components .passenger-selection-passenger:first-child {
421
- margin-top: 0;
422
- }
423
-
424
- .duffel-components .passenger-selection-passenger:hover,
425
- .duffel-components .passenger-selection-passenger:focus,
426
- .duffel-components .passenger-selection-passenger:active {
427
- background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-100));
428
- }
429
-
430
- .duffel-components .passenger-selection-passenger__identifier,
431
- .duffel-components .passenger-selection-passenger__action {
432
- line-height: 1;
433
- }
434
-
435
- .duffel-components .passenger-selection-passenger__identifier {
436
- flex-grow: 1;
437
- margin-right: var(--SPACING-LG-1);
438
- text-align: left;
439
- color: var(--GREY-900);
440
- }
441
-
442
- .duffel-components .passenger-selection-passenger__action {
443
- color: var(--GREY-600);
444
- margin-right: var(--SPACING-XS-2);
445
- }
446
-
447
- .duffel-components .passenger-selection-passenger__seat-designator {
448
- color: var(--GREY-900);
449
- font-weight: 600;
450
- margin-right: var(--SPACING-SM-3);
451
- }
452
-
453
- .duffel-components .passenger-selection-passenger__seat-price {
454
- text-align: right;
455
- display: inline-block;
456
- width: 70px;
457
- }
458
-
459
- .duffel-components .passenger-selection-passenger--selected {
460
- box-shadow: 4px 0px 0px 0px rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000))
461
- inset;
462
- background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-100));
463
- }
464
-
465
- .duffel-components .passenger-segment__title {
466
- color: var(--GREY-900);
467
- font-style: normal;
468
- font-size: var(--FONT-SIZES-C1);
469
- font-weight: 600;
470
- line-height: var(--SPACING-MD-3);
471
- padding: 0 0 0 var(--SPACING-LG-1);
472
- margin: 0 0 var(--SPACING-SM-1);
473
- display: flex;
474
- align-items: center;
475
- }
476
- .duffel-components .passenger-segment__chevron {
477
- margin: 0 var(--SPACING-SM-1);
478
- color: var(--GREY-400);
479
- }
480
-
481
- .duffel-components .passenger-selection-segment {
482
- margin: var(--SPACING-LG-1) 0 0;
483
- padding: 0 0 var(--SPACING-LG-1);
484
- border-bottom: 1px solid var(--GREY-200);
485
- font-family: var(--FONT-FAMILY);
486
- }
487
-
488
- .duffel-components .passenger-selection-segment:first-child {
489
- margin-top: 0;
490
- }
491
-
492
- .duffel-components .passenger-selection {
493
- display: flex;
494
- flex-direction: column;
495
- font-family: var(--FONT-FAMILY);
496
- flex-grow: 1;
497
- }
498
-
499
- .duffel-components .passenger-selection__title {
500
- margin: 0;
501
- padding: 0 0 var(--SPACING-MD-3);
502
- font-size: var(--FONT-SIZES-H2);
503
- line-height: 1.2;
504
- min-width: 360px;
505
- }
506
-
507
- .duffel-components .passenger-selection__segments {
508
- list-style: none;
509
- overflow-y: auto;
510
- font-size: var(--FONT-SIZES-C1);
511
- padding: var(--SPACING-XS-2);
512
- margin: calc(var(--SPACING-XS-2) * -1);
513
- }
514
-
515
403
  .duffel-components .seat-map__legend {
516
404
  width: calc(100% + var(--SPACING-MD-3));
517
405
  min-height: -webkit-fit-content;
@@ -815,80 +703,6 @@
815
703
  }
816
704
  }
817
705
 
818
- .duffel-components .summary__segment {
819
- border-bottom: 1px solid var(--GREY-200);
820
- display: flex;
821
- align-items: center;
822
- justify-content: space-between;
823
- margin-bottom: var(--SPACING-SM-3);
824
- padding-bottom: var(--SPACING-SM-3);
825
- }
826
-
827
- .duffel-components .summary__segment > .passenger-segment__title {
828
- padding: 0;
829
- margin: 0;
830
- }
831
-
832
- .duffel-components .summary__segment-passenger {
833
- color: var(--GREY-900);
834
- font-size: var(--FONT-SIZES-C1);
835
- font-weight: normal;
836
- margin: 0;
837
- padding: 0;
838
- }
839
- .duffel-components .summary__description-cost {
840
- display: flex;
841
- justify-content: space-between;
842
- font-size: var(--FONT-SIZES-C1);
843
- margin-bottom: var(--SPACING-SM-3);
844
- }
845
- .duffel-components .summary:not(.summary--mobile) {
846
- padding-top: 0;
847
- display: none;
848
- }
849
- .duffel-components .summary__actions {
850
- display: flex;
851
- }
852
- .duffel-components .summary__actions--previous {
853
- transform: rotate(180deg);
854
- }
855
- .duffel-components .summary__actions > button:last-of-type {
856
- flex: 1 auto;
857
- justify-content: center;
858
- margin-left: var(--SPACING-SM-3);
859
- }
860
- @media screen and (min-width: 768px) {
861
- .duffel-components .summary:not(.summary--mobile) {
862
- display: flex;
863
- justify-content: space-between;
864
- align-items: center;
865
- }
866
-
867
- .duffel-components .summary--mobile {
868
- display: none;
869
- }
870
-
871
- .duffel-components .summary__description-title {
872
- color: var(--GREY-900);
873
- font-size: var(--FONT-SIZES-H5);
874
- line-height: 26px;
875
- margin-bottom: var(--SPACING-XS-2);
876
- }
877
-
878
- .duffel-components .summary__description-cost {
879
- color: var(--GREY-600);
880
- font-size: var(--FONT-SIZES-C2);
881
- line-height: 21px;
882
- margin-bottom: 0;
883
- }
884
- .duffel-components .summary__actions--previous.duffel-button--icon-only {
885
- padding: 0;
886
- }
887
- .duffel-components .summary__actions .summary__confirmation-btn:last-child {
888
- margin-left: var(--SPACING-SM-1);
889
- }
890
- }
891
-
892
706
  .duffel-components {
893
707
  --FONT-FAMILY: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
894
708
  'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
@@ -1041,3 +855,285 @@
1041
855
  }
1042
856
  }
1043
857
 
858
+ .duffel-components .passenger-selection {
859
+ display: flex;
860
+ flex-direction: column;
861
+ font-family: var(--FONT-FAMILY);
862
+ flex-grow: 1;
863
+ }
864
+
865
+ .duffel-components .passenger-selection__title {
866
+ margin: 0;
867
+ padding: 0 0 var(--SPACING-MD-3);
868
+ font-size: var(--FONT-SIZES-H2);
869
+ line-height: 1.2;
870
+ min-width: 360px;
871
+ }
872
+
873
+ .duffel-components .passenger-selection__segments {
874
+ list-style: none;
875
+ overflow-y: auto;
876
+ font-size: var(--FONT-SIZES-C1);
877
+ padding: var(--SPACING-XS-2);
878
+ margin: calc(var(--SPACING-XS-2) * -1);
879
+ }
880
+
881
+ .duffel-components .passenger-selection-passenger {
882
+ -webkit-appearance: none;
883
+ -moz-appearance: none;
884
+ appearance: none;
885
+ border: none;
886
+ background: none;
887
+ cursor: pointer;
888
+ font-size: var(--FONT-SIZES-C2);
889
+ font-family: var(--FONT-FAMILY);
890
+ margin-top: var(--SPACING-XS-2);
891
+ height: 32px;
892
+ display: flex;
893
+ align-items: center;
894
+ padding: var(--SPACING-SM-1) var(--SPACING-LG-1);
895
+ width: 100%;
896
+ }
897
+
898
+ .duffel-components .passenger-selection-passenger:first-child {
899
+ margin-top: 0;
900
+ }
901
+
902
+ .duffel-components .passenger-selection-passenger:hover,
903
+ .duffel-components .passenger-selection-passenger:focus,
904
+ .duffel-components .passenger-selection-passenger:active {
905
+ background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-100));
906
+ }
907
+
908
+ .duffel-components .passenger-selection-passenger__identifier,
909
+ .duffel-components .passenger-selection-passenger__action {
910
+ line-height: 1;
911
+ }
912
+
913
+ .duffel-components .passenger-selection-passenger__identifier {
914
+ flex-grow: 1;
915
+ margin-right: var(--SPACING-LG-1);
916
+ text-align: left;
917
+ color: var(--GREY-900);
918
+ }
919
+
920
+ .duffel-components .passenger-selection-passenger__action {
921
+ color: var(--GREY-600);
922
+ margin-right: var(--SPACING-XS-2);
923
+ }
924
+
925
+ .duffel-components .passenger-selection-passenger__seat-designator {
926
+ color: var(--GREY-900);
927
+ font-weight: 600;
928
+ margin-right: var(--SPACING-SM-3);
929
+ }
930
+
931
+ .duffel-components .passenger-selection-passenger__seat-price {
932
+ text-align: right;
933
+ display: inline-block;
934
+ width: 70px;
935
+ }
936
+
937
+ .duffel-components .passenger-selection-passenger--selected {
938
+ box-shadow: 4px 0px 0px 0px rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000))
939
+ inset;
940
+ background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-100));
941
+ }
942
+
943
+ .duffel-components .passenger-segment__title {
944
+ color: var(--GREY-900);
945
+ font-style: normal;
946
+ font-size: var(--FONT-SIZES-C1);
947
+ font-weight: 600;
948
+ line-height: var(--SPACING-MD-3);
949
+ padding: 0 0 0 var(--SPACING-LG-1);
950
+ margin: 0 0 var(--SPACING-SM-1);
951
+ display: flex;
952
+ align-items: center;
953
+ }
954
+ .duffel-components .passenger-segment__chevron {
955
+ margin: 0 var(--SPACING-SM-1);
956
+ color: var(--GREY-400);
957
+ }
958
+
959
+ .duffel-components .passenger-selection-segment {
960
+ margin: var(--SPACING-LG-1) 0 0;
961
+ padding: 0 0 var(--SPACING-LG-1);
962
+ border-bottom: 1px solid var(--GREY-200);
963
+ font-family: var(--FONT-FAMILY);
964
+ }
965
+
966
+ .duffel-components .passenger-selection-segment:first-child {
967
+ margin-top: 0;
968
+ }
969
+
970
+ .duffel-components .layout {
971
+ --LAYOUT-BOX-SHADOW: 0px 0px 0px 1px rgba(var(--BLACK), 0.05),
972
+ 0px 4px 24px rgba(var(--BLACK), 0.08);
973
+ background-color: rgb(var(--WHITE));
974
+ display: flex;
975
+ flex-direction: column;
976
+ width: 100%;
977
+ height: 100%;
978
+ padding: 0;
979
+ position: relative;
980
+ }
981
+
982
+ .duffel-components .layout__container {
983
+ display: flex;
984
+ flex-direction: column;
985
+ align-items: center;
986
+ flex-grow: 1;
987
+ border-bottom: 1px solid rgba(59, 64, 86, 0.1);
988
+ height: calc(100% - 177px);
989
+ overflow: auto;
990
+ }
991
+
992
+ .duffel-components .layout__aside {
993
+ display: none;
994
+ padding-top: var(--SPACING-LG-1);
995
+ }
996
+
997
+ .duffel-components .layout__main-content {
998
+ width: 100%;
999
+ height: 100%;
1000
+ display: flex;
1001
+ justify-content: space-between;
1002
+ flex-direction: column;
1003
+ }
1004
+
1005
+ .duffel-components .layout__mobile-info {
1006
+ align-self: center;
1007
+ position: absolute;
1008
+ bottom: 187px;
1009
+ width: calc(100% - 20px);
1010
+ padding: var(--SPACING-XS-3);
1011
+ margin-bottom: var(--SPACING-SM-2);
1012
+ height: auto;
1013
+ background-color: white;
1014
+ border-radius: 8px;
1015
+ z-index: 100;
1016
+ box-shadow: var(--LAYOUT-BOX-SHADOW);
1017
+ }
1018
+
1019
+ .duffel-components .layout__confirmation {
1020
+ padding: var(--SPACING-MD-3);
1021
+ box-shadow: var(--LAYOUT-BOX-SHADOW);
1022
+ position: -webkit-sticky;
1023
+ position: sticky;
1024
+ bottom: 0;
1025
+ background-color: rgb(var(--WHITE));
1026
+ }
1027
+
1028
+ @media screen and (min-width: 768px) {
1029
+ .duffel-components .layout {
1030
+ width: calc(100vw - 2 * 71px);
1031
+ overflow: hidden;
1032
+ }
1033
+
1034
+ .duffel-components .layout__container {
1035
+ height: auto;
1036
+ padding: 0;
1037
+ flex-direction: row;
1038
+ align-items: initial;
1039
+ max-height: calc(100vh - 115px);
1040
+ }
1041
+
1042
+ .duffel-components .layout__confirmation {
1043
+ padding: var(--SPACING-LG-1);
1044
+ box-shadow: none;
1045
+ }
1046
+
1047
+ .duffel-components .layout__aside {
1048
+ overflow: auto;
1049
+ border-right: 1px solid var(--GREY-200);
1050
+ display: flex;
1051
+ flex-direction: column;
1052
+ position: -webkit-sticky;
1053
+ position: sticky;
1054
+ top: 0;
1055
+ flex: 1 0 auto;
1056
+ min-width: 415px;
1057
+ }
1058
+
1059
+ .duffel-components .layout__main-content {
1060
+ height: auto;
1061
+ align-items: center;
1062
+ overflow: auto;
1063
+ }
1064
+ }
1065
+
1066
+ .duffel-components .summary__segment {
1067
+ border-bottom: 1px solid var(--GREY-200);
1068
+ display: flex;
1069
+ align-items: center;
1070
+ justify-content: space-between;
1071
+ margin-bottom: var(--SPACING-SM-3);
1072
+ padding-bottom: var(--SPACING-SM-3);
1073
+ }
1074
+
1075
+ .duffel-components .summary__segment > .passenger-segment__title {
1076
+ padding: 0;
1077
+ margin: 0;
1078
+ }
1079
+
1080
+ .duffel-components .summary__segment-passenger {
1081
+ color: var(--GREY-900);
1082
+ font-size: var(--FONT-SIZES-C1);
1083
+ font-weight: normal;
1084
+ margin: 0;
1085
+ padding: 0;
1086
+ }
1087
+ .duffel-components .summary__description-cost {
1088
+ display: flex;
1089
+ justify-content: space-between;
1090
+ font-size: var(--FONT-SIZES-C1);
1091
+ margin-bottom: var(--SPACING-SM-3);
1092
+ }
1093
+ .duffel-components .summary:not(.summary--mobile) {
1094
+ padding-top: 0;
1095
+ display: none;
1096
+ }
1097
+ .duffel-components .summary__actions {
1098
+ display: flex;
1099
+ }
1100
+ .duffel-components .summary__actions--previous {
1101
+ transform: rotate(180deg);
1102
+ }
1103
+ .duffel-components .summary__actions > button:last-of-type {
1104
+ flex: 1 auto;
1105
+ justify-content: center;
1106
+ margin-left: var(--SPACING-SM-3);
1107
+ }
1108
+ @media screen and (min-width: 768px) {
1109
+ .duffel-components .summary:not(.summary--mobile) {
1110
+ display: flex;
1111
+ justify-content: space-between;
1112
+ align-items: center;
1113
+ }
1114
+
1115
+ .duffel-components .summary--mobile {
1116
+ display: none;
1117
+ }
1118
+
1119
+ .duffel-components .summary__description-title {
1120
+ color: var(--GREY-900);
1121
+ font-size: var(--FONT-SIZES-H5);
1122
+ line-height: 26px;
1123
+ margin-bottom: var(--SPACING-XS-2);
1124
+ }
1125
+
1126
+ .duffel-components .summary__description-cost {
1127
+ color: var(--GREY-600);
1128
+ font-size: var(--FONT-SIZES-C2);
1129
+ line-height: 21px;
1130
+ margin-bottom: 0;
1131
+ }
1132
+ .duffel-components .summary__actions--previous.duffel-button--icon-only {
1133
+ padding: 0;
1134
+ }
1135
+ .duffel-components .summary__actions .summary__confirmation-btn:last-child {
1136
+ margin-left: var(--SPACING-SM-1);
1137
+ }
1138
+ }
1139
+