@oxy.so/bloom 2.7.0 → 2.9.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/settings-list.mdx +22 -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/settings-list/SettingsList.js +3 -2
- package/lib/commonjs/settings-list/SettingsList.js.map +1 -1
- package/lib/commonjs/stay-filters/AmenityFilter.js +61 -0
- package/lib/commonjs/stay-filters/AmenityFilter.js.map +1 -0
- package/lib/commonjs/stay-filters/CountFilter.js +101 -0
- package/lib/commonjs/stay-filters/CountFilter.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterChip.js +156 -0
- package/lib/commonjs/stay-filters/FilterChip.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterFooter.js +77 -0
- package/lib/commonjs/stay-filters/FilterFooter.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterSection.js +80 -0
- package/lib/commonjs/stay-filters/FilterSection.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterTextButton.js +116 -0
- package/lib/commonjs/stay-filters/FilterTextButton.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterTriggerButton.js +60 -0
- package/lib/commonjs/stay-filters/FilterTriggerButton.js.map +1 -0
- package/lib/commonjs/stay-filters/PriceHistogram.js +88 -0
- package/lib/commonjs/stay-filters/PriceHistogram.js.map +1 -0
- package/lib/commonjs/stay-filters/PriceRangeFilter.js +152 -0
- package/lib/commonjs/stay-filters/PriceRangeFilter.js.map +1 -0
- package/lib/commonjs/stay-filters/SegmentedFilter.js +44 -0
- package/lib/commonjs/stay-filters/SegmentedFilter.js.map +1 -0
- package/lib/commonjs/stay-filters/SwitchFilterRow.js +70 -0
- package/lib/commonjs/stay-filters/SwitchFilterRow.js.map +1 -0
- package/lib/commonjs/stay-filters/ToggleChipGroup.js +59 -0
- package/lib/commonjs/stay-filters/ToggleChipGroup.js.map +1 -0
- package/lib/commonjs/stay-filters/index.js +76 -0
- package/lib/commonjs/stay-filters/index.js.map +1 -0
- package/lib/commonjs/stay-filters/types.js +6 -0
- package/lib/commonjs/stay-filters/types.js.map +1 -0
- package/lib/commonjs/stay-search/DateFlexibilityChips.js +54 -0
- package/lib/commonjs/stay-search/DateFlexibilityChips.js.map +1 -0
- package/lib/commonjs/stay-search/DestinationSuggestions.js +178 -0
- package/lib/commonjs/stay-search/DestinationSuggestions.js.map +1 -0
- package/lib/commonjs/stay-search/GuestPicker.js +105 -0
- package/lib/commonjs/stay-search/GuestPicker.js.map +1 -0
- package/lib/commonjs/stay-search/StaySearchBar.js +347 -0
- package/lib/commonjs/stay-search/StaySearchBar.js.map +1 -0
- package/lib/commonjs/stay-search/StaySearchCompact.js +143 -0
- package/lib/commonjs/stay-search/StaySearchCompact.js.map +1 -0
- package/lib/commonjs/stay-search/StaySearchPanel.js +52 -0
- package/lib/commonjs/stay-search/StaySearchPanel.js.map +1 -0
- package/lib/commonjs/stay-search/StaySearchStep.js +136 -0
- package/lib/commonjs/stay-search/StaySearchStep.js.map +1 -0
- package/lib/commonjs/stay-search/constants.js +67 -0
- package/lib/commonjs/stay-search/constants.js.map +1 -0
- package/lib/commonjs/stay-search/context.js +20 -0
- package/lib/commonjs/stay-search/context.js.map +1 -0
- package/lib/commonjs/stay-search/guests.js +30 -0
- package/lib/commonjs/stay-search/guests.js.map +1 -0
- package/lib/commonjs/stay-search/index.js +68 -0
- package/lib/commonjs/stay-search/index.js.map +1 -0
- package/lib/commonjs/stay-search/palette.js +77 -0
- package/lib/commonjs/stay-search/palette.js.map +1 -0
- package/lib/commonjs/stay-search/types.js +6 -0
- package/lib/commonjs/stay-search/types.js.map +1 -0
- package/lib/commonjs/stepper/Stepper.js +220 -0
- package/lib/commonjs/stepper/Stepper.js.map +1 -0
- package/lib/commonjs/stepper/StepperRow.js +76 -0
- package/lib/commonjs/stepper/StepperRow.js.map +1 -0
- package/lib/commonjs/stepper/index.js +20 -0
- package/lib/commonjs/stepper/index.js.map +1 -0
- package/lib/commonjs/stepper/types.js +6 -0
- package/lib/commonjs/stepper/types.js.map +1 -0
- package/lib/module/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/settings-list/SettingsList.js +3 -2
- package/lib/module/settings-list/SettingsList.js.map +1 -1
- package/lib/module/stay-filters/AmenityFilter.js +56 -0
- package/lib/module/stay-filters/AmenityFilter.js.map +1 -0
- package/lib/module/stay-filters/CountFilter.js +96 -0
- package/lib/module/stay-filters/CountFilter.js.map +1 -0
- package/lib/module/stay-filters/FilterChip.js +151 -0
- package/lib/module/stay-filters/FilterChip.js.map +1 -0
- package/lib/module/stay-filters/FilterFooter.js +72 -0
- package/lib/module/stay-filters/FilterFooter.js.map +1 -0
- package/lib/module/stay-filters/FilterSection.js +75 -0
- package/lib/module/stay-filters/FilterSection.js.map +1 -0
- package/lib/module/stay-filters/FilterTextButton.js +113 -0
- package/lib/module/stay-filters/FilterTextButton.js.map +1 -0
- package/lib/module/stay-filters/FilterTriggerButton.js +55 -0
- package/lib/module/stay-filters/FilterTriggerButton.js.map +1 -0
- package/lib/module/stay-filters/PriceHistogram.js +82 -0
- package/lib/module/stay-filters/PriceHistogram.js.map +1 -0
- package/lib/module/stay-filters/PriceRangeFilter.js +146 -0
- package/lib/module/stay-filters/PriceRangeFilter.js.map +1 -0
- package/lib/module/stay-filters/SegmentedFilter.js +39 -0
- package/lib/module/stay-filters/SegmentedFilter.js.map +1 -0
- package/lib/module/stay-filters/SwitchFilterRow.js +65 -0
- package/lib/module/stay-filters/SwitchFilterRow.js.map +1 -0
- package/lib/module/stay-filters/ToggleChipGroup.js +54 -0
- package/lib/module/stay-filters/ToggleChipGroup.js.map +1 -0
- package/lib/module/stay-filters/index.js +13 -0
- package/lib/module/stay-filters/index.js.map +1 -0
- package/lib/module/stay-filters/types.js +4 -0
- package/lib/module/stay-filters/types.js.map +1 -0
- package/lib/module/stay-search/DateFlexibilityChips.js +49 -0
- package/lib/module/stay-search/DateFlexibilityChips.js.map +1 -0
- package/lib/module/stay-search/DestinationSuggestions.js +173 -0
- package/lib/module/stay-search/DestinationSuggestions.js.map +1 -0
- package/lib/module/stay-search/GuestPicker.js +100 -0
- package/lib/module/stay-search/GuestPicker.js.map +1 -0
- package/lib/module/stay-search/StaySearchBar.js +342 -0
- package/lib/module/stay-search/StaySearchBar.js.map +1 -0
- package/lib/module/stay-search/StaySearchCompact.js +138 -0
- package/lib/module/stay-search/StaySearchCompact.js.map +1 -0
- package/lib/module/stay-search/StaySearchPanel.js +47 -0
- package/lib/module/stay-search/StaySearchPanel.js.map +1 -0
- package/lib/module/stay-search/StaySearchStep.js +131 -0
- package/lib/module/stay-search/StaySearchStep.js.map +1 -0
- package/lib/module/stay-search/constants.js +63 -0
- package/lib/module/stay-search/constants.js.map +1 -0
- package/lib/module/stay-search/context.js +16 -0
- package/lib/module/stay-search/context.js.map +1 -0
- package/lib/module/stay-search/guests.js +25 -0
- package/lib/module/stay-search/guests.js.map +1 -0
- package/lib/module/stay-search/index.js +11 -0
- package/lib/module/stay-search/index.js.map +1 -0
- package/lib/module/stay-search/palette.js +72 -0
- package/lib/module/stay-search/palette.js.map +1 -0
- package/lib/module/stay-search/types.js +4 -0
- package/lib/module/stay-search/types.js.map +1 -0
- package/lib/module/stepper/Stepper.js +215 -0
- package/lib/module/stepper/Stepper.js.map +1 -0
- package/lib/module/stepper/StepperRow.js +71 -0
- package/lib/module/stepper/StepperRow.js.map +1 -0
- package/lib/module/stepper/index.js +5 -0
- package/lib/module/stepper/index.js.map +1 -0
- package/lib/module/stepper/types.js +4 -0
- package/lib/module/stepper/types.js.map +1 -0
- package/lib/typescript/commonjs/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/settings-list/SettingsList.d.ts.map +1 -1
- package/lib/typescript/commonjs/settings-list/index.d.ts +1 -1
- package/lib/typescript/commonjs/settings-list/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/settings-list/types.d.ts +10 -0
- package/lib/typescript/commonjs/settings-list/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/stay-filters/AmenityFilter.d.ts +15 -0
- package/lib/typescript/commonjs/stay-filters/AmenityFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/CountFilter.d.ts +21 -0
- package/lib/typescript/commonjs/stay-filters/CountFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterChip.d.ts +17 -0
- package/lib/typescript/commonjs/stay-filters/FilterChip.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterFooter.d.ts +19 -0
- package/lib/typescript/commonjs/stay-filters/FilterFooter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterSection.d.ts +19 -0
- package/lib/typescript/commonjs/stay-filters/FilterSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterTextButton.d.ts +13 -0
- package/lib/typescript/commonjs/stay-filters/FilterTextButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterTriggerButton.d.ts +14 -0
- package/lib/typescript/commonjs/stay-filters/FilterTriggerButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/PriceHistogram.d.ts +22 -0
- package/lib/typescript/commonjs/stay-filters/PriceHistogram.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/PriceRangeFilter.d.ts +8 -0
- package/lib/typescript/commonjs/stay-filters/PriceRangeFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/SegmentedFilter.d.ts +12 -0
- package/lib/typescript/commonjs/stay-filters/SegmentedFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/SwitchFilterRow.d.ts +14 -0
- package/lib/typescript/commonjs/stay-filters/SwitchFilterRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/ToggleChipGroup.d.ts +17 -0
- package/lib/typescript/commonjs/stay-filters/ToggleChipGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/index.d.ts +12 -0
- package/lib/typescript/commonjs/stay-filters/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/types.d.ts +179 -0
- package/lib/typescript/commonjs/stay-filters/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/DateFlexibilityChips.d.ts +12 -0
- package/lib/typescript/commonjs/stay-search/DateFlexibilityChips.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/DestinationSuggestions.d.ts +6 -0
- package/lib/typescript/commonjs/stay-search/DestinationSuggestions.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts +19 -0
- package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/StaySearchBar.d.ts +6 -0
- package/lib/typescript/commonjs/stay-search/StaySearchBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/StaySearchCompact.d.ts +6 -0
- package/lib/typescript/commonjs/stay-search/StaySearchCompact.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/StaySearchPanel.d.ts +13 -0
- package/lib/typescript/commonjs/stay-search/StaySearchPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/StaySearchStep.d.ts +6 -0
- package/lib/typescript/commonjs/stay-search/StaySearchStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/constants.d.ts +27 -0
- package/lib/typescript/commonjs/stay-search/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/context.d.ts +3 -0
- package/lib/typescript/commonjs/stay-search/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/guests.d.ts +13 -0
- package/lib/typescript/commonjs/stay-search/guests.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/index.d.ts +10 -0
- package/lib/typescript/commonjs/stay-search/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/palette.d.ts +48 -0
- package/lib/typescript/commonjs/stay-search/palette.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/types.d.ts +195 -0
- package/lib/typescript/commonjs/stay-search/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/stepper/Stepper.d.ts +6 -0
- package/lib/typescript/commonjs/stepper/Stepper.d.ts.map +1 -0
- package/lib/typescript/commonjs/stepper/StepperRow.d.ts +13 -0
- package/lib/typescript/commonjs/stepper/StepperRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/stepper/index.d.ts +4 -0
- package/lib/typescript/commonjs/stepper/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/stepper/types.d.ts +49 -0
- package/lib/typescript/commonjs/stepper/types.d.ts.map +1 -0
- package/lib/typescript/module/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/settings-list/SettingsList.d.ts.map +1 -1
- package/lib/typescript/module/settings-list/index.d.ts +1 -1
- package/lib/typescript/module/settings-list/index.d.ts.map +1 -1
- package/lib/typescript/module/settings-list/types.d.ts +10 -0
- package/lib/typescript/module/settings-list/types.d.ts.map +1 -1
- package/lib/typescript/module/stay-filters/AmenityFilter.d.ts +15 -0
- package/lib/typescript/module/stay-filters/AmenityFilter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/CountFilter.d.ts +21 -0
- package/lib/typescript/module/stay-filters/CountFilter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterChip.d.ts +17 -0
- package/lib/typescript/module/stay-filters/FilterChip.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterFooter.d.ts +19 -0
- package/lib/typescript/module/stay-filters/FilterFooter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterSection.d.ts +19 -0
- package/lib/typescript/module/stay-filters/FilterSection.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterTextButton.d.ts +13 -0
- package/lib/typescript/module/stay-filters/FilterTextButton.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterTriggerButton.d.ts +14 -0
- package/lib/typescript/module/stay-filters/FilterTriggerButton.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/PriceHistogram.d.ts +22 -0
- package/lib/typescript/module/stay-filters/PriceHistogram.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/PriceRangeFilter.d.ts +8 -0
- package/lib/typescript/module/stay-filters/PriceRangeFilter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/SegmentedFilter.d.ts +12 -0
- package/lib/typescript/module/stay-filters/SegmentedFilter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/SwitchFilterRow.d.ts +14 -0
- package/lib/typescript/module/stay-filters/SwitchFilterRow.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/ToggleChipGroup.d.ts +17 -0
- package/lib/typescript/module/stay-filters/ToggleChipGroup.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/index.d.ts +12 -0
- package/lib/typescript/module/stay-filters/index.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/types.d.ts +179 -0
- package/lib/typescript/module/stay-filters/types.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/DateFlexibilityChips.d.ts +12 -0
- package/lib/typescript/module/stay-search/DateFlexibilityChips.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/DestinationSuggestions.d.ts +6 -0
- package/lib/typescript/module/stay-search/DestinationSuggestions.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/GuestPicker.d.ts +19 -0
- package/lib/typescript/module/stay-search/GuestPicker.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/StaySearchBar.d.ts +6 -0
- package/lib/typescript/module/stay-search/StaySearchBar.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/StaySearchCompact.d.ts +6 -0
- package/lib/typescript/module/stay-search/StaySearchCompact.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/StaySearchPanel.d.ts +13 -0
- package/lib/typescript/module/stay-search/StaySearchPanel.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/StaySearchStep.d.ts +6 -0
- package/lib/typescript/module/stay-search/StaySearchStep.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/constants.d.ts +27 -0
- package/lib/typescript/module/stay-search/constants.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/context.d.ts +3 -0
- package/lib/typescript/module/stay-search/context.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/guests.d.ts +13 -0
- package/lib/typescript/module/stay-search/guests.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/index.d.ts +10 -0
- package/lib/typescript/module/stay-search/index.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/palette.d.ts +48 -0
- package/lib/typescript/module/stay-search/palette.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/types.d.ts +195 -0
- package/lib/typescript/module/stay-search/types.d.ts.map +1 -0
- package/lib/typescript/module/stepper/Stepper.d.ts +6 -0
- package/lib/typescript/module/stepper/Stepper.d.ts.map +1 -0
- package/lib/typescript/module/stepper/StepperRow.d.ts +13 -0
- package/lib/typescript/module/stepper/StepperRow.d.ts.map +1 -0
- package/lib/typescript/module/stepper/index.d.ts +4 -0
- package/lib/typescript/module/stepper/index.d.ts.map +1 -0
- package/lib/typescript/module/stepper/types.d.ts +49 -0
- package/lib/typescript/module/stepper/types.d.ts.map +1 -0
- package/package.json +127 -1
- package/src/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/settings-list/SettingsList.tsx +2 -1
- package/src/settings-list/index.ts +6 -1
- package/src/settings-list/types.ts +11 -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,129 @@
|
|
|
1
|
+
import React, { memo, useEffect, useMemo } from 'react';
|
|
2
|
+
import { Pressable, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { resolveButtonRamps } from '../button/shared';
|
|
5
|
+
import { FOCUS_RING_OFFSET_COLOR, webDataSet } from '../checkbox/shared';
|
|
6
|
+
import { useInteractionState } from '../hooks/use-interaction-state';
|
|
7
|
+
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
8
|
+
import { borderRadius } from '../styles/tokens';
|
|
9
|
+
import type { WebCssStyle } from '../styles/web-view-style';
|
|
10
|
+
import { useTheme } from '../theme/use-theme';
|
|
11
|
+
import { Text } from '../typography';
|
|
12
|
+
import type { FilterIconComponent } from './types';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The selectable pill both chip filters are built from. Internal: `CountFilter`
|
|
16
|
+
* uses it as a radio, `ToggleChipGroup` as a toggle button.
|
|
17
|
+
*
|
|
18
|
+
* geometry 40 tall, full pill, 1px border, px 16 (12 before an icon),
|
|
19
|
+
* 8 between icon (18) and label; minWidth 48 so "1" is not a dot
|
|
20
|
+
* label body-medium
|
|
21
|
+
* rest transparent fill, border neutral-200 (dark neutral-700), text-primary
|
|
22
|
+
* hover border text-primary (web pointer only)
|
|
23
|
+
* press fill neutral-100 (dark neutral-800)
|
|
24
|
+
* selected INVERTED: fill + border text-primary, label + icon the page
|
|
25
|
+
* background — the page's own reading pair turned over, so it is
|
|
26
|
+
* legible in both modes and under every preset
|
|
27
|
+
* disabled 50% opacity
|
|
28
|
+
*
|
|
29
|
+
* Why not `Chip`: its tallest size is 28 (too small a target for a filters
|
|
30
|
+
* sheet on touch) and its selected state promotes to the brand tone, where
|
|
31
|
+
* these pills invert. Colour change only on hover and press — no scale.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
const STYLE_ID = 'bloom-filter-chip-web-css';
|
|
35
|
+
const SELECTOR = '[data-bloom-filter-chip]';
|
|
36
|
+
const FILTER_CHIP_CSS = `
|
|
37
|
+
${SELECTOR} {
|
|
38
|
+
outline: none;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
transition: background-color 120ms ease, border-color 120ms ease;
|
|
41
|
+
}
|
|
42
|
+
${SELECTOR}[aria-disabled="true"] {
|
|
43
|
+
cursor: default;
|
|
44
|
+
}
|
|
45
|
+
${SELECTOR}:focus-visible {
|
|
46
|
+
box-shadow: 0 0 0 2px ${FOCUS_RING_OFFSET_COLOR}, 0 0 0 4px var(--bloom-filter-chip-ring, currentColor);
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
|
|
50
|
+
export const FILTER_CHIP_HEIGHT = 40;
|
|
51
|
+
const ICON_SIZE = 18;
|
|
52
|
+
|
|
53
|
+
export interface FilterChipProps {
|
|
54
|
+
label: string;
|
|
55
|
+
selected: boolean;
|
|
56
|
+
onPress: () => void;
|
|
57
|
+
/** `radio` inside a radiogroup (`aria-checked`), `toggle` a pressed button (`aria-pressed`). */
|
|
58
|
+
mode: 'radio' | 'toggle';
|
|
59
|
+
icon?: FilterIconComponent;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
testID?: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function FilterChipComponent({ label, selected, onPress, mode, icon: Icon, disabled = false, testID }: FilterChipProps) {
|
|
65
|
+
const theme = useTheme();
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
adoptStyleSheet(STYLE_ID, FILTER_CHIP_CSS);
|
|
68
|
+
}, []);
|
|
69
|
+
const { accent, neutral } = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
70
|
+
const { state: hovered, onIn: onHoverIn, onOut: onHoverOut } = useInteractionState();
|
|
71
|
+
const { state: pressed, onIn: onPressIn, onOut: onPressOut } = useInteractionState();
|
|
72
|
+
const dark = theme.isDark;
|
|
73
|
+
const text = theme.colors.text;
|
|
74
|
+
const foreground = selected ? theme.colors.background : text;
|
|
75
|
+
const active = !disabled;
|
|
76
|
+
|
|
77
|
+
const style: WebCssStyle = {
|
|
78
|
+
height: FILTER_CHIP_HEIGHT,
|
|
79
|
+
minWidth: 48,
|
|
80
|
+
paddingLeft: Icon ? 12 : 16,
|
|
81
|
+
paddingRight: 16,
|
|
82
|
+
borderRadius: borderRadius.full,
|
|
83
|
+
borderWidth: 1,
|
|
84
|
+
borderColor: selected || (hovered && active) ? text : dark ? neutral[700] : neutral[200],
|
|
85
|
+
backgroundColor: selected ? text : pressed && active ? (dark ? neutral[800] : neutral[100]) : 'transparent',
|
|
86
|
+
flexDirection: 'row',
|
|
87
|
+
alignItems: 'center',
|
|
88
|
+
justifyContent: 'center',
|
|
89
|
+
gap: 8,
|
|
90
|
+
flexShrink: 0,
|
|
91
|
+
opacity: disabled ? 0.5 : 1,
|
|
92
|
+
'--bloom-filter-chip-ring': accent[500],
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
const stateProps =
|
|
96
|
+
mode === 'radio'
|
|
97
|
+
? { accessibilityState: { checked: selected, disabled }, 'aria-checked': selected }
|
|
98
|
+
: { accessibilityState: { selected, disabled }, 'aria-pressed': selected };
|
|
99
|
+
|
|
100
|
+
return (
|
|
101
|
+
<Pressable
|
|
102
|
+
role={mode === 'radio' ? 'radio' : 'button'}
|
|
103
|
+
accessibilityLabel={label}
|
|
104
|
+
{...stateProps}
|
|
105
|
+
aria-disabled={disabled || undefined}
|
|
106
|
+
disabled={disabled}
|
|
107
|
+
onPress={onPress}
|
|
108
|
+
onPressIn={onPressIn}
|
|
109
|
+
onPressOut={onPressOut}
|
|
110
|
+
onHoverIn={onHoverIn}
|
|
111
|
+
onHoverOut={onHoverOut}
|
|
112
|
+
testID={testID}
|
|
113
|
+
{...webDataSet({ bloomFilterChip: '' })}
|
|
114
|
+
style={style}
|
|
115
|
+
>
|
|
116
|
+
{Icon ? (
|
|
117
|
+
<View style={{ width: ICON_SIZE, height: ICON_SIZE, alignItems: 'center', justifyContent: 'center' }}>
|
|
118
|
+
<Icon width={ICON_SIZE} height={ICON_SIZE} fill={foreground} />
|
|
119
|
+
</View>
|
|
120
|
+
) : null}
|
|
121
|
+
<Text variant="body-medium" numberOfLines={1} style={{ color: foreground }}>
|
|
122
|
+
{label}
|
|
123
|
+
</Text>
|
|
124
|
+
</Pressable>
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export const FilterChip = memo(FilterChipComponent);
|
|
129
|
+
FilterChip.displayName = 'FilterChip';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import React, { memo, useMemo } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { Button } from '../button';
|
|
5
|
+
import { resolveButtonRamps } from '../button/shared';
|
|
6
|
+
import { useTheme } from '../theme/use-theme';
|
|
7
|
+
import { FilterTextButton } from './FilterTextButton';
|
|
8
|
+
import type { FilterFooterProps } from './types';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The action bar under a filters surface.
|
|
12
|
+
*
|
|
13
|
+
* bar 1px hairline on top (neutral-200, dark neutral-800), page
|
|
14
|
+
* background, py 16 px 24
|
|
15
|
+
* left "Clear all" — underlined body-semibold text-primary
|
|
16
|
+
* right primary `Button` at `large`, labelled by `resultsLabel`; `loading`
|
|
17
|
+
* is the Button's own loading state (spinner, width kept, presses
|
|
18
|
+
* ignored) while the count is fetched
|
|
19
|
+
*
|
|
20
|
+
* It is sticky by PLACEMENT, not by positioning: render it after the scrolling
|
|
21
|
+
* body, outside it, so it stays put while the sections scroll (see the docs).
|
|
22
|
+
*/
|
|
23
|
+
function FilterFooterComponent({
|
|
24
|
+
resultsLabel,
|
|
25
|
+
onApply,
|
|
26
|
+
onClear,
|
|
27
|
+
clearLabel = 'Clear all',
|
|
28
|
+
clearDisabled = false,
|
|
29
|
+
loading = false,
|
|
30
|
+
applyDisabled = false,
|
|
31
|
+
style,
|
|
32
|
+
testID,
|
|
33
|
+
}: FilterFooterProps) {
|
|
34
|
+
const theme = useTheme();
|
|
35
|
+
const { neutral } = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<View
|
|
39
|
+
testID={testID}
|
|
40
|
+
style={[
|
|
41
|
+
{
|
|
42
|
+
flexDirection: 'row',
|
|
43
|
+
alignItems: 'center',
|
|
44
|
+
justifyContent: 'space-between',
|
|
45
|
+
gap: 16,
|
|
46
|
+
paddingTop: 16,
|
|
47
|
+
paddingBottom: 16,
|
|
48
|
+
paddingLeft: 24,
|
|
49
|
+
paddingRight: 24,
|
|
50
|
+
borderTopWidth: 1,
|
|
51
|
+
borderTopColor: theme.isDark ? neutral[800] : neutral[200],
|
|
52
|
+
backgroundColor: theme.colors.background,
|
|
53
|
+
},
|
|
54
|
+
style,
|
|
55
|
+
]}
|
|
56
|
+
>
|
|
57
|
+
<FilterTextButton
|
|
58
|
+
label={clearLabel}
|
|
59
|
+
onPress={onClear}
|
|
60
|
+
disabled={clearDisabled}
|
|
61
|
+
testID={testID ? `${testID}-clear` : undefined}
|
|
62
|
+
/>
|
|
63
|
+
<Button
|
|
64
|
+
variant="primary"
|
|
65
|
+
size="large"
|
|
66
|
+
onPress={onApply}
|
|
67
|
+
loading={loading}
|
|
68
|
+
disabled={applyDisabled}
|
|
69
|
+
accessibilityLabel={resultsLabel}
|
|
70
|
+
testID={testID ? `${testID}-apply` : undefined}
|
|
71
|
+
>
|
|
72
|
+
{resultsLabel}
|
|
73
|
+
</Button>
|
|
74
|
+
</View>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const FilterFooter = memo(FilterFooterComponent);
|
|
79
|
+
FilterFooter.displayName = 'FilterFooter';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React, { memo, useMemo } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { resolveButtonRamps } from '../button/shared';
|
|
5
|
+
import { useTheme } from '../theme/use-theme';
|
|
6
|
+
import { Text } from '../typography';
|
|
7
|
+
import type { FilterSectionProps } from './types';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* One block of a filters surface.
|
|
11
|
+
*
|
|
12
|
+
* padding 32 above and below
|
|
13
|
+
* title headline-semibold, text-primary, `role="heading"`
|
|
14
|
+
* description body-regular, text-secondary, 4 under the title
|
|
15
|
+
* content 24 under the heading block
|
|
16
|
+
* divider 1px hairline under the section, neutral-200 (dark neutral-800)
|
|
17
|
+
* — `Divider`'s stop, the same one `StepperRow` draws
|
|
18
|
+
*
|
|
19
|
+
* No horizontal padding: the surface the sections stack in owns the side inset,
|
|
20
|
+
* so a section lines up with that surface's own header and footer.
|
|
21
|
+
*/
|
|
22
|
+
function FilterSectionComponent({
|
|
23
|
+
title,
|
|
24
|
+
description,
|
|
25
|
+
children,
|
|
26
|
+
divider = true,
|
|
27
|
+
accessibilityLabel,
|
|
28
|
+
style,
|
|
29
|
+
testID,
|
|
30
|
+
}: FilterSectionProps) {
|
|
31
|
+
const theme = useTheme();
|
|
32
|
+
const { neutral } = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
33
|
+
const name = accessibilityLabel ?? (typeof title === 'string' ? title : undefined);
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<View
|
|
37
|
+
testID={testID}
|
|
38
|
+
role="group"
|
|
39
|
+
accessibilityLabel={name}
|
|
40
|
+
style={[
|
|
41
|
+
{
|
|
42
|
+
paddingTop: 32,
|
|
43
|
+
paddingBottom: 32,
|
|
44
|
+
borderBottomWidth: divider ? 1 : 0,
|
|
45
|
+
borderBottomColor: theme.isDark ? neutral[800] : neutral[200],
|
|
46
|
+
},
|
|
47
|
+
style,
|
|
48
|
+
]}
|
|
49
|
+
>
|
|
50
|
+
<View style={{ gap: 4 }}>
|
|
51
|
+
{typeof title === 'string' ? (
|
|
52
|
+
<Text variant="headline-semibold" role="heading" aria-level={3} style={{ color: theme.colors.text }}>
|
|
53
|
+
{title}
|
|
54
|
+
</Text>
|
|
55
|
+
) : (
|
|
56
|
+
title
|
|
57
|
+
)}
|
|
58
|
+
{description == null ? null : typeof description === 'string' ? (
|
|
59
|
+
<Text variant="body-regular" style={{ color: theme.colors.textSecondary }}>
|
|
60
|
+
{description}
|
|
61
|
+
</Text>
|
|
62
|
+
) : (
|
|
63
|
+
description
|
|
64
|
+
)}
|
|
65
|
+
</View>
|
|
66
|
+
{children == null ? null : <View style={{ marginTop: 24 }}>{children}</View>}
|
|
67
|
+
</View>
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export const FilterSection = memo(FilterSectionComponent);
|
|
72
|
+
FilterSection.displayName = 'FilterSection';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import React, { memo, useEffect, useMemo } from 'react';
|
|
2
|
+
import { Pressable } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { resolveButtonRamps } from '../button/shared';
|
|
5
|
+
import { FOCUS_RING_OFFSET_COLOR, 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
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The underlined text action of a filters surface ("Clear all", "Show more").
|
|
14
|
+
* Internal.
|
|
15
|
+
*
|
|
16
|
+
* label body-semibold, text-primary, underlined
|
|
17
|
+
* hover text-secondary (web pointer); press the same — colour only
|
|
18
|
+
* disabled text-tertiary, not pressable
|
|
19
|
+
* target 8px of padding around the label, taken back out with negative
|
|
20
|
+
* margins so the underline still aligns with the content edge
|
|
21
|
+
*
|
|
22
|
+
* Why not `Button`: its `link` variant paints the accent (or neutral-500) and
|
|
23
|
+
* underlines only on hover; here the underline IS the affordance at rest and the
|
|
24
|
+
* label stays the reading colour, so it sits quietly beside the primary action.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
const STYLE_ID = 'bloom-filter-text-button-web-css';
|
|
28
|
+
const SELECTOR = '[data-bloom-filter-text-button]';
|
|
29
|
+
const CSS = `
|
|
30
|
+
${SELECTOR} {
|
|
31
|
+
outline: none;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
${SELECTOR}[aria-disabled="true"] {
|
|
35
|
+
cursor: default;
|
|
36
|
+
}
|
|
37
|
+
${SELECTOR}:focus-visible {
|
|
38
|
+
box-shadow: 0 0 0 2px ${FOCUS_RING_OFFSET_COLOR}, 0 0 0 4px var(--bloom-filter-text-button-ring, currentColor);
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
|
|
42
|
+
const PAD = 8;
|
|
43
|
+
|
|
44
|
+
export interface FilterTextButtonProps {
|
|
45
|
+
label: string;
|
|
46
|
+
onPress: () => void;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
/** Set for a disclosure ("Show more"); emitted as `aria-expanded`. */
|
|
49
|
+
expanded?: boolean;
|
|
50
|
+
testID?: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function FilterTextButtonComponent({ label, onPress, disabled = false, expanded, testID }: FilterTextButtonProps) {
|
|
54
|
+
const theme = useTheme();
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
adoptStyleSheet(STYLE_ID, CSS);
|
|
57
|
+
}, []);
|
|
58
|
+
const { accent } = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
59
|
+
const { state: hovered, onIn: onHoverIn, onOut: onHoverOut } = useInteractionState();
|
|
60
|
+
const { state: pressed, onIn: onPressIn, onOut: onPressOut } = useInteractionState();
|
|
61
|
+
const color = disabled
|
|
62
|
+
? theme.colors.textTertiary
|
|
63
|
+
: hovered || pressed
|
|
64
|
+
? theme.colors.textSecondary
|
|
65
|
+
: theme.colors.text;
|
|
66
|
+
|
|
67
|
+
const style: WebCssStyle = {
|
|
68
|
+
paddingTop: PAD,
|
|
69
|
+
paddingBottom: PAD,
|
|
70
|
+
paddingLeft: PAD,
|
|
71
|
+
paddingRight: PAD,
|
|
72
|
+
marginTop: -PAD,
|
|
73
|
+
marginBottom: -PAD,
|
|
74
|
+
marginLeft: -PAD,
|
|
75
|
+
marginRight: -PAD,
|
|
76
|
+
borderRadius: 8,
|
|
77
|
+
'--bloom-filter-text-button-ring': accent[500],
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
return (
|
|
81
|
+
<Pressable
|
|
82
|
+
role="button"
|
|
83
|
+
accessibilityLabel={label}
|
|
84
|
+
accessibilityState={expanded === undefined ? { disabled } : { disabled, expanded }}
|
|
85
|
+
aria-expanded={expanded}
|
|
86
|
+
aria-disabled={disabled || undefined}
|
|
87
|
+
disabled={disabled}
|
|
88
|
+
onPress={onPress}
|
|
89
|
+
onPressIn={onPressIn}
|
|
90
|
+
onPressOut={onPressOut}
|
|
91
|
+
onHoverIn={onHoverIn}
|
|
92
|
+
onHoverOut={onHoverOut}
|
|
93
|
+
testID={testID}
|
|
94
|
+
{...webDataSet({ bloomFilterTextButton: '' })}
|
|
95
|
+
style={style}
|
|
96
|
+
>
|
|
97
|
+
<Text variant="body-semibold" style={{ color, textDecorationLine: 'underline' }}>
|
|
98
|
+
{label}
|
|
99
|
+
</Text>
|
|
100
|
+
</Pressable>
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export const FilterTextButton = memo(FilterTextButtonComponent);
|
|
105
|
+
FilterTextButton.displayName = 'FilterTextButton';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React, { memo } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { Badge } from '../badge';
|
|
5
|
+
import { Button } from '../button';
|
|
6
|
+
import { RiEqualizerLine } from '../icons/remix/RiEqualizerLine';
|
|
7
|
+
import type { FilterTriggerButtonProps } from './types';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The button that opens the filters surface: Bloom's `outline` `Button` with
|
|
11
|
+
* `RiEqualizerLine` before "Filters", and — while `count > 0` — a solid
|
|
12
|
+
* text-colour count `Badge` over its top-right corner.
|
|
13
|
+
*
|
|
14
|
+
* The badge is a drawn number, so the button's name carries it too
|
|
15
|
+
* ("Filters, 3 applied").
|
|
16
|
+
*/
|
|
17
|
+
function FilterTriggerButtonComponent({
|
|
18
|
+
count = 0,
|
|
19
|
+
onPress,
|
|
20
|
+
label = 'Filters',
|
|
21
|
+
accessibilityLabel,
|
|
22
|
+
size = 'medium',
|
|
23
|
+
disabled,
|
|
24
|
+
style,
|
|
25
|
+
testID,
|
|
26
|
+
}: FilterTriggerButtonProps) {
|
|
27
|
+
const applied = count > 0;
|
|
28
|
+
const name = accessibilityLabel ?? (applied ? `${label}, ${count} applied` : label);
|
|
29
|
+
|
|
30
|
+
const button = (
|
|
31
|
+
<Button
|
|
32
|
+
variant="outline"
|
|
33
|
+
size={size}
|
|
34
|
+
leadingIcon={RiEqualizerLine}
|
|
35
|
+
onPress={onPress}
|
|
36
|
+
disabled={disabled}
|
|
37
|
+
accessibilityLabel={name}
|
|
38
|
+
testID={testID}
|
|
39
|
+
>
|
|
40
|
+
{label}
|
|
41
|
+
</Button>
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<View style={[{ alignSelf: 'flex-start' }, style]}>
|
|
46
|
+
{applied ? (
|
|
47
|
+
<Badge content={count} max={99} color="default" variant="solid" placement="top-right">
|
|
48
|
+
{button}
|
|
49
|
+
</Badge>
|
|
50
|
+
) : (
|
|
51
|
+
button
|
|
52
|
+
)}
|
|
53
|
+
</View>
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export const FilterTriggerButton = memo(FilterTriggerButtonComponent);
|
|
58
|
+
FilterTriggerButton.displayName = 'FilterTriggerButton';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import React, { memo, useMemo } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { resolveButtonRamps } from '../button/shared';
|
|
5
|
+
import { useTheme } from '../theme/use-theme';
|
|
6
|
+
import type { PriceHistogramProps } from './types';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* How many listings sit at each price, as a row of bars.
|
|
10
|
+
*
|
|
11
|
+
* bars equal width (flex 1), 2px apart, top corners radius 2
|
|
12
|
+
* height count / tallest count × `height` (default 64); a non-empty bucket
|
|
13
|
+
* is at least 2 tall so it stays visible, an empty one draws nothing
|
|
14
|
+
* in range text-primary — a bucket whose MIDPOINT lies inside `value`
|
|
15
|
+
* outside neutral-300 (dark neutral-700)
|
|
16
|
+
*
|
|
17
|
+
* The buckets split `min`..`max` evenly, so the row spans exactly the width a
|
|
18
|
+
* `RangeSlider` with the same bounds maps prices onto: a bar sits over the
|
|
19
|
+
* prices it counts. It is decorative — hidden from assistive technology, since
|
|
20
|
+
* the slider it sits on announces the same range as numbers.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/** Which buckets fall inside the range, by midpoint. Exported for the tests. */
|
|
24
|
+
export function histogramSelection(
|
|
25
|
+
bucketCount: number,
|
|
26
|
+
min: number,
|
|
27
|
+
max: number,
|
|
28
|
+
[low, high]: [number, number],
|
|
29
|
+
): boolean[] {
|
|
30
|
+
const width = bucketCount > 0 ? (max - min) / bucketCount : 0;
|
|
31
|
+
return Array.from({ length: bucketCount }, (_, i) => {
|
|
32
|
+
const mid = min + (i + 0.5) * width;
|
|
33
|
+
return mid >= low && mid <= high;
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const BAR_GAP = 2;
|
|
38
|
+
const BAR_RADIUS = 2;
|
|
39
|
+
const MIN_BAR = 2;
|
|
40
|
+
|
|
41
|
+
function PriceHistogramComponent({ buckets, min, max, value, height = 64, style, testID }: PriceHistogramProps) {
|
|
42
|
+
const theme = useTheme();
|
|
43
|
+
const { neutral } = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
44
|
+
const tallest = buckets.reduce((m, n) => Math.max(m, n), 0);
|
|
45
|
+
const selected = histogramSelection(buckets.length, min, max, value);
|
|
46
|
+
const inColor = theme.colors.text;
|
|
47
|
+
const outColor = theme.isDark ? neutral[700] : neutral[300];
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<View
|
|
51
|
+
testID={testID}
|
|
52
|
+
aria-hidden
|
|
53
|
+
importantForAccessibility="no-hide-descendants"
|
|
54
|
+
accessibilityElementsHidden
|
|
55
|
+
style={[{ height, flexDirection: 'row', alignItems: 'flex-end', gap: BAR_GAP }, style]}
|
|
56
|
+
>
|
|
57
|
+
{buckets.map((count, i) => {
|
|
58
|
+
const barHeight = count <= 0 || tallest <= 0 ? 0 : Math.max(MIN_BAR, (count / tallest) * height);
|
|
59
|
+
return (
|
|
60
|
+
<View
|
|
61
|
+
key={i}
|
|
62
|
+
testID={testID ? `${testID}-bar-${i}` : undefined}
|
|
63
|
+
style={{
|
|
64
|
+
flex: 1,
|
|
65
|
+
minWidth: 0,
|
|
66
|
+
height: barHeight,
|
|
67
|
+
borderTopLeftRadius: BAR_RADIUS,
|
|
68
|
+
borderTopRightRadius: BAR_RADIUS,
|
|
69
|
+
backgroundColor: selected[i] ? inColor : outColor,
|
|
70
|
+
}}
|
|
71
|
+
/>
|
|
72
|
+
);
|
|
73
|
+
})}
|
|
74
|
+
</View>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const PriceHistogram = memo(PriceHistogramComponent);
|
|
79
|
+
PriceHistogram.displayName = 'PriceHistogram';
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import React, { memo, useCallback, useState } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { RangeSlider } from '../slider';
|
|
5
|
+
import { TextFieldInput } from '../text-field';
|
|
6
|
+
import { PriceHistogram } from './PriceHistogram';
|
|
7
|
+
import type { PriceRangeFilterProps } from './types';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A price range: the histogram, a `RangeSlider` whose rail meets the bars'
|
|
11
|
+
* baseline, and a "Minimum" / "Maximum" pair of fields.
|
|
12
|
+
*
|
|
13
|
+
* histogram full width, 64 tall (see `PriceHistogram`)
|
|
14
|
+
* slider Bloom's `RangeSlider`, no value bubbles, pulled up 13px so its
|
|
15
|
+
* 6px rail sits directly under the bars. The slider maps
|
|
16
|
+
* `min`..`max` across its full width and the buckets split the
|
|
17
|
+
* same span evenly, so each bar sits over the prices it counts.
|
|
18
|
+
* fields two floating-label `TextField`s, 16 apart, 24 under the slider
|
|
19
|
+
*
|
|
20
|
+
* THE FIELDS AND THE SLIDER ARE ONE VALUE. At rest a field shows
|
|
21
|
+
* `formatPrice(value)`; focused it shows the bare number for editing, and the
|
|
22
|
+
* typed text is a local draft until blur or submit, when it is parsed, clamped
|
|
23
|
+
* to its own side of the range (the minimum can not pass the maximum), snapped
|
|
24
|
+
* to `step`, and committed through `onValueChange` + `onValueCommit`. A draft
|
|
25
|
+
* that does not parse restores the committed value.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
function clamp(v: number, lo: number, hi: number): number {
|
|
29
|
+
return Math.min(hi, Math.max(lo, v));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function snap(v: number, min: number, step: number): number {
|
|
33
|
+
if (step <= 0) return v;
|
|
34
|
+
const snapped = min + Math.round((v - min) / step) * step;
|
|
35
|
+
const decimals = (String(step).split('.')[1] ?? '').length;
|
|
36
|
+
return decimals > 0 ? Number(snapped.toFixed(decimals)) : snapped;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Parse a typed price ("$1,200" → 1200); `null` when there is no number in it. */
|
|
40
|
+
export function parsePriceInput(text: string): number | null {
|
|
41
|
+
const cleaned = text.replace(/[^0-9.]/g, '');
|
|
42
|
+
if (cleaned === '' || cleaned === '.') return null;
|
|
43
|
+
const n = Number.parseFloat(cleaned);
|
|
44
|
+
return Number.isFinite(n) ? n : null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const RAIL_OFFSET = 13; // (32px track region − 6px rail) / 2
|
|
48
|
+
|
|
49
|
+
function PriceRangeFilterComponent({
|
|
50
|
+
buckets,
|
|
51
|
+
min,
|
|
52
|
+
max,
|
|
53
|
+
value,
|
|
54
|
+
onValueChange,
|
|
55
|
+
onValueCommit,
|
|
56
|
+
formatPrice = String,
|
|
57
|
+
step = 1,
|
|
58
|
+
minLabel = 'Minimum',
|
|
59
|
+
maxLabel = 'Maximum',
|
|
60
|
+
accessibilityLabel = 'Price range',
|
|
61
|
+
histogramHeight = 64,
|
|
62
|
+
disabled = false,
|
|
63
|
+
style,
|
|
64
|
+
testID,
|
|
65
|
+
}: PriceRangeFilterProps) {
|
|
66
|
+
const [draft, setDraft] = useState<{ index: 0 | 1; text: string } | null>(null);
|
|
67
|
+
const hasHistogram = buckets != null && buckets.length > 0;
|
|
68
|
+
|
|
69
|
+
const commitDraft = useCallback(() => {
|
|
70
|
+
if (!draft) return;
|
|
71
|
+
const parsed = parsePriceInput(draft.text);
|
|
72
|
+
setDraft(null);
|
|
73
|
+
if (parsed == null) return;
|
|
74
|
+
const [low, high] = value;
|
|
75
|
+
const next: [number, number] =
|
|
76
|
+
draft.index === 0
|
|
77
|
+
? [clamp(snap(parsed, min, step), min, high), high]
|
|
78
|
+
: [low, clamp(snap(parsed, min, step), low, max)];
|
|
79
|
+
if (next[0] !== low || next[1] !== high) onValueChange(next);
|
|
80
|
+
onValueCommit?.(next);
|
|
81
|
+
}, [draft, value, min, max, step, onValueChange, onValueCommit]);
|
|
82
|
+
|
|
83
|
+
const field = (index: 0 | 1) => {
|
|
84
|
+
const label = index === 0 ? minLabel : maxLabel;
|
|
85
|
+
const editing = draft?.index === index;
|
|
86
|
+
return (
|
|
87
|
+
<View style={{ flex: 1, minWidth: 0 }}>
|
|
88
|
+
<TextFieldInput
|
|
89
|
+
floatingLabel
|
|
90
|
+
label={label}
|
|
91
|
+
accessibilityLabel={label}
|
|
92
|
+
value={editing ? draft.text : formatPrice(value[index])}
|
|
93
|
+
onChangeText={(text) => setDraft({ index, text })}
|
|
94
|
+
onFocus={() => setDraft({ index, text: String(value[index]) })}
|
|
95
|
+
onBlur={commitDraft}
|
|
96
|
+
onSubmitEditing={commitDraft}
|
|
97
|
+
keyboardType="numeric"
|
|
98
|
+
inputMode="numeric"
|
|
99
|
+
returnKeyType="done"
|
|
100
|
+
disabled={disabled}
|
|
101
|
+
testID={testID ? `${testID}-${index === 0 ? 'min' : 'max'}` : undefined}
|
|
102
|
+
/>
|
|
103
|
+
</View>
|
|
104
|
+
);
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
return (
|
|
108
|
+
<View testID={testID} style={[{ width: '100%' }, style]}>
|
|
109
|
+
{hasHistogram ? (
|
|
110
|
+
<PriceHistogram
|
|
111
|
+
buckets={buckets}
|
|
112
|
+
min={min}
|
|
113
|
+
max={max}
|
|
114
|
+
value={value}
|
|
115
|
+
height={histogramHeight}
|
|
116
|
+
testID={testID ? `${testID}-histogram` : undefined}
|
|
117
|
+
/>
|
|
118
|
+
) : null}
|
|
119
|
+
<RangeSlider
|
|
120
|
+
value={value}
|
|
121
|
+
onValueChange={onValueChange}
|
|
122
|
+
onSlidingComplete={onValueCommit}
|
|
123
|
+
min={min}
|
|
124
|
+
max={max}
|
|
125
|
+
step={step}
|
|
126
|
+
disabled={disabled}
|
|
127
|
+
showTooltip={false}
|
|
128
|
+
accessibilityLabel={accessibilityLabel}
|
|
129
|
+
thumbLabels={[minLabel, maxLabel]}
|
|
130
|
+
testID={testID ? `${testID}-slider` : undefined}
|
|
131
|
+
style={hasHistogram ? { marginTop: -RAIL_OFFSET } : undefined}
|
|
132
|
+
/>
|
|
133
|
+
<View style={{ flexDirection: 'row', gap: 16, marginTop: 24 }}>
|
|
134
|
+
{field(0)}
|
|
135
|
+
{field(1)}
|
|
136
|
+
</View>
|
|
137
|
+
</View>
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export const PriceRangeFilter = memo(PriceRangeFilterComponent);
|
|
142
|
+
PriceRangeFilter.displayName = 'PriceRangeFilter';
|