@oxy.so/bloom 2.6.0 → 2.8.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/README.md +4 -3
- package/docs/app-shell.mdx +47 -3
- package/docs/booking.mdx +213 -0
- package/docs/category-bar.mdx +83 -0
- package/docs/listing-card.mdx +132 -0
- package/docs/listing-details.mdx +180 -0
- package/docs/map-marker.mdx +115 -0
- package/docs/rating.mdx +51 -0
- package/docs/sidebar.mdx +17 -0
- package/docs/stay-filters.mdx +253 -0
- package/docs/stay-search.mdx +197 -0
- package/docs/stepper.mdx +73 -0
- package/lib/commonjs/app-shell/AppShell.js +248 -156
- package/lib/commonjs/app-shell/AppShell.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellHeader.js +2 -2
- package/lib/commonjs/app-shell/AppShellHeader.js.map +1 -1
- package/lib/commonjs/app-shell/AppShellMenuButton.js +40 -0
- package/lib/commonjs/app-shell/AppShellMenuButton.js.map +1 -0
- package/lib/commonjs/app-shell/context.js +30 -0
- package/lib/commonjs/app-shell/context.js.map +1 -0
- package/lib/commonjs/app-shell/index.js +14 -0
- package/lib/commonjs/app-shell/index.js.map +1 -1
- package/lib/commonjs/booking/BookingBar.js +109 -0
- package/lib/commonjs/booking/BookingBar.js.map +1 -0
- package/lib/commonjs/booking/BookingCard.js +368 -0
- package/lib/commonjs/booking/BookingCard.js.map +1 -0
- package/lib/commonjs/booking/BookingLink.js +90 -0
- package/lib/commonjs/booking/BookingLink.js.map +1 -0
- package/lib/commonjs/booking/BookingPrice.js +75 -0
- package/lib/commonjs/booking/BookingPrice.js.map +1 -0
- package/lib/commonjs/booking/PriceBreakdown.js +132 -0
- package/lib/commonjs/booking/PriceBreakdown.js.map +1 -0
- package/lib/commonjs/booking/TripCard.js +225 -0
- package/lib/commonjs/booking/TripCard.js.map +1 -0
- package/lib/commonjs/booking/constants.js +26 -0
- package/lib/commonjs/booking/constants.js.map +1 -0
- package/lib/commonjs/booking/index.js +41 -0
- package/lib/commonjs/booking/index.js.map +1 -0
- package/lib/commonjs/booking/shared.js +104 -0
- package/lib/commonjs/booking/shared.js.map +1 -0
- package/lib/commonjs/booking/types.js +6 -0
- package/lib/commonjs/booking/types.js.map +1 -0
- package/lib/commonjs/category-bar/CategoryBar.js +499 -0
- package/lib/commonjs/category-bar/CategoryBar.js.map +1 -0
- package/lib/commonjs/category-bar/index.js +13 -0
- package/lib/commonjs/category-bar/index.js.map +1 -0
- package/lib/commonjs/category-bar/types.js +6 -0
- package/lib/commonjs/category-bar/types.js.map +1 -0
- package/lib/commonjs/dialog/DialogBottomSheet.js +14 -0
- package/lib/commonjs/dialog/DialogBottomSheet.js.map +1 -1
- package/lib/commonjs/icons/remix/RiAncientGateLine.js +12 -0
- package/lib/commonjs/icons/remix/RiAncientGateLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiAncientPavilionLine.js +12 -0
- package/lib/commonjs/icons/remix/RiAncientPavilionLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiBikeLine.js +12 -0
- package/lib/commonjs/icons/remix/RiBikeLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiBriefcase4Line.js +12 -0
- package/lib/commonjs/icons/remix/RiBriefcase4Line.js.map +1 -0
- package/lib/commonjs/icons/remix/RiCactusLine.js +12 -0
- package/lib/commonjs/icons/remix/RiCactusLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiCalendarCloseLine.js +12 -0
- package/lib/commonjs/icons/remix/RiCalendarCloseLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiDoorOpenLine.js +12 -0
- package/lib/commonjs/icons/remix/RiDoorOpenLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiFridgeLine.js +12 -0
- package/lib/commonjs/icons/remix/RiFridgeLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiGolfBallLine.js +12 -0
- package/lib/commonjs/icons/remix/RiGolfBallLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiHeart3Fill.js +12 -0
- package/lib/commonjs/icons/remix/RiHeart3Fill.js.map +1 -0
- package/lib/commonjs/icons/remix/RiHeart3Line.js +12 -0
- package/lib/commonjs/icons/remix/RiHeart3Line.js.map +1 -0
- package/lib/commonjs/icons/remix/RiLandscapeLine.js +12 -0
- package/lib/commonjs/icons/remix/RiLandscapeLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiMapPin2Line.js +12 -0
- package/lib/commonjs/icons/remix/RiMapPin2Line.js.map +1 -0
- package/lib/commonjs/icons/remix/RiMedalLine.js +12 -0
- package/lib/commonjs/icons/remix/RiMedalLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiParkingBoxLine.js +12 -0
- package/lib/commonjs/icons/remix/RiParkingBoxLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiPlantLine.js +12 -0
- package/lib/commonjs/icons/remix/RiPlantLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiSailboatLine.js +12 -0
- package/lib/commonjs/icons/remix/RiSailboatLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiShareLine.js +12 -0
- package/lib/commonjs/icons/remix/RiShareLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiShip2Line.js +12 -0
- package/lib/commonjs/icons/remix/RiShip2Line.js.map +1 -0
- package/lib/commonjs/icons/remix/RiSubtractLine.js +12 -0
- package/lib/commonjs/icons/remix/RiSubtractLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTShirtAirLine.js +12 -0
- package/lib/commonjs/icons/remix/RiTShirtAirLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTempColdLine.js +12 -0
- package/lib/commonjs/icons/remix/RiTempColdLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTentLine.js +12 -0
- package/lib/commonjs/icons/remix/RiTentLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTranslate2.js +12 -0
- package/lib/commonjs/icons/remix/RiTranslate2.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTreeLine.js +12 -0
- package/lib/commonjs/icons/remix/RiTreeLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTvLine.js +12 -0
- package/lib/commonjs/icons/remix/RiTvLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiWifiLine.js +12 -0
- package/lib/commonjs/icons/remix/RiWifiLine.js.map +1 -0
- package/lib/commonjs/icons/remix/index.js +189 -0
- package/lib/commonjs/icons/remix/index.js.map +1 -1
- package/lib/commonjs/index.js +333 -54
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +333 -54
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/listing-card/FavoriteButton.js +110 -0
- package/lib/commonjs/listing-card/FavoriteButton.js.map +1 -0
- package/lib/commonjs/listing-card/ListingCard.js +601 -0
- package/lib/commonjs/listing-card/ListingCard.js.map +1 -0
- package/lib/commonjs/listing-card/ListingCardGrid.js +70 -0
- package/lib/commonjs/listing-card/ListingCardGrid.js.map +1 -0
- package/lib/commonjs/listing-card/WishlistCard.js +201 -0
- package/lib/commonjs/listing-card/WishlistCard.js.map +1 -0
- package/lib/commonjs/listing-card/index.js +34 -0
- package/lib/commonjs/listing-card/index.js.map +1 -0
- package/lib/commonjs/listing-card/shared.js +179 -0
- package/lib/commonjs/listing-card/shared.js.map +1 -0
- package/lib/commonjs/listing-card/types.js +6 -0
- package/lib/commonjs/listing-card/types.js.map +1 -0
- package/lib/commonjs/listing-details/AmenityList.js +126 -0
- package/lib/commonjs/listing-details/AmenityList.js.map +1 -0
- package/lib/commonjs/listing-details/HostCard.js +274 -0
- package/lib/commonjs/listing-details/HostCard.js.map +1 -0
- package/lib/commonjs/listing-details/ListingHeader.js +262 -0
- package/lib/commonjs/listing-details/ListingHeader.js.map +1 -0
- package/lib/commonjs/listing-details/ListingHighlights.js +86 -0
- package/lib/commonjs/listing-details/ListingHighlights.js.map +1 -0
- package/lib/commonjs/listing-details/ListingPhotoGrid.js +295 -0
- package/lib/commonjs/listing-details/ListingPhotoGrid.js.map +1 -0
- package/lib/commonjs/listing-details/ListingSection.js +80 -0
- package/lib/commonjs/listing-details/ListingSection.js.map +1 -0
- package/lib/commonjs/listing-details/ReviewCard.js +269 -0
- package/lib/commonjs/listing-details/ReviewCard.js.map +1 -0
- package/lib/commonjs/listing-details/ReviewSummary.js +202 -0
- package/lib/commonjs/listing-details/ReviewSummary.js.map +1 -0
- package/lib/commonjs/listing-details/constants.js +21 -0
- package/lib/commonjs/listing-details/constants.js.map +1 -0
- package/lib/commonjs/listing-details/index.js +81 -0
- package/lib/commonjs/listing-details/index.js.map +1 -0
- package/lib/commonjs/listing-details/shared.js +105 -0
- package/lib/commonjs/listing-details/shared.js.map +1 -0
- package/lib/commonjs/listing-details/types.js +6 -0
- package/lib/commonjs/listing-details/types.js.map +1 -0
- package/lib/commonjs/listing-details/use-container-width.js +26 -0
- package/lib/commonjs/listing-details/use-container-width.js.map +1 -0
- package/lib/commonjs/map-marker/MapClusterMarker.js +98 -0
- package/lib/commonjs/map-marker/MapClusterMarker.js.map +1 -0
- package/lib/commonjs/map-marker/MapListingPreview.js +320 -0
- package/lib/commonjs/map-marker/MapListingPreview.js.map +1 -0
- package/lib/commonjs/map-marker/MapPriceMarker.js +116 -0
- package/lib/commonjs/map-marker/MapPriceMarker.js.map +1 -0
- package/lib/commonjs/map-marker/MapSearchAreaButton.js +127 -0
- package/lib/commonjs/map-marker/MapSearchAreaButton.js.map +1 -0
- package/lib/commonjs/map-marker/index.js +34 -0
- package/lib/commonjs/map-marker/index.js.map +1 -0
- package/lib/commonjs/map-marker/shared.js +92 -0
- package/lib/commonjs/map-marker/shared.js.map +1 -0
- package/lib/commonjs/map-marker/types.js +6 -0
- package/lib/commonjs/map-marker/types.js.map +1 -0
- package/lib/commonjs/rating/Rating.js +103 -0
- package/lib/commonjs/rating/Rating.js.map +1 -0
- package/lib/commonjs/rating/RatingBar.js +109 -0
- package/lib/commonjs/rating/RatingBar.js.map +1 -0
- package/lib/commonjs/rating/index.js +20 -0
- package/lib/commonjs/rating/index.js.map +1 -0
- package/lib/commonjs/rating/types.js +6 -0
- package/lib/commonjs/rating/types.js.map +1 -0
- package/lib/commonjs/sidebar/Sidebar.js +51 -17
- package/lib/commonjs/sidebar/Sidebar.js.map +1 -1
- package/lib/commonjs/sidebar/SidebarLogoView.js +124 -0
- package/lib/commonjs/sidebar/SidebarLogoView.js.map +1 -0
- package/lib/commonjs/sidebar/SidebarRail.js +16 -2
- package/lib/commonjs/sidebar/SidebarRail.js.map +1 -1
- package/lib/commonjs/stay-filters/AmenityFilter.js +61 -0
- package/lib/commonjs/stay-filters/AmenityFilter.js.map +1 -0
- package/lib/commonjs/stay-filters/CountFilter.js +101 -0
- package/lib/commonjs/stay-filters/CountFilter.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterChip.js +156 -0
- package/lib/commonjs/stay-filters/FilterChip.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterFooter.js +77 -0
- package/lib/commonjs/stay-filters/FilterFooter.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterSection.js +80 -0
- package/lib/commonjs/stay-filters/FilterSection.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterTextButton.js +116 -0
- package/lib/commonjs/stay-filters/FilterTextButton.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterTriggerButton.js +60 -0
- package/lib/commonjs/stay-filters/FilterTriggerButton.js.map +1 -0
- package/lib/commonjs/stay-filters/PriceHistogram.js +88 -0
- package/lib/commonjs/stay-filters/PriceHistogram.js.map +1 -0
- package/lib/commonjs/stay-filters/PriceRangeFilter.js +152 -0
- package/lib/commonjs/stay-filters/PriceRangeFilter.js.map +1 -0
- package/lib/commonjs/stay-filters/SegmentedFilter.js +44 -0
- package/lib/commonjs/stay-filters/SegmentedFilter.js.map +1 -0
- package/lib/commonjs/stay-filters/SwitchFilterRow.js +70 -0
- package/lib/commonjs/stay-filters/SwitchFilterRow.js.map +1 -0
- package/lib/commonjs/stay-filters/ToggleChipGroup.js +59 -0
- package/lib/commonjs/stay-filters/ToggleChipGroup.js.map +1 -0
- package/lib/commonjs/stay-filters/index.js +76 -0
- package/lib/commonjs/stay-filters/index.js.map +1 -0
- package/lib/commonjs/stay-filters/types.js +6 -0
- package/lib/commonjs/stay-filters/types.js.map +1 -0
- package/lib/commonjs/stay-search/DateFlexibilityChips.js +54 -0
- package/lib/commonjs/stay-search/DateFlexibilityChips.js.map +1 -0
- package/lib/commonjs/stay-search/DestinationSuggestions.js +178 -0
- package/lib/commonjs/stay-search/DestinationSuggestions.js.map +1 -0
- package/lib/commonjs/stay-search/GuestPicker.js +105 -0
- package/lib/commonjs/stay-search/GuestPicker.js.map +1 -0
- package/lib/commonjs/stay-search/StaySearchBar.js +347 -0
- package/lib/commonjs/stay-search/StaySearchBar.js.map +1 -0
- package/lib/commonjs/stay-search/StaySearchCompact.js +143 -0
- package/lib/commonjs/stay-search/StaySearchCompact.js.map +1 -0
- package/lib/commonjs/stay-search/StaySearchPanel.js +52 -0
- package/lib/commonjs/stay-search/StaySearchPanel.js.map +1 -0
- package/lib/commonjs/stay-search/StaySearchStep.js +136 -0
- package/lib/commonjs/stay-search/StaySearchStep.js.map +1 -0
- package/lib/commonjs/stay-search/constants.js +67 -0
- package/lib/commonjs/stay-search/constants.js.map +1 -0
- package/lib/commonjs/stay-search/context.js +20 -0
- package/lib/commonjs/stay-search/context.js.map +1 -0
- package/lib/commonjs/stay-search/guests.js +30 -0
- package/lib/commonjs/stay-search/guests.js.map +1 -0
- package/lib/commonjs/stay-search/index.js +68 -0
- package/lib/commonjs/stay-search/index.js.map +1 -0
- package/lib/commonjs/stay-search/palette.js +77 -0
- package/lib/commonjs/stay-search/palette.js.map +1 -0
- package/lib/commonjs/stay-search/types.js +6 -0
- package/lib/commonjs/stay-search/types.js.map +1 -0
- package/lib/commonjs/stepper/Stepper.js +220 -0
- package/lib/commonjs/stepper/Stepper.js.map +1 -0
- package/lib/commonjs/stepper/StepperRow.js +76 -0
- package/lib/commonjs/stepper/StepperRow.js.map +1 -0
- package/lib/commonjs/stepper/index.js +20 -0
- package/lib/commonjs/stepper/index.js.map +1 -0
- package/lib/commonjs/stepper/types.js +6 -0
- package/lib/commonjs/stepper/types.js.map +1 -0
- package/lib/module/app-shell/AppShell.js +249 -157
- package/lib/module/app-shell/AppShell.js.map +1 -1
- package/lib/module/app-shell/AppShellHeader.js +2 -2
- package/lib/module/app-shell/AppShellHeader.js.map +1 -1
- package/lib/module/app-shell/AppShellMenuButton.js +35 -0
- package/lib/module/app-shell/AppShellMenuButton.js.map +1 -0
- package/lib/module/app-shell/context.js +23 -0
- package/lib/module/app-shell/context.js.map +1 -0
- package/lib/module/app-shell/index.js +2 -0
- package/lib/module/app-shell/index.js.map +1 -1
- package/lib/module/booking/BookingBar.js +104 -0
- package/lib/module/booking/BookingBar.js.map +1 -0
- package/lib/module/booking/BookingCard.js +363 -0
- package/lib/module/booking/BookingCard.js.map +1 -0
- package/lib/module/booking/BookingLink.js +85 -0
- package/lib/module/booking/BookingLink.js.map +1 -0
- package/lib/module/booking/BookingPrice.js +70 -0
- package/lib/module/booking/BookingPrice.js.map +1 -0
- package/lib/module/booking/PriceBreakdown.js +127 -0
- package/lib/module/booking/PriceBreakdown.js.map +1 -0
- package/lib/module/booking/TripCard.js +220 -0
- package/lib/module/booking/TripCard.js.map +1 -0
- package/lib/module/booking/constants.js +22 -0
- package/lib/module/booking/constants.js.map +1 -0
- package/lib/module/booking/index.js +8 -0
- package/lib/module/booking/index.js.map +1 -0
- package/lib/module/booking/shared.js +95 -0
- package/lib/module/booking/shared.js.map +1 -0
- package/lib/module/booking/types.js +4 -0
- package/lib/module/booking/types.js.map +1 -0
- package/lib/module/category-bar/CategoryBar.js +490 -0
- package/lib/module/category-bar/CategoryBar.js.map +1 -0
- package/lib/module/category-bar/index.js +4 -0
- package/lib/module/category-bar/index.js.map +1 -0
- package/lib/module/category-bar/types.js +4 -0
- package/lib/module/category-bar/types.js.map +1 -0
- package/lib/module/dialog/DialogBottomSheet.js +14 -0
- package/lib/module/dialog/DialogBottomSheet.js.map +1 -1
- package/lib/module/icons/remix/RiAncientGateLine.js +9 -0
- package/lib/module/icons/remix/RiAncientGateLine.js.map +1 -0
- package/lib/module/icons/remix/RiAncientPavilionLine.js +9 -0
- package/lib/module/icons/remix/RiAncientPavilionLine.js.map +1 -0
- package/lib/module/icons/remix/RiBikeLine.js +9 -0
- package/lib/module/icons/remix/RiBikeLine.js.map +1 -0
- package/lib/module/icons/remix/RiBriefcase4Line.js +9 -0
- package/lib/module/icons/remix/RiBriefcase4Line.js.map +1 -0
- package/lib/module/icons/remix/RiCactusLine.js +9 -0
- package/lib/module/icons/remix/RiCactusLine.js.map +1 -0
- package/lib/module/icons/remix/RiCalendarCloseLine.js +9 -0
- package/lib/module/icons/remix/RiCalendarCloseLine.js.map +1 -0
- package/lib/module/icons/remix/RiDoorOpenLine.js +9 -0
- package/lib/module/icons/remix/RiDoorOpenLine.js.map +1 -0
- package/lib/module/icons/remix/RiFridgeLine.js +9 -0
- package/lib/module/icons/remix/RiFridgeLine.js.map +1 -0
- package/lib/module/icons/remix/RiGolfBallLine.js +9 -0
- package/lib/module/icons/remix/RiGolfBallLine.js.map +1 -0
- package/lib/module/icons/remix/RiHeart3Fill.js +9 -0
- package/lib/module/icons/remix/RiHeart3Fill.js.map +1 -0
- package/lib/module/icons/remix/RiHeart3Line.js +9 -0
- package/lib/module/icons/remix/RiHeart3Line.js.map +1 -0
- package/lib/module/icons/remix/RiLandscapeLine.js +9 -0
- package/lib/module/icons/remix/RiLandscapeLine.js.map +1 -0
- package/lib/module/icons/remix/RiMapPin2Line.js +9 -0
- package/lib/module/icons/remix/RiMapPin2Line.js.map +1 -0
- package/lib/module/icons/remix/RiMedalLine.js +9 -0
- package/lib/module/icons/remix/RiMedalLine.js.map +1 -0
- package/lib/module/icons/remix/RiParkingBoxLine.js +9 -0
- package/lib/module/icons/remix/RiParkingBoxLine.js.map +1 -0
- package/lib/module/icons/remix/RiPlantLine.js +9 -0
- package/lib/module/icons/remix/RiPlantLine.js.map +1 -0
- package/lib/module/icons/remix/RiSailboatLine.js +9 -0
- package/lib/module/icons/remix/RiSailboatLine.js.map +1 -0
- package/lib/module/icons/remix/RiShareLine.js +9 -0
- package/lib/module/icons/remix/RiShareLine.js.map +1 -0
- package/lib/module/icons/remix/RiShip2Line.js +9 -0
- package/lib/module/icons/remix/RiShip2Line.js.map +1 -0
- package/lib/module/icons/remix/RiSubtractLine.js +9 -0
- package/lib/module/icons/remix/RiSubtractLine.js.map +1 -0
- package/lib/module/icons/remix/RiTShirtAirLine.js +9 -0
- package/lib/module/icons/remix/RiTShirtAirLine.js.map +1 -0
- package/lib/module/icons/remix/RiTempColdLine.js +9 -0
- package/lib/module/icons/remix/RiTempColdLine.js.map +1 -0
- package/lib/module/icons/remix/RiTentLine.js +9 -0
- package/lib/module/icons/remix/RiTentLine.js.map +1 -0
- package/lib/module/icons/remix/RiTranslate2.js +9 -0
- package/lib/module/icons/remix/RiTranslate2.js.map +1 -0
- package/lib/module/icons/remix/RiTreeLine.js +9 -0
- package/lib/module/icons/remix/RiTreeLine.js.map +1 -0
- package/lib/module/icons/remix/RiTvLine.js +9 -0
- package/lib/module/icons/remix/RiTvLine.js.map +1 -0
- package/lib/module/icons/remix/RiWifiLine.js +9 -0
- package/lib/module/icons/remix/RiWifiLine.js.map +1 -0
- package/lib/module/icons/remix/index.js +27 -0
- package/lib/module/icons/remix/index.js.map +1 -1
- package/lib/module/index.js +10 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +10 -0
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/listing-card/FavoriteButton.js +105 -0
- package/lib/module/listing-card/FavoriteButton.js.map +1 -0
- package/lib/module/listing-card/ListingCard.js +596 -0
- package/lib/module/listing-card/ListingCard.js.map +1 -0
- package/lib/module/listing-card/ListingCardGrid.js +65 -0
- package/lib/module/listing-card/ListingCardGrid.js.map +1 -0
- package/lib/module/listing-card/WishlistCard.js +196 -0
- package/lib/module/listing-card/WishlistCard.js.map +1 -0
- package/lib/module/listing-card/index.js +7 -0
- package/lib/module/listing-card/index.js.map +1 -0
- package/lib/module/listing-card/shared.js +169 -0
- package/lib/module/listing-card/shared.js.map +1 -0
- package/lib/module/listing-card/types.js +4 -0
- package/lib/module/listing-card/types.js.map +1 -0
- package/lib/module/listing-details/AmenityList.js +123 -0
- package/lib/module/listing-details/AmenityList.js.map +1 -0
- package/lib/module/listing-details/HostCard.js +269 -0
- package/lib/module/listing-details/HostCard.js.map +1 -0
- package/lib/module/listing-details/ListingHeader.js +259 -0
- package/lib/module/listing-details/ListingHeader.js.map +1 -0
- package/lib/module/listing-details/ListingHighlights.js +81 -0
- package/lib/module/listing-details/ListingHighlights.js.map +1 -0
- package/lib/module/listing-details/ListingPhotoGrid.js +292 -0
- package/lib/module/listing-details/ListingPhotoGrid.js.map +1 -0
- package/lib/module/listing-details/ListingSection.js +75 -0
- package/lib/module/listing-details/ListingSection.js.map +1 -0
- package/lib/module/listing-details/ReviewCard.js +264 -0
- package/lib/module/listing-details/ReviewCard.js.map +1 -0
- package/lib/module/listing-details/ReviewSummary.js +199 -0
- package/lib/module/listing-details/ReviewSummary.js.map +1 -0
- package/lib/module/listing-details/constants.js +17 -0
- package/lib/module/listing-details/constants.js.map +1 -0
- package/lib/module/listing-details/index.js +12 -0
- package/lib/module/listing-details/index.js.map +1 -0
- package/lib/module/listing-details/shared.js +97 -0
- package/lib/module/listing-details/shared.js.map +1 -0
- package/lib/module/listing-details/types.js +4 -0
- package/lib/module/listing-details/types.js.map +1 -0
- package/lib/module/listing-details/use-container-width.js +22 -0
- package/lib/module/listing-details/use-container-width.js.map +1 -0
- package/lib/module/map-marker/MapClusterMarker.js +93 -0
- package/lib/module/map-marker/MapClusterMarker.js.map +1 -0
- package/lib/module/map-marker/MapListingPreview.js +315 -0
- package/lib/module/map-marker/MapListingPreview.js.map +1 -0
- package/lib/module/map-marker/MapPriceMarker.js +111 -0
- package/lib/module/map-marker/MapPriceMarker.js.map +1 -0
- package/lib/module/map-marker/MapSearchAreaButton.js +122 -0
- package/lib/module/map-marker/MapSearchAreaButton.js.map +1 -0
- package/lib/module/map-marker/index.js +7 -0
- package/lib/module/map-marker/index.js.map +1 -0
- package/lib/module/map-marker/shared.js +85 -0
- package/lib/module/map-marker/shared.js.map +1 -0
- package/lib/module/map-marker/types.js +4 -0
- package/lib/module/map-marker/types.js.map +1 -0
- package/lib/module/rating/Rating.js +97 -0
- package/lib/module/rating/Rating.js.map +1 -0
- package/lib/module/rating/RatingBar.js +104 -0
- package/lib/module/rating/RatingBar.js.map +1 -0
- package/lib/module/rating/index.js +5 -0
- package/lib/module/rating/index.js.map +1 -0
- package/lib/module/rating/types.js +4 -0
- package/lib/module/rating/types.js.map +1 -0
- package/lib/module/sidebar/Sidebar.js +51 -17
- package/lib/module/sidebar/Sidebar.js.map +1 -1
- package/lib/module/sidebar/SidebarLogoView.js +119 -0
- package/lib/module/sidebar/SidebarLogoView.js.map +1 -0
- package/lib/module/sidebar/SidebarRail.js +16 -2
- package/lib/module/sidebar/SidebarRail.js.map +1 -1
- package/lib/module/stay-filters/AmenityFilter.js +56 -0
- package/lib/module/stay-filters/AmenityFilter.js.map +1 -0
- package/lib/module/stay-filters/CountFilter.js +96 -0
- package/lib/module/stay-filters/CountFilter.js.map +1 -0
- package/lib/module/stay-filters/FilterChip.js +151 -0
- package/lib/module/stay-filters/FilterChip.js.map +1 -0
- package/lib/module/stay-filters/FilterFooter.js +72 -0
- package/lib/module/stay-filters/FilterFooter.js.map +1 -0
- package/lib/module/stay-filters/FilterSection.js +75 -0
- package/lib/module/stay-filters/FilterSection.js.map +1 -0
- package/lib/module/stay-filters/FilterTextButton.js +113 -0
- package/lib/module/stay-filters/FilterTextButton.js.map +1 -0
- package/lib/module/stay-filters/FilterTriggerButton.js +55 -0
- package/lib/module/stay-filters/FilterTriggerButton.js.map +1 -0
- package/lib/module/stay-filters/PriceHistogram.js +82 -0
- package/lib/module/stay-filters/PriceHistogram.js.map +1 -0
- package/lib/module/stay-filters/PriceRangeFilter.js +146 -0
- package/lib/module/stay-filters/PriceRangeFilter.js.map +1 -0
- package/lib/module/stay-filters/SegmentedFilter.js +39 -0
- package/lib/module/stay-filters/SegmentedFilter.js.map +1 -0
- package/lib/module/stay-filters/SwitchFilterRow.js +65 -0
- package/lib/module/stay-filters/SwitchFilterRow.js.map +1 -0
- package/lib/module/stay-filters/ToggleChipGroup.js +54 -0
- package/lib/module/stay-filters/ToggleChipGroup.js.map +1 -0
- package/lib/module/stay-filters/index.js +13 -0
- package/lib/module/stay-filters/index.js.map +1 -0
- package/lib/module/stay-filters/types.js +4 -0
- package/lib/module/stay-filters/types.js.map +1 -0
- package/lib/module/stay-search/DateFlexibilityChips.js +49 -0
- package/lib/module/stay-search/DateFlexibilityChips.js.map +1 -0
- package/lib/module/stay-search/DestinationSuggestions.js +173 -0
- package/lib/module/stay-search/DestinationSuggestions.js.map +1 -0
- package/lib/module/stay-search/GuestPicker.js +100 -0
- package/lib/module/stay-search/GuestPicker.js.map +1 -0
- package/lib/module/stay-search/StaySearchBar.js +342 -0
- package/lib/module/stay-search/StaySearchBar.js.map +1 -0
- package/lib/module/stay-search/StaySearchCompact.js +138 -0
- package/lib/module/stay-search/StaySearchCompact.js.map +1 -0
- package/lib/module/stay-search/StaySearchPanel.js +47 -0
- package/lib/module/stay-search/StaySearchPanel.js.map +1 -0
- package/lib/module/stay-search/StaySearchStep.js +131 -0
- package/lib/module/stay-search/StaySearchStep.js.map +1 -0
- package/lib/module/stay-search/constants.js +63 -0
- package/lib/module/stay-search/constants.js.map +1 -0
- package/lib/module/stay-search/context.js +16 -0
- package/lib/module/stay-search/context.js.map +1 -0
- package/lib/module/stay-search/guests.js +25 -0
- package/lib/module/stay-search/guests.js.map +1 -0
- package/lib/module/stay-search/index.js +11 -0
- package/lib/module/stay-search/index.js.map +1 -0
- package/lib/module/stay-search/palette.js +72 -0
- package/lib/module/stay-search/palette.js.map +1 -0
- package/lib/module/stay-search/types.js +4 -0
- package/lib/module/stay-search/types.js.map +1 -0
- package/lib/module/stepper/Stepper.js +215 -0
- package/lib/module/stepper/Stepper.js.map +1 -0
- package/lib/module/stepper/StepperRow.js +71 -0
- package/lib/module/stepper/StepperRow.js.map +1 -0
- package/lib/module/stepper/index.js +5 -0
- package/lib/module/stepper/index.js.map +1 -0
- package/lib/module/stepper/types.js +4 -0
- package/lib/module/stepper/types.js.map +1 -0
- package/lib/typescript/commonjs/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellMenuButton.d.ts +4 -0
- package/lib/typescript/commonjs/app-shell/AppShellMenuButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/context.d.ts +18 -0
- package/lib/typescript/commonjs/app-shell/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/app-shell/index.d.ts +4 -1
- package/lib/typescript/commonjs/app-shell/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/types.d.ts +41 -11
- package/lib/typescript/commonjs/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/booking/BookingBar.d.ts +21 -0
- package/lib/typescript/commonjs/booking/BookingBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/BookingCard.d.ts +6 -0
- package/lib/typescript/commonjs/booking/BookingCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/BookingLink.d.ts +27 -0
- package/lib/typescript/commonjs/booking/BookingLink.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/BookingPrice.d.ts +20 -0
- package/lib/typescript/commonjs/booking/BookingPrice.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/PriceBreakdown.d.ts +6 -0
- package/lib/typescript/commonjs/booking/PriceBreakdown.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/TripCard.d.ts +28 -0
- package/lib/typescript/commonjs/booking/TripCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/constants.d.ts +8 -0
- package/lib/typescript/commonjs/booking/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/index.d.ts +7 -0
- package/lib/typescript/commonjs/booking/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/shared.d.ts +35 -0
- package/lib/typescript/commonjs/booking/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/types.d.ts +149 -0
- package/lib/typescript/commonjs/booking/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/category-bar/CategoryBar.d.ts +36 -0
- package/lib/typescript/commonjs/category-bar/CategoryBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/category-bar/index.d.ts +3 -0
- package/lib/typescript/commonjs/category-bar/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/category-bar/types.d.ts +44 -0
- package/lib/typescript/commonjs/category-bar/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/remix/RiAncientGateLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiAncientGateLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiAncientPavilionLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiAncientPavilionLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiBikeLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiBikeLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiBriefcase4Line.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiBriefcase4Line.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiCactusLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiCactusLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiCalendarCloseLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiCalendarCloseLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiDoorOpenLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiDoorOpenLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiFridgeLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiFridgeLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiGolfBallLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiGolfBallLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiHeart3Fill.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiHeart3Fill.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiHeart3Line.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiHeart3Line.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiLandscapeLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiLandscapeLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiMapPin2Line.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiMapPin2Line.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiMedalLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiMedalLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiParkingBoxLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiParkingBoxLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiPlantLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiPlantLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiSailboatLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiSailboatLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiShareLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiShareLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiShip2Line.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiShip2Line.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiSubtractLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiSubtractLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTShirtAirLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTShirtAirLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTempColdLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTempColdLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTentLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTentLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTranslate2.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTranslate2.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTreeLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTreeLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTvLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTvLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiWifiLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiWifiLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/index.d.ts +27 -0
- package/lib/typescript/commonjs/icons/remix/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +17 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +17 -0
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/listing-card/FavoriteButton.d.ts +21 -0
- package/lib/typescript/commonjs/listing-card/FavoriteButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-card/ListingCard.d.ts +6 -0
- package/lib/typescript/commonjs/listing-card/ListingCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-card/ListingCardGrid.d.ts +23 -0
- package/lib/typescript/commonjs/listing-card/ListingCardGrid.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-card/WishlistCard.d.ts +6 -0
- package/lib/typescript/commonjs/listing-card/WishlistCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-card/index.d.ts +6 -0
- package/lib/typescript/commonjs/listing-card/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-card/shared.d.ts +67 -0
- package/lib/typescript/commonjs/listing-card/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-card/types.d.ts +129 -0
- package/lib/typescript/commonjs/listing-card/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/AmenityList.d.ts +6 -0
- package/lib/typescript/commonjs/listing-details/AmenityList.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/HostCard.d.ts +22 -0
- package/lib/typescript/commonjs/listing-details/HostCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/ListingHeader.d.ts +8 -0
- package/lib/typescript/commonjs/listing-details/ListingHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/ListingHighlights.d.ts +14 -0
- package/lib/typescript/commonjs/listing-details/ListingHighlights.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/ListingPhotoGrid.d.ts +6 -0
- package/lib/typescript/commonjs/listing-details/ListingPhotoGrid.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/ListingSection.d.ts +15 -0
- package/lib/typescript/commonjs/listing-details/ListingSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/ReviewCard.d.ts +6 -0
- package/lib/typescript/commonjs/listing-details/ReviewCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/ReviewSummary.d.ts +6 -0
- package/lib/typescript/commonjs/listing-details/ReviewSummary.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/constants.d.ts +15 -0
- package/lib/typescript/commonjs/listing-details/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/index.d.ts +11 -0
- package/lib/typescript/commonjs/listing-details/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/shared.d.ts +42 -0
- package/lib/typescript/commonjs/listing-details/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/types.d.ts +238 -0
- package/lib/typescript/commonjs/listing-details/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/use-container-width.d.ts +13 -0
- package/lib/typescript/commonjs/listing-details/use-container-width.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/MapClusterMarker.d.ts +6 -0
- package/lib/typescript/commonjs/map-marker/MapClusterMarker.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/MapListingPreview.d.ts +6 -0
- package/lib/typescript/commonjs/map-marker/MapListingPreview.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/MapPriceMarker.d.ts +6 -0
- package/lib/typescript/commonjs/map-marker/MapPriceMarker.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/MapSearchAreaButton.d.ts +6 -0
- package/lib/typescript/commonjs/map-marker/MapSearchAreaButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/index.d.ts +6 -0
- package/lib/typescript/commonjs/map-marker/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/shared.d.ts +30 -0
- package/lib/typescript/commonjs/map-marker/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/types.d.ts +94 -0
- package/lib/typescript/commonjs/map-marker/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/rating/Rating.d.ts +8 -0
- package/lib/typescript/commonjs/rating/Rating.d.ts.map +1 -0
- package/lib/typescript/commonjs/rating/RatingBar.d.ts +6 -0
- package/lib/typescript/commonjs/rating/RatingBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/rating/index.d.ts +4 -0
- package/lib/typescript/commonjs/rating/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/rating/types.d.ts +49 -0
- package/lib/typescript/commonjs/rating/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/SidebarLogoView.d.ts +6 -0
- package/lib/typescript/commonjs/sidebar/SidebarLogoView.d.ts.map +1 -0
- package/lib/typescript/commonjs/sidebar/SidebarRail.d.ts +3 -2
- package/lib/typescript/commonjs/sidebar/SidebarRail.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/index.d.ts +1 -1
- package/lib/typescript/commonjs/sidebar/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/sidebar/types.d.ts +36 -0
- package/lib/typescript/commonjs/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/stay-filters/AmenityFilter.d.ts +15 -0
- package/lib/typescript/commonjs/stay-filters/AmenityFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/CountFilter.d.ts +21 -0
- package/lib/typescript/commonjs/stay-filters/CountFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterChip.d.ts +17 -0
- package/lib/typescript/commonjs/stay-filters/FilterChip.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterFooter.d.ts +19 -0
- package/lib/typescript/commonjs/stay-filters/FilterFooter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterSection.d.ts +19 -0
- package/lib/typescript/commonjs/stay-filters/FilterSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterTextButton.d.ts +13 -0
- package/lib/typescript/commonjs/stay-filters/FilterTextButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterTriggerButton.d.ts +14 -0
- package/lib/typescript/commonjs/stay-filters/FilterTriggerButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/PriceHistogram.d.ts +22 -0
- package/lib/typescript/commonjs/stay-filters/PriceHistogram.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/PriceRangeFilter.d.ts +8 -0
- package/lib/typescript/commonjs/stay-filters/PriceRangeFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/SegmentedFilter.d.ts +12 -0
- package/lib/typescript/commonjs/stay-filters/SegmentedFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/SwitchFilterRow.d.ts +14 -0
- package/lib/typescript/commonjs/stay-filters/SwitchFilterRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/ToggleChipGroup.d.ts +17 -0
- package/lib/typescript/commonjs/stay-filters/ToggleChipGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/index.d.ts +12 -0
- package/lib/typescript/commonjs/stay-filters/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/types.d.ts +179 -0
- package/lib/typescript/commonjs/stay-filters/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/DateFlexibilityChips.d.ts +12 -0
- package/lib/typescript/commonjs/stay-search/DateFlexibilityChips.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/DestinationSuggestions.d.ts +6 -0
- package/lib/typescript/commonjs/stay-search/DestinationSuggestions.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts +19 -0
- package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/StaySearchBar.d.ts +6 -0
- package/lib/typescript/commonjs/stay-search/StaySearchBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/StaySearchCompact.d.ts +6 -0
- package/lib/typescript/commonjs/stay-search/StaySearchCompact.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/StaySearchPanel.d.ts +13 -0
- package/lib/typescript/commonjs/stay-search/StaySearchPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/StaySearchStep.d.ts +6 -0
- package/lib/typescript/commonjs/stay-search/StaySearchStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/constants.d.ts +27 -0
- package/lib/typescript/commonjs/stay-search/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/context.d.ts +3 -0
- package/lib/typescript/commonjs/stay-search/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/guests.d.ts +13 -0
- package/lib/typescript/commonjs/stay-search/guests.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/index.d.ts +10 -0
- package/lib/typescript/commonjs/stay-search/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/palette.d.ts +48 -0
- package/lib/typescript/commonjs/stay-search/palette.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/types.d.ts +195 -0
- package/lib/typescript/commonjs/stay-search/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/stepper/Stepper.d.ts +6 -0
- package/lib/typescript/commonjs/stepper/Stepper.d.ts.map +1 -0
- package/lib/typescript/commonjs/stepper/StepperRow.d.ts +13 -0
- package/lib/typescript/commonjs/stepper/StepperRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/stepper/index.d.ts +4 -0
- package/lib/typescript/commonjs/stepper/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/stepper/types.d.ts +49 -0
- package/lib/typescript/commonjs/stepper/types.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/AppShell.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellHeader.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellMenuButton.d.ts +4 -0
- package/lib/typescript/module/app-shell/AppShellMenuButton.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/context.d.ts +18 -0
- package/lib/typescript/module/app-shell/context.d.ts.map +1 -0
- package/lib/typescript/module/app-shell/index.d.ts +4 -1
- package/lib/typescript/module/app-shell/index.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/types.d.ts +41 -11
- package/lib/typescript/module/app-shell/types.d.ts.map +1 -1
- package/lib/typescript/module/booking/BookingBar.d.ts +21 -0
- package/lib/typescript/module/booking/BookingBar.d.ts.map +1 -0
- package/lib/typescript/module/booking/BookingCard.d.ts +6 -0
- package/lib/typescript/module/booking/BookingCard.d.ts.map +1 -0
- package/lib/typescript/module/booking/BookingLink.d.ts +27 -0
- package/lib/typescript/module/booking/BookingLink.d.ts.map +1 -0
- package/lib/typescript/module/booking/BookingPrice.d.ts +20 -0
- package/lib/typescript/module/booking/BookingPrice.d.ts.map +1 -0
- package/lib/typescript/module/booking/PriceBreakdown.d.ts +6 -0
- package/lib/typescript/module/booking/PriceBreakdown.d.ts.map +1 -0
- package/lib/typescript/module/booking/TripCard.d.ts +28 -0
- package/lib/typescript/module/booking/TripCard.d.ts.map +1 -0
- package/lib/typescript/module/booking/constants.d.ts +8 -0
- package/lib/typescript/module/booking/constants.d.ts.map +1 -0
- package/lib/typescript/module/booking/index.d.ts +7 -0
- package/lib/typescript/module/booking/index.d.ts.map +1 -0
- package/lib/typescript/module/booking/shared.d.ts +35 -0
- package/lib/typescript/module/booking/shared.d.ts.map +1 -0
- package/lib/typescript/module/booking/types.d.ts +149 -0
- package/lib/typescript/module/booking/types.d.ts.map +1 -0
- package/lib/typescript/module/category-bar/CategoryBar.d.ts +36 -0
- package/lib/typescript/module/category-bar/CategoryBar.d.ts.map +1 -0
- package/lib/typescript/module/category-bar/index.d.ts +3 -0
- package/lib/typescript/module/category-bar/index.d.ts.map +1 -0
- package/lib/typescript/module/category-bar/types.d.ts +44 -0
- package/lib/typescript/module/category-bar/types.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DialogBottomSheet.d.ts.map +1 -1
- package/lib/typescript/module/icons/remix/RiAncientGateLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiAncientGateLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiAncientPavilionLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiAncientPavilionLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiBikeLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiBikeLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiBriefcase4Line.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiBriefcase4Line.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiCactusLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiCactusLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiCalendarCloseLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiCalendarCloseLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiDoorOpenLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiDoorOpenLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiFridgeLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiFridgeLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiGolfBallLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiGolfBallLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiHeart3Fill.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiHeart3Fill.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiHeart3Line.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiHeart3Line.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiLandscapeLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiLandscapeLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiMapPin2Line.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiMapPin2Line.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiMedalLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiMedalLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiParkingBoxLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiParkingBoxLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiPlantLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiPlantLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiSailboatLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiSailboatLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiShareLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiShareLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiShip2Line.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiShip2Line.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiSubtractLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiSubtractLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTShirtAirLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTShirtAirLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTempColdLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTempColdLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTentLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTentLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTranslate2.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTranslate2.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTreeLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTreeLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTvLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTvLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiWifiLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiWifiLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/index.d.ts +27 -0
- package/lib/typescript/module/icons/remix/index.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +17 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +17 -0
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/listing-card/FavoriteButton.d.ts +21 -0
- package/lib/typescript/module/listing-card/FavoriteButton.d.ts.map +1 -0
- package/lib/typescript/module/listing-card/ListingCard.d.ts +6 -0
- package/lib/typescript/module/listing-card/ListingCard.d.ts.map +1 -0
- package/lib/typescript/module/listing-card/ListingCardGrid.d.ts +23 -0
- package/lib/typescript/module/listing-card/ListingCardGrid.d.ts.map +1 -0
- package/lib/typescript/module/listing-card/WishlistCard.d.ts +6 -0
- package/lib/typescript/module/listing-card/WishlistCard.d.ts.map +1 -0
- package/lib/typescript/module/listing-card/index.d.ts +6 -0
- package/lib/typescript/module/listing-card/index.d.ts.map +1 -0
- package/lib/typescript/module/listing-card/shared.d.ts +67 -0
- package/lib/typescript/module/listing-card/shared.d.ts.map +1 -0
- package/lib/typescript/module/listing-card/types.d.ts +129 -0
- package/lib/typescript/module/listing-card/types.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/AmenityList.d.ts +6 -0
- package/lib/typescript/module/listing-details/AmenityList.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/HostCard.d.ts +22 -0
- package/lib/typescript/module/listing-details/HostCard.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/ListingHeader.d.ts +8 -0
- package/lib/typescript/module/listing-details/ListingHeader.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/ListingHighlights.d.ts +14 -0
- package/lib/typescript/module/listing-details/ListingHighlights.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/ListingPhotoGrid.d.ts +6 -0
- package/lib/typescript/module/listing-details/ListingPhotoGrid.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/ListingSection.d.ts +15 -0
- package/lib/typescript/module/listing-details/ListingSection.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/ReviewCard.d.ts +6 -0
- package/lib/typescript/module/listing-details/ReviewCard.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/ReviewSummary.d.ts +6 -0
- package/lib/typescript/module/listing-details/ReviewSummary.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/constants.d.ts +15 -0
- package/lib/typescript/module/listing-details/constants.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/index.d.ts +11 -0
- package/lib/typescript/module/listing-details/index.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/shared.d.ts +42 -0
- package/lib/typescript/module/listing-details/shared.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/types.d.ts +238 -0
- package/lib/typescript/module/listing-details/types.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/use-container-width.d.ts +13 -0
- package/lib/typescript/module/listing-details/use-container-width.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/MapClusterMarker.d.ts +6 -0
- package/lib/typescript/module/map-marker/MapClusterMarker.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/MapListingPreview.d.ts +6 -0
- package/lib/typescript/module/map-marker/MapListingPreview.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/MapPriceMarker.d.ts +6 -0
- package/lib/typescript/module/map-marker/MapPriceMarker.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/MapSearchAreaButton.d.ts +6 -0
- package/lib/typescript/module/map-marker/MapSearchAreaButton.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/index.d.ts +6 -0
- package/lib/typescript/module/map-marker/index.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/shared.d.ts +30 -0
- package/lib/typescript/module/map-marker/shared.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/types.d.ts +94 -0
- package/lib/typescript/module/map-marker/types.d.ts.map +1 -0
- package/lib/typescript/module/rating/Rating.d.ts +8 -0
- package/lib/typescript/module/rating/Rating.d.ts.map +1 -0
- package/lib/typescript/module/rating/RatingBar.d.ts +6 -0
- package/lib/typescript/module/rating/RatingBar.d.ts.map +1 -0
- package/lib/typescript/module/rating/index.d.ts +4 -0
- package/lib/typescript/module/rating/index.d.ts.map +1 -0
- package/lib/typescript/module/rating/types.d.ts +49 -0
- package/lib/typescript/module/rating/types.d.ts.map +1 -0
- package/lib/typescript/module/sidebar/Sidebar.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/SidebarLogoView.d.ts +6 -0
- package/lib/typescript/module/sidebar/SidebarLogoView.d.ts.map +1 -0
- package/lib/typescript/module/sidebar/SidebarRail.d.ts +3 -2
- package/lib/typescript/module/sidebar/SidebarRail.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/index.d.ts +1 -1
- package/lib/typescript/module/sidebar/index.d.ts.map +1 -1
- package/lib/typescript/module/sidebar/types.d.ts +36 -0
- package/lib/typescript/module/sidebar/types.d.ts.map +1 -1
- package/lib/typescript/module/stay-filters/AmenityFilter.d.ts +15 -0
- package/lib/typescript/module/stay-filters/AmenityFilter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/CountFilter.d.ts +21 -0
- package/lib/typescript/module/stay-filters/CountFilter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterChip.d.ts +17 -0
- package/lib/typescript/module/stay-filters/FilterChip.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterFooter.d.ts +19 -0
- package/lib/typescript/module/stay-filters/FilterFooter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterSection.d.ts +19 -0
- package/lib/typescript/module/stay-filters/FilterSection.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterTextButton.d.ts +13 -0
- package/lib/typescript/module/stay-filters/FilterTextButton.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterTriggerButton.d.ts +14 -0
- package/lib/typescript/module/stay-filters/FilterTriggerButton.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/PriceHistogram.d.ts +22 -0
- package/lib/typescript/module/stay-filters/PriceHistogram.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/PriceRangeFilter.d.ts +8 -0
- package/lib/typescript/module/stay-filters/PriceRangeFilter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/SegmentedFilter.d.ts +12 -0
- package/lib/typescript/module/stay-filters/SegmentedFilter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/SwitchFilterRow.d.ts +14 -0
- package/lib/typescript/module/stay-filters/SwitchFilterRow.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/ToggleChipGroup.d.ts +17 -0
- package/lib/typescript/module/stay-filters/ToggleChipGroup.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/index.d.ts +12 -0
- package/lib/typescript/module/stay-filters/index.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/types.d.ts +179 -0
- package/lib/typescript/module/stay-filters/types.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/DateFlexibilityChips.d.ts +12 -0
- package/lib/typescript/module/stay-search/DateFlexibilityChips.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/DestinationSuggestions.d.ts +6 -0
- package/lib/typescript/module/stay-search/DestinationSuggestions.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/GuestPicker.d.ts +19 -0
- package/lib/typescript/module/stay-search/GuestPicker.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/StaySearchBar.d.ts +6 -0
- package/lib/typescript/module/stay-search/StaySearchBar.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/StaySearchCompact.d.ts +6 -0
- package/lib/typescript/module/stay-search/StaySearchCompact.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/StaySearchPanel.d.ts +13 -0
- package/lib/typescript/module/stay-search/StaySearchPanel.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/StaySearchStep.d.ts +6 -0
- package/lib/typescript/module/stay-search/StaySearchStep.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/constants.d.ts +27 -0
- package/lib/typescript/module/stay-search/constants.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/context.d.ts +3 -0
- package/lib/typescript/module/stay-search/context.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/guests.d.ts +13 -0
- package/lib/typescript/module/stay-search/guests.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/index.d.ts +10 -0
- package/lib/typescript/module/stay-search/index.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/palette.d.ts +48 -0
- package/lib/typescript/module/stay-search/palette.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/types.d.ts +195 -0
- package/lib/typescript/module/stay-search/types.d.ts.map +1 -0
- package/lib/typescript/module/stepper/Stepper.d.ts +6 -0
- package/lib/typescript/module/stepper/Stepper.d.ts.map +1 -0
- package/lib/typescript/module/stepper/StepperRow.d.ts +13 -0
- package/lib/typescript/module/stepper/StepperRow.d.ts.map +1 -0
- package/lib/typescript/module/stepper/index.d.ts +4 -0
- package/lib/typescript/module/stepper/index.d.ts.map +1 -0
- package/lib/typescript/module/stepper/types.d.ts +49 -0
- package/lib/typescript/module/stepper/types.d.ts.map +1 -0
- package/package.json +127 -1
- package/src/app-shell/AppShell.tsx +181 -107
- package/src/app-shell/AppShellHeader.tsx +11 -9
- package/src/app-shell/AppShellMenuButton.tsx +37 -0
- package/src/app-shell/context.ts +35 -0
- package/src/app-shell/index.ts +4 -0
- package/src/app-shell/types.ts +42 -11
- package/src/booking/BookingBar.tsx +106 -0
- package/src/booking/BookingCard.tsx +355 -0
- package/src/booking/BookingLink.tsx +96 -0
- package/src/booking/BookingPrice.tsx +67 -0
- package/src/booking/PriceBreakdown.tsx +99 -0
- package/src/booking/TripCard.tsx +202 -0
- package/src/booking/constants.ts +10 -0
- package/src/booking/index.ts +17 -0
- package/src/booking/shared.ts +115 -0
- package/src/booking/types.ts +179 -0
- package/src/category-bar/CategoryBar.tsx +511 -0
- package/src/category-bar/index.ts +2 -0
- package/src/category-bar/types.ts +42 -0
- package/src/dialog/DialogBottomSheet.tsx +11 -1
- package/src/icons/remix/RiAncientGateLine.tsx +6 -0
- package/src/icons/remix/RiAncientPavilionLine.tsx +6 -0
- package/src/icons/remix/RiBikeLine.tsx +6 -0
- package/src/icons/remix/RiBriefcase4Line.tsx +6 -0
- package/src/icons/remix/RiCactusLine.tsx +6 -0
- package/src/icons/remix/RiCalendarCloseLine.tsx +6 -0
- package/src/icons/remix/RiDoorOpenLine.tsx +6 -0
- package/src/icons/remix/RiFridgeLine.tsx +6 -0
- package/src/icons/remix/RiGolfBallLine.tsx +6 -0
- package/src/icons/remix/RiHeart3Fill.tsx +6 -0
- package/src/icons/remix/RiHeart3Line.tsx +6 -0
- package/src/icons/remix/RiLandscapeLine.tsx +6 -0
- package/src/icons/remix/RiMapPin2Line.tsx +6 -0
- package/src/icons/remix/RiMedalLine.tsx +6 -0
- package/src/icons/remix/RiParkingBoxLine.tsx +6 -0
- package/src/icons/remix/RiPlantLine.tsx +6 -0
- package/src/icons/remix/RiSailboatLine.tsx +6 -0
- package/src/icons/remix/RiShareLine.tsx +6 -0
- package/src/icons/remix/RiShip2Line.tsx +6 -0
- package/src/icons/remix/RiSubtractLine.tsx +6 -0
- package/src/icons/remix/RiTShirtAirLine.tsx +6 -0
- package/src/icons/remix/RiTempColdLine.tsx +6 -0
- package/src/icons/remix/RiTentLine.tsx +6 -0
- package/src/icons/remix/RiTranslate2.tsx +6 -0
- package/src/icons/remix/RiTreeLine.tsx +6 -0
- package/src/icons/remix/RiTvLine.tsx +6 -0
- package/src/icons/remix/RiWifiLine.tsx +6 -0
- package/src/icons/remix/index.ts +27 -0
- package/src/index.ts +94 -0
- package/src/index.web.ts +94 -0
- package/src/listing-card/FavoriteButton.tsx +101 -0
- package/src/listing-card/ListingCard.tsx +565 -0
- package/src/listing-card/ListingCardGrid.tsx +65 -0
- package/src/listing-card/WishlistCard.tsx +150 -0
- package/src/listing-card/index.ts +11 -0
- package/src/listing-card/shared.ts +207 -0
- package/src/listing-card/types.ts +133 -0
- package/src/listing-details/AmenityList.tsx +103 -0
- package/src/listing-details/HostCard.tsx +229 -0
- package/src/listing-details/ListingHeader.tsx +248 -0
- package/src/listing-details/ListingHighlights.tsx +53 -0
- package/src/listing-details/ListingPhotoGrid.tsx +301 -0
- package/src/listing-details/ListingSection.tsx +75 -0
- package/src/listing-details/ReviewCard.tsx +221 -0
- package/src/listing-details/ReviewSummary.tsx +180 -0
- package/src/listing-details/constants.ts +14 -0
- package/src/listing-details/index.ts +35 -0
- package/src/listing-details/shared.ts +121 -0
- package/src/listing-details/types.ts +286 -0
- package/src/listing-details/use-container-width.ts +21 -0
- package/src/map-marker/MapClusterMarker.tsx +85 -0
- package/src/map-marker/MapListingPreview.tsx +302 -0
- package/src/map-marker/MapPriceMarker.tsx +108 -0
- package/src/map-marker/MapSearchAreaButton.tsx +118 -0
- package/src/map-marker/index.ts +12 -0
- package/src/map-marker/shared.ts +101 -0
- package/src/map-marker/types.ts +101 -0
- package/src/rating/Rating.tsx +89 -0
- package/src/rating/RatingBar.tsx +87 -0
- package/src/rating/index.ts +3 -0
- package/src/rating/types.ts +52 -0
- package/src/sidebar/Sidebar.tsx +42 -22
- package/src/sidebar/SidebarLogoView.tsx +92 -0
- package/src/sidebar/SidebarRail.tsx +9 -1
- package/src/sidebar/index.ts +1 -0
- package/src/sidebar/types.ts +38 -0
- package/src/stay-filters/AmenityFilter.tsx +58 -0
- package/src/stay-filters/CountFilter.tsx +88 -0
- package/src/stay-filters/FilterChip.tsx +129 -0
- package/src/stay-filters/FilterFooter.tsx +79 -0
- package/src/stay-filters/FilterSection.tsx +72 -0
- package/src/stay-filters/FilterTextButton.tsx +105 -0
- package/src/stay-filters/FilterTriggerButton.tsx +58 -0
- package/src/stay-filters/PriceHistogram.tsx +79 -0
- package/src/stay-filters/PriceRangeFilter.tsx +142 -0
- package/src/stay-filters/SegmentedFilter.tsx +42 -0
- package/src/stay-filters/SwitchFilterRow.tsx +60 -0
- package/src/stay-filters/ToggleChipGroup.tsx +59 -0
- package/src/stay-filters/index.ts +25 -0
- package/src/stay-filters/types.ts +192 -0
- package/src/stay-search/DateFlexibilityChips.tsx +48 -0
- package/src/stay-search/DestinationSuggestions.tsx +161 -0
- package/src/stay-search/GuestPicker.tsx +101 -0
- package/src/stay-search/StaySearchBar.tsx +349 -0
- package/src/stay-search/StaySearchCompact.tsx +127 -0
- package/src/stay-search/StaySearchPanel.tsx +51 -0
- package/src/stay-search/StaySearchStep.tsx +116 -0
- package/src/stay-search/constants.ts +58 -0
- package/src/stay-search/context.ts +15 -0
- package/src/stay-search/guests.ts +21 -0
- package/src/stay-search/index.ts +25 -0
- package/src/stay-search/palette.ts +91 -0
- package/src/stay-search/types.ts +210 -0
- package/src/stepper/Stepper.tsx +223 -0
- package/src/stepper/StepperRow.tsx +69 -0
- package/src/stepper/index.ts +3 -0
- package/src/stepper/types.ts +51 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useMemo } from 'react';
|
|
4
|
+
import { Platform, View } from 'react-native';
|
|
5
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
6
|
+
import { Text } from "../typography/index.js";
|
|
7
|
+
import { priceAccessibilityName, resolveBookingPalette } from "./shared.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const IS_WEB = Platform.OS === 'web';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* INTERNAL — the price line `BookingCard` and `BookingBar` share: an optional
|
|
13
|
+
* struck earlier price (text-secondary), the price (semibold), the unit
|
|
14
|
+
* (regular), baseline-aligned.
|
|
15
|
+
*
|
|
16
|
+
* It reads as ONE element with a spoken name ("$180 per night, originally
|
|
17
|
+
* $210"): a strikethrough is not announced, so read as text the line would say
|
|
18
|
+
* "$210 $180 night" and invert the offer. Same shape as `Rating` — `role="img"`
|
|
19
|
+
* on web, where a named plain `div` is skipped, one `accessible` node on native.
|
|
20
|
+
*/
|
|
21
|
+
export function BookingPrice({
|
|
22
|
+
price,
|
|
23
|
+
originalPrice,
|
|
24
|
+
priceUnit,
|
|
25
|
+
priceAccessibilityLabel,
|
|
26
|
+
priceVariant,
|
|
27
|
+
unitVariant,
|
|
28
|
+
style,
|
|
29
|
+
testID
|
|
30
|
+
}) {
|
|
31
|
+
const theme = useTheme();
|
|
32
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
33
|
+
const name = priceAccessibilityLabel ?? priceAccessibilityName(price, priceUnit, originalPrice);
|
|
34
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
35
|
+
testID: testID,
|
|
36
|
+
accessible: true,
|
|
37
|
+
accessibilityLabel: name,
|
|
38
|
+
...(IS_WEB ? {
|
|
39
|
+
role: 'img'
|
|
40
|
+
} : null),
|
|
41
|
+
style: [{
|
|
42
|
+
flexDirection: 'row',
|
|
43
|
+
alignItems: 'baseline',
|
|
44
|
+
flexWrap: 'wrap',
|
|
45
|
+
columnGap: 4
|
|
46
|
+
}, style],
|
|
47
|
+
children: [originalPrice ? /*#__PURE__*/_jsx(Text, {
|
|
48
|
+
variant: unitVariant,
|
|
49
|
+
style: {
|
|
50
|
+
color: palette.textSecondary,
|
|
51
|
+
textDecorationLine: 'line-through'
|
|
52
|
+
},
|
|
53
|
+
children: originalPrice
|
|
54
|
+
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
55
|
+
variant: priceVariant,
|
|
56
|
+
style: {
|
|
57
|
+
color: palette.text,
|
|
58
|
+
fontVariant: ['tabular-nums']
|
|
59
|
+
},
|
|
60
|
+
children: price
|
|
61
|
+
}), priceUnit ? /*#__PURE__*/_jsx(Text, {
|
|
62
|
+
variant: unitVariant,
|
|
63
|
+
style: {
|
|
64
|
+
color: palette.text
|
|
65
|
+
},
|
|
66
|
+
children: priceUnit
|
|
67
|
+
}) : null]
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=BookingPrice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","Platform","View","useTheme","Text","priceAccessibilityName","resolveBookingPalette","jsx","_jsx","jsxs","_jsxs","IS_WEB","OS","BookingPrice","price","originalPrice","priceUnit","priceAccessibilityLabel","priceVariant","unitVariant","style","testID","theme","palette","name","accessible","accessibilityLabel","role","flexDirection","alignItems","flexWrap","columnGap","children","variant","color","textSecondary","textDecorationLine","text","fontVariant"],"sourceRoot":"../../../src","sources":["booking/BookingPrice.t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AO,CAACY,aAAa;QAAEC,kBAAkB,EAAE;MAAe,CAAE;MAAAJ,QAAA,EAE3EjB;IAAa,CACV,CAAC,GACL,IAAI,eACRP,IAAA,CAACJ,IAAI;MAAC6B,OAAO,EAAEf,YAAa;MAACE,KAAK,EAAE;QAAEc,KAAK,EAAEX,OAAO,CAACc,IAAI;QAAEC,WAAW,EAAE,CAAC,cAAc;MAAE,CAAE;MAAAN,QAAA,EACxFlB;IAAK,CACF,CAAC,EACNE,SAAS,gBACRR,IAAA,CAACJ,IAAI;MAAC6B,OAAO,EAAEd,WAAY;MAACC,KAAK,EAAE;QAAEc,KAAK,EAAEX,OAAO,CAACc;MAAK,CAAE;MAAAL,QAAA,EACxDhB;IAAS,CACN,CAAC,GACL,IAAI;EAAA,CACJ,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useMemo } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { Divider } from "../divider/index.js";
|
|
6
|
+
import { Popover, PopoverContent, PopoverTrigger } from '../popover';
|
|
7
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
8
|
+
import { Text } from "../typography/index.js";
|
|
9
|
+
import { BookingLink } from "./BookingLink.js";
|
|
10
|
+
import { discountAmount, resolveBookingPalette } from "./shared.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
+
/**
|
|
13
|
+
* The itemised price: one row per charge, a hairline, a bold total.
|
|
14
|
+
*
|
|
15
|
+
* row label body-regular (underlined button with `onPressLabel`/`details`)
|
|
16
|
+
* amount body-regular, tabular, right-aligned — success colour and a
|
|
17
|
+
* leading "−" for a `discount` row
|
|
18
|
+
* rows 12 apart; 16 above and below the hairline
|
|
19
|
+
* total headline-semibold both sides
|
|
20
|
+
*
|
|
21
|
+
* Amounts arrive formatted — the app owns currency and locale; nothing here
|
|
22
|
+
* adds numbers up.
|
|
23
|
+
*/
|
|
24
|
+
function BreakdownRow({
|
|
25
|
+
row
|
|
26
|
+
}) {
|
|
27
|
+
const theme = useTheme();
|
|
28
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
29
|
+
const discount = row.tone === 'discount';
|
|
30
|
+
const amount = discount ? discountAmount(row.amount) : row.amount;
|
|
31
|
+
const pressable = row.onPressLabel != null || row.details != null;
|
|
32
|
+
const link = /*#__PURE__*/_jsx(BookingLink, {
|
|
33
|
+
onPress: row.onPressLabel,
|
|
34
|
+
textStyle: {
|
|
35
|
+
flexShrink: 1
|
|
36
|
+
},
|
|
37
|
+
children: row.label
|
|
38
|
+
});
|
|
39
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
40
|
+
style: {
|
|
41
|
+
flexDirection: 'row',
|
|
42
|
+
alignItems: 'flex-start',
|
|
43
|
+
gap: 16
|
|
44
|
+
},
|
|
45
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
46
|
+
style: {
|
|
47
|
+
flex: 1,
|
|
48
|
+
minWidth: 0,
|
|
49
|
+
alignItems: 'flex-start'
|
|
50
|
+
},
|
|
51
|
+
children: row.details != null ? /*#__PURE__*/_jsxs(Popover, {
|
|
52
|
+
children: [/*#__PURE__*/_jsx(PopoverTrigger, {
|
|
53
|
+
asChild: true,
|
|
54
|
+
children: link
|
|
55
|
+
}), /*#__PURE__*/_jsx(PopoverContent, {
|
|
56
|
+
label: row.label,
|
|
57
|
+
side: "top",
|
|
58
|
+
align: "start",
|
|
59
|
+
children: row.details
|
|
60
|
+
})]
|
|
61
|
+
}) : pressable ? link : /*#__PURE__*/_jsx(Text, {
|
|
62
|
+
variant: "body-regular",
|
|
63
|
+
style: {
|
|
64
|
+
color: palette.text
|
|
65
|
+
},
|
|
66
|
+
children: row.label
|
|
67
|
+
})
|
|
68
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
69
|
+
variant: "body-regular",
|
|
70
|
+
style: {
|
|
71
|
+
color: discount ? palette.discount : palette.text,
|
|
72
|
+
fontVariant: ['tabular-nums'],
|
|
73
|
+
textAlign: 'right'
|
|
74
|
+
},
|
|
75
|
+
children: amount
|
|
76
|
+
})]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function PriceBreakdownComponent({
|
|
80
|
+
rows,
|
|
81
|
+
totalLabel = 'Total',
|
|
82
|
+
total,
|
|
83
|
+
style,
|
|
84
|
+
testID
|
|
85
|
+
}) {
|
|
86
|
+
const theme = useTheme();
|
|
87
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
88
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
89
|
+
testID: testID,
|
|
90
|
+
style: [{
|
|
91
|
+
gap: 12
|
|
92
|
+
}, style],
|
|
93
|
+
children: [rows.map(row => /*#__PURE__*/_jsx(BreakdownRow, {
|
|
94
|
+
row: row
|
|
95
|
+
}, row.key ?? row.label)), total != null ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
96
|
+
children: [/*#__PURE__*/_jsx(Divider, {
|
|
97
|
+
color: palette.border,
|
|
98
|
+
spacing: 4
|
|
99
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
100
|
+
style: {
|
|
101
|
+
flexDirection: 'row',
|
|
102
|
+
alignItems: 'flex-start',
|
|
103
|
+
gap: 16
|
|
104
|
+
},
|
|
105
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
106
|
+
variant: "headline-semibold",
|
|
107
|
+
style: {
|
|
108
|
+
flex: 1,
|
|
109
|
+
color: palette.text
|
|
110
|
+
},
|
|
111
|
+
children: totalLabel
|
|
112
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
113
|
+
variant: "headline-semibold",
|
|
114
|
+
style: {
|
|
115
|
+
color: palette.text,
|
|
116
|
+
fontVariant: ['tabular-nums'],
|
|
117
|
+
textAlign: 'right'
|
|
118
|
+
},
|
|
119
|
+
children: total
|
|
120
|
+
})]
|
|
121
|
+
})]
|
|
122
|
+
}) : null]
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
export const PriceBreakdown = /*#__PURE__*/memo(PriceBreakdownComponent);
|
|
126
|
+
PriceBreakdown.displayName = 'PriceBreakdown';
|
|
127
|
+
//# sourceMappingURL=PriceBreakdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useMemo","View","Divider","Popover","PopoverContent","PopoverTrigger","useTheme","Text","BookingLink","discountAmount","resolveBookingPalette","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","BreakdownRow","row","theme","palette","discount","tone","amount","pressable","onPressLabel","details","link","onPress","textStyle","flexShrink","children","label","style","flexDirection","alignItems","gap","flex","minWidth","asChild","side","align","variant","color","text","fontVariant","textAlign","PriceBreakdownComponent","rows","totalLabel","total","testID","map","key","border","spacing","PriceBreakdown","displayName"],"sourceRoot":"../../../src","sources":["booking/PriceBreakdown.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,OAAO,QAAQ,qBAAY;AACpC,SAASC,OAAO,EAAEC,cAAc,EAAEC,cAAc,QAAQ,YAAY;AACpE,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,WAAW,QAAQ,kBAAe;AAC3C,SAASC,cAAc,EAAEC,qBAAqB,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAGjE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,YAAYA,CAAC;EAAEC;AAAgC,CAAC,EAAE;EACzD,MAAMC,KAAK,GAAGb,QAAQ,CAAC,CAAC;EACxB,MAAMc,OAAO,GAAGpB,OAAO,CAAC,MAAMU,qBAAqB,CAACS,KAAK,CAA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;QAAAL,QAAA,gBACvEnB,IAAA,CAACL,IAAI;UAACmC,OAAO,EAAC,mBAAmB;UAACT,KAAK,EAAE;YAAEI,IAAI,EAAE,CAAC;YAAEM,KAAK,EAAEvB,OAAO,CAACwB;UAAK,CAAE;UAAAb,QAAA,EACvEkB;QAAU,CACP,CAAC,eACPrC,IAAA,CAACL,IAAI;UACHmC,OAAO,EAAC,mBAAmB;UAC3BT,KAAK,EAAE;YAAEU,KAAK,EAAEvB,OAAO,CAACwB,IAAI;YAAEC,WAAW,EAAE,CAAC,cAAc,CAAC;YAAEC,SAAS,EAAE;UAAQ,CAAE;UAAAf,QAAA,EAEjFmB;QAAK,CACF,CAAC;MAAA,CACH,CAAC;IAAA,CACP,CAAC,GACD,IAAI;EAAA,CACJ,CAAC;AAEX;AAEA,OAAO,MAAMM,cAAc,gBAAGzD,IAAI,CAACgD,uBAAuB,CAAC;AAC3DS,cAAc,CAACC,WAAW,GAAG,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useCallback, useEffect, useMemo, useState } from 'react';
|
|
4
|
+
import { Image, Platform, Pressable, View } from 'react-native';
|
|
5
|
+
import { Badge } from "../badge/index.js";
|
|
6
|
+
import { webDataSet } from "../checkbox/shared.js";
|
|
7
|
+
import { useInteractionState } from "../hooks/use-interaction-state.js";
|
|
8
|
+
import { useImageResolver } from "../image-resolver/context.js";
|
|
9
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
10
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
11
|
+
import { Text } from "../typography/index.js";
|
|
12
|
+
import { TRIP_STATUS } from "./constants.js";
|
|
13
|
+
import { BOOKING_STYLE_ID, BOOKING_WEB_CSS, isImageUrl, resolveBookingPalette, TRIP_CARD_HORIZONTAL_MIN_WIDTH, TRIP_CARD_RADIUS, TRIP_IMAGE_RADIUS } from "./shared.js";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
const IS_WEB = Platform.OS === 'web';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* An upcoming or past reservation.
|
|
19
|
+
*
|
|
20
|
+
* card radius 16, 1px hairline (neutral-200 / 700), surface card /
|
|
21
|
+
* neutral-800, padding 12, 16 between photo and text
|
|
22
|
+
* photo radius 12; horizontal 176 × 132, vertical full width at 3:2;
|
|
23
|
+
* neutral-100 / 900 tile while loading or absent
|
|
24
|
+
* text title headline-semibold, subtitle body-2-regular text-secondary,
|
|
25
|
+
* dates body-2-medium; a subtle status `Badge` above the title
|
|
26
|
+
* actions 8 apart, under the text
|
|
27
|
+
* press hover / press wash neutral-100 (colour only); keyboard focus a
|
|
28
|
+
* 2px accent ring
|
|
29
|
+
*
|
|
30
|
+
* `orientation="auto"` measures itself and turns horizontal at 480 wide, so the
|
|
31
|
+
* same card fits a phone list and a desktop column.
|
|
32
|
+
*
|
|
33
|
+
* With `onPress` the WHOLE card is one button, laid under the content, and the
|
|
34
|
+
* content ignores pointers — so `actions` stay separate buttons instead of
|
|
35
|
+
* buttons nested inside a button (invalid on web, one merged element to a
|
|
36
|
+
* screen reader). The button is named from title, dates and status; the
|
|
37
|
+
* drawn text is hidden from assistive tech so it is not read twice.
|
|
38
|
+
*/
|
|
39
|
+
function TripCardComponent({
|
|
40
|
+
image,
|
|
41
|
+
imageVariant,
|
|
42
|
+
title,
|
|
43
|
+
subtitle,
|
|
44
|
+
dates,
|
|
45
|
+
status,
|
|
46
|
+
statusLabel,
|
|
47
|
+
actions,
|
|
48
|
+
orientation = 'auto',
|
|
49
|
+
onPress,
|
|
50
|
+
accessibilityLabel,
|
|
51
|
+
style,
|
|
52
|
+
testID
|
|
53
|
+
}) {
|
|
54
|
+
const theme = useTheme();
|
|
55
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
56
|
+
const resolver = useImageResolver();
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
adoptStyleSheet(BOOKING_STYLE_ID, BOOKING_WEB_CSS);
|
|
59
|
+
}, []);
|
|
60
|
+
const {
|
|
61
|
+
state: hovered,
|
|
62
|
+
onIn: onHoverIn,
|
|
63
|
+
onOut: onHoverOut
|
|
64
|
+
} = useInteractionState();
|
|
65
|
+
const {
|
|
66
|
+
state: pressed,
|
|
67
|
+
onIn: onPressIn,
|
|
68
|
+
onOut: onPressOut
|
|
69
|
+
} = useInteractionState();
|
|
70
|
+
const [width, setWidth] = useState(null);
|
|
71
|
+
const onLayout = useCallback(e => {
|
|
72
|
+
setWidth(Math.round(e.nativeEvent.layout.width));
|
|
73
|
+
}, []);
|
|
74
|
+
const horizontal = orientation === 'horizontal' || orientation === 'auto' && width != null && width >= TRIP_CARD_HORIZONTAL_MIN_WIDTH;
|
|
75
|
+
const uri = image ? isImageUrl(image) ? image : resolver?.(image, imageVariant) : undefined;
|
|
76
|
+
const statusInfo = status ? TRIP_STATUS[status] : null;
|
|
77
|
+
const shownStatus = statusLabel ?? statusInfo?.label;
|
|
78
|
+
const name = accessibilityLabel ?? [title, dates, shownStatus].filter(part => part != null && part !== '').join(', ');
|
|
79
|
+
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
80
|
+
const hideContent = onPress != null;
|
|
81
|
+
const cardStyle = {
|
|
82
|
+
borderRadius: TRIP_CARD_RADIUS,
|
|
83
|
+
borderWidth: 1,
|
|
84
|
+
borderColor: palette.border,
|
|
85
|
+
backgroundColor: palette.surface
|
|
86
|
+
};
|
|
87
|
+
const overlayStyle = {
|
|
88
|
+
position: 'absolute',
|
|
89
|
+
top: 0,
|
|
90
|
+
left: 0,
|
|
91
|
+
right: 0,
|
|
92
|
+
bottom: 0,
|
|
93
|
+
borderRadius: TRIP_CARD_RADIUS - 1,
|
|
94
|
+
backgroundColor: hovered || pressed ? palette.highlight : 'transparent',
|
|
95
|
+
'--bloom-booking-ring': palette.ring,
|
|
96
|
+
'--bloom-booking-ring-offset': '2px'
|
|
97
|
+
};
|
|
98
|
+
const hiddenProps = hideContent ? IS_WEB ? {
|
|
99
|
+
'aria-hidden': true
|
|
100
|
+
} : {
|
|
101
|
+
accessibilityElementsHidden: true,
|
|
102
|
+
importantForAccessibility: 'no-hide-descendants'
|
|
103
|
+
} : null;
|
|
104
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
105
|
+
testID: testID,
|
|
106
|
+
onLayout: onLayout,
|
|
107
|
+
style: [cardStyle, style],
|
|
108
|
+
children: [onPress ? /*#__PURE__*/_jsx(Pressable, {
|
|
109
|
+
...webDataSet({
|
|
110
|
+
bloomBookingFocus: ''
|
|
111
|
+
}),
|
|
112
|
+
accessibilityRole: "button",
|
|
113
|
+
accessibilityLabel: name,
|
|
114
|
+
onPress: onPress,
|
|
115
|
+
onHoverIn: onHoverIn,
|
|
116
|
+
onHoverOut: onHoverOut,
|
|
117
|
+
onPressIn: onPressIn,
|
|
118
|
+
onPressOut: onPressOut,
|
|
119
|
+
testID: id('press'),
|
|
120
|
+
style: overlayStyle
|
|
121
|
+
}) : null, /*#__PURE__*/_jsxs(View, {
|
|
122
|
+
pointerEvents: "box-none",
|
|
123
|
+
testID: id('layout'),
|
|
124
|
+
style: {
|
|
125
|
+
flexDirection: horizontal ? 'row' : 'column',
|
|
126
|
+
alignItems: horizontal ? 'center' : 'stretch',
|
|
127
|
+
gap: 16,
|
|
128
|
+
paddingTop: 12,
|
|
129
|
+
paddingBottom: 12,
|
|
130
|
+
paddingLeft: 12,
|
|
131
|
+
paddingRight: 12
|
|
132
|
+
},
|
|
133
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
134
|
+
pointerEvents: "none",
|
|
135
|
+
...hiddenProps,
|
|
136
|
+
testID: id('image'),
|
|
137
|
+
style: {
|
|
138
|
+
borderRadius: TRIP_IMAGE_RADIUS,
|
|
139
|
+
overflow: 'hidden',
|
|
140
|
+
backgroundColor: palette.tile,
|
|
141
|
+
...(horizontal ? {
|
|
142
|
+
width: 176,
|
|
143
|
+
height: 132
|
|
144
|
+
} : {
|
|
145
|
+
width: '100%',
|
|
146
|
+
aspectRatio: 3 / 2
|
|
147
|
+
})
|
|
148
|
+
},
|
|
149
|
+
children: uri ? /*#__PURE__*/_jsx(Image, {
|
|
150
|
+
source: {
|
|
151
|
+
uri
|
|
152
|
+
},
|
|
153
|
+
resizeMode: "cover",
|
|
154
|
+
style: {
|
|
155
|
+
width: '100%',
|
|
156
|
+
height: '100%'
|
|
157
|
+
}
|
|
158
|
+
}) : null
|
|
159
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
160
|
+
pointerEvents: "box-none",
|
|
161
|
+
style: {
|
|
162
|
+
flex: horizontal ? 1 : undefined,
|
|
163
|
+
minWidth: 0,
|
|
164
|
+
gap: 12
|
|
165
|
+
},
|
|
166
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
167
|
+
pointerEvents: "none",
|
|
168
|
+
...hiddenProps,
|
|
169
|
+
style: {
|
|
170
|
+
gap: 4,
|
|
171
|
+
alignItems: 'flex-start'
|
|
172
|
+
},
|
|
173
|
+
children: [statusInfo && shownStatus ? /*#__PURE__*/_jsx(Badge, {
|
|
174
|
+
content: shownStatus,
|
|
175
|
+
color: statusInfo.tone,
|
|
176
|
+
variant: "subtle",
|
|
177
|
+
size: "medium",
|
|
178
|
+
testID: id('status'),
|
|
179
|
+
style: {
|
|
180
|
+
marginBottom: 4
|
|
181
|
+
}
|
|
182
|
+
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
183
|
+
variant: "headline-semibold",
|
|
184
|
+
numberOfLines: 2,
|
|
185
|
+
style: {
|
|
186
|
+
color: palette.text
|
|
187
|
+
},
|
|
188
|
+
children: title
|
|
189
|
+
}), subtitle ? /*#__PURE__*/_jsx(Text, {
|
|
190
|
+
variant: "body-2-regular",
|
|
191
|
+
numberOfLines: 1,
|
|
192
|
+
style: {
|
|
193
|
+
color: palette.textSecondary
|
|
194
|
+
},
|
|
195
|
+
children: subtitle
|
|
196
|
+
}) : null, dates ? /*#__PURE__*/_jsx(Text, {
|
|
197
|
+
variant: "body-2-medium",
|
|
198
|
+
numberOfLines: 1,
|
|
199
|
+
style: {
|
|
200
|
+
color: palette.text
|
|
201
|
+
},
|
|
202
|
+
children: dates
|
|
203
|
+
}) : null]
|
|
204
|
+
}), actions != null ? /*#__PURE__*/_jsx(View, {
|
|
205
|
+
testID: id('actions'),
|
|
206
|
+
style: {
|
|
207
|
+
flexDirection: 'row',
|
|
208
|
+
flexWrap: 'wrap',
|
|
209
|
+
alignItems: 'center',
|
|
210
|
+
gap: 8
|
|
211
|
+
},
|
|
212
|
+
children: actions
|
|
213
|
+
}) : null]
|
|
214
|
+
})]
|
|
215
|
+
})]
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
export const TripCard = /*#__PURE__*/memo(TripCardComponent);
|
|
219
|
+
TripCard.displayName = 'TripCard';
|
|
220
|
+
//# sourceMappingURL=TripCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useEffect","useMemo","useState","Image","Platform","Pressable","View","Badge","webDataSet","useInteractionState","useImageResolver","adoptStyleSheet","useTheme","Text","TRIP_STATUS","BOOKING_STYLE_ID","BOOKING_WEB_CSS","isImageUrl","resolveBookingPalette","TRIP_CARD_HORIZONTAL_MIN_WIDTH","TRIP_CARD_RADIUS","TRIP_IMAGE_RADIUS","jsx","_jsx","jsxs","_jsxs","IS_WEB","OS","TripCardComponent","image","imageVariant","title","subtitle","dates","status","statusLabel","actions","orientation","onPress","accessibilityLabel","style","testID","theme","palette","resolver","state","hovered","onIn","onHoverIn","onOut","onHoverOut","pressed","onPressIn","onPressOut","width","setWidth","onLayout","e","Math","round","nativeEvent","layout","horizontal","uri","undefined","statusInfo","shownStatus","label","name","filter","part","join","id","hideContent","cardStyle","borderRadius","borderWidth","borderColor","border","backgroundColor","surface","overlayStyle","position","top","left","right","bottom","highlight","ring","hiddenProps","accessibilityElementsHidden","importantForAccessibility","children","bloomBookingFocus","accessibilityRole","pointerEvents","flexDirection","alignItems","gap","paddingTop","paddingBottom","paddingLeft","paddingRight","overflow","tile","height","aspectRatio","source","resizeMode","flex","minWidth","content","color","tone","variant","size","marginBottom","numberOfLines","text","textSecondary","flexWrap","TripCard","displayName"],"sourceRoot":"../../../src","sources":["booking/TripCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC9E,SAASC,KAAK,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,IAAI,QAAgD,cAAc;AAEvG,SAASC,KAAK,QAAQ,mBAAU;AAChC,SAASC,UAAU,QAAQ,uBAAoB;AAC/C,SAASC,mBAAmB,QAAQ,mCAAgC;AACpE,SAASC,gBAAgB,QAAQ,8BAA2B;AAC5D,SAASC,eAAe,QAAQ,gCAA6B;AAE7D,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,WAAW,QAAQ,gBAAa;AACzC,SACEC,gBAAgB,EAChBC,eAAe,EACfC,UAAU,EACVC,qBAAqB,EACrBC,8BAA8B,EAC9BC,gBAAgB,EAChBC,iBAAiB,QACZ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGlB,MAAMC,MAAM,GAAGtB,QAAQ,CAACuB,EAAE,KAAK,KAAK;;AAEpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,iBAAiBA,CAAC;EACzBC,KAAK;EACLC,YAAY;EACZC,KAAK;EACLC,QAAQ;EACRC,KAAK;EACLC,MAAM;EACNC,WAAW;EACXC,OAAO;EACPC,WAAW,GAAG,MAAM;EACpBC,OAAO;EACPC,kBAAkB;EAClBC,KAAK;EACLC;AACa,CAAC,EAAE;EA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IAAA,CAACV,IAAI;YAACqG,OAAO,EAAC,eAAe;YAACG,aAAa,EAAE,CAAE;YAAC7E,KAAK,EAAE;cAAEwE,KAAK,EAAErE,OAAO,CAAC2E;YAAK,CAAE;YAAA1B,QAAA,EAC5E3D;UAAK,CACF,CAAC,GACL,IAAI;QAAA,CACJ,CAAC,EACNG,OAAO,IAAI,IAAI,gBACdb,IAAA,CAACjB,IAAI;UACHmC,MAAM,EAAE+B,EAAE,CAAC,SAAS,CAAE;UACtBhC,KAAK,EAAE;YAAEwD,aAAa,EAAE,KAAK;YAAEwB,QAAQ,EAAE,MAAM;YAAEvB,UAAU,EAAE,QAAQ;YAAEC,GAAG,EAAE;UAAE,CAAE;UAAAN,QAAA,EAE/ExD;QAAO,CACJ,CAAC,GACL,IAAI;MAAA,CACJ,CAAC;IAAA,CACH,CAAC;EAAA,CACH,CAAC;AAEX;AAEA,OAAO,MAAMqF,QAAQ,gBAAG3H,IAAI,CAAC8B,iBAAiB,CAAC;AAC/C6F,QAAQ,CAACC,WAAW,GAAG,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/** `TripCard`'s badge tone and default English label per status. */
|
|
4
|
+
export const TRIP_STATUS = {
|
|
5
|
+
confirmed: {
|
|
6
|
+
tone: 'success',
|
|
7
|
+
label: 'Confirmed'
|
|
8
|
+
},
|
|
9
|
+
pending: {
|
|
10
|
+
tone: 'warning',
|
|
11
|
+
label: 'Pending'
|
|
12
|
+
},
|
|
13
|
+
cancelled: {
|
|
14
|
+
tone: 'error',
|
|
15
|
+
label: 'Cancelled'
|
|
16
|
+
},
|
|
17
|
+
completed: {
|
|
18
|
+
tone: 'default',
|
|
19
|
+
label: 'Completed'
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TRIP_STATUS","confirmed","tone","label","pending","cancelled","completed"],"sourceRoot":"../../../src","sources":["booking/constants.ts"],"mappings":";;AAGA;AACA,OAAO,MAAMA,WAAoE,GAAG;EAClFC,SAAS,EAAE;IAAEC,IAAI,EAAE,SAAS;IAAEC,KAAK,EAAE;EAAY,CAAC;EAClDC,OAAO,EAAE;IAAEF,IAAI,EAAE,SAAS;IAAEC,KAAK,EAAE;EAAU,CAAC;EAC9CE,SAAS,EAAE;IAAEH,IAAI,EAAE,OAAO;IAAEC,KAAK,EAAE;EAAY,CAAC;EAChDG,SAAS,EAAE;IAAEJ,IAAI,EAAE,SAAS;IAAEC,KAAK,EAAE;EAAY;AACnD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { BookingCard } from "./BookingCard.js";
|
|
4
|
+
export { BookingBar } from "./BookingBar.js";
|
|
5
|
+
export { PriceBreakdown } from "./PriceBreakdown.js";
|
|
6
|
+
export { TripCard } from "./TripCard.js";
|
|
7
|
+
export { TRIP_STATUS } from "./constants.js";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BookingCard","BookingBar","PriceBreakdown","TripCard","TRIP_STATUS"],"sourceRoot":"../../../src","sources":["booking/index.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,kBAAe;AAC3C,SAASC,UAAU,QAAQ,iBAAc;AACzC,SAASC,cAAc,QAAQ,qBAAkB;AACjD,SAASC,QAAQ,QAAQ,eAAY;AACrC,SAASC,WAAW,QAAQ,gBAAa","ignoreList":[]}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* What the booking family's components share: the palette, the web focus
|
|
5
|
+
* sheet, and a couple of pure helpers. Pure where it can be, so a test can walk
|
|
6
|
+
* presets and modes without rendering.
|
|
7
|
+
*
|
|
8
|
+
* Role light dark where
|
|
9
|
+
* surface card neutral-800 BookingCard, TripCard
|
|
10
|
+
* border neutral-200 neutral-700 card hairline, box dividers
|
|
11
|
+
* fieldBorder neutral-300 neutral-600 the date/guest box
|
|
12
|
+
* highlight neutral-100 neutral-700 @60% on 800 hover / press wash
|
|
13
|
+
* active text text the open field's 2px outline
|
|
14
|
+
* ring accent-500 accent-500 keyboard focus
|
|
15
|
+
* discount success subtle foreground a discount amount
|
|
16
|
+
* tile neutral-100 neutral-900 photo placeholder
|
|
17
|
+
*
|
|
18
|
+
* The surfaces and hairlines are the floating-panel recipe's
|
|
19
|
+
* (`floating/menu-palette.ts`), so a guests popover opened from the card is the
|
|
20
|
+
* same white/neutral family as the card.
|
|
21
|
+
*/
|
|
22
|
+
import { resolveButtonRamps } from "../button/shared.js";
|
|
23
|
+
import { resolveMenuPalette } from "../floating/menu-palette.js";
|
|
24
|
+
import { resolveAccentColors } from "../theme/accent-colors.js";
|
|
25
|
+
export function resolveBookingPalette(theme) {
|
|
26
|
+
const menu = resolveMenuPalette(theme);
|
|
27
|
+
const {
|
|
28
|
+
accent,
|
|
29
|
+
neutral: n
|
|
30
|
+
} = resolveButtonRamps(theme);
|
|
31
|
+
const dark = theme.isDark;
|
|
32
|
+
return {
|
|
33
|
+
surface: menu.surface,
|
|
34
|
+
page: theme.colors.background,
|
|
35
|
+
border: menu.border,
|
|
36
|
+
fieldBorder: dark ? n[600] : n[300],
|
|
37
|
+
highlight: menu.rowHighlight,
|
|
38
|
+
active: theme.colors.text,
|
|
39
|
+
ring: accent[500],
|
|
40
|
+
text: theme.colors.text,
|
|
41
|
+
textSecondary: theme.colors.textSecondary,
|
|
42
|
+
discount: resolveAccentColors(theme.colors, 'success', 'outlined').foreground,
|
|
43
|
+
tile: dark ? n[900] : n[100]
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Card geometry. */
|
|
48
|
+
export const BOOKING_CARD_RADIUS = 16;
|
|
49
|
+
export const BOOKING_CARD_PADDING = 24;
|
|
50
|
+
export const BOOKING_CARD_MAX_WIDTH = 372;
|
|
51
|
+
export const BOOKING_FIELD_RADIUS = 12;
|
|
52
|
+
export const TRIP_CARD_RADIUS = 16;
|
|
53
|
+
export const TRIP_IMAGE_RADIUS = 12;
|
|
54
|
+
/** A `TripCard` with `orientation="auto"` turns horizontal at this width. */
|
|
55
|
+
export const TRIP_CARD_HORIZONTAL_MIN_WIDTH = 480;
|
|
56
|
+
|
|
57
|
+
/** The typographic minus a discount amount is drawn with. */
|
|
58
|
+
export const MINUS_SIGN = '−';
|
|
59
|
+
|
|
60
|
+
/** "$42" → "−$42"; an amount that already carries a minus is left alone. */
|
|
61
|
+
export function discountAmount(amount) {
|
|
62
|
+
return /^[-−]/.test(amount) ? amount.replace(/^-/, MINUS_SIGN) : `${MINUS_SIGN}${amount}`;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** "$180 per night, originally $210". */
|
|
66
|
+
export function priceAccessibilityName(price, unit, originalPrice) {
|
|
67
|
+
return `${price}${unit ? ` per ${unit}` : ''}${originalPrice ? `, originally ${originalPrice}` : ''}`;
|
|
68
|
+
}
|
|
69
|
+
export function isImageUrl(value) {
|
|
70
|
+
return value.startsWith('http://') || value.startsWith('https://') || value.startsWith('data:') || value.startsWith('blob:') || value.startsWith('file:');
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// ---------------------------------------------------------------------------
|
|
74
|
+
// Keyboard focus on web
|
|
75
|
+
//
|
|
76
|
+
// Every pressable here is a react-native-web `Pressable`: focusable, and with
|
|
77
|
+
// the outline reset, so without a `:focus-visible` rule a keyboard user tabs
|
|
78
|
+
// through invisible stops. Inline styles carry no pseudo-classes, so the rule
|
|
79
|
+
// lives in an adopted sheet (`styles/adopt-style-sheet.ts`, never a `<style>`
|
|
80
|
+
// element) hanging off a `dataSet` attribute. The ring colour is a per-
|
|
81
|
+
// instance custom property because it is a resolved theme token.
|
|
82
|
+
// ---------------------------------------------------------------------------
|
|
83
|
+
|
|
84
|
+
export const BOOKING_STYLE_ID = 'bloom-booking-web-css';
|
|
85
|
+
const FOCUSABLE = '[data-bloom-booking-focus]';
|
|
86
|
+
export const BOOKING_WEB_CSS = `
|
|
87
|
+
${FOCUSABLE} {
|
|
88
|
+
outline: none;
|
|
89
|
+
}
|
|
90
|
+
${FOCUSABLE}:focus-visible {
|
|
91
|
+
outline: 2px solid var(--bloom-booking-ring, currentColor);
|
|
92
|
+
outline-offset: var(--bloom-booking-ring-offset, 2px);
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["resolveButtonRamps","resolveMenuPalette","resolveAccentColors","resolveBookingPalette","theme","menu","accent","neutral","n","dark","isDark","surface","page","colors","background","border","fieldBorder","highlight","rowHighlight","active","text","ring","textSecondary","discount","foreground","tile","BOOKING_CARD_RADIUS","BOOKING_CARD_PADDING","BOOKING_CARD_MAX_WIDTH","BOOKING_FIELD_RADIUS","TRIP_CARD_RADIUS","TRIP_IMAGE_RADIUS","TRIP_CARD_HORIZONTAL_MIN_WIDTH","MINUS_SIGN","discountAmount","amount","test","replace","priceAccessibilityName","price","unit","originalPrice","isImageUrl","value","startsWith","BOOKING_STYLE_ID","FOCUSABLE","BOOKING_WEB_CSS"],"sourceRoot":"../../../src","sources":["booking/shared.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,kBAAkB,QAAQ,qBAAkB;AACrD,SAASC,kBAAkB,QAAQ,6BAA0B;AAC7D,SAASC,mBAAmB,QAAQ,2BAAwB;AAkB5D,OAAO,SAASC,qBAAqBA,CAACC,KAAY,EAAkB;EAClE,MAAMC,IAAI,GAAGJ,kBAAkB,CAACG,KAAK,CAAC;EACtC,MAAM;IAAEE,MAAM;IAAEC,OAAO,EAAEC;EAAE,CAAC,GAAGR,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,GAAGA,UAAU,GAAGE,MAAM,EAAE;AAC3F;;AAEA;AACA,OAAO,SAASG,sBAAsBA,CAACC,KAAa,EAAEC,IAAa,EAAEC,aAAsB,EAAU;EACnG,OAAO,GAAGF,KAAK,GAAGC,IAAI,GAAG,QAAQA,IAAI,EAAE,GAAG,EAAE,GAAGC,aAAa,GAAG,gBAAgBA,aAAa,EAAE,GAAG,EAAE,EAAE;AACvG;AAEA,OAAO,SAASC,UAAUA,CAACC,KAAa,EAAW;EACjD,OACEA,KAAK,CAACC,UAAU,CAAC,SAAS,CAAC,IAC3BD,KAAK,CAACC,UAAU,CAAC,UAAU,CAAC,IAC5BD,KAAK,CAACC,UAAU,CAAC,OAAO,CAAC,IACzBD,KAAK,CAACC,UAAU,CAAC,OAAO,CAAC,IACzBD,KAAK,CAACC,UAAU,CAAC,OAAO,CAAC;AAE7B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMC,gBAAgB,GAAG,uBAAuB;AAEvD,MAAMC,SAAS,GAAG,4BAA4B;AAE9C,OAAO,MAAMC,eAAe,GAAG;AAC/B,EAAED,SAAS;AACX;AACA;AACA,EAAEA,SAAS;AACX;AACA;AACA;AACA,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["booking/types.ts"],"mappings":"","ignoreList":[]}
|