searchsmartly-ui 0.0.16 → 0.0.21
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/README.md +11 -2
- package/dist/index.d.ts +67 -6
- 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/Tag/AmenityTags/AmenityTags.d.ts +23 -0
- package/dist/src/components/Tag/AmenityTags/index.d.ts +1 -0
- package/dist/src/components/Tag/PropertyTag/PropertyTag.d.ts +3 -0
- package/dist/src/components/Tag/PropertyTag/index.d.ts +1 -0
- package/dist/src/components/Tag/index.d.ts +2 -0
- package/dist/src/components/forms/BedroomsForm/BedroomsForm.d.ts +7 -0
- package/dist/src/components/forms/BedroomsForm/index.d.ts +1 -0
- package/dist/src/components/forms/BudgetForm/BudgetForm.d.ts +8 -0
- package/dist/src/components/forms/BudgetForm/index.d.ts +1 -0
- package/dist/src/components/forms/index.d.ts +2 -0
- package/dist/src/components/icons/PropertyIcons/BeachesIcon.d.ts +2 -0
- package/dist/src/components/icons/PropertyIcons/BusIcon.d.ts +2 -0
- package/dist/src/components/icons/PropertyIcons/GymIcon.d.ts +2 -0
- package/dist/src/components/icons/PropertyIcons/ParksIcon.d.ts +2 -0
- package/dist/src/components/icons/PropertyIcons/RestaurantsIcon.d.ts +2 -0
- package/dist/src/components/icons/PropertyIcons/SchoolsIcon.d.ts +2 -0
- package/dist/src/components/icons/PropertyIcons/ShopIcon.d.ts +2 -0
- package/dist/src/components/icons/PropertyIcons/StarIcon.d.ts +2 -0
- package/dist/src/components/icons/PropertyIcons/index.d.ts +8 -0
- package/dist/src/components/icons/index.d.ts +3 -0
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/list/PropertiesList/PropertiesList.d.ts +8 -2
- package/dist/src/components/list/PropertyCard.d.ts +2 -2
- package/package.json +1 -1
- package/dist/src/components/layouts/Onboarding/StepLayout.d.ts +0 -9
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ChipProps } from '@mui/material/Chip/Chip';
|
|
3
|
+
type Amenity = {
|
|
4
|
+
icon: ChipProps['icon'];
|
|
5
|
+
name: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const amenityTagConfig: Record<string, Amenity>;
|
|
8
|
+
type Threshold = {
|
|
9
|
+
threshold: number;
|
|
10
|
+
getCopy: (amenity: string) => string;
|
|
11
|
+
};
|
|
12
|
+
type ThresholdsConfig = Record<string, Threshold>;
|
|
13
|
+
export declare const thresholds: ThresholdsConfig;
|
|
14
|
+
type AmenityTag = {
|
|
15
|
+
id: string;
|
|
16
|
+
icon: ChipProps['icon'];
|
|
17
|
+
label: ChipProps['label'];
|
|
18
|
+
};
|
|
19
|
+
export declare const getAmenityTags: (scores: Record<string, number>) => AmenityTag[];
|
|
20
|
+
export declare const AmenityTags: FC<{
|
|
21
|
+
scores: Record<string, number>;
|
|
22
|
+
}>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AmenityTags';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PropertyTag';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BedroomsForm';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BudgetForm';
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import type { PropertyItemType } from '../types';
|
|
2
3
|
type ListProps<T extends PropertyItemType> = {
|
|
3
4
|
title: string;
|
|
4
5
|
currency?: string;
|
|
6
|
+
defaultPropertyCard?: boolean;
|
|
5
7
|
properties: T[];
|
|
8
|
+
children?: ({ property }: {
|
|
9
|
+
property: T;
|
|
10
|
+
}) => ReactElement;
|
|
11
|
+
cardHeader?: (val: T) => void;
|
|
6
12
|
disableCarousel?: boolean;
|
|
7
13
|
loadMoreLoading?: boolean;
|
|
8
14
|
onLoadMore?: () => void;
|
|
9
15
|
onClickMapButton?: () => void;
|
|
10
16
|
};
|
|
11
|
-
export declare const PropertiesList: <T extends PropertyItemType>({ currency, title, properties, disableCarousel, loadMoreLoading, onLoadMore, onClickMapButton, }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const PropertiesList: <T extends PropertyItemType>({ currency, title, properties, defaultPropertyCard, disableCarousel, cardHeader, loadMoreLoading, onLoadMore, onClickMapButton, children, }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
12
18
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import { ChipProps } from '@mui/material/Chip/Chip';
|
|
3
3
|
import type { BoxProps } from '@mui/material';
|
|
4
4
|
import type { PropertyItemType } from './types';
|
|
@@ -10,6 +10,6 @@ export type PropertyCardType<T extends PropertyItemType> = Omit<BoxProps, 'prope
|
|
|
10
10
|
tagColor?: ChipProps['color'];
|
|
11
11
|
property: T;
|
|
12
12
|
children?: ReactElement | ReactElement[];
|
|
13
|
-
header?:
|
|
13
|
+
header?: (val: T) => void;
|
|
14
14
|
};
|
|
15
15
|
export declare const PropertyCard: <T extends PropertyItemType>({ property, currency, id, disableCarousel, isPopover, children, header, tagColor, sx, }: PropertyCardType<T>) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { FC, PropsWithChildren } from 'react';
|
|
2
|
-
type StepLayoutProps = {
|
|
3
|
-
Link?: FC<Record<string, unknown>>;
|
|
4
|
-
linkProps?: Record<string, unknown>;
|
|
5
|
-
caption: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare const StepLayout: FC<PropsWithChildren<StepLayoutProps>>;
|
|
9
|
-
export {};
|