@opentripplanner/trip-details 9.0.5-alpha.1 → 9.0.5
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/lib/components/departure-date.js +14 -43
- package/lib/components/departure-date.js.map +1 -1
- package/lib/components/emissions.d.ts +0 -1
- package/lib/components/emissions.d.ts.map +1 -1
- package/lib/components/emissions.js +18 -47
- package/lib/components/emissions.js.map +1 -1
- package/lib/components/fares-v2-table.d.ts +0 -1
- package/lib/components/fares-v2-table.d.ts.map +1 -1
- package/lib/components/fares-v2-table.js +36 -41
- package/lib/components/fares-v2-table.js.map +1 -1
- package/lib/components/fares.js +34 -63
- package/lib/components/fares.js.map +1 -1
- package/lib/components/flex-booking-info.d.ts +0 -1
- package/lib/components/flex-booking-info.d.ts.map +1 -1
- package/lib/components/flex-booking-info.js +14 -43
- package/lib/components/flex-booking-info.js.map +1 -1
- package/lib/components/time-active.js +15 -23
- package/lib/components/time-active.js.map +1 -1
- package/lib/index.js +25 -55
- package/lib/index.js.map +1 -1
- package/lib/styled.js +23 -49
- package/lib/styled.js.map +1 -1
- package/lib/trip-detail.d.ts.map +1 -1
- package/lib/trip-detail.js +18 -46
- package/lib/trip-detail.js.map +1 -1
- package/lib/types.d.ts +0 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +1 -2
- package/lib/utils.js +6 -14
- package/lib/utils.js.map +1 -1
- package/package.json +3 -3
- package/src/TripDetails.story.tsx +1 -0
- package/src/__snapshots__/TripDetails.story.tsx.snap +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/README.md +0 -6
|
@@ -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 ".";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
2
|
|
|
3
3
|
exports[`TripDetails ApproximatePrefixItinerary smoke-test 1`] = `
|
|
4
4
|
<div class="styled__TripDetails-sc-6q2ok2-17 bkRgZI trip-details">
|
|
@@ -1394,7 +1394,7 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
|
|
|
1394
1394
|
</td>
|
|
1395
1395
|
<td style="text-align: right;">
|
|
1396
1396
|
<em>
|
|
1397
|
-
$
|
|
1397
|
+
$10.25
|
|
1398
1398
|
</em>
|
|
1399
1399
|
</td>
|
|
1400
1400
|
</tr>
|
|
@@ -1418,7 +1418,7 @@ exports[`TripDetails FaresV2TableStory smoke-test 1`] = `
|
|
|
1418
1418
|
</td>
|
|
1419
1419
|
<td style="text-align: right;">
|
|
1420
1420
|
<em>
|
|
1421
|
-
$
|
|
1421
|
+
$9.75
|
|
1422
1422
|
</em>
|
|
1423
1423
|
</td>
|
|
1424
1424
|
</tr>
|
|
@@ -1875,7 +1875,7 @@ exports[`TripDetails LegFareProductsItinerary smoke-test 1`] = `
|
|
|
1875
1875
|
</td>
|
|
1876
1876
|
<td style="text-align: right;">
|
|
1877
1877
|
<em>
|
|
1878
|
-
$
|
|
1878
|
+
$10.25
|
|
1879
1879
|
</em>
|
|
1880
1880
|
</td>
|
|
1881
1881
|
</tr>
|
|
@@ -1899,7 +1899,7 @@ exports[`TripDetails LegFareProductsItinerary smoke-test 1`] = `
|
|
|
1899
1899
|
</td>
|
|
1900
1900
|
<td style="text-align: right;">
|
|
1901
1901
|
<em>
|
|
1902
|
-
$
|
|
1902
|
+
$9.75
|
|
1903
1903
|
</em>
|
|
1904
1904
|
</td>
|
|
1905
1905
|
</tr>
|