searchsmartly-ui 0.0.183 → 0.0.186
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 +7 -8
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/src/components/commutes/commutesHelpers.d.ts +1 -1
- package/dist/src/components/fields/GoogleAutocomplete/GoogleAutocomplete.d.ts +2 -6
- package/dist/src/components/forms/CommuteForm/CommuteForm.d.ts +1 -2
- package/dist/src/components/forms/CommuteForm/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -303,7 +303,7 @@ declare enum CommuteMethod {
|
|
|
303
303
|
type CommuteLocation = {
|
|
304
304
|
lat: number;
|
|
305
305
|
lng: number;
|
|
306
|
-
name
|
|
306
|
+
name?: string;
|
|
307
307
|
};
|
|
308
308
|
type Commute = {
|
|
309
309
|
location?: CommuteLocation;
|
|
@@ -323,6 +323,9 @@ declare const COMMUTE_METHODS: MethodType[];
|
|
|
323
323
|
type CommuteWithId = Commute & {
|
|
324
324
|
id: string;
|
|
325
325
|
};
|
|
326
|
+
declare const MIN_TIME = 10;
|
|
327
|
+
declare const MAX_TIME = 120;
|
|
328
|
+
declare const DEFAULT_TIME = 30;
|
|
326
329
|
|
|
327
330
|
type CommuteFormProps = {
|
|
328
331
|
clicked: boolean;
|
|
@@ -701,16 +704,12 @@ interface GooglePlacesAutocompleteProps {
|
|
|
701
704
|
restrictionOptions?: {
|
|
702
705
|
componentRestrictions: ComponentRestrictions;
|
|
703
706
|
};
|
|
704
|
-
onChange: (location?:
|
|
705
|
-
lng: number;
|
|
706
|
-
name: string | undefined;
|
|
707
|
-
lat: number;
|
|
708
|
-
}) => void;
|
|
707
|
+
onChange: (location?: CommuteLocation) => void;
|
|
709
708
|
onPlaceClick?: (place: string) => void;
|
|
710
709
|
renderInput?: (params: AutocompleteRenderInputParams) => react.ReactNode;
|
|
711
710
|
renderOption?: (props: react.HTMLAttributes<HTMLLIElement>, option: AutocompletePrediction) => react.ReactNode;
|
|
712
711
|
}
|
|
713
|
-
declare const GoogleAutocomplete: react.ForwardRefExoticComponent<react.RefAttributes<unknown>>;
|
|
712
|
+
declare const GoogleAutocomplete: react.ForwardRefExoticComponent<GooglePlacesAutocompleteProps & react.RefAttributes<unknown>>;
|
|
714
713
|
|
|
715
714
|
interface Block {
|
|
716
715
|
background: string;
|
|
@@ -850,4 +849,4 @@ declare const getDestination: (state: Record<string, unknown>, key: string) => {
|
|
|
850
849
|
[key: string]: string;
|
|
851
850
|
};
|
|
852
851
|
|
|
853
|
-
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, ExpandableSection, 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, PublicIcon, RentBuyForm, type RentBuyFormProps, RestaurantsIcon, SchoolsIcon, SearchsmartlyLogo, type Segment, type SegmentCoordinates, ShopIcon, SlickCarousel, SliderChart, type SmartTableColumn, Snackbar, StarIcon, StyledTextField, 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, useDimensions, useImages, useModal, useModalProvider, usePrevious, useResponsive, useWindowSize };
|
|
852
|
+
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, type CommuteFormProps, CommuteIcon, type CommuteLocation, CommuteMethod, type CommutePin, type CommuteWithId, type ComponentRestrictions, CopyButton, DEFAULT_TIME, EmptyDefaultImage, EmptyImage, ErrorBoundary, ExpandableSection, type FetchType, type FieldProps, FilterButton, FiltersIcon, FiltersModal, FooterButtons, GoogleAutocomplete, type GooglePlacesAutocompleteProps, GymIcon, HelperText, ImageGrid, ImageProvider, LazyLoadImage, LifestyleForm, type LifestyleFormProps, ListHeader, Loader, MAX_TIME, MIN_TIME, 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, PublicIcon, RentBuyForm, type RentBuyFormProps, RestaurantsIcon, SchoolsIcon, SearchsmartlyLogo, type Segment, type SegmentCoordinates, ShopIcon, SlickCarousel, SliderChart, type SmartTableColumn, Snackbar, StarIcon, StyledTextField, 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, useDimensions, useImages, useModal, useModalProvider, usePrevious, useResponsive, useWindowSize };
|