@oxy.so/bloom 2.7.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/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/stay-filters.mdx +253 -0
- package/docs/stay-search.mdx +197 -0
- package/docs/stepper.mdx +73 -0
- 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/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/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/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/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/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/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/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/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/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,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { SegmentedControl, SegmentedControlItem, SegmentedControlItemText } from '../segmented-control';
|
|
4
|
+
import type { SegmentedFilterProps } from './types';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* One choice out of a few ("Any type / Room / Entire home"): Bloom's
|
|
8
|
+
* `SegmentedControl` at `large` (44 tall), stretched to the full width so the
|
|
9
|
+
* segments share it equally. A `radiogroup` of `radio`s named by
|
|
10
|
+
* `accessibilityLabel`.
|
|
11
|
+
*/
|
|
12
|
+
export function SegmentedFilter<T extends string = string>({
|
|
13
|
+
options,
|
|
14
|
+
value,
|
|
15
|
+
onValueChange,
|
|
16
|
+
accessibilityLabel,
|
|
17
|
+
style,
|
|
18
|
+
testID,
|
|
19
|
+
}: SegmentedFilterProps<T>) {
|
|
20
|
+
return (
|
|
21
|
+
<SegmentedControl
|
|
22
|
+
label={accessibilityLabel}
|
|
23
|
+
type="radio"
|
|
24
|
+
size="large"
|
|
25
|
+
value={value}
|
|
26
|
+
onChange={onValueChange}
|
|
27
|
+
style={[{ alignSelf: 'stretch' }, style]}
|
|
28
|
+
>
|
|
29
|
+
{options.map((option) => (
|
|
30
|
+
<SegmentedControlItem
|
|
31
|
+
key={option.value}
|
|
32
|
+
value={option.value}
|
|
33
|
+
testID={testID ? `${testID}-${option.value}` : undefined}
|
|
34
|
+
>
|
|
35
|
+
<SegmentedControlItemText>{option.label}</SegmentedControlItemText>
|
|
36
|
+
</SegmentedControlItem>
|
|
37
|
+
))}
|
|
38
|
+
</SegmentedControl>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
SegmentedFilter.displayName = 'SegmentedFilter';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { Switch } from '../switch';
|
|
5
|
+
import { useTheme } from '../theme/use-theme';
|
|
6
|
+
import { Text } from '../typography';
|
|
7
|
+
import type { SwitchFilterRowProps } from './types';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* An on/off filter ("Instant Book"): title (body-medium, text-primary) over an
|
|
11
|
+
* optional description (body-regular, text-secondary) on the left, Bloom's
|
|
12
|
+
* `Switch` on the right, 16 between them and the pair vertically centred.
|
|
13
|
+
*
|
|
14
|
+
* The caption beside a switch is a SIBLING, never its label, so the switch is
|
|
15
|
+
* named explicitly — by `accessibilityLabel`, or the string `title`.
|
|
16
|
+
*/
|
|
17
|
+
function SwitchFilterRowComponent({
|
|
18
|
+
title,
|
|
19
|
+
description,
|
|
20
|
+
value,
|
|
21
|
+
onValueChange,
|
|
22
|
+
disabled,
|
|
23
|
+
accessibilityLabel,
|
|
24
|
+
style,
|
|
25
|
+
testID,
|
|
26
|
+
}: SwitchFilterRowProps) {
|
|
27
|
+
const theme = useTheme();
|
|
28
|
+
const name = accessibilityLabel ?? (typeof title === 'string' ? title : undefined);
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<View style={[{ flexDirection: 'row', alignItems: 'center', gap: 16 }, style]}>
|
|
32
|
+
<View style={{ flex: 1, minWidth: 0, gap: 2 }}>
|
|
33
|
+
{typeof title === 'string' ? (
|
|
34
|
+
<Text variant="body-medium" style={{ color: theme.colors.text }}>
|
|
35
|
+
{title}
|
|
36
|
+
</Text>
|
|
37
|
+
) : (
|
|
38
|
+
title
|
|
39
|
+
)}
|
|
40
|
+
{description == null ? null : typeof description === 'string' ? (
|
|
41
|
+
<Text variant="body-regular" style={{ color: theme.colors.textSecondary }}>
|
|
42
|
+
{description}
|
|
43
|
+
</Text>
|
|
44
|
+
) : (
|
|
45
|
+
description
|
|
46
|
+
)}
|
|
47
|
+
</View>
|
|
48
|
+
<Switch
|
|
49
|
+
value={value}
|
|
50
|
+
onValueChange={onValueChange}
|
|
51
|
+
disabled={disabled}
|
|
52
|
+
accessibilityLabel={name}
|
|
53
|
+
testID={testID}
|
|
54
|
+
/>
|
|
55
|
+
</View>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export const SwitchFilterRow = memo(SwitchFilterRowComponent);
|
|
60
|
+
SwitchFilterRow.displayName = 'SwitchFilterRow';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { FilterChip } from './FilterChip';
|
|
5
|
+
import type { ToggleChipGroupProps } from './types';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Multi-select filter pills, wrapped: each option is the filter pill (40 tall,
|
|
9
|
+
* full pill, an optional 18px icon before the label), 8 apart in both
|
|
10
|
+
* directions, the selected ones inverted.
|
|
11
|
+
*
|
|
12
|
+
* A `group` named by `accessibilityLabel`; each pill is a toggle `button` with
|
|
13
|
+
* `aria-pressed` on web and `accessibilityState.selected` on native.
|
|
14
|
+
*
|
|
15
|
+
* The next selection is reported in `options` order, so the value is stable
|
|
16
|
+
* whatever order the user tapped in.
|
|
17
|
+
*/
|
|
18
|
+
export function ToggleChipGroup<T extends string = string>({
|
|
19
|
+
options,
|
|
20
|
+
value,
|
|
21
|
+
onValueChange,
|
|
22
|
+
accessibilityLabel,
|
|
23
|
+
disabled = false,
|
|
24
|
+
style,
|
|
25
|
+
testID,
|
|
26
|
+
}: ToggleChipGroupProps<T>) {
|
|
27
|
+
const selected = new Set<T>(value);
|
|
28
|
+
|
|
29
|
+
const toggle = (item: T) => {
|
|
30
|
+
const next = new Set(selected);
|
|
31
|
+
if (next.has(item)) next.delete(item);
|
|
32
|
+
else next.add(item);
|
|
33
|
+
onValueChange(options.map((o) => o.value).filter((v) => next.has(v)));
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<View
|
|
38
|
+
testID={testID}
|
|
39
|
+
role="group"
|
|
40
|
+
accessibilityLabel={accessibilityLabel}
|
|
41
|
+
style={[{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }, style]}
|
|
42
|
+
>
|
|
43
|
+
{options.map((option) => (
|
|
44
|
+
<FilterChip
|
|
45
|
+
key={option.value}
|
|
46
|
+
mode="toggle"
|
|
47
|
+
label={option.label}
|
|
48
|
+
icon={option.icon}
|
|
49
|
+
selected={selected.has(option.value)}
|
|
50
|
+
onPress={() => toggle(option.value)}
|
|
51
|
+
disabled={disabled || option.disabled}
|
|
52
|
+
testID={testID ? `${testID}-${option.value}` : undefined}
|
|
53
|
+
/>
|
|
54
|
+
))}
|
|
55
|
+
</View>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
ToggleChipGroup.displayName = 'ToggleChipGroup';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { AmenityFilter } from './AmenityFilter';
|
|
2
|
+
export { CountFilter } from './CountFilter';
|
|
3
|
+
export { FilterFooter } from './FilterFooter';
|
|
4
|
+
export { FilterSection } from './FilterSection';
|
|
5
|
+
export { FilterTriggerButton } from './FilterTriggerButton';
|
|
6
|
+
export { PriceHistogram } from './PriceHistogram';
|
|
7
|
+
export { PriceRangeFilter } from './PriceRangeFilter';
|
|
8
|
+
export { SegmentedFilter } from './SegmentedFilter';
|
|
9
|
+
export { SwitchFilterRow } from './SwitchFilterRow';
|
|
10
|
+
export { ToggleChipGroup } from './ToggleChipGroup';
|
|
11
|
+
export type {
|
|
12
|
+
AmenityFilterProps,
|
|
13
|
+
CountFilterProps,
|
|
14
|
+
FilterFooterProps,
|
|
15
|
+
FilterIconComponent,
|
|
16
|
+
FilterOption,
|
|
17
|
+
FilterSectionProps,
|
|
18
|
+
FilterTriggerButtonProps,
|
|
19
|
+
PriceHistogramProps,
|
|
20
|
+
PriceRangeFilterProps,
|
|
21
|
+
SegmentedFilterProps,
|
|
22
|
+
SwitchFilterRowProps,
|
|
23
|
+
ToggleChipGroupProps,
|
|
24
|
+
ToggleChipOption,
|
|
25
|
+
} from './types';
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import type { Props as SVGIconProps } from '../icons/shared';
|
|
5
|
+
|
|
6
|
+
/** A Bloom icon COMPONENT (`RiWifiLine`), sized and coloured by the chip that draws it. */
|
|
7
|
+
export type FilterIconComponent = ComponentType<SVGIconProps>;
|
|
8
|
+
|
|
9
|
+
export interface FilterSectionProps {
|
|
10
|
+
/** The section heading ("Price range"), drawn `headline-semibold`. */
|
|
11
|
+
title: ReactNode;
|
|
12
|
+
/** A secondary line under the heading ("Nightly prices before fees"). */
|
|
13
|
+
description?: ReactNode;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
/** Draws a 1px hairline under the section. Default `true`; pass `false` on the last one. */
|
|
16
|
+
divider?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Names the section's `group`. Defaults to a string `title`; give one when the
|
|
19
|
+
* title is a node.
|
|
20
|
+
*/
|
|
21
|
+
accessibilityLabel?: string;
|
|
22
|
+
style?: StyleProp<ViewStyle>;
|
|
23
|
+
testID?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface PriceHistogramProps {
|
|
27
|
+
/** Listing counts per price bucket, lowest price first. The buckets split `min`..`max` evenly. */
|
|
28
|
+
buckets: number[];
|
|
29
|
+
/** The price the first bucket starts at. */
|
|
30
|
+
min: number;
|
|
31
|
+
/** The price the last bucket ends at. */
|
|
32
|
+
max: number;
|
|
33
|
+
/** The selected range; a bucket whose midpoint falls inside it draws in the text colour. */
|
|
34
|
+
value: [number, number];
|
|
35
|
+
/** Height of the tallest bar, in px. Default `64`. */
|
|
36
|
+
height?: number;
|
|
37
|
+
style?: StyleProp<ViewStyle>;
|
|
38
|
+
testID?: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface PriceRangeFilterProps {
|
|
42
|
+
/** Listing counts per price bucket for the histogram. Omit (or pass `[]`) to draw no histogram. */
|
|
43
|
+
buckets?: number[];
|
|
44
|
+
/** Lowest selectable price. */
|
|
45
|
+
min: number;
|
|
46
|
+
/** Highest selectable price. */
|
|
47
|
+
max: number;
|
|
48
|
+
/** The selected `[low, high]` (controlled). */
|
|
49
|
+
value: [number, number];
|
|
50
|
+
/** Called with the next range from the slider, or from a field when it is committed. */
|
|
51
|
+
onValueChange: (value: [number, number]) => void;
|
|
52
|
+
/** Called once when a slider drag ends, or when a field is committed. */
|
|
53
|
+
onValueCommit?: (value: [number, number]) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Formats a price for the two fields at rest, e.g.
|
|
56
|
+
* `(n) => \`$${n}\``. The component computes prices (bucket bounds, clamping,
|
|
57
|
+
* snapping), so they arrive as numbers; the app owns currency and locale here.
|
|
58
|
+
* Default `String(n)`.
|
|
59
|
+
*/
|
|
60
|
+
formatPrice?: (price: number) => string;
|
|
61
|
+
/** Slider granularity. Default `1`. */
|
|
62
|
+
step?: number;
|
|
63
|
+
/** Label of the lower field and the lower thumb's name. Default `"Minimum"`. */
|
|
64
|
+
minLabel?: string;
|
|
65
|
+
/** Label of the upper field and the upper thumb's name. Default `"Maximum"`. */
|
|
66
|
+
maxLabel?: string;
|
|
67
|
+
/** Names the slider. Default `"Price range"`. */
|
|
68
|
+
accessibilityLabel?: string;
|
|
69
|
+
/** Height of the tallest histogram bar. Default `64`. */
|
|
70
|
+
histogramHeight?: number;
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
style?: StyleProp<ViewStyle>;
|
|
73
|
+
/** Derives `-histogram`, `-slider`, `-min` and `-max`. */
|
|
74
|
+
testID?: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface FilterOption<T extends string = string> {
|
|
78
|
+
value: T;
|
|
79
|
+
label: string;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface SegmentedFilterProps<T extends string = string> {
|
|
83
|
+
/** The segments, in order ("Any type", "Room", "Entire home"). */
|
|
84
|
+
options: FilterOption<T>[];
|
|
85
|
+
value: T;
|
|
86
|
+
onValueChange: (value: T) => void;
|
|
87
|
+
/** Names the radio group. Required: segments name themselves, not the choice. */
|
|
88
|
+
accessibilityLabel: string;
|
|
89
|
+
style?: StyleProp<ViewStyle>;
|
|
90
|
+
testID?: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface CountFilterProps {
|
|
94
|
+
/** The row title ("Bedrooms"); also the radio group's name unless one is given. */
|
|
95
|
+
title: ReactNode;
|
|
96
|
+
/** The selected count, or `null` for "Any" (controlled). */
|
|
97
|
+
value: number | null;
|
|
98
|
+
onValueChange: (value: number | null) => void;
|
|
99
|
+
/** The highest count; its chip reads `8+` and means "at least". Default `8`. */
|
|
100
|
+
max?: number;
|
|
101
|
+
/** The lowest count after "Any". Default `1`. */
|
|
102
|
+
min?: number;
|
|
103
|
+
/** Label of the no-preference chip. Default `"Any"`. */
|
|
104
|
+
anyLabel?: string;
|
|
105
|
+
/** Formats a count chip. Default: the number, with `+` on `max`. */
|
|
106
|
+
formatCount?: (count: number, isMax: boolean) => string;
|
|
107
|
+
/** Overrides the group's name; required when `title` is not a string. */
|
|
108
|
+
accessibilityLabel?: string;
|
|
109
|
+
disabled?: boolean;
|
|
110
|
+
style?: StyleProp<ViewStyle>;
|
|
111
|
+
/** Derives `-any` and `-<n>` per chip. */
|
|
112
|
+
testID?: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface ToggleChipOption<T extends string = string> extends FilterOption<T> {
|
|
116
|
+
/** An icon component drawn before the label. */
|
|
117
|
+
icon?: FilterIconComponent;
|
|
118
|
+
disabled?: boolean;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export interface ToggleChipGroupProps<T extends string = string> {
|
|
122
|
+
options: ToggleChipOption<T>[];
|
|
123
|
+
/** The selected values, in any order (controlled). */
|
|
124
|
+
value: T[];
|
|
125
|
+
/** Called with the next selection, kept in `options` order. */
|
|
126
|
+
onValueChange: (value: T[]) => void;
|
|
127
|
+
/** Names the group ("Amenities"). Required: each chip names only itself. */
|
|
128
|
+
accessibilityLabel: string;
|
|
129
|
+
disabled?: boolean;
|
|
130
|
+
style?: StyleProp<ViewStyle>;
|
|
131
|
+
/** Derives `-<value>` per chip. */
|
|
132
|
+
testID?: string;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export interface AmenityFilterProps<T extends string = string> extends ToggleChipGroupProps<T> {
|
|
136
|
+
/** How many options show before "Show more". Default `6`; a list no longer than this has no link. */
|
|
137
|
+
collapsedCount?: number;
|
|
138
|
+
/** Default `"Show more"`. */
|
|
139
|
+
showMoreLabel?: string;
|
|
140
|
+
/** Default `"Show less"`. */
|
|
141
|
+
showLessLabel?: string;
|
|
142
|
+
/** Start expanded. Uncontrolled after mount. Default `false`. */
|
|
143
|
+
defaultExpanded?: boolean;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export interface SwitchFilterRowProps {
|
|
147
|
+
title: ReactNode;
|
|
148
|
+
description?: ReactNode;
|
|
149
|
+
value: boolean;
|
|
150
|
+
onValueChange: (value: boolean) => void;
|
|
151
|
+
disabled?: boolean;
|
|
152
|
+
/** Overrides the switch's name; defaults to a string `title`. */
|
|
153
|
+
accessibilityLabel?: string;
|
|
154
|
+
style?: StyleProp<ViewStyle>;
|
|
155
|
+
testID?: string;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface FilterFooterProps {
|
|
159
|
+
/** The apply button's label, pre-formatted by the app ("Show 1,000+ places"). */
|
|
160
|
+
resultsLabel: string;
|
|
161
|
+
onApply: () => void;
|
|
162
|
+
onClear: () => void;
|
|
163
|
+
/** Default `"Clear all"`. */
|
|
164
|
+
clearLabel?: string;
|
|
165
|
+
/** Disables "Clear all" — nothing is applied. */
|
|
166
|
+
clearDisabled?: boolean;
|
|
167
|
+
/** The result count is being fetched: the apply button shows `Button`'s loading state. */
|
|
168
|
+
loading?: boolean;
|
|
169
|
+
/** Disables the apply button. */
|
|
170
|
+
applyDisabled?: boolean;
|
|
171
|
+
style?: StyleProp<ViewStyle>;
|
|
172
|
+
/** Derives `-clear` and `-apply`. */
|
|
173
|
+
testID?: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface FilterTriggerButtonProps {
|
|
177
|
+
/** How many filters are applied; a badge shows while it is above `0`. */
|
|
178
|
+
count?: number;
|
|
179
|
+
onPress?: () => void;
|
|
180
|
+
/** Default `"Filters"`. */
|
|
181
|
+
label?: string;
|
|
182
|
+
/**
|
|
183
|
+
* The button's name. Default: `label`, plus `", 3 applied"` while `count > 0`
|
|
184
|
+
* (the badge is a drawn number, so the name has to say it).
|
|
185
|
+
*/
|
|
186
|
+
accessibilityLabel?: string;
|
|
187
|
+
/** `Button` size. Default `medium`. */
|
|
188
|
+
size?: 'small' | 'medium' | 'large';
|
|
189
|
+
disabled?: boolean;
|
|
190
|
+
style?: StyleProp<ViewStyle>;
|
|
191
|
+
testID?: string;
|
|
192
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { Chip } from '../chip';
|
|
5
|
+
import { DEFAULT_DATE_FLEXIBILITY_OPTIONS } from './constants';
|
|
6
|
+
import type { DateFlexibilityChipsProps } from './types';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A single-select row of Bloom `Chip`s (`large`, `outlined`; the selected one
|
|
10
|
+
* takes the brand tone) that says how flexible the chosen dates are. Put it
|
|
11
|
+
* under a `RangeCalendar` or `DateRangePicker` — this part does not draw a
|
|
12
|
+
* calendar.
|
|
13
|
+
*/
|
|
14
|
+
function DateFlexibilityChipsComponent({
|
|
15
|
+
value,
|
|
16
|
+
onChange,
|
|
17
|
+
options = DEFAULT_DATE_FLEXIBILITY_OPTIONS,
|
|
18
|
+
accessibilityLabel = 'Date flexibility',
|
|
19
|
+
style,
|
|
20
|
+
testID,
|
|
21
|
+
}: DateFlexibilityChipsProps) {
|
|
22
|
+
return (
|
|
23
|
+
<View
|
|
24
|
+
role="group"
|
|
25
|
+
accessibilityLabel={accessibilityLabel}
|
|
26
|
+
testID={testID}
|
|
27
|
+
style={[{ flexDirection: 'row', flexWrap: 'wrap', gap: 8 }, style]}
|
|
28
|
+
>
|
|
29
|
+
{options.map((option) => (
|
|
30
|
+
<Chip
|
|
31
|
+
key={option.value}
|
|
32
|
+
size="large"
|
|
33
|
+
variant="outlined"
|
|
34
|
+
selected={option.value === value}
|
|
35
|
+
onPress={() => onChange(option.value)}
|
|
36
|
+
testID={testID ? `${testID}-${option.value}` : undefined}
|
|
37
|
+
// `paddingHorizontal`, the spelling Chip's base uses — a longhand would lose on web.
|
|
38
|
+
style={{ paddingHorizontal: 12, height: 32 }}
|
|
39
|
+
>
|
|
40
|
+
{option.label}
|
|
41
|
+
</Chip>
|
|
42
|
+
))}
|
|
43
|
+
</View>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export const DateFlexibilityChips = memo(DateFlexibilityChipsComponent);
|
|
48
|
+
DateFlexibilityChips.displayName = 'DateFlexibilityChips';
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import React, { memo, useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
|
+
import { Platform, Pressable, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { resolveButtonRamps } from '../button/shared';
|
|
5
|
+
import { webDataSet } from '../checkbox/shared';
|
|
6
|
+
import { RiMapPinLine } from '../icons/remix/RiMapPinLine';
|
|
7
|
+
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
8
|
+
import type { WebCssStyle } from '../styles/web-view-style';
|
|
9
|
+
import { useTheme } from '../theme/use-theme';
|
|
10
|
+
import { Text } from '../typography';
|
|
11
|
+
import { STAY_SEARCH_TILE_RADIUS, STAY_SEARCH_TILE_SIZE } from './constants';
|
|
12
|
+
import { useStaySearchPalette } from './palette';
|
|
13
|
+
import type { DestinationSuggestionsProps } from './types';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Destination rows for a `StaySearchPanel`: a 48px rounded icon tile (radius
|
|
17
|
+
* 12, neutral fill), the title (body-medium) over an optional description
|
|
18
|
+
* (body-2-regular, secondary). Hover and the arrow keys move one highlight;
|
|
19
|
+
* a press or Enter selects.
|
|
20
|
+
*
|
|
21
|
+
* A `listbox` of `option`s. The list takes focus (web) and owns the arrow
|
|
22
|
+
* keys; the rows stay out of the tab order.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
const IS_WEB = Platform.OS === 'web';
|
|
26
|
+
const ICON_SIZE = 22;
|
|
27
|
+
|
|
28
|
+
const STYLE_ID = 'bloom-destination-suggestions-web-css';
|
|
29
|
+
const CSS = `
|
|
30
|
+
[data-bloom-destination-list] {
|
|
31
|
+
outline: none;
|
|
32
|
+
border-radius: 20px;
|
|
33
|
+
}
|
|
34
|
+
[data-bloom-destination-list]:focus-visible {
|
|
35
|
+
box-shadow: inset 0 0 0 2px var(--bloom-destination-ring, currentColor);
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
function DestinationSuggestionsComponent({
|
|
40
|
+
items,
|
|
41
|
+
onSelect,
|
|
42
|
+
heading,
|
|
43
|
+
highlightedIndex,
|
|
44
|
+
onHighlightedIndexChange,
|
|
45
|
+
accessibilityLabel,
|
|
46
|
+
style,
|
|
47
|
+
testID,
|
|
48
|
+
}: DestinationSuggestionsProps) {
|
|
49
|
+
const theme = useTheme();
|
|
50
|
+
const palette = useStaySearchPalette();
|
|
51
|
+
const { accent } = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
52
|
+
const [internal, setInternal] = useState(-1);
|
|
53
|
+
const current = highlightedIndex ?? internal;
|
|
54
|
+
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
adoptStyleSheet(STYLE_ID, CSS);
|
|
57
|
+
}, []);
|
|
58
|
+
|
|
59
|
+
const highlight = useCallback(
|
|
60
|
+
(index: number) => {
|
|
61
|
+
if (highlightedIndex === undefined) setInternal(index);
|
|
62
|
+
onHighlightedIndexChange?.(index);
|
|
63
|
+
},
|
|
64
|
+
[highlightedIndex, onHighlightedIndexChange],
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
const onKeyDown = (e: { key: string; preventDefault: () => void }) => {
|
|
68
|
+
if (items.length === 0) return;
|
|
69
|
+
if (e.key === 'ArrowDown') {
|
|
70
|
+
e.preventDefault();
|
|
71
|
+
highlight(current < 0 ? 0 : (current + 1) % items.length);
|
|
72
|
+
} else if (e.key === 'ArrowUp') {
|
|
73
|
+
e.preventDefault();
|
|
74
|
+
highlight(current <= 0 ? items.length - 1 : current - 1);
|
|
75
|
+
} else if (e.key === 'Enter' && current >= 0 && current < items.length) {
|
|
76
|
+
e.preventDefault();
|
|
77
|
+
onSelect(items[current]!);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// React Native's `Role` has no `listbox`, and `onKeyDown` is a DOM handler;
|
|
82
|
+
// react-native-web passes both through, so they travel as web-only props.
|
|
83
|
+
const webListProps: Record<string, unknown> = IS_WEB ? { role: 'listbox', tabIndex: 0, onKeyDown } : {};
|
|
84
|
+
const listStyle: WebCssStyle = { gap: 2, '--bloom-destination-ring': accent[500] };
|
|
85
|
+
const listName = accessibilityLabel ?? heading ?? 'Destinations';
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
<View style={style}>
|
|
89
|
+
{heading ? (
|
|
90
|
+
<Text
|
|
91
|
+
variant="caption-1-semibold"
|
|
92
|
+
style={{ color: palette.textSecondary, paddingLeft: 12, paddingTop: 4, paddingBottom: 8 }}
|
|
93
|
+
>
|
|
94
|
+
{heading}
|
|
95
|
+
</Text>
|
|
96
|
+
) : null}
|
|
97
|
+
<View
|
|
98
|
+
accessibilityLabel={listName}
|
|
99
|
+
{...webListProps}
|
|
100
|
+
{...webDataSet({ bloomDestinationList: '' })}
|
|
101
|
+
testID={testID}
|
|
102
|
+
style={listStyle}
|
|
103
|
+
>
|
|
104
|
+
{items.map((item, index) => {
|
|
105
|
+
const Icon = item.icon ?? RiMapPinLine;
|
|
106
|
+
const selected = index === current;
|
|
107
|
+
return (
|
|
108
|
+
<Pressable
|
|
109
|
+
key={item.id}
|
|
110
|
+
role="option"
|
|
111
|
+
accessibilityLabel={item.description ? `${item.title}, ${item.description}` : item.title}
|
|
112
|
+
aria-selected={selected}
|
|
113
|
+
accessibilityState={{ selected }}
|
|
114
|
+
focusable={false}
|
|
115
|
+
onPress={() => onSelect(item)}
|
|
116
|
+
onHoverIn={() => highlight(index)}
|
|
117
|
+
testID={testID ? `${testID}-${index}` : undefined}
|
|
118
|
+
style={{
|
|
119
|
+
flexDirection: 'row',
|
|
120
|
+
alignItems: 'center',
|
|
121
|
+
gap: 16,
|
|
122
|
+
paddingTop: 8,
|
|
123
|
+
paddingBottom: 8,
|
|
124
|
+
paddingLeft: 12,
|
|
125
|
+
paddingRight: 12,
|
|
126
|
+
borderRadius: 16,
|
|
127
|
+
backgroundColor: selected ? palette.rowHighlight : 'transparent',
|
|
128
|
+
}}
|
|
129
|
+
>
|
|
130
|
+
<View
|
|
131
|
+
style={{
|
|
132
|
+
width: STAY_SEARCH_TILE_SIZE,
|
|
133
|
+
height: STAY_SEARCH_TILE_SIZE,
|
|
134
|
+
borderRadius: STAY_SEARCH_TILE_RADIUS,
|
|
135
|
+
backgroundColor: palette.tile,
|
|
136
|
+
alignItems: 'center',
|
|
137
|
+
justifyContent: 'center',
|
|
138
|
+
}}
|
|
139
|
+
>
|
|
140
|
+
<Icon width={ICON_SIZE} height={ICON_SIZE} fill={palette.text} />
|
|
141
|
+
</View>
|
|
142
|
+
<View style={{ flex: 1, minWidth: 0, gap: 2 }}>
|
|
143
|
+
<Text variant="body-medium" numberOfLines={1} style={{ color: palette.text }}>
|
|
144
|
+
{item.title}
|
|
145
|
+
</Text>
|
|
146
|
+
{item.description ? (
|
|
147
|
+
<Text variant="body-2-regular" numberOfLines={1} style={{ color: palette.textSecondary }}>
|
|
148
|
+
{item.description}
|
|
149
|
+
</Text>
|
|
150
|
+
) : null}
|
|
151
|
+
</View>
|
|
152
|
+
</Pressable>
|
|
153
|
+
);
|
|
154
|
+
})}
|
|
155
|
+
</View>
|
|
156
|
+
</View>
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export const DestinationSuggestions = memo(DestinationSuggestionsComponent);
|
|
161
|
+
DestinationSuggestions.displayName = 'DestinationSuggestions';
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { Button } from '../button';
|
|
5
|
+
import { resolveButtonRamps } from '../button/shared';
|
|
6
|
+
import { StepperRow } from '../stepper';
|
|
7
|
+
import { useTheme } from '../theme/use-theme';
|
|
8
|
+
import { Text } from '../typography';
|
|
9
|
+
import { DEFAULT_GUEST_DESCRIPTIONS, DEFAULT_GUEST_LABELS, GUEST_KINDS } from './constants';
|
|
10
|
+
import { useGuestPickerClose } from './context';
|
|
11
|
+
import { applyGuestCount, minimumAdults } from './guests';
|
|
12
|
+
import type { GuestKind, GuestPickerProps } from './types';
|
|
13
|
+
|
|
14
|
+
/** The kinds `maxGuests` counts; infants and pets ride free. */
|
|
15
|
+
const COUNTED: readonly GuestKind[] = ['adults', 'children'];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Adults / children / infants / pets as `StepperRow`s with hairlines between
|
|
19
|
+
* them — the one guests picker, used by the search bar's "Who" panel and the
|
|
20
|
+
* booking card's guests popover alike. Then an optional note and "Close".
|
|
21
|
+
*
|
|
22
|
+
* Two rules:
|
|
23
|
+
* - while any child, infant or pet is counted, adults cannot go below 1 (the
|
|
24
|
+
* adults `−` disables there), and adding one of them with no adults sets
|
|
25
|
+
* adults to 1 — see `applyGuestCount`;
|
|
26
|
+
* - `maxGuests` caps adults + children: each of their `+` buttons disables at
|
|
27
|
+
* the cap by lowering that row's `max` to what is left, so the stepper's own
|
|
28
|
+
* clamping enforces it.
|
|
29
|
+
*/
|
|
30
|
+
function GuestPickerComponent({
|
|
31
|
+
value,
|
|
32
|
+
onChange,
|
|
33
|
+
max,
|
|
34
|
+
maxGuests,
|
|
35
|
+
kinds = GUEST_KINDS,
|
|
36
|
+
labels,
|
|
37
|
+
descriptions,
|
|
38
|
+
note,
|
|
39
|
+
onClose,
|
|
40
|
+
closeLabel = 'Close',
|
|
41
|
+
size = 'medium',
|
|
42
|
+
style,
|
|
43
|
+
testID,
|
|
44
|
+
}: GuestPickerProps) {
|
|
45
|
+
const theme = useTheme();
|
|
46
|
+
const { neutral } = resolveButtonRamps(theme);
|
|
47
|
+
const contextClose = useGuestPickerClose();
|
|
48
|
+
const close = onClose ?? contextClose;
|
|
49
|
+
const counted = COUNTED.reduce((sum, kind) => sum + value[kind], 0);
|
|
50
|
+
|
|
51
|
+
const maxFor = (kind: GuestKind) => {
|
|
52
|
+
let cap = typeof max === 'number' ? max : max?.[kind];
|
|
53
|
+
if (maxGuests != null && COUNTED.includes(kind)) {
|
|
54
|
+
const room = value[kind] + Math.max(0, maxGuests - counted);
|
|
55
|
+
cap = cap == null ? room : Math.min(cap, room);
|
|
56
|
+
}
|
|
57
|
+
return cap;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<View style={style} testID={testID}>
|
|
62
|
+
{kinds.map((kind, index) => {
|
|
63
|
+
const description =
|
|
64
|
+
descriptions && kind in descriptions ? descriptions[kind] : DEFAULT_GUEST_DESCRIPTIONS[kind];
|
|
65
|
+
return (
|
|
66
|
+
<StepperRow
|
|
67
|
+
key={kind}
|
|
68
|
+
title={labels?.[kind] ?? DEFAULT_GUEST_LABELS[kind]}
|
|
69
|
+
description={description ?? undefined}
|
|
70
|
+
value={value[kind]}
|
|
71
|
+
min={kind === 'adults' ? minimumAdults(value) : 0}
|
|
72
|
+
max={maxFor(kind)}
|
|
73
|
+
size={size}
|
|
74
|
+
onValueChange={(n) => onChange(applyGuestCount(value, kind, n))}
|
|
75
|
+
divider={index < kinds.length - 1}
|
|
76
|
+
testID={testID ? `${testID}-${kind}` : undefined}
|
|
77
|
+
/>
|
|
78
|
+
);
|
|
79
|
+
})}
|
|
80
|
+
{note != null ? (
|
|
81
|
+
typeof note === 'string' ? (
|
|
82
|
+
<Text variant="body-2-regular" style={{ color: neutral[500], paddingTop: 8 }}>
|
|
83
|
+
{note}
|
|
84
|
+
</Text>
|
|
85
|
+
) : (
|
|
86
|
+
note
|
|
87
|
+
)
|
|
88
|
+
) : null}
|
|
89
|
+
{close ? (
|
|
90
|
+
<View style={{ alignItems: 'flex-end', paddingTop: 12 }}>
|
|
91
|
+
<Button variant="link" size="small" onPress={close} testID={testID ? `${testID}-close` : undefined}>
|
|
92
|
+
{closeLabel}
|
|
93
|
+
</Button>
|
|
94
|
+
</View>
|
|
95
|
+
) : null}
|
|
96
|
+
</View>
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export const GuestPicker = memo(GuestPickerComponent);
|
|
101
|
+
GuestPicker.displayName = 'GuestPicker';
|