@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,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useCallback, useState } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { RangeSlider } from "../slider/index.js";
|
|
6
|
+
import { TextFieldInput } from "../text-field/index.js";
|
|
7
|
+
import { PriceHistogram } from "./PriceHistogram.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
/**
|
|
10
|
+
* A price range: the histogram, a `RangeSlider` whose rail meets the bars'
|
|
11
|
+
* baseline, and a "Minimum" / "Maximum" pair of fields.
|
|
12
|
+
*
|
|
13
|
+
* histogram full width, 64 tall (see `PriceHistogram`)
|
|
14
|
+
* slider Bloom's `RangeSlider`, no value bubbles, pulled up 13px so its
|
|
15
|
+
* 6px rail sits directly under the bars. The slider maps
|
|
16
|
+
* `min`..`max` across its full width and the buckets split the
|
|
17
|
+
* same span evenly, so each bar sits over the prices it counts.
|
|
18
|
+
* fields two floating-label `TextField`s, 16 apart, 24 under the slider
|
|
19
|
+
*
|
|
20
|
+
* THE FIELDS AND THE SLIDER ARE ONE VALUE. At rest a field shows
|
|
21
|
+
* `formatPrice(value)`; focused it shows the bare number for editing, and the
|
|
22
|
+
* typed text is a local draft until blur or submit, when it is parsed, clamped
|
|
23
|
+
* to its own side of the range (the minimum can not pass the maximum), snapped
|
|
24
|
+
* to `step`, and committed through `onValueChange` + `onValueCommit`. A draft
|
|
25
|
+
* that does not parse restores the committed value.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
function clamp(v, lo, hi) {
|
|
29
|
+
return Math.min(hi, Math.max(lo, v));
|
|
30
|
+
}
|
|
31
|
+
function snap(v, min, step) {
|
|
32
|
+
if (step <= 0) return v;
|
|
33
|
+
const snapped = min + Math.round((v - min) / step) * step;
|
|
34
|
+
const decimals = (String(step).split('.')[1] ?? '').length;
|
|
35
|
+
return decimals > 0 ? Number(snapped.toFixed(decimals)) : snapped;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** Parse a typed price ("$1,200" → 1200); `null` when there is no number in it. */
|
|
39
|
+
export function parsePriceInput(text) {
|
|
40
|
+
const cleaned = text.replace(/[^0-9.]/g, '');
|
|
41
|
+
if (cleaned === '' || cleaned === '.') return null;
|
|
42
|
+
const n = Number.parseFloat(cleaned);
|
|
43
|
+
return Number.isFinite(n) ? n : null;
|
|
44
|
+
}
|
|
45
|
+
const RAIL_OFFSET = 13; // (32px track region − 6px rail) / 2
|
|
46
|
+
|
|
47
|
+
function PriceRangeFilterComponent({
|
|
48
|
+
buckets,
|
|
49
|
+
min,
|
|
50
|
+
max,
|
|
51
|
+
value,
|
|
52
|
+
onValueChange,
|
|
53
|
+
onValueCommit,
|
|
54
|
+
formatPrice = String,
|
|
55
|
+
step = 1,
|
|
56
|
+
minLabel = 'Minimum',
|
|
57
|
+
maxLabel = 'Maximum',
|
|
58
|
+
accessibilityLabel = 'Price range',
|
|
59
|
+
histogramHeight = 64,
|
|
60
|
+
disabled = false,
|
|
61
|
+
style,
|
|
62
|
+
testID
|
|
63
|
+
}) {
|
|
64
|
+
const [draft, setDraft] = useState(null);
|
|
65
|
+
const hasHistogram = buckets != null && buckets.length > 0;
|
|
66
|
+
const commitDraft = useCallback(() => {
|
|
67
|
+
if (!draft) return;
|
|
68
|
+
const parsed = parsePriceInput(draft.text);
|
|
69
|
+
setDraft(null);
|
|
70
|
+
if (parsed == null) return;
|
|
71
|
+
const [low, high] = value;
|
|
72
|
+
const next = draft.index === 0 ? [clamp(snap(parsed, min, step), min, high), high] : [low, clamp(snap(parsed, min, step), low, max)];
|
|
73
|
+
if (next[0] !== low || next[1] !== high) onValueChange(next);
|
|
74
|
+
onValueCommit?.(next);
|
|
75
|
+
}, [draft, value, min, max, step, onValueChange, onValueCommit]);
|
|
76
|
+
const field = index => {
|
|
77
|
+
const label = index === 0 ? minLabel : maxLabel;
|
|
78
|
+
const editing = draft?.index === index;
|
|
79
|
+
return /*#__PURE__*/_jsx(View, {
|
|
80
|
+
style: {
|
|
81
|
+
flex: 1,
|
|
82
|
+
minWidth: 0
|
|
83
|
+
},
|
|
84
|
+
children: /*#__PURE__*/_jsx(TextFieldInput, {
|
|
85
|
+
floatingLabel: true,
|
|
86
|
+
label: label,
|
|
87
|
+
accessibilityLabel: label,
|
|
88
|
+
value: editing ? draft.text : formatPrice(value[index]),
|
|
89
|
+
onChangeText: text => setDraft({
|
|
90
|
+
index,
|
|
91
|
+
text
|
|
92
|
+
}),
|
|
93
|
+
onFocus: () => setDraft({
|
|
94
|
+
index,
|
|
95
|
+
text: String(value[index])
|
|
96
|
+
}),
|
|
97
|
+
onBlur: commitDraft,
|
|
98
|
+
onSubmitEditing: commitDraft,
|
|
99
|
+
keyboardType: "numeric",
|
|
100
|
+
inputMode: "numeric",
|
|
101
|
+
returnKeyType: "done",
|
|
102
|
+
disabled: disabled,
|
|
103
|
+
testID: testID ? `${testID}-${index === 0 ? 'min' : 'max'}` : undefined
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
108
|
+
testID: testID,
|
|
109
|
+
style: [{
|
|
110
|
+
width: '100%'
|
|
111
|
+
}, style],
|
|
112
|
+
children: [hasHistogram ? /*#__PURE__*/_jsx(PriceHistogram, {
|
|
113
|
+
buckets: buckets,
|
|
114
|
+
min: min,
|
|
115
|
+
max: max,
|
|
116
|
+
value: value,
|
|
117
|
+
height: histogramHeight,
|
|
118
|
+
testID: testID ? `${testID}-histogram` : undefined
|
|
119
|
+
}) : null, /*#__PURE__*/_jsx(RangeSlider, {
|
|
120
|
+
value: value,
|
|
121
|
+
onValueChange: onValueChange,
|
|
122
|
+
onSlidingComplete: onValueCommit,
|
|
123
|
+
min: min,
|
|
124
|
+
max: max,
|
|
125
|
+
step: step,
|
|
126
|
+
disabled: disabled,
|
|
127
|
+
showTooltip: false,
|
|
128
|
+
accessibilityLabel: accessibilityLabel,
|
|
129
|
+
thumbLabels: [minLabel, maxLabel],
|
|
130
|
+
testID: testID ? `${testID}-slider` : undefined,
|
|
131
|
+
style: hasHistogram ? {
|
|
132
|
+
marginTop: -RAIL_OFFSET
|
|
133
|
+
} : undefined
|
|
134
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
135
|
+
style: {
|
|
136
|
+
flexDirection: 'row',
|
|
137
|
+
gap: 16,
|
|
138
|
+
marginTop: 24
|
|
139
|
+
},
|
|
140
|
+
children: [field(0), field(1)]
|
|
141
|
+
})]
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
export const PriceRangeFilter = /*#__PURE__*/memo(PriceRangeFilterComponent);
|
|
145
|
+
PriceRangeFilter.displayName = 'PriceRangeFilter';
|
|
146
|
+
//# sourceMappingURL=PriceRangeFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useState","View","RangeSlider","TextFieldInput","PriceHistogram","jsx","_jsx","jsxs","_jsxs","clamp","v","lo","hi","Math","min","max","snap","step","snapped","round","decimals","String","split","length","Number","toFixed","parsePriceInput","text","cleaned","replace","n","parseFloat","isFinite","RAIL_OFFSET","PriceRangeFilterComponent","buckets","value","onValueChange","onValueCommit","formatPrice","minLabel","maxLabel","accessibilityLabel","histogramHeight","disabled","style","testID","draft","setDraft","hasHistogram","commitDraft","parsed","low","high","next","index","field","label","editing","flex","minWidth","children","floatingLabel","onChangeText","onFocus","onBlur","onSubmitEditing","keyboardType","inputMode","returnKeyType","undefined","width","height","onSlidingComplete","showTooltip","thumbLabels","marginTop","flexDirection","gap","PriceRangeFilter","displayName"],"sourceRoot":"../../../src","sources":["stay-filters/PriceRangeFilter.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAC1D,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,WAAW,QAAQ,oBAAW;AACvC,SAASC,cAAc,QAAQ,wBAAe;AAC9C,SAASC,cAAc,QAAQ,qBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGlD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASC,KAAKA,CAACC,CAAS,EAAEC,EAAU,EAAEC,EAAU,EAAU;EACxD,OAAOC,IAAI,CAACC,GAAG,CAACF,EAAE,EAAEC,IAAI,CAACE,GAAG,CAACJ,EAAE,EAAED,CAAC,CAAC,CAAC;AACtC;AAEA,SAASM,IAAIA,CAACN,CAAS,EAAEI,GAAW,EAAEG,IAAY,EAAU;EAC1D,IAAIA,IAAI,IAAI,CAAC,EAAE,OAAOP,CAAC;EACvB,MAAMQ,OAAO,GAAGJ,GAAG,GAAGD,IAAI,CAACM,KAAK,CAAC,CAACT,CAAC,GAAGI,GAAG,IAAIG,IAAI,CAAC,GAAGA,IAAI;EACzD,MAAMG,QAAQ,GAAG,CAACC,MAAM,CAACJ,IAAI,CAAC,CAACK,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,EAAEC,MAAM;EAC1D,OAAOH,QAAQ,GAAG,CAAC,GAAGI,MAAM,CAACN,OAAO,CAACO,OAAO,CAACL,QAAQ,CAAC,CAAC,GAAGF,OAAO;AACnE;;AAEA;AACA,OAAO,SAASQ,eAAeA,CAACC,IAAY,EAAiB;EAC3D,MAAMC,OAAO,GA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QAAEgC,aAAa,EAAE,KAAK;QAAEC,GAAG,EAAE,EAAE;QAAEF,SAAS,EAAE;MAAG,CAAE;MAAAf,QAAA,GAC3DL,KAAK,CAAC,CAAC,CAAC,EACRA,KAAK,CAAC,CAAC,CAAC;IAAA,CACL,CAAC;EAAA,CACH,CAAC;AAEX;AAEA,OAAO,MAAMuB,gBAAgB,gBAAGjF,IAAI,CAACoC,yBAAyB,CAAC;AAC/D6C,gBAAgB,CAACC,WAAW,GAAG,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { SegmentedControl, SegmentedControlItem, SegmentedControlItemText } from "../segmented-control/index.js";
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
/**
|
|
7
|
+
* One choice out of a few ("Any type / Room / Entire home"): Bloom's
|
|
8
|
+
* `SegmentedControl` at `large` (44 tall), stretched to the full width so the
|
|
9
|
+
* segments share it equally. A `radiogroup` of `radio`s named by
|
|
10
|
+
* `accessibilityLabel`.
|
|
11
|
+
*/
|
|
12
|
+
export function SegmentedFilter({
|
|
13
|
+
options,
|
|
14
|
+
value,
|
|
15
|
+
onValueChange,
|
|
16
|
+
accessibilityLabel,
|
|
17
|
+
style,
|
|
18
|
+
testID
|
|
19
|
+
}) {
|
|
20
|
+
return /*#__PURE__*/_jsx(SegmentedControl, {
|
|
21
|
+
label: accessibilityLabel,
|
|
22
|
+
type: "radio",
|
|
23
|
+
size: "large",
|
|
24
|
+
value: value,
|
|
25
|
+
onChange: onValueChange,
|
|
26
|
+
style: [{
|
|
27
|
+
alignSelf: 'stretch'
|
|
28
|
+
}, style],
|
|
29
|
+
children: options.map(option => /*#__PURE__*/_jsx(SegmentedControlItem, {
|
|
30
|
+
value: option.value,
|
|
31
|
+
testID: testID ? `${testID}-${option.value}` : undefined,
|
|
32
|
+
children: /*#__PURE__*/_jsx(SegmentedControlItemText, {
|
|
33
|
+
children: option.label
|
|
34
|
+
})
|
|
35
|
+
}, option.value))
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
SegmentedFilter.displayName = 'SegmentedFilter';
|
|
39
|
+
//# sourceMappingURL=SegmentedFilter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","SegmentedControl","SegmentedControlItem","SegmentedControlItemText","jsx","_jsx","SegmentedFilter","options","value","onValueChange","accessibilityLabel","style","testID","label","type","size","onChange","alignSelf","children","map","option","undefined","displayName"],"sourceRoot":"../../../src","sources":["stay-filters/SegmentedFilter.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,gBAAgB,EAAEC,oBAAoB,EAAEC,wBAAwB,QAAQ,+BAAsB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGxG;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAA4B;EACzDC,OAAO;EACPC,KAAK;EACLC,aAAa;EACbC,kBAAkB;EAClBC,KAAK;EACLC;AACuB,CAAC,EAAE;EAC1B,oBACEP,IAAA,CAACJ,gBAAgB;IACfY,KAAK,EAAEH,kBAAmB;IAC1BI,IAAI,EAAC,OAAO;IACZC,IAAI,EAAC,OAAO;IACZP,KAAK,EAAEA,KAAM;IACbQ,QAAQ,EAAEP,aAAc;IACxBE,KAAK,EAAE,CAAC;MAAEM,SAAS,EAAE;IAAU,CAAC,EAAEN,KAAK,CAAE;IAAAO,QAAA,EAExCX,OAAO,CAACY,GAAG,CAAEC,MAAM,iBAClBf,IAAA,CAACH,oBAAoB;MAEnBM,KAAK,EAAEY,MAAM,CAACZ,KAAM;MACpBI,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,IAAIQ,MAAM,CAACZ,KAAK,EAAE,GAAGa,SAAU;MAAAH,QAAA,eAEzDb,IAAA,CAACF,wBAAwB;QAAAe,QAAA,EAAEE,MAAM,CAACP;MAAK,CAA2B;IAAC,GAJ9DO,MAAM,CAACZ,KAKQ,CACvB;EAAC,CACc,CAAC;AAEvB;AAEAF,eAAe,CAACgB,WAAW,GAAG,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { Switch } from "../switch/index.js";
|
|
6
|
+
import { useTheme } from "../theme/use-theme.js";
|
|
7
|
+
import { Text } from "../typography/index.js";
|
|
8
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
/**
|
|
10
|
+
* An on/off filter ("Instant Book"): title (body-medium, text-primary) over an
|
|
11
|
+
* optional description (body-regular, text-secondary) on the left, Bloom's
|
|
12
|
+
* `Switch` on the right, 16 between them and the pair vertically centred.
|
|
13
|
+
*
|
|
14
|
+
* The caption beside a switch is a SIBLING, never its label, so the switch is
|
|
15
|
+
* named explicitly — by `accessibilityLabel`, or the string `title`.
|
|
16
|
+
*/
|
|
17
|
+
function SwitchFilterRowComponent({
|
|
18
|
+
title,
|
|
19
|
+
description,
|
|
20
|
+
value,
|
|
21
|
+
onValueChange,
|
|
22
|
+
disabled,
|
|
23
|
+
accessibilityLabel,
|
|
24
|
+
style,
|
|
25
|
+
testID
|
|
26
|
+
}) {
|
|
27
|
+
const theme = useTheme();
|
|
28
|
+
const name = accessibilityLabel ?? (typeof title === 'string' ? title : undefined);
|
|
29
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
30
|
+
style: [{
|
|
31
|
+
flexDirection: 'row',
|
|
32
|
+
alignItems: 'center',
|
|
33
|
+
gap: 16
|
|
34
|
+
}, style],
|
|
35
|
+
children: [/*#__PURE__*/_jsxs(View, {
|
|
36
|
+
style: {
|
|
37
|
+
flex: 1,
|
|
38
|
+
minWidth: 0,
|
|
39
|
+
gap: 2
|
|
40
|
+
},
|
|
41
|
+
children: [typeof title === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
42
|
+
variant: "body-medium",
|
|
43
|
+
style: {
|
|
44
|
+
color: theme.colors.text
|
|
45
|
+
},
|
|
46
|
+
children: title
|
|
47
|
+
}) : title, description == null ? null : typeof description === 'string' ? /*#__PURE__*/_jsx(Text, {
|
|
48
|
+
variant: "body-regular",
|
|
49
|
+
style: {
|
|
50
|
+
color: theme.colors.textSecondary
|
|
51
|
+
},
|
|
52
|
+
children: description
|
|
53
|
+
}) : description]
|
|
54
|
+
}), /*#__PURE__*/_jsx(Switch, {
|
|
55
|
+
value: value,
|
|
56
|
+
onValueChange: onValueChange,
|
|
57
|
+
disabled: disabled,
|
|
58
|
+
accessibilityLabel: name,
|
|
59
|
+
testID: testID
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
export const SwitchFilterRow = /*#__PURE__*/memo(SwitchFilterRowComponent);
|
|
64
|
+
SwitchFilterRow.displayName = 'SwitchFilterRow';
|
|
65
|
+
//# sourceMappingURL=SwitchFilterRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","View","Switch","useTheme","Text","jsx","_jsx","jsxs","_jsxs","SwitchFilterRowComponent","title","description","value","onValueChange","disabled","accessibilityLabel","style","testID","theme","name","undefined","flexDirection","alignItems","gap","children","flex","minWidth","variant","color","colors","text","textSecondary","SwitchFilterRow","displayName"],"sourceRoot":"../../../src","sources":["stay-filters/SwitchFilterRow.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,MAAM,QAAQ,oBAAW;AAClC,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAGrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,wBAAwBA,CAAC;EAChCC,KAAK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EX;AAEA,OAAO,MAAMe,eAAe,gBAAGhC,IAAI,CAACS,wBAAwB,CAAC;AAC7DuB,eAAe,CAACC,WAAW,GAAG,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { FilterChip } from "./FilterChip.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
/**
|
|
8
|
+
* Multi-select filter pills, wrapped: each option is the filter pill (40 tall,
|
|
9
|
+
* full pill, an optional 18px icon before the label), 8 apart in both
|
|
10
|
+
* directions, the selected ones inverted.
|
|
11
|
+
*
|
|
12
|
+
* A `group` named by `accessibilityLabel`; each pill is a toggle `button` with
|
|
13
|
+
* `aria-pressed` on web and `accessibilityState.selected` on native.
|
|
14
|
+
*
|
|
15
|
+
* The next selection is reported in `options` order, so the value is stable
|
|
16
|
+
* whatever order the user tapped in.
|
|
17
|
+
*/
|
|
18
|
+
export function ToggleChipGroup({
|
|
19
|
+
options,
|
|
20
|
+
value,
|
|
21
|
+
onValueChange,
|
|
22
|
+
accessibilityLabel,
|
|
23
|
+
disabled = false,
|
|
24
|
+
style,
|
|
25
|
+
testID
|
|
26
|
+
}) {
|
|
27
|
+
const selected = new Set(value);
|
|
28
|
+
const toggle = item => {
|
|
29
|
+
const next = new Set(selected);
|
|
30
|
+
if (next.has(item)) next.delete(item);else next.add(item);
|
|
31
|
+
onValueChange(options.map(o => o.value).filter(v => next.has(v)));
|
|
32
|
+
};
|
|
33
|
+
return /*#__PURE__*/_jsx(View, {
|
|
34
|
+
testID: testID,
|
|
35
|
+
role: "group",
|
|
36
|
+
accessibilityLabel: accessibilityLabel,
|
|
37
|
+
style: [{
|
|
38
|
+
flexDirection: 'row',
|
|
39
|
+
flexWrap: 'wrap',
|
|
40
|
+
gap: 8
|
|
41
|
+
}, style],
|
|
42
|
+
children: options.map(option => /*#__PURE__*/_jsx(FilterChip, {
|
|
43
|
+
mode: "toggle",
|
|
44
|
+
label: option.label,
|
|
45
|
+
icon: option.icon,
|
|
46
|
+
selected: selected.has(option.value),
|
|
47
|
+
onPress: () => toggle(option.value),
|
|
48
|
+
disabled: disabled || option.disabled,
|
|
49
|
+
testID: testID ? `${testID}-${option.value}` : undefined
|
|
50
|
+
}, option.value))
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
ToggleChipGroup.displayName = 'ToggleChipGroup';
|
|
54
|
+
//# sourceMappingURL=ToggleChipGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","FilterChip","jsx","_jsx","ToggleChipGroup","options","value","onValueChange","accessibilityLabel","disabled","style","testID","selected","Set","toggle","item","next","has","delete","add","map","o","filter","v","role","flexDirection","flexWrap","gap","children","option","mode","label","icon","onPress","undefined","displayName"],"sourceRoot":"../../../src","sources":["stay-filters/ToggleChipGroup.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,UAAU,QAAQ,iBAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAG1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAA4B;EACzDC,OAAO;EACPC,KAAK;EACLC,aAAa;EACbC,kBAAkB;EAClBC,QAAQ,GAAG,KAAK;EAChBC,KAAK;EACLC;AACuB,CAAC,EAAE;EAC1B,MAAMC,QAAQ,GAAG,IAAIC,GAAG,CAAIP,KAAK,CAAC;EAElC,MAAMQ,MAAM,GAAIC,IAAO,IAAK;IAC1B,MAAMC,IAAI,GAAG,IAAIH,GAAG,CAACD,QAAQ,CAAC;IAC9B,IAAII,IAAI,CAACC,GAAG,CAACF,IAAI,CAAC,EAAEC,IAAI,CAACE,MAAM,CAACH,IAAI,CAAC,CAAC,KACjCC,IAAI,CAACG,GAAG,CAACJ,IAAI,CAAC;IACnBR,aAAa,CAACF,OAAO,CAACe,GAAG,CAAEC,CAAC,IAAKA,CAAC,CAACf,KAAK,CAAC,CAACgB,MAAM,CAAEC,CAAC,IAAKP,IAAI,CAACC,GAAG,CAACM,CAAC,CAAC,CAAC,CAAC;EACvE,CAAC;EAED,oBACEpB,IAAA,CAACH,IAAI;IACHW,MAAM,EAAEA,MAAO;IACfa,IAAI,EAAC,OAAO;IACZhB,kBAAkB,EAAEA,kBAAmB;IACvCE,KAAK,EAAE,CAAC;MAAEe,aAAa,EAAE,KAAK;MAAEC,QAAQ,EAAE,MAAM;MAAEC,GAAG,EAAE;IAAE,CAAC,EAAEjB,KAAK,CAAE;IAAAkB,QAAA,EAElEvB,OAAO,CAACe,GAAG,CAAES,MAAM,iBAClB1B,IAAA,CAACF,UAAU;MAET6B,IAAI,EAAC,QAAQ;MACbC,KAAK,EAAEF,MAAM,CAACE,KAAM;MACpBC,IAAI,EAAEH,MAAM,CAACG,IAAK;MAClBpB,QAAQ,EAAEA,QAAQ,CAACK,GAAG,CAACY,MAAM,CAACvB,KAAK,CAAE;MACrC2B,OAAO,EAAEA,CAAA,KAAMnB,MAAM,CAACe,MAAM,CAACvB,KAAK,CAAE;MACpCG,QAAQ,EAAEA,QAAQ,IAAIoB,MAAM,CAACpB,QAAS;MACtCE,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,IAAIkB,MAAM,CAACvB,KAAK,EAAE,GAAG4B;IAAU,GAPpDL,MAAM,CAACvB,KAQb,CACF;EAAC,CACE,CAAC;AAEX;AAEAF,eAAe,CAAC+B,WAAW,GAAG,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export { AmenityFilter } from "./AmenityFilter.js";
|
|
4
|
+
export { CountFilter } from "./CountFilter.js";
|
|
5
|
+
export { FilterFooter } from "./FilterFooter.js";
|
|
6
|
+
export { FilterSection } from "./FilterSection.js";
|
|
7
|
+
export { FilterTriggerButton } from "./FilterTriggerButton.js";
|
|
8
|
+
export { PriceHistogram } from "./PriceHistogram.js";
|
|
9
|
+
export { PriceRangeFilter } from "./PriceRangeFilter.js";
|
|
10
|
+
export { SegmentedFilter } from "./SegmentedFilter.js";
|
|
11
|
+
export { SwitchFilterRow } from "./SwitchFilterRow.js";
|
|
12
|
+
export { ToggleChipGroup } from "./ToggleChipGroup.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AmenityFilter","CountFilter","FilterFooter","FilterSection","FilterTriggerButton","PriceHistogram","PriceRangeFilter","SegmentedFilter","SwitchFilterRow","ToggleChipGroup"],"sourceRoot":"../../../src","sources":["stay-filters/index.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,oBAAiB;AAC/C,SAASC,WAAW,QAAQ,kBAAe;AAC3C,SAASC,YAAY,QAAQ,mBAAgB;AAC7C,SAASC,aAAa,QAAQ,oBAAiB;AAC/C,SAASC,mBAAmB,QAAQ,0BAAuB;AAC3D,SAASC,cAAc,QAAQ,qBAAkB;AACjD,SAASC,gBAAgB,QAAQ,uBAAoB;AACrD,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,eAAe,QAAQ,sBAAmB;AACnD,SAASC,eAAe,QAAQ,sBAAmB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["stay-filters/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
|
+
import { View } from 'react-native';
|
|
5
|
+
import { Chip } from "../chip/index.js";
|
|
6
|
+
import { DEFAULT_DATE_FLEXIBILITY_OPTIONS } from "./constants.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
/**
|
|
9
|
+
* A single-select row of Bloom `Chip`s (`large`, `outlined`; the selected one
|
|
10
|
+
* takes the brand tone) that says how flexible the chosen dates are. Put it
|
|
11
|
+
* under a `RangeCalendar` or `DateRangePicker` — this part does not draw a
|
|
12
|
+
* calendar.
|
|
13
|
+
*/
|
|
14
|
+
function DateFlexibilityChipsComponent({
|
|
15
|
+
value,
|
|
16
|
+
onChange,
|
|
17
|
+
options = DEFAULT_DATE_FLEXIBILITY_OPTIONS,
|
|
18
|
+
accessibilityLabel = 'Date flexibility',
|
|
19
|
+
style,
|
|
20
|
+
testID
|
|
21
|
+
}) {
|
|
22
|
+
return /*#__PURE__*/_jsx(View, {
|
|
23
|
+
role: "group",
|
|
24
|
+
accessibilityLabel: accessibilityLabel,
|
|
25
|
+
testID: testID,
|
|
26
|
+
style: [{
|
|
27
|
+
flexDirection: 'row',
|
|
28
|
+
flexWrap: 'wrap',
|
|
29
|
+
gap: 8
|
|
30
|
+
}, style],
|
|
31
|
+
children: options.map(option => /*#__PURE__*/_jsx(Chip, {
|
|
32
|
+
size: "large",
|
|
33
|
+
variant: "outlined",
|
|
34
|
+
selected: option.value === value,
|
|
35
|
+
onPress: () => onChange(option.value),
|
|
36
|
+
testID: testID ? `${testID}-${option.value}` : undefined
|
|
37
|
+
// `paddingHorizontal`, the spelling Chip's base uses — a longhand would lose on web.
|
|
38
|
+
,
|
|
39
|
+
style: {
|
|
40
|
+
paddingHorizontal: 12,
|
|
41
|
+
height: 32
|
|
42
|
+
},
|
|
43
|
+
children: option.label
|
|
44
|
+
}, option.value))
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
export const DateFlexibilityChips = /*#__PURE__*/memo(DateFlexibilityChipsComponent);
|
|
48
|
+
DateFlexibilityChips.displayName = 'DateFlexibilityChips';
|
|
49
|
+
//# sourceMappingURL=DateFlexibilityChips.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","View","Chip","DEFAULT_DATE_FLEXIBILITY_OPTIONS","jsx","_jsx","DateFlexibilityChipsComponent","value","onChange","options","accessibilityLabel","style","testID","role","flexDirection","flexWrap","gap","children","map","option","size","variant","selected","onPress","undefined","paddingHorizontal","height","label","DateFlexibilityChips","displayName"],"sourceRoot":"../../../src","sources":["stay-search/DateFlexibilityChips.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,IAAI,QAAQ,kBAAS;AAC9B,SAASC,gCAAgC,QAAQ,gBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAG/D;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,6BAA6BA,CAAC;EACrCC,KAAK;EACLC,QAAQ;EACRC,OAAO,GAAGN,gCAAgC;EAC1CO,kBAAkB,GAAG,kBAAkB;EACvCC,KAAK;EACLC;AACyB,CAAC,EAAE;EAC5B,oBACEP,IAAA,CAACJ,IAAI;IACHY,IAAI,EAAC,OAAO;IACZH,kBAAkB,EAAEA,kBAAmB;IACvCE,MAAM,EAAEA,MAAO;IACfD,KAAK,EAAE,CAAC;MAAEG,aAAa,EAAE,KAAK;MAAEC,QAAQ,EAAE,MAAM;MAAEC,GAAG,EAAE;IAAE,CAAC,EAAEL,KAAK,CAAE;IAAAM,QAAA,EAElER,OAAO,CAACS,GAAG,CAAEC,MAAM,iBAClBd,IAAA,CAACH,IAAI;MAEHkB,IAAI,EAAC,OAAO;MACZC,OAAO,EAAC,UAAU;MAClBC,QAAQ,EAAEH,MAAM,CAACZ,KAAK,KAAKA,KAAM;MACjCgB,OAAO,EAAEA,CAAA,KAAMf,QAAQ,CAACW,MAAM,CAACZ,KAAK,CAAE;MACtCK,MAAM,EAAEA,MAAM,GAAG,GAAGA,MAAM,IAAIO,MAAM,CAACZ,KAAK,EAAE,GAAGiB;MAC/C;MAAA;MACAb,KAAK,EAAE;QAAEc,iBAAiB,EAAE,EAAE;QAAEC,MAAM,EAAE;MAAG,CAAE;MAAAT,QAAA,EAE5CE,MAAM,CAACQ;IAAK,GATRR,MAAM,CAACZ,KAUR,CACP;EAAC,CACE,CAAC;AAEX;AAEA,OAAO,MAAMqB,oBAAoB,gBAAG5B,IAAI,CAACM,6BAA6B,CAAC;AACvEsB,oBAAoB,CAACC,WAAW,GAAG,sBAAsB","ignoreList":[]}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React, { memo, useCallback, useEffect, useMemo, useState } from 'react';
|
|
4
|
+
import { Platform, Pressable, View } from 'react-native';
|
|
5
|
+
import { resolveButtonRamps } from "../button/shared.js";
|
|
6
|
+
import { webDataSet } from "../checkbox/shared.js";
|
|
7
|
+
import { RiMapPinLine } from "../icons/remix/RiMapPinLine.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_TILE_RADIUS, STAY_SEARCH_TILE_SIZE } from "./constants.js";
|
|
12
|
+
import { useStaySearchPalette } from "./palette.js";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
/**
|
|
15
|
+
* Destination rows for a `StaySearchPanel`: a 48px rounded icon tile (radius
|
|
16
|
+
* 12, neutral fill), the title (body-medium) over an optional description
|
|
17
|
+
* (body-2-regular, secondary). Hover and the arrow keys move one highlight;
|
|
18
|
+
* a press or Enter selects.
|
|
19
|
+
*
|
|
20
|
+
* A `listbox` of `option`s. The list takes focus (web) and owns the arrow
|
|
21
|
+
* keys; the rows stay out of the tab order.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
const IS_WEB = Platform.OS === 'web';
|
|
25
|
+
const ICON_SIZE = 22;
|
|
26
|
+
const STYLE_ID = 'bloom-destination-suggestions-web-css';
|
|
27
|
+
const CSS = `
|
|
28
|
+
[data-bloom-destination-list] {
|
|
29
|
+
outline: none;
|
|
30
|
+
border-radius: 20px;
|
|
31
|
+
}
|
|
32
|
+
[data-bloom-destination-list]:focus-visible {
|
|
33
|
+
box-shadow: inset 0 0 0 2px var(--bloom-destination-ring, currentColor);
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
function DestinationSuggestionsComponent({
|
|
37
|
+
items,
|
|
38
|
+
onSelect,
|
|
39
|
+
heading,
|
|
40
|
+
highlightedIndex,
|
|
41
|
+
onHighlightedIndexChange,
|
|
42
|
+
accessibilityLabel,
|
|
43
|
+
style,
|
|
44
|
+
testID
|
|
45
|
+
}) {
|
|
46
|
+
const theme = useTheme();
|
|
47
|
+
const palette = useStaySearchPalette();
|
|
48
|
+
const {
|
|
49
|
+
accent
|
|
50
|
+
} = useMemo(() => resolveButtonRamps(theme), [theme]);
|
|
51
|
+
const [internal, setInternal] = useState(-1);
|
|
52
|
+
const current = highlightedIndex ?? internal;
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
adoptStyleSheet(STYLE_ID, CSS);
|
|
55
|
+
}, []);
|
|
56
|
+
const highlight = useCallback(index => {
|
|
57
|
+
if (highlightedIndex === undefined) setInternal(index);
|
|
58
|
+
onHighlightedIndexChange?.(index);
|
|
59
|
+
}, [highlightedIndex, onHighlightedIndexChange]);
|
|
60
|
+
const onKeyDown = e => {
|
|
61
|
+
if (items.length === 0) return;
|
|
62
|
+
if (e.key === 'ArrowDown') {
|
|
63
|
+
e.preventDefault();
|
|
64
|
+
highlight(current < 0 ? 0 : (current + 1) % items.length);
|
|
65
|
+
} else if (e.key === 'ArrowUp') {
|
|
66
|
+
e.preventDefault();
|
|
67
|
+
highlight(current <= 0 ? items.length - 1 : current - 1);
|
|
68
|
+
} else if (e.key === 'Enter' && current >= 0 && current < items.length) {
|
|
69
|
+
e.preventDefault();
|
|
70
|
+
onSelect(items[current]);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// React Native's `Role` has no `listbox`, and `onKeyDown` is a DOM handler;
|
|
75
|
+
// react-native-web passes both through, so they travel as web-only props.
|
|
76
|
+
const webListProps = IS_WEB ? {
|
|
77
|
+
role: 'listbox',
|
|
78
|
+
tabIndex: 0,
|
|
79
|
+
onKeyDown
|
|
80
|
+
} : {};
|
|
81
|
+
const listStyle = {
|
|
82
|
+
gap: 2,
|
|
83
|
+
'--bloom-destination-ring': accent[500]
|
|
84
|
+
};
|
|
85
|
+
const listName = accessibilityLabel ?? heading ?? 'Destinations';
|
|
86
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
87
|
+
style: style,
|
|
88
|
+
children: [heading ? /*#__PURE__*/_jsx(Text, {
|
|
89
|
+
variant: "caption-1-semibold",
|
|
90
|
+
style: {
|
|
91
|
+
color: palette.textSecondary,
|
|
92
|
+
paddingLeft: 12,
|
|
93
|
+
paddingTop: 4,
|
|
94
|
+
paddingBottom: 8
|
|
95
|
+
},
|
|
96
|
+
children: heading
|
|
97
|
+
}) : null, /*#__PURE__*/_jsx(View, {
|
|
98
|
+
accessibilityLabel: listName,
|
|
99
|
+
...webListProps,
|
|
100
|
+
...webDataSet({
|
|
101
|
+
bloomDestinationList: ''
|
|
102
|
+
}),
|
|
103
|
+
testID: testID,
|
|
104
|
+
style: listStyle,
|
|
105
|
+
children: items.map((item, index) => {
|
|
106
|
+
const Icon = item.icon ?? RiMapPinLine;
|
|
107
|
+
const selected = index === current;
|
|
108
|
+
return /*#__PURE__*/_jsxs(Pressable, {
|
|
109
|
+
role: "option",
|
|
110
|
+
accessibilityLabel: item.description ? `${item.title}, ${item.description}` : item.title,
|
|
111
|
+
"aria-selected": selected,
|
|
112
|
+
accessibilityState: {
|
|
113
|
+
selected
|
|
114
|
+
},
|
|
115
|
+
focusable: false,
|
|
116
|
+
onPress: () => onSelect(item),
|
|
117
|
+
onHoverIn: () => highlight(index),
|
|
118
|
+
testID: testID ? `${testID}-${index}` : undefined,
|
|
119
|
+
style: {
|
|
120
|
+
flexDirection: 'row',
|
|
121
|
+
alignItems: 'center',
|
|
122
|
+
gap: 16,
|
|
123
|
+
paddingTop: 8,
|
|
124
|
+
paddingBottom: 8,
|
|
125
|
+
paddingLeft: 12,
|
|
126
|
+
paddingRight: 12,
|
|
127
|
+
borderRadius: 16,
|
|
128
|
+
backgroundColor: selected ? palette.rowHighlight : 'transparent'
|
|
129
|
+
},
|
|
130
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
131
|
+
style: {
|
|
132
|
+
width: STAY_SEARCH_TILE_SIZE,
|
|
133
|
+
height: STAY_SEARCH_TILE_SIZE,
|
|
134
|
+
borderRadius: STAY_SEARCH_TILE_RADIUS,
|
|
135
|
+
backgroundColor: palette.tile,
|
|
136
|
+
alignItems: 'center',
|
|
137
|
+
justifyContent: 'center'
|
|
138
|
+
},
|
|
139
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
140
|
+
width: ICON_SIZE,
|
|
141
|
+
height: ICON_SIZE,
|
|
142
|
+
fill: palette.text
|
|
143
|
+
})
|
|
144
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
145
|
+
style: {
|
|
146
|
+
flex: 1,
|
|
147
|
+
minWidth: 0,
|
|
148
|
+
gap: 2
|
|
149
|
+
},
|
|
150
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
151
|
+
variant: "body-medium",
|
|
152
|
+
numberOfLines: 1,
|
|
153
|
+
style: {
|
|
154
|
+
color: palette.text
|
|
155
|
+
},
|
|
156
|
+
children: item.title
|
|
157
|
+
}), item.description ? /*#__PURE__*/_jsx(Text, {
|
|
158
|
+
variant: "body-2-regular",
|
|
159
|
+
numberOfLines: 1,
|
|
160
|
+
style: {
|
|
161
|
+
color: palette.textSecondary
|
|
162
|
+
},
|
|
163
|
+
children: item.description
|
|
164
|
+
}) : null]
|
|
165
|
+
})]
|
|
166
|
+
}, item.id);
|
|
167
|
+
})
|
|
168
|
+
})]
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
export const DestinationSuggestions = /*#__PURE__*/memo(DestinationSuggestionsComponent);
|
|
172
|
+
DestinationSuggestions.displayName = 'DestinationSuggestions';
|
|
173
|
+
//# sourceMappingURL=DestinationSuggestions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useEffect","useMemo","useState","Platform","Pressable","View","resolveButtonRamps","webDataSet","RiMapPinLine","adoptStyleSheet","useTheme","Text","STAY_SEARCH_TILE_RADIUS","STAY_SEARCH_TILE_SIZE","useStaySearchPalette","jsx","_jsx","jsxs","_jsxs","IS_WEB","OS","ICON_SIZE","STYLE_ID","CSS","DestinationSuggestionsComponent","items","onSelect","heading","highlightedIndex","onHighlightedIndexChange","accessibilityLabel","style","testID","theme","palette","accent","internal","setInternal","current","highlight","index","undefined","onKeyDown","e","length","key","preventDefault","webListProps","role","tabIndex","listStyle","gap","listName","children","variant","color","textSecondary","paddingLeft","paddingTop","paddingBottom","bloomDestinationList","map","item","Icon","icon","selected","description","title","accessibilityState","focusable","onPress","onHoverIn","flexDirection","alignItems","paddingRight","borderRadius","backgroundColor","rowHighlight","width","height","tile","justifyContent","fill","text","flex","minWidth","numberOfLines","id","DestinationSuggestions","displayName"],"sourceRoot":"../../../src","sources":["stay-search/DestinationSuggestions.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC9E,SAASC,QAAQ,EAAEC,SAAS,EAAEC,IAAI,QAAQ,cAAc;AAExD,SAASC,kBAAkB,QAAQ,qBAAkB;AACrD,SAASC,UAAU,QAAQ,uBAAoB;AAC/C,SAASC,YAAY,QAAQ,gCAA6B;AAC1D,SAASC,eAAe,QAAQ,gCAA6B;AAE7D,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,IAAI,QAAQ,wBAAe;AACpC,SAASC,uBAAuB,EAAEC,qBAAqB,QAAQ,gBAAa;AAC5E,SAASC,oBAAoB,QAAQ,cAA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