@oxy.so/bloom 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/docs/booking.mdx +213 -0
- package/docs/category-bar.mdx +83 -0
- package/docs/listing-card.mdx +132 -0
- package/docs/listing-details.mdx +180 -0
- package/docs/map-marker.mdx +115 -0
- package/docs/rating.mdx +51 -0
- package/docs/stay-filters.mdx +253 -0
- package/docs/stay-search.mdx +197 -0
- package/docs/stepper.mdx +73 -0
- package/lib/commonjs/booking/BookingBar.js +109 -0
- package/lib/commonjs/booking/BookingBar.js.map +1 -0
- package/lib/commonjs/booking/BookingCard.js +368 -0
- package/lib/commonjs/booking/BookingCard.js.map +1 -0
- package/lib/commonjs/booking/BookingLink.js +90 -0
- package/lib/commonjs/booking/BookingLink.js.map +1 -0
- package/lib/commonjs/booking/BookingPrice.js +75 -0
- package/lib/commonjs/booking/BookingPrice.js.map +1 -0
- package/lib/commonjs/booking/PriceBreakdown.js +132 -0
- package/lib/commonjs/booking/PriceBreakdown.js.map +1 -0
- package/lib/commonjs/booking/TripCard.js +225 -0
- package/lib/commonjs/booking/TripCard.js.map +1 -0
- package/lib/commonjs/booking/constants.js +26 -0
- package/lib/commonjs/booking/constants.js.map +1 -0
- package/lib/commonjs/booking/index.js +41 -0
- package/lib/commonjs/booking/index.js.map +1 -0
- package/lib/commonjs/booking/shared.js +104 -0
- package/lib/commonjs/booking/shared.js.map +1 -0
- package/lib/commonjs/booking/types.js +6 -0
- package/lib/commonjs/booking/types.js.map +1 -0
- package/lib/commonjs/category-bar/CategoryBar.js +499 -0
- package/lib/commonjs/category-bar/CategoryBar.js.map +1 -0
- package/lib/commonjs/category-bar/index.js +13 -0
- package/lib/commonjs/category-bar/index.js.map +1 -0
- package/lib/commonjs/category-bar/types.js +6 -0
- package/lib/commonjs/category-bar/types.js.map +1 -0
- package/lib/commonjs/dialog/DialogBottomSheet.js +14 -0
- package/lib/commonjs/dialog/DialogBottomSheet.js.map +1 -1
- package/lib/commonjs/icons/remix/RiAncientGateLine.js +12 -0
- package/lib/commonjs/icons/remix/RiAncientGateLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiAncientPavilionLine.js +12 -0
- package/lib/commonjs/icons/remix/RiAncientPavilionLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiBikeLine.js +12 -0
- package/lib/commonjs/icons/remix/RiBikeLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiBriefcase4Line.js +12 -0
- package/lib/commonjs/icons/remix/RiBriefcase4Line.js.map +1 -0
- package/lib/commonjs/icons/remix/RiCactusLine.js +12 -0
- package/lib/commonjs/icons/remix/RiCactusLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiCalendarCloseLine.js +12 -0
- package/lib/commonjs/icons/remix/RiCalendarCloseLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiDoorOpenLine.js +12 -0
- package/lib/commonjs/icons/remix/RiDoorOpenLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiFridgeLine.js +12 -0
- package/lib/commonjs/icons/remix/RiFridgeLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiGolfBallLine.js +12 -0
- package/lib/commonjs/icons/remix/RiGolfBallLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiHeart3Fill.js +12 -0
- package/lib/commonjs/icons/remix/RiHeart3Fill.js.map +1 -0
- package/lib/commonjs/icons/remix/RiHeart3Line.js +12 -0
- package/lib/commonjs/icons/remix/RiHeart3Line.js.map +1 -0
- package/lib/commonjs/icons/remix/RiLandscapeLine.js +12 -0
- package/lib/commonjs/icons/remix/RiLandscapeLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiMapPin2Line.js +12 -0
- package/lib/commonjs/icons/remix/RiMapPin2Line.js.map +1 -0
- package/lib/commonjs/icons/remix/RiMedalLine.js +12 -0
- package/lib/commonjs/icons/remix/RiMedalLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiParkingBoxLine.js +12 -0
- package/lib/commonjs/icons/remix/RiParkingBoxLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiPlantLine.js +12 -0
- package/lib/commonjs/icons/remix/RiPlantLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiSailboatLine.js +12 -0
- package/lib/commonjs/icons/remix/RiSailboatLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiShareLine.js +12 -0
- package/lib/commonjs/icons/remix/RiShareLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiShip2Line.js +12 -0
- package/lib/commonjs/icons/remix/RiShip2Line.js.map +1 -0
- package/lib/commonjs/icons/remix/RiSubtractLine.js +12 -0
- package/lib/commonjs/icons/remix/RiSubtractLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTShirtAirLine.js +12 -0
- package/lib/commonjs/icons/remix/RiTShirtAirLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTempColdLine.js +12 -0
- package/lib/commonjs/icons/remix/RiTempColdLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTentLine.js +12 -0
- package/lib/commonjs/icons/remix/RiTentLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTranslate2.js +12 -0
- package/lib/commonjs/icons/remix/RiTranslate2.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTreeLine.js +12 -0
- package/lib/commonjs/icons/remix/RiTreeLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiTvLine.js +12 -0
- package/lib/commonjs/icons/remix/RiTvLine.js.map +1 -0
- package/lib/commonjs/icons/remix/RiWifiLine.js +12 -0
- package/lib/commonjs/icons/remix/RiWifiLine.js.map +1 -0
- package/lib/commonjs/icons/remix/index.js +189 -0
- package/lib/commonjs/icons/remix/index.js.map +1 -1
- package/lib/commonjs/index.js +333 -54
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +333 -54
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/listing-card/FavoriteButton.js +110 -0
- package/lib/commonjs/listing-card/FavoriteButton.js.map +1 -0
- package/lib/commonjs/listing-card/ListingCard.js +601 -0
- package/lib/commonjs/listing-card/ListingCard.js.map +1 -0
- package/lib/commonjs/listing-card/ListingCardGrid.js +70 -0
- package/lib/commonjs/listing-card/ListingCardGrid.js.map +1 -0
- package/lib/commonjs/listing-card/WishlistCard.js +201 -0
- package/lib/commonjs/listing-card/WishlistCard.js.map +1 -0
- package/lib/commonjs/listing-card/index.js +34 -0
- package/lib/commonjs/listing-card/index.js.map +1 -0
- package/lib/commonjs/listing-card/shared.js +179 -0
- package/lib/commonjs/listing-card/shared.js.map +1 -0
- package/lib/commonjs/listing-card/types.js +6 -0
- package/lib/commonjs/listing-card/types.js.map +1 -0
- package/lib/commonjs/listing-details/AmenityList.js +126 -0
- package/lib/commonjs/listing-details/AmenityList.js.map +1 -0
- package/lib/commonjs/listing-details/HostCard.js +274 -0
- package/lib/commonjs/listing-details/HostCard.js.map +1 -0
- package/lib/commonjs/listing-details/ListingHeader.js +262 -0
- package/lib/commonjs/listing-details/ListingHeader.js.map +1 -0
- package/lib/commonjs/listing-details/ListingHighlights.js +86 -0
- package/lib/commonjs/listing-details/ListingHighlights.js.map +1 -0
- package/lib/commonjs/listing-details/ListingPhotoGrid.js +295 -0
- package/lib/commonjs/listing-details/ListingPhotoGrid.js.map +1 -0
- package/lib/commonjs/listing-details/ListingSection.js +80 -0
- package/lib/commonjs/listing-details/ListingSection.js.map +1 -0
- package/lib/commonjs/listing-details/ReviewCard.js +269 -0
- package/lib/commonjs/listing-details/ReviewCard.js.map +1 -0
- package/lib/commonjs/listing-details/ReviewSummary.js +202 -0
- package/lib/commonjs/listing-details/ReviewSummary.js.map +1 -0
- package/lib/commonjs/listing-details/constants.js +21 -0
- package/lib/commonjs/listing-details/constants.js.map +1 -0
- package/lib/commonjs/listing-details/index.js +81 -0
- package/lib/commonjs/listing-details/index.js.map +1 -0
- package/lib/commonjs/listing-details/shared.js +105 -0
- package/lib/commonjs/listing-details/shared.js.map +1 -0
- package/lib/commonjs/listing-details/types.js +6 -0
- package/lib/commonjs/listing-details/types.js.map +1 -0
- package/lib/commonjs/listing-details/use-container-width.js +26 -0
- package/lib/commonjs/listing-details/use-container-width.js.map +1 -0
- package/lib/commonjs/map-marker/MapClusterMarker.js +98 -0
- package/lib/commonjs/map-marker/MapClusterMarker.js.map +1 -0
- package/lib/commonjs/map-marker/MapListingPreview.js +320 -0
- package/lib/commonjs/map-marker/MapListingPreview.js.map +1 -0
- package/lib/commonjs/map-marker/MapPriceMarker.js +116 -0
- package/lib/commonjs/map-marker/MapPriceMarker.js.map +1 -0
- package/lib/commonjs/map-marker/MapSearchAreaButton.js +127 -0
- package/lib/commonjs/map-marker/MapSearchAreaButton.js.map +1 -0
- package/lib/commonjs/map-marker/index.js +34 -0
- package/lib/commonjs/map-marker/index.js.map +1 -0
- package/lib/commonjs/map-marker/shared.js +92 -0
- package/lib/commonjs/map-marker/shared.js.map +1 -0
- package/lib/commonjs/map-marker/types.js +6 -0
- package/lib/commonjs/map-marker/types.js.map +1 -0
- package/lib/commonjs/rating/Rating.js +103 -0
- package/lib/commonjs/rating/Rating.js.map +1 -0
- package/lib/commonjs/rating/RatingBar.js +109 -0
- package/lib/commonjs/rating/RatingBar.js.map +1 -0
- package/lib/commonjs/rating/index.js +20 -0
- package/lib/commonjs/rating/index.js.map +1 -0
- package/lib/commonjs/rating/types.js +6 -0
- package/lib/commonjs/rating/types.js.map +1 -0
- package/lib/commonjs/stay-filters/AmenityFilter.js +61 -0
- package/lib/commonjs/stay-filters/AmenityFilter.js.map +1 -0
- package/lib/commonjs/stay-filters/CountFilter.js +101 -0
- package/lib/commonjs/stay-filters/CountFilter.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterChip.js +156 -0
- package/lib/commonjs/stay-filters/FilterChip.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterFooter.js +77 -0
- package/lib/commonjs/stay-filters/FilterFooter.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterSection.js +80 -0
- package/lib/commonjs/stay-filters/FilterSection.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterTextButton.js +116 -0
- package/lib/commonjs/stay-filters/FilterTextButton.js.map +1 -0
- package/lib/commonjs/stay-filters/FilterTriggerButton.js +60 -0
- package/lib/commonjs/stay-filters/FilterTriggerButton.js.map +1 -0
- package/lib/commonjs/stay-filters/PriceHistogram.js +88 -0
- package/lib/commonjs/stay-filters/PriceHistogram.js.map +1 -0
- package/lib/commonjs/stay-filters/PriceRangeFilter.js +152 -0
- package/lib/commonjs/stay-filters/PriceRangeFilter.js.map +1 -0
- package/lib/commonjs/stay-filters/SegmentedFilter.js +44 -0
- package/lib/commonjs/stay-filters/SegmentedFilter.js.map +1 -0
- package/lib/commonjs/stay-filters/SwitchFilterRow.js +70 -0
- package/lib/commonjs/stay-filters/SwitchFilterRow.js.map +1 -0
- package/lib/commonjs/stay-filters/ToggleChipGroup.js +59 -0
- package/lib/commonjs/stay-filters/ToggleChipGroup.js.map +1 -0
- package/lib/commonjs/stay-filters/index.js +76 -0
- package/lib/commonjs/stay-filters/index.js.map +1 -0
- package/lib/commonjs/stay-filters/types.js +6 -0
- package/lib/commonjs/stay-filters/types.js.map +1 -0
- package/lib/commonjs/stay-search/DateFlexibilityChips.js +54 -0
- package/lib/commonjs/stay-search/DateFlexibilityChips.js.map +1 -0
- package/lib/commonjs/stay-search/DestinationSuggestions.js +178 -0
- package/lib/commonjs/stay-search/DestinationSuggestions.js.map +1 -0
- package/lib/commonjs/stay-search/GuestPicker.js +105 -0
- package/lib/commonjs/stay-search/GuestPicker.js.map +1 -0
- package/lib/commonjs/stay-search/StaySearchBar.js +347 -0
- package/lib/commonjs/stay-search/StaySearchBar.js.map +1 -0
- package/lib/commonjs/stay-search/StaySearchCompact.js +143 -0
- package/lib/commonjs/stay-search/StaySearchCompact.js.map +1 -0
- package/lib/commonjs/stay-search/StaySearchPanel.js +52 -0
- package/lib/commonjs/stay-search/StaySearchPanel.js.map +1 -0
- package/lib/commonjs/stay-search/StaySearchStep.js +136 -0
- package/lib/commonjs/stay-search/StaySearchStep.js.map +1 -0
- package/lib/commonjs/stay-search/constants.js +67 -0
- package/lib/commonjs/stay-search/constants.js.map +1 -0
- package/lib/commonjs/stay-search/context.js +20 -0
- package/lib/commonjs/stay-search/context.js.map +1 -0
- package/lib/commonjs/stay-search/guests.js +30 -0
- package/lib/commonjs/stay-search/guests.js.map +1 -0
- package/lib/commonjs/stay-search/index.js +68 -0
- package/lib/commonjs/stay-search/index.js.map +1 -0
- package/lib/commonjs/stay-search/palette.js +77 -0
- package/lib/commonjs/stay-search/palette.js.map +1 -0
- package/lib/commonjs/stay-search/types.js +6 -0
- package/lib/commonjs/stay-search/types.js.map +1 -0
- package/lib/commonjs/stepper/Stepper.js +220 -0
- package/lib/commonjs/stepper/Stepper.js.map +1 -0
- package/lib/commonjs/stepper/StepperRow.js +76 -0
- package/lib/commonjs/stepper/StepperRow.js.map +1 -0
- package/lib/commonjs/stepper/index.js +20 -0
- package/lib/commonjs/stepper/index.js.map +1 -0
- package/lib/commonjs/stepper/types.js +6 -0
- package/lib/commonjs/stepper/types.js.map +1 -0
- package/lib/module/booking/BookingBar.js +104 -0
- package/lib/module/booking/BookingBar.js.map +1 -0
- package/lib/module/booking/BookingCard.js +363 -0
- package/lib/module/booking/BookingCard.js.map +1 -0
- package/lib/module/booking/BookingLink.js +85 -0
- package/lib/module/booking/BookingLink.js.map +1 -0
- package/lib/module/booking/BookingPrice.js +70 -0
- package/lib/module/booking/BookingPrice.js.map +1 -0
- package/lib/module/booking/PriceBreakdown.js +127 -0
- package/lib/module/booking/PriceBreakdown.js.map +1 -0
- package/lib/module/booking/TripCard.js +220 -0
- package/lib/module/booking/TripCard.js.map +1 -0
- package/lib/module/booking/constants.js +22 -0
- package/lib/module/booking/constants.js.map +1 -0
- package/lib/module/booking/index.js +8 -0
- package/lib/module/booking/index.js.map +1 -0
- package/lib/module/booking/shared.js +95 -0
- package/lib/module/booking/shared.js.map +1 -0
- package/lib/module/booking/types.js +4 -0
- package/lib/module/booking/types.js.map +1 -0
- package/lib/module/category-bar/CategoryBar.js +490 -0
- package/lib/module/category-bar/CategoryBar.js.map +1 -0
- package/lib/module/category-bar/index.js +4 -0
- package/lib/module/category-bar/index.js.map +1 -0
- package/lib/module/category-bar/types.js +4 -0
- package/lib/module/category-bar/types.js.map +1 -0
- package/lib/module/dialog/DialogBottomSheet.js +14 -0
- package/lib/module/dialog/DialogBottomSheet.js.map +1 -1
- package/lib/module/icons/remix/RiAncientGateLine.js +9 -0
- package/lib/module/icons/remix/RiAncientGateLine.js.map +1 -0
- package/lib/module/icons/remix/RiAncientPavilionLine.js +9 -0
- package/lib/module/icons/remix/RiAncientPavilionLine.js.map +1 -0
- package/lib/module/icons/remix/RiBikeLine.js +9 -0
- package/lib/module/icons/remix/RiBikeLine.js.map +1 -0
- package/lib/module/icons/remix/RiBriefcase4Line.js +9 -0
- package/lib/module/icons/remix/RiBriefcase4Line.js.map +1 -0
- package/lib/module/icons/remix/RiCactusLine.js +9 -0
- package/lib/module/icons/remix/RiCactusLine.js.map +1 -0
- package/lib/module/icons/remix/RiCalendarCloseLine.js +9 -0
- package/lib/module/icons/remix/RiCalendarCloseLine.js.map +1 -0
- package/lib/module/icons/remix/RiDoorOpenLine.js +9 -0
- package/lib/module/icons/remix/RiDoorOpenLine.js.map +1 -0
- package/lib/module/icons/remix/RiFridgeLine.js +9 -0
- package/lib/module/icons/remix/RiFridgeLine.js.map +1 -0
- package/lib/module/icons/remix/RiGolfBallLine.js +9 -0
- package/lib/module/icons/remix/RiGolfBallLine.js.map +1 -0
- package/lib/module/icons/remix/RiHeart3Fill.js +9 -0
- package/lib/module/icons/remix/RiHeart3Fill.js.map +1 -0
- package/lib/module/icons/remix/RiHeart3Line.js +9 -0
- package/lib/module/icons/remix/RiHeart3Line.js.map +1 -0
- package/lib/module/icons/remix/RiLandscapeLine.js +9 -0
- package/lib/module/icons/remix/RiLandscapeLine.js.map +1 -0
- package/lib/module/icons/remix/RiMapPin2Line.js +9 -0
- package/lib/module/icons/remix/RiMapPin2Line.js.map +1 -0
- package/lib/module/icons/remix/RiMedalLine.js +9 -0
- package/lib/module/icons/remix/RiMedalLine.js.map +1 -0
- package/lib/module/icons/remix/RiParkingBoxLine.js +9 -0
- package/lib/module/icons/remix/RiParkingBoxLine.js.map +1 -0
- package/lib/module/icons/remix/RiPlantLine.js +9 -0
- package/lib/module/icons/remix/RiPlantLine.js.map +1 -0
- package/lib/module/icons/remix/RiSailboatLine.js +9 -0
- package/lib/module/icons/remix/RiSailboatLine.js.map +1 -0
- package/lib/module/icons/remix/RiShareLine.js +9 -0
- package/lib/module/icons/remix/RiShareLine.js.map +1 -0
- package/lib/module/icons/remix/RiShip2Line.js +9 -0
- package/lib/module/icons/remix/RiShip2Line.js.map +1 -0
- package/lib/module/icons/remix/RiSubtractLine.js +9 -0
- package/lib/module/icons/remix/RiSubtractLine.js.map +1 -0
- package/lib/module/icons/remix/RiTShirtAirLine.js +9 -0
- package/lib/module/icons/remix/RiTShirtAirLine.js.map +1 -0
- package/lib/module/icons/remix/RiTempColdLine.js +9 -0
- package/lib/module/icons/remix/RiTempColdLine.js.map +1 -0
- package/lib/module/icons/remix/RiTentLine.js +9 -0
- package/lib/module/icons/remix/RiTentLine.js.map +1 -0
- package/lib/module/icons/remix/RiTranslate2.js +9 -0
- package/lib/module/icons/remix/RiTranslate2.js.map +1 -0
- package/lib/module/icons/remix/RiTreeLine.js +9 -0
- package/lib/module/icons/remix/RiTreeLine.js.map +1 -0
- package/lib/module/icons/remix/RiTvLine.js +9 -0
- package/lib/module/icons/remix/RiTvLine.js.map +1 -0
- package/lib/module/icons/remix/RiWifiLine.js +9 -0
- package/lib/module/icons/remix/RiWifiLine.js.map +1 -0
- package/lib/module/icons/remix/index.js +27 -0
- package/lib/module/icons/remix/index.js.map +1 -1
- package/lib/module/index.js +10 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +10 -0
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/listing-card/FavoriteButton.js +105 -0
- package/lib/module/listing-card/FavoriteButton.js.map +1 -0
- package/lib/module/listing-card/ListingCard.js +596 -0
- package/lib/module/listing-card/ListingCard.js.map +1 -0
- package/lib/module/listing-card/ListingCardGrid.js +65 -0
- package/lib/module/listing-card/ListingCardGrid.js.map +1 -0
- package/lib/module/listing-card/WishlistCard.js +196 -0
- package/lib/module/listing-card/WishlistCard.js.map +1 -0
- package/lib/module/listing-card/index.js +7 -0
- package/lib/module/listing-card/index.js.map +1 -0
- package/lib/module/listing-card/shared.js +169 -0
- package/lib/module/listing-card/shared.js.map +1 -0
- package/lib/module/listing-card/types.js +4 -0
- package/lib/module/listing-card/types.js.map +1 -0
- package/lib/module/listing-details/AmenityList.js +123 -0
- package/lib/module/listing-details/AmenityList.js.map +1 -0
- package/lib/module/listing-details/HostCard.js +269 -0
- package/lib/module/listing-details/HostCard.js.map +1 -0
- package/lib/module/listing-details/ListingHeader.js +259 -0
- package/lib/module/listing-details/ListingHeader.js.map +1 -0
- package/lib/module/listing-details/ListingHighlights.js +81 -0
- package/lib/module/listing-details/ListingHighlights.js.map +1 -0
- package/lib/module/listing-details/ListingPhotoGrid.js +292 -0
- package/lib/module/listing-details/ListingPhotoGrid.js.map +1 -0
- package/lib/module/listing-details/ListingSection.js +75 -0
- package/lib/module/listing-details/ListingSection.js.map +1 -0
- package/lib/module/listing-details/ReviewCard.js +264 -0
- package/lib/module/listing-details/ReviewCard.js.map +1 -0
- package/lib/module/listing-details/ReviewSummary.js +199 -0
- package/lib/module/listing-details/ReviewSummary.js.map +1 -0
- package/lib/module/listing-details/constants.js +17 -0
- package/lib/module/listing-details/constants.js.map +1 -0
- package/lib/module/listing-details/index.js +12 -0
- package/lib/module/listing-details/index.js.map +1 -0
- package/lib/module/listing-details/shared.js +97 -0
- package/lib/module/listing-details/shared.js.map +1 -0
- package/lib/module/listing-details/types.js +4 -0
- package/lib/module/listing-details/types.js.map +1 -0
- package/lib/module/listing-details/use-container-width.js +22 -0
- package/lib/module/listing-details/use-container-width.js.map +1 -0
- package/lib/module/map-marker/MapClusterMarker.js +93 -0
- package/lib/module/map-marker/MapClusterMarker.js.map +1 -0
- package/lib/module/map-marker/MapListingPreview.js +315 -0
- package/lib/module/map-marker/MapListingPreview.js.map +1 -0
- package/lib/module/map-marker/MapPriceMarker.js +111 -0
- package/lib/module/map-marker/MapPriceMarker.js.map +1 -0
- package/lib/module/map-marker/MapSearchAreaButton.js +122 -0
- package/lib/module/map-marker/MapSearchAreaButton.js.map +1 -0
- package/lib/module/map-marker/index.js +7 -0
- package/lib/module/map-marker/index.js.map +1 -0
- package/lib/module/map-marker/shared.js +85 -0
- package/lib/module/map-marker/shared.js.map +1 -0
- package/lib/module/map-marker/types.js +4 -0
- package/lib/module/map-marker/types.js.map +1 -0
- package/lib/module/rating/Rating.js +97 -0
- package/lib/module/rating/Rating.js.map +1 -0
- package/lib/module/rating/RatingBar.js +104 -0
- package/lib/module/rating/RatingBar.js.map +1 -0
- package/lib/module/rating/index.js +5 -0
- package/lib/module/rating/index.js.map +1 -0
- package/lib/module/rating/types.js +4 -0
- package/lib/module/rating/types.js.map +1 -0
- package/lib/module/stay-filters/AmenityFilter.js +56 -0
- package/lib/module/stay-filters/AmenityFilter.js.map +1 -0
- package/lib/module/stay-filters/CountFilter.js +96 -0
- package/lib/module/stay-filters/CountFilter.js.map +1 -0
- package/lib/module/stay-filters/FilterChip.js +151 -0
- package/lib/module/stay-filters/FilterChip.js.map +1 -0
- package/lib/module/stay-filters/FilterFooter.js +72 -0
- package/lib/module/stay-filters/FilterFooter.js.map +1 -0
- package/lib/module/stay-filters/FilterSection.js +75 -0
- package/lib/module/stay-filters/FilterSection.js.map +1 -0
- package/lib/module/stay-filters/FilterTextButton.js +113 -0
- package/lib/module/stay-filters/FilterTextButton.js.map +1 -0
- package/lib/module/stay-filters/FilterTriggerButton.js +55 -0
- package/lib/module/stay-filters/FilterTriggerButton.js.map +1 -0
- package/lib/module/stay-filters/PriceHistogram.js +82 -0
- package/lib/module/stay-filters/PriceHistogram.js.map +1 -0
- package/lib/module/stay-filters/PriceRangeFilter.js +146 -0
- package/lib/module/stay-filters/PriceRangeFilter.js.map +1 -0
- package/lib/module/stay-filters/SegmentedFilter.js +39 -0
- package/lib/module/stay-filters/SegmentedFilter.js.map +1 -0
- package/lib/module/stay-filters/SwitchFilterRow.js +65 -0
- package/lib/module/stay-filters/SwitchFilterRow.js.map +1 -0
- package/lib/module/stay-filters/ToggleChipGroup.js +54 -0
- package/lib/module/stay-filters/ToggleChipGroup.js.map +1 -0
- package/lib/module/stay-filters/index.js +13 -0
- package/lib/module/stay-filters/index.js.map +1 -0
- package/lib/module/stay-filters/types.js +4 -0
- package/lib/module/stay-filters/types.js.map +1 -0
- package/lib/module/stay-search/DateFlexibilityChips.js +49 -0
- package/lib/module/stay-search/DateFlexibilityChips.js.map +1 -0
- package/lib/module/stay-search/DestinationSuggestions.js +173 -0
- package/lib/module/stay-search/DestinationSuggestions.js.map +1 -0
- package/lib/module/stay-search/GuestPicker.js +100 -0
- package/lib/module/stay-search/GuestPicker.js.map +1 -0
- package/lib/module/stay-search/StaySearchBar.js +342 -0
- package/lib/module/stay-search/StaySearchBar.js.map +1 -0
- package/lib/module/stay-search/StaySearchCompact.js +138 -0
- package/lib/module/stay-search/StaySearchCompact.js.map +1 -0
- package/lib/module/stay-search/StaySearchPanel.js +47 -0
- package/lib/module/stay-search/StaySearchPanel.js.map +1 -0
- package/lib/module/stay-search/StaySearchStep.js +131 -0
- package/lib/module/stay-search/StaySearchStep.js.map +1 -0
- package/lib/module/stay-search/constants.js +63 -0
- package/lib/module/stay-search/constants.js.map +1 -0
- package/lib/module/stay-search/context.js +16 -0
- package/lib/module/stay-search/context.js.map +1 -0
- package/lib/module/stay-search/guests.js +25 -0
- package/lib/module/stay-search/guests.js.map +1 -0
- package/lib/module/stay-search/index.js +11 -0
- package/lib/module/stay-search/index.js.map +1 -0
- package/lib/module/stay-search/palette.js +72 -0
- package/lib/module/stay-search/palette.js.map +1 -0
- package/lib/module/stay-search/types.js +4 -0
- package/lib/module/stay-search/types.js.map +1 -0
- package/lib/module/stepper/Stepper.js +215 -0
- package/lib/module/stepper/Stepper.js.map +1 -0
- package/lib/module/stepper/StepperRow.js +71 -0
- package/lib/module/stepper/StepperRow.js.map +1 -0
- package/lib/module/stepper/index.js +5 -0
- package/lib/module/stepper/index.js.map +1 -0
- package/lib/module/stepper/types.js +4 -0
- package/lib/module/stepper/types.js.map +1 -0
- package/lib/typescript/commonjs/booking/BookingBar.d.ts +21 -0
- package/lib/typescript/commonjs/booking/BookingBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/BookingCard.d.ts +6 -0
- package/lib/typescript/commonjs/booking/BookingCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/BookingLink.d.ts +27 -0
- package/lib/typescript/commonjs/booking/BookingLink.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/BookingPrice.d.ts +20 -0
- package/lib/typescript/commonjs/booking/BookingPrice.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/PriceBreakdown.d.ts +6 -0
- package/lib/typescript/commonjs/booking/PriceBreakdown.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/TripCard.d.ts +28 -0
- package/lib/typescript/commonjs/booking/TripCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/constants.d.ts +8 -0
- package/lib/typescript/commonjs/booking/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/index.d.ts +7 -0
- package/lib/typescript/commonjs/booking/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/shared.d.ts +35 -0
- package/lib/typescript/commonjs/booking/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/booking/types.d.ts +149 -0
- package/lib/typescript/commonjs/booking/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/category-bar/CategoryBar.d.ts +36 -0
- package/lib/typescript/commonjs/category-bar/CategoryBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/category-bar/index.d.ts +3 -0
- package/lib/typescript/commonjs/category-bar/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/category-bar/types.d.ts +44 -0
- package/lib/typescript/commonjs/category-bar/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/dialog/DialogBottomSheet.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/remix/RiAncientGateLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiAncientGateLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiAncientPavilionLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiAncientPavilionLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiBikeLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiBikeLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiBriefcase4Line.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiBriefcase4Line.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiCactusLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiCactusLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiCalendarCloseLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiCalendarCloseLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiDoorOpenLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiDoorOpenLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiFridgeLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiFridgeLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiGolfBallLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiGolfBallLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiHeart3Fill.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiHeart3Fill.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiHeart3Line.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiHeart3Line.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiLandscapeLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiLandscapeLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiMapPin2Line.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiMapPin2Line.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiMedalLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiMedalLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiParkingBoxLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiParkingBoxLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiPlantLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiPlantLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiSailboatLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiSailboatLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiShareLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiShareLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiShip2Line.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiShip2Line.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiSubtractLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiSubtractLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTShirtAirLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTShirtAirLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTempColdLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTempColdLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTentLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTentLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTranslate2.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTranslate2.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTreeLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTreeLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiTvLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiTvLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/RiWifiLine.d.ts +8 -0
- package/lib/typescript/commonjs/icons/remix/RiWifiLine.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/remix/index.d.ts +27 -0
- package/lib/typescript/commonjs/icons/remix/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +17 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +17 -0
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/listing-card/FavoriteButton.d.ts +21 -0
- package/lib/typescript/commonjs/listing-card/FavoriteButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-card/ListingCard.d.ts +6 -0
- package/lib/typescript/commonjs/listing-card/ListingCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-card/ListingCardGrid.d.ts +23 -0
- package/lib/typescript/commonjs/listing-card/ListingCardGrid.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-card/WishlistCard.d.ts +6 -0
- package/lib/typescript/commonjs/listing-card/WishlistCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-card/index.d.ts +6 -0
- package/lib/typescript/commonjs/listing-card/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-card/shared.d.ts +67 -0
- package/lib/typescript/commonjs/listing-card/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-card/types.d.ts +129 -0
- package/lib/typescript/commonjs/listing-card/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/AmenityList.d.ts +6 -0
- package/lib/typescript/commonjs/listing-details/AmenityList.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/HostCard.d.ts +22 -0
- package/lib/typescript/commonjs/listing-details/HostCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/ListingHeader.d.ts +8 -0
- package/lib/typescript/commonjs/listing-details/ListingHeader.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/ListingHighlights.d.ts +14 -0
- package/lib/typescript/commonjs/listing-details/ListingHighlights.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/ListingPhotoGrid.d.ts +6 -0
- package/lib/typescript/commonjs/listing-details/ListingPhotoGrid.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/ListingSection.d.ts +15 -0
- package/lib/typescript/commonjs/listing-details/ListingSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/ReviewCard.d.ts +6 -0
- package/lib/typescript/commonjs/listing-details/ReviewCard.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/ReviewSummary.d.ts +6 -0
- package/lib/typescript/commonjs/listing-details/ReviewSummary.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/constants.d.ts +15 -0
- package/lib/typescript/commonjs/listing-details/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/index.d.ts +11 -0
- package/lib/typescript/commonjs/listing-details/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/shared.d.ts +42 -0
- package/lib/typescript/commonjs/listing-details/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/types.d.ts +238 -0
- package/lib/typescript/commonjs/listing-details/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/listing-details/use-container-width.d.ts +13 -0
- package/lib/typescript/commonjs/listing-details/use-container-width.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/MapClusterMarker.d.ts +6 -0
- package/lib/typescript/commonjs/map-marker/MapClusterMarker.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/MapListingPreview.d.ts +6 -0
- package/lib/typescript/commonjs/map-marker/MapListingPreview.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/MapPriceMarker.d.ts +6 -0
- package/lib/typescript/commonjs/map-marker/MapPriceMarker.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/MapSearchAreaButton.d.ts +6 -0
- package/lib/typescript/commonjs/map-marker/MapSearchAreaButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/index.d.ts +6 -0
- package/lib/typescript/commonjs/map-marker/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/shared.d.ts +30 -0
- package/lib/typescript/commonjs/map-marker/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/map-marker/types.d.ts +94 -0
- package/lib/typescript/commonjs/map-marker/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/rating/Rating.d.ts +8 -0
- package/lib/typescript/commonjs/rating/Rating.d.ts.map +1 -0
- package/lib/typescript/commonjs/rating/RatingBar.d.ts +6 -0
- package/lib/typescript/commonjs/rating/RatingBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/rating/index.d.ts +4 -0
- package/lib/typescript/commonjs/rating/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/rating/types.d.ts +49 -0
- package/lib/typescript/commonjs/rating/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/AmenityFilter.d.ts +15 -0
- package/lib/typescript/commonjs/stay-filters/AmenityFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/CountFilter.d.ts +21 -0
- package/lib/typescript/commonjs/stay-filters/CountFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterChip.d.ts +17 -0
- package/lib/typescript/commonjs/stay-filters/FilterChip.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterFooter.d.ts +19 -0
- package/lib/typescript/commonjs/stay-filters/FilterFooter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterSection.d.ts +19 -0
- package/lib/typescript/commonjs/stay-filters/FilterSection.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterTextButton.d.ts +13 -0
- package/lib/typescript/commonjs/stay-filters/FilterTextButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/FilterTriggerButton.d.ts +14 -0
- package/lib/typescript/commonjs/stay-filters/FilterTriggerButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/PriceHistogram.d.ts +22 -0
- package/lib/typescript/commonjs/stay-filters/PriceHistogram.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/PriceRangeFilter.d.ts +8 -0
- package/lib/typescript/commonjs/stay-filters/PriceRangeFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/SegmentedFilter.d.ts +12 -0
- package/lib/typescript/commonjs/stay-filters/SegmentedFilter.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/SwitchFilterRow.d.ts +14 -0
- package/lib/typescript/commonjs/stay-filters/SwitchFilterRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/ToggleChipGroup.d.ts +17 -0
- package/lib/typescript/commonjs/stay-filters/ToggleChipGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/index.d.ts +12 -0
- package/lib/typescript/commonjs/stay-filters/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-filters/types.d.ts +179 -0
- package/lib/typescript/commonjs/stay-filters/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/DateFlexibilityChips.d.ts +12 -0
- package/lib/typescript/commonjs/stay-search/DateFlexibilityChips.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/DestinationSuggestions.d.ts +6 -0
- package/lib/typescript/commonjs/stay-search/DestinationSuggestions.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts +19 -0
- package/lib/typescript/commonjs/stay-search/GuestPicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/StaySearchBar.d.ts +6 -0
- package/lib/typescript/commonjs/stay-search/StaySearchBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/StaySearchCompact.d.ts +6 -0
- package/lib/typescript/commonjs/stay-search/StaySearchCompact.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/StaySearchPanel.d.ts +13 -0
- package/lib/typescript/commonjs/stay-search/StaySearchPanel.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/StaySearchStep.d.ts +6 -0
- package/lib/typescript/commonjs/stay-search/StaySearchStep.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/constants.d.ts +27 -0
- package/lib/typescript/commonjs/stay-search/constants.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/context.d.ts +3 -0
- package/lib/typescript/commonjs/stay-search/context.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/guests.d.ts +13 -0
- package/lib/typescript/commonjs/stay-search/guests.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/index.d.ts +10 -0
- package/lib/typescript/commonjs/stay-search/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/palette.d.ts +48 -0
- package/lib/typescript/commonjs/stay-search/palette.d.ts.map +1 -0
- package/lib/typescript/commonjs/stay-search/types.d.ts +195 -0
- package/lib/typescript/commonjs/stay-search/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/stepper/Stepper.d.ts +6 -0
- package/lib/typescript/commonjs/stepper/Stepper.d.ts.map +1 -0
- package/lib/typescript/commonjs/stepper/StepperRow.d.ts +13 -0
- package/lib/typescript/commonjs/stepper/StepperRow.d.ts.map +1 -0
- package/lib/typescript/commonjs/stepper/index.d.ts +4 -0
- package/lib/typescript/commonjs/stepper/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/stepper/types.d.ts +49 -0
- package/lib/typescript/commonjs/stepper/types.d.ts.map +1 -0
- package/lib/typescript/module/booking/BookingBar.d.ts +21 -0
- package/lib/typescript/module/booking/BookingBar.d.ts.map +1 -0
- package/lib/typescript/module/booking/BookingCard.d.ts +6 -0
- package/lib/typescript/module/booking/BookingCard.d.ts.map +1 -0
- package/lib/typescript/module/booking/BookingLink.d.ts +27 -0
- package/lib/typescript/module/booking/BookingLink.d.ts.map +1 -0
- package/lib/typescript/module/booking/BookingPrice.d.ts +20 -0
- package/lib/typescript/module/booking/BookingPrice.d.ts.map +1 -0
- package/lib/typescript/module/booking/PriceBreakdown.d.ts +6 -0
- package/lib/typescript/module/booking/PriceBreakdown.d.ts.map +1 -0
- package/lib/typescript/module/booking/TripCard.d.ts +28 -0
- package/lib/typescript/module/booking/TripCard.d.ts.map +1 -0
- package/lib/typescript/module/booking/constants.d.ts +8 -0
- package/lib/typescript/module/booking/constants.d.ts.map +1 -0
- package/lib/typescript/module/booking/index.d.ts +7 -0
- package/lib/typescript/module/booking/index.d.ts.map +1 -0
- package/lib/typescript/module/booking/shared.d.ts +35 -0
- package/lib/typescript/module/booking/shared.d.ts.map +1 -0
- package/lib/typescript/module/booking/types.d.ts +149 -0
- package/lib/typescript/module/booking/types.d.ts.map +1 -0
- package/lib/typescript/module/category-bar/CategoryBar.d.ts +36 -0
- package/lib/typescript/module/category-bar/CategoryBar.d.ts.map +1 -0
- package/lib/typescript/module/category-bar/index.d.ts +3 -0
- package/lib/typescript/module/category-bar/index.d.ts.map +1 -0
- package/lib/typescript/module/category-bar/types.d.ts +44 -0
- package/lib/typescript/module/category-bar/types.d.ts.map +1 -0
- package/lib/typescript/module/dialog/DialogBottomSheet.d.ts.map +1 -1
- package/lib/typescript/module/icons/remix/RiAncientGateLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiAncientGateLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiAncientPavilionLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiAncientPavilionLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiBikeLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiBikeLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiBriefcase4Line.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiBriefcase4Line.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiCactusLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiCactusLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiCalendarCloseLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiCalendarCloseLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiDoorOpenLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiDoorOpenLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiFridgeLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiFridgeLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiGolfBallLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiGolfBallLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiHeart3Fill.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiHeart3Fill.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiHeart3Line.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiHeart3Line.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiLandscapeLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiLandscapeLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiMapPin2Line.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiMapPin2Line.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiMedalLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiMedalLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiParkingBoxLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiParkingBoxLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiPlantLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiPlantLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiSailboatLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiSailboatLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiShareLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiShareLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiShip2Line.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiShip2Line.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiSubtractLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiSubtractLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTShirtAirLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTShirtAirLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTempColdLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTempColdLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTentLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTentLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTranslate2.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTranslate2.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTreeLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTreeLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiTvLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiTvLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/RiWifiLine.d.ts +8 -0
- package/lib/typescript/module/icons/remix/RiWifiLine.d.ts.map +1 -0
- package/lib/typescript/module/icons/remix/index.d.ts +27 -0
- package/lib/typescript/module/icons/remix/index.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +17 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +17 -0
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/listing-card/FavoriteButton.d.ts +21 -0
- package/lib/typescript/module/listing-card/FavoriteButton.d.ts.map +1 -0
- package/lib/typescript/module/listing-card/ListingCard.d.ts +6 -0
- package/lib/typescript/module/listing-card/ListingCard.d.ts.map +1 -0
- package/lib/typescript/module/listing-card/ListingCardGrid.d.ts +23 -0
- package/lib/typescript/module/listing-card/ListingCardGrid.d.ts.map +1 -0
- package/lib/typescript/module/listing-card/WishlistCard.d.ts +6 -0
- package/lib/typescript/module/listing-card/WishlistCard.d.ts.map +1 -0
- package/lib/typescript/module/listing-card/index.d.ts +6 -0
- package/lib/typescript/module/listing-card/index.d.ts.map +1 -0
- package/lib/typescript/module/listing-card/shared.d.ts +67 -0
- package/lib/typescript/module/listing-card/shared.d.ts.map +1 -0
- package/lib/typescript/module/listing-card/types.d.ts +129 -0
- package/lib/typescript/module/listing-card/types.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/AmenityList.d.ts +6 -0
- package/lib/typescript/module/listing-details/AmenityList.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/HostCard.d.ts +22 -0
- package/lib/typescript/module/listing-details/HostCard.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/ListingHeader.d.ts +8 -0
- package/lib/typescript/module/listing-details/ListingHeader.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/ListingHighlights.d.ts +14 -0
- package/lib/typescript/module/listing-details/ListingHighlights.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/ListingPhotoGrid.d.ts +6 -0
- package/lib/typescript/module/listing-details/ListingPhotoGrid.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/ListingSection.d.ts +15 -0
- package/lib/typescript/module/listing-details/ListingSection.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/ReviewCard.d.ts +6 -0
- package/lib/typescript/module/listing-details/ReviewCard.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/ReviewSummary.d.ts +6 -0
- package/lib/typescript/module/listing-details/ReviewSummary.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/constants.d.ts +15 -0
- package/lib/typescript/module/listing-details/constants.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/index.d.ts +11 -0
- package/lib/typescript/module/listing-details/index.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/shared.d.ts +42 -0
- package/lib/typescript/module/listing-details/shared.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/types.d.ts +238 -0
- package/lib/typescript/module/listing-details/types.d.ts.map +1 -0
- package/lib/typescript/module/listing-details/use-container-width.d.ts +13 -0
- package/lib/typescript/module/listing-details/use-container-width.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/MapClusterMarker.d.ts +6 -0
- package/lib/typescript/module/map-marker/MapClusterMarker.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/MapListingPreview.d.ts +6 -0
- package/lib/typescript/module/map-marker/MapListingPreview.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/MapPriceMarker.d.ts +6 -0
- package/lib/typescript/module/map-marker/MapPriceMarker.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/MapSearchAreaButton.d.ts +6 -0
- package/lib/typescript/module/map-marker/MapSearchAreaButton.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/index.d.ts +6 -0
- package/lib/typescript/module/map-marker/index.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/shared.d.ts +30 -0
- package/lib/typescript/module/map-marker/shared.d.ts.map +1 -0
- package/lib/typescript/module/map-marker/types.d.ts +94 -0
- package/lib/typescript/module/map-marker/types.d.ts.map +1 -0
- package/lib/typescript/module/rating/Rating.d.ts +8 -0
- package/lib/typescript/module/rating/Rating.d.ts.map +1 -0
- package/lib/typescript/module/rating/RatingBar.d.ts +6 -0
- package/lib/typescript/module/rating/RatingBar.d.ts.map +1 -0
- package/lib/typescript/module/rating/index.d.ts +4 -0
- package/lib/typescript/module/rating/index.d.ts.map +1 -0
- package/lib/typescript/module/rating/types.d.ts +49 -0
- package/lib/typescript/module/rating/types.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/AmenityFilter.d.ts +15 -0
- package/lib/typescript/module/stay-filters/AmenityFilter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/CountFilter.d.ts +21 -0
- package/lib/typescript/module/stay-filters/CountFilter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterChip.d.ts +17 -0
- package/lib/typescript/module/stay-filters/FilterChip.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterFooter.d.ts +19 -0
- package/lib/typescript/module/stay-filters/FilterFooter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterSection.d.ts +19 -0
- package/lib/typescript/module/stay-filters/FilterSection.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterTextButton.d.ts +13 -0
- package/lib/typescript/module/stay-filters/FilterTextButton.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/FilterTriggerButton.d.ts +14 -0
- package/lib/typescript/module/stay-filters/FilterTriggerButton.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/PriceHistogram.d.ts +22 -0
- package/lib/typescript/module/stay-filters/PriceHistogram.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/PriceRangeFilter.d.ts +8 -0
- package/lib/typescript/module/stay-filters/PriceRangeFilter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/SegmentedFilter.d.ts +12 -0
- package/lib/typescript/module/stay-filters/SegmentedFilter.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/SwitchFilterRow.d.ts +14 -0
- package/lib/typescript/module/stay-filters/SwitchFilterRow.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/ToggleChipGroup.d.ts +17 -0
- package/lib/typescript/module/stay-filters/ToggleChipGroup.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/index.d.ts +12 -0
- package/lib/typescript/module/stay-filters/index.d.ts.map +1 -0
- package/lib/typescript/module/stay-filters/types.d.ts +179 -0
- package/lib/typescript/module/stay-filters/types.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/DateFlexibilityChips.d.ts +12 -0
- package/lib/typescript/module/stay-search/DateFlexibilityChips.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/DestinationSuggestions.d.ts +6 -0
- package/lib/typescript/module/stay-search/DestinationSuggestions.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/GuestPicker.d.ts +19 -0
- package/lib/typescript/module/stay-search/GuestPicker.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/StaySearchBar.d.ts +6 -0
- package/lib/typescript/module/stay-search/StaySearchBar.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/StaySearchCompact.d.ts +6 -0
- package/lib/typescript/module/stay-search/StaySearchCompact.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/StaySearchPanel.d.ts +13 -0
- package/lib/typescript/module/stay-search/StaySearchPanel.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/StaySearchStep.d.ts +6 -0
- package/lib/typescript/module/stay-search/StaySearchStep.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/constants.d.ts +27 -0
- package/lib/typescript/module/stay-search/constants.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/context.d.ts +3 -0
- package/lib/typescript/module/stay-search/context.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/guests.d.ts +13 -0
- package/lib/typescript/module/stay-search/guests.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/index.d.ts +10 -0
- package/lib/typescript/module/stay-search/index.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/palette.d.ts +48 -0
- package/lib/typescript/module/stay-search/palette.d.ts.map +1 -0
- package/lib/typescript/module/stay-search/types.d.ts +195 -0
- package/lib/typescript/module/stay-search/types.d.ts.map +1 -0
- package/lib/typescript/module/stepper/Stepper.d.ts +6 -0
- package/lib/typescript/module/stepper/Stepper.d.ts.map +1 -0
- package/lib/typescript/module/stepper/StepperRow.d.ts +13 -0
- package/lib/typescript/module/stepper/StepperRow.d.ts.map +1 -0
- package/lib/typescript/module/stepper/index.d.ts +4 -0
- package/lib/typescript/module/stepper/index.d.ts.map +1 -0
- package/lib/typescript/module/stepper/types.d.ts +49 -0
- package/lib/typescript/module/stepper/types.d.ts.map +1 -0
- package/package.json +127 -1
- package/src/booking/BookingBar.tsx +106 -0
- package/src/booking/BookingCard.tsx +355 -0
- package/src/booking/BookingLink.tsx +96 -0
- package/src/booking/BookingPrice.tsx +67 -0
- package/src/booking/PriceBreakdown.tsx +99 -0
- package/src/booking/TripCard.tsx +202 -0
- package/src/booking/constants.ts +10 -0
- package/src/booking/index.ts +17 -0
- package/src/booking/shared.ts +115 -0
- package/src/booking/types.ts +179 -0
- package/src/category-bar/CategoryBar.tsx +511 -0
- package/src/category-bar/index.ts +2 -0
- package/src/category-bar/types.ts +42 -0
- package/src/dialog/DialogBottomSheet.tsx +11 -1
- package/src/icons/remix/RiAncientGateLine.tsx +6 -0
- package/src/icons/remix/RiAncientPavilionLine.tsx +6 -0
- package/src/icons/remix/RiBikeLine.tsx +6 -0
- package/src/icons/remix/RiBriefcase4Line.tsx +6 -0
- package/src/icons/remix/RiCactusLine.tsx +6 -0
- package/src/icons/remix/RiCalendarCloseLine.tsx +6 -0
- package/src/icons/remix/RiDoorOpenLine.tsx +6 -0
- package/src/icons/remix/RiFridgeLine.tsx +6 -0
- package/src/icons/remix/RiGolfBallLine.tsx +6 -0
- package/src/icons/remix/RiHeart3Fill.tsx +6 -0
- package/src/icons/remix/RiHeart3Line.tsx +6 -0
- package/src/icons/remix/RiLandscapeLine.tsx +6 -0
- package/src/icons/remix/RiMapPin2Line.tsx +6 -0
- package/src/icons/remix/RiMedalLine.tsx +6 -0
- package/src/icons/remix/RiParkingBoxLine.tsx +6 -0
- package/src/icons/remix/RiPlantLine.tsx +6 -0
- package/src/icons/remix/RiSailboatLine.tsx +6 -0
- package/src/icons/remix/RiShareLine.tsx +6 -0
- package/src/icons/remix/RiShip2Line.tsx +6 -0
- package/src/icons/remix/RiSubtractLine.tsx +6 -0
- package/src/icons/remix/RiTShirtAirLine.tsx +6 -0
- package/src/icons/remix/RiTempColdLine.tsx +6 -0
- package/src/icons/remix/RiTentLine.tsx +6 -0
- package/src/icons/remix/RiTranslate2.tsx +6 -0
- package/src/icons/remix/RiTreeLine.tsx +6 -0
- package/src/icons/remix/RiTvLine.tsx +6 -0
- package/src/icons/remix/RiWifiLine.tsx +6 -0
- package/src/icons/remix/index.ts +27 -0
- package/src/index.ts +94 -0
- package/src/index.web.ts +94 -0
- package/src/listing-card/FavoriteButton.tsx +101 -0
- package/src/listing-card/ListingCard.tsx +565 -0
- package/src/listing-card/ListingCardGrid.tsx +65 -0
- package/src/listing-card/WishlistCard.tsx +150 -0
- package/src/listing-card/index.ts +11 -0
- package/src/listing-card/shared.ts +207 -0
- package/src/listing-card/types.ts +133 -0
- package/src/listing-details/AmenityList.tsx +103 -0
- package/src/listing-details/HostCard.tsx +229 -0
- package/src/listing-details/ListingHeader.tsx +248 -0
- package/src/listing-details/ListingHighlights.tsx +53 -0
- package/src/listing-details/ListingPhotoGrid.tsx +301 -0
- package/src/listing-details/ListingSection.tsx +75 -0
- package/src/listing-details/ReviewCard.tsx +221 -0
- package/src/listing-details/ReviewSummary.tsx +180 -0
- package/src/listing-details/constants.ts +14 -0
- package/src/listing-details/index.ts +35 -0
- package/src/listing-details/shared.ts +121 -0
- package/src/listing-details/types.ts +286 -0
- package/src/listing-details/use-container-width.ts +21 -0
- package/src/map-marker/MapClusterMarker.tsx +85 -0
- package/src/map-marker/MapListingPreview.tsx +302 -0
- package/src/map-marker/MapPriceMarker.tsx +108 -0
- package/src/map-marker/MapSearchAreaButton.tsx +118 -0
- package/src/map-marker/index.ts +12 -0
- package/src/map-marker/shared.ts +101 -0
- package/src/map-marker/types.ts +101 -0
- package/src/rating/Rating.tsx +89 -0
- package/src/rating/RatingBar.tsx +87 -0
- package/src/rating/index.ts +3 -0
- package/src/rating/types.ts +52 -0
- package/src/stay-filters/AmenityFilter.tsx +58 -0
- package/src/stay-filters/CountFilter.tsx +88 -0
- package/src/stay-filters/FilterChip.tsx +129 -0
- package/src/stay-filters/FilterFooter.tsx +79 -0
- package/src/stay-filters/FilterSection.tsx +72 -0
- package/src/stay-filters/FilterTextButton.tsx +105 -0
- package/src/stay-filters/FilterTriggerButton.tsx +58 -0
- package/src/stay-filters/PriceHistogram.tsx +79 -0
- package/src/stay-filters/PriceRangeFilter.tsx +142 -0
- package/src/stay-filters/SegmentedFilter.tsx +42 -0
- package/src/stay-filters/SwitchFilterRow.tsx +60 -0
- package/src/stay-filters/ToggleChipGroup.tsx +59 -0
- package/src/stay-filters/index.ts +25 -0
- package/src/stay-filters/types.ts +192 -0
- package/src/stay-search/DateFlexibilityChips.tsx +48 -0
- package/src/stay-search/DestinationSuggestions.tsx +161 -0
- package/src/stay-search/GuestPicker.tsx +101 -0
- package/src/stay-search/StaySearchBar.tsx +349 -0
- package/src/stay-search/StaySearchCompact.tsx +127 -0
- package/src/stay-search/StaySearchPanel.tsx +51 -0
- package/src/stay-search/StaySearchStep.tsx +116 -0
- package/src/stay-search/constants.ts +58 -0
- package/src/stay-search/context.ts +15 -0
- package/src/stay-search/guests.ts +21 -0
- package/src/stay-search/index.ts +25 -0
- package/src/stay-search/palette.ts +91 -0
- package/src/stay-search/types.ts +210 -0
- package/src/stepper/Stepper.tsx +223 -0
- package/src/stepper/StepperRow.tsx +69 -0
- package/src/stepper/index.ts +3 -0
- package/src/stepper/types.ts +51 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useEffect, useMemo } from 'react';
|
|
4
|
+
import { Pressable, View } from 'react-native';
|
|
5
|
+
import { resolveButtonRamps } from "../button/shared.js";
|
|
6
|
+
import { webDataSet } from "../checkbox/shared.js";
|
|
7
|
+
import { useInteractionState } from "../hooks/use-interaction-state.js";
|
|
8
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
9
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
10
|
+
import { Text } from "../typography/index.js";
|
|
11
|
+
import { STAY_SEARCH_STEP_RADIUS } from "./constants.js";
|
|
12
|
+
import { useStaySearchPalette } from "./palette.js";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
/**
|
|
15
|
+
* One card of the narrow-screen search flow (Where / When / Who), one expanded
|
|
16
|
+
* at a time — the app owns which.
|
|
17
|
+
*
|
|
18
|
+
* Collapsed: a 56-tall row, the label (body-medium, secondary) on the left and
|
|
19
|
+
* the summary (body-semibold) on the right; a `button` with `aria-expanded`.
|
|
20
|
+
* Expanded: the title (title-2-semibold, a header) over the children, 24 inset.
|
|
21
|
+
* Both are the card surface with a hairline, radius 20; the expanded card
|
|
22
|
+
* carries the bar's soft shadow.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
const STYLE_ID = 'bloom-stay-search-step-web-css';
|
|
26
|
+
const CSS = `
|
|
27
|
+
[data-bloom-stay-step] {
|
|
28
|
+
outline: none;
|
|
29
|
+
}
|
|
30
|
+
[data-bloom-stay-step]:focus-visible {
|
|
31
|
+
box-shadow: inset 0 0 0 2px var(--bloom-stay-step-ring, currentColor);
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
function StaySearchStepComponent({
|
|
35
|
+
label,
|
|
36
|
+
summary,
|
|
37
|
+
title,
|
|
38
|
+
expanded,
|
|
39
|
+
onPress,
|
|
40
|
+
children,
|
|
41
|
+
style,
|
|
42
|
+
testID
|
|
43
|
+
}) {
|
|
44
|
+
const theme = useTheme();
|
|
45
|
+
const palette = useStaySearchPalette();
|
|
46
|
+
const {
|
|
47
|
+
accent
|
|
48
|
+
} = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
49
|
+
const hover = useInteractionState();
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
adoptStyleSheet(STYLE_ID, CSS);
|
|
52
|
+
}, []);
|
|
53
|
+
const card = {
|
|
54
|
+
borderRadius: STAY_SEARCH_STEP_RADIUS,
|
|
55
|
+
borderWidth: 1,
|
|
56
|
+
borderColor: palette.border,
|
|
57
|
+
backgroundColor: palette.barSurface,
|
|
58
|
+
boxShadow: expanded ? palette.barShadow : undefined
|
|
59
|
+
};
|
|
60
|
+
if (expanded) {
|
|
61
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
62
|
+
testID: testID,
|
|
63
|
+
style: [card, {
|
|
64
|
+
paddingTop: 24,
|
|
65
|
+
paddingBottom: 24,
|
|
66
|
+
paddingLeft: 24,
|
|
67
|
+
paddingRight: 24,
|
|
68
|
+
gap: 16
|
|
69
|
+
}, style],
|
|
70
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
71
|
+
variant: "title-2-semibold",
|
|
72
|
+
role: "heading",
|
|
73
|
+
style: {
|
|
74
|
+
color: palette.text
|
|
75
|
+
},
|
|
76
|
+
children: title ?? label
|
|
77
|
+
}), children]
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
const row = {
|
|
81
|
+
minHeight: 56,
|
|
82
|
+
flexDirection: 'row',
|
|
83
|
+
alignItems: 'center',
|
|
84
|
+
gap: 16,
|
|
85
|
+
paddingLeft: 20,
|
|
86
|
+
paddingRight: 20,
|
|
87
|
+
borderRadius: STAY_SEARCH_STEP_RADIUS - 1,
|
|
88
|
+
backgroundColor: hover.state ? palette.segmentHover : 'transparent',
|
|
89
|
+
'--bloom-stay-step-ring': accent[500]
|
|
90
|
+
};
|
|
91
|
+
return /*#__PURE__*/_jsx(View, {
|
|
92
|
+
style: [card, style],
|
|
93
|
+
children: /*#__PURE__*/_jsxs(Pressable, {
|
|
94
|
+
...webDataSet({
|
|
95
|
+
bloomStayStep: ''
|
|
96
|
+
}),
|
|
97
|
+
onPress: onPress,
|
|
98
|
+
onHoverIn: hover.onIn,
|
|
99
|
+
onHoverOut: hover.onOut,
|
|
100
|
+
accessibilityRole: "button",
|
|
101
|
+
accessibilityLabel: summary ? `${label}, ${summary}` : label,
|
|
102
|
+
accessibilityState: {
|
|
103
|
+
expanded: false
|
|
104
|
+
},
|
|
105
|
+
"aria-expanded": false,
|
|
106
|
+
testID: testID,
|
|
107
|
+
style: row,
|
|
108
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
109
|
+
variant: "body-medium",
|
|
110
|
+
numberOfLines: 1,
|
|
111
|
+
style: {
|
|
112
|
+
color: palette.textSecondary
|
|
113
|
+
},
|
|
114
|
+
children: label
|
|
115
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
116
|
+
variant: "body-semibold",
|
|
117
|
+
numberOfLines: 1,
|
|
118
|
+
style: {
|
|
119
|
+
flex: 1,
|
|
120
|
+
minWidth: 0,
|
|
121
|
+
textAlign: 'right',
|
|
122
|
+
color: palette.text
|
|
123
|
+
},
|
|
124
|
+
children: summary ?? ''
|
|
125
|
+
})]
|
|
126
|
+
})
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
export const StaySearchStep = /*#__PURE__*/memo(StaySearchStepComponent);
|
|
130
|
+
StaySearchStep.displayName = 'StaySearchStep';
|
|
131
|
+
//# sourceMappingURL=StaySearchStep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useEffect","useMemo","Pressable","View","resolveButtonRamps","webDataSet","useInteractionState","adoptStyleSheet","useTheme","Text","STAY_SEARCH_STEP_RADIUS","useStaySearchPalette","jsx","_jsx","jsxs","_jsxs","STYLE_ID","CSS","StaySearchStepComponent","label","summary","title","expanded","onPress","children","style","testID","theme","palette","accent","hover","card","borderRadius","borderWidth","borderColor","border","backgroundColor","barSurface","boxShadow","barShadow","undefined","paddingTop","paddingBottom","paddingLeft","paddingRight","gap","variant","role","color","text","row","minHeight","flexDirection","alignItems","state","segmentHover","bloomStayStep","onHoverIn","onIn","onHoverOut","onOut","accessibilityRole","accessibilityLabel","accessibilityState","numberOfLines","textSecondary","flex","minWidth","textAlign","StaySearchStep","displayName"],"sourceRoot":"../../../src","sources":["stay-search/StaySearchStep.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,EAAE3B,KAAK,CAAC4B,IAAK;MACtBC,UAAU,EAAE7B,KAAK,CAAC8B,KAAM;MACxBC,iBAAiB,EAAC,QAAQ;MAC1BC,kBAAkB,EAAE1C,OAAO,GAAG,GAAGD,KAAK,KAAKC,OAAO,EAAE,GAAGD,KAAM;MAC7D4C,kBAAkB,EAAE;QAAEzC,QAAQ,EAAE;MAAM,CAAE;MACxC,iBAAe,KAAM;MACrBI,MAAM,EAAEA,MAAO;MACfD,KAAK,EAAEyB,GAAI;MAAA1B,QAAA,gBAEXX,IAAA,CAACJ,IAAI;QAACqC,OAAO,EAAC,aAAa;QAACkB,aAAa,EAAE,CAAE;QAACvC,KAAK,EAAE;UAAEuB,KAAK,EAAEpB,OAAO,CAACqC;QAAc,CAAE;QAAAzC,QAAA,EACnFL;MAAK,CACF,CAAC,eACPN,IAAA,CAACJ,IAAI;QACHqC,OAAO,EAAC,eAAe;QACvBkB,aAAa,EAAE,CAAE;QACjBvC,KAAK,EAAE;UAAEyC,IAAI,EAAE,CAAC;UAAEC,QAAQ,EAAE,CAAC;UAAEC,SAAS,EAAE,OAAO;UAAEpB,KAAK,EAAEpB,OAAO,CAACqB;QAAK,CAAE;QAAAzB,QAAA,EAExEJ,OAAO,IAAI;MAAE,CACV,CAAC;IAAA,CACE;EAAC,CACR,CAAC;AAEX;AAEA,OAAO,MAAMiD,cAAc,gBAAGtE,IAAI,CAACmB,uBAAuB,CAAC;AAC3DmD,cAAc,CAACC,WAAW,GAAG,gBAAgB","ignoreList":[]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Geometry shared by the stay-search parts.
|
|
5
|
+
*
|
|
6
|
+
* bar height 66 (1px hairline included), full pill
|
|
7
|
+
* segment padding-left 32 for the first segment, 24 for the rest
|
|
8
|
+
* separator 1 × 32, hidden beside a hovered or open segment
|
|
9
|
+
* search button Button primary large (44), 10 from the bar's edge
|
|
10
|
+
* panel radius 32, 12 below the bar
|
|
11
|
+
* compact trigger 56 tall, full pill
|
|
12
|
+
* step card radius 20; collapsed row 56 tall
|
|
13
|
+
*/
|
|
14
|
+
export const STAY_SEARCH_BAR_HEIGHT = 66;
|
|
15
|
+
export const STAY_SEARCH_SEPARATOR_HEIGHT = 32;
|
|
16
|
+
export const STAY_SEARCH_BUTTON_INSET = 10;
|
|
17
|
+
export const STAY_SEARCH_PANEL_RADIUS = 32;
|
|
18
|
+
export const STAY_SEARCH_PANEL_OFFSET = 12;
|
|
19
|
+
export const STAY_SEARCH_COMPACT_HEIGHT = 56;
|
|
20
|
+
export const STAY_SEARCH_STEP_RADIUS = 20;
|
|
21
|
+
export const STAY_SEARCH_TILE_SIZE = 48;
|
|
22
|
+
export const STAY_SEARCH_TILE_RADIUS = 12;
|
|
23
|
+
export const DEFAULT_STAY_SEARCH_BAR_LABELS = {
|
|
24
|
+
where: 'Where',
|
|
25
|
+
checkIn: 'Check in',
|
|
26
|
+
checkOut: 'Check out',
|
|
27
|
+
when: 'When',
|
|
28
|
+
who: 'Who',
|
|
29
|
+
destinationPlaceholder: 'Search destinations',
|
|
30
|
+
datesPlaceholder: 'Add dates',
|
|
31
|
+
guestsPlaceholder: 'Add guests',
|
|
32
|
+
search: 'Search'
|
|
33
|
+
};
|
|
34
|
+
export const DEFAULT_GUEST_LABELS = {
|
|
35
|
+
adults: 'Adults',
|
|
36
|
+
children: 'Children',
|
|
37
|
+
infants: 'Infants',
|
|
38
|
+
pets: 'Pets'
|
|
39
|
+
};
|
|
40
|
+
export const DEFAULT_GUEST_DESCRIPTIONS = {
|
|
41
|
+
adults: 'Ages 13 or above',
|
|
42
|
+
children: 'Ages 2 – 12',
|
|
43
|
+
infants: 'Under 2',
|
|
44
|
+
pets: 'Bringing a service animal?'
|
|
45
|
+
};
|
|
46
|
+
export const GUEST_KINDS = ['adults', 'children', 'infants', 'pets'];
|
|
47
|
+
export const DEFAULT_DATE_FLEXIBILITY_OPTIONS = [{
|
|
48
|
+
value: 'exact',
|
|
49
|
+
label: 'Exact dates'
|
|
50
|
+
}, {
|
|
51
|
+
value: '1',
|
|
52
|
+
label: '± 1 day'
|
|
53
|
+
}, {
|
|
54
|
+
value: '2',
|
|
55
|
+
label: '± 2 days'
|
|
56
|
+
}, {
|
|
57
|
+
value: '3',
|
|
58
|
+
label: '± 3 days'
|
|
59
|
+
}, {
|
|
60
|
+
value: '7',
|
|
61
|
+
label: '± 7 days'
|
|
62
|
+
}];
|
|
63
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["STAY_SEARCH_BAR_HEIGHT","STAY_SEARCH_SEPARATOR_HEIGHT","STAY_SEARCH_BUTTON_INSET","STAY_SEARCH_PANEL_RADIUS","STAY_SEARCH_PANEL_OFFSET","STAY_SEARCH_COMPACT_HEIGHT","STAY_SEARCH_STEP_RADIUS","STAY_SEARCH_TILE_SIZE","STAY_SEARCH_TILE_RADIUS","DEFAULT_STAY_SEARCH_BAR_LABELS","where","checkIn","checkOut","when","who","destinationPlaceholder","datesPlaceholder","guestsPlaceholder","search","DEFAULT_GUEST_LABELS","adults","children","infants","pets","DEFAULT_GUEST_DESCRIPTIONS","GUEST_KINDS","DEFAULT_DATE_FLEXIBILITY_OPTIONS","value","label"],"sourceRoot":"../../../src","sources":["stay-search/constants.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,sBAAsB,GAAG,EAAE;AACxC,OAAO,MAAMC,4BAA4B,GAAG,EAAE;AAC9C,OAAO,MAAMC,wBAAwB,GAAG,EAAE;AAC1C,OAAO,MAAMC,wBAAwB,GAAG,EAAE;AAC1C,OAAO,MAAMC,wBAAwB,GAAG,EAAE;AAC1C,OAAO,MAAMC,0BAA0B,GAAG,EAAE;AAC5C,OAAO,MAAMC,uBAAuB,GAAG,EAAE;AACzC,OAAO,MAAMC,qBAAqB,GAAG,EAAE;AACvC,OAAO,MAAMC,uBAAuB,GAAG,EAAE;AAEzC,OAAO,MAAMC,8BAAmD,GAAG;EACjEC,KAAK,EAAE,OAAO;EACdC,OAAO,EAAE,UAAU;EACnBC,QAAQ,EAAE,WAAW;EACrBC,IAAI,EAAE,MAAM;EACZC,GAAG,EAAE,KAAK;EACVC,sBAAsB,EAAE,qBAAqB;EAC7CC,gBAAgB,EAAE,WAAW;EAC7BC,iBAAiB,EAAE,YAAY;EAC/BC,MAAM,EAAE;AACV,CAAC;AAED,OAAO,MAAMC,oBAA+C,GAAG;EAC7DC,MAAM,EAAE,QAAQ;EAChBC,QAAQ,EAAE,UAAU;EACpBC,OAAO,EAAE,SAAS;EAClBC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,MAAMC,0BAAqD,GAAG;EACnEJ,MAAM,EAAE,kBAAkB;EAC1BC,QAAQ,EAAE,aAAa;EACvBC,OAAO,EAAE,SAAS;EAClBC,IAAI,EAAE;AACR,CAAC;AAED,OAAO,MAAME,WAAiC,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,CAAC;AAE1F,OAAO,MAAMC,gCAAkE,GAAG,CAChF;EAAEC,KAAK,EAAE,OAAO;EAAEC,KAAK,EAAE;AAAc,CAAC,EACxC;EAAED,KAAK,EAAE,GAAG;EAAEC,KAAK,EAAE;AAAU,CAAC,EAChC;EAAED,KAAK,EAAE,GAAG;EAAEC,KAAK,EAAE;AAAW,CAAC,EACjC;EAAED,KAAK,EAAE,GAAG;EAAEC,KAAK,EAAE;AAAW,CAAC,EACjC;EAAED,KAAK,EAAE,GAAG;EAAEC,KAAK,EAAE;AAAW,CAAC,CAClC","ignoreList":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createContext, useContext } from 'react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Closes the surface a `GuestPicker` is rendered in — `BookingCard` provides it
|
|
7
|
+
* around its guests popover — so the picker's "Close" link works without the
|
|
8
|
+
* app wiring `onClose` itself. `null` outside such a surface.
|
|
9
|
+
*/
|
|
10
|
+
const GuestPickerCloseContext = /*#__PURE__*/createContext(null);
|
|
11
|
+
GuestPickerCloseContext.displayName = 'BloomGuestPickerCloseContext';
|
|
12
|
+
export const GuestPickerCloseProvider = GuestPickerCloseContext.Provider;
|
|
13
|
+
export function useGuestPickerClose() {
|
|
14
|
+
return useContext(GuestPickerCloseContext);
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createContext","useContext","GuestPickerCloseContext","displayName","GuestPickerCloseProvider","Provider","useGuestPickerClose"],"sourceRoot":"../../../src","sources":["stay-search/context.ts"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,OAAO;;AAEjD;AACA;AACA;AACA;AACA;AACA,MAAMC,uBAAuB,gBAAGF,aAAa,CAAsB,IAAI,CAAC;AACxEE,uBAAuB,CAACC,WAAW,GAAG,8BAA8B;AAEpE,OAAO,MAAMC,wBAAwB,GAAGF,uBAAuB,CAACG,QAAQ;AAExE,OAAO,SAASC,mBAAmBA,CAAA,EAAwB;EACzD,OAAOL,UAAU,CAACC,uBAAuB,CAAC;AAC5C","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The one guest rule: a booking with any children, infants or pets needs at
|
|
5
|
+
* least one adult. Returns the minimum `adults` may take for `value`.
|
|
6
|
+
*/
|
|
7
|
+
export function minimumAdults(value) {
|
|
8
|
+
return value.children + value.infants + value.pets > 0 ? 1 : 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Set one guest count and apply the rule: adding a child, infant or pet while
|
|
13
|
+
* there are no adults also sets adults to 1. Counts are clamped at 0.
|
|
14
|
+
* Pure — `GuestPicker` calls it, and an app can call it for its own controls.
|
|
15
|
+
*/
|
|
16
|
+
export function applyGuestCount(value, kind, count) {
|
|
17
|
+
const next = {
|
|
18
|
+
...value,
|
|
19
|
+
[kind]: Math.max(0, count)
|
|
20
|
+
};
|
|
21
|
+
const floor = minimumAdults(next);
|
|
22
|
+
if (next.adults < floor) next.adults = floor;
|
|
23
|
+
return next;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=guests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["minimumAdults","value","children","infants","pets","applyGuestCount","kind","count","next","Math","max","floor","adults"],"sourceRoot":"../../../src","sources":["stay-search/guests.ts"],"mappings":";;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASA,aAAaA,CAACC,KAAkB,EAAU;EACxD,OAAOA,KAAK,CAACC,QAAQ,GAAGD,KAAK,CAACE,OAAO,GAAGF,KAAK,CAACG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;AAChE;;AAEA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACJ,KAAkB,EAAEK,IAAe,EAAEC,KAAa,EAAe;EAC/F,MAAMC,IAAiB,GAAG;IAAE,GAAGP,KAAK;IAAE,CAACK,IAAI,GAAGG,IAAI,CAACC,GAAG,CAAC,CAAC,EAAEH,KAAK;EAAE,CAAC;EAClE,MAAMI,KAAK,GAAGX,aAAa,CAACQ,IAAI,CAAC;EACjC,IAAIA,IAAI,CAACI,MAAM,GAAGD,KAAK,EAAEH,IAAI,CAACI,MAAM,GAAGD,KAAK;EAC5C,OAAOH,IAAI;AACb","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { DateFlexibilityChips } from "./DateFlexibilityChips.js";
|
|
4
|
+
export { DestinationSuggestions } from "./DestinationSuggestions.js";
|
|
5
|
+
export { GuestPicker } from "./GuestPicker.js";
|
|
6
|
+
export { applyGuestCount, minimumAdults } from "./guests.js";
|
|
7
|
+
export { StaySearchBar } from "./StaySearchBar.js";
|
|
8
|
+
export { StaySearchCompact } from "./StaySearchCompact.js";
|
|
9
|
+
export { StaySearchPanel } from "./StaySearchPanel.js";
|
|
10
|
+
export { StaySearchStep } from "./StaySearchStep.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DateFlexibilityChips","DestinationSuggestions","GuestPicker","applyGuestCount","minimumAdults","StaySearchBar","StaySearchCompact","StaySearchPanel","StaySearchStep"],"sourceRoot":"../../../src","sources":["stay-search/index.ts"],"mappings":";;AAAA,SAASA,oBAAoB,QAAQ,2BAAwB;AAC7D,SAASC,sBAAsB,QAAQ,6BAA0B;AACjE,SAASC,WAAW,QAAQ,kBAAe;AAC3C,SAASC,eAAe,EAAEC,aAAa,QAAQ,aAAU;AACzD,SAASC,aAAa,QAAQ,oBAAiB;AAC/C,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,cAAc,QAAQ,qBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
import { resolveButtonRamps } from "../button/shared.js";
|
|
5
|
+
import { resolveMenuPalette } from "../floating/menu-palette.js";
|
|
6
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The stay-search colours, resolved from the theme through the same ramps
|
|
10
|
+
* `Button` and the menus paint from.
|
|
11
|
+
*
|
|
12
|
+
* role light dark
|
|
13
|
+
* bar surface card neutral-800
|
|
14
|
+
* bar surface, a segment open neutral-100 neutral-900
|
|
15
|
+
* bar / panel hairline neutral-200 neutral-700
|
|
16
|
+
* segment hover (bar at rest) neutral-100 neutral-700 @60%
|
|
17
|
+
* segment hover (bar open) neutral-200 neutral-800
|
|
18
|
+
* open segment (raised pill) card neutral-700
|
|
19
|
+
* separator neutral-200 neutral-700
|
|
20
|
+
* icon tile neutral-100 neutral-700
|
|
21
|
+
* panel surface / shadow the menu palette's surface / border / shadow
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
/** The bar's soft lift, light and dark. */
|
|
25
|
+
export const STAY_SEARCH_BAR_SHADOW = {
|
|
26
|
+
light: '0 1px 2px 0 rgba(0, 0, 0, 0.04), 0 4px 12px 0 rgba(0, 0, 0, 0.06)',
|
|
27
|
+
dark: '0 1px 2px 0 rgba(0, 0, 0, 0.2), 0 4px 12px 0 rgba(0, 0, 0, 0.24)'
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** The raised open segment, light and dark. */
|
|
31
|
+
export const STAY_SEARCH_SEGMENT_SHADOW = {
|
|
32
|
+
light: '0 2px 8px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
|
|
33
|
+
dark: '0 2px 8px 0 rgba(0, 0, 0, 0.32), 0 1px 2px 0 rgba(0, 0, 0, 0.2)'
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** A dropped panel carries the menu shadow plus a wider ambient layer. */
|
|
37
|
+
const PANEL_AMBIENT = {
|
|
38
|
+
light: '0 12px 32px 0 rgba(0, 0, 0, 0.08)',
|
|
39
|
+
dark: '0 12px 32px 0 rgba(0, 0, 0, 0.36)'
|
|
40
|
+
};
|
|
41
|
+
export function resolveStaySearchPalette(theme) {
|
|
42
|
+
const c = theme.colors;
|
|
43
|
+
const {
|
|
44
|
+
neutral: n
|
|
45
|
+
} = resolveButtonRamps(theme);
|
|
46
|
+
const menu = resolveMenuPalette(theme);
|
|
47
|
+
const mode = theme.isDark ? 'dark' : 'light';
|
|
48
|
+
return {
|
|
49
|
+
barSurface: menu.surface,
|
|
50
|
+
barSurfaceOpen: theme.isDark ? n[900] : n[100],
|
|
51
|
+
border: menu.border,
|
|
52
|
+
barShadow: STAY_SEARCH_BAR_SHADOW[mode],
|
|
53
|
+
segmentHover: menu.rowHighlight,
|
|
54
|
+
segmentHoverOpen: theme.isDark ? n[800] : n[200],
|
|
55
|
+
segmentActive: theme.isDark ? n[700] : c.card,
|
|
56
|
+
segmentActiveShadow: STAY_SEARCH_SEGMENT_SHADOW[mode],
|
|
57
|
+
separator: theme.isDark ? n[700] : n[200],
|
|
58
|
+
text: c.text,
|
|
59
|
+
textSecondary: c.textSecondary,
|
|
60
|
+
placeholder: c.textSecondary,
|
|
61
|
+
tile: theme.isDark ? n[700] : n[100],
|
|
62
|
+
rowHighlight: menu.rowHighlight,
|
|
63
|
+
panelSurface: menu.surface,
|
|
64
|
+
panelBorder: menu.border,
|
|
65
|
+
panelShadow: `${menu.shadow}, ${PANEL_AMBIENT[mode]}`
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export function useStaySearchPalette() {
|
|
69
|
+
const theme = useTheme();
|
|
70
|
+
return useMemo(() => resolveStaySearchPalette(theme), [theme]);
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=palette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useMemo","resolveButtonRamps","resolveMenuPalette","useTheme","STAY_SEARCH_BAR_SHADOW","light","dark","STAY_SEARCH_SEGMENT_SHADOW","PANEL_AMBIENT","resolveStaySearchPalette","theme","c","colors","neutral","n","menu","mode","isDark","barSurface","surface","barSurfaceOpen","border","barShadow","segmentHover","rowHighlight","segmentHoverOpen","segmentActive","card","segmentActiveShadow","separator","text","textSecondary","placeholder","tile","panelSurface","panelBorder","panelShadow","shadow","useStaySearchPalette"],"sourceRoot":"../../../src","sources":["stay-search/palette.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAE/B,SAASC,kBAAkB,QAAQ,qBAAkB;AACrD,SAASC,kBAAkB,QAAQ,6BAA0B;AAE7D,SAASC,QAAQ,QAAQ,uBAAoB;;AAE7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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C;IACzCgB,IAAI,EAAEnB,CAAC,CAACmB,IAAI;IACZC,aAAa,EAAEpB,CAAC,CAACoB,aAAa;IAC9BC,WAAW,EAAErB,CAAC,CAACoB,aAAa;IAC5BE,IAAI,EAAEvB,KAAK,CAACO,MAAM,GAAGH,CAAC,CAAC,GAAG,CAAC,GAAGA,CAAC,CAAC,GAAG,CAAC;IACpCU,YAAY,EAAET,IAAI,CAACS,YAAY;IAC/BU,YAAY,EAAEnB,IAAI,CAACI,OAAO;IAC1BgB,WAAW,EAAEpB,IAAI,CAACM,MAAM;IACxBe,WAAW,EAAE,GAAGrB,IAAI,CAACsB,MAAM,KAAK7B,aAAa,CAACQ,IAAI,CAAC;EACrD,CAAC;AACH;AAEA,OAAO,SAASsB,oBAAoBA,CAAA,EAAsB;EACxD,MAAM5B,KAAK,GAAGP,QAAQ,CAAC,CAAC;EACxB,OAAOH,OAAO,CAAC,MAAMS,wBAAwB,CAACC,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;AAChE","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["stay-search/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useCallback, useEffect, useMemo } from 'react';
|
|
4
|
+
import { Platform, View } from 'react-native';
|
|
5
|
+
import { Button } from '../button';
|
|
6
|
+
import { resolveButtonRamps } from "../button/shared.js";
|
|
7
|
+
import { FOCUS_RING_OFFSET_COLOR, webDataSet } from "../checkbox/shared.js";
|
|
8
|
+
import { useAccessibleNameWarning } from "../hooks/use-accessible-name-warning.js";
|
|
9
|
+
import { RiAddLine } from "../icons/remix/RiAddLine.js";
|
|
10
|
+
import { RiSubtractLine } from "../icons/remix/RiSubtractLine.js";
|
|
11
|
+
import { adoptStyleSheet } from "../styles/adopt-style-sheet.js";
|
|
12
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
13
|
+
import { Text } from "../typography/index.js";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
/**
|
|
16
|
+
* Bloom's numeric counter: a round `−` button, the value, a round `+` button.
|
|
17
|
+
*
|
|
18
|
+
* buttons value text value min width gap
|
|
19
|
+
* small Button small (32) body-semibold 24 8
|
|
20
|
+
* medium Button medium (36) headline-semibold 32 12
|
|
21
|
+
*
|
|
22
|
+
* The buttons are Bloom `Button`s (`secondary`, `iconOnly`, full pill) and
|
|
23
|
+
* disable at their bound. The value is tabular and sits in a fixed minimum
|
|
24
|
+
* width, so the row does not shift between 9 and 10.
|
|
25
|
+
*
|
|
26
|
+
* Accessibility: the row is a `group` named by `accessibilityLabel`; the value
|
|
27
|
+
* is the `adjustable` element (react-native-web: `role="slider"`) carrying the
|
|
28
|
+
* flat `aria-value*` props. On web it takes focus and answers ArrowUp/Right
|
|
29
|
+
* (+step), ArrowDown/Left (−step), Home/End (bounds); the buttons stay out of
|
|
30
|
+
* the tab order, being pointer affordances for the same action. On native it
|
|
31
|
+
* answers the `increment`/`decrement` accessibility actions (VoiceOver swipe
|
|
32
|
+
* up/down, TalkBack volume keys).
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
const IS_WEB = Platform.OS === 'web';
|
|
36
|
+
const SIZE_CONFIG = {
|
|
37
|
+
small: {
|
|
38
|
+
button: 'small',
|
|
39
|
+
type: 'body-semibold',
|
|
40
|
+
valueWidth: 24,
|
|
41
|
+
height: 32,
|
|
42
|
+
gap: 8
|
|
43
|
+
},
|
|
44
|
+
medium: {
|
|
45
|
+
button: 'medium',
|
|
46
|
+
type: 'headline-semibold',
|
|
47
|
+
valueWidth: 32,
|
|
48
|
+
height: 36,
|
|
49
|
+
gap: 12
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** Snap to `step` from `min` and clamp, without floating-point drift. */
|
|
54
|
+
function stepperClamp(raw, min, max, step) {
|
|
55
|
+
let next = raw;
|
|
56
|
+
if (step > 0) {
|
|
57
|
+
const snapped = min + Math.round((raw - min) / step) * step;
|
|
58
|
+
const decimals = (String(step).split('.')[1] ?? '').length;
|
|
59
|
+
next = decimals > 0 ? Number(snapped.toFixed(decimals)) : snapped;
|
|
60
|
+
}
|
|
61
|
+
if (max !== undefined) next = Math.min(max, next);
|
|
62
|
+
return Math.max(min, next);
|
|
63
|
+
}
|
|
64
|
+
const STYLE_ID = 'bloom-stepper-web-css';
|
|
65
|
+
const VALUE = '[data-bloom-stepper-value]';
|
|
66
|
+
const BLOOM_STEPPER_CSS = `
|
|
67
|
+
${VALUE} {
|
|
68
|
+
outline: none;
|
|
69
|
+
}
|
|
70
|
+
${VALUE}:focus-visible {
|
|
71
|
+
box-shadow: 0 0 0 2px ${FOCUS_RING_OFFSET_COLOR}, 0 0 0 4px var(--bloom-stepper-ring, currentColor);
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
function StepperComponent({
|
|
75
|
+
value,
|
|
76
|
+
onValueChange,
|
|
77
|
+
min = 0,
|
|
78
|
+
max,
|
|
79
|
+
step = 1,
|
|
80
|
+
disabled = false,
|
|
81
|
+
size = 'medium',
|
|
82
|
+
formatValue,
|
|
83
|
+
accessibilityLabel,
|
|
84
|
+
decrementLabel = 'Decrease',
|
|
85
|
+
incrementLabel = 'Increase',
|
|
86
|
+
style,
|
|
87
|
+
testID
|
|
88
|
+
}) {
|
|
89
|
+
const theme = useTheme();
|
|
90
|
+
useAccessibleNameWarning('Stepper', accessibilityLabel);
|
|
91
|
+
useEffect(() => {
|
|
92
|
+
adoptStyleSheet(STYLE_ID, BLOOM_STEPPER_CSS);
|
|
93
|
+
}, []);
|
|
94
|
+
const {
|
|
95
|
+
accent
|
|
96
|
+
} = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
97
|
+
const config = SIZE_CONFIG[size];
|
|
98
|
+
const canDecrement = !disabled && value > min;
|
|
99
|
+
const canIncrement = !disabled && (max === undefined || value < max);
|
|
100
|
+
const change = useCallback(target => {
|
|
101
|
+
if (disabled) return;
|
|
102
|
+
const next = stepperClamp(target, min, max, step);
|
|
103
|
+
if (next !== value) onValueChange(next);
|
|
104
|
+
}, [disabled, min, max, step, value, onValueChange]);
|
|
105
|
+
const decrement = useCallback(() => change(value - step), [change, value, step]);
|
|
106
|
+
const increment = useCallback(() => change(value + step), [change, value, step]);
|
|
107
|
+
const onAccessibilityAction = useCallback(e => {
|
|
108
|
+
if (e.nativeEvent.actionName === 'increment') increment();else if (e.nativeEvent.actionName === 'decrement') decrement();
|
|
109
|
+
}, [increment, decrement]);
|
|
110
|
+
const label = formatValue ? formatValue(value) : String(value);
|
|
111
|
+
const webValueProps = IS_WEB ? {
|
|
112
|
+
tabIndex: disabled ? -1 : 0,
|
|
113
|
+
onKeyDown: e => {
|
|
114
|
+
switch (e.key) {
|
|
115
|
+
case 'ArrowUp':
|
|
116
|
+
case 'ArrowRight':
|
|
117
|
+
e.preventDefault();
|
|
118
|
+
increment();
|
|
119
|
+
break;
|
|
120
|
+
case 'ArrowDown':
|
|
121
|
+
case 'ArrowLeft':
|
|
122
|
+
e.preventDefault();
|
|
123
|
+
decrement();
|
|
124
|
+
break;
|
|
125
|
+
case 'Home':
|
|
126
|
+
e.preventDefault();
|
|
127
|
+
change(min);
|
|
128
|
+
break;
|
|
129
|
+
case 'End':
|
|
130
|
+
if (max !== undefined) {
|
|
131
|
+
e.preventDefault();
|
|
132
|
+
change(max);
|
|
133
|
+
}
|
|
134
|
+
break;
|
|
135
|
+
default:
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
} : {};
|
|
140
|
+
const valueStyle = {
|
|
141
|
+
minWidth: config.valueWidth,
|
|
142
|
+
height: config.height,
|
|
143
|
+
paddingLeft: 2,
|
|
144
|
+
paddingRight: 2,
|
|
145
|
+
borderRadius: 8,
|
|
146
|
+
alignItems: 'center',
|
|
147
|
+
justifyContent: 'center',
|
|
148
|
+
'--bloom-stepper-ring': accent[500]
|
|
149
|
+
};
|
|
150
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
151
|
+
testID: testID,
|
|
152
|
+
role: "group",
|
|
153
|
+
accessibilityLabel: accessibilityLabel,
|
|
154
|
+
"aria-disabled": disabled || undefined,
|
|
155
|
+
style: [{
|
|
156
|
+
flexDirection: 'row',
|
|
157
|
+
alignItems: 'center',
|
|
158
|
+
gap: config.gap
|
|
159
|
+
}, style],
|
|
160
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
161
|
+
variant: "secondary",
|
|
162
|
+
size: config.button,
|
|
163
|
+
iconOnly: true,
|
|
164
|
+
icon: RiSubtractLine,
|
|
165
|
+
onPress: decrement,
|
|
166
|
+
disabled: !canDecrement,
|
|
167
|
+
accessibilityLabel: decrementLabel,
|
|
168
|
+
tabIndex: -1,
|
|
169
|
+
testID: testID ? `${testID}-decrement` : undefined
|
|
170
|
+
}), /*#__PURE__*/_jsx(View, {
|
|
171
|
+
accessibilityRole: "adjustable",
|
|
172
|
+
accessibilityLabel: accessibilityLabel,
|
|
173
|
+
"aria-valuemin": min,
|
|
174
|
+
"aria-valuemax": max,
|
|
175
|
+
"aria-valuenow": value,
|
|
176
|
+
"aria-valuetext": label,
|
|
177
|
+
"aria-disabled": disabled || undefined,
|
|
178
|
+
accessibilityActions: [{
|
|
179
|
+
name: 'increment'
|
|
180
|
+
}, {
|
|
181
|
+
name: 'decrement'
|
|
182
|
+
}],
|
|
183
|
+
onAccessibilityAction: onAccessibilityAction,
|
|
184
|
+
...webValueProps,
|
|
185
|
+
...webDataSet({
|
|
186
|
+
bloomStepperValue: ''
|
|
187
|
+
}),
|
|
188
|
+
testID: testID ? `${testID}-value` : undefined,
|
|
189
|
+
style: valueStyle,
|
|
190
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
191
|
+
variant: config.type,
|
|
192
|
+
numberOfLines: 1,
|
|
193
|
+
style: {
|
|
194
|
+
color: disabled ? theme.colors.textTertiary : theme.colors.text,
|
|
195
|
+
fontVariant: ['tabular-nums'],
|
|
196
|
+
textAlign: 'center'
|
|
197
|
+
},
|
|
198
|
+
children: label
|
|
199
|
+
})
|
|
200
|
+
}), /*#__PURE__*/_jsx(Button, {
|
|
201
|
+
variant: "secondary",
|
|
202
|
+
size: config.button,
|
|
203
|
+
iconOnly: true,
|
|
204
|
+
icon: RiAddLine,
|
|
205
|
+
onPress: increment,
|
|
206
|
+
disabled: !canIncrement,
|
|
207
|
+
accessibilityLabel: incrementLabel,
|
|
208
|
+
tabIndex: -1,
|
|
209
|
+
testID: testID ? `${testID}-increment` : undefined
|
|
210
|
+
})]
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
export const Stepper = /*#__PURE__*/memo(StepperComponent);
|
|
214
|
+
Stepper.displayName = 'Stepper';
|
|
215
|
+
//# sourceMappingURL=Stepper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useEffect","useMemo","Platform","View","Button","resolveButtonRamps","FOCUS_RING_OFFSET_COLOR","webDataSet","useAccessibleNameWarning","RiAddLine","RiSubtractLine","adoptStyleSheet","useTheme","Text","jsx","_jsx","jsxs","_jsxs","IS_WEB","OS","SIZE_CONFIG","small","button","type","valueWidth","height","gap","medium","stepperClamp","raw","min","max","step","next","snapped","Math","round","decimals","String","split","length","Number","toFixed","undefined","STYLE_ID","VALUE","BLOOM_STEPPER_CSS","StepperComponent","value","onValueChange","disabled","size","formatValue","accessibilityLabel","decrementLabel","incrementLabel","style","testID","theme","accent","config","canDecrement","canIncrement","change","target","decrement","increment","onAccessibilityAction","e","nativeEvent","actionName","label","webValueProps","tabIndex","onKeyDown","key","preventDefault","valueStyle","minWidth","paddingLeft","paddingRight","borderRadius","alignItems","justifyContent","role","flexDirection","children","variant","iconOnly","icon","onPress","accessibilityRole","accessibilityActions","name","bloomStepperValue","numberOfLines","color","colors","textTertiary","text","fontVariant","textAlign","Stepper","displayName"],"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