@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,363 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useCallback, useEffect, useMemo, useState } from 'react';
|
|
4
|
+
import { Pressable, View } from 'react-native';
|
|
5
|
+
import { Button } from '../button';
|
|
6
|
+
import { webDataSet } from "../checkbox/shared.js";
|
|
7
|
+
import { bloomShadowStyle } from '../design-tokens/shadows';
|
|
8
|
+
import { useControllableState } from "../hooks/use-controllable-state.js";
|
|
9
|
+
import { useInteractionState } from "../hooks/use-interaction-state.js";
|
|
10
|
+
import { RiArrowDownSLine } from "../icons/remix/RiArrowDownSLine.js";
|
|
11
|
+
import { RiArrowUpSLine } from "../icons/remix/RiArrowUpSLine.js";
|
|
12
|
+
import { Popover, PopoverContent, PopoverTrigger } from '../popover';
|
|
13
|
+
import { Rating } from "../rating/index.js";
|
|
14
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
15
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
16
|
+
import { Text } from "../typography/index.js";
|
|
17
|
+
import { BookingPrice } from "./BookingPrice.js";
|
|
18
|
+
import { GuestPickerCloseProvider } from "../stay-search/context.js";
|
|
19
|
+
import { PriceBreakdown } from "./PriceBreakdown.js";
|
|
20
|
+
import { BOOKING_CARD_MAX_WIDTH, BOOKING_CARD_PADDING, BOOKING_CARD_RADIUS, BOOKING_FIELD_RADIUS, BOOKING_STYLE_ID, BOOKING_WEB_CSS, resolveBookingPalette } from "./shared.js";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The reservation card beside a listing.
|
|
24
|
+
*
|
|
25
|
+
* card up to 372 wide, radius 16, 1px hairline (neutral-200 / 700),
|
|
26
|
+
* shadow-m, padding 24, surface card / neutral-800
|
|
27
|
+
* header price title-3-semibold + unit body-regular (+ struck earlier
|
|
28
|
+
* price), `Rating` small on the right
|
|
29
|
+
* box 24 below; radius 12, 1px neutral-300 / 600; CHECK-IN | CHECKOUT
|
|
30
|
+
* over GUESTS, 1px dividers; each cell caption-2-bold uppercase
|
|
31
|
+
* label over a body-regular value, padding 10 × 12
|
|
32
|
+
* field hover / press wash neutral-100; the OPEN field gets a 2px
|
|
33
|
+
* text-primary outline; keyboard focus a 2px accent ring
|
|
34
|
+
* button 16 below; `Button` primary large, full width
|
|
35
|
+
* note 12 below; body-2-regular text-secondary, centred
|
|
36
|
+
* breakdown 24 below; `PriceBreakdown`
|
|
37
|
+
*
|
|
38
|
+
* Sticky beside a listing is the page's job: the card is a plain block.
|
|
39
|
+
*/
|
|
40
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
41
|
+
function BookingFieldCell({
|
|
42
|
+
label,
|
|
43
|
+
value,
|
|
44
|
+
placeholder,
|
|
45
|
+
active,
|
|
46
|
+
expanded,
|
|
47
|
+
trailing,
|
|
48
|
+
palette,
|
|
49
|
+
onPress,
|
|
50
|
+
style,
|
|
51
|
+
testID,
|
|
52
|
+
...handle
|
|
53
|
+
}) {
|
|
54
|
+
const {
|
|
55
|
+
state: hovered,
|
|
56
|
+
onIn: onHoverIn,
|
|
57
|
+
onOut: onHoverOut
|
|
58
|
+
} = useInteractionState();
|
|
59
|
+
const {
|
|
60
|
+
state: pressed,
|
|
61
|
+
onIn: onPressIn,
|
|
62
|
+
onOut: onPressOut
|
|
63
|
+
} = useInteractionState();
|
|
64
|
+
const shown = value && value.length > 0 ? value : placeholder;
|
|
65
|
+
const cellStyle = {
|
|
66
|
+
flexDirection: 'row',
|
|
67
|
+
alignItems: 'center',
|
|
68
|
+
gap: 8,
|
|
69
|
+
paddingTop: 10,
|
|
70
|
+
paddingBottom: 10,
|
|
71
|
+
paddingLeft: 12,
|
|
72
|
+
paddingRight: 12,
|
|
73
|
+
borderRadius: BOOKING_FIELD_RADIUS,
|
|
74
|
+
backgroundColor: !active && (hovered || pressed) ? palette.highlight : 'transparent',
|
|
75
|
+
'--bloom-booking-ring': palette.ring,
|
|
76
|
+
'--bloom-booking-ring-offset': '-2px'
|
|
77
|
+
};
|
|
78
|
+
return /*#__PURE__*/_jsxs(Pressable
|
|
79
|
+
// First, so the cell's own name wins over the `undefined` a
|
|
80
|
+
// `PopoverTrigger` hands an `asChild` child that carries none — spread
|
|
81
|
+
// last, that explicit `undefined` erased the name (measured in Chrome).
|
|
82
|
+
// The trigger's `aria-expanded` / `aria-haspopup` still come through.
|
|
83
|
+
, {
|
|
84
|
+
...handle,
|
|
85
|
+
...webDataSet({
|
|
86
|
+
bloomBookingFocus: ''
|
|
87
|
+
}),
|
|
88
|
+
accessibilityRole: "button",
|
|
89
|
+
accessibilityLabel: `${label}: ${shown}`,
|
|
90
|
+
accessibilityState: expanded === undefined ? undefined : {
|
|
91
|
+
expanded
|
|
92
|
+
},
|
|
93
|
+
"aria-expanded": expanded ?? handle['aria-expanded'],
|
|
94
|
+
onPress: onPress,
|
|
95
|
+
onHoverIn: onHoverIn,
|
|
96
|
+
onHoverOut: onHoverOut,
|
|
97
|
+
onPressIn: onPressIn,
|
|
98
|
+
onPressOut: onPressOut,
|
|
99
|
+
testID: testID,
|
|
100
|
+
style: [cellStyle, style],
|
|
101
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
102
|
+
style: {
|
|
103
|
+
flex: 1,
|
|
104
|
+
minWidth: 0,
|
|
105
|
+
gap: 2
|
|
106
|
+
},
|
|
107
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
108
|
+
variant: "caption-2-bold",
|
|
109
|
+
numberOfLines: 1,
|
|
110
|
+
style: {
|
|
111
|
+
color: palette.text,
|
|
112
|
+
textTransform: 'uppercase'
|
|
113
|
+
},
|
|
114
|
+
children: label
|
|
115
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
116
|
+
variant: "body-regular",
|
|
117
|
+
numberOfLines: 1,
|
|
118
|
+
style: {
|
|
119
|
+
color: value ? palette.text : palette.textSecondary
|
|
120
|
+
},
|
|
121
|
+
children: shown
|
|
122
|
+
})]
|
|
123
|
+
}), trailing, active ? /*#__PURE__*/_jsx(View, {
|
|
124
|
+
pointerEvents: "none",
|
|
125
|
+
testID: testID ? `${testID}-active` : undefined,
|
|
126
|
+
style: {
|
|
127
|
+
position: 'absolute',
|
|
128
|
+
top: 0,
|
|
129
|
+
left: 0,
|
|
130
|
+
right: 0,
|
|
131
|
+
bottom: 0,
|
|
132
|
+
borderWidth: 2,
|
|
133
|
+
borderColor: palette.active,
|
|
134
|
+
borderRadius: BOOKING_FIELD_RADIUS
|
|
135
|
+
}
|
|
136
|
+
}) : null]
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
function BookingCardComponent({
|
|
140
|
+
price,
|
|
141
|
+
originalPrice,
|
|
142
|
+
priceUnit,
|
|
143
|
+
priceAccessibilityLabel,
|
|
144
|
+
rating,
|
|
145
|
+
reviewCount,
|
|
146
|
+
checkIn,
|
|
147
|
+
checkOut,
|
|
148
|
+
guests,
|
|
149
|
+
onPressDates,
|
|
150
|
+
onPressGuests,
|
|
151
|
+
activeField,
|
|
152
|
+
guestPicker,
|
|
153
|
+
guestsOpen,
|
|
154
|
+
onGuestsOpenChange,
|
|
155
|
+
checkInLabel = 'Check-in',
|
|
156
|
+
checkOutLabel = 'Checkout',
|
|
157
|
+
guestsLabel = 'Guests',
|
|
158
|
+
datePlaceholder = 'Add date',
|
|
159
|
+
reserveLabel,
|
|
160
|
+
checkAvailabilityLabel = 'Check availability',
|
|
161
|
+
onReserve,
|
|
162
|
+
reserveDisabled = false,
|
|
163
|
+
loading = false,
|
|
164
|
+
note,
|
|
165
|
+
breakdown,
|
|
166
|
+
footer,
|
|
167
|
+
style,
|
|
168
|
+
testID
|
|
169
|
+
}) {
|
|
170
|
+
const theme = useTheme();
|
|
171
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
172
|
+
useEffect(() => {
|
|
173
|
+
adoptStyleSheet(BOOKING_STYLE_ID, BOOKING_WEB_CSS);
|
|
174
|
+
}, []);
|
|
175
|
+
const [open, setOpen] = useControllableState({
|
|
176
|
+
value: guestsOpen,
|
|
177
|
+
defaultValue: false,
|
|
178
|
+
onChange: onGuestsOpenChange
|
|
179
|
+
});
|
|
180
|
+
const closeGuests = useCallback(() => setOpen(false), [setOpen]);
|
|
181
|
+
const [boxWidth, setBoxWidth] = useState(undefined);
|
|
182
|
+
const onBoxLayout = useCallback(e => {
|
|
183
|
+
setBoxWidth(Math.round(e.nativeEvent.layout.width));
|
|
184
|
+
}, []);
|
|
185
|
+
const hasGuestPicker = guestPicker != null;
|
|
186
|
+
const active = activeField != null ? activeField : hasGuestPicker && open ? 'guests' : null;
|
|
187
|
+
const knowsOpen = activeField !== undefined;
|
|
188
|
+
const datesSet = Boolean(checkIn) && Boolean(checkOut);
|
|
189
|
+
const buttonLabel = reserveLabel ?? (datesSet ? 'Reserve' : checkAvailabilityLabel);
|
|
190
|
+
const shownNote = note === undefined ? datesSet ? "You won't be charged yet" : null : note;
|
|
191
|
+
const id = part => testID ? `${testID}-${part}` : undefined;
|
|
192
|
+
const Chevron = active === 'guests' ? RiArrowUpSLine : RiArrowDownSLine;
|
|
193
|
+
const guestsCell = /*#__PURE__*/_jsx(BookingFieldCell, {
|
|
194
|
+
label: guestsLabel,
|
|
195
|
+
value: guests,
|
|
196
|
+
placeholder: "",
|
|
197
|
+
active: active === 'guests',
|
|
198
|
+
expanded: hasGuestPicker ? undefined : knowsOpen ? active === 'guests' : undefined,
|
|
199
|
+
palette: palette,
|
|
200
|
+
onPress: onPressGuests ? () => onPressGuests() : undefined,
|
|
201
|
+
trailing: /*#__PURE__*/_jsx(Chevron, {
|
|
202
|
+
width: 20,
|
|
203
|
+
height: 20,
|
|
204
|
+
fill: palette.text
|
|
205
|
+
}),
|
|
206
|
+
testID: id('guests')
|
|
207
|
+
});
|
|
208
|
+
const cardStyle = {
|
|
209
|
+
width: '100%',
|
|
210
|
+
maxWidth: BOOKING_CARD_MAX_WIDTH,
|
|
211
|
+
paddingTop: BOOKING_CARD_PADDING,
|
|
212
|
+
paddingBottom: BOOKING_CARD_PADDING,
|
|
213
|
+
paddingLeft: BOOKING_CARD_PADDING,
|
|
214
|
+
paddingRight: BOOKING_CARD_PADDING,
|
|
215
|
+
borderRadius: BOOKING_CARD_RADIUS,
|
|
216
|
+
borderWidth: 1,
|
|
217
|
+
borderColor: palette.border,
|
|
218
|
+
backgroundColor: palette.surface,
|
|
219
|
+
...bloomShadowStyle('m')
|
|
220
|
+
};
|
|
221
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
222
|
+
testID: testID,
|
|
223
|
+
style: [cardStyle, style],
|
|
224
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
225
|
+
style: {
|
|
226
|
+
flexDirection: 'row',
|
|
227
|
+
alignItems: 'center',
|
|
228
|
+
gap: 12
|
|
229
|
+
},
|
|
230
|
+
children: [/*#__PURE__*/_jsx(BookingPrice, {
|
|
231
|
+
price: price,
|
|
232
|
+
originalPrice: originalPrice,
|
|
233
|
+
priceUnit: priceUnit,
|
|
234
|
+
priceAccessibilityLabel: priceAccessibilityLabel,
|
|
235
|
+
priceVariant: "title-3-semibold",
|
|
236
|
+
unitVariant: "body-regular",
|
|
237
|
+
style: {
|
|
238
|
+
flex: 1,
|
|
239
|
+
minWidth: 0
|
|
240
|
+
},
|
|
241
|
+
testID: id('price')
|
|
242
|
+
}), rating !== undefined ? /*#__PURE__*/_jsx(Rating, {
|
|
243
|
+
value: rating,
|
|
244
|
+
count: reviewCount,
|
|
245
|
+
countStyle: "reviews",
|
|
246
|
+
size: "small"
|
|
247
|
+
}) : null]
|
|
248
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
249
|
+
onLayout: onBoxLayout,
|
|
250
|
+
testID: id('fields'),
|
|
251
|
+
style: {
|
|
252
|
+
marginTop: 24,
|
|
253
|
+
borderWidth: 1,
|
|
254
|
+
borderColor: palette.fieldBorder,
|
|
255
|
+
borderRadius: BOOKING_FIELD_RADIUS
|
|
256
|
+
},
|
|
257
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
258
|
+
style: {
|
|
259
|
+
flexDirection: 'row'
|
|
260
|
+
},
|
|
261
|
+
children: [/*#__PURE__*/_jsx(BookingFieldCell, {
|
|
262
|
+
label: checkInLabel,
|
|
263
|
+
value: checkIn,
|
|
264
|
+
placeholder: datePlaceholder,
|
|
265
|
+
active: active === 'checkIn',
|
|
266
|
+
expanded: knowsOpen ? active === 'checkIn' : undefined,
|
|
267
|
+
palette: palette,
|
|
268
|
+
onPress: onPressDates ? () => onPressDates('checkIn') : undefined,
|
|
269
|
+
style: {
|
|
270
|
+
flex: 1,
|
|
271
|
+
minWidth: 0
|
|
272
|
+
},
|
|
273
|
+
testID: id('check-in')
|
|
274
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
275
|
+
style: {
|
|
276
|
+
width: 1,
|
|
277
|
+
backgroundColor: palette.fieldBorder
|
|
278
|
+
}
|
|
279
|
+
}), /*#__PURE__*/_jsx(BookingFieldCell, {
|
|
280
|
+
label: checkOutLabel,
|
|
281
|
+
value: checkOut,
|
|
282
|
+
placeholder: datePlaceholder,
|
|
283
|
+
active: active === 'checkOut',
|
|
284
|
+
expanded: knowsOpen ? active === 'checkOut' : undefined,
|
|
285
|
+
palette: palette,
|
|
286
|
+
onPress: onPressDates ? () => onPressDates('checkOut') : undefined,
|
|
287
|
+
style: {
|
|
288
|
+
flex: 1,
|
|
289
|
+
minWidth: 0
|
|
290
|
+
},
|
|
291
|
+
testID: id('check-out')
|
|
292
|
+
})]
|
|
293
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
294
|
+
style: {
|
|
295
|
+
height: 1,
|
|
296
|
+
backgroundColor: palette.fieldBorder
|
|
297
|
+
}
|
|
298
|
+
}), hasGuestPicker ? /*#__PURE__*/_jsxs(Popover, {
|
|
299
|
+
open: open,
|
|
300
|
+
onOpenChange: setOpen,
|
|
301
|
+
children: [/*#__PURE__*/_jsx(PopoverTrigger, {
|
|
302
|
+
asChild: true,
|
|
303
|
+
style: {
|
|
304
|
+
alignSelf: 'stretch'
|
|
305
|
+
},
|
|
306
|
+
children: guestsCell
|
|
307
|
+
}), /*#__PURE__*/_jsx(PopoverContent, {
|
|
308
|
+
label: guestsLabel,
|
|
309
|
+
align: "start",
|
|
310
|
+
sideOffset: 8,
|
|
311
|
+
style: boxWidth ? {
|
|
312
|
+
width: boxWidth
|
|
313
|
+
} : undefined,
|
|
314
|
+
children: /*#__PURE__*/_jsx(GuestPickerCloseProvider, {
|
|
315
|
+
value: closeGuests,
|
|
316
|
+
children: guestPicker
|
|
317
|
+
})
|
|
318
|
+
})]
|
|
319
|
+
}) : guestsCell]
|
|
320
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
321
|
+
variant: "primary",
|
|
322
|
+
size: "large",
|
|
323
|
+
fullWidth: true,
|
|
324
|
+
onPress: onReserve,
|
|
325
|
+
disabled: reserveDisabled,
|
|
326
|
+
loading: loading,
|
|
327
|
+
style: {
|
|
328
|
+
marginTop: 16,
|
|
329
|
+
alignSelf: 'stretch'
|
|
330
|
+
},
|
|
331
|
+
testID: id('reserve'),
|
|
332
|
+
children: buttonLabel
|
|
333
|
+
}), shownNote != null ? typeof shownNote === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
334
|
+
variant: "body-2-regular",
|
|
335
|
+
style: {
|
|
336
|
+
marginTop: 12,
|
|
337
|
+
color: palette.textSecondary,
|
|
338
|
+
textAlign: 'center'
|
|
339
|
+
},
|
|
340
|
+
children: shownNote
|
|
341
|
+
}) : /*#__PURE__*/_jsx(View, {
|
|
342
|
+
style: {
|
|
343
|
+
marginTop: 12,
|
|
344
|
+
alignItems: 'center'
|
|
345
|
+
},
|
|
346
|
+
children: shownNote
|
|
347
|
+
}) : null, breakdown ? /*#__PURE__*/_jsx(PriceBreakdown, {
|
|
348
|
+
...breakdown,
|
|
349
|
+
style: [{
|
|
350
|
+
marginTop: 24
|
|
351
|
+
}, breakdown.style]
|
|
352
|
+
}) : null, footer != null ? /*#__PURE__*/_jsx(View, {
|
|
353
|
+
style: {
|
|
354
|
+
marginTop: 24,
|
|
355
|
+
alignItems: 'center'
|
|
356
|
+
},
|
|
357
|
+
children: footer
|
|
358
|
+
}) : null]
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
export const BookingCard = /*#__PURE__*/memo(BookingCardComponent);
|
|
362
|
+
BookingCard.displayName = 'BookingCard';
|
|
363
|
+
//# sourceMappingURL=BookingCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useEffect","useMemo","useState","Pressable","View","Button","webDataSet","bloomShadowStyle","useControllableState","useInteractionState","RiArrowDownSLine","RiArrowUpSLine","Popover","PopoverContent","PopoverTrigger","Rating","adoptStyleSheet","useTheme","Text","BookingPrice","GuestPickerCloseProvider","PriceBreakdown","BOOKING_CARD_MAX_WIDTH","BOOKING_CARD_PADDING","BOOKING_CARD_RADIUS","BOOKING_FIELD_RADIUS","BOOKING_STYLE_ID","BOOKING_WEB_CSS","resolveBookingPalette","jsx","_jsx","jsxs","_jsxs","BookingFieldCell","label","value","placeholder","active","expanded","trailing","palette","onPress","style","testID","handle","state","hovered","onIn","onHoverIn","onOut","onHoverOut","pressed","onPressIn","onPressOut","shown","length","cellStyle","flexDirection","alignItems","gap","paddingTop","paddingBottom","paddingLeft","paddingRight","borderRadius","backgroundColor","highlight","ring","bloomBookingFocus","accessibilityRole","accessibilityLabel","accessibilityState","undefined","children","flex","minWidth","variant","numberOfLines","color","text","textTransform","textSecondary","pointerEvents","position","top","left","right","bottom","borderWidth","borderColor","BookingCardComponent","price","originalPrice","priceUnit","priceAccessibilityLabel","rating","reviewCount","checkIn","checkOut","guests","onPressDates","onPressGuests","activeField","guestPicker","guestsOpen","onGuestsOpenChange","checkInLabel","checkOutLabel","guestsLabel","datePlaceholder","reserveLabel","checkAvailabilityLabel","onReserve","reserveDisabled","loading","note","breakdown","footer","theme","open","setOpen","defaultValue","onChange","closeGuests","boxWidth","setBoxWidth","onBoxLayout","e","Math","round","nativeEvent","layout","width","hasGuestPicker","knowsOpen","datesSet","Boolean","buttonLabel","shownNote","id","part","Chevron","guestsCell","height","fill","cardStyle","maxWidth","border","surface","priceVariant","unitVariant","count","countStyle","size","onLayout","marginTop","fieldBorder","onOpenChange","asChild","alignSelf","align","sideOffset","fullWidth","disabled","textAlign","BookingCard","displayName"],"sourceRoot":"../../../src","sources":["booking/BookingCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC9E,SACEC,SAAS,EACTC,IAAI,QAKC,cAAc;AAErB,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,UAAU,QAAQ,uBAAoB;AAC/C,SAASC,gBAAgB,QAAQ,0BAA0B;AAC3D,SAASC,oBAAoB,QAAQ,oCAAiC;AACtE,SAASC,mBAAmB,QAAQ,mCAAgC;AACpE,SAASC,gBAAgB,QAAQ,oCAAiC;AAClE,SAASC,cAAc,QAAQ,kCAA+B;AAC9D,SAASC,OAAO,EAAEC,cAAc,EAAEC,cAAc,QAAQ,YAAY;AACpE,SAASC,MAAM,QAAQ,oBAAW;AAClC,SAASC,eAAe,QAAQ,gCAA6B;AAE7D,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,SAASC,wBAAwB,QAAQ,2BAAwB;AACjE,SAASC,cAAc,QAAQ,qBAAkB;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AE,EAAE;QAAEjG,UAAU,EAAE;MAAS,CAAE;MAAAe,QAAA,EAAE4C;IAAM,CAAO,CAAC,GAAG,IAAI;EAAA,CAC1F,CAAC;AAEX;AAEA,OAAO,MAAMgD,WAAW,gBAAGvK,IAAI,CAAC4F,oBAAoB,CAAC;AACrD2E,WAAW,CAACC,WAAW,GAAG,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useEffect, useMemo } from 'react';
|
|
4
|
+
import { Pressable } from 'react-native';
|
|
5
|
+
import { webDataSet } from "../checkbox/shared.js";
|
|
6
|
+
import { useInteractionState } from "../hooks/use-interaction-state.js";
|
|
7
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
8
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
9
|
+
import { Text } from "../typography/index.js";
|
|
10
|
+
import { BOOKING_STYLE_ID, BOOKING_WEB_CSS, resolveBookingPalette } from "./shared.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* INTERNAL — the family's underlined text button: a price row's label, the
|
|
14
|
+
* guests panel's "Close", the bar's dates. Underlined at rest, text-secondary
|
|
15
|
+
* under a pointer or a press (colour only, no scale), a focus ring on web.
|
|
16
|
+
*
|
|
17
|
+
* Spreads unknown props onto the `Pressable` so it can be a `PopoverTrigger`'s
|
|
18
|
+
* `asChild` child, which hands it `onPress`, `aria-expanded` and
|
|
19
|
+
* `aria-haspopup`.
|
|
20
|
+
*/
|
|
21
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
+
export function BookingLink({
|
|
23
|
+
children,
|
|
24
|
+
onPress,
|
|
25
|
+
variant = 'body-regular',
|
|
26
|
+
color,
|
|
27
|
+
accessibilityLabel,
|
|
28
|
+
disabled,
|
|
29
|
+
style,
|
|
30
|
+
textStyle,
|
|
31
|
+
testID,
|
|
32
|
+
numberOfLines,
|
|
33
|
+
...handle
|
|
34
|
+
}) {
|
|
35
|
+
const theme = useTheme();
|
|
36
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
adoptStyleSheet(BOOKING_STYLE_ID, BOOKING_WEB_CSS);
|
|
39
|
+
}, []);
|
|
40
|
+
const {
|
|
41
|
+
state: hovered,
|
|
42
|
+
onIn: onHoverIn,
|
|
43
|
+
onOut: onHoverOut
|
|
44
|
+
} = useInteractionState();
|
|
45
|
+
const {
|
|
46
|
+
state: pressed,
|
|
47
|
+
onIn: onPressIn,
|
|
48
|
+
onOut: onPressOut
|
|
49
|
+
} = useInteractionState();
|
|
50
|
+
const ring = {
|
|
51
|
+
borderRadius: 4,
|
|
52
|
+
alignSelf: 'flex-start',
|
|
53
|
+
'--bloom-booking-ring': palette.ring
|
|
54
|
+
};
|
|
55
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
56
|
+
...handle,
|
|
57
|
+
...webDataSet({
|
|
58
|
+
bloomBookingFocus: ''
|
|
59
|
+
}),
|
|
60
|
+
accessibilityRole: "button",
|
|
61
|
+
accessibilityLabel: accessibilityLabel ?? children,
|
|
62
|
+
accessibilityState: {
|
|
63
|
+
disabled: disabled === true
|
|
64
|
+
},
|
|
65
|
+
"aria-disabled": disabled || undefined,
|
|
66
|
+
disabled: disabled,
|
|
67
|
+
onPress: onPress,
|
|
68
|
+
onHoverIn: onHoverIn,
|
|
69
|
+
onHoverOut: onHoverOut,
|
|
70
|
+
onPressIn: onPressIn,
|
|
71
|
+
onPressOut: onPressOut,
|
|
72
|
+
testID: testID,
|
|
73
|
+
style: [ring, style],
|
|
74
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
75
|
+
variant: variant,
|
|
76
|
+
numberOfLines: numberOfLines,
|
|
77
|
+
style: [{
|
|
78
|
+
color: hovered || pressed ? palette.textSecondary : color ?? palette.text,
|
|
79
|
+
textDecorationLine: 'underline'
|
|
80
|
+
}, textStyle],
|
|
81
|
+
children: children
|
|
82
|
+
})
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=BookingLink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useMemo","Pressable","webDataSet","useInteractionState","adoptStyleSheet","useTheme","Text","BOOKING_STYLE_ID","BOOKING_WEB_CSS","resolveBookingPalette","jsx","_jsx","BookingLink","children","onPress","variant","color","accessibilityLabel","disabled","style","textStyle","testID","numberOfLines","handle","theme","palette","state","hovered","onIn","onHoverIn","onOut","onHoverOut","pressed","onPressIn","onPressOut","ring","borderRadius","alignSelf","bloomBookingFocus","accessibilityRole","accessibilityState","undefined","textSecondary","text","textDecorationLine"],"sourceRoot":"../../../src","sources":["booking/BookingLink.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AACjD,SAASC,SAAS,QAAoF,cAAc;AAEpH,SAASC,UAAU,QAAQ,uBAAoB;AAC/C,SAASC,mBAAmB,QAAQ,mCAAgC;AACpE,SAASC,eAAe,QAAQ,gCAA6B;AAE7D,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AAEpC,SAASC,gBAAgB,EAAEC,eAAe,EAAEC,qBAAqB,QAAQ,aAAU;;AAEnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA,SAAAC,GAAA,IAAAC,IAAA;AAwBA,OAAO,SAASC,WAAWA,CAAC;EAC1BC,QAAQ;EACRC,OAAO;EACPC,OAAO,GAAG,cAAc;EACxBC,KAAK;EACLC,kBAAkB;EAClBC,QAAQ;EACRC,KAAK;EACLC,SAAS;EACTC,MAAM;EACNC,aAAa;EACb,GAAGC;AACa,CAAC,EAAE;EACnB,MAAMC,KAAK,GAAGnB,QAAQ,CAAC,CAAC;EACxB,MAAMoB,OAAO,GAAGzB,OAAO,CAAC,MAAMS,qBAAqB,CAACe,KAAK,CAAC,EAAE,CAACA,KAAK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,IAAIS,OAAO,CAACkB,IAAK;QAC3EC,kBAAkB,EAAE;MACtB,CAAC,EACDxB,SAAS,CACT;MAAAP,QAAA,EAEDA;IAAQ,CACL;EAAC,CACE,CAAC;AAEhB","ignoreList":[]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { useMemo } from 'react';
|
|
4
|
+
import { Platform, View } from 'react-native';
|
|
5
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
6
|
+
import { Text } from "../typography/index.js";
|
|
7
|
+
import { priceAccessibilityName, resolveBookingPalette } from "./shared.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
const IS_WEB = Platform.OS === 'web';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* INTERNAL — the price line `BookingCard` and `BookingBar` share: an optional
|
|
13
|
+
* struck earlier price (text-secondary), the price (semibold), the unit
|
|
14
|
+
* (regular), baseline-aligned.
|
|
15
|
+
*
|
|
16
|
+
* It reads as ONE element with a spoken name ("$180 per night, originally
|
|
17
|
+
* $210"): a strikethrough is not announced, so read as text the line would say
|
|
18
|
+
* "$210 $180 night" and invert the offer. Same shape as `Rating` — `role="img"`
|
|
19
|
+
* on web, where a named plain `div` is skipped, one `accessible` node on native.
|
|
20
|
+
*/
|
|
21
|
+
export function BookingPrice({
|
|
22
|
+
price,
|
|
23
|
+
originalPrice,
|
|
24
|
+
priceUnit,
|
|
25
|
+
priceAccessibilityLabel,
|
|
26
|
+
priceVariant,
|
|
27
|
+
unitVariant,
|
|
28
|
+
style,
|
|
29
|
+
testID
|
|
30
|
+
}) {
|
|
31
|
+
const theme = useTheme();
|
|
32
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
33
|
+
const name = priceAccessibilityLabel ?? priceAccessibilityName(price, priceUnit, originalPrice);
|
|
34
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
35
|
+
testID: testID,
|
|
36
|
+
accessible: true,
|
|
37
|
+
accessibilityLabel: name,
|
|
38
|
+
...(IS_WEB ? {
|
|
39
|
+
role: 'img'
|
|
40
|
+
} : null),
|
|
41
|
+
style: [{
|
|
42
|
+
flexDirection: 'row',
|
|
43
|
+
alignItems: 'baseline',
|
|
44
|
+
flexWrap: 'wrap',
|
|
45
|
+
columnGap: 4
|
|
46
|
+
}, style],
|
|
47
|
+
children: [originalPrice ? /*#__PURE__*/_jsx(Text, {
|
|
48
|
+
variant: unitVariant,
|
|
49
|
+
style: {
|
|
50
|
+
color: palette.textSecondary,
|
|
51
|
+
textDecorationLine: 'line-through'
|
|
52
|
+
},
|
|
53
|
+
children: originalPrice
|
|
54
|
+
}) : null, /*#__PURE__*/_jsx(Text, {
|
|
55
|
+
variant: priceVariant,
|
|
56
|
+
style: {
|
|
57
|
+
color: palette.text,
|
|
58
|
+
fontVariant: ['tabular-nums']
|
|
59
|
+
},
|
|
60
|
+
children: price
|
|
61
|
+
}), priceUnit ? /*#__PURE__*/_jsx(Text, {
|
|
62
|
+
variant: unitVariant,
|
|
63
|
+
style: {
|
|
64
|
+
color: palette.text
|
|
65
|
+
},
|
|
66
|
+
children: priceUnit
|
|
67
|
+
}) : null]
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=BookingPrice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useMemo","Platform","View","useTheme","Text","priceAccessibilityName","resolveBookingPalette","jsx","_jsx","jsxs","_jsxs","IS_WEB","OS","BookingPrice","price","originalPrice","priceUnit","priceAccessibilityLabel","priceVariant","unitVariant","style","testID","theme","palette","name","accessible","accessibilityLabel","role","flexDirection","alignItems","flexWrap","columnGap","children","variant","color","textSecondary","textDecorationLine","text","fontVariant"],"sourceRoot":"../../../src","sources":["booking/BookingPrice.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,QAAQ,EAAEC,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AAC,GACL,IAAI,eACRP,IAAA,CAACJ,IAAI;MAAC6B,OAAO,EAAEf,YAAa;MAACE,KAAK,EAAE;QAAEc,KAAK,EAAEX,OAAO,CAACc,IAAI;QAAEC,WAAW,EAAE,CAAC,cAAc;MAAE,CAAE;MAAAN,QAAA,EACxFlB;IAAK,CACF,CAAC,EACNE,SAAS,gBACRR,IAAA,CAACJ,IAAI;MAAC6B,OAAO,EAAEd,WAAY;MAACC,KAAK,EAAE;QAAEc,KAAK,EAAEX,OAAO,CAACc;MAAK,CAAE;MAAAL,QAAA,EACxDhB;IAAS,CACN,CAAC,GACL,IAAI;EAAA,CACJ,CAAC;AAEX","ignoreList":[]}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useMemo } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { Divider } from "../divider/index.js";
|
|
6
|
+
import { Popover, PopoverContent, PopoverTrigger } from '../popover';
|
|
7
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
8
|
+
import { Text } from "../typography/index.js";
|
|
9
|
+
import { BookingLink } from "./BookingLink.js";
|
|
10
|
+
import { discountAmount, resolveBookingPalette } from "./shared.js";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
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({
|
|
25
|
+
row
|
|
26
|
+
}) {
|
|
27
|
+
const theme = useTheme();
|
|
28
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
29
|
+
const discount = row.tone === 'discount';
|
|
30
|
+
const amount = discount ? discountAmount(row.amount) : row.amount;
|
|
31
|
+
const pressable = row.onPressLabel != null || row.details != null;
|
|
32
|
+
const link = /*#__PURE__*/_jsx(BookingLink, {
|
|
33
|
+
onPress: row.onPressLabel,
|
|
34
|
+
textStyle: {
|
|
35
|
+
flexShrink: 1
|
|
36
|
+
},
|
|
37
|
+
children: row.label
|
|
38
|
+
});
|
|
39
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
40
|
+
style: {
|
|
41
|
+
flexDirection: 'row',
|
|
42
|
+
alignItems: 'flex-start',
|
|
43
|
+
gap: 16
|
|
44
|
+
},
|
|
45
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
46
|
+
style: {
|
|
47
|
+
flex: 1,
|
|
48
|
+
minWidth: 0,
|
|
49
|
+
alignItems: 'flex-start'
|
|
50
|
+
},
|
|
51
|
+
children: row.details != null ? /*#__PURE__*/_jsxs(Popover, {
|
|
52
|
+
children: [/*#__PURE__*/_jsx(PopoverTrigger, {
|
|
53
|
+
asChild: true,
|
|
54
|
+
children: link
|
|
55
|
+
}), /*#__PURE__*/_jsx(PopoverContent, {
|
|
56
|
+
label: row.label,
|
|
57
|
+
side: "top",
|
|
58
|
+
align: "start",
|
|
59
|
+
children: row.details
|
|
60
|
+
})]
|
|
61
|
+
}) : pressable ? link : /*#__PURE__*/_jsx(Text, {
|
|
62
|
+
variant: "body-regular",
|
|
63
|
+
style: {
|
|
64
|
+
color: palette.text
|
|
65
|
+
},
|
|
66
|
+
children: row.label
|
|
67
|
+
})
|
|
68
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
69
|
+
variant: "body-regular",
|
|
70
|
+
style: {
|
|
71
|
+
color: discount ? palette.discount : palette.text,
|
|
72
|
+
fontVariant: ['tabular-nums'],
|
|
73
|
+
textAlign: 'right'
|
|
74
|
+
},
|
|
75
|
+
children: amount
|
|
76
|
+
})]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function PriceBreakdownComponent({
|
|
80
|
+
rows,
|
|
81
|
+
totalLabel = 'Total',
|
|
82
|
+
total,
|
|
83
|
+
style,
|
|
84
|
+
testID
|
|
85
|
+
}) {
|
|
86
|
+
const theme = useTheme();
|
|
87
|
+
const palette = useMemo(() => resolveBookingPalette(theme), [theme]);
|
|
88
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
89
|
+
testID: testID,
|
|
90
|
+
style: [{
|
|
91
|
+
gap: 12
|
|
92
|
+
}, style],
|
|
93
|
+
children: [rows.map(row => /*#__PURE__*/_jsx(BreakdownRow, {
|
|
94
|
+
row: row
|
|
95
|
+
}, row.key ?? row.label)), total != null ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
96
|
+
children: [/*#__PURE__*/_jsx(Divider, {
|
|
97
|
+
color: palette.border,
|
|
98
|
+
spacing: 4
|
|
99
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
100
|
+
style: {
|
|
101
|
+
flexDirection: 'row',
|
|
102
|
+
alignItems: 'flex-start',
|
|
103
|
+
gap: 16
|
|
104
|
+
},
|
|
105
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
106
|
+
variant: "headline-semibold",
|
|
107
|
+
style: {
|
|
108
|
+
flex: 1,
|
|
109
|
+
color: palette.text
|
|
110
|
+
},
|
|
111
|
+
children: totalLabel
|
|
112
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
113
|
+
variant: "headline-semibold",
|
|
114
|
+
style: {
|
|
115
|
+
color: palette.text,
|
|
116
|
+
fontVariant: ['tabular-nums'],
|
|
117
|
+
textAlign: 'right'
|
|
118
|
+
},
|
|
119
|
+
children: total
|
|
120
|
+
})]
|
|
121
|
+
})]
|
|
122
|
+
}) : null]
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
export const PriceBreakdown = /*#__PURE__*/memo(PriceBreakdownComponent);
|
|
126
|
+
PriceBreakdown.displayName = 'PriceBreakdown';
|
|
127
|
+
//# sourceMappingURL=PriceBreakdown.js.map
|