@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,315 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useEffect, useMemo } from 'react';
|
|
4
|
+
import { Image, Pressable, View } from 'react-native';
|
|
5
|
+
import { Button } from '../button';
|
|
6
|
+
import { bloomShadowStyle } from '../design-tokens/shadows';
|
|
7
|
+
import { useInteractionState } from "../hooks/use-interaction-state.js";
|
|
8
|
+
import { RiCloseLine } from "../icons/remix/RiCloseLine.js";
|
|
9
|
+
import { RiHeart3Fill } from "../icons/remix/RiHeart3Fill.js";
|
|
10
|
+
import { RiHeart3Line } from "../icons/remix/RiHeart3Line.js";
|
|
11
|
+
import { useImageResolver } from "../image-resolver/context.js";
|
|
12
|
+
import { Rating } from "../rating/index.js";
|
|
13
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
14
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
15
|
+
import { Text } from "../typography/index.js";
|
|
16
|
+
import { MAP_MARKER_CSS, MAP_MARKER_STYLE_ID, mapWebData, resolveMapMarkerPaint } from "./shared.js";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
|
+
/**
|
|
19
|
+
* The small card a map shows when a marker is pressed.
|
|
20
|
+
*
|
|
21
|
+
* card 327 wide, radius 16, surface + hairline + shadow-m
|
|
22
|
+
* vertical photo 200 tall on top (inner radius 15), body 12 padding
|
|
23
|
+
* compact photo 112 wide on the left, full height; body beside it
|
|
24
|
+
* body title body-2-semibold + Rating small on one line,
|
|
25
|
+
* subtitle body-2-regular secondary, 4 · price line:
|
|
26
|
+
* [original struck, secondary] price body-2-semibold, detail body-2-regular secondary
|
|
27
|
+
* close Button secondary xs iconOnly — over the photo's top-left
|
|
28
|
+
* (vertical) or the card's top-right (compact)
|
|
29
|
+
* heart 24 round surface pill, 14px heart — the photo's other top corner;
|
|
30
|
+
* a filled red heart when saved
|
|
31
|
+
*
|
|
32
|
+
* The card never clips (so the native shadow survives); the photo clips
|
|
33
|
+
* itself to the card's inner radius.
|
|
34
|
+
*
|
|
35
|
+
* The open target is a `button` laid over the whole card BESIDE the close and
|
|
36
|
+
* heart buttons rather than around them, so no button nests in another. The
|
|
37
|
+
* heart is a toggle: `aria-pressed` plus native `accessibilityState.selected`.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
const DEFAULT_WIDTH = 327;
|
|
41
|
+
const RADIUS = 16;
|
|
42
|
+
const INNER_RADIUS = RADIUS - 1;
|
|
43
|
+
const PHOTO_HEIGHT = 200;
|
|
44
|
+
const COMPACT_PHOTO_WIDTH = 112;
|
|
45
|
+
const HEART_SIZE = 24;
|
|
46
|
+
const INSET = 8;
|
|
47
|
+
function isUrl(value) {
|
|
48
|
+
return value.startsWith('http://') || value.startsWith('https://') || value.startsWith('data:') || value.startsWith('blob:') || value.startsWith('file:');
|
|
49
|
+
}
|
|
50
|
+
function FavoriteButton({
|
|
51
|
+
favorite,
|
|
52
|
+
label,
|
|
53
|
+
paint,
|
|
54
|
+
onToggle,
|
|
55
|
+
testID
|
|
56
|
+
}) {
|
|
57
|
+
const {
|
|
58
|
+
state: hovered,
|
|
59
|
+
onIn,
|
|
60
|
+
onOut
|
|
61
|
+
} = useInteractionState();
|
|
62
|
+
const Icon = favorite ? RiHeart3Fill : RiHeart3Line;
|
|
63
|
+
const style = {
|
|
64
|
+
width: HEART_SIZE,
|
|
65
|
+
height: HEART_SIZE,
|
|
66
|
+
borderRadius: HEART_SIZE / 2,
|
|
67
|
+
alignItems: 'center',
|
|
68
|
+
justifyContent: 'center',
|
|
69
|
+
borderWidth: 1,
|
|
70
|
+
borderColor: paint.border,
|
|
71
|
+
backgroundColor: hovered ? paint.hoverSurface : paint.surface,
|
|
72
|
+
'--bloom-map-ring': paint.ring,
|
|
73
|
+
...bloomShadowStyle('s')
|
|
74
|
+
};
|
|
75
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
76
|
+
...mapWebData({
|
|
77
|
+
bloomMapPressable: ''
|
|
78
|
+
}),
|
|
79
|
+
role: "button",
|
|
80
|
+
accessibilityLabel: label,
|
|
81
|
+
"aria-pressed": favorite,
|
|
82
|
+
accessibilityState: {
|
|
83
|
+
selected: favorite
|
|
84
|
+
},
|
|
85
|
+
onPress: onToggle,
|
|
86
|
+
onHoverIn: onIn,
|
|
87
|
+
onHoverOut: onOut,
|
|
88
|
+
hitSlop: {
|
|
89
|
+
top: 8,
|
|
90
|
+
bottom: 8,
|
|
91
|
+
left: 8,
|
|
92
|
+
right: 8
|
|
93
|
+
},
|
|
94
|
+
testID: testID,
|
|
95
|
+
style: style,
|
|
96
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
97
|
+
width: 14,
|
|
98
|
+
height: 14,
|
|
99
|
+
fill: favorite ? paint.heart : paint.label
|
|
100
|
+
})
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function MapListingPreviewComponent({
|
|
104
|
+
image,
|
|
105
|
+
imageVariant,
|
|
106
|
+
title,
|
|
107
|
+
rating,
|
|
108
|
+
reviewCount,
|
|
109
|
+
subtitle,
|
|
110
|
+
price,
|
|
111
|
+
priceDetail,
|
|
112
|
+
originalPrice,
|
|
113
|
+
favorite = false,
|
|
114
|
+
onFavoriteChange,
|
|
115
|
+
onClose,
|
|
116
|
+
onPress,
|
|
117
|
+
layout = 'vertical',
|
|
118
|
+
width = DEFAULT_WIDTH,
|
|
119
|
+
closeLabel = 'Close',
|
|
120
|
+
favoriteLabel = 'Save',
|
|
121
|
+
accessibilityLabel,
|
|
122
|
+
style,
|
|
123
|
+
testID
|
|
124
|
+
}) {
|
|
125
|
+
const theme = useTheme();
|
|
126
|
+
const paint = useMemo(() => resolveMapMarkerPaint(theme), [theme]);
|
|
127
|
+
const resolver = useImageResolver();
|
|
128
|
+
useEffect(() => {
|
|
129
|
+
adoptStyleSheet(MAP_MARKER_STYLE_ID, MAP_MARKER_CSS);
|
|
130
|
+
}, []);
|
|
131
|
+
const compact = layout === 'compact';
|
|
132
|
+
const uri = image ? isUrl(image) ? image : resolver?.(image, imageVariant) : undefined;
|
|
133
|
+
const showRating = rating !== undefined;
|
|
134
|
+
const cardStyle = {
|
|
135
|
+
width,
|
|
136
|
+
maxWidth: '100%',
|
|
137
|
+
flexDirection: compact ? 'row' : 'column',
|
|
138
|
+
borderRadius: RADIUS,
|
|
139
|
+
borderWidth: 1,
|
|
140
|
+
borderColor: paint.border,
|
|
141
|
+
backgroundColor: paint.surface,
|
|
142
|
+
...bloomShadowStyle('m')
|
|
143
|
+
};
|
|
144
|
+
const photoStyle = compact ? {
|
|
145
|
+
width: COMPACT_PHOTO_WIDTH,
|
|
146
|
+
minHeight: COMPACT_PHOTO_WIDTH,
|
|
147
|
+
alignSelf: 'stretch',
|
|
148
|
+
borderTopLeftRadius: INNER_RADIUS,
|
|
149
|
+
borderBottomLeftRadius: INNER_RADIUS,
|
|
150
|
+
overflow: 'hidden',
|
|
151
|
+
backgroundColor: paint.placeholder
|
|
152
|
+
} : {
|
|
153
|
+
height: PHOTO_HEIGHT,
|
|
154
|
+
borderTopLeftRadius: INNER_RADIUS,
|
|
155
|
+
borderTopRightRadius: INNER_RADIUS,
|
|
156
|
+
overflow: 'hidden',
|
|
157
|
+
backgroundColor: paint.placeholder
|
|
158
|
+
};
|
|
159
|
+
const openStyle = {
|
|
160
|
+
position: 'absolute',
|
|
161
|
+
top: 0,
|
|
162
|
+
right: 0,
|
|
163
|
+
bottom: 0,
|
|
164
|
+
left: 0,
|
|
165
|
+
borderRadius: RADIUS,
|
|
166
|
+
'--bloom-map-ring': paint.ring
|
|
167
|
+
};
|
|
168
|
+
const closeButton = onClose ? /*#__PURE__*/_jsx(Button, {
|
|
169
|
+
variant: "secondary",
|
|
170
|
+
size: "xs",
|
|
171
|
+
iconOnly: true,
|
|
172
|
+
leadingIcon: RiCloseLine,
|
|
173
|
+
accessibilityLabel: closeLabel,
|
|
174
|
+
onPress: onClose,
|
|
175
|
+
testID: testID ? `${testID}-close` : undefined
|
|
176
|
+
}) : null;
|
|
177
|
+
const heartButton = onFavoriteChange ? /*#__PURE__*/_jsx(FavoriteButton, {
|
|
178
|
+
favorite: favorite,
|
|
179
|
+
label: favoriteLabel,
|
|
180
|
+
paint: paint,
|
|
181
|
+
onToggle: () => onFavoriteChange(!favorite),
|
|
182
|
+
testID: testID ? `${testID}-favorite` : undefined
|
|
183
|
+
}) : null;
|
|
184
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
185
|
+
testID: testID,
|
|
186
|
+
style: [cardStyle, style],
|
|
187
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
188
|
+
style: photoStyle,
|
|
189
|
+
testID: testID ? `${testID}-image` : undefined,
|
|
190
|
+
children: uri ? /*#__PURE__*/_jsx(Image, {
|
|
191
|
+
source: {
|
|
192
|
+
uri
|
|
193
|
+
},
|
|
194
|
+
resizeMode: "cover",
|
|
195
|
+
accessibilityIgnoresInvertColors: true,
|
|
196
|
+
style: {
|
|
197
|
+
position: 'absolute',
|
|
198
|
+
top: 0,
|
|
199
|
+
right: 0,
|
|
200
|
+
bottom: 0,
|
|
201
|
+
left: 0
|
|
202
|
+
}
|
|
203
|
+
}) : null
|
|
204
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
205
|
+
style: {
|
|
206
|
+
flex: compact ? 1 : undefined,
|
|
207
|
+
minWidth: 0,
|
|
208
|
+
justifyContent: 'center',
|
|
209
|
+
gap: 2,
|
|
210
|
+
paddingTop: 12,
|
|
211
|
+
paddingBottom: 12,
|
|
212
|
+
paddingLeft: 12,
|
|
213
|
+
// Compact: clear the close button in the card's top-right corner.
|
|
214
|
+
paddingRight: compact && onClose ? INSET + 24 + 8 : 12
|
|
215
|
+
},
|
|
216
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
217
|
+
style: {
|
|
218
|
+
flexDirection: 'row',
|
|
219
|
+
alignItems: 'center',
|
|
220
|
+
gap: 8
|
|
221
|
+
},
|
|
222
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
223
|
+
variant: "body-2-semibold",
|
|
224
|
+
numberOfLines: 1,
|
|
225
|
+
style: {
|
|
226
|
+
flex: 1,
|
|
227
|
+
minWidth: 0,
|
|
228
|
+
color: paint.label
|
|
229
|
+
},
|
|
230
|
+
children: title
|
|
231
|
+
}), showRating && !compact ? /*#__PURE__*/_jsx(Rating, {
|
|
232
|
+
size: "small",
|
|
233
|
+
value: rating,
|
|
234
|
+
count: reviewCount
|
|
235
|
+
}) : null]
|
|
236
|
+
}), showRating && compact ? /*#__PURE__*/_jsx(Rating, {
|
|
237
|
+
size: "small",
|
|
238
|
+
value: rating,
|
|
239
|
+
count: reviewCount
|
|
240
|
+
}) : null, subtitle ? /*#__PURE__*/_jsx(Text, {
|
|
241
|
+
variant: "body-2-regular",
|
|
242
|
+
numberOfLines: 1,
|
|
243
|
+
style: {
|
|
244
|
+
color: paint.labelSecondary
|
|
245
|
+
},
|
|
246
|
+
children: subtitle
|
|
247
|
+
}) : null, /*#__PURE__*/_jsxs(Text, {
|
|
248
|
+
variant: "body-2-regular",
|
|
249
|
+
numberOfLines: 1,
|
|
250
|
+
style: {
|
|
251
|
+
marginTop: 4,
|
|
252
|
+
color: paint.labelSecondary
|
|
253
|
+
},
|
|
254
|
+
children: [originalPrice ? /*#__PURE__*/_jsxs(Text, {
|
|
255
|
+
variant: "body-2-regular",
|
|
256
|
+
style: {
|
|
257
|
+
color: paint.labelSecondary,
|
|
258
|
+
textDecorationLine: 'line-through'
|
|
259
|
+
},
|
|
260
|
+
children: [originalPrice, ' ']
|
|
261
|
+
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
262
|
+
variant: "body-2-semibold",
|
|
263
|
+
style: {
|
|
264
|
+
color: paint.label
|
|
265
|
+
},
|
|
266
|
+
children: price
|
|
267
|
+
}), priceDetail ? ` ${priceDetail}` : null]
|
|
268
|
+
})]
|
|
269
|
+
}), onPress ? /*#__PURE__*/_jsx(Pressable, {
|
|
270
|
+
...mapWebData({
|
|
271
|
+
bloomMapPressable: ''
|
|
272
|
+
}),
|
|
273
|
+
role: "button",
|
|
274
|
+
accessibilityLabel: accessibilityLabel ?? title,
|
|
275
|
+
onPress: onPress,
|
|
276
|
+
testID: testID ? `${testID}-open` : undefined,
|
|
277
|
+
style: openStyle
|
|
278
|
+
}) : null, compact ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
279
|
+
children: [heartButton ? /*#__PURE__*/_jsx(View, {
|
|
280
|
+
style: {
|
|
281
|
+
position: 'absolute',
|
|
282
|
+
top: INSET,
|
|
283
|
+
left: INSET
|
|
284
|
+
},
|
|
285
|
+
children: heartButton
|
|
286
|
+
}) : null, closeButton ? /*#__PURE__*/_jsx(View, {
|
|
287
|
+
style: {
|
|
288
|
+
position: 'absolute',
|
|
289
|
+
top: INSET,
|
|
290
|
+
right: INSET
|
|
291
|
+
},
|
|
292
|
+
children: closeButton
|
|
293
|
+
}) : null]
|
|
294
|
+
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
295
|
+
children: [closeButton ? /*#__PURE__*/_jsx(View, {
|
|
296
|
+
style: {
|
|
297
|
+
position: 'absolute',
|
|
298
|
+
top: INSET,
|
|
299
|
+
left: INSET
|
|
300
|
+
},
|
|
301
|
+
children: closeButton
|
|
302
|
+
}) : null, heartButton ? /*#__PURE__*/_jsx(View, {
|
|
303
|
+
style: {
|
|
304
|
+
position: 'absolute',
|
|
305
|
+
top: INSET,
|
|
306
|
+
right: INSET
|
|
307
|
+
},
|
|
308
|
+
children: heartButton
|
|
309
|
+
}) : null]
|
|
310
|
+
})]
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
export const MapListingPreview = /*#__PURE__*/memo(MapListingPreviewComponent);
|
|
314
|
+
MapListingPreview.displayName = 'MapListingPreview';
|
|
315
|
+
//# sourceMappingURL=MapListingPreview.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useEffect","useMemo","Image","Pressable","View","Button","bloomShadowStyle","useInteractionState","RiCloseLine","RiHeart3Fill","RiHeart3Line","useImageResolver","Rating","adoptStyleSheet","useTheme","Text","MAP_MARKER_CSS","MAP_MARKER_STYLE_ID","mapWebData","resolveMapMarkerPaint","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","DEFAULT_WIDTH","RADIUS","INNER_RADIUS","PHOTO_HEIGHT","COMPACT_PHOTO_WIDTH","HEART_SIZE","INSET","isUrl","value","startsWith","FavoriteButton","favorite","label","paint","onToggle","testID","state","hovered","onIn","onOut","Icon","style","width","height","borderRadius","alignItems","justifyContent","borderWidth","borderColor","border","backgroundColor","hoverSurface","surface","ring","bloomMapPressable","role","accessibilityLabel","accessibilityState","selected","onPress","onHoverIn","onHoverOut","hitSlop","top","bottom","left","right","children","fill","heart","MapListingPreviewComponent","image","imageVariant","title","rating","reviewCount","subtitle","price","priceDetail","originalPrice","onFavoriteChange","onClose","layout","closeLabel","favoriteLabel","theme","resolver","compact","uri","undefined","showRating","cardStyle","maxWidth","flexDirection","photoStyle","minHeight","alignSelf","borderTopLeftRadius","borderBottomLeftRadius","overflow","placeholder","borderTopRightRadius","openStyle","position","closeButton","variant","size","iconOnly","leadingIcon","heartButton","source","resizeMode","accessibilityIgnoresInvertColors","flex","minWidth","gap","paddingTop","paddingBottom","paddingLeft","paddingRight","numberOfLines","color","count","labelSecondary","marginTop","textDecorationLine","MapListingPreview","displayName"],"sourceRoot":"../../../src","sources":["map-marker/MapListingPreview.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AACvD,SAASC,KAAK,EAAEC,SAAS,EAAEC,IAAI,QAAwB,cAAc;AAErE,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,gBAAgB,QAAQ,0BAA0B;AAC3D,SAASC,mBAAmB,QAAQ,mCAAgC;AACpE,SAASC,WAAW,QAAQ,+BAA4B;AACxD,SAASC,YAAY,QAAQ,gCAA6B;AAC1D,SAASC,YAAY,QAAQ,gCAA6B;AAC1D,SAASC,gBAAgB,QAAQ,8BAA2B;AAC5D,SAASC,MAAM,QAAQ,oBAAW;AAClC,SAASC,eAAe,QAAQ,gCAA6B;AAE7D,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SACEC,cAAc,EACdC,mBAAmB,EACnBC,UAAU,EACVC,qBAAqB,QAEhB,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QA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,KAAA,CAAAE,SAAA;MAAAgD,QAAA,GACG0C,WAAW,gBACV9F,IAAA,CAACjB,IAAI;QAAC2C,KAAK,EAAE;UAAE8D,QAAQ,EAAE,UAAU;UAAExC,GAAG,EAAErC,KAAK;UAAEuC,IAAI,EAAEvC;QAAM,CAAE;QAAAyC,QAAA,EAAE0C;MAAW,CAAO,CAAC,GAClF,IAAI,EACPL,WAAW,gBACVzF,IAAA,CAACjB,IAAI;QAAC2C,KAAK,EAAE;UAAE8D,QAAQ,EAAE,UAAU;UAAExC,GAAG,EAAErC,KAAK;UAAEwC,KAAK,EAAExC;QAAM,CAAE;QAAAyC,QAAA,EAAEqC;MAAW,CAAO,CAAC,GACnF,IAAI;IAAA,CACR,CAAC,gBAEHvF,KAAA,CAAAE,SAAA;MAAAgD,QAAA,GACGqC,WAAW,gBACVzF,IAAA,CAACjB,IAAI;QAAC2C,KAAK,EAAE;UAAE8D,QAAQ,EAAE,UAAU;UAAExC,GAAG,EAAErC,KAAK;UAAEuC,IAAI,EAAEvC;QAAM,CAAE;QAAAyC,QAAA,EAAEqC;MAAW,CAAO,CAAC,GAClF,IAAI,EACPK,WAAW,gBACV9F,IAAA,CAACjB,IAAI;QAAC2C,KAAK,EAAE;UAAE8D,QAAQ,EAAE,UAAU;UAAExC,GAAG,EAAErC,KAAK;UAAEwC,KAAK,EAAExC;QAAM,CAAE;QAAAyC,QAAA,EAAE0C;MAAW,CAAO,CAAC,GACnF,IAAI;IAAA,CACR,CACH;EAAA,CACG,CAAC;AAEX;AAEA,OAAO,MAAMiB,iBAAiB,gBAAGrI,IAAI,CAAC6E,0BAA0B,CAAC;AACjEwD,iBAAiB,CAACC,WAAW,GAAG,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useEffect, useMemo } from 'react';
|
|
4
|
+
import { Pressable, View } from 'react-native';
|
|
5
|
+
import { bloomShadowStyle } from '../design-tokens/shadows';
|
|
6
|
+
import { useInteractionState } from "../hooks/use-interaction-state.js";
|
|
7
|
+
import { RiHeart3Fill } from "../icons/remix/RiHeart3Fill.js";
|
|
8
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
9
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
10
|
+
import { Text } from "../typography/index.js";
|
|
11
|
+
import { MAP_MARKER_CSS, MAP_MARKER_STYLE_ID, mapWebData, resolveMapMarkerPaint } from "./shared.js";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
/**
|
|
14
|
+
* A price pill for the app's own map.
|
|
15
|
+
*
|
|
16
|
+
* geometry 28 tall, full pill, 10 side padding (8 before a heart), 1px hairline
|
|
17
|
+
* text body-2-semibold, tabular
|
|
18
|
+
* default surface, hairline, shadow-s; hover: the hairline darkens
|
|
19
|
+
* active inverted fill and label, no hairline, shadow-m
|
|
20
|
+
* visited muted fill and secondary label, shadow-s
|
|
21
|
+
* saved a 12px heart before the price
|
|
22
|
+
*
|
|
23
|
+
* It paints no pointer and positions nothing: the app places it with its map
|
|
24
|
+
* (centre it on the coordinate) and raises the active one above its
|
|
25
|
+
* neighbours. It is a `button` whose `aria-pressed` (and native
|
|
26
|
+
* `accessibilityState.selected`) is the active state, named by
|
|
27
|
+
* `accessibilityLabel`.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
const HEIGHT = 28;
|
|
31
|
+
function MapPriceMarkerComponent({
|
|
32
|
+
price,
|
|
33
|
+
state = 'default',
|
|
34
|
+
saved = false,
|
|
35
|
+
onPress,
|
|
36
|
+
accessibilityLabel,
|
|
37
|
+
style,
|
|
38
|
+
testID
|
|
39
|
+
}) {
|
|
40
|
+
const theme = useTheme();
|
|
41
|
+
const paint = useMemo(() => resolveMapMarkerPaint(theme), [theme]);
|
|
42
|
+
const {
|
|
43
|
+
state: hovered,
|
|
44
|
+
onIn,
|
|
45
|
+
onOut
|
|
46
|
+
} = useInteractionState();
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
adoptStyleSheet(MAP_MARKER_STYLE_ID, MAP_MARKER_CSS);
|
|
49
|
+
}, []);
|
|
50
|
+
const active = state === 'active';
|
|
51
|
+
const visited = state === 'visited';
|
|
52
|
+
const fill = active ? paint.activeFill : visited ? paint.visitedFill : paint.surface;
|
|
53
|
+
const border = active ? paint.activeFill : hovered ? paint.hoverBorder : visited ? paint.visitedBorder : paint.border;
|
|
54
|
+
const label = active ? paint.activeLabel : visited ? paint.visitedLabel : paint.label;
|
|
55
|
+
const pillStyle = {
|
|
56
|
+
flexDirection: 'row',
|
|
57
|
+
alignItems: 'center',
|
|
58
|
+
gap: 4,
|
|
59
|
+
height: HEIGHT,
|
|
60
|
+
paddingLeft: saved ? 8 : 10,
|
|
61
|
+
paddingRight: 10,
|
|
62
|
+
borderRadius: HEIGHT / 2,
|
|
63
|
+
borderWidth: 1,
|
|
64
|
+
borderColor: border,
|
|
65
|
+
backgroundColor: fill,
|
|
66
|
+
'--bloom-map-ring': paint.ring,
|
|
67
|
+
...bloomShadowStyle(active ? 'm' : 's')
|
|
68
|
+
};
|
|
69
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
70
|
+
...mapWebData({
|
|
71
|
+
bloomMapPressable: '',
|
|
72
|
+
bloomMapMarker: state
|
|
73
|
+
}),
|
|
74
|
+
role: "button",
|
|
75
|
+
accessibilityLabel: accessibilityLabel ?? price,
|
|
76
|
+
"aria-pressed": active,
|
|
77
|
+
accessibilityState: {
|
|
78
|
+
selected: active
|
|
79
|
+
},
|
|
80
|
+
onPress: onPress,
|
|
81
|
+
onHoverIn: onIn,
|
|
82
|
+
onHoverOut: onOut,
|
|
83
|
+
hitSlop: {
|
|
84
|
+
top: 8,
|
|
85
|
+
bottom: 8,
|
|
86
|
+
left: 4,
|
|
87
|
+
right: 4
|
|
88
|
+
},
|
|
89
|
+
testID: testID,
|
|
90
|
+
style: [pillStyle, style],
|
|
91
|
+
children: [saved ? /*#__PURE__*/_jsx(View, {
|
|
92
|
+
testID: testID ? `${testID}-saved` : undefined,
|
|
93
|
+
children: /*#__PURE__*/_jsx(RiHeart3Fill, {
|
|
94
|
+
width: 12,
|
|
95
|
+
height: 12,
|
|
96
|
+
fill: active ? paint.activeHeart : paint.heart
|
|
97
|
+
})
|
|
98
|
+
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
99
|
+
variant: "body-2-semibold",
|
|
100
|
+
numberOfLines: 1,
|
|
101
|
+
style: {
|
|
102
|
+
color: label,
|
|
103
|
+
fontVariant: ['tabular-nums']
|
|
104
|
+
},
|
|
105
|
+
children: price
|
|
106
|
+
})]
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
export const MapPriceMarker = /*#__PURE__*/memo(MapPriceMarkerComponent);
|
|
110
|
+
MapPriceMarker.displayName = 'MapPriceMarker';
|
|
111
|
+
//# sourceMappingURL=MapPriceMarker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useEffect","useMemo","Pressable","View","bloomShadowStyle","useInteractionState","RiHeart3Fill","adoptStyleSheet","useTheme","Text","MAP_MARKER_CSS","MAP_MARKER_STYLE_ID","mapWebData","resolveMapMarkerPaint","jsx","_jsx","jsxs","_jsxs","HEIGHT","MapPriceMarkerComponent","price","state","saved","onPress","accessibilityLabel","style","testID","theme","paint","hovered","onIn","onOut","active","visited","fill","activeFill","visitedFill","surface","border","hoverBorder","visitedBorder","label","activeLabel","visitedLabel","pillStyle","flexDirection","alignItems","gap","height","paddingLeft","paddingRight","borderRadius","borderWidth","borderColor","backgroundColor","ring","bloomMapPressable","bloomMapMarker","role","accessibilityState","selected","onHoverIn","onHoverOut","hitSlop","top","bottom","left","right","children","undefined","width","activeHeart","heart","variant","numberOfLines","color","fontVariant","MapPriceMarker","displayName"],"sourceRoot":"../../../src","sources":["map-marker/MapPriceMarker.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,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AAE;IAAE,CAAE;IAClDzC,MAAM,EAAEA,MAAO;IACfD,KAAK,EAAE,CAACmB,SAAS,EAAEnB,KAAK,CAAE;IAAA2C,QAAA,GAEzB9C,KAAK,gBACJP,IAAA,CAACZ,IAAI;MAACuB,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,QAAQ,GAAG2C,SAAU;MAAAD,QAAA,eACnDrD,IAAA,CAACT,YAAY;QAACgE,KAAK,EAAE,EAAG;QAACtB,MAAM,EAAE,EAAG;QAACd,IAAI,EAAEF,MAAM,GAAGJ,KAAK,CAAC2C,WAAW,GAAG3C,KAAK,CAAC4C;MAAM,CAAE;IAAC,CACnF,CAAC,GACL,IAAI,eACRzD,IAAA,CAACN,IAAI;MACHgE,OAAO,EAAC,iBAAiB;MACzBC,aAAa,EAAE,CAAE;MACjBjD,KAAK,EAAE;QAAEkD,KAAK,EAAElC,KAAK;QAAEmC,WAAW,EAAE,CAAC,cAAc;MAAE,CAAE;MAAAR,QAAA,EAEtDhD;IAAK,CACF,CAAC;EAAA,CACE,CAAC;AAEhB;AAEA,OAAO,MAAMyD,cAAc,gBAAG9E,IAAI,CAACoB,uBAAuB,CAAC;AAC3D0D,cAAc,CAACC,WAAW,GAAG,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useEffect, useMemo } from 'react';
|
|
4
|
+
import { Pressable } from 'react-native';
|
|
5
|
+
import { CHECKBOX_GLYPH_CSS, CHECKBOX_GLYPH_STYLE_ID, CheckboxGlyph, resolveCheckboxPaint } from "../checkbox/shared.js";
|
|
6
|
+
import { bloomShadowStyle } from '../design-tokens/shadows';
|
|
7
|
+
import { useInteractionState } from "../hooks/use-interaction-state.js";
|
|
8
|
+
import { RiSearchLine } from "../icons/remix/RiSearchLine.js";
|
|
9
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
10
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
11
|
+
import { Text } from "../typography/index.js";
|
|
12
|
+
import { MAP_MARKER_CSS, MAP_MARKER_STYLE_ID, mapWebData, resolveMapMarkerPaint } from "./shared.js";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
/**
|
|
15
|
+
* The floating pill over a map that ties the results to the visible area.
|
|
16
|
+
*
|
|
17
|
+
* geometry 40 tall, full pill, 12 left / 16 right, gap 8, 1px hairline, shadow-m
|
|
18
|
+
* text body-2-semibold
|
|
19
|
+
* toggle a 16px Bloom checkbox box + "Search as I move the map";
|
|
20
|
+
* `role="checkbox"` with `aria-checked`, the keyboard ring on the box
|
|
21
|
+
* button a 16px search icon + "Search this area"; `role="button"`
|
|
22
|
+
* hover the surface takes the menu hover fill
|
|
23
|
+
* disabled 50% opacity, inert
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
const HEIGHT = 40;
|
|
27
|
+
function MapSearchAreaButtonComponent(props) {
|
|
28
|
+
const {
|
|
29
|
+
disabled = false,
|
|
30
|
+
style,
|
|
31
|
+
testID
|
|
32
|
+
} = props;
|
|
33
|
+
const theme = useTheme();
|
|
34
|
+
const paint = useMemo(() => resolveMapMarkerPaint(theme), [theme]);
|
|
35
|
+
const checkboxPaint = useMemo(() => resolveCheckboxPaint(theme), [theme]);
|
|
36
|
+
const {
|
|
37
|
+
state: hovered,
|
|
38
|
+
onIn,
|
|
39
|
+
onOut
|
|
40
|
+
} = useInteractionState();
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
adoptStyleSheet(MAP_MARKER_STYLE_ID, MAP_MARKER_CSS);
|
|
43
|
+
adoptStyleSheet(CHECKBOX_GLYPH_STYLE_ID, CHECKBOX_GLYPH_CSS);
|
|
44
|
+
}, []);
|
|
45
|
+
const pillStyle = {
|
|
46
|
+
flexDirection: 'row',
|
|
47
|
+
alignItems: 'center',
|
|
48
|
+
gap: 8,
|
|
49
|
+
height: HEIGHT,
|
|
50
|
+
paddingLeft: 12,
|
|
51
|
+
paddingRight: 16,
|
|
52
|
+
borderRadius: HEIGHT / 2,
|
|
53
|
+
borderWidth: 1,
|
|
54
|
+
borderColor: paint.border,
|
|
55
|
+
backgroundColor: hovered && !disabled ? paint.hoverSurface : paint.surface,
|
|
56
|
+
opacity: disabled ? 0.5 : 1,
|
|
57
|
+
'--bloom-map-ring': paint.ring,
|
|
58
|
+
...bloomShadowStyle('m')
|
|
59
|
+
};
|
|
60
|
+
const text = label => /*#__PURE__*/_jsx(Text, {
|
|
61
|
+
variant: "body-2-semibold",
|
|
62
|
+
numberOfLines: 1,
|
|
63
|
+
style: {
|
|
64
|
+
color: paint.label
|
|
65
|
+
},
|
|
66
|
+
children: label
|
|
67
|
+
});
|
|
68
|
+
if (props.variant === 'toggle') {
|
|
69
|
+
const {
|
|
70
|
+
checked,
|
|
71
|
+
onCheckedChange
|
|
72
|
+
} = props;
|
|
73
|
+
const label = props.label ?? 'Search as I move the map';
|
|
74
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
75
|
+
...mapWebData({
|
|
76
|
+
bloomMapPressable: '',
|
|
77
|
+
bloomCheckboxFocusable: ''
|
|
78
|
+
}),
|
|
79
|
+
role: "checkbox",
|
|
80
|
+
accessibilityLabel: label,
|
|
81
|
+
"aria-checked": checked,
|
|
82
|
+
"aria-disabled": disabled || undefined,
|
|
83
|
+
disabled: disabled,
|
|
84
|
+
onPress: () => onCheckedChange(!checked),
|
|
85
|
+
onHoverIn: onIn,
|
|
86
|
+
onHoverOut: onOut,
|
|
87
|
+
testID: testID,
|
|
88
|
+
style: [pillStyle, style],
|
|
89
|
+
children: [/*#__PURE__*/_jsx(CheckboxGlyph, {
|
|
90
|
+
size: "medium",
|
|
91
|
+
checked: checked,
|
|
92
|
+
indeterminate: false,
|
|
93
|
+
disabled: false,
|
|
94
|
+
highlighted: hovered && !disabled,
|
|
95
|
+
paint: checkboxPaint
|
|
96
|
+
}), text(label)]
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
const label = props.label ?? 'Search this area';
|
|
100
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
101
|
+
...mapWebData({
|
|
102
|
+
bloomMapPressable: ''
|
|
103
|
+
}),
|
|
104
|
+
role: "button",
|
|
105
|
+
accessibilityLabel: label,
|
|
106
|
+
"aria-disabled": disabled || undefined,
|
|
107
|
+
disabled: disabled,
|
|
108
|
+
onPress: props.onPress,
|
|
109
|
+
onHoverIn: onIn,
|
|
110
|
+
onHoverOut: onOut,
|
|
111
|
+
testID: testID,
|
|
112
|
+
style: [pillStyle, style],
|
|
113
|
+
children: [/*#__PURE__*/_jsx(RiSearchLine, {
|
|
114
|
+
width: 16,
|
|
115
|
+
height: 16,
|
|
116
|
+
fill: paint.label
|
|
117
|
+
}), text(label)]
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
export const MapSearchAreaButton = /*#__PURE__*/memo(MapSearchAreaButtonComponent);
|
|
121
|
+
MapSearchAreaButton.displayName = 'MapSearchAreaButton';
|
|
122
|
+
//# sourceMappingURL=MapSearchAreaButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useEffect","useMemo","Pressable","CHECKBOX_GLYPH_CSS","CHECKBOX_GLYPH_STYLE_ID","CheckboxGlyph","resolveCheckboxPaint","bloomShadowStyle","useInteractionState","RiSearchLine","adoptStyleSheet","useTheme","Text","MAP_MARKER_CSS","MAP_MARKER_STYLE_ID","mapWebData","resolveMapMarkerPaint","jsx","_jsx","jsxs","_jsxs","HEIGHT","MapSearchAreaButtonComponent","props","disabled","style","testID","theme","paint","checkboxPaint","state","hovered","onIn","onOut","pillStyle","flexDirection","alignItems","gap","height","paddingLeft","paddingRight","borderRadius","borderWidth","borderColor","border","backgroundColor","hoverSurface","surface","opacity","ring","text","label","variant","numberOfLines","color","children","checked","onCheckedChange","bloomMapPressable","bloomCheckboxFocusable","role","accessibilityLabel","undefined","onPress","onHoverIn","onHoverOut","size","indeterminate","highlighted","width","fill","MapSearchAreaButton","displayName"],"sourceRoot":"../../../src","sources":["map-marker/MapSearchAreaButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AACvD,SAASC,SAAS,QAAQ,cAAc;AAExC,SACEC,kBAAkB,EAClBC,uBAAuB,EACvBC,aAAa,EACbC,oBAAoB,QACf,uBAAoB;AAC3B,SAASC,gBAAgB,QAAQ,0BAA0B;AAC3D,SAASC,mBAAmB,QAAQ,mCAAgC;AACpE,SAASC,YAAY,QAAQ,gCAA6B;AAC1D,SAASC,eAAe,QAAQ,gCAA6B;AAE7D,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,cAAc,EAAEC,mBAAmB,EAAEC,UAAU,EAAEC,qBAAqB,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGlG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,MAAM,GAAG,EAAE;AAEjB,SAASC,4BAA4BA,CAACC,KAA+B,EAAE;EACrE,MAAM;IAAEC,QAAQ,GAAG,KAAK;IAAEC,KAAK;IAAEC;EAAO,CAAC,GAAGH,KAAK;EACjD,MAAMI,KAAK,GAAGhB,QAAQ,CAAC,CAAC;EACxB,MAAMiB,KAAK,GAAG3B,OAAO,CAAC,MAAMe,qBAAqB,CAACW,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAClE,MAAME,aAAa,GAAG5B,OAAO,CAAC,MAAMK,oBAAoB,CAACqB,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EACzE,MAAM;IAAEG,KAAK,EAAEC,OAAO;IAAEC,IAAI;IAAEC;EAAM,CAAC,GAAGzB,mBAAmB,CAAC,CAAC;EAC7DR,SAAS,CAAC,MAAM;IACdU,eAAe,CAAC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MAAMoB,mBAAmB,gBAAGxE,IAAI,CAACuB,4BAA4B,CAAC;AACrEiD,mBAAmB,CAACC,WAAW,GAAG,qBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { MapClusterMarker } from "./MapClusterMarker.js";
|
|
4
|
+
export { MapListingPreview } from "./MapListingPreview.js";
|
|
5
|
+
export { MapPriceMarker } from "./MapPriceMarker.js";
|
|
6
|
+
export { MapSearchAreaButton } from "./MapSearchAreaButton.js";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MapClusterMarker","MapListingPreview","MapPriceMarker","MapSearchAreaButton"],"sourceRoot":"../../../src","sources":["map-marker/index.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,uBAAoB;AACrD,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,cAAc,QAAQ,qBAAkB;AACjD,SAASC,mBAAmB,QAAQ,0BAAuB","ignoreList":[]}
|