searchsmartly-ui 0.0.127 → 0.0.129

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/dist/index.d.ts CHANGED
@@ -632,11 +632,12 @@ declare function AsyncAutocomplete<T>({ name, label, disabled, showTooltip, open
632
632
 
633
633
  type ComponentRestrictions = google.maps.places.ComponentRestrictions;
634
634
  type AutocompletePrediction = google.maps.places.AutocompletePrediction;
635
- declare const GoogleAutocomplete: react.FC<{
635
+ interface GooglePlacesAutocompleteProps {
636
636
  location?: Partial<CommuteLocation>;
637
637
  isInvalid?: boolean;
638
638
  disableComponentRestrictions?: boolean;
639
639
  showLocationIcon?: boolean;
640
+ disabled?: boolean;
640
641
  isDefault?: boolean;
641
642
  reset?: boolean;
642
643
  apiKey: string;
@@ -647,11 +648,16 @@ declare const GoogleAutocomplete: react.FC<{
647
648
  restrictionOptions?: {
648
649
  componentRestrictions: ComponentRestrictions;
649
650
  };
650
- onChange: (location?: CommuteLocation | undefined) => void;
651
+ onChange: (location?: {
652
+ lng: number;
653
+ name: string | undefined;
654
+ lat: number;
655
+ }) => void;
651
656
  onPlaceClick?: (place: string) => void;
652
657
  renderInput?: (params: AutocompleteRenderInputParams) => react.ReactNode;
653
658
  renderOption?: (props: react.HTMLAttributes<HTMLLIElement>, option: AutocompletePrediction) => react.ReactNode;
654
- } & Record<string, unknown>>;
659
+ }
660
+ declare const GoogleAutocomplete: react.ForwardRefExoticComponent<Omit<GooglePlacesAutocompleteProps & Record<string, unknown>, "ref"> & react.RefAttributes<unknown>>;
655
661
 
656
662
  interface Block {
657
663
  background: string;
@@ -773,4 +779,4 @@ declare const getDestination: (state: Record<string, unknown>, key: string) => {
773
779
  [key: string]: string;
774
780
  };
775
781
 
776
- export { type Align, AmenityButton, type AmenityButtonProps, AmenityTags, AreasForm, AsyncAutocomplete, BaseLayout, BeachesIcon, BedIcon, BedroomsForm, BikeIcon, type Block, BudgetForm, BusIcon, BusTagIcon, Button, COMMUTE_METHODS, CarIcon, CardImage, type Commute, CommuteForm, CommuteIcon, type CommuteLocation, CommuteMethod, type CommutePin, CopyButton, EmptyDefaultImage, EmptyImage, ErrorBoundary, type FetchType, type FieldProps, FilterButton, FiltersIcon, FiltersModal, FooterButtons, GoogleAutocomplete, GymIcon, HelperText, ImageGrid, ImageProvider, LazyLoadImage, LifestyleForm, type LifestyleFormProps, ListHeader, Loader, type MapProps, MapTags, MapWrapper, type MethodType, ModalBase, ModalContainer, type ModalContainerProps, ModalFooter, ModalHeader, ModalsContext, type ModalsProps, ModalsProvider, Onboarding, OnboardingStepLayout, ParksIcon, type PinFeature, PinIcon, Polygon, Popover, Powered, PropertiesList, PropertyCard, type PropertyCardType, PropertyTag, PropertyTypeForm, type PropertyTypeFormProps, RentBuyForm, type RentBuyFormProps, RestaurantsIcon, SchoolsIcon, SearchsmartlyLogo, ShopIcon, SlickCarousel, SliderChart, type SmartTableColumn, Snackbar, StarIcon, Table, type TableProps, Tag, type TagProps, TextField, ThemeProvider, Tooltip, TooltipTitle, Transition, WalkIcon, amenityTagConfig, currencyFormatterProperty, formatPrice, getAmenityTags, getBedroomsText, getDestination, getFormattedTime, iconsMap, minuteFormatter, pluralize, renderPlural, scrollIntoView, thresholds, titleCase, useClipboardFallback, useImages, useModal, useModalProvider, usePrevious, useResponsive, useWindowSize };
782
+ export { type Align, AmenityButton, type AmenityButtonProps, AmenityTags, AreasForm, AsyncAutocomplete, type AutocompletePrediction, BaseLayout, BeachesIcon, BedIcon, BedroomsForm, BikeIcon, type Block, BudgetForm, BusIcon, BusTagIcon, Button, COMMUTE_METHODS, CarIcon, CardImage, type Commute, CommuteForm, CommuteIcon, type CommuteLocation, CommuteMethod, type CommutePin, type ComponentRestrictions, CopyButton, EmptyDefaultImage, EmptyImage, ErrorBoundary, type FetchType, type FieldProps, FilterButton, FiltersIcon, FiltersModal, FooterButtons, GoogleAutocomplete, type GooglePlacesAutocompleteProps, GymIcon, HelperText, ImageGrid, ImageProvider, LazyLoadImage, LifestyleForm, type LifestyleFormProps, ListHeader, Loader, type MapProps, MapTags, MapWrapper, type MethodType, ModalBase, ModalContainer, type ModalContainerProps, ModalFooter, ModalHeader, ModalsContext, type ModalsProps, ModalsProvider, Onboarding, OnboardingStepLayout, ParksIcon, type PinFeature, PinIcon, Polygon, Popover, Powered, PropertiesList, PropertyCard, type PropertyCardType, PropertyTag, PropertyTypeForm, type PropertyTypeFormProps, RentBuyForm, type RentBuyFormProps, RestaurantsIcon, SchoolsIcon, SearchsmartlyLogo, ShopIcon, SlickCarousel, SliderChart, type SmartTableColumn, Snackbar, StarIcon, Table, type TableProps, Tag, type TagProps, TextField, ThemeProvider, Tooltip, TooltipTitle, Transition, WalkIcon, amenityTagConfig, currencyFormatterProperty, formatPrice, getAmenityTags, getBedroomsText, getDestination, getFormattedTime, iconsMap, minuteFormatter, pluralize, renderPlural, scrollIntoView, thresholds, titleCase, useClipboardFallback, useImages, useModal, useModalProvider, usePrevious, useResponsive, useWindowSize };