@voyantjs/catalog-ui
v0.83.0
Published
Reusable catalog UI primitives and page-level compositions.
Readme
@voyantjs/catalog-ui
Reusable catalog UI primitives and page-level compositions.
Page Compositions
CatalogPage owns the tabbed catalog search layout and default vertical columns.
Apps provide routing and deployment-specific behavior through callbacks:
search,onTabChange,onQueryChange, andonPageChangefor URL state.formatSupplierfor supplier id labels.onBookHit,onBookDeparture,onOpenProductEditor, andonLoadProductDetailfor route transitions and content APIs.detailSheetWidth,detailHeaderExtras,renderDetailBrochure,renderDetailMedia,renderDetailItineraryDay, andrenderDetailExtraSectionsfor consumer-specific catalog detail sections such as brochure downloads, print actions, provenance cards, and richer media or itinerary layouts.
CatalogBookingPage owns the quote-to-book form. Apps pass the route state plus
fetchers, typically from createCatalogBookingFetchers({ baseUrl }), and may
slot in their own contact picker via renderContactPicker.
I18n
The package exports CatalogUiMessagesProvider, catalogUiEn, and
catalogUiRo from @voyantjs/catalog-ui/i18n. Components fall back to English
when no provider is mounted.
