@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,355 @@
|
|
|
1
|
+
import React, { memo, useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Pressable,
|
|
4
|
+
View,
|
|
5
|
+
type GestureResponderEvent,
|
|
6
|
+
type LayoutChangeEvent,
|
|
7
|
+
type StyleProp,
|
|
8
|
+
type ViewStyle,
|
|
9
|
+
} from 'react-native';
|
|
10
|
+
|
|
11
|
+
import { Button } from '../button';
|
|
12
|
+
import { webDataSet } from '../checkbox/shared';
|
|
13
|
+
import { bloomShadowStyle } from '../design-tokens/shadows';
|
|
14
|
+
import { useControllableState } from '../hooks/use-controllable-state';
|
|
15
|
+
import { useInteractionState } from '../hooks/use-interaction-state';
|
|
16
|
+
import { RiArrowDownSLine } from '../icons/remix/RiArrowDownSLine';
|
|
17
|
+
import { RiArrowUpSLine } from '../icons/remix/RiArrowUpSLine';
|
|
18
|
+
import { Popover, PopoverContent, PopoverTrigger } from '../popover';
|
|
19
|
+
import { Rating } from '../rating';
|
|
20
|
+
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
21
|
+
import type { WebCssStyle } from '../styles/web-view-style';
|
|
22
|
+
import { useTheme } from '../theme/use-theme';
|
|
23
|
+
import { Text } from '../typography';
|
|
24
|
+
import { BookingPrice } from './BookingPrice';
|
|
25
|
+
import { GuestPickerCloseProvider } from '../stay-search/context';
|
|
26
|
+
import { PriceBreakdown } from './PriceBreakdown';
|
|
27
|
+
import {
|
|
28
|
+
BOOKING_CARD_MAX_WIDTH,
|
|
29
|
+
BOOKING_CARD_PADDING,
|
|
30
|
+
BOOKING_CARD_RADIUS,
|
|
31
|
+
BOOKING_FIELD_RADIUS,
|
|
32
|
+
BOOKING_STYLE_ID,
|
|
33
|
+
BOOKING_WEB_CSS,
|
|
34
|
+
resolveBookingPalette,
|
|
35
|
+
type BookingPalette,
|
|
36
|
+
} from './shared';
|
|
37
|
+
import type { BookingCardProps, BookingFieldKey } from './types';
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The reservation card beside a listing.
|
|
41
|
+
*
|
|
42
|
+
* card up to 372 wide, radius 16, 1px hairline (neutral-200 / 700),
|
|
43
|
+
* shadow-m, padding 24, surface card / neutral-800
|
|
44
|
+
* header price title-3-semibold + unit body-regular (+ struck earlier
|
|
45
|
+
* price), `Rating` small on the right
|
|
46
|
+
* box 24 below; radius 12, 1px neutral-300 / 600; CHECK-IN | CHECKOUT
|
|
47
|
+
* over GUESTS, 1px dividers; each cell caption-2-bold uppercase
|
|
48
|
+
* label over a body-regular value, padding 10 × 12
|
|
49
|
+
* field hover / press wash neutral-100; the OPEN field gets a 2px
|
|
50
|
+
* text-primary outline; keyboard focus a 2px accent ring
|
|
51
|
+
* button 16 below; `Button` primary large, full width
|
|
52
|
+
* note 12 below; body-2-regular text-secondary, centred
|
|
53
|
+
* breakdown 24 below; `PriceBreakdown`
|
|
54
|
+
*
|
|
55
|
+
* Sticky beside a listing is the page's job: the card is a plain block.
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
type FieldHandleProps = Record<string, unknown>;
|
|
59
|
+
|
|
60
|
+
interface BookingFieldCellProps extends FieldHandleProps {
|
|
61
|
+
label: string;
|
|
62
|
+
value?: string;
|
|
63
|
+
placeholder: string;
|
|
64
|
+
active: boolean;
|
|
65
|
+
/** Only set when the card knows whether this field's picker is open. */
|
|
66
|
+
expanded?: boolean;
|
|
67
|
+
trailing?: React.ReactNode;
|
|
68
|
+
palette: BookingPalette;
|
|
69
|
+
onPress?: (event: GestureResponderEvent) => void;
|
|
70
|
+
style?: StyleProp<ViewStyle>;
|
|
71
|
+
testID?: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function BookingFieldCell({
|
|
75
|
+
label,
|
|
76
|
+
value,
|
|
77
|
+
placeholder,
|
|
78
|
+
active,
|
|
79
|
+
expanded,
|
|
80
|
+
trailing,
|
|
81
|
+
palette,
|
|
82
|
+
onPress,
|
|
83
|
+
style,
|
|
84
|
+
testID,
|
|
85
|
+
...handle
|
|
86
|
+
}: BookingFieldCellProps) {
|
|
87
|
+
const { state: hovered, onIn: onHoverIn, onOut: onHoverOut } = useInteractionState();
|
|
88
|
+
const { state: pressed, onIn: onPressIn, onOut: onPressOut } = useInteractionState();
|
|
89
|
+
const shown = value && value.length > 0 ? value : placeholder;
|
|
90
|
+
|
|
91
|
+
const cellStyle: WebCssStyle = {
|
|
92
|
+
flexDirection: 'row',
|
|
93
|
+
alignItems: 'center',
|
|
94
|
+
gap: 8,
|
|
95
|
+
paddingTop: 10,
|
|
96
|
+
paddingBottom: 10,
|
|
97
|
+
paddingLeft: 12,
|
|
98
|
+
paddingRight: 12,
|
|
99
|
+
borderRadius: BOOKING_FIELD_RADIUS,
|
|
100
|
+
backgroundColor: !active && (hovered || pressed) ? palette.highlight : 'transparent',
|
|
101
|
+
'--bloom-booking-ring': palette.ring,
|
|
102
|
+
'--bloom-booking-ring-offset': '-2px',
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
return (
|
|
106
|
+
<Pressable
|
|
107
|
+
// First, so the cell's own name wins over the `undefined` a
|
|
108
|
+
// `PopoverTrigger` hands an `asChild` child that carries none — spread
|
|
109
|
+
// last, that explicit `undefined` erased the name (measured in Chrome).
|
|
110
|
+
// The trigger's `aria-expanded` / `aria-haspopup` still come through.
|
|
111
|
+
{...handle}
|
|
112
|
+
{...webDataSet({ bloomBookingFocus: '' })}
|
|
113
|
+
accessibilityRole="button"
|
|
114
|
+
accessibilityLabel={`${label}: ${shown}`}
|
|
115
|
+
accessibilityState={expanded === undefined ? undefined : { expanded }}
|
|
116
|
+
aria-expanded={expanded ?? (handle['aria-expanded'] as boolean | undefined)}
|
|
117
|
+
onPress={onPress}
|
|
118
|
+
onHoverIn={onHoverIn}
|
|
119
|
+
onHoverOut={onHoverOut}
|
|
120
|
+
onPressIn={onPressIn}
|
|
121
|
+
onPressOut={onPressOut}
|
|
122
|
+
testID={testID}
|
|
123
|
+
style={[cellStyle, style]}
|
|
124
|
+
>
|
|
125
|
+
<View style={{ flex: 1, minWidth: 0, gap: 2 }}>
|
|
126
|
+
<Text
|
|
127
|
+
variant="caption-2-bold"
|
|
128
|
+
numberOfLines={1}
|
|
129
|
+
style={{ color: palette.text, textTransform: 'uppercase' }}
|
|
130
|
+
>
|
|
131
|
+
{label}
|
|
132
|
+
</Text>
|
|
133
|
+
<Text
|
|
134
|
+
variant="body-regular"
|
|
135
|
+
numberOfLines={1}
|
|
136
|
+
style={{ color: value ? palette.text : palette.textSecondary }}
|
|
137
|
+
>
|
|
138
|
+
{shown}
|
|
139
|
+
</Text>
|
|
140
|
+
</View>
|
|
141
|
+
{trailing}
|
|
142
|
+
{active ? (
|
|
143
|
+
<View
|
|
144
|
+
pointerEvents="none"
|
|
145
|
+
testID={testID ? `${testID}-active` : undefined}
|
|
146
|
+
style={{
|
|
147
|
+
position: 'absolute',
|
|
148
|
+
top: 0,
|
|
149
|
+
left: 0,
|
|
150
|
+
right: 0,
|
|
151
|
+
bottom: 0,
|
|
152
|
+
borderWidth: 2,
|
|
153
|
+
borderColor: palette.active,
|
|
154
|
+
borderRadius: BOOKING_FIELD_RADIUS,
|
|
155
|
+
}}
|
|
156
|
+
/>
|
|
157
|
+
) : null}
|
|
158
|
+
</Pressable>
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function BookingCardComponent({
|
|
163
|
+
price,
|
|
164
|
+
originalPrice,
|
|
165
|
+
priceUnit,
|
|
166
|
+
priceAccessibilityLabel,
|
|
167
|
+
rating,
|
|
168
|
+
reviewCount,
|
|
169
|
+
checkIn,
|
|
170
|
+
checkOut,
|
|
171
|
+
guests,
|
|
172
|
+
onPressDates,
|
|
173
|
+
onPressGuests,
|
|
174
|
+
activeField,
|
|
175
|
+
guestPicker,
|
|
176
|
+
guestsOpen,
|
|
177
|
+
onGuestsOpenChange,
|
|
178
|
+
checkInLabel = 'Check-in',
|
|
179
|
+
checkOutLabel = 'Checkout',
|
|
180
|
+
guestsLabel = 'Guests',
|
|
181
|
+
datePlaceholder = 'Add date',
|
|
182
|
+
reserveLabel,
|
|
183
|
+
checkAvailabilityLabel = 'Check availability',
|
|
184
|
+
onReserve,
|
|
185
|
+
reserveDisabled = false,
|
|
186
|
+
loading = false,
|
|
187
|
+
note,
|
|
188
|
+
breakdown,
|
|
189
|
+
footer,
|
|
190
|
+
style,
|
|
191
|
+
testID,
|
|
192
|
+
}: BookingCardProps) {
|
|
193
|
+
const theme = useTheme();
|
|
194
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
195
|
+
useEffect(() => {
|
|
196
|
+
adoptStyleSheet(BOOKING_STYLE_ID, BOOKING_WEB_CSS);
|
|
197
|
+
}, []);
|
|
198
|
+
|
|
199
|
+
const [open, setOpen] = useControllableState<boolean>({
|
|
200
|
+
value: guestsOpen,
|
|
201
|
+
defaultValue: false,
|
|
202
|
+
onChange: onGuestsOpenChange,
|
|
203
|
+
});
|
|
204
|
+
const closeGuests = useCallback(() => setOpen(false), [setOpen]);
|
|
205
|
+
const [boxWidth, setBoxWidth] = useState<number | undefined>(undefined);
|
|
206
|
+
const onBoxLayout = useCallback((e: LayoutChangeEvent) => {
|
|
207
|
+
setBoxWidth(Math.round(e.nativeEvent.layout.width));
|
|
208
|
+
}, []);
|
|
209
|
+
|
|
210
|
+
const hasGuestPicker = guestPicker != null;
|
|
211
|
+
const active: BookingFieldKey | null =
|
|
212
|
+
activeField != null ? activeField : hasGuestPicker && open ? 'guests' : null;
|
|
213
|
+
const knowsOpen = activeField !== undefined;
|
|
214
|
+
const datesSet = Boolean(checkIn) && Boolean(checkOut);
|
|
215
|
+
const buttonLabel = reserveLabel ?? (datesSet ? 'Reserve' : checkAvailabilityLabel);
|
|
216
|
+
const shownNote = note === undefined ? (datesSet ? "You won't be charged yet" : null) : note;
|
|
217
|
+
const id = (part: string) => (testID ? `${testID}-${part}` : undefined);
|
|
218
|
+
|
|
219
|
+
const Chevron = active === 'guests' ? RiArrowUpSLine : RiArrowDownSLine;
|
|
220
|
+
const guestsCell = (
|
|
221
|
+
<BookingFieldCell
|
|
222
|
+
label={guestsLabel}
|
|
223
|
+
value={guests}
|
|
224
|
+
placeholder=""
|
|
225
|
+
active={active === 'guests'}
|
|
226
|
+
expanded={hasGuestPicker ? undefined : knowsOpen ? active === 'guests' : undefined}
|
|
227
|
+
palette={palette}
|
|
228
|
+
onPress={onPressGuests ? () => onPressGuests() : undefined}
|
|
229
|
+
trailing={<Chevron width={20} height={20} fill={palette.text} />}
|
|
230
|
+
testID={id('guests')}
|
|
231
|
+
/>
|
|
232
|
+
);
|
|
233
|
+
|
|
234
|
+
const cardStyle: ViewStyle = {
|
|
235
|
+
width: '100%',
|
|
236
|
+
maxWidth: BOOKING_CARD_MAX_WIDTH,
|
|
237
|
+
paddingTop: BOOKING_CARD_PADDING,
|
|
238
|
+
paddingBottom: BOOKING_CARD_PADDING,
|
|
239
|
+
paddingLeft: BOOKING_CARD_PADDING,
|
|
240
|
+
paddingRight: BOOKING_CARD_PADDING,
|
|
241
|
+
borderRadius: BOOKING_CARD_RADIUS,
|
|
242
|
+
borderWidth: 1,
|
|
243
|
+
borderColor: palette.border,
|
|
244
|
+
backgroundColor: palette.surface,
|
|
245
|
+
...bloomShadowStyle('m'),
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
return (
|
|
249
|
+
<View testID={testID} style={[cardStyle, style]}>
|
|
250
|
+
<View style={{ flexDirection: 'row', alignItems: 'center', gap: 12 }}>
|
|
251
|
+
<BookingPrice
|
|
252
|
+
price={price}
|
|
253
|
+
originalPrice={originalPrice}
|
|
254
|
+
priceUnit={priceUnit}
|
|
255
|
+
priceAccessibilityLabel={priceAccessibilityLabel}
|
|
256
|
+
priceVariant="title-3-semibold"
|
|
257
|
+
unitVariant="body-regular"
|
|
258
|
+
style={{ flex: 1, minWidth: 0 }}
|
|
259
|
+
testID={id('price')}
|
|
260
|
+
/>
|
|
261
|
+
{rating !== undefined ? (
|
|
262
|
+
<Rating value={rating} count={reviewCount} countStyle="reviews" size="small" />
|
|
263
|
+
) : null}
|
|
264
|
+
</View>
|
|
265
|
+
|
|
266
|
+
<View
|
|
267
|
+
onLayout={onBoxLayout}
|
|
268
|
+
testID={id('fields')}
|
|
269
|
+
style={{
|
|
270
|
+
marginTop: 24,
|
|
271
|
+
borderWidth: 1,
|
|
272
|
+
borderColor: palette.fieldBorder,
|
|
273
|
+
borderRadius: BOOKING_FIELD_RADIUS,
|
|
274
|
+
}}
|
|
275
|
+
>
|
|
276
|
+
<View style={{ flexDirection: 'row' }}>
|
|
277
|
+
<BookingFieldCell
|
|
278
|
+
label={checkInLabel}
|
|
279
|
+
value={checkIn}
|
|
280
|
+
placeholder={datePlaceholder}
|
|
281
|
+
active={active === 'checkIn'}
|
|
282
|
+
expanded={knowsOpen ? active === 'checkIn' : undefined}
|
|
283
|
+
palette={palette}
|
|
284
|
+
onPress={onPressDates ? () => onPressDates('checkIn') : undefined}
|
|
285
|
+
style={{ flex: 1, minWidth: 0 }}
|
|
286
|
+
testID={id('check-in')}
|
|
287
|
+
/>
|
|
288
|
+
<View style={{ width: 1, backgroundColor: palette.fieldBorder }} />
|
|
289
|
+
<BookingFieldCell
|
|
290
|
+
label={checkOutLabel}
|
|
291
|
+
value={checkOut}
|
|
292
|
+
placeholder={datePlaceholder}
|
|
293
|
+
active={active === 'checkOut'}
|
|
294
|
+
expanded={knowsOpen ? active === 'checkOut' : undefined}
|
|
295
|
+
palette={palette}
|
|
296
|
+
onPress={onPressDates ? () => onPressDates('checkOut') : undefined}
|
|
297
|
+
style={{ flex: 1, minWidth: 0 }}
|
|
298
|
+
testID={id('check-out')}
|
|
299
|
+
/>
|
|
300
|
+
</View>
|
|
301
|
+
<View style={{ height: 1, backgroundColor: palette.fieldBorder }} />
|
|
302
|
+
{hasGuestPicker ? (
|
|
303
|
+
<Popover open={open} onOpenChange={setOpen}>
|
|
304
|
+
<PopoverTrigger asChild style={{ alignSelf: 'stretch' }}>
|
|
305
|
+
{guestsCell}
|
|
306
|
+
</PopoverTrigger>
|
|
307
|
+
<PopoverContent
|
|
308
|
+
label={guestsLabel}
|
|
309
|
+
align="start"
|
|
310
|
+
sideOffset={8}
|
|
311
|
+
style={boxWidth ? { width: boxWidth } : undefined}
|
|
312
|
+
>
|
|
313
|
+
<GuestPickerCloseProvider value={closeGuests}>{guestPicker}</GuestPickerCloseProvider>
|
|
314
|
+
</PopoverContent>
|
|
315
|
+
</Popover>
|
|
316
|
+
) : (
|
|
317
|
+
guestsCell
|
|
318
|
+
)}
|
|
319
|
+
</View>
|
|
320
|
+
|
|
321
|
+
<Button
|
|
322
|
+
variant="primary"
|
|
323
|
+
size="large"
|
|
324
|
+
fullWidth
|
|
325
|
+
onPress={onReserve}
|
|
326
|
+
disabled={reserveDisabled}
|
|
327
|
+
loading={loading}
|
|
328
|
+
style={{ marginTop: 16, alignSelf: 'stretch' }}
|
|
329
|
+
testID={id('reserve')}
|
|
330
|
+
>
|
|
331
|
+
{buttonLabel}
|
|
332
|
+
</Button>
|
|
333
|
+
|
|
334
|
+
{shownNote != null ? (
|
|
335
|
+
typeof shownNote === 'string' ? (
|
|
336
|
+
<Text
|
|
337
|
+
variant="body-2-regular"
|
|
338
|
+
style={{ marginTop: 12, color: palette.textSecondary, textAlign: 'center' }}
|
|
339
|
+
>
|
|
340
|
+
{shownNote}
|
|
341
|
+
</Text>
|
|
342
|
+
) : (
|
|
343
|
+
<View style={{ marginTop: 12, alignItems: 'center' }}>{shownNote}</View>
|
|
344
|
+
)
|
|
345
|
+
) : null}
|
|
346
|
+
|
|
347
|
+
{breakdown ? <PriceBreakdown {...breakdown} style={[{ marginTop: 24 }, breakdown.style]} /> : null}
|
|
348
|
+
|
|
349
|
+
{footer != null ? <View style={{ marginTop: 24, alignItems: 'center' }}>{footer}</View> : null}
|
|
350
|
+
</View>
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export const BookingCard = memo(BookingCardComponent);
|
|
355
|
+
BookingCard.displayName = 'BookingCard';
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import React, { useEffect, useMemo } from 'react';
|
|
2
|
+
import { Pressable, type GestureResponderEvent, type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { webDataSet } from '../checkbox/shared';
|
|
5
|
+
import { useInteractionState } from '../hooks/use-interaction-state';
|
|
6
|
+
import { adoptStyleSheet } from '../styles/adopt-style-sheet';
|
|
7
|
+
import type { WebCssStyle } from '../styles/web-view-style';
|
|
8
|
+
import { useTheme } from '../theme/use-theme';
|
|
9
|
+
import { Text } from '../typography';
|
|
10
|
+
import type { TypeScaleVariant } from '../typography/scale';
|
|
11
|
+
import { BOOKING_STYLE_ID, BOOKING_WEB_CSS, resolveBookingPalette } from './shared';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* INTERNAL — the family's underlined text button: a price row's label, the
|
|
15
|
+
* guests panel's "Close", the bar's dates. Underlined at rest, text-secondary
|
|
16
|
+
* under a pointer or a press (colour only, no scale), a focus ring on web.
|
|
17
|
+
*
|
|
18
|
+
* Spreads unknown props onto the `Pressable` so it can be a `PopoverTrigger`'s
|
|
19
|
+
* `asChild` child, which hands it `onPress`, `aria-expanded` and
|
|
20
|
+
* `aria-haspopup`.
|
|
21
|
+
*/
|
|
22
|
+
export interface BookingLinkProps {
|
|
23
|
+
children: string;
|
|
24
|
+
onPress?: (event: GestureResponderEvent) => void;
|
|
25
|
+
variant?: TypeScaleVariant;
|
|
26
|
+
/** Colour at rest. Default text-primary. */
|
|
27
|
+
color?: string;
|
|
28
|
+
accessibilityLabel?: string;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
style?: StyleProp<ViewStyle>;
|
|
31
|
+
textStyle?: StyleProp<TextStyle>;
|
|
32
|
+
testID?: string;
|
|
33
|
+
numberOfLines?: number;
|
|
34
|
+
[handleProp: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function BookingLink({
|
|
38
|
+
children,
|
|
39
|
+
onPress,
|
|
40
|
+
variant = 'body-regular',
|
|
41
|
+
color,
|
|
42
|
+
accessibilityLabel,
|
|
43
|
+
disabled,
|
|
44
|
+
style,
|
|
45
|
+
textStyle,
|
|
46
|
+
testID,
|
|
47
|
+
numberOfLines,
|
|
48
|
+
...handle
|
|
49
|
+
}: BookingLinkProps) {
|
|
50
|
+
const theme = useTheme();
|
|
51
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
adoptStyleSheet(BOOKING_STYLE_ID, BOOKING_WEB_CSS);
|
|
54
|
+
}, []);
|
|
55
|
+
const { state: hovered, onIn: onHoverIn, onOut: onHoverOut } = useInteractionState();
|
|
56
|
+
const { state: pressed, onIn: onPressIn, onOut: onPressOut } = useInteractionState();
|
|
57
|
+
|
|
58
|
+
const ring: WebCssStyle = {
|
|
59
|
+
borderRadius: 4,
|
|
60
|
+
alignSelf: 'flex-start',
|
|
61
|
+
'--bloom-booking-ring': palette.ring,
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<Pressable
|
|
66
|
+
{...handle}
|
|
67
|
+
{...webDataSet({ bloomBookingFocus: '' })}
|
|
68
|
+
accessibilityRole="button"
|
|
69
|
+
accessibilityLabel={accessibilityLabel ?? children}
|
|
70
|
+
accessibilityState={{ disabled: disabled === true }}
|
|
71
|
+
aria-disabled={disabled || undefined}
|
|
72
|
+
disabled={disabled}
|
|
73
|
+
onPress={onPress}
|
|
74
|
+
onHoverIn={onHoverIn}
|
|
75
|
+
onHoverOut={onHoverOut}
|
|
76
|
+
onPressIn={onPressIn}
|
|
77
|
+
onPressOut={onPressOut}
|
|
78
|
+
testID={testID}
|
|
79
|
+
style={[ring, style]}
|
|
80
|
+
>
|
|
81
|
+
<Text
|
|
82
|
+
variant={variant}
|
|
83
|
+
numberOfLines={numberOfLines}
|
|
84
|
+
style={[
|
|
85
|
+
{
|
|
86
|
+
color: hovered || pressed ? palette.textSecondary : (color ?? palette.text),
|
|
87
|
+
textDecorationLine: 'underline',
|
|
88
|
+
},
|
|
89
|
+
textStyle,
|
|
90
|
+
]}
|
|
91
|
+
>
|
|
92
|
+
{children}
|
|
93
|
+
</Text>
|
|
94
|
+
</Pressable>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React, { useMemo } from 'react';
|
|
2
|
+
import { Platform, View, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { useTheme } from '../theme/use-theme';
|
|
5
|
+
import { Text } from '../typography';
|
|
6
|
+
import type { TypeScaleVariant } from '../typography/scale';
|
|
7
|
+
import { priceAccessibilityName, resolveBookingPalette } from './shared';
|
|
8
|
+
import type { BookingPriceProps } from './types';
|
|
9
|
+
|
|
10
|
+
const IS_WEB = Platform.OS === 'web';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* INTERNAL — the price line `BookingCard` and `BookingBar` share: an optional
|
|
14
|
+
* struck earlier price (text-secondary), the price (semibold), the unit
|
|
15
|
+
* (regular), baseline-aligned.
|
|
16
|
+
*
|
|
17
|
+
* It reads as ONE element with a spoken name ("$180 per night, originally
|
|
18
|
+
* $210"): a strikethrough is not announced, so read as text the line would say
|
|
19
|
+
* "$210 $180 night" and invert the offer. Same shape as `Rating` — `role="img"`
|
|
20
|
+
* on web, where a named plain `div` is skipped, one `accessible` node on native.
|
|
21
|
+
*/
|
|
22
|
+
export function BookingPrice({
|
|
23
|
+
price,
|
|
24
|
+
originalPrice,
|
|
25
|
+
priceUnit,
|
|
26
|
+
priceAccessibilityLabel,
|
|
27
|
+
priceVariant,
|
|
28
|
+
unitVariant,
|
|
29
|
+
style,
|
|
30
|
+
testID,
|
|
31
|
+
}: BookingPriceProps & {
|
|
32
|
+
priceVariant: TypeScaleVariant;
|
|
33
|
+
unitVariant: TypeScaleVariant;
|
|
34
|
+
style?: StyleProp<ViewStyle>;
|
|
35
|
+
testID?: string;
|
|
36
|
+
}) {
|
|
37
|
+
const theme = useTheme();
|
|
38
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
39
|
+
const name = priceAccessibilityLabel ?? priceAccessibilityName(price, priceUnit, originalPrice);
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<View
|
|
43
|
+
testID={testID}
|
|
44
|
+
accessible
|
|
45
|
+
accessibilityLabel={name}
|
|
46
|
+
{...(IS_WEB ? { role: 'img' as const } : null)}
|
|
47
|
+
style={[{ flexDirection: 'row', alignItems: 'baseline', flexWrap: 'wrap', columnGap: 4 }, style]}
|
|
48
|
+
>
|
|
49
|
+
{originalPrice ? (
|
|
50
|
+
<Text
|
|
51
|
+
variant={unitVariant}
|
|
52
|
+
style={{ color: palette.textSecondary, textDecorationLine: 'line-through' }}
|
|
53
|
+
>
|
|
54
|
+
{originalPrice}
|
|
55
|
+
</Text>
|
|
56
|
+
) : null}
|
|
57
|
+
<Text variant={priceVariant} style={{ color: palette.text, fontVariant: ['tabular-nums'] }}>
|
|
58
|
+
{price}
|
|
59
|
+
</Text>
|
|
60
|
+
{priceUnit ? (
|
|
61
|
+
<Text variant={unitVariant} style={{ color: palette.text }}>
|
|
62
|
+
{priceUnit}
|
|
63
|
+
</Text>
|
|
64
|
+
) : null}
|
|
65
|
+
</View>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import React, { memo, useMemo } from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { Divider } from '../divider';
|
|
5
|
+
import { Popover, PopoverContent, PopoverTrigger } from '../popover';
|
|
6
|
+
import { useTheme } from '../theme/use-theme';
|
|
7
|
+
import { Text } from '../typography';
|
|
8
|
+
import { BookingLink } from './BookingLink';
|
|
9
|
+
import { discountAmount, resolveBookingPalette } from './shared';
|
|
10
|
+
import type { PriceBreakdownProps, PriceBreakdownRow } from './types';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The itemised price: one row per charge, a hairline, a bold total.
|
|
14
|
+
*
|
|
15
|
+
* row label body-regular (underlined button with `onPressLabel`/`details`)
|
|
16
|
+
* amount body-regular, tabular, right-aligned — success colour and a
|
|
17
|
+
* leading "−" for a `discount` row
|
|
18
|
+
* rows 12 apart; 16 above and below the hairline
|
|
19
|
+
* total headline-semibold both sides
|
|
20
|
+
*
|
|
21
|
+
* Amounts arrive formatted — the app owns currency and locale; nothing here
|
|
22
|
+
* adds numbers up.
|
|
23
|
+
*/
|
|
24
|
+
function BreakdownRow({ row }: { row: PriceBreakdownRow }) {
|
|
25
|
+
const theme = useTheme();
|
|
26
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
27
|
+
const discount = row.tone === 'discount';
|
|
28
|
+
const amount = discount ? discountAmount(row.amount) : row.amount;
|
|
29
|
+
const pressable = row.onPressLabel != null || row.details != null;
|
|
30
|
+
|
|
31
|
+
const link = (
|
|
32
|
+
<BookingLink onPress={row.onPressLabel} textStyle={{ flexShrink: 1 }}>
|
|
33
|
+
{row.label}
|
|
34
|
+
</BookingLink>
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<View style={{ flexDirection: 'row', alignItems: 'flex-start', gap: 16 }}>
|
|
39
|
+
<View style={{ flex: 1, minWidth: 0, alignItems: 'flex-start' }}>
|
|
40
|
+
{row.details != null ? (
|
|
41
|
+
<Popover>
|
|
42
|
+
<PopoverTrigger asChild>{link}</PopoverTrigger>
|
|
43
|
+
<PopoverContent label={row.label} side="top" align="start">
|
|
44
|
+
{row.details}
|
|
45
|
+
</PopoverContent>
|
|
46
|
+
</Popover>
|
|
47
|
+
) : pressable ? (
|
|
48
|
+
link
|
|
49
|
+
) : (
|
|
50
|
+
<Text variant="body-regular" style={{ color: palette.text }}>
|
|
51
|
+
{row.label}
|
|
52
|
+
</Text>
|
|
53
|
+
)}
|
|
54
|
+
</View>
|
|
55
|
+
<Text
|
|
56
|
+
variant="body-regular"
|
|
57
|
+
style={{
|
|
58
|
+
color: discount ? palette.discount : palette.text,
|
|
59
|
+
fontVariant: ['tabular-nums'],
|
|
60
|
+
textAlign: 'right',
|
|
61
|
+
}}
|
|
62
|
+
>
|
|
63
|
+
{amount}
|
|
64
|
+
</Text>
|
|
65
|
+
</View>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function PriceBreakdownComponent({ rows, totalLabel = 'Total', total, style, testID }: PriceBreakdownProps) {
|
|
70
|
+
const theme = useTheme();
|
|
71
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
72
|
+
|
|
73
|
+
return (
|
|
74
|
+
<View testID={testID} style={[{ gap: 12 }, style]}>
|
|
75
|
+
{rows.map((row) => (
|
|
76
|
+
<BreakdownRow key={row.key ?? row.label} row={row} />
|
|
77
|
+
))}
|
|
78
|
+
{total != null ? (
|
|
79
|
+
<>
|
|
80
|
+
<Divider color={palette.border} spacing={4} />
|
|
81
|
+
<View style={{ flexDirection: 'row', alignItems: 'flex-start', gap: 16 }}>
|
|
82
|
+
<Text variant="headline-semibold" style={{ flex: 1, color: palette.text }}>
|
|
83
|
+
{totalLabel}
|
|
84
|
+
</Text>
|
|
85
|
+
<Text
|
|
86
|
+
variant="headline-semibold"
|
|
87
|
+
style={{ color: palette.text, fontVariant: ['tabular-nums'], textAlign: 'right' }}
|
|
88
|
+
>
|
|
89
|
+
{total}
|
|
90
|
+
</Text>
|
|
91
|
+
</View>
|
|
92
|
+
</>
|
|
93
|
+
) : null}
|
|
94
|
+
</View>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export const PriceBreakdown = memo(PriceBreakdownComponent);
|
|
99
|
+
PriceBreakdown.displayName = 'PriceBreakdown';
|