searchsmartly-ui 0.0.91 → 0.0.93

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
@@ -5,8 +5,9 @@ import { SxProps as SxProps$1 } from '@mui/system';
5
5
  import * as react from 'react';
6
6
  import react__default, { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode, ComponentType, Component, ErrorInfo, ChangeEvent } from 'react';
7
7
  import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
8
+ import { OverridableComponent } from '@mui/material/OverridableComponent';
8
9
  import * as _mui_material from '@mui/material';
9
- import { SxProps, Theme, BoxProps, StackProps, SvgIconProps, ButtonProps, SnackbarProps } from '@mui/material';
10
+ import { SxProps, Theme, BoxProps, StackProps, SvgIconProps, SvgIconTypeMap, ButtonProps, SnackbarProps } from '@mui/material';
10
11
  import { LazyLoadImageProps } from 'react-lazy-load-image-component';
11
12
  import { LazyLoadTypes } from 'react-slick';
12
13
  import { ChipProps } from '@mui/material/Chip/Chip';
@@ -256,6 +257,10 @@ type MethodType = {
256
257
  icon: ComponentType<SvgIconProps>;
257
258
  id: CommuteMethod;
258
259
  };
260
+ type IconsMapType = {
261
+ [key: string]: OverridableComponent<SvgIconTypeMap>;
262
+ };
263
+ declare const iconsMap: IconsMapType;
259
264
  declare const COMMUTE_METHODS: MethodType[];
260
265
 
261
266
  type CommuteWithId = Commute & {
@@ -467,6 +472,7 @@ type CommutePin = {
467
472
  type MapProps = {
468
473
  loading: boolean;
469
474
  addLoader?: boolean;
475
+ isochronesTags?: boolean;
470
476
  center?: {
471
477
  lng: number;
472
478
  lat: number;
@@ -477,16 +483,16 @@ type MapProps = {
477
483
  disableNavigationControl?: boolean;
478
484
  disableTags?: boolean;
479
485
  disablePopup?: boolean;
486
+ disableCluster?: boolean;
480
487
  showDrawer?: boolean;
481
488
  tagIndex: number | null;
482
489
  height?: number | string | number[];
483
490
  filters?: Record<string, unknown>;
484
491
  pins: Record<string, unknown>[];
485
- children?: JSX.Element[];
486
492
  popup?: {
487
493
  longitude: number;
488
494
  latitude: number;
489
- content: Element;
495
+ content: JSX.Element;
490
496
  onClose: () => void;
491
497
  };
492
498
  isochrones: Feature<Geometry, Properties>[];
@@ -497,8 +503,8 @@ type MapProps = {
497
503
  mapboxAccessToken: string;
498
504
  polygonStyles?: Record<string, FillPaint | LinePaint>;
499
505
  updateTagIndex: (val: null | number) => void;
500
- onPinSelect?: (pin?: Record<string, unknown>[]) => void;
501
- generatePin?: (pin?: Record<string, unknown>[]) => JSX.Element;
506
+ onPinSelect?: (pin?: Record<string, unknown>) => void;
507
+ generatePin?: (pin?: Record<string, unknown>) => JSX.Element;
502
508
  onDeletePolygon?: (evt: {
503
509
  features: Feature[];
504
510
  }) => void;
@@ -523,8 +529,9 @@ type PolygonType = {
523
529
  declare const Polygon: FC<PolygonType>;
524
530
 
525
531
  type MapTagsInterface = {
526
- filters: MapProps['filters'];
532
+ filters: MapProps['filters'] | Record<string, unknown>;
527
533
  tagIndex: number | null;
534
+ isochronesTags?: boolean;
528
535
  county: MapboxGeoJSONFeature | null;
529
536
  isochrones: MapProps['isochrones'];
530
537
  resetCounty: () => void;
@@ -593,4 +600,10 @@ declare const getBedroomsText: ({ bedrooms, isShared, disablePlural, isShort }:
593
600
 
594
601
  declare const getFormattedTime: (time?: number, shortText?: boolean) => string;
595
602
 
596
- export { AmenityTags, AreasForm, BaseLayout, BeachesIcon, BedIcon, BedroomsForm, BikeIcon, BudgetForm, BusIcon, BusTagIcon, Button, COMMUTE_METHODS, CarIcon, CardImage, type Commute, CommuteForm, CommuteIcon, type CommuteLocation, CommuteMethod, type CommutePin, EmptyDefaultImage, ErrorBoundary, type FieldProps, FilterButton, FiltersIcon, FiltersModal, FooterButtons, GymIcon, HelperText, 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, Powered, PropertiesList, PropertyCard, type PropertyCardType, PropertyTag, PropertyTypeForm, type PropertyTypeFormProps, RentBuyForm, type RentBuyFormProps, RestaurantsIcon, SchoolsIcon, SearchsmartlyLogo, ShopIcon, SlickCarousel, Snackbar, StarIcon, Tag, type TagProps, TextField, ThemeProvider, Tooltip, TooltipTitle, Transition, WalkIcon, amenityTagConfig, currencyFormatterProperty, formatPrice, getAmenityTags, getBedroomsText, getFormattedTime, pluralize, renderPlural, thresholds, useModal, useResponsive };
603
+ declare const minuteFormatter: (mins: number) => string;
604
+
605
+ declare const getDestination: (state: Record<string, unknown>, key: string) => {
606
+ [key: string]: string;
607
+ };
608
+
609
+ export { AmenityTags, AreasForm, BaseLayout, BeachesIcon, BedIcon, BedroomsForm, BikeIcon, BudgetForm, BusIcon, BusTagIcon, Button, COMMUTE_METHODS, CarIcon, CardImage, type Commute, CommuteForm, CommuteIcon, type CommuteLocation, CommuteMethod, type CommutePin, EmptyDefaultImage, ErrorBoundary, type FieldProps, FilterButton, FiltersIcon, FiltersModal, FooterButtons, GymIcon, HelperText, 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, Powered, PropertiesList, PropertyCard, type PropertyCardType, PropertyTag, PropertyTypeForm, type PropertyTypeFormProps, RentBuyForm, type RentBuyFormProps, RestaurantsIcon, SchoolsIcon, SearchsmartlyLogo, ShopIcon, SlickCarousel, Snackbar, StarIcon, Tag, type TagProps, TextField, ThemeProvider, Tooltip, TooltipTitle, Transition, WalkIcon, amenityTagConfig, currencyFormatterProperty, formatPrice, getAmenityTags, getBedroomsText, getDestination, getFormattedTime, iconsMap, minuteFormatter, pluralize, renderPlural, thresholds, useModal, useResponsive };