@voyantjs/flights-ui 0.20.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.
- package/dist/components/airline-logo.d.ts +19 -0
- package/dist/components/airline-logo.d.ts.map +1 -0
- package/dist/components/airline-logo.js +18 -0
- package/dist/components/airport-combobox.d.ts +20 -0
- package/dist/components/airport-combobox.d.ts.map +1 -0
- package/dist/components/airport-combobox.js +29 -0
- package/dist/components/flight-baggage-step.d.ts +32 -0
- package/dist/components/flight-baggage-step.d.ts.map +1 -0
- package/dist/components/flight-baggage-step.js +106 -0
- package/dist/components/flight-billing-step.d.ts +69 -0
- package/dist/components/flight-billing-step.d.ts.map +1 -0
- package/dist/components/flight-billing-step.js +111 -0
- package/dist/components/flight-booking-journey.d.ts +31 -0
- package/dist/components/flight-booking-journey.d.ts.map +1 -0
- package/dist/components/flight-booking-journey.js +114 -0
- package/dist/components/flight-booking-ledger.d.ts +53 -0
- package/dist/components/flight-booking-ledger.d.ts.map +1 -0
- package/dist/components/flight-booking-ledger.js +94 -0
- package/dist/components/flight-booking-shell.d.ts +92 -0
- package/dist/components/flight-booking-shell.d.ts.map +1 -0
- package/dist/components/flight-booking-shell.js +486 -0
- package/dist/components/flight-contact-form.d.ts +16 -0
- package/dist/components/flight-contact-form.d.ts.map +1 -0
- package/dist/components/flight-contact-form.js +21 -0
- package/dist/components/flight-fare-upsell-step.d.ts +26 -0
- package/dist/components/flight-fare-upsell-step.d.ts.map +1 -0
- package/dist/components/flight-fare-upsell-step.js +141 -0
- package/dist/components/flight-filters-bar.d.ts +19 -0
- package/dist/components/flight-filters-bar.d.ts.map +1 -0
- package/dist/components/flight-filters-bar.js +90 -0
- package/dist/components/flight-itinerary.d.ts +28 -0
- package/dist/components/flight-itinerary.d.ts.map +1 -0
- package/dist/components/flight-itinerary.js +90 -0
- package/dist/components/flight-offer-detail.d.ts +21 -0
- package/dist/components/flight-offer-detail.d.ts.map +1 -0
- package/dist/components/flight-offer-detail.js +61 -0
- package/dist/components/flight-offer-row.d.ts +25 -0
- package/dist/components/flight-offer-row.d.ts.map +1 -0
- package/dist/components/flight-offer-row.js +74 -0
- package/dist/components/flight-order-confirmation.d.ts +13 -0
- package/dist/components/flight-order-confirmation.d.ts.map +1 -0
- package/dist/components/flight-order-confirmation.js +50 -0
- package/dist/components/flight-passenger-form.d.ts +49 -0
- package/dist/components/flight-passenger-form.d.ts.map +1 -0
- package/dist/components/flight-passenger-form.js +155 -0
- package/dist/components/flight-payment-selector.d.ts +13 -0
- package/dist/components/flight-payment-selector.d.ts.map +1 -0
- package/dist/components/flight-payment-selector.js +36 -0
- package/dist/components/flight-payment-step.d.ts +32 -0
- package/dist/components/flight-payment-step.d.ts.map +1 -0
- package/dist/components/flight-payment-step.js +82 -0
- package/dist/components/flight-search-form.d.ts +14 -0
- package/dist/components/flight-search-form.d.ts.map +1 -0
- package/dist/components/flight-search-form.js +56 -0
- package/dist/components/flight-seat-map.d.ts +32 -0
- package/dist/components/flight-seat-map.d.ts.map +1 -0
- package/dist/components/flight-seat-map.js +96 -0
- package/dist/components/flight-seats-step.d.ts +40 -0
- package/dist/components/flight-seats-step.d.ts.map +1 -0
- package/dist/components/flight-seats-step.js +211 -0
- package/dist/components/flight-services-step.d.ts +27 -0
- package/dist/components/flight-services-step.d.ts.map +1 -0
- package/dist/components/flight-services-step.js +110 -0
- package/dist/components/pax-cabin-popover.d.ts +18 -0
- package/dist/components/pax-cabin-popover.d.ts.map +1 -0
- package/dist/components/pax-cabin-popover.js +38 -0
- package/dist/components/popular-routes.d.ts +47 -0
- package/dist/components/popular-routes.d.ts.map +1 -0
- package/dist/components/popular-routes.js +126 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/package.json +77 -0
- package/src/styles.css +1 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Badge } from "@voyantjs/ui/components/badge";
|
|
4
|
+
import { cn } from "@voyantjs/ui/lib/utils";
|
|
5
|
+
import { ArrowRight, Sparkles } from "lucide-react";
|
|
6
|
+
/**
|
|
7
|
+
* Default route set — recognizable city pairs across regions so a fresh
|
|
8
|
+
* /flights page has something to click without having to type airports.
|
|
9
|
+
* Pages can pass their own `routes` to override.
|
|
10
|
+
*/
|
|
11
|
+
export const DEFAULT_POPULAR_ROUTES = [
|
|
12
|
+
{
|
|
13
|
+
origin: "LHR",
|
|
14
|
+
originLabel: "London",
|
|
15
|
+
destination: "JFK",
|
|
16
|
+
destinationLabel: "New York",
|
|
17
|
+
tag: "Transatlantic",
|
|
18
|
+
hint: "Premium cabins, daily",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
origin: "CDG",
|
|
22
|
+
originLabel: "Paris",
|
|
23
|
+
destination: "DXB",
|
|
24
|
+
destinationLabel: "Dubai",
|
|
25
|
+
tag: "Connecting hub",
|
|
26
|
+
hint: "Wide carrier mix",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
origin: "AMS",
|
|
30
|
+
originLabel: "Amsterdam",
|
|
31
|
+
destination: "SIN",
|
|
32
|
+
destinationLabel: "Singapore",
|
|
33
|
+
tag: "Long-haul",
|
|
34
|
+
hint: "Nonstop options",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
origin: "FRA",
|
|
38
|
+
originLabel: "Frankfurt",
|
|
39
|
+
destination: "NRT",
|
|
40
|
+
destinationLabel: "Tokyo",
|
|
41
|
+
tag: "Long-haul",
|
|
42
|
+
hint: "12-13h nonstop",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
origin: "MAD",
|
|
46
|
+
originLabel: "Madrid",
|
|
47
|
+
destination: "GRU",
|
|
48
|
+
destinationLabel: "São Paulo",
|
|
49
|
+
tag: "Latin America",
|
|
50
|
+
hint: "10h nonstop",
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
origin: "BCN",
|
|
54
|
+
originLabel: "Barcelona",
|
|
55
|
+
destination: "FCO",
|
|
56
|
+
destinationLabel: "Rome",
|
|
57
|
+
tag: "Short-haul",
|
|
58
|
+
hint: "From €60",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
origin: "LGW",
|
|
62
|
+
originLabel: "London Gatwick",
|
|
63
|
+
destination: "MAD",
|
|
64
|
+
destinationLabel: "Madrid",
|
|
65
|
+
tag: "Short-haul",
|
|
66
|
+
hint: "LCC dominant",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
origin: "DXB",
|
|
70
|
+
originLabel: "Dubai",
|
|
71
|
+
destination: "BKK",
|
|
72
|
+
destinationLabel: "Bangkok",
|
|
73
|
+
tag: "Asia",
|
|
74
|
+
hint: "6h nonstop",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
origin: "SFO",
|
|
78
|
+
originLabel: "San Francisco",
|
|
79
|
+
destination: "HND",
|
|
80
|
+
destinationLabel: "Tokyo",
|
|
81
|
+
tag: "Trans-Pacific",
|
|
82
|
+
hint: "11h nonstop",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
origin: "ZRH",
|
|
86
|
+
originLabel: "Zurich",
|
|
87
|
+
destination: "JNB",
|
|
88
|
+
destinationLabel: "Johannesburg",
|
|
89
|
+
tag: "Africa",
|
|
90
|
+
hint: "11h overnight",
|
|
91
|
+
},
|
|
92
|
+
];
|
|
93
|
+
/**
|
|
94
|
+
* A grid of clickable popular-route cards. Each card synthesizes a
|
|
95
|
+
* `FlightSearchRequest` (round-trip by default, 14 days out, 7 nights) and
|
|
96
|
+
* fires `onSelect` so the page can prefill its form + run the search in one
|
|
97
|
+
* step. Designed for the empty-state of a flights page: gives the user
|
|
98
|
+
* something to do without typing airport codes.
|
|
99
|
+
*/
|
|
100
|
+
export function PopularRoutes({ routes, onSelect, tripType = "round_trip", daysOut = 14, tripNights = 7, cabin = "economy", adults = 1, className, title = "Popular routes", }) {
|
|
101
|
+
const today = new Date();
|
|
102
|
+
const departure = isoDate(addDays(today, daysOut));
|
|
103
|
+
const returnDate = isoDate(addDays(today, daysOut + tripNights));
|
|
104
|
+
const buildRequest = (route) => {
|
|
105
|
+
const slices = [
|
|
106
|
+
{ origin: route.origin, destination: route.destination, departureDate: departure },
|
|
107
|
+
];
|
|
108
|
+
if (tripType === "round_trip") {
|
|
109
|
+
slices.push({
|
|
110
|
+
origin: route.destination,
|
|
111
|
+
destination: route.origin,
|
|
112
|
+
departureDate: returnDate,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
return { slices, passengers: { adults, children: 0, infants: 0 }, cabin };
|
|
116
|
+
};
|
|
117
|
+
return (_jsxs("section", { className: cn("flex flex-col gap-3", className), children: [title && (_jsxs("div", { className: "flex items-center gap-2 text-muted-foreground text-sm", children: [_jsx(Sparkles, { className: "h-4 w-4" }), _jsx("span", { children: title })] })), _jsx("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4", children: routes.map((route) => (_jsxs("button", { type: "button", onClick: () => onSelect(buildRequest(route)), className: "group flex flex-col gap-2 rounded-lg border bg-card p-4 text-left shadow-sm transition-all hover:border-primary/40 hover:shadow", children: [_jsxs("div", { className: "flex items-center gap-2 text-sm", children: [_jsxs("span", { className: "flex flex-col leading-tight", children: [_jsx("span", { className: "font-mono text-xs text-muted-foreground", children: route.origin }), _jsx("span", { className: "font-medium", children: route.originLabel })] }), _jsx(ArrowRight, { className: "mx-auto h-4 w-4 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5" }), _jsxs("span", { className: "flex flex-col text-right leading-tight", children: [_jsx("span", { className: "font-mono text-xs text-muted-foreground", children: route.destination }), _jsx("span", { className: "font-medium", children: route.destinationLabel })] })] }), _jsxs("div", { className: "mt-auto flex items-center justify-between", children: [route.tag && (_jsx(Badge, { variant: "secondary", className: "text-[10px] font-normal", children: route.tag })), route.hint && _jsx("span", { className: "text-xs text-muted-foreground", children: route.hint })] })] }, `${route.origin}-${route.destination}`))) })] }));
|
|
118
|
+
}
|
|
119
|
+
function addDays(d, n) {
|
|
120
|
+
const copy = new Date(d.getTime());
|
|
121
|
+
copy.setDate(copy.getDate() + n);
|
|
122
|
+
return copy;
|
|
123
|
+
}
|
|
124
|
+
function isoDate(d) {
|
|
125
|
+
return d.toISOString().slice(0, 10);
|
|
126
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export { AirlineLogo, type AirlineLogoProps } from "./components/airline-logo.js";
|
|
2
|
+
export { AirportCombobox, type AirportComboboxProps } from "./components/airport-combobox.js";
|
|
3
|
+
export { FlightBaggageStep, type FlightBaggageStepProps, } from "./components/flight-baggage-step.js";
|
|
4
|
+
export { type BillingEligiblePassenger, type BillingMode, type BillingValue, emptyBillingValue, FlightBillingStep, type FlightBillingStepProps, validateBilling, } from "./components/flight-billing-step.js";
|
|
5
|
+
export { FlightBookingJourney, type FlightBookingJourneyProps, } from "./components/flight-booking-journey.js";
|
|
6
|
+
export { FlightBookingLedger, type FlightBookingLedgerProps, type FlightItinerarySelection, type LedgerLineItem, type LedgerSection, } from "./components/flight-booking-ledger.js";
|
|
7
|
+
export { type FlightBookingAncillaries, type FlightBookingSavedPaymentMethods, type FlightBookingSeatMaps, FlightBookingShell, type FlightBookingShellProps, } from "./components/flight-booking-shell.js";
|
|
8
|
+
export { FlightContactForm, type FlightContactFormProps, type FlightContactValue, validateContact, } from "./components/flight-contact-form.js";
|
|
9
|
+
export { FlightFareUpsellStep, type FlightFareUpsellStepProps, } from "./components/flight-fare-upsell-step.js";
|
|
10
|
+
export { EMPTY_FLIGHT_FILTERS, FlightFiltersBar, type FlightFiltersBarProps, type FlightFiltersValue, } from "./components/flight-filters-bar.js";
|
|
11
|
+
export { FlightItinerary, type FlightItineraryProps, } from "./components/flight-itinerary.js";
|
|
12
|
+
export { FlightOfferDetail, type FlightOfferDetailProps, } from "./components/flight-offer-detail.js";
|
|
13
|
+
export { FlightOfferRow, type FlightOfferRowProps } from "./components/flight-offer-row.js";
|
|
14
|
+
export { FlightOrderConfirmation, type FlightOrderConfirmationProps, } from "./components/flight-order-confirmation.js";
|
|
15
|
+
export { FlightPassengerForm, type FlightPassengerFormProps, type PassengerPrefill, validatePassengers, } from "./components/flight-passenger-form.js";
|
|
16
|
+
export { FlightPaymentSelector, type FlightPaymentSelectorProps, } from "./components/flight-payment-selector.js";
|
|
17
|
+
export { FlightPaymentStep, type FlightPaymentStepProps, type PaymentStepCapabilities, type SavedPaymentAccount,
|
|
18
|
+
/** Back-compat alias for `SavedPaymentAccount`. */
|
|
19
|
+
type SavedPaymentMethod, } from "./components/flight-payment-step.js";
|
|
20
|
+
export { FlightSearchForm, type FlightSearchFormProps, type TripType, } from "./components/flight-search-form.js";
|
|
21
|
+
export { FlightSeatMap, type FlightSeatMapProps, type SeatPickMarker, } from "./components/flight-seat-map.js";
|
|
22
|
+
export { type FlightSeatMapSlot, FlightSeatsStep, type FlightSeatsStepProps, } from "./components/flight-seats-step.js";
|
|
23
|
+
export { FlightServicesStep, type FlightServicesStepProps, } from "./components/flight-services-step.js";
|
|
24
|
+
export { PaxCabinPopover, type PaxCabinPopoverProps } from "./components/pax-cabin-popover.js";
|
|
25
|
+
export { DEFAULT_POPULAR_ROUTES, type PopularRoute, PopularRoutes, type PopularRoutesProps, } from "./components/popular-routes.js";
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACjF,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAC7F,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,eAAe,GAChB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,cAAc,EACnB,KAAK,aAAa,GACnB,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,qBAAqB,EAC1B,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,eAAe,GAChB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,GAC/B,MAAM,yCAAyC,CAAA;AAChD,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,GACxB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EACL,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAC3F,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,GAClC,MAAM,2CAA2C,CAAA;AAClD,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,kBAAkB,GACnB,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,yCAAyC,CAAA;AAChD,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB;AACxB,mDAAmD;AACnD,KAAK,kBAAkB,GACxB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,QAAQ,GACd,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EACL,KAAK,iBAAiB,EACtB,eAAe,EACf,KAAK,oBAAoB,GAC1B,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAA;AAC9F,OAAO,EACL,sBAAsB,EACtB,KAAK,YAAY,EACjB,aAAa,EACb,KAAK,kBAAkB,GACxB,MAAM,gCAAgC,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export { AirlineLogo } from "./components/airline-logo.js";
|
|
2
|
+
export { AirportCombobox } from "./components/airport-combobox.js";
|
|
3
|
+
export { FlightBaggageStep, } from "./components/flight-baggage-step.js";
|
|
4
|
+
export { emptyBillingValue, FlightBillingStep, validateBilling, } from "./components/flight-billing-step.js";
|
|
5
|
+
export { FlightBookingJourney, } from "./components/flight-booking-journey.js";
|
|
6
|
+
export { FlightBookingLedger, } from "./components/flight-booking-ledger.js";
|
|
7
|
+
export { FlightBookingShell, } from "./components/flight-booking-shell.js";
|
|
8
|
+
export { FlightContactForm, validateContact, } from "./components/flight-contact-form.js";
|
|
9
|
+
export { FlightFareUpsellStep, } from "./components/flight-fare-upsell-step.js";
|
|
10
|
+
export { EMPTY_FLIGHT_FILTERS, FlightFiltersBar, } from "./components/flight-filters-bar.js";
|
|
11
|
+
export { FlightItinerary, } from "./components/flight-itinerary.js";
|
|
12
|
+
export { FlightOfferDetail, } from "./components/flight-offer-detail.js";
|
|
13
|
+
export { FlightOfferRow } from "./components/flight-offer-row.js";
|
|
14
|
+
export { FlightOrderConfirmation, } from "./components/flight-order-confirmation.js";
|
|
15
|
+
export { FlightPassengerForm, validatePassengers, } from "./components/flight-passenger-form.js";
|
|
16
|
+
export { FlightPaymentSelector, } from "./components/flight-payment-selector.js";
|
|
17
|
+
export { FlightPaymentStep, } from "./components/flight-payment-step.js";
|
|
18
|
+
export { FlightSearchForm, } from "./components/flight-search-form.js";
|
|
19
|
+
export { FlightSeatMap, } from "./components/flight-seat-map.js";
|
|
20
|
+
export { FlightSeatsStep, } from "./components/flight-seats-step.js";
|
|
21
|
+
export { FlightServicesStep, } from "./components/flight-services-step.js";
|
|
22
|
+
export { PaxCabinPopover } from "./components/pax-cabin-popover.js";
|
|
23
|
+
export { DEFAULT_POPULAR_ROUTES, PopularRoutes, } from "./components/popular-routes.js";
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@voyantjs/flights-ui",
|
|
3
|
+
"version": "0.20.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/voyantjs/voyant.git",
|
|
8
|
+
"directory": "packages/flights-ui"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./src/index.ts",
|
|
14
|
+
"./styles.css": "./src/styles.css",
|
|
15
|
+
"./components/*": "./src/components/*.tsx"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc -p tsconfig.build.json",
|
|
19
|
+
"clean": "rm -rf dist",
|
|
20
|
+
"prepack": "pnpm run build",
|
|
21
|
+
"typecheck": "tsc --noEmit",
|
|
22
|
+
"lint": "biome check src/",
|
|
23
|
+
"test": "vitest run --passWithNoTests"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"@tanstack/react-query": "^5.0.0",
|
|
27
|
+
"@tanstack/react-table": "^8.0.0",
|
|
28
|
+
"@voyantjs/finance": "workspace:*",
|
|
29
|
+
"@voyantjs/flights": "workspace:*",
|
|
30
|
+
"@voyantjs/flights-react": "workspace:*",
|
|
31
|
+
"@voyantjs/checkout-ui": "workspace:*",
|
|
32
|
+
"@voyantjs/ui": "workspace:*",
|
|
33
|
+
"react": "^19.0.0",
|
|
34
|
+
"react-dom": "^19.0.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@tanstack/react-query": "^5.96.2",
|
|
38
|
+
"@tanstack/react-table": "^8.21.3",
|
|
39
|
+
"@types/react": "^19.2.14",
|
|
40
|
+
"@types/react-dom": "^19.2.3",
|
|
41
|
+
"@voyantjs/finance": "workspace:*",
|
|
42
|
+
"@voyantjs/flights": "workspace:*",
|
|
43
|
+
"@voyantjs/flights-react": "workspace:*",
|
|
44
|
+
"@voyantjs/checkout-ui": "workspace:*",
|
|
45
|
+
"@voyantjs/ui": "workspace:*",
|
|
46
|
+
"@voyantjs/voyant-typescript-config": "workspace:*",
|
|
47
|
+
"lucide-react": "^0.475.0",
|
|
48
|
+
"react": "^19.2.4",
|
|
49
|
+
"react-dom": "^19.2.4",
|
|
50
|
+
"typescript": "^6.0.2",
|
|
51
|
+
"vitest": "^4.1.2"
|
|
52
|
+
},
|
|
53
|
+
"files": [
|
|
54
|
+
"dist",
|
|
55
|
+
"src/styles.css"
|
|
56
|
+
],
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public",
|
|
59
|
+
"exports": {
|
|
60
|
+
".": {
|
|
61
|
+
"types": "./dist/index.d.ts",
|
|
62
|
+
"import": "./dist/index.js",
|
|
63
|
+
"default": "./dist/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./styles.css": {
|
|
66
|
+
"default": "./src/styles.css"
|
|
67
|
+
},
|
|
68
|
+
"./components/*": {
|
|
69
|
+
"types": "./dist/components/*.d.ts",
|
|
70
|
+
"import": "./dist/components/*.js",
|
|
71
|
+
"default": "./dist/components/*.js"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"main": "./dist/index.js",
|
|
75
|
+
"types": "./dist/index.d.ts"
|
|
76
|
+
}
|
|
77
|
+
}
|
package/src/styles.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* @voyantjs/flights-ui — placeholder for any vertical-specific CSS. */
|