@opentripplanner/trip-details 9.0.5-alpha.1 → 9.0.5-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentripplanner/trip-details",
3
- "version": "9.0.5-alpha.1",
3
+ "version": "9.0.5-alpha.2",
4
4
  "description": "A component for displaying details about a trip planning itinerary",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",
@@ -15,10 +15,10 @@
15
15
  "@styled-icons/fa-solid": "^10.34.0",
16
16
  "flat": "^5.0.2",
17
17
  "react-animate-height": "^3.0.4",
18
- "@opentripplanner/core-utils": "15.0.0-alpha.1"
18
+ "@opentripplanner/core-utils": "15.0.0-alpha.2"
19
19
  },
20
20
  "devDependencies": {
21
- "@opentripplanner/types": "9.0.0-alpha.1"
21
+ "@opentripplanner/types": "9.0.0-alpha.2"
22
22
  },
23
23
  "peerDependencies": {
24
24
  "react": "^18.2.0",
@@ -15,6 +15,7 @@ import otp2FareProducts from "../../itinerary-body/src/__mocks__/itineraries/leg
15
15
  import faresv2ItineraryWithTransfer from "../../itinerary-body/src/__mocks__/itineraries/fares-v2-with-transfer.json";
16
16
  import faresv2Itinerary from "../../itinerary-body/src/__mocks__/itineraries/fares-v2-fare-components.json";
17
17
  import bikeOnlyItinerary from "../../itinerary-body/src/__mocks__/itineraries/bike-only.json";
18
+
18
19
  import * as TripDetailsClasses from "./styled";
19
20
  // eslint-disable-next-line import/no-named-as-default
20
21
  import TripDetails, { FaresV2Table } from ".";
@@ -941,10 +941,13 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
941
941
  </span>
942
942
  </th>
943
943
  <th scope="col">
944
- MAX Yellow Line
944
+ 27
945
945
  </th>
946
946
  <th scope="col">
947
- MAX Blue Line
947
+ 1 Line
948
+ </th>
949
+ <th scope="col">
950
+ 120
948
951
  </th>
949
952
  <th scope="col"
950
953
  style="text-align: right;"
@@ -958,63 +961,20 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
958
961
  <th scope="row"
959
962
  style="text-align: left;"
960
963
  >
961
- Cash Adult
964
+ cash regular
962
965
  </th>
963
966
  <td style="text-align: right;">
964
- $2.80
965
- </td>
966
- <td title="Transfer discount of $2.80 is applied"
967
- style="text-align: right;"
968
- >
969
- <svg viewbox="0 0 24 24"
970
- height="16"
971
- width="16"
972
- aria-hidden="true"
973
- focusable="false"
974
- fill="currentColor"
975
- xmlns="http://www.w3.org/2000/svg"
976
- class="StyledIconBase-sc-ea9ulj-0 ebjPRL fares-v2-table__TransferIcon-sc-h3t2h2-0 jfEQzl"
977
- >
978
- <path d="m15 12 5-4-5-4v2.999H2v2h13zm7 3H9v-3l-5 4 5 4v-3h13z">
979
- </path>
980
- </svg>
981
- $0.00
967
+ $3.00
982
968
  </td>
983
969
  <td style="text-align: right;">
984
- <em>
985
- $2.80
986
- </em>
970
+ $3.00
987
971
  </td>
988
- </tr>
989
- <tr>
990
- <th scope="row"
991
- style="text-align: left;"
992
- >
993
- Cash Honored Citizen
994
- </th>
995
972
  <td style="text-align: right;">
996
- $1.40
997
- </td>
998
- <td title="Transfer discount of $1.40 is applied"
999
- style="text-align: right;"
1000
- >
1001
- <svg viewbox="0 0 24 24"
1002
- height="16"
1003
- width="16"
1004
- aria-hidden="true"
1005
- focusable="false"
1006
- fill="currentColor"
1007
- xmlns="http://www.w3.org/2000/svg"
1008
- class="StyledIconBase-sc-ea9ulj-0 ebjPRL fares-v2-table__TransferIcon-sc-h3t2h2-0 jfEQzl"
1009
- >
1010
- <path d="m15 12 5-4-5-4v2.999H2v2h13zm7 3H9v-3l-5 4 5 4v-3h13z">
1011
- </path>
1012
- </svg>
1013
- $0.00
973
+ $2.50
1014
974
  </td>
1015
975
  <td style="text-align: right;">
1016
976
  <em>
1017
- $1.40
977
+ $8.50
1018
978
  </em>
1019
979
  </td>
1020
980
  </tr>
@@ -1022,31 +982,20 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1022
982
  <th scope="row"
1023
983
  style="text-align: left;"
1024
984
  >
1025
- Cash Youth
985
+ cash senior
1026
986
  </th>
1027
987
  <td style="text-align: right;">
1028
- $1.40
988
+ $1.00
1029
989
  </td>
1030
- <td title="Transfer discount of $1.40 is applied"
1031
- style="text-align: right;"
1032
- >
1033
- <svg viewbox="0 0 24 24"
1034
- height="16"
1035
- width="16"
1036
- aria-hidden="true"
1037
- focusable="false"
1038
- fill="currentColor"
1039
- xmlns="http://www.w3.org/2000/svg"
1040
- class="StyledIconBase-sc-ea9ulj-0 ebjPRL fares-v2-table__TransferIcon-sc-h3t2h2-0 jfEQzl"
1041
- >
1042
- <path d="m15 12 5-4-5-4v2.999H2v2h13zm7 3H9v-3l-5 4 5 4v-3h13z">
1043
- </path>
1044
- </svg>
1045
- $0.00
990
+ <td style="text-align: right;">
991
+ $1.00
992
+ </td>
993
+ <td style="text-align: right;">
994
+ $1.00
1046
995
  </td>
1047
996
  <td style="text-align: right;">
1048
997
  <em>
1049
- $1.40
998
+ $3.00
1050
999
  </em>
1051
1000
  </td>
1052
1001
  </tr>
@@ -1054,31 +1003,34 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1054
1003
  <th scope="row"
1055
1004
  style="text-align: left;"
1056
1005
  >
1057
- HOP Fastpass Adult
1006
+ cash special
1058
1007
  </th>
1059
- <td style="text-align: right;">
1060
- $2.80
1008
+ <td style="text-align: center;">
1009
+ -
1010
+ <span class="styled__InvisibleA11yLabel-sc-6q2ok2-0 elLeWK">
1011
+ No fare information for this leg
1012
+ </span>
1061
1013
  </td>
1062
- <td title="Transfer discount of $2.80 is applied"
1063
- style="text-align: right;"
1064
- >
1065
- <svg viewbox="0 0 24 24"
1066
- height="16"
1067
- width="16"
1068
- aria-hidden="true"
1069
- focusable="false"
1070
- fill="currentColor"
1071
- xmlns="http://www.w3.org/2000/svg"
1072
- class="StyledIconBase-sc-ea9ulj-0 ebjPRL fares-v2-table__TransferIcon-sc-h3t2h2-0 jfEQzl"
1073
- >
1074
- <path d="m15 12 5-4-5-4v2.999H2v2h13zm7 3H9v-3l-5 4 5 4v-3h13z">
1075
- </path>
1076
- </svg>
1077
- $0.00
1014
+ <td style="text-align: center;">
1015
+ -
1016
+ <span class="styled__InvisibleA11yLabel-sc-6q2ok2-0 elLeWK">
1017
+ No fare information for this leg
1018
+ </span>
1078
1019
  </td>
1079
- <td style="text-align: right;">
1020
+ <td style="text-align: center;">
1021
+ -
1022
+ <span class="styled__InvisibleA11yLabel-sc-6q2ok2-0 elLeWK">
1023
+ No fare information for this leg
1024
+ </span>
1025
+ </td>
1026
+ <td title="No fare total available"
1027
+ style="text-align: center;"
1028
+ >
1080
1029
  <em>
1081
- $2.80
1030
+ -
1031
+ <span class="styled__InvisibleA11yLabel-sc-6q2ok2-0 elLeWK">
1032
+ No fare information for this leg
1033
+ </span>
1082
1034
  </em>
1083
1035
  </td>
1084
1036
  </tr>
@@ -1086,31 +1038,25 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1086
1038
  <th scope="row"
1087
1039
  style="text-align: left;"
1088
1040
  >
1089
- HOP Fastpass Honored Citizen
1041
+ cash youth
1090
1042
  </th>
1091
1043
  <td style="text-align: right;">
1092
- $1.40
1044
+ $0.00
1093
1045
  </td>
1094
- <td title="Transfer discount of $1.40 is applied"
1095
- style="text-align: right;"
1096
- >
1097
- <svg viewbox="0 0 24 24"
1098
- height="16"
1099
- width="16"
1100
- aria-hidden="true"
1101
- focusable="false"
1102
- fill="currentColor"
1103
- xmlns="http://www.w3.org/2000/svg"
1104
- class="StyledIconBase-sc-ea9ulj-0 ebjPRL fares-v2-table__TransferIcon-sc-h3t2h2-0 jfEQzl"
1105
- >
1106
- <path d="m15 12 5-4-5-4v2.999H2v2h13zm7 3H9v-3l-5 4 5 4v-3h13z">
1107
- </path>
1108
- </svg>
1046
+ <td style="text-align: right;">
1109
1047
  $0.00
1110
1048
  </td>
1111
1049
  <td style="text-align: right;">
1050
+ $0.00
1051
+ </td>
1052
+ <td title="No fare total available"
1053
+ style="text-align: center;"
1054
+ >
1112
1055
  <em>
1113
- $1.40
1056
+ -
1057
+ <span class="styled__InvisibleA11yLabel-sc-6q2ok2-0 elLeWK">
1058
+ No fare information for this leg
1059
+ </span>
1114
1060
  </em>
1115
1061
  </td>
1116
1062
  </tr>
@@ -1118,12 +1064,12 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1118
1064
  <th scope="row"
1119
1065
  style="text-align: left;"
1120
1066
  >
1121
- HOP Fastpass Youth
1067
+ electronic regular
1122
1068
  </th>
1123
1069
  <td style="text-align: right;">
1124
- $1.40
1070
+ $3.00
1125
1071
  </td>
1126
- <td title="Transfer discount of $1.40 is applied"
1072
+ <td title="Transfer discount of $3.00 is applied"
1127
1073
  style="text-align: right;"
1128
1074
  >
1129
1075
  <svg viewbox="0 0 24 24"
@@ -1140,22 +1086,7 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1140
1086
  </svg>
1141
1087
  $0.00
1142
1088
  </td>
1143
- <td style="text-align: right;">
1144
- <em>
1145
- $1.40
1146
- </em>
1147
- </td>
1148
- </tr>
1149
- <tr>
1150
- <th scope="row"
1151
- style="text-align: left;"
1152
- >
1153
- Open Payment Adult
1154
- </th>
1155
- <td style="text-align: right;">
1156
- $2.80
1157
- </td>
1158
- <td title="Transfer discount of $2.80 is applied"
1089
+ <td title="Transfer discount of $2.50 is applied"
1159
1090
  style="text-align: right;"
1160
1091
  >
1161
1092
  <svg viewbox="0 0 24 24"
@@ -1174,7 +1105,7 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1174
1105
  </td>
1175
1106
  <td style="text-align: right;">
1176
1107
  <em>
1177
- $2.80
1108
+ $3.00
1178
1109
  </em>
1179
1110
  </td>
1180
1111
  </tr>
@@ -1182,12 +1113,12 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1182
1113
  <th scope="row"
1183
1114
  style="text-align: left;"
1184
1115
  >
1185
- Open Payment Honored Citizen
1116
+ electronic senior
1186
1117
  </th>
1187
1118
  <td style="text-align: right;">
1188
- $1.40
1119
+ $1.00
1189
1120
  </td>
1190
- <td title="Transfer discount of $1.40 is applied"
1121
+ <td title="Transfer discount of $1.00 is applied"
1191
1122
  style="text-align: right;"
1192
1123
  >
1193
1124
  <svg viewbox="0 0 24 24"
@@ -1204,22 +1135,7 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1204
1135
  </svg>
1205
1136
  $0.00
1206
1137
  </td>
1207
- <td style="text-align: right;">
1208
- <em>
1209
- $1.40
1210
- </em>
1211
- </td>
1212
- </tr>
1213
- <tr>
1214
- <th scope="row"
1215
- style="text-align: left;"
1216
- >
1217
- Open Payment Youth
1218
- </th>
1219
- <td style="text-align: right;">
1220
- $1.40
1221
- </td>
1222
- <td title="Transfer discount of $1.40 is applied"
1138
+ <td title="Transfer discount of $1.00 is applied"
1223
1139
  style="text-align: right;"
1224
1140
  >
1225
1141
  <svg viewbox="0 0 24 24"
@@ -1238,7 +1154,7 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1238
1154
  </td>
1239
1155
  <td style="text-align: right;">
1240
1156
  <em>
1241
- $1.40
1157
+ $1.00
1242
1158
  </em>
1243
1159
  </td>
1244
1160
  </tr>
@@ -1246,12 +1162,12 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1246
1162
  <th scope="row"
1247
1163
  style="text-align: left;"
1248
1164
  >
1249
- Virtual HOP Fastpass Adult
1165
+ electronic special
1250
1166
  </th>
1251
1167
  <td style="text-align: right;">
1252
- $2.80
1168
+ $1.00
1253
1169
  </td>
1254
- <td title="Transfer discount of $2.80 is applied"
1170
+ <td title="Transfer discount of $1.00 is applied"
1255
1171
  style="text-align: right;"
1256
1172
  >
1257
1173
  <svg viewbox="0 0 24 24"
@@ -1268,22 +1184,7 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1268
1184
  </svg>
1269
1185
  $0.00
1270
1186
  </td>
1271
- <td style="text-align: right;">
1272
- <em>
1273
- $2.80
1274
- </em>
1275
- </td>
1276
- </tr>
1277
- <tr>
1278
- <th scope="row"
1279
- style="text-align: left;"
1280
- >
1281
- Virtual HOP Fastpass Honored Citizen
1282
- </th>
1283
- <td style="text-align: right;">
1284
- $1.40
1285
- </td>
1286
- <td title="Transfer discount of $1.40 is applied"
1187
+ <td title="Transfer discount of $1.00 is applied"
1287
1188
  style="text-align: right;"
1288
1189
  >
1289
1190
  <svg viewbox="0 0 24 24"
@@ -1302,7 +1203,7 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1302
1203
  </td>
1303
1204
  <td style="text-align: right;">
1304
1205
  <em>
1305
- $1.40
1206
+ $1.00
1306
1207
  </em>
1307
1208
  </td>
1308
1209
  </tr>
@@ -1310,31 +1211,25 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1310
1211
  <th scope="row"
1311
1212
  style="text-align: left;"
1312
1213
  >
1313
- Virtual HOP Fastpass Youth
1214
+ electronic youth
1314
1215
  </th>
1315
1216
  <td style="text-align: right;">
1316
- $1.40
1217
+ $0.00
1317
1218
  </td>
1318
- <td title="Transfer discount of $1.40 is applied"
1319
- style="text-align: right;"
1320
- >
1321
- <svg viewbox="0 0 24 24"
1322
- height="16"
1323
- width="16"
1324
- aria-hidden="true"
1325
- focusable="false"
1326
- fill="currentColor"
1327
- xmlns="http://www.w3.org/2000/svg"
1328
- class="StyledIconBase-sc-ea9ulj-0 ebjPRL fares-v2-table__TransferIcon-sc-h3t2h2-0 jfEQzl"
1329
- >
1330
- <path d="m15 12 5-4-5-4v2.999H2v2h13zm7 3H9v-3l-5 4 5 4v-3h13z">
1331
- </path>
1332
- </svg>
1219
+ <td style="text-align: right;">
1333
1220
  $0.00
1334
1221
  </td>
1335
1222
  <td style="text-align: right;">
1223
+ $0.00
1224
+ </td>
1225
+ <td title="No fare total available"
1226
+ style="text-align: center;"
1227
+ >
1336
1228
  <em>
1337
- $1.40
1229
+ -
1230
+ <span class="styled__InvisibleA11yLabel-sc-6q2ok2-0 elLeWK">
1231
+ No fare information for this leg
1232
+ </span>
1338
1233
  </em>
1339
1234
  </td>
1340
1235
  </tr>
@@ -1394,7 +1289,7 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1394
1289
  </td>
1395
1290
  <td style="text-align: right;">
1396
1291
  <em>
1397
- $7.00
1292
+ $10.25
1398
1293
  </em>
1399
1294
  </td>
1400
1295
  </tr>
@@ -1418,7 +1313,7 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
1418
1313
  </td>
1419
1314
  <td style="text-align: right;">
1420
1315
  <em>
1421
- $6.50
1316
+ $9.75
1422
1317
  </em>
1423
1318
  </td>
1424
1319
  </tr>
@@ -1875,7 +1770,7 @@ exports[`TripDetails LegFareProductsItinerary smoke-test 1`] = `
1875
1770
  </td>
1876
1771
  <td style="text-align: right;">
1877
1772
  <em>
1878
- $7.00
1773
+ $10.25
1879
1774
  </em>
1880
1775
  </td>
1881
1776
  </tr>
@@ -1899,7 +1794,7 @@ exports[`TripDetails LegFareProductsItinerary smoke-test 1`] = `
1899
1794
  </td>
1900
1795
  <td style="text-align: right;">
1901
1796
  <em>
1902
- $6.50
1797
+ $9.75
1903
1798
  </em>
1904
1799
  </td>
1905
1800
  </tr>