searchsmartly-ui 0.0.98 → 0.0.99

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
@@ -3,7 +3,7 @@ import * as _emotion_styled from '@emotion/styled';
3
3
  import * as _mui_system from '@mui/system';
4
4
  import { SxProps as SxProps$1 } from '@mui/system';
5
5
  import * as react from 'react';
6
- import react__default, { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode, ComponentType, Component, ErrorInfo, ChangeEvent } from 'react';
6
+ import react__default, { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode, ComponentType, Component, ErrorInfo, ChangeEvent, JSX as JSX$1 } from 'react';
7
7
  import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
8
8
  import { OverridableComponent } from '@mui/material/OverridableComponent';
9
9
  import * as _mui_material from '@mui/material';
@@ -25,7 +25,7 @@ import { ThemeProviderProps } from '@mui/material/styles/ThemeProvider';
25
25
  declare const Button: _emotion_styled.StyledComponent<_mui_material.ButtonOwnProps & Omit<_mui_material.ButtonBaseOwnProps, "classes"> & _mui_material_OverridableComponent.CommonProps & Omit<Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
26
26
  ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
27
27
  }, "className" | "style" | "classes" | "action" | "centerRipple" | "children" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "sx" | "tabIndex" | "TouchRippleProps" | "touchRippleRef" | "color" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "size" | "startIcon" | "variant"> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & {
28
- component?: react.ElementType<any> | undefined;
28
+ component?: react.ElementType<any, keyof react.JSX.IntrinsicElements> | undefined;
29
29
  } & {
30
30
  shape?: "lrect" | "mrect" | "srect" | "square" | undefined;
31
31
  }, {}, {}>;
@@ -600,6 +600,26 @@ type CopyButton = {
600
600
  };
601
601
  declare const CopyButton: FC<CopyButton>;
602
602
 
603
+ type SmartTableColumn<T> = {
604
+ name: string;
605
+ title?: string | ReactNode;
606
+ minWidth: number;
607
+ sizingSuffix?: string;
608
+ growCoefficient?: number;
609
+ getValue: (item: T, index?: number) => string | ReactNode;
610
+ sx?: SxProps;
611
+ };
612
+ type Align = 'left' | 'center' | 'right' | 'inherit' | 'justify' | undefined;
613
+ type TableProps<T> = {
614
+ rowHeight?: number;
615
+ getUniqueId?: (item: T, index?: number) => string | number;
616
+ align?: Align;
617
+ minWidth?: number;
618
+ columns: SmartTableColumn<T>[];
619
+ data: T[];
620
+ };
621
+ declare function Table<T>({ rowHeight, getUniqueId, align, minWidth, columns, data, }: TableProps<T>): JSX$1.Element;
622
+
603
623
  declare const useResponsive: () => {
604
624
  isMobile: boolean;
605
625
  isTablet: boolean;
@@ -651,4 +671,4 @@ declare const getDestination: (state: Record<string, unknown>, key: string) => {
651
671
  [key: string]: string;
652
672
  };
653
673
 
654
- export { AmenityTags, AreasForm, 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, 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, Popover, Powered, PropertiesList, PropertyCard, type PropertyCardType, PropertyTag, PropertyTypeForm, type PropertyTypeFormProps, RentBuyForm, type RentBuyFormProps, RestaurantsIcon, SchoolsIcon, SearchsmartlyLogo, ShopIcon, SlickCarousel, SliderChart, Snackbar, StarIcon, Tag, type TagProps, TextField, ThemeProvider, Tooltip, TooltipTitle, Transition, WalkIcon, amenityTagConfig, currencyFormatterProperty, formatPrice, getAmenityTags, getBedroomsText, getDestination, getFormattedTime, iconsMap, minuteFormatter, pluralize, renderPlural, scrollIntoView, thresholds, titleCase, useClipboardFallback, useModal, useModalProvider, usePrevious, useResponsive, useWindowSize };
674
+ export { type Align, AmenityTags, AreasForm, 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, 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, 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, useModal, useModalProvider, usePrevious, useResponsive, useWindowSize };