@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,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { Button } from '../button';
|
|
6
|
+
import { resolveButtonRamps } from "../button/shared.js";
|
|
7
|
+
import { StepperRow } from "../stepper/index.js";
|
|
8
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
9
|
+
import { Text } from "../typography/index.js";
|
|
10
|
+
import { DEFAULT_GUEST_DESCRIPTIONS, DEFAULT_GUEST_LABELS, GUEST_KINDS } from "./constants.js";
|
|
11
|
+
import { useGuestPickerClose } from "./context.js";
|
|
12
|
+
import { applyGuestCount, minimumAdults } from "./guests.js";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
/** The kinds `maxGuests` counts; infants and pets ride free. */
|
|
15
|
+
const COUNTED = ['adults', 'children'];
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Adults / children / infants / pets as `StepperRow`s with hairlines between
|
|
19
|
+
* them — the one guests picker, used by the search bar's "Who" panel and the
|
|
20
|
+
* booking card's guests popover alike. Then an optional note and "Close".
|
|
21
|
+
*
|
|
22
|
+
* Two rules:
|
|
23
|
+
* - while any child, infant or pet is counted, adults cannot go below 1 (the
|
|
24
|
+
* adults `−` disables there), and adding one of them with no adults sets
|
|
25
|
+
* adults to 1 — see `applyGuestCount`;
|
|
26
|
+
* - `maxGuests` caps adults + children: each of their `+` buttons disables at
|
|
27
|
+
* the cap by lowering that row's `max` to what is left, so the stepper's own
|
|
28
|
+
* clamping enforces it.
|
|
29
|
+
*/
|
|
30
|
+
function GuestPickerComponent({
|
|
31
|
+
value,
|
|
32
|
+
onChange,
|
|
33
|
+
max,
|
|
34
|
+
maxGuests,
|
|
35
|
+
kinds = GUEST_KINDS,
|
|
36
|
+
labels,
|
|
37
|
+
descriptions,
|
|
38
|
+
note,
|
|
39
|
+
onClose,
|
|
40
|
+
closeLabel = 'Close',
|
|
41
|
+
size = 'medium',
|
|
42
|
+
style,
|
|
43
|
+
testID
|
|
44
|
+
}) {
|
|
45
|
+
const theme = useTheme();
|
|
46
|
+
const {
|
|
47
|
+
neutral
|
|
48
|
+
} = resolveButtonRamps(theme);
|
|
49
|
+
const contextClose = useGuestPickerClose();
|
|
50
|
+
const close = onClose ?? contextClose;
|
|
51
|
+
const counted = COUNTED.reduce((sum, kind) => sum + value[kind], 0);
|
|
52
|
+
const maxFor = kind => {
|
|
53
|
+
let cap = typeof max === 'number' ? max : max?.[kind];
|
|
54
|
+
if (maxGuests != null && COUNTED.includes(kind)) {
|
|
55
|
+
const room = value[kind] + Math.max(0, maxGuests - counted);
|
|
56
|
+
cap = cap == null ? room : Math.min(cap, room);
|
|
57
|
+
}
|
|
58
|
+
return cap;
|
|
59
|
+
};
|
|
60
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
61
|
+
style: style,
|
|
62
|
+
testID: testID,
|
|
63
|
+
children: [kinds.map((kind, index) => {
|
|
64
|
+
const description = descriptions && kind in descriptions ? descriptions[kind] : DEFAULT_GUEST_DESCRIPTIONS[kind];
|
|
65
|
+
return /*#__PURE__*/_jsx(StepperRow, {
|
|
66
|
+
title: labels?.[kind] ?? DEFAULT_GUEST_LABELS[kind],
|
|
67
|
+
description: description ?? undefined,
|
|
68
|
+
value: value[kind],
|
|
69
|
+
min: kind === 'adults' ? minimumAdults(value) : 0,
|
|
70
|
+
max: maxFor(kind),
|
|
71
|
+
size: size,
|
|
72
|
+
onValueChange: n => onChange(applyGuestCount(value, kind, n)),
|
|
73
|
+
divider: index < kinds.length - 1,
|
|
74
|
+
testID: testID ? `${testID}-${kind}` : undefined
|
|
75
|
+
}, kind);
|
|
76
|
+
}), note != null ? typeof note === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
77
|
+
variant: "body-2-regular",
|
|
78
|
+
style: {
|
|
79
|
+
color: neutral[500],
|
|
80
|
+
paddingTop: 8
|
|
81
|
+
},
|
|
82
|
+
children: note
|
|
83
|
+
}) : note : null, close ? /*#__PURE__*/_jsx(View, {
|
|
84
|
+
style: {
|
|
85
|
+
alignItems: 'flex-end',
|
|
86
|
+
paddingTop: 12
|
|
87
|
+
},
|
|
88
|
+
children: /*#__PURE__*/_jsx(Button, {
|
|
89
|
+
variant: "link",
|
|
90
|
+
size: "small",
|
|
91
|
+
onPress: close,
|
|
92
|
+
testID: testID ? `${testID}-close` : undefined,
|
|
93
|
+
children: closeLabel
|
|
94
|
+
})
|
|
95
|
+
}) : null]
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
export const GuestPicker = /*#__PURE__*/memo(GuestPickerComponent);
|
|
99
|
+
GuestPicker.displayName = 'GuestPicker';
|
|
100
|
+
//# sourceMappingURL=GuestPicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","View","Button","resolveButtonRamps","StepperRow","useTheme","Text","DEFAULT_GUEST_DESCRIPTIONS","DEFAULT_GUEST_LABELS","GUEST_KINDS","useGuestPickerClose","applyGuestCount","minimumAdults","jsx","_jsx","jsxs","_jsxs","COUNTED","GuestPickerComponent","value","onChange","max","maxGuests","kinds","labels","descriptions","note","onClose","closeLabel","size","style","testID","theme","neutral","contextClose","close","counted","reduce","sum","kind","maxFor","cap","includes","room","Math","min","children","map","index","description","title","undefined","onValueChange","n","divider","length","variant","color","paddingTop","alignItems","onPress","GuestPicker","displayName"],"sourceRoot":"../../../src","sources":["stay-search/GuestPicker.tsx"],"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B,KAAK,CAACgC,MAAM,GAAG,CAAE;QAClCxB,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,IAAIQ,IAAI,EAAE,GAAGY;MAAU,GAT5CZ,IAUN,CAAC;IAEN,CAAC,CAAC,EACDb,IAAI,IAAI,IAAI,GACX,OAAOA,IAAI,KAAK,QAAQ,gBACtBZ,IAAA,CAACR,IAAI;MAACkD,OAAO,EAAC,gBAAgB;MAAC1B,KAAK,EAAE;QAAE2B,KAAK,EAAExB,OAAO,CAAC,GAAG,CAAC;QAAEyB,UAAU,EAAE;MAAE,CAAE;MAAAZ,QAAA,EAC1EpB;IAAI,CACD,CAAC,GAEPA,IACD,GACC,IAAI,EACPS,KAAK,gBACJrB,IAAA,CAACb,IAAI;MAAC6B,KAAK,EAAE;QAAE6B,UAAU,EAAE,UAAU;QAAED,UAAU,EAAE;MAAG,CAAE;MAAAZ,QAAA,eACtDhC,IAAA,CAACZ,MAAM;QAACsD,OAAO,EAAC,MAAM;QAAC3B,IAAI,EAAC,OAAO;QAAC+B,OAAO,EAAEzB,KAAM;QAACJ,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,QAAQ,GAAGoB,SAAU;QAAAL,QAAA,EAChGlB;MAAU,CACL;IAAC,CACL,CAAC,GACL,IAAI;EAAA,CACJ,CAAC;AAEX;AAEA,OAAO,MAAMiC,WAAW,gBAAG7D,IAAI,CAACkB,oBAAoB,CAAC;AACrD2C,WAAW,CAACC,WAAW,GAAG,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { Fragment, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
4
|
+
import { Platform, Pressable, TextInput, View } from 'react-native';
|
|
5
|
+
import { Button } from '../button';
|
|
6
|
+
import { resolveButtonRamps } from "../button/shared.js";
|
|
7
|
+
import { webDataSet } from "../checkbox/shared.js";
|
|
8
|
+
import { RiSearchLine } from "../icons/remix/RiSearchLine.js";
|
|
9
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
10
|
+
import { borderRadius } from "../styles/tokens.js";
|
|
11
|
+
import { Z_INDEX } from "../styles/z-index.js";
|
|
12
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
13
|
+
import { SANS_FONT_FAMILY } from "../text-field/shared.js";
|
|
14
|
+
import { Text } from "../typography/index.js";
|
|
15
|
+
import { TYPE_SCALE } from "../typography/scale.js";
|
|
16
|
+
import { DEFAULT_STAY_SEARCH_BAR_LABELS, STAY_SEARCH_BAR_HEIGHT, STAY_SEARCH_BUTTON_INSET, STAY_SEARCH_PANEL_OFFSET, STAY_SEARCH_SEPARATOR_HEIGHT } from "./constants.js";
|
|
17
|
+
import { useStaySearchPalette } from "./palette.js";
|
|
18
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
+
/**
|
|
20
|
+
* Bloom's wide stay search: one full pill split into segments.
|
|
21
|
+
*
|
|
22
|
+
* At rest the bar is the card surface with a hairline and a soft shadow;
|
|
23
|
+
* hovering a segment fills it (a colour change only). While a segment is open
|
|
24
|
+
* the bar behind turns neutral, the open segment becomes a raised card-coloured
|
|
25
|
+
* pill, and the round search button widens to show its label. The hairline
|
|
26
|
+
* separators between segments hide next to a hovered or open segment, so a
|
|
27
|
+
* filled pill never has a line poking out of its edge.
|
|
28
|
+
*
|
|
29
|
+
* Fully controlled: the app owns `activeSegment` and every value (dates and
|
|
30
|
+
* guests arrive pre-formatted). `panel` drops under the bar while a segment is
|
|
31
|
+
* open, aligned under it.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
const IS_WEB = Platform.OS === 'web';
|
|
35
|
+
|
|
36
|
+
/** React Native's `Role` has no `search`; react-native-web passes it through. */
|
|
37
|
+
const WEB_SEARCH_ROLE = IS_WEB ? {
|
|
38
|
+
role: 'search'
|
|
39
|
+
} : {};
|
|
40
|
+
const STYLE_ID = 'bloom-stay-search-bar-web-css';
|
|
41
|
+
const STAY_SEARCH_BAR_CSS = `
|
|
42
|
+
[data-bloom-stay-segment] {
|
|
43
|
+
transition: background-color 150ms ease, box-shadow 150ms ease;
|
|
44
|
+
}
|
|
45
|
+
[data-bloom-stay-separator] {
|
|
46
|
+
transition: background-color 150ms ease;
|
|
47
|
+
}
|
|
48
|
+
[data-bloom-stay-segment-hit] {
|
|
49
|
+
outline: none;
|
|
50
|
+
}
|
|
51
|
+
[data-bloom-stay-segment-hit]:focus-visible {
|
|
52
|
+
box-shadow: inset 0 0 0 2px var(--bloom-stay-search-ring, currentColor);
|
|
53
|
+
}
|
|
54
|
+
@media (prefers-reduced-motion: reduce) {
|
|
55
|
+
[data-bloom-stay-segment], [data-bloom-stay-separator] {
|
|
56
|
+
transition: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
|
|
61
|
+
/** Relative widths; the guests segment also holds the search button. */
|
|
62
|
+
const SEGMENT_FLEX = {
|
|
63
|
+
destination: 1.4,
|
|
64
|
+
checkIn: 1,
|
|
65
|
+
checkOut: 1,
|
|
66
|
+
dates: 1.4,
|
|
67
|
+
guests: 1.5
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** body-regular in Bloom's sans face, no box of its own, so it sits exactly where the value text did. */
|
|
71
|
+
const INPUT_TYPE = TYPE_SCALE['body-regular'];
|
|
72
|
+
const inputStyle = {
|
|
73
|
+
fontFamily: SANS_FONT_FAMILY,
|
|
74
|
+
fontSize: INPUT_TYPE.fontSize,
|
|
75
|
+
lineHeight: INPUT_TYPE.lineHeight,
|
|
76
|
+
fontWeight: INPUT_TYPE.fontWeight,
|
|
77
|
+
height: INPUT_TYPE.lineHeight,
|
|
78
|
+
paddingTop: 0,
|
|
79
|
+
paddingBottom: 0,
|
|
80
|
+
paddingLeft: 0,
|
|
81
|
+
paddingRight: 0,
|
|
82
|
+
borderWidth: 0,
|
|
83
|
+
minWidth: 0,
|
|
84
|
+
// The segment's raised pill is the focus affordance; the browser's input
|
|
85
|
+
// outline would draw a rectangle inside it. Web-only keys RN does not type.
|
|
86
|
+
...(IS_WEB ? {
|
|
87
|
+
outlineWidth: 0,
|
|
88
|
+
outlineStyle: 'none'
|
|
89
|
+
} : {})
|
|
90
|
+
};
|
|
91
|
+
const PANEL_ALIGN = {
|
|
92
|
+
destination: 'flex-start',
|
|
93
|
+
checkIn: 'center',
|
|
94
|
+
checkOut: 'center',
|
|
95
|
+
dates: 'center',
|
|
96
|
+
guests: 'flex-end'
|
|
97
|
+
};
|
|
98
|
+
function StaySearchBarComponent({
|
|
99
|
+
activeSegment,
|
|
100
|
+
onActiveSegmentChange,
|
|
101
|
+
destination,
|
|
102
|
+
dates,
|
|
103
|
+
guests,
|
|
104
|
+
datesMode = 'split',
|
|
105
|
+
labels: labelOverrides,
|
|
106
|
+
onSearch,
|
|
107
|
+
destinationQuery,
|
|
108
|
+
onDestinationQueryChange,
|
|
109
|
+
panel,
|
|
110
|
+
dismissible = true,
|
|
111
|
+
style,
|
|
112
|
+
testID
|
|
113
|
+
}) {
|
|
114
|
+
const theme = useTheme();
|
|
115
|
+
const palette = useStaySearchPalette();
|
|
116
|
+
const {
|
|
117
|
+
accent
|
|
118
|
+
} = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
119
|
+
const labels = useMemo(() => ({
|
|
120
|
+
...DEFAULT_STAY_SEARCH_BAR_LABELS,
|
|
121
|
+
...labelOverrides
|
|
122
|
+
}), [labelOverrides]);
|
|
123
|
+
const [hovered, setHovered] = useState(null);
|
|
124
|
+
const rootRef = useRef(null);
|
|
125
|
+
const open = activeSegment !== null;
|
|
126
|
+
useEffect(() => {
|
|
127
|
+
adoptStyleSheet(STYLE_ID, STAY_SEARCH_BAR_CSS);
|
|
128
|
+
}, []);
|
|
129
|
+
|
|
130
|
+
// Dismissal on web: Escape, or a press that lands outside the bar AND its
|
|
131
|
+
// panel (the panel is a descendant of the root, so one `contains` covers both).
|
|
132
|
+
useEffect(() => {
|
|
133
|
+
if (!open || !dismissible || !IS_WEB || typeof document === 'undefined') return;
|
|
134
|
+
const onPointerDown = event => {
|
|
135
|
+
const node = rootRef.current;
|
|
136
|
+
const target = event.target;
|
|
137
|
+
if (node && target && node.contains(target)) return;
|
|
138
|
+
onActiveSegmentChange(null);
|
|
139
|
+
};
|
|
140
|
+
const onKeyDown = event => {
|
|
141
|
+
if (event.key === 'Escape') onActiveSegmentChange(null);
|
|
142
|
+
};
|
|
143
|
+
document.addEventListener('pointerdown', onPointerDown, true);
|
|
144
|
+
document.addEventListener('keydown', onKeyDown);
|
|
145
|
+
return () => {
|
|
146
|
+
document.removeEventListener('pointerdown', onPointerDown, true);
|
|
147
|
+
document.removeEventListener('keydown', onKeyDown);
|
|
148
|
+
};
|
|
149
|
+
}, [open, dismissible, onActiveSegmentChange]);
|
|
150
|
+
const segments = datesMode === 'single' ? ['destination', 'dates', 'guests'] : ['destination', 'checkIn', 'checkOut', 'guests'];
|
|
151
|
+
const datesSummary = dates?.summary ?? (dates?.checkIn && dates?.checkOut ? `${dates.checkIn} – ${dates.checkOut}` : dates?.checkIn ?? dates?.checkOut);
|
|
152
|
+
const content = {
|
|
153
|
+
destination: {
|
|
154
|
+
label: labels.where,
|
|
155
|
+
value: destination,
|
|
156
|
+
placeholder: labels.destinationPlaceholder
|
|
157
|
+
},
|
|
158
|
+
checkIn: {
|
|
159
|
+
label: labels.checkIn,
|
|
160
|
+
value: dates?.checkIn,
|
|
161
|
+
placeholder: labels.datesPlaceholder
|
|
162
|
+
},
|
|
163
|
+
checkOut: {
|
|
164
|
+
label: labels.checkOut,
|
|
165
|
+
value: dates?.checkOut,
|
|
166
|
+
placeholder: labels.datesPlaceholder
|
|
167
|
+
},
|
|
168
|
+
dates: {
|
|
169
|
+
label: labels.when,
|
|
170
|
+
value: datesSummary,
|
|
171
|
+
placeholder: labels.datesPlaceholder
|
|
172
|
+
},
|
|
173
|
+
guests: {
|
|
174
|
+
label: labels.who,
|
|
175
|
+
value: guests,
|
|
176
|
+
placeholder: labels.guestsPlaceholder
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
const lit = useCallback(segment => segment !== undefined && (segment === activeSegment || segment === hovered), [activeSegment, hovered]);
|
|
180
|
+
const barStyle = {
|
|
181
|
+
height: STAY_SEARCH_BAR_HEIGHT,
|
|
182
|
+
borderRadius: borderRadius.full,
|
|
183
|
+
borderWidth: 1,
|
|
184
|
+
borderColor: palette.border,
|
|
185
|
+
backgroundColor: open ? palette.barSurfaceOpen : palette.barSurface,
|
|
186
|
+
boxShadow: palette.barShadow,
|
|
187
|
+
flexDirection: 'row',
|
|
188
|
+
alignItems: 'stretch',
|
|
189
|
+
'--bloom-stay-search-ring': accent[500]
|
|
190
|
+
};
|
|
191
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
192
|
+
ref: rootRef,
|
|
193
|
+
testID: testID
|
|
194
|
+
// react-native-web gives every View `z-index: 0`, so the root is its own
|
|
195
|
+
// stacking context: the panel's z-index only competes INSIDE it. Lift the
|
|
196
|
+
// whole root while open, or content after the bar paints over the panel.
|
|
197
|
+
,
|
|
198
|
+
style: [{
|
|
199
|
+
position: 'relative',
|
|
200
|
+
zIndex: open ? Z_INDEX.dropdown : Z_INDEX.base
|
|
201
|
+
}, style],
|
|
202
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
203
|
+
...WEB_SEARCH_ROLE,
|
|
204
|
+
style: barStyle,
|
|
205
|
+
children: segments.map((segment, index) => {
|
|
206
|
+
const active = segment === activeSegment;
|
|
207
|
+
const isHovered = segment === hovered;
|
|
208
|
+
const {
|
|
209
|
+
label,
|
|
210
|
+
value,
|
|
211
|
+
placeholder
|
|
212
|
+
} = content[segment];
|
|
213
|
+
const showInput = active && segment === 'destination' && onDestinationQueryChange != null;
|
|
214
|
+
const background = active ? palette.segmentActive : isHovered ? open ? palette.segmentHoverOpen : palette.segmentHover : 'transparent';
|
|
215
|
+
const segmentTestID = testID ? `${testID}-${segment}` : undefined;
|
|
216
|
+
const text = /*#__PURE__*/_jsxs(_Fragment, {
|
|
217
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
218
|
+
variant: "caption-1-semibold",
|
|
219
|
+
numberOfLines: 1,
|
|
220
|
+
style: {
|
|
221
|
+
color: palette.text
|
|
222
|
+
},
|
|
223
|
+
children: label
|
|
224
|
+
}), showInput ? /*#__PURE__*/_jsx(TextInput, {
|
|
225
|
+
autoFocus: true,
|
|
226
|
+
value: destinationQuery ?? '',
|
|
227
|
+
onChangeText: onDestinationQueryChange,
|
|
228
|
+
placeholder: value || placeholder,
|
|
229
|
+
placeholderTextColor: palette.placeholder,
|
|
230
|
+
accessibilityLabel: label,
|
|
231
|
+
testID: testID ? `${testID}-destination-input` : undefined,
|
|
232
|
+
style: [inputStyle, {
|
|
233
|
+
color: palette.text
|
|
234
|
+
}]
|
|
235
|
+
}) : /*#__PURE__*/_jsx(Text, {
|
|
236
|
+
variant: "body-regular",
|
|
237
|
+
numberOfLines: 1,
|
|
238
|
+
style: {
|
|
239
|
+
color: value ? palette.text : palette.placeholder
|
|
240
|
+
},
|
|
241
|
+
children: value || placeholder
|
|
242
|
+
})]
|
|
243
|
+
});
|
|
244
|
+
const hitStyle = {
|
|
245
|
+
flex: 1,
|
|
246
|
+
minWidth: 0,
|
|
247
|
+
alignSelf: 'stretch',
|
|
248
|
+
justifyContent: 'center',
|
|
249
|
+
paddingLeft: index === 0 ? 32 : 24,
|
|
250
|
+
paddingRight: segment === 'guests' ? 8 : 16,
|
|
251
|
+
borderRadius: borderRadius.full
|
|
252
|
+
};
|
|
253
|
+
return /*#__PURE__*/_jsxs(Fragment, {
|
|
254
|
+
children: [index > 0 ? /*#__PURE__*/_jsx(View, {
|
|
255
|
+
style: {
|
|
256
|
+
width: 0,
|
|
257
|
+
alignSelf: 'center',
|
|
258
|
+
zIndex: Z_INDEX.raised
|
|
259
|
+
},
|
|
260
|
+
children: /*#__PURE__*/_jsx(View, {
|
|
261
|
+
...webDataSet({
|
|
262
|
+
bloomStaySeparator: ''
|
|
263
|
+
}),
|
|
264
|
+
testID: testID ? `${testID}-separator-${index}` : undefined,
|
|
265
|
+
style: {
|
|
266
|
+
position: 'absolute',
|
|
267
|
+
left: -0.5,
|
|
268
|
+
top: -STAY_SEARCH_SEPARATOR_HEIGHT / 2,
|
|
269
|
+
width: 1,
|
|
270
|
+
height: STAY_SEARCH_SEPARATOR_HEIGHT,
|
|
271
|
+
backgroundColor: lit(segments[index - 1]) || lit(segment) ? 'transparent' : palette.separator
|
|
272
|
+
}
|
|
273
|
+
})
|
|
274
|
+
}) : null, /*#__PURE__*/_jsxs(View, {
|
|
275
|
+
...webDataSet({
|
|
276
|
+
bloomStaySegment: active ? 'active' : ''
|
|
277
|
+
}),
|
|
278
|
+
style: {
|
|
279
|
+
flex: SEGMENT_FLEX[segment],
|
|
280
|
+
minWidth: 0,
|
|
281
|
+
flexDirection: 'row',
|
|
282
|
+
alignItems: 'center',
|
|
283
|
+
borderRadius: borderRadius.full,
|
|
284
|
+
backgroundColor: background,
|
|
285
|
+
boxShadow: active ? palette.segmentActiveShadow : undefined
|
|
286
|
+
},
|
|
287
|
+
children: [showInput ? /*#__PURE__*/_jsx(View, {
|
|
288
|
+
testID: segmentTestID,
|
|
289
|
+
style: hitStyle,
|
|
290
|
+
children: text
|
|
291
|
+
}) : /*#__PURE__*/_jsx(Pressable, {
|
|
292
|
+
...webDataSet({
|
|
293
|
+
bloomStaySegmentHit: ''
|
|
294
|
+
}),
|
|
295
|
+
testID: segmentTestID,
|
|
296
|
+
onPress: () => onActiveSegmentChange(segment),
|
|
297
|
+
onHoverIn: () => setHovered(segment),
|
|
298
|
+
onHoverOut: () => setHovered(h => h === segment ? null : h),
|
|
299
|
+
accessibilityRole: "button",
|
|
300
|
+
accessibilityLabel: `${label}, ${value || placeholder}`,
|
|
301
|
+
accessibilityState: {
|
|
302
|
+
expanded: active
|
|
303
|
+
},
|
|
304
|
+
"aria-expanded": active,
|
|
305
|
+
style: hitStyle,
|
|
306
|
+
children: text
|
|
307
|
+
}), segment === 'guests' ? /*#__PURE__*/_jsx(Button, {
|
|
308
|
+
variant: "primary",
|
|
309
|
+
size: "large",
|
|
310
|
+
icon: RiSearchLine,
|
|
311
|
+
iconOnly: !open,
|
|
312
|
+
onPress: onSearch,
|
|
313
|
+
accessibilityLabel: labels.search,
|
|
314
|
+
testID: testID ? `${testID}-search` : undefined,
|
|
315
|
+
style: {
|
|
316
|
+
marginRight: STAY_SEARCH_BUTTON_INSET - 1,
|
|
317
|
+
flexShrink: 0
|
|
318
|
+
},
|
|
319
|
+
children: open ? labels.search : undefined
|
|
320
|
+
}) : null]
|
|
321
|
+
})]
|
|
322
|
+
}, segment);
|
|
323
|
+
})
|
|
324
|
+
}), open && panel != null ? /*#__PURE__*/_jsx(View, {
|
|
325
|
+
pointerEvents: "box-none",
|
|
326
|
+
testID: testID ? `${testID}-panel` : undefined,
|
|
327
|
+
style: {
|
|
328
|
+
position: 'absolute',
|
|
329
|
+
top: STAY_SEARCH_BAR_HEIGHT + STAY_SEARCH_PANEL_OFFSET,
|
|
330
|
+
left: 0,
|
|
331
|
+
right: 0,
|
|
332
|
+
flexDirection: 'row',
|
|
333
|
+
justifyContent: PANEL_ALIGN[activeSegment],
|
|
334
|
+
zIndex: Z_INDEX.dropdown
|
|
335
|
+
},
|
|
336
|
+
children: panel
|
|
337
|
+
}) : null]
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
export const StaySearchBar = /*#__PURE__*/memo(StaySearchBarComponent);
|
|
341
|
+
StaySearchBar.displayName = 'StaySearchBar';
|
|
342
|
+
//# sourceMappingURL=StaySearchBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Fragment","memo","useCallback","useEffect","useMemo","useRef","useState","Platform","Pressable","TextInput","View","Button","resolveButtonRamps","webDataSet","RiSearchLine","adoptStyleSheet","borderRadius","Z_INDEX","useTheme","SANS_FONT_FAMILY","Text","TYPE_SCALE","DEFAULT_STAY_SEARCH_BAR_LABELS","STAY_SEARCH_BAR_HEIGHT","STAY_SEARCH_BUTTON_INSET","STAY_SEARCH_PANEL_OFFSET","STAY_SEARCH_SEPARATOR_HEIGHT","useStaySearchPalette","jsx","_jsx","_Fragment","jsxs","_jsxs","IS_WEB","OS","WEB_SEARCH_ROLE","role","STYLE_ID","STAY_SEARCH_BAR_CSS","SEGMENT_FLEX","destination","checkIn","checkOut","dates","guests","INPUT_TYPE","inputStyle","fontFamily","fontSize","lineHeight","fontWeight","height","paddingTop","paddingBottom","paddingLeft","paddingRight","borderWidth","minWidth","outlineWidth","outlineStyle","PANEL_ALIGN","StaySearchBarComponent","activeSegment","onActiveSegmentChange","datesMode","labels","labelOverrides","onSearch","destinationQuery","onDestinationQueryChange","panel","dismissible","style","testID","theme","palette","accent","hovered","setHovered","rootRef","open","document","onPointerDown","event","node","current","target","contains","onKeyDown","key","addEventListener","removeEventListener","segments","datesSummary","summary","content","label","where","value","placeholder","destinationPlaceholder","datesPlaceholder","when","who","guestsPlaceholder","lit","segment","undefined","barStyle","full","borderColor","border","backgroundColor","barSurfaceOpen","barSurface","boxShadow","barShadow","flexDirection","alignItems","ref","position","zIndex","dropdown","base","children","map","index","active","isHovered","showInput","background","segmentActive","segmentHoverOpen","segmentHover","segmentTestID","text","variant","numberOfLines","color","autoFocus","onChangeText","placeholderTextColor","accessibilityLabel","hitStyle","flex","alignSelf","justifyContent","width","raised","bloomStaySeparator","left","top","separator","bloomStaySegment","segmentActiveShadow","bloomStaySegmentHit","onPress","onHoverIn","onHoverOut","h","accessibilityRole","accessibilityState","expanded","size","icon","iconOnly","search","marginRight","flexShrink","pointerEvents","right","StaySearchBar","displayName"],"sourceRoot":"../../../src","sources":["stay-search/StaySearchBar.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,IAAI,EAAEC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ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AAkB,EAAE7E,MAAM,CAACqG,MAAO;cAClC7F,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,SAAS,GAAGkC,SAAU;cAChDnC,KAAK,EAAE;gBAAE+F,WAAW,EAAE/I,wBAAwB,GAAG,CAAC;gBAAEgJ,UAAU,EAAE;cAAE,CAAE;cAAA5C,QAAA,EAEnE5C,IAAI,GAAGf,MAAM,CAACqG,MAAM,GAAG3D;YAAS,CAC3B,CAAC,GACP,IAAI;UAAA,CACJ,CAAC;QAAA,GAhEMD,OAiEL,CAAC;MAEf,CAAC;IAAC,CACE,CAAC,EACN1B,IAAI,IAAIV,KAAK,IAAI,IAAI,gBACpBzC,IAAA,CAACnB,IAAI;MACH+J,aAAa,EAAC,UAAU;MACxBhG,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,QAAQ,GAAGkC,SAAU;MAC/CnC,KAAK,EAAE;QACLgD,QAAQ,EAAE,UAAU;QACpB+B,GAAG,EAAEhI,sBAAsB,GAAGE,wBAAwB;QACtD6H,IAAI,EAAE,CAAC;QACPoB,KAAK,EAAE,CAAC;QACRrD,aAAa,EAAE,KAAK;QACpB6B,cAAc,EAAEtF,WAAW,CAACE,aAAa,CAAC;QAC1C2D,MAAM,EAAExG,OAAO,CAACyG;MAClB,CAAE;MAAAE,QAAA,EAEDtD;IAAK,CACF,CAAC,GACL,IAAI;EAAA,CACJ,CAAC;AAEX;AAEA,OAAO,MAAMqG,aAAa,gBAAG1K,IAAI,CAAC4D,sBAAsB,CAAC;AACzD8G,aAAa,CAACC,WAAW,GAAG,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useEffect, useMemo } from 'react';
|
|
4
|
+
import { Pressable, View } from 'react-native';
|
|
5
|
+
import { Button } from '../button';
|
|
6
|
+
import { resolveButtonRamps } from "../button/shared.js";
|
|
7
|
+
import { webDataSet } from "../checkbox/shared.js";
|
|
8
|
+
import { useInteractionState } from "../hooks/use-interaction-state.js";
|
|
9
|
+
import { RiEqualizer3Line } from "../icons/remix/RiEqualizer3Line.js";
|
|
10
|
+
import { RiSearchLine } from "../icons/remix/RiSearchLine.js";
|
|
11
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
12
|
+
import { borderRadius } from "../styles/tokens.js";
|
|
13
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
14
|
+
import { Text } from "../typography/index.js";
|
|
15
|
+
import { STAY_SEARCH_COMPACT_HEIGHT } from "./constants.js";
|
|
16
|
+
import { useStaySearchPalette } from "./palette.js";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
/**
|
|
19
|
+
* The narrow-screen search trigger: a full-width pill (56 tall, hairline, the
|
|
20
|
+
* bar's soft shadow) with a search glyph, a bold title over a secondary summary
|
|
21
|
+
* line, and an optional round filter button at the right end. Pressing the pill
|
|
22
|
+
* opens the app's search flow (usually a `Dialog` of `StaySearchStep`s); hover
|
|
23
|
+
* and press are a fill change only.
|
|
24
|
+
*
|
|
25
|
+
* The pill's pressable area and the filter button are SIBLINGS, never nested,
|
|
26
|
+
* so each is its own named control.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
const STYLE_ID = 'bloom-stay-search-compact-web-css';
|
|
30
|
+
const CSS = `
|
|
31
|
+
[data-bloom-stay-compact] {
|
|
32
|
+
outline: none;
|
|
33
|
+
}
|
|
34
|
+
[data-bloom-stay-compact]:focus-visible {
|
|
35
|
+
box-shadow: inset 0 0 0 2px var(--bloom-stay-compact-ring, currentColor);
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
function StaySearchCompactComponent({
|
|
39
|
+
onPress,
|
|
40
|
+
title = 'Where to?',
|
|
41
|
+
summary,
|
|
42
|
+
onFilterPress,
|
|
43
|
+
filterLabel = 'Filters',
|
|
44
|
+
filterIcon = RiEqualizer3Line,
|
|
45
|
+
accessibilityLabel,
|
|
46
|
+
style,
|
|
47
|
+
testID
|
|
48
|
+
}) {
|
|
49
|
+
const theme = useTheme();
|
|
50
|
+
const palette = useStaySearchPalette();
|
|
51
|
+
const {
|
|
52
|
+
accent
|
|
53
|
+
} = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
54
|
+
const hover = useInteractionState();
|
|
55
|
+
const press = useInteractionState();
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
adoptStyleSheet(STYLE_ID, CSS);
|
|
58
|
+
}, []);
|
|
59
|
+
const pill = {
|
|
60
|
+
height: STAY_SEARCH_COMPACT_HEIGHT,
|
|
61
|
+
borderRadius: borderRadius.full,
|
|
62
|
+
borderWidth: 1,
|
|
63
|
+
borderColor: palette.border,
|
|
64
|
+
backgroundColor: press.state || hover.state ? palette.segmentHover : palette.barSurface,
|
|
65
|
+
boxShadow: palette.barShadow,
|
|
66
|
+
flexDirection: 'row',
|
|
67
|
+
alignItems: 'center'
|
|
68
|
+
};
|
|
69
|
+
const hit = {
|
|
70
|
+
flex: 1,
|
|
71
|
+
minWidth: 0,
|
|
72
|
+
alignSelf: 'stretch',
|
|
73
|
+
flexDirection: 'row',
|
|
74
|
+
alignItems: 'center',
|
|
75
|
+
gap: 12,
|
|
76
|
+
paddingLeft: 20,
|
|
77
|
+
paddingRight: onFilterPress ? 8 : 20,
|
|
78
|
+
borderRadius: borderRadius.full,
|
|
79
|
+
'--bloom-stay-compact-ring': accent[500]
|
|
80
|
+
};
|
|
81
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
82
|
+
style: [pill, style],
|
|
83
|
+
children: [/*#__PURE__*/_jsxs(Pressable, {
|
|
84
|
+
...webDataSet({
|
|
85
|
+
bloomStayCompact: ''
|
|
86
|
+
}),
|
|
87
|
+
onPress: onPress,
|
|
88
|
+
onHoverIn: hover.onIn,
|
|
89
|
+
onHoverOut: hover.onOut,
|
|
90
|
+
onPressIn: press.onIn,
|
|
91
|
+
onPressOut: press.onOut,
|
|
92
|
+
accessibilityRole: "button",
|
|
93
|
+
accessibilityLabel: accessibilityLabel ?? (summary ? `${title}, ${summary}` : title),
|
|
94
|
+
testID: testID,
|
|
95
|
+
style: hit,
|
|
96
|
+
children: [/*#__PURE__*/_jsx(RiSearchLine, {
|
|
97
|
+
width: 20,
|
|
98
|
+
height: 20,
|
|
99
|
+
fill: palette.text
|
|
100
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
101
|
+
style: {
|
|
102
|
+
flex: 1,
|
|
103
|
+
minWidth: 0
|
|
104
|
+
},
|
|
105
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
106
|
+
variant: "body-semibold",
|
|
107
|
+
numberOfLines: 1,
|
|
108
|
+
style: {
|
|
109
|
+
color: palette.text
|
|
110
|
+
},
|
|
111
|
+
children: title
|
|
112
|
+
}), summary ? /*#__PURE__*/_jsx(Text, {
|
|
113
|
+
variant: "caption-1-regular",
|
|
114
|
+
numberOfLines: 1,
|
|
115
|
+
style: {
|
|
116
|
+
color: palette.textSecondary
|
|
117
|
+
},
|
|
118
|
+
children: summary
|
|
119
|
+
}) : null]
|
|
120
|
+
})]
|
|
121
|
+
}), onFilterPress ? /*#__PURE__*/_jsx(Button, {
|
|
122
|
+
variant: "secondary",
|
|
123
|
+
size: "medium",
|
|
124
|
+
iconOnly: true,
|
|
125
|
+
icon: filterIcon,
|
|
126
|
+
onPress: onFilterPress,
|
|
127
|
+
accessibilityLabel: filterLabel,
|
|
128
|
+
testID: testID ? `${testID}-filter` : undefined,
|
|
129
|
+
style: {
|
|
130
|
+
marginRight: 9,
|
|
131
|
+
flexShrink: 0
|
|
132
|
+
}
|
|
133
|
+
}) : null]
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
export const StaySearchCompact = /*#__PURE__*/memo(StaySearchCompactComponent);
|
|
137
|
+
StaySearchCompact.displayName = 'StaySearchCompact';
|
|
138
|
+
//# sourceMappingURL=StaySearchCompact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useEffect","useMemo","Pressable","View","Button","resolveButtonRamps","webDataSet","useInteractionState","RiEqualizer3Line","RiSearchLine","adoptStyleSheet","borderRadius","useTheme","Text","STAY_SEARCH_COMPACT_HEIGHT","useStaySearchPalette","jsx","_jsx","jsxs","_jsxs","STYLE_ID","CSS","StaySearchCompactComponent","onPress","title","summary","onFilterPress","filterLabel","filterIcon","accessibilityLabel","style","testID","theme","palette","accent","hover","press","pill","height","full","borderWidth","borderColor","border","backgroundColor","state","segmentHover","barSurface","boxShadow","barShadow","flexDirection","alignItems","hit","flex","minWidth","alignSelf","gap","paddingLeft","paddingRight","children","bloomStayCompact","onHoverIn","onIn","onHoverOut","onOut","onPressIn","onPressOut","accessibilityRole","width","fill","text","variant","numberOfLines","color","textSecondary","size","iconOnly","icon","undefined","marginRight","flexShrink","StaySearchCompact","displayName"],"sourceRoot":"../../../src","sources":["stay-search/StaySearchCompact.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AACvD,SAASC,SAAS,EAAEC,IAAI,QAAQ,cAAc;AAE9C,SAASC,MAAM,QAAQ,WAAW;AAClC,SAASC,kBAAkB,QAAQ,qBAAkB;AACrD,SAASC,UAAU,QAAQ,uBAAoB;AAC/C,SAASC,mBAAmB,QAAQ,mCAAgC;AACpE,SAASC,gBAAgB,QAAQ,oCAAiC;AAClE,SAASC,YAAY,QAAQ,gCAA6B;AAC1D,SAASC,eAAe,QAAQ,gCAA6B;AAC7D,SAASC,YAAY,QAAQ,qBAAkB;AAE/C,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,0BAA0B,QAAQ,gBAAa;AACxD,SAASC,oBAAoB,QAAQ,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA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OAAO,gBACNR,IAAA,CAACJ,IAAI;UAACyD,OAAO,EAAC,mBAAmB;UAACC,aAAa,EAAE,CAAE;UAACzC,KAAK,EAAE;YAAE0C,KAAK,EAAEvC,OAAO,CAACwC;UAAc,CAAE;UAAAf,QAAA,EACzFjC;QAAO,CACJ,CAAC,GACL,IAAI;MAAA,CACJ,CAAC;IAAA,CACE,CAAC,EACXC,aAAa,gBACZT,IAAA,CAACb,MAAM;MACLkE,OAAO,EAAC,WAAW;MACnBI,IAAI,EAAC,QAAQ;MACbC,QAAQ;MACRC,IAAI,EAAEhD,UAAW;MACjBL,OAAO,EAAEG,aAAc;MACvBG,kBAAkB,EAAEF,WAAY;MAChCI,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,SAAS,GAAG8C,SAAU;MAChD/C,KAAK,EAAE;QAAEgD,WAAW,EAAE,CAAC;QAAEC,UAAU,EAAE;MAAE;IAAE,CAC1C,CAAC,GACA,IAAI;EAAA,CACJ,CAAC;AAEX;AAEA,OAAO,MAAMC,iBAAiB,gBAAGjF,IAAI,CAACuB,0BAA0B,CAAC;AACjE0D,iBAAiB,CAACC,WAAW,GAAG,mBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { STAY_SEARCH_PANEL_RADIUS } from "./constants.js";
|
|
6
|
+
import { useStaySearchPalette } from "./palette.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
/**
|
|
9
|
+
* The floating surface that drops under an open `StaySearchBar` segment:
|
|
10
|
+
* the menu palette's surface and hairline, the menu shadow plus a wider
|
|
11
|
+
* ambient layer, radius 32. Its content is whatever the app passes —
|
|
12
|
+
* `DestinationSuggestions`, `GuestPicker`, a `RangeCalendar` with
|
|
13
|
+
* `DateFlexibilityChips`, or anything else.
|
|
14
|
+
*/
|
|
15
|
+
function StaySearchPanelComponent({
|
|
16
|
+
children,
|
|
17
|
+
width,
|
|
18
|
+
padding = 16,
|
|
19
|
+
accessibilityLabel,
|
|
20
|
+
style,
|
|
21
|
+
testID
|
|
22
|
+
}) {
|
|
23
|
+
const palette = useStaySearchPalette();
|
|
24
|
+
const surface = {
|
|
25
|
+
width,
|
|
26
|
+
maxWidth: '100%',
|
|
27
|
+
paddingTop: padding,
|
|
28
|
+
paddingBottom: padding,
|
|
29
|
+
paddingLeft: padding,
|
|
30
|
+
paddingRight: padding,
|
|
31
|
+
borderRadius: STAY_SEARCH_PANEL_RADIUS,
|
|
32
|
+
borderWidth: 1,
|
|
33
|
+
borderColor: palette.panelBorder,
|
|
34
|
+
backgroundColor: palette.panelSurface,
|
|
35
|
+
boxShadow: palette.panelShadow
|
|
36
|
+
};
|
|
37
|
+
return /*#__PURE__*/_jsx(View, {
|
|
38
|
+
testID: testID,
|
|
39
|
+
role: accessibilityLabel ? 'dialog' : undefined,
|
|
40
|
+
accessibilityLabel: accessibilityLabel,
|
|
41
|
+
style: [surface, style],
|
|
42
|
+
children: children
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export const StaySearchPanel = /*#__PURE__*/memo(StaySearchPanelComponent);
|
|
46
|
+
StaySearchPanel.displayName = 'StaySearchPanel';
|
|
47
|
+
//# sourceMappingURL=StaySearchPanel.js.map
|