@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,349 @@
|
|
|
1
|
+
import React, { Fragment, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
+
import { Platform, Pressable, TextInput, View, type TextStyle, type ViewStyle } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { Button } from '../button';
|
|
5
|
+
import { resolveButtonRamps } from '../button/shared';
|
|
6
|
+
import { webDataSet } from '../checkbox/shared';
|
|
7
|
+
import { RiSearchLine } from '../icons/remix/RiSearchLine';
|
|
8
|
+
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
9
|
+
import { borderRadius } from '../styles/tokens';
|
|
10
|
+
import type { WebCssStyle } from '../styles/web-view-style';
|
|
11
|
+
import { Z_INDEX } from '../styles/z-index';
|
|
12
|
+
import { useTheme } from '../theme/use-theme';
|
|
13
|
+
import { SANS_FONT_FAMILY } from '../text-field/shared';
|
|
14
|
+
import { Text } from '../typography';
|
|
15
|
+
import { TYPE_SCALE } from '../typography/scale';
|
|
16
|
+
import {
|
|
17
|
+
DEFAULT_STAY_SEARCH_BAR_LABELS,
|
|
18
|
+
STAY_SEARCH_BAR_HEIGHT,
|
|
19
|
+
STAY_SEARCH_BUTTON_INSET,
|
|
20
|
+
STAY_SEARCH_PANEL_OFFSET,
|
|
21
|
+
STAY_SEARCH_SEPARATOR_HEIGHT,
|
|
22
|
+
} from './constants';
|
|
23
|
+
import { useStaySearchPalette } from './palette';
|
|
24
|
+
import type { StaySearchBarProps, StaySearchSegment } from './types';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Bloom's wide stay search: one full pill split into segments.
|
|
28
|
+
*
|
|
29
|
+
* At rest the bar is the card surface with a hairline and a soft shadow;
|
|
30
|
+
* hovering a segment fills it (a colour change only). While a segment is open
|
|
31
|
+
* the bar behind turns neutral, the open segment becomes a raised card-coloured
|
|
32
|
+
* pill, and the round search button widens to show its label. The hairline
|
|
33
|
+
* separators between segments hide next to a hovered or open segment, so a
|
|
34
|
+
* filled pill never has a line poking out of its edge.
|
|
35
|
+
*
|
|
36
|
+
* Fully controlled: the app owns `activeSegment` and every value (dates and
|
|
37
|
+
* guests arrive pre-formatted). `panel` drops under the bar while a segment is
|
|
38
|
+
* open, aligned under it.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
const IS_WEB = Platform.OS === 'web';
|
|
42
|
+
|
|
43
|
+
/** React Native's `Role` has no `search`; react-native-web passes it through. */
|
|
44
|
+
const WEB_SEARCH_ROLE: Record<string, unknown> = IS_WEB ? { role: 'search' } : {};
|
|
45
|
+
|
|
46
|
+
const STYLE_ID = 'bloom-stay-search-bar-web-css';
|
|
47
|
+
const STAY_SEARCH_BAR_CSS = `
|
|
48
|
+
[data-bloom-stay-segment] {
|
|
49
|
+
transition: background-color 150ms ease, box-shadow 150ms ease;
|
|
50
|
+
}
|
|
51
|
+
[data-bloom-stay-separator] {
|
|
52
|
+
transition: background-color 150ms ease;
|
|
53
|
+
}
|
|
54
|
+
[data-bloom-stay-segment-hit] {
|
|
55
|
+
outline: none;
|
|
56
|
+
}
|
|
57
|
+
[data-bloom-stay-segment-hit]:focus-visible {
|
|
58
|
+
box-shadow: inset 0 0 0 2px var(--bloom-stay-search-ring, currentColor);
|
|
59
|
+
}
|
|
60
|
+
@media (prefers-reduced-motion: reduce) {
|
|
61
|
+
[data-bloom-stay-segment], [data-bloom-stay-separator] {
|
|
62
|
+
transition: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
|
|
67
|
+
/** Relative widths; the guests segment also holds the search button. */
|
|
68
|
+
const SEGMENT_FLEX: Record<StaySearchSegment, number> = {
|
|
69
|
+
destination: 1.4,
|
|
70
|
+
checkIn: 1,
|
|
71
|
+
checkOut: 1,
|
|
72
|
+
dates: 1.4,
|
|
73
|
+
guests: 1.5,
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** body-regular in Bloom's sans face, no box of its own, so it sits exactly where the value text did. */
|
|
77
|
+
const INPUT_TYPE = TYPE_SCALE['body-regular'];
|
|
78
|
+
const inputStyle: TextStyle = {
|
|
79
|
+
fontFamily: SANS_FONT_FAMILY,
|
|
80
|
+
fontSize: INPUT_TYPE.fontSize,
|
|
81
|
+
lineHeight: INPUT_TYPE.lineHeight,
|
|
82
|
+
fontWeight: INPUT_TYPE.fontWeight,
|
|
83
|
+
height: INPUT_TYPE.lineHeight,
|
|
84
|
+
paddingTop: 0,
|
|
85
|
+
paddingBottom: 0,
|
|
86
|
+
paddingLeft: 0,
|
|
87
|
+
paddingRight: 0,
|
|
88
|
+
borderWidth: 0,
|
|
89
|
+
minWidth: 0,
|
|
90
|
+
// The segment's raised pill is the focus affordance; the browser's input
|
|
91
|
+
// outline would draw a rectangle inside it. Web-only keys RN does not type.
|
|
92
|
+
...(IS_WEB ? ({ outlineWidth: 0, outlineStyle: 'none' } as unknown as TextStyle) : {}),
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const PANEL_ALIGN: Record<StaySearchSegment, ViewStyle['justifyContent']> = {
|
|
96
|
+
destination: 'flex-start',
|
|
97
|
+
checkIn: 'center',
|
|
98
|
+
checkOut: 'center',
|
|
99
|
+
dates: 'center',
|
|
100
|
+
guests: 'flex-end',
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
function StaySearchBarComponent({
|
|
104
|
+
activeSegment,
|
|
105
|
+
onActiveSegmentChange,
|
|
106
|
+
destination,
|
|
107
|
+
dates,
|
|
108
|
+
guests,
|
|
109
|
+
datesMode = 'split',
|
|
110
|
+
labels: labelOverrides,
|
|
111
|
+
onSearch,
|
|
112
|
+
destinationQuery,
|
|
113
|
+
onDestinationQueryChange,
|
|
114
|
+
panel,
|
|
115
|
+
dismissible = true,
|
|
116
|
+
style,
|
|
117
|
+
testID,
|
|
118
|
+
}: StaySearchBarProps) {
|
|
119
|
+
const theme = useTheme();
|
|
120
|
+
const palette = useStaySearchPalette();
|
|
121
|
+
const { accent } = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
122
|
+
const labels = useMemo(
|
|
123
|
+
() => ({ ...DEFAULT_STAY_SEARCH_BAR_LABELS, ...labelOverrides }),
|
|
124
|
+
[labelOverrides],
|
|
125
|
+
);
|
|
126
|
+
const [hovered, setHovered] = useState<StaySearchSegment | null>(null);
|
|
127
|
+
const rootRef = useRef<View>(null);
|
|
128
|
+
const open = activeSegment !== null;
|
|
129
|
+
|
|
130
|
+
useEffect(() => {
|
|
131
|
+
adoptStyleSheet(STYLE_ID, STAY_SEARCH_BAR_CSS);
|
|
132
|
+
}, []);
|
|
133
|
+
|
|
134
|
+
// Dismissal on web: Escape, or a press that lands outside the bar AND its
|
|
135
|
+
// panel (the panel is a descendant of the root, so one `contains` covers both).
|
|
136
|
+
useEffect(() => {
|
|
137
|
+
if (!open || !dismissible || !IS_WEB || typeof document === 'undefined') return;
|
|
138
|
+
const onPointerDown = (event: PointerEvent) => {
|
|
139
|
+
const node = rootRef.current as unknown as Node | null;
|
|
140
|
+
const target = event.target as Node | null;
|
|
141
|
+
if (node && target && node.contains(target)) return;
|
|
142
|
+
onActiveSegmentChange(null);
|
|
143
|
+
};
|
|
144
|
+
const onKeyDown = (event: KeyboardEvent) => {
|
|
145
|
+
if (event.key === 'Escape') onActiveSegmentChange(null);
|
|
146
|
+
};
|
|
147
|
+
document.addEventListener('pointerdown', onPointerDown, true);
|
|
148
|
+
document.addEventListener('keydown', onKeyDown);
|
|
149
|
+
return () => {
|
|
150
|
+
document.removeEventListener('pointerdown', onPointerDown, true);
|
|
151
|
+
document.removeEventListener('keydown', onKeyDown);
|
|
152
|
+
};
|
|
153
|
+
}, [open, dismissible, onActiveSegmentChange]);
|
|
154
|
+
|
|
155
|
+
const segments: readonly StaySearchSegment[] =
|
|
156
|
+
datesMode === 'single'
|
|
157
|
+
? ['destination', 'dates', 'guests']
|
|
158
|
+
: ['destination', 'checkIn', 'checkOut', 'guests'];
|
|
159
|
+
|
|
160
|
+
const datesSummary =
|
|
161
|
+
dates?.summary ??
|
|
162
|
+
(dates?.checkIn && dates?.checkOut
|
|
163
|
+
? `${dates.checkIn} – ${dates.checkOut}`
|
|
164
|
+
: dates?.checkIn ?? dates?.checkOut);
|
|
165
|
+
|
|
166
|
+
const content: Record<StaySearchSegment, { label: string; value?: string; placeholder: string }> = {
|
|
167
|
+
destination: { label: labels.where, value: destination, placeholder: labels.destinationPlaceholder },
|
|
168
|
+
checkIn: { label: labels.checkIn, value: dates?.checkIn, placeholder: labels.datesPlaceholder },
|
|
169
|
+
checkOut: { label: labels.checkOut, value: dates?.checkOut, placeholder: labels.datesPlaceholder },
|
|
170
|
+
dates: { label: labels.when, value: datesSummary, placeholder: labels.datesPlaceholder },
|
|
171
|
+
guests: { label: labels.who, value: guests, placeholder: labels.guestsPlaceholder },
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
const lit = useCallback(
|
|
175
|
+
(segment: StaySearchSegment | undefined) =>
|
|
176
|
+
segment !== undefined && (segment === activeSegment || segment === hovered),
|
|
177
|
+
[activeSegment, hovered],
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
const barStyle: WebCssStyle = {
|
|
181
|
+
height: STAY_SEARCH_BAR_HEIGHT,
|
|
182
|
+
borderRadius: borderRadius.full,
|
|
183
|
+
borderWidth: 1,
|
|
184
|
+
borderColor: palette.border,
|
|
185
|
+
backgroundColor: open ? palette.barSurfaceOpen : palette.barSurface,
|
|
186
|
+
boxShadow: palette.barShadow,
|
|
187
|
+
flexDirection: 'row',
|
|
188
|
+
alignItems: 'stretch',
|
|
189
|
+
'--bloom-stay-search-ring': accent[500],
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
return (
|
|
193
|
+
<View
|
|
194
|
+
ref={rootRef}
|
|
195
|
+
testID={testID}
|
|
196
|
+
// react-native-web gives every View `z-index: 0`, so the root is its own
|
|
197
|
+
// stacking context: the panel's z-index only competes INSIDE it. Lift the
|
|
198
|
+
// whole root while open, or content after the bar paints over the panel.
|
|
199
|
+
style={[{ position: 'relative', zIndex: open ? Z_INDEX.dropdown : Z_INDEX.base }, style]}
|
|
200
|
+
>
|
|
201
|
+
<View
|
|
202
|
+
{...WEB_SEARCH_ROLE}
|
|
203
|
+
style={barStyle}
|
|
204
|
+
>
|
|
205
|
+
{segments.map((segment, index) => {
|
|
206
|
+
const active = segment === activeSegment;
|
|
207
|
+
const isHovered = segment === hovered;
|
|
208
|
+
const { label, value, placeholder } = content[segment];
|
|
209
|
+
const showInput = active && segment === 'destination' && onDestinationQueryChange != null;
|
|
210
|
+
const background = active
|
|
211
|
+
? palette.segmentActive
|
|
212
|
+
: isHovered
|
|
213
|
+
? open
|
|
214
|
+
? palette.segmentHoverOpen
|
|
215
|
+
: palette.segmentHover
|
|
216
|
+
: 'transparent';
|
|
217
|
+
const segmentTestID = testID ? `${testID}-${segment}` : undefined;
|
|
218
|
+
|
|
219
|
+
const text = (
|
|
220
|
+
<>
|
|
221
|
+
<Text variant="caption-1-semibold" numberOfLines={1} style={{ color: palette.text }}>
|
|
222
|
+
{label}
|
|
223
|
+
</Text>
|
|
224
|
+
{showInput ? (
|
|
225
|
+
<TextInput
|
|
226
|
+
autoFocus
|
|
227
|
+
value={destinationQuery ?? ''}
|
|
228
|
+
onChangeText={onDestinationQueryChange}
|
|
229
|
+
placeholder={value || placeholder}
|
|
230
|
+
placeholderTextColor={palette.placeholder}
|
|
231
|
+
accessibilityLabel={label}
|
|
232
|
+
testID={testID ? `${testID}-destination-input` : undefined}
|
|
233
|
+
style={[inputStyle, { color: palette.text }]}
|
|
234
|
+
/>
|
|
235
|
+
) : (
|
|
236
|
+
<Text
|
|
237
|
+
variant="body-regular"
|
|
238
|
+
numberOfLines={1}
|
|
239
|
+
style={{ color: value ? palette.text : palette.placeholder }}
|
|
240
|
+
>
|
|
241
|
+
{value || placeholder}
|
|
242
|
+
</Text>
|
|
243
|
+
)}
|
|
244
|
+
</>
|
|
245
|
+
);
|
|
246
|
+
|
|
247
|
+
const hitStyle: ViewStyle = {
|
|
248
|
+
flex: 1,
|
|
249
|
+
minWidth: 0,
|
|
250
|
+
alignSelf: 'stretch',
|
|
251
|
+
justifyContent: 'center',
|
|
252
|
+
paddingLeft: index === 0 ? 32 : 24,
|
|
253
|
+
paddingRight: segment === 'guests' ? 8 : 16,
|
|
254
|
+
borderRadius: borderRadius.full,
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
return (
|
|
258
|
+
<Fragment key={segment}>
|
|
259
|
+
{index > 0 ? (
|
|
260
|
+
<View style={{ width: 0, alignSelf: 'center', zIndex: Z_INDEX.raised }}>
|
|
261
|
+
<View
|
|
262
|
+
{...webDataSet({ bloomStaySeparator: '' })}
|
|
263
|
+
testID={testID ? `${testID}-separator-${index}` : undefined}
|
|
264
|
+
style={{
|
|
265
|
+
position: 'absolute',
|
|
266
|
+
left: -0.5,
|
|
267
|
+
top: -STAY_SEARCH_SEPARATOR_HEIGHT / 2,
|
|
268
|
+
width: 1,
|
|
269
|
+
height: STAY_SEARCH_SEPARATOR_HEIGHT,
|
|
270
|
+
backgroundColor:
|
|
271
|
+
lit(segments[index - 1]) || lit(segment) ? 'transparent' : palette.separator,
|
|
272
|
+
}}
|
|
273
|
+
/>
|
|
274
|
+
</View>
|
|
275
|
+
) : null}
|
|
276
|
+
<View
|
|
277
|
+
{...webDataSet({ bloomStaySegment: active ? 'active' : '' })}
|
|
278
|
+
style={{
|
|
279
|
+
flex: SEGMENT_FLEX[segment],
|
|
280
|
+
minWidth: 0,
|
|
281
|
+
flexDirection: 'row',
|
|
282
|
+
alignItems: 'center',
|
|
283
|
+
borderRadius: borderRadius.full,
|
|
284
|
+
backgroundColor: background,
|
|
285
|
+
boxShadow: active ? palette.segmentActiveShadow : undefined,
|
|
286
|
+
}}
|
|
287
|
+
>
|
|
288
|
+
{showInput ? (
|
|
289
|
+
<View testID={segmentTestID} style={hitStyle}>
|
|
290
|
+
{text}
|
|
291
|
+
</View>
|
|
292
|
+
) : (
|
|
293
|
+
<Pressable
|
|
294
|
+
{...webDataSet({ bloomStaySegmentHit: '' })}
|
|
295
|
+
testID={segmentTestID}
|
|
296
|
+
onPress={() => onActiveSegmentChange(segment)}
|
|
297
|
+
onHoverIn={() => setHovered(segment)}
|
|
298
|
+
onHoverOut={() => setHovered((h) => (h === segment ? null : h))}
|
|
299
|
+
accessibilityRole="button"
|
|
300
|
+
accessibilityLabel={`${label}, ${value || placeholder}`}
|
|
301
|
+
accessibilityState={{ expanded: active }}
|
|
302
|
+
aria-expanded={active}
|
|
303
|
+
style={hitStyle}
|
|
304
|
+
>
|
|
305
|
+
{text}
|
|
306
|
+
</Pressable>
|
|
307
|
+
)}
|
|
308
|
+
{segment === 'guests' ? (
|
|
309
|
+
<Button
|
|
310
|
+
variant="primary"
|
|
311
|
+
size="large"
|
|
312
|
+
icon={RiSearchLine}
|
|
313
|
+
iconOnly={!open}
|
|
314
|
+
onPress={onSearch}
|
|
315
|
+
accessibilityLabel={labels.search}
|
|
316
|
+
testID={testID ? `${testID}-search` : undefined}
|
|
317
|
+
style={{ marginRight: STAY_SEARCH_BUTTON_INSET - 1, flexShrink: 0 }}
|
|
318
|
+
>
|
|
319
|
+
{open ? labels.search : undefined}
|
|
320
|
+
</Button>
|
|
321
|
+
) : null}
|
|
322
|
+
</View>
|
|
323
|
+
</Fragment>
|
|
324
|
+
);
|
|
325
|
+
})}
|
|
326
|
+
</View>
|
|
327
|
+
{open && panel != null ? (
|
|
328
|
+
<View
|
|
329
|
+
pointerEvents="box-none"
|
|
330
|
+
testID={testID ? `${testID}-panel` : undefined}
|
|
331
|
+
style={{
|
|
332
|
+
position: 'absolute',
|
|
333
|
+
top: STAY_SEARCH_BAR_HEIGHT + STAY_SEARCH_PANEL_OFFSET,
|
|
334
|
+
left: 0,
|
|
335
|
+
right: 0,
|
|
336
|
+
flexDirection: 'row',
|
|
337
|
+
justifyContent: PANEL_ALIGN[activeSegment],
|
|
338
|
+
zIndex: Z_INDEX.dropdown,
|
|
339
|
+
}}
|
|
340
|
+
>
|
|
341
|
+
{panel}
|
|
342
|
+
</View>
|
|
343
|
+
) : null}
|
|
344
|
+
</View>
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export const StaySearchBar = memo(StaySearchBarComponent);
|
|
349
|
+
StaySearchBar.displayName = 'StaySearchBar';
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import React, { memo, useEffect, useMemo } from 'react';
|
|
2
|
+
import { Pressable, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { Button } from '../button';
|
|
5
|
+
import { resolveButtonRamps } from '../button/shared';
|
|
6
|
+
import { webDataSet } from '../checkbox/shared';
|
|
7
|
+
import { useInteractionState } from '../hooks/use-interaction-state';
|
|
8
|
+
import { RiEqualizer3Line } from '../icons/remix/RiEqualizer3Line';
|
|
9
|
+
import { RiSearchLine } from '../icons/remix/RiSearchLine';
|
|
10
|
+
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
11
|
+
import { borderRadius } from '../styles/tokens';
|
|
12
|
+
import type { WebCssStyle } from '../styles/web-view-style';
|
|
13
|
+
import { useTheme } from '../theme/use-theme';
|
|
14
|
+
import { Text } from '../typography';
|
|
15
|
+
import { STAY_SEARCH_COMPACT_HEIGHT } from './constants';
|
|
16
|
+
import { useStaySearchPalette } from './palette';
|
|
17
|
+
import type { StaySearchCompactProps } from './types';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The narrow-screen search trigger: a full-width pill (56 tall, hairline, the
|
|
21
|
+
* bar's soft shadow) with a search glyph, a bold title over a secondary summary
|
|
22
|
+
* line, and an optional round filter button at the right end. Pressing the pill
|
|
23
|
+
* opens the app's search flow (usually a `Dialog` of `StaySearchStep`s); hover
|
|
24
|
+
* and press are a fill change only.
|
|
25
|
+
*
|
|
26
|
+
* The pill's pressable area and the filter button are SIBLINGS, never nested,
|
|
27
|
+
* so each is its own named control.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
const STYLE_ID = 'bloom-stay-search-compact-web-css';
|
|
31
|
+
const CSS = `
|
|
32
|
+
[data-bloom-stay-compact] {
|
|
33
|
+
outline: none;
|
|
34
|
+
}
|
|
35
|
+
[data-bloom-stay-compact]:focus-visible {
|
|
36
|
+
box-shadow: inset 0 0 0 2px var(--bloom-stay-compact-ring, currentColor);
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
function StaySearchCompactComponent({
|
|
41
|
+
onPress,
|
|
42
|
+
title = 'Where to?',
|
|
43
|
+
summary,
|
|
44
|
+
onFilterPress,
|
|
45
|
+
filterLabel = 'Filters',
|
|
46
|
+
filterIcon = RiEqualizer3Line,
|
|
47
|
+
accessibilityLabel,
|
|
48
|
+
style,
|
|
49
|
+
testID,
|
|
50
|
+
}: StaySearchCompactProps) {
|
|
51
|
+
const theme = useTheme();
|
|
52
|
+
const palette = useStaySearchPalette();
|
|
53
|
+
const { accent } = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
54
|
+
const hover = useInteractionState();
|
|
55
|
+
const press = useInteractionState();
|
|
56
|
+
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
adoptStyleSheet(STYLE_ID, CSS);
|
|
59
|
+
}, []);
|
|
60
|
+
|
|
61
|
+
const pill: WebCssStyle = {
|
|
62
|
+
height: STAY_SEARCH_COMPACT_HEIGHT,
|
|
63
|
+
borderRadius: borderRadius.full,
|
|
64
|
+
borderWidth: 1,
|
|
65
|
+
borderColor: palette.border,
|
|
66
|
+
backgroundColor: press.state || hover.state ? palette.segmentHover : palette.barSurface,
|
|
67
|
+
boxShadow: palette.barShadow,
|
|
68
|
+
flexDirection: 'row',
|
|
69
|
+
alignItems: 'center',
|
|
70
|
+
};
|
|
71
|
+
const hit: WebCssStyle = {
|
|
72
|
+
flex: 1,
|
|
73
|
+
minWidth: 0,
|
|
74
|
+
alignSelf: 'stretch',
|
|
75
|
+
flexDirection: 'row',
|
|
76
|
+
alignItems: 'center',
|
|
77
|
+
gap: 12,
|
|
78
|
+
paddingLeft: 20,
|
|
79
|
+
paddingRight: onFilterPress ? 8 : 20,
|
|
80
|
+
borderRadius: borderRadius.full,
|
|
81
|
+
'--bloom-stay-compact-ring': accent[500],
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
return (
|
|
85
|
+
<View style={[pill, style]}>
|
|
86
|
+
<Pressable
|
|
87
|
+
{...webDataSet({ bloomStayCompact: '' })}
|
|
88
|
+
onPress={onPress}
|
|
89
|
+
onHoverIn={hover.onIn}
|
|
90
|
+
onHoverOut={hover.onOut}
|
|
91
|
+
onPressIn={press.onIn}
|
|
92
|
+
onPressOut={press.onOut}
|
|
93
|
+
accessibilityRole="button"
|
|
94
|
+
accessibilityLabel={accessibilityLabel ?? (summary ? `${title}, ${summary}` : title)}
|
|
95
|
+
testID={testID}
|
|
96
|
+
style={hit}
|
|
97
|
+
>
|
|
98
|
+
<RiSearchLine width={20} height={20} fill={palette.text} />
|
|
99
|
+
<View style={{ flex: 1, minWidth: 0 }}>
|
|
100
|
+
<Text variant="body-semibold" numberOfLines={1} style={{ color: palette.text }}>
|
|
101
|
+
{title}
|
|
102
|
+
</Text>
|
|
103
|
+
{summary ? (
|
|
104
|
+
<Text variant="caption-1-regular" numberOfLines={1} style={{ color: palette.textSecondary }}>
|
|
105
|
+
{summary}
|
|
106
|
+
</Text>
|
|
107
|
+
) : null}
|
|
108
|
+
</View>
|
|
109
|
+
</Pressable>
|
|
110
|
+
{onFilterPress ? (
|
|
111
|
+
<Button
|
|
112
|
+
variant="secondary"
|
|
113
|
+
size="medium"
|
|
114
|
+
iconOnly
|
|
115
|
+
icon={filterIcon}
|
|
116
|
+
onPress={onFilterPress}
|
|
117
|
+
accessibilityLabel={filterLabel}
|
|
118
|
+
testID={testID ? `${testID}-filter` : undefined}
|
|
119
|
+
style={{ marginRight: 9, flexShrink: 0 }}
|
|
120
|
+
/>
|
|
121
|
+
) : null}
|
|
122
|
+
</View>
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export const StaySearchCompact = memo(StaySearchCompactComponent);
|
|
127
|
+
StaySearchCompact.displayName = 'StaySearchCompact';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import type { WebCssStyle } from '../styles/web-view-style';
|
|
5
|
+
import { STAY_SEARCH_PANEL_RADIUS } from './constants';
|
|
6
|
+
import { useStaySearchPalette } from './palette';
|
|
7
|
+
import type { StaySearchPanelProps } from './types';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The floating surface that drops under an open `StaySearchBar` segment:
|
|
11
|
+
* the menu palette's surface and hairline, the menu shadow plus a wider
|
|
12
|
+
* ambient layer, radius 32. Its content is whatever the app passes —
|
|
13
|
+
* `DestinationSuggestions`, `GuestPicker`, a `RangeCalendar` with
|
|
14
|
+
* `DateFlexibilityChips`, or anything else.
|
|
15
|
+
*/
|
|
16
|
+
function StaySearchPanelComponent({
|
|
17
|
+
children,
|
|
18
|
+
width,
|
|
19
|
+
padding = 16,
|
|
20
|
+
accessibilityLabel,
|
|
21
|
+
style,
|
|
22
|
+
testID,
|
|
23
|
+
}: StaySearchPanelProps) {
|
|
24
|
+
const palette = useStaySearchPalette();
|
|
25
|
+
const surface: WebCssStyle = {
|
|
26
|
+
width,
|
|
27
|
+
maxWidth: '100%',
|
|
28
|
+
paddingTop: padding,
|
|
29
|
+
paddingBottom: padding,
|
|
30
|
+
paddingLeft: padding,
|
|
31
|
+
paddingRight: padding,
|
|
32
|
+
borderRadius: STAY_SEARCH_PANEL_RADIUS,
|
|
33
|
+
borderWidth: 1,
|
|
34
|
+
borderColor: palette.panelBorder,
|
|
35
|
+
backgroundColor: palette.panelSurface,
|
|
36
|
+
boxShadow: palette.panelShadow,
|
|
37
|
+
};
|
|
38
|
+
return (
|
|
39
|
+
<View
|
|
40
|
+
testID={testID}
|
|
41
|
+
role={accessibilityLabel ? 'dialog' : undefined}
|
|
42
|
+
accessibilityLabel={accessibilityLabel}
|
|
43
|
+
style={[surface, style]}
|
|
44
|
+
>
|
|
45
|
+
{children}
|
|
46
|
+
</View>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export const StaySearchPanel = memo(StaySearchPanelComponent);
|
|
51
|
+
StaySearchPanel.displayName = 'StaySearchPanel';
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import React, { memo, useEffect, useMemo } from 'react';
|
|
2
|
+
import { Pressable, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { resolveButtonRamps } from '../button/shared';
|
|
5
|
+
import { webDataSet } from '../checkbox/shared';
|
|
6
|
+
import { useInteractionState } from '../hooks/use-interaction-state';
|
|
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_STEP_RADIUS } from './constants';
|
|
12
|
+
import { useStaySearchPalette } from './palette';
|
|
13
|
+
import type { StaySearchStepProps } from './types';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* One card of the narrow-screen search flow (Where / When / Who), one expanded
|
|
17
|
+
* at a time — the app owns which.
|
|
18
|
+
*
|
|
19
|
+
* Collapsed: a 56-tall row, the label (body-medium, secondary) on the left and
|
|
20
|
+
* the summary (body-semibold) on the right; a `button` with `aria-expanded`.
|
|
21
|
+
* Expanded: the title (title-2-semibold, a header) over the children, 24 inset.
|
|
22
|
+
* Both are the card surface with a hairline, radius 20; the expanded card
|
|
23
|
+
* carries the bar's soft shadow.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
const STYLE_ID = 'bloom-stay-search-step-web-css';
|
|
27
|
+
const CSS = `
|
|
28
|
+
[data-bloom-stay-step] {
|
|
29
|
+
outline: none;
|
|
30
|
+
}
|
|
31
|
+
[data-bloom-stay-step]:focus-visible {
|
|
32
|
+
box-shadow: inset 0 0 0 2px var(--bloom-stay-step-ring, currentColor);
|
|
33
|
+
}
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
function StaySearchStepComponent({
|
|
37
|
+
label,
|
|
38
|
+
summary,
|
|
39
|
+
title,
|
|
40
|
+
expanded,
|
|
41
|
+
onPress,
|
|
42
|
+
children,
|
|
43
|
+
style,
|
|
44
|
+
testID,
|
|
45
|
+
}: StaySearchStepProps) {
|
|
46
|
+
const theme = useTheme();
|
|
47
|
+
const palette = useStaySearchPalette();
|
|
48
|
+
const { accent } = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
49
|
+
const hover = useInteractionState();
|
|
50
|
+
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
adoptStyleSheet(STYLE_ID, CSS);
|
|
53
|
+
}, []);
|
|
54
|
+
|
|
55
|
+
const card: WebCssStyle = {
|
|
56
|
+
borderRadius: STAY_SEARCH_STEP_RADIUS,
|
|
57
|
+
borderWidth: 1,
|
|
58
|
+
borderColor: palette.border,
|
|
59
|
+
backgroundColor: palette.barSurface,
|
|
60
|
+
boxShadow: expanded ? palette.barShadow : undefined,
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
if (expanded) {
|
|
64
|
+
return (
|
|
65
|
+
<View testID={testID} style={[card, { paddingTop: 24, paddingBottom: 24, paddingLeft: 24, paddingRight: 24, gap: 16 }, style]}>
|
|
66
|
+
<Text variant="title-2-semibold" role="heading" style={{ color: palette.text }}>
|
|
67
|
+
{title ?? label}
|
|
68
|
+
</Text>
|
|
69
|
+
{children}
|
|
70
|
+
</View>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const row: WebCssStyle = {
|
|
75
|
+
minHeight: 56,
|
|
76
|
+
flexDirection: 'row',
|
|
77
|
+
alignItems: 'center',
|
|
78
|
+
gap: 16,
|
|
79
|
+
paddingLeft: 20,
|
|
80
|
+
paddingRight: 20,
|
|
81
|
+
borderRadius: STAY_SEARCH_STEP_RADIUS - 1,
|
|
82
|
+
backgroundColor: hover.state ? palette.segmentHover : 'transparent',
|
|
83
|
+
'--bloom-stay-step-ring': accent[500],
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
return (
|
|
87
|
+
<View style={[card, style]}>
|
|
88
|
+
<Pressable
|
|
89
|
+
{...webDataSet({ bloomStayStep: '' })}
|
|
90
|
+
onPress={onPress}
|
|
91
|
+
onHoverIn={hover.onIn}
|
|
92
|
+
onHoverOut={hover.onOut}
|
|
93
|
+
accessibilityRole="button"
|
|
94
|
+
accessibilityLabel={summary ? `${label}, ${summary}` : label}
|
|
95
|
+
accessibilityState={{ expanded: false }}
|
|
96
|
+
aria-expanded={false}
|
|
97
|
+
testID={testID}
|
|
98
|
+
style={row}
|
|
99
|
+
>
|
|
100
|
+
<Text variant="body-medium" numberOfLines={1} style={{ color: palette.textSecondary }}>
|
|
101
|
+
{label}
|
|
102
|
+
</Text>
|
|
103
|
+
<Text
|
|
104
|
+
variant="body-semibold"
|
|
105
|
+
numberOfLines={1}
|
|
106
|
+
style={{ flex: 1, minWidth: 0, textAlign: 'right', color: palette.text }}
|
|
107
|
+
>
|
|
108
|
+
{summary ?? ''}
|
|
109
|
+
</Text>
|
|
110
|
+
</Pressable>
|
|
111
|
+
</View>
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export const StaySearchStep = memo(StaySearchStepComponent);
|
|
116
|
+
StaySearchStep.displayName = 'StaySearchStep';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { DateFlexibilityOption, GuestKind, StaySearchBarLabels } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Geometry shared by the stay-search parts.
|
|
5
|
+
*
|
|
6
|
+
* bar height 66 (1px hairline included), full pill
|
|
7
|
+
* segment padding-left 32 for the first segment, 24 for the rest
|
|
8
|
+
* separator 1 × 32, hidden beside a hovered or open segment
|
|
9
|
+
* search button Button primary large (44), 10 from the bar's edge
|
|
10
|
+
* panel radius 32, 12 below the bar
|
|
11
|
+
* compact trigger 56 tall, full pill
|
|
12
|
+
* step card radius 20; collapsed row 56 tall
|
|
13
|
+
*/
|
|
14
|
+
export const STAY_SEARCH_BAR_HEIGHT = 66;
|
|
15
|
+
export const STAY_SEARCH_SEPARATOR_HEIGHT = 32;
|
|
16
|
+
export const STAY_SEARCH_BUTTON_INSET = 10;
|
|
17
|
+
export const STAY_SEARCH_PANEL_RADIUS = 32;
|
|
18
|
+
export const STAY_SEARCH_PANEL_OFFSET = 12;
|
|
19
|
+
export const STAY_SEARCH_COMPACT_HEIGHT = 56;
|
|
20
|
+
export const STAY_SEARCH_STEP_RADIUS = 20;
|
|
21
|
+
export const STAY_SEARCH_TILE_SIZE = 48;
|
|
22
|
+
export const STAY_SEARCH_TILE_RADIUS = 12;
|
|
23
|
+
|
|
24
|
+
export const DEFAULT_STAY_SEARCH_BAR_LABELS: StaySearchBarLabels = {
|
|
25
|
+
where: 'Where',
|
|
26
|
+
checkIn: 'Check in',
|
|
27
|
+
checkOut: 'Check out',
|
|
28
|
+
when: 'When',
|
|
29
|
+
who: 'Who',
|
|
30
|
+
destinationPlaceholder: 'Search destinations',
|
|
31
|
+
datesPlaceholder: 'Add dates',
|
|
32
|
+
guestsPlaceholder: 'Add guests',
|
|
33
|
+
search: 'Search',
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const DEFAULT_GUEST_LABELS: Record<GuestKind, string> = {
|
|
37
|
+
adults: 'Adults',
|
|
38
|
+
children: 'Children',
|
|
39
|
+
infants: 'Infants',
|
|
40
|
+
pets: 'Pets',
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export const DEFAULT_GUEST_DESCRIPTIONS: Record<GuestKind, string> = {
|
|
44
|
+
adults: 'Ages 13 or above',
|
|
45
|
+
children: 'Ages 2 – 12',
|
|
46
|
+
infants: 'Under 2',
|
|
47
|
+
pets: 'Bringing a service animal?',
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export const GUEST_KINDS: readonly GuestKind[] = ['adults', 'children', 'infants', 'pets'];
|
|
51
|
+
|
|
52
|
+
export const DEFAULT_DATE_FLEXIBILITY_OPTIONS: readonly DateFlexibilityOption[] = [
|
|
53
|
+
{ value: 'exact', label: 'Exact dates' },
|
|
54
|
+
{ value: '1', label: '± 1 day' },
|
|
55
|
+
{ value: '2', label: '± 2 days' },
|
|
56
|
+
{ value: '3', label: '± 3 days' },
|
|
57
|
+
{ value: '7', label: '± 7 days' },
|
|
58
|
+
];
|