searchsmartly-ui 0.0.36 → 0.0.38
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 +32 -5
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/src/components/forms/LifestyleForm/LifestyleForm.d.ts +2 -2
- package/dist/src/components/forms/index.d.ts +2 -0
- package/dist/src/components/list/ListHeader.d.ts +1 -0
- package/dist/src/components/list/PropertiesList/PropertiesList.d.ts +3 -1
- package/dist/src/components/list/PropertyCard.d.ts +3 -2
- package/package.json +1 -1
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 { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode, Component, ErrorInfo
|
|
6
|
+
import { FC, PropsWithChildren, ReactElement, MouseEvent, ReactNode, ComponentType, Component, ErrorInfo } from 'react';
|
|
7
7
|
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
8
8
|
import * as _mui_material from '@mui/material';
|
|
9
9
|
import { SxProps, Theme, BoxProps, StackProps, SvgIconProps, ButtonProps } from '@mui/material';
|
|
@@ -135,29 +135,33 @@ type ListProps<T extends PropertyItemType> = {
|
|
|
135
135
|
}, index: number) => ReactElement;
|
|
136
136
|
cardHeader?: (val: T) => void;
|
|
137
137
|
disableCarousel?: boolean;
|
|
138
|
+
loading?: boolean;
|
|
139
|
+
error?: string;
|
|
138
140
|
loadMoreLoading?: boolean;
|
|
139
141
|
onLoadMore?: () => void;
|
|
140
142
|
onClickMapButton?: () => void;
|
|
141
143
|
onClickFilters?: () => void;
|
|
142
144
|
};
|
|
143
|
-
declare const PropertiesList: <T extends PropertyItemType>({ title, badgeContent, properties, loadMoreLoading, onLoadMore, totalCount, onClickMapButton, renderItem, onClickFilters, }: ListProps<T>) => react_jsx_runtime.JSX.Element;
|
|
145
|
+
declare const PropertiesList: <T extends PropertyItemType>({ title, loading, badgeContent, properties, loadMoreLoading, onLoadMore, totalCount, onClickMapButton, renderItem, onClickFilters, }: ListProps<T>) => react_jsx_runtime.JSX.Element;
|
|
144
146
|
|
|
145
147
|
type PropertyCardType<T extends PropertyItemType> = Omit<BoxProps, 'property'> & {
|
|
146
148
|
id?: string;
|
|
147
149
|
currency?: string;
|
|
148
150
|
isPopover?: boolean;
|
|
151
|
+
loading?: boolean;
|
|
149
152
|
disableCarousel?: boolean;
|
|
150
153
|
tagColor?: ChipProps['color'];
|
|
151
|
-
property
|
|
154
|
+
property?: T;
|
|
152
155
|
children?: ReactElement | ReactElement[];
|
|
153
156
|
header?: ReactElement;
|
|
154
157
|
};
|
|
155
|
-
declare const PropertyCard: <T extends PropertyItemType>({ property, currency, id, disableCarousel, isPopover, children, header, tagColor, sx, }: PropertyCardType<T>) => react_jsx_runtime.JSX.Element;
|
|
158
|
+
declare const PropertyCard: <T extends PropertyItemType>({ property, loading, currency, id, disableCarousel, isPopover, children, header, tagColor, sx, }: PropertyCardType<T>) => react_jsx_runtime.JSX.Element;
|
|
156
159
|
|
|
157
160
|
type ListHeaderProps = {
|
|
158
161
|
title: string;
|
|
159
162
|
totalCount?: number;
|
|
160
163
|
small?: boolean;
|
|
164
|
+
loading?: boolean;
|
|
161
165
|
badgeContent?: ReactNode;
|
|
162
166
|
onClickFilters?: () => void;
|
|
163
167
|
};
|
|
@@ -195,6 +199,29 @@ type RentBuyFormProps = {
|
|
|
195
199
|
};
|
|
196
200
|
declare const RentBuyForm: FC<RentBuyFormProps>;
|
|
197
201
|
|
|
202
|
+
type PropertyTypeFormProps = {
|
|
203
|
+
selected?: string[];
|
|
204
|
+
options?: {
|
|
205
|
+
label: string;
|
|
206
|
+
value: string;
|
|
207
|
+
}[];
|
|
208
|
+
title?: string;
|
|
209
|
+
onChange: (val: (string | undefined)[]) => void;
|
|
210
|
+
};
|
|
211
|
+
declare const PropertyTypeForm: FC<PropertyTypeFormProps>;
|
|
212
|
+
|
|
213
|
+
type LifestyleFormProps = {
|
|
214
|
+
selected?: (string | undefined)[];
|
|
215
|
+
options?: {
|
|
216
|
+
label: string;
|
|
217
|
+
value: string;
|
|
218
|
+
icon: ComponentType<SvgIconProps>;
|
|
219
|
+
}[];
|
|
220
|
+
title?: string;
|
|
221
|
+
onChange: (val: (string | undefined)[]) => void;
|
|
222
|
+
};
|
|
223
|
+
declare const LifestyleForm: FC<LifestyleFormProps>;
|
|
224
|
+
|
|
198
225
|
declare const StarIcon: ({ sx, ...props }: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
199
226
|
|
|
200
227
|
declare const ParksIcon: ({ sx, ...props }: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -342,4 +369,4 @@ declare const getBedroomsText: ({ bedrooms, isShared, disablePlural, isShort }:
|
|
|
342
369
|
isShort?: boolean | undefined;
|
|
343
370
|
}) => string;
|
|
344
371
|
|
|
345
|
-
export { AmenityTags, BaseLayout, BeachesIcon, BedIcon, BedroomsForm, BudgetForm, BusIcon, Button, CardImage, EmptyDefaultImage, ErrorBoundary, FilterButton, FiltersIcon, FiltersModal, FooterButtons, GymIcon, LazyLoadImage, ListHeader, Loader, ModalBase, ModalsContext, ModalsProvider, Onboarding, OnboardingStepLayout, ParksIcon, Powered, PropertiesList, PropertyCard, type PropertyCardType, PropertyTag, RentBuyForm, type RentBuyFormProps, RestaurantsIcon, SchoolsIcon, SearchsmartlyLogo, ShopIcon, SlickCarousel, StarIcon, Tag, type TagProps, ThemeProvider, Transition, amenityTagConfig, currencyFormatterProperty, formatPrice, getAmenityTags, getBedroomsText, pluralize, renderPlural, thresholds, useModal, useResponsive };
|
|
372
|
+
export { AmenityTags, BaseLayout, BeachesIcon, BedIcon, BedroomsForm, BudgetForm, BusIcon, Button, CardImage, EmptyDefaultImage, ErrorBoundary, FilterButton, FiltersIcon, FiltersModal, FooterButtons, GymIcon, LazyLoadImage, LifestyleForm, type LifestyleFormProps, ListHeader, Loader, ModalBase, ModalsContext, ModalsProvider, Onboarding, OnboardingStepLayout, ParksIcon, Powered, PropertiesList, PropertyCard, type PropertyCardType, PropertyTag, PropertyTypeForm, type PropertyTypeFormProps, RentBuyForm, type RentBuyFormProps, RestaurantsIcon, SchoolsIcon, SearchsmartlyLogo, ShopIcon, SlickCarousel, StarIcon, Tag, type TagProps, ThemeProvider, Transition, amenityTagConfig, currencyFormatterProperty, formatPrice, getAmenityTags, getBedroomsText, pluralize, renderPlural, thresholds, useModal, useResponsive };
|