@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,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The colours and web CSS every map piece shares.
|
|
5
|
+
*
|
|
6
|
+
* light dark
|
|
7
|
+
* surface card neutral-800
|
|
8
|
+
* hairline neutral-200 neutral-700
|
|
9
|
+
* hover hairline neutral-300 neutral-500
|
|
10
|
+
* hover surface neutral-100 neutral-700 @60% over neutral-800
|
|
11
|
+
* label text-primary text-primary
|
|
12
|
+
* active fill text-primary text-primary (inverted)
|
|
13
|
+
* active label card neutral-900
|
|
14
|
+
* visited fill neutral-100 neutral-900
|
|
15
|
+
* visited hairline neutral-200 neutral-700
|
|
16
|
+
* visited label neutral-500 neutral-400
|
|
17
|
+
* saved heart red-500 red-500
|
|
18
|
+
* saved heart, active red-400 red-700 (on the inverted fill)
|
|
19
|
+
*
|
|
20
|
+
* The surface family is `floating/menu-palette.ts`'s — a marker, the preview
|
|
21
|
+
* card and the search pill are floating things over a map, painted like a
|
|
22
|
+
* menu panel. The elevations are the design tokens' `shadow-s` (at rest) and
|
|
23
|
+
* `shadow-m` (active marker, preview card, search pill).
|
|
24
|
+
*/
|
|
25
|
+
import { Platform } from 'react-native';
|
|
26
|
+
import { colorRamp, DANGER_TABLE, resolveButtonRamps } from "../button/shared.js";
|
|
27
|
+
import { resolveMenuPalette } from "../floating/menu-palette.js";
|
|
28
|
+
const IS_WEB = Platform.OS === 'web';
|
|
29
|
+
/** Pure, so it can be walked over presets and modes. */
|
|
30
|
+
export function resolveMapMarkerPaint(theme) {
|
|
31
|
+
const menu = resolveMenuPalette(theme);
|
|
32
|
+
const {
|
|
33
|
+
accent,
|
|
34
|
+
neutral: n
|
|
35
|
+
} = resolveButtonRamps(theme);
|
|
36
|
+
// `error`, not `negative` — the same red as the listing card's heart: dark
|
|
37
|
+
// mode's `negative` is a pale tint for text and reads salmon on a pill.
|
|
38
|
+
const red = colorRamp(theme.colors.error, DANGER_TABLE);
|
|
39
|
+
const dark = theme.isDark;
|
|
40
|
+
return {
|
|
41
|
+
surface: menu.surface,
|
|
42
|
+
border: menu.border,
|
|
43
|
+
hoverBorder: menu.trigger.hoverBorder,
|
|
44
|
+
hoverSurface: menu.trigger.hoverBackground,
|
|
45
|
+
label: menu.text,
|
|
46
|
+
labelSecondary: dark ? n[400] : n[500],
|
|
47
|
+
activeFill: theme.colors.text,
|
|
48
|
+
activeLabel: dark ? n[900] : theme.colors.card,
|
|
49
|
+
visitedFill: dark ? n[900] : n[100],
|
|
50
|
+
visitedBorder: dark ? n[700] : n[200],
|
|
51
|
+
visitedLabel: dark ? n[400] : n[500],
|
|
52
|
+
heart: red[500],
|
|
53
|
+
activeHeart: dark ? red[700] : red[400],
|
|
54
|
+
placeholder: dark ? n[700] : n[100],
|
|
55
|
+
ring: accent[500]
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** The web-only `dataSet` hook an adopted sheet's selectors hang off. */
|
|
60
|
+
export function mapWebData(data) {
|
|
61
|
+
return IS_WEB ? {
|
|
62
|
+
dataSet: data
|
|
63
|
+
} : {};
|
|
64
|
+
}
|
|
65
|
+
export const MAP_MARKER_STYLE_ID = 'bloom-map-marker-web-css';
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Cursor and keyboard focus ring for every pressable map piece, none of which
|
|
69
|
+
* an inline style can carry.
|
|
70
|
+
*/
|
|
71
|
+
export const MAP_MARKER_CSS = `
|
|
72
|
+
[data-bloom-map-pressable] {
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
outline: none;
|
|
75
|
+
user-select: none;
|
|
76
|
+
}
|
|
77
|
+
[data-bloom-map-pressable]:focus-visible {
|
|
78
|
+
outline: 2px solid var(--bloom-map-ring, currentColor);
|
|
79
|
+
outline-offset: 2px;
|
|
80
|
+
}
|
|
81
|
+
[data-bloom-map-pressable][aria-disabled="true"] {
|
|
82
|
+
cursor: not-allowed;
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
//# sourceMappingURL=shared.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","colorRamp","DANGER_TABLE","resolveButtonRamps","resolveMenuPalette","IS_WEB","OS","resolveMapMarkerPaint","theme","menu","accent","neutral","n","red","colors","error","dark","isDark","surface","border","hoverBorder","trigger","hoverSurface","hoverBackground","label","text","labelSecondary","activeFill","activeLabel","card","visitedFill","visitedBorder","visitedLabel","heart","activeHeart","placeholder","ring","mapWebData","data","dataSet","MAP_MARKER_STYLE_ID","MAP_MARKER_CSS"],"sourceRoot":"../../../src","sources":["map-marker/shared.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,SAASC,SAAS,EAAEC,YAAY,EAAEC,kBAAkB,QAAQ,qBAAkB;AAC9E,SAASC,kBAAkB,QAAQ,6BAA0B;AAG7D,MAAMC,MAAM,GAAGL,QAAQ,CAACM,EAAE,KAAK,KAAK;AAqBpC;AACA,OAAO,SAASC,qBAAqBA,CAACC,KAAY,EAAkB;EAClE,MAAMC,IAAI,GAAGL,kBAAkB,CAACI,KAAK,CAAC;EACtC,MAAM;IAAEE,MAAM;IAAEC,OAAO,EAAEC;EAAE,CAAC,GAAGT,kBAAkB,CAACK,KAAK,CAAC;EACxD;EACA;EACA,MAAMK,GAAG,GAAGZ,SAAS,CAACO,KAAK,CAACM,MAAM,CAACC,KAAK,EAAEb,YAAY,CAAC;EACvD,MAAMc,IAAI,GAAGR,KAAK,CAACS,MAAM;EACzB,OAAO;IACLC,OAAO,EAAET,IAAI,CAACS,OAAO;IACrBC,MAAM,EAAEV,IAAI,CAACU,MAAM;IACnBC,WAAW,EAAEX,IAAI,CAACY,OAAO,CAACD,WAAW;IACrCE,YAAY,EAAEb,IAAI,CAACY,OAAO,CAACE,eAAe;IAC1CC,KAAK,EAAEf,IAAI,CAACgB,IAAI;IAChBC,cAAc,EAAEV,IAAI,GAAGJ,CAAC,CAAC,GAAG,CAAC,GAAGA,CAAC,CAAC,GAAG,CAAC;IACtCe,UAAU,EAAEnB,KAAK,CAACM,MAAM,CAACW,IAAI;IAC7BG,WAAW,EAAEZ,IAAI,GAAGJ,CAAC,CAAC,GAAG,CAAC,GAAGJ,KAAK,CAACM,MAAM,CAACe,IAAI;IAC9CC,WAAW,EAAEd,IAAI,GAAGJ,CAAC,CAAC,GAAG,CAAC,GAAGA,CAAC,CAAC,GAAG,CAAC;IACnCmB,aAAa,EAAEf,IAAI,GAAGJ,CAAC,CAAC,GAAG,CAAC,GAAGA,CAAC,CAAC,GAAG,CAAC;IACrCoB,YAAY,EAAEhB,IAAI,GAAGJ,CAAC,CAAC,GAAG,CAAC,GAAGA,CAAC,CAAC,GAAG,CAAC;IACpCqB,KAAK,EAAEpB,GAAG,CAAC,GAAG,CAAC;IACfqB,WAAW,EAAElB,IAAI,GAAGH,GAAG,CAAC,GAAG,CAAC,GAAGA,GAAG,CAAC,GAAG,CAAC;IACvCsB,WAAW,EAAEnB,IAAI,GAAGJ,CAAC,CAAC,GAAG,CAAC,GAAGA,CAAC,CAAC,GAAG,CAAC;IACnCwB,IAAI,EAAE1B,MAAM,CAAC,GAAG;EAClB,CAAC;AACH;;AAEA;AACA,OAAO,SAAS2B,UAAUA,CAACC,IAA4B,EAA2B;EAChF,OAAOjC,MAAM,GAAG;IAAEkC,OAAO,EAAED;EAAK,CAAC,GAAG,CAAC,CAAC;AACxC;AAEA,OAAO,MAAME,mBAAmB,GAAG,0BAA0B;;AAE7D;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAAG;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["map-marker/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
|
+
import { Platform, View } from 'react-native';
|
|
5
|
+
import { RiStarFill } from "../icons/remix/RiStarFill.js";
|
|
6
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
7
|
+
import { Text } from "../typography/index.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
/**
|
|
10
|
+
* Bloom's compact rating: a star, the value, and an optional review count.
|
|
11
|
+
*
|
|
12
|
+
* star value count
|
|
13
|
+
* small 14 body-2-semibold body-2-regular
|
|
14
|
+
* medium 16 body-semibold body-regular
|
|
15
|
+
*
|
|
16
|
+
* Star and value are text-primary, the count text-secondary; 4px between the
|
|
17
|
+
* star and the value, 4px before the count.
|
|
18
|
+
*
|
|
19
|
+
* It reads as ONE element: a single accessible name ("Rated 4.92 out of 5, 128
|
|
20
|
+
* reviews") on the row — `role="img"` on web, where a plain `div` with an
|
|
21
|
+
* `aria-label` is not announced, and one `accessible` element on native — so a
|
|
22
|
+
* screen reader never reads "star, 4.92, open paren, 128".
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
const SIZE_CONFIG = {
|
|
26
|
+
small: {
|
|
27
|
+
star: 14,
|
|
28
|
+
value: 'body-2-semibold',
|
|
29
|
+
count: 'body-2-regular'
|
|
30
|
+
},
|
|
31
|
+
medium: {
|
|
32
|
+
star: 16,
|
|
33
|
+
value: 'body-semibold',
|
|
34
|
+
count: 'body-regular'
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** 5 → "5.0", 4.9 → "4.9", 4.923 → "4.92". */
|
|
39
|
+
export function formatRatingValue(value) {
|
|
40
|
+
if (typeof value === 'string') return value;
|
|
41
|
+
if (Number.isInteger(value)) return value.toFixed(1);
|
|
42
|
+
return String(Math.round(value * 100) / 100);
|
|
43
|
+
}
|
|
44
|
+
const IS_WEB = Platform.OS === 'web';
|
|
45
|
+
function RatingComponent({
|
|
46
|
+
value,
|
|
47
|
+
count,
|
|
48
|
+
countStyle = 'parenthesis',
|
|
49
|
+
reviewsLabel = 'reviews',
|
|
50
|
+
newLabel = 'New',
|
|
51
|
+
size = 'medium',
|
|
52
|
+
accessibilityLabel,
|
|
53
|
+
style,
|
|
54
|
+
testID
|
|
55
|
+
}) {
|
|
56
|
+
const theme = useTheme();
|
|
57
|
+
const config = SIZE_CONFIG[size];
|
|
58
|
+
const rated = value != null && value !== '';
|
|
59
|
+
const shownValue = rated ? formatRatingValue(value) : newLabel;
|
|
60
|
+
const hasCount = rated && count != null && count !== '';
|
|
61
|
+
const countText = hasCount ? countStyle === 'reviews' ? `· ${count} ${reviewsLabel}` : `(${count})` : null;
|
|
62
|
+
const name = accessibilityLabel ?? (rated ? `Rated ${shownValue} out of 5${hasCount ? `, ${count} ${reviewsLabel}` : ''}` : newLabel);
|
|
63
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
64
|
+
testID: testID,
|
|
65
|
+
accessible: true,
|
|
66
|
+
accessibilityLabel: name,
|
|
67
|
+
...(IS_WEB ? {
|
|
68
|
+
role: 'img'
|
|
69
|
+
} : null),
|
|
70
|
+
style: [{
|
|
71
|
+
flexDirection: 'row',
|
|
72
|
+
alignItems: 'center',
|
|
73
|
+
gap: 4
|
|
74
|
+
}, style],
|
|
75
|
+
children: [/*#__PURE__*/_jsx(RiStarFill, {
|
|
76
|
+
width: config.star,
|
|
77
|
+
height: config.star,
|
|
78
|
+
fill: theme.colors.text
|
|
79
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
80
|
+
variant: config.value,
|
|
81
|
+
style: {
|
|
82
|
+
color: theme.colors.text,
|
|
83
|
+
fontVariant: ['tabular-nums']
|
|
84
|
+
},
|
|
85
|
+
children: shownValue
|
|
86
|
+
}), countText != null && /*#__PURE__*/_jsx(Text, {
|
|
87
|
+
variant: config.count,
|
|
88
|
+
style: {
|
|
89
|
+
color: theme.colors.textSecondary
|
|
90
|
+
},
|
|
91
|
+
children: countText
|
|
92
|
+
})]
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
export const Rating = /*#__PURE__*/memo(RatingComponent);
|
|
96
|
+
Rating.displayName = 'Rating';
|
|
97
|
+
//# sourceMappingURL=Rating.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","Platform","View","RiStarFill","useTheme","Text","jsx","_jsx","jsxs","_jsxs","SIZE_CONFIG","small","star","value","count","medium","formatRatingValue","Number","isInteger","toFixed","String","Math","round","IS_WEB","OS","RatingComponent","countStyle","reviewsLabel","newLabel","size","accessibilityLabel","style","testID","theme","config","rated","shownValue","hasCount","countText","name","accessible","role","flexDirection","alignItems","gap","children","width","height","fill","colors","text","variant","color","fontVariant","textSecondary","Rating","displayName"],"sourceRoot":"../../../src","sources":["rating/Rating.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useMemo } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { resolveButtonRamps } from "../button/shared.js";
|
|
6
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
7
|
+
import { Text } from "../typography/index.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
/**
|
|
10
|
+
* One row of a rating breakdown: label, a 4px bar, and an optional value.
|
|
11
|
+
*
|
|
12
|
+
* label body-regular, text-primary
|
|
13
|
+
* track 4 tall, radius 2, neutral-200 (dark neutral-800)
|
|
14
|
+
* fill text-primary, `value / max` of the track
|
|
15
|
+
* display body-semibold, text-primary, tabular, min width 28, right-aligned
|
|
16
|
+
*
|
|
17
|
+
* Without `labelWidth` the label flexes and the bar is 96 wide, so a column of
|
|
18
|
+
* categories lines up on the right; with it the bar flexes, for a 5→1
|
|
19
|
+
* distribution. The bar is a `progressbar` with flat `aria-value*` (and
|
|
20
|
+
* `aria-valuetext` from `display`), named by `label`.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
const BAR_WIDTH = 96;
|
|
24
|
+
function RatingBarComponent({
|
|
25
|
+
label,
|
|
26
|
+
value,
|
|
27
|
+
max = 5,
|
|
28
|
+
display,
|
|
29
|
+
labelWidth,
|
|
30
|
+
style,
|
|
31
|
+
testID
|
|
32
|
+
}) {
|
|
33
|
+
const theme = useTheme();
|
|
34
|
+
const {
|
|
35
|
+
neutral
|
|
36
|
+
} = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
37
|
+
const safeMax = max > 0 ? max : 1;
|
|
38
|
+
const clamped = Math.min(safeMax, Math.max(0, value));
|
|
39
|
+
const fraction = clamped / safeMax;
|
|
40
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
41
|
+
testID: testID,
|
|
42
|
+
style: [{
|
|
43
|
+
flexDirection: 'row',
|
|
44
|
+
alignItems: 'center',
|
|
45
|
+
gap: 12
|
|
46
|
+
}, style],
|
|
47
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
48
|
+
variant: "body-regular",
|
|
49
|
+
numberOfLines: 1,
|
|
50
|
+
importantForAccessibility: "no",
|
|
51
|
+
accessibilityElementsHidden: true,
|
|
52
|
+
style: [{
|
|
53
|
+
color: theme.colors.text
|
|
54
|
+
}, labelWidth === undefined ? {
|
|
55
|
+
flex: 1,
|
|
56
|
+
minWidth: 0
|
|
57
|
+
} : {
|
|
58
|
+
width: labelWidth
|
|
59
|
+
}],
|
|
60
|
+
children: label
|
|
61
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
62
|
+
accessibilityRole: "progressbar",
|
|
63
|
+
accessibilityLabel: label,
|
|
64
|
+
"aria-valuemin": 0,
|
|
65
|
+
"aria-valuemax": safeMax,
|
|
66
|
+
"aria-valuenow": clamped,
|
|
67
|
+
"aria-valuetext": display,
|
|
68
|
+
testID: testID ? `${testID}-bar` : undefined,
|
|
69
|
+
style: [{
|
|
70
|
+
height: 4,
|
|
71
|
+
borderRadius: 2,
|
|
72
|
+
overflow: 'hidden',
|
|
73
|
+
backgroundColor: theme.isDark ? neutral[800] : neutral[200]
|
|
74
|
+
}, labelWidth === undefined ? {
|
|
75
|
+
width: BAR_WIDTH
|
|
76
|
+
} : {
|
|
77
|
+
flex: 1,
|
|
78
|
+
minWidth: 0
|
|
79
|
+
}],
|
|
80
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
81
|
+
testID: testID ? `${testID}-fill` : undefined,
|
|
82
|
+
style: {
|
|
83
|
+
width: `${fraction * 100}%`,
|
|
84
|
+
height: '100%',
|
|
85
|
+
backgroundColor: theme.colors.text
|
|
86
|
+
}
|
|
87
|
+
})
|
|
88
|
+
}), display != null && /*#__PURE__*/_jsx(Text, {
|
|
89
|
+
variant: "body-semibold",
|
|
90
|
+
importantForAccessibility: "no",
|
|
91
|
+
accessibilityElementsHidden: true,
|
|
92
|
+
style: {
|
|
93
|
+
color: theme.colors.text,
|
|
94
|
+
minWidth: 28,
|
|
95
|
+
textAlign: 'right',
|
|
96
|
+
fontVariant: ['tabular-nums']
|
|
97
|
+
},
|
|
98
|
+
children: display
|
|
99
|
+
})]
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
export const RatingBar = /*#__PURE__*/memo(RatingBarComponent);
|
|
103
|
+
RatingBar.displayName = 'RatingBar';
|
|
104
|
+
//# sourceMappingURL=RatingBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useMemo","View","resolveButtonRamps","useTheme","Text","jsx","_jsx","jsxs","_jsxs","BAR_WIDTH","RatingBarComponent","label","value","max","display","labelWidth","style","testID","theme","neutral","safeMax","clamped","Math","min","fraction","flexDirection","alignItems","gap","children","variant","numberOfLines","importantForAccessibility","accessibilityElementsHidden","color","colors","text","undefined","flex","minWidth","width","accessibilityRole","accessibilityLabel","height","borderRadius","overflow","backgroundColor","isDark","textAlign","fontVariant","RatingBar","displayName"],"sourceRoot":"../../../src","sources":["rating/RatingBar.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Rating","RatingBar"],"sourceRoot":"../../../src","sources":["rating/index.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,aAAU;AACjC,SAASC,SAAS,QAAQ,gBAAa","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["rating/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useState } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { FilterTextButton } from "./FilterTextButton.js";
|
|
6
|
+
import { ToggleChipGroup } from "./ToggleChipGroup.js";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
+
/**
|
|
9
|
+
* A `ToggleChipGroup` that shows its first `collapsedCount` options and a
|
|
10
|
+
* "Show more" link that reveals the rest (and turns into "Show less").
|
|
11
|
+
*
|
|
12
|
+
* link underlined body-semibold, 24 under the pills, `aria-expanded`
|
|
13
|
+
*
|
|
14
|
+
* A SELECTED option past the fold stays visible while collapsed, so collapsing
|
|
15
|
+
* never hides a filter the user has applied. Expansion is uncontrolled.
|
|
16
|
+
*/
|
|
17
|
+
export function AmenityFilter({
|
|
18
|
+
options,
|
|
19
|
+
value,
|
|
20
|
+
collapsedCount = 6,
|
|
21
|
+
showMoreLabel = 'Show more',
|
|
22
|
+
showLessLabel = 'Show less',
|
|
23
|
+
defaultExpanded = false,
|
|
24
|
+
style,
|
|
25
|
+
testID,
|
|
26
|
+
...group
|
|
27
|
+
}) {
|
|
28
|
+
const [expanded, setExpanded] = useState(defaultExpanded);
|
|
29
|
+
const foldable = options.length > collapsedCount;
|
|
30
|
+
const selected = new Set(value);
|
|
31
|
+
const visible = expanded || !foldable ? options : options.filter((option, index) => index < collapsedCount || selected.has(option.value));
|
|
32
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
33
|
+
testID: testID,
|
|
34
|
+
style: [{
|
|
35
|
+
gap: 24
|
|
36
|
+
}, style],
|
|
37
|
+
children: [/*#__PURE__*/_jsx(ToggleChipGroup, {
|
|
38
|
+
...group,
|
|
39
|
+
options: visible,
|
|
40
|
+
value: value,
|
|
41
|
+
testID: testID ? `${testID}-group` : undefined
|
|
42
|
+
}), foldable ? /*#__PURE__*/_jsx(View, {
|
|
43
|
+
style: {
|
|
44
|
+
alignItems: 'flex-start'
|
|
45
|
+
},
|
|
46
|
+
children: /*#__PURE__*/_jsx(FilterTextButton, {
|
|
47
|
+
label: expanded ? showLessLabel : showMoreLabel,
|
|
48
|
+
expanded: expanded,
|
|
49
|
+
onPress: () => setExpanded(e => !e),
|
|
50
|
+
testID: testID ? `${testID}-toggle` : undefined
|
|
51
|
+
})
|
|
52
|
+
}) : null]
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
AmenityFilter.displayName = 'AmenityFilter';
|
|
56
|
+
//# sourceMappingURL=AmenityFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useState","View","FilterTextButton","ToggleChipGroup","jsx","_jsx","jsxs","_jsxs","AmenityFilter","options","value","collapsedCount","showMoreLabel","showLessLabel","defaultExpanded","style","testID","group","expanded","setExpanded","foldable","length","selected","Set","visible","filter","option","index","has","gap","children","undefined","alignItems","label","onPress","e","displayName"],"sourceRoot":"../../../src","sources":["stay-filters/AmenityFilter.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,gBAAgB,QAAQ,uBAAoB;AACrD,SAASC,eAAe,QAAQ,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAA4B;EACvDC,OAAO;EACPC,KAAK;EACLC,cAAc,GAAG,CAAC;EAClBC,aAAa,GAAG,WAAW;EAC3BC,aAAa,GAAG,WAAW;EAC3BC,eAAe,GAAG,KAAK;EACvBC,KAAK;EACLC,MAAM;EACN,GAAGC;AACkB,CAAC,EAAE;EACxB,MAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAGnB,QAAQ,CAACc,eAAe,CAAC;EACzD,MAAMM,QAAQ,GAAGX,OAAO,CAACY,MAAM,GAAGV,cAAc;EAChD,MAAMW,QAAQ,GAAG,IAAIC,GAAG,CAAIb,KAAK,CAAC;EAClC,MAAMc,OAAO,GACXN,QAAQ,IAAI,CAACE,QAAQ,GACjBX,OAAO,GACPA,OAAO,CAACgB,MAAM,CAAC,CAACC,MAAM,EAAEC,KAAK,KAAKA,KAAK,GAAGhB,cAAc,IAAIW,QAAQ,CAACM,GAAG,CAACF,MAAM,CAAChB,KAAK,CAAC,CAAC;EAE7F,oBACEH,KAAA,CAACN,IAAI;IAACe,MAAM,EAAEA,MAAO;IAACD,KAAK,EAAE,CAAC;MAAEc,GAAG,EAAE;IAAG,CAAC,EAAEd,KAAK,CAAE;IAAAe,QAAA,gBAChDzB,IAAA,CAACF,eAAe;MAAA,GACVc,KAAK;MACTR,OAAO,EAAEe,OAAQ;MACjBd,KAAK,EAAEA,KAAM;MACbM,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,QAAQ,GAAGe;IAAU,CAChD,CAAC,EACDX,QAAQ,gBACPf,IAAA,CAACJ,IAAI;MAACc,KAAK,EAAE;QAAEiB,UAAU,EAAE;MAAa,CAAE;MAAAF,QAAA,eACxCzB,IAAA,CAACH,gBAAgB;QACf+B,KAAK,EAAEf,QAAQ,GAAGL,aAAa,GAAGD,aAAc;QAChDM,QAAQ,EAAEA,QAAS;QACnBgB,OAAO,EAAEA,CAAA,KAAMf,WAAW,CAAEgB,CAAC,IAAK,CAACA,CAAC,CAAE;QACtCnB,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,SAAS,GAAGe;MAAU,CACjD;IAAC,CACE,CAAC,GACL,IAAI;EAAA,CACJ,CAAC;AAEX;AAEAvB,aAAa,CAAC4B,WAAW,GAAG,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
|
+
import { ScrollView, View } from 'react-native';
|
|
5
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
6
|
+
import { Text } from "../typography/index.js";
|
|
7
|
+
import { FilterChip } from "./FilterChip.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
/**
|
|
10
|
+
* A minimum count ("Bedrooms") picked from a row of pills: "Any", then
|
|
11
|
+
* `min`..`max`, the last reading `8+`.
|
|
12
|
+
*
|
|
13
|
+
* title body-regular, text-primary, 16 above the pills
|
|
14
|
+
* pills the filter pill (40 tall, full pill), 8 apart; the selected one is
|
|
15
|
+
* inverted. One row that scrolls sideways when it does not fit, so the
|
|
16
|
+
* counts stay in reading order on a narrow screen instead of wrapping.
|
|
17
|
+
*
|
|
18
|
+
* Single select, and never empty: "Any" is the `null` value. A `radiogroup` of
|
|
19
|
+
* `radio`s, named by `title` — each pill names only its number.
|
|
20
|
+
*
|
|
21
|
+
* For an exact count the user nudges rather than picks (beds on a small
|
|
22
|
+
* screen), `StepperRow` from `@oxy.so/bloom/stepper` is the alternative.
|
|
23
|
+
*/
|
|
24
|
+
function CountFilterComponent({
|
|
25
|
+
title,
|
|
26
|
+
value,
|
|
27
|
+
onValueChange,
|
|
28
|
+
max = 8,
|
|
29
|
+
min = 1,
|
|
30
|
+
anyLabel = 'Any',
|
|
31
|
+
formatCount = (n, isMax) => isMax ? `${n}+` : String(n),
|
|
32
|
+
accessibilityLabel,
|
|
33
|
+
disabled = false,
|
|
34
|
+
style,
|
|
35
|
+
testID
|
|
36
|
+
}) {
|
|
37
|
+
const theme = useTheme();
|
|
38
|
+
const name = accessibilityLabel ?? (typeof title === 'string' ? title : undefined);
|
|
39
|
+
const counts = [];
|
|
40
|
+
for (let n = min; n <= max; n += 1) counts.push(n);
|
|
41
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
42
|
+
testID: testID,
|
|
43
|
+
style: [{
|
|
44
|
+
gap: 16
|
|
45
|
+
}, style],
|
|
46
|
+
children: [typeof title === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
47
|
+
variant: "body-regular",
|
|
48
|
+
style: {
|
|
49
|
+
color: theme.colors.text
|
|
50
|
+
},
|
|
51
|
+
children: title
|
|
52
|
+
}) : title, /*#__PURE__*/_jsxs(ScrollView, {
|
|
53
|
+
horizontal: true,
|
|
54
|
+
showsHorizontalScrollIndicator: false,
|
|
55
|
+
role: "radiogroup",
|
|
56
|
+
accessibilityLabel: name,
|
|
57
|
+
"aria-disabled": disabled || undefined
|
|
58
|
+
// 4px of room on every side so a pill's focus ring is not clipped by the
|
|
59
|
+
// scroller, taken back out with negative margins so the pills still
|
|
60
|
+
// line up with the title.
|
|
61
|
+
,
|
|
62
|
+
style: {
|
|
63
|
+
marginTop: -4,
|
|
64
|
+
marginBottom: -4,
|
|
65
|
+
marginLeft: -4,
|
|
66
|
+
marginRight: -4
|
|
67
|
+
},
|
|
68
|
+
contentContainerStyle: {
|
|
69
|
+
flexDirection: 'row',
|
|
70
|
+
gap: 8,
|
|
71
|
+
paddingTop: 4,
|
|
72
|
+
paddingBottom: 4,
|
|
73
|
+
paddingLeft: 4,
|
|
74
|
+
paddingRight: 4
|
|
75
|
+
},
|
|
76
|
+
children: [/*#__PURE__*/_jsx(FilterChip, {
|
|
77
|
+
mode: "radio",
|
|
78
|
+
label: anyLabel,
|
|
79
|
+
selected: value == null,
|
|
80
|
+
onPress: () => onValueChange(null),
|
|
81
|
+
disabled: disabled,
|
|
82
|
+
testID: testID ? `${testID}-any` : undefined
|
|
83
|
+
}), counts.map(n => /*#__PURE__*/_jsx(FilterChip, {
|
|
84
|
+
mode: "radio",
|
|
85
|
+
label: formatCount(n, n === max),
|
|
86
|
+
selected: value === n,
|
|
87
|
+
onPress: () => onValueChange(n),
|
|
88
|
+
disabled: disabled,
|
|
89
|
+
testID: testID ? `${testID}-${n}` : undefined
|
|
90
|
+
}, n))]
|
|
91
|
+
})]
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
export const CountFilter = /*#__PURE__*/memo(CountFilterComponent);
|
|
95
|
+
CountFilter.displayName = 'CountFilter';
|
|
96
|
+
//# sourceMappingURL=CountFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","ScrollView","View","useTheme","Text","FilterChip","jsx","_jsx","jsxs","_jsxs","CountFilterComponent","title","value","onValueChange","max","min","anyLabel","formatCount","n","isMax","String","accessibilityLabel","disabled","style","testID","theme","name","undefined","counts","push","gap","children","variant","color","colors","text","horizontal","showsHorizontalScrollIndicator","role","marginTop","marginBottom","marginLeft","marginRight","contentContainerStyle","flexDirection","paddingTop","paddingBottom","paddingLeft","paddingRight","mode","label","selected","onPress","map","CountFilter","displayName"],"sourceRoot":"../../../src","sources":["stay-filters/CountFilter.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useEffect, useMemo } from 'react';
|
|
4
|
+
import { Pressable, View } from 'react-native';
|
|
5
|
+
import { resolveButtonRamps } from "../button/shared.js";
|
|
6
|
+
import { FOCUS_RING_OFFSET_COLOR, webDataSet } from "../checkbox/shared.js";
|
|
7
|
+
import { useInteractionState } from "../hooks/use-interaction-state.js";
|
|
8
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
9
|
+
import { borderRadius } from "../styles/tokens.js";
|
|
10
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
11
|
+
import { Text } from "../typography/index.js";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
/**
|
|
14
|
+
* The selectable pill both chip filters are built from. Internal: `CountFilter`
|
|
15
|
+
* uses it as a radio, `ToggleChipGroup` as a toggle button.
|
|
16
|
+
*
|
|
17
|
+
* geometry 40 tall, full pill, 1px border, px 16 (12 before an icon),
|
|
18
|
+
* 8 between icon (18) and label; minWidth 48 so "1" is not a dot
|
|
19
|
+
* label body-medium
|
|
20
|
+
* rest transparent fill, border neutral-200 (dark neutral-700), text-primary
|
|
21
|
+
* hover border text-primary (web pointer only)
|
|
22
|
+
* press fill neutral-100 (dark neutral-800)
|
|
23
|
+
* selected INVERTED: fill + border text-primary, label + icon the page
|
|
24
|
+
* background — the page's own reading pair turned over, so it is
|
|
25
|
+
* legible in both modes and under every preset
|
|
26
|
+
* disabled 50% opacity
|
|
27
|
+
*
|
|
28
|
+
* Why not `Chip`: its tallest size is 28 (too small a target for a filters
|
|
29
|
+
* sheet on touch) and its selected state promotes to the brand tone, where
|
|
30
|
+
* these pills invert. Colour change only on hover and press — no scale.
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
const STYLE_ID = 'bloom-filter-chip-web-css';
|
|
34
|
+
const SELECTOR = '[data-bloom-filter-chip]';
|
|
35
|
+
const FILTER_CHIP_CSS = `
|
|
36
|
+
${SELECTOR} {
|
|
37
|
+
outline: none;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
transition: background-color 120ms ease, border-color 120ms ease;
|
|
40
|
+
}
|
|
41
|
+
${SELECTOR}[aria-disabled="true"] {
|
|
42
|
+
cursor: default;
|
|
43
|
+
}
|
|
44
|
+
${SELECTOR}:focus-visible {
|
|
45
|
+
box-shadow: 0 0 0 2px ${FOCUS_RING_OFFSET_COLOR}, 0 0 0 4px var(--bloom-filter-chip-ring, currentColor);
|
|
46
|
+
}
|
|
47
|
+
`;
|
|
48
|
+
export const FILTER_CHIP_HEIGHT = 40;
|
|
49
|
+
const ICON_SIZE = 18;
|
|
50
|
+
function FilterChipComponent({
|
|
51
|
+
label,
|
|
52
|
+
selected,
|
|
53
|
+
onPress,
|
|
54
|
+
mode,
|
|
55
|
+
icon: Icon,
|
|
56
|
+
disabled = false,
|
|
57
|
+
testID
|
|
58
|
+
}) {
|
|
59
|
+
const theme = useTheme();
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
adoptStyleSheet(STYLE_ID, FILTER_CHIP_CSS);
|
|
62
|
+
}, []);
|
|
63
|
+
const {
|
|
64
|
+
accent,
|
|
65
|
+
neutral
|
|
66
|
+
} = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
67
|
+
const {
|
|
68
|
+
state: hovered,
|
|
69
|
+
onIn: onHoverIn,
|
|
70
|
+
onOut: onHoverOut
|
|
71
|
+
} = useInteractionState();
|
|
72
|
+
const {
|
|
73
|
+
state: pressed,
|
|
74
|
+
onIn: onPressIn,
|
|
75
|
+
onOut: onPressOut
|
|
76
|
+
} = useInteractionState();
|
|
77
|
+
const dark = theme.isDark;
|
|
78
|
+
const text = theme.colors.text;
|
|
79
|
+
const foreground = selected ? theme.colors.background : text;
|
|
80
|
+
const active = !disabled;
|
|
81
|
+
const style = {
|
|
82
|
+
height: FILTER_CHIP_HEIGHT,
|
|
83
|
+
minWidth: 48,
|
|
84
|
+
paddingLeft: Icon ? 12 : 16,
|
|
85
|
+
paddingRight: 16,
|
|
86
|
+
borderRadius: borderRadius.full,
|
|
87
|
+
borderWidth: 1,
|
|
88
|
+
borderColor: selected || hovered && active ? text : dark ? neutral[700] : neutral[200],
|
|
89
|
+
backgroundColor: selected ? text : pressed && active ? dark ? neutral[800] : neutral[100] : 'transparent',
|
|
90
|
+
flexDirection: 'row',
|
|
91
|
+
alignItems: 'center',
|
|
92
|
+
justifyContent: 'center',
|
|
93
|
+
gap: 8,
|
|
94
|
+
flexShrink: 0,
|
|
95
|
+
opacity: disabled ? 0.5 : 1,
|
|
96
|
+
'--bloom-filter-chip-ring': accent[500]
|
|
97
|
+
};
|
|
98
|
+
const stateProps = mode === 'radio' ? {
|
|
99
|
+
accessibilityState: {
|
|
100
|
+
checked: selected,
|
|
101
|
+
disabled
|
|
102
|
+
},
|
|
103
|
+
'aria-checked': selected
|
|
104
|
+
} : {
|
|
105
|
+
accessibilityState: {
|
|
106
|
+
selected,
|
|
107
|
+
disabled
|
|
108
|
+
},
|
|
109
|
+
'aria-pressed': selected
|
|
110
|
+
};
|
|
111
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
112
|
+
role: mode === 'radio' ? 'radio' : 'button',
|
|
113
|
+
accessibilityLabel: label,
|
|
114
|
+
...stateProps,
|
|
115
|
+
"aria-disabled": disabled || undefined,
|
|
116
|
+
disabled: disabled,
|
|
117
|
+
onPress: onPress,
|
|
118
|
+
onPressIn: onPressIn,
|
|
119
|
+
onPressOut: onPressOut,
|
|
120
|
+
onHoverIn: onHoverIn,
|
|
121
|
+
onHoverOut: onHoverOut,
|
|
122
|
+
testID: testID,
|
|
123
|
+
...webDataSet({
|
|
124
|
+
bloomFilterChip: ''
|
|
125
|
+
}),
|
|
126
|
+
style: style,
|
|
127
|
+
children: [Icon ? /*#__PURE__*/_jsx(View, {
|
|
128
|
+
style: {
|
|
129
|
+
width: ICON_SIZE,
|
|
130
|
+
height: ICON_SIZE,
|
|
131
|
+
alignItems: 'center',
|
|
132
|
+
justifyContent: 'center'
|
|
133
|
+
},
|
|
134
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
135
|
+
width: ICON_SIZE,
|
|
136
|
+
height: ICON_SIZE,
|
|
137
|
+
fill: foreground
|
|
138
|
+
})
|
|
139
|
+
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
140
|
+
variant: "body-medium",
|
|
141
|
+
numberOfLines: 1,
|
|
142
|
+
style: {
|
|
143
|
+
color: foreground
|
|
144
|
+
},
|
|
145
|
+
children: label
|
|
146
|
+
})]
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
export const FilterChip = /*#__PURE__*/memo(FilterChipComponent);
|
|
150
|
+
FilterChip.displayName = 'FilterChip';
|
|
151
|
+
//# sourceMappingURL=FilterChip.js.map
|