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.
Files changed (31) hide show
  1. package/README.md +11 -2
  2. package/dist/index.d.ts +67 -6
  3. package/dist/index.esm.js +4 -4
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.js +4 -4
  6. package/dist/index.js.map +1 -1
  7. package/dist/src/components/Tag/AmenityTags/AmenityTags.d.ts +23 -0
  8. package/dist/src/components/Tag/AmenityTags/index.d.ts +1 -0
  9. package/dist/src/components/Tag/PropertyTag/PropertyTag.d.ts +3 -0
  10. package/dist/src/components/Tag/PropertyTag/index.d.ts +1 -0
  11. package/dist/src/components/Tag/index.d.ts +2 -0
  12. package/dist/src/components/forms/BedroomsForm/BedroomsForm.d.ts +7 -0
  13. package/dist/src/components/forms/BedroomsForm/index.d.ts +1 -0
  14. package/dist/src/components/forms/BudgetForm/BudgetForm.d.ts +8 -0
  15. package/dist/src/components/forms/BudgetForm/index.d.ts +1 -0
  16. package/dist/src/components/forms/index.d.ts +2 -0
  17. package/dist/src/components/icons/PropertyIcons/BeachesIcon.d.ts +2 -0
  18. package/dist/src/components/icons/PropertyIcons/BusIcon.d.ts +2 -0
  19. package/dist/src/components/icons/PropertyIcons/GymIcon.d.ts +2 -0
  20. package/dist/src/components/icons/PropertyIcons/ParksIcon.d.ts +2 -0
  21. package/dist/src/components/icons/PropertyIcons/RestaurantsIcon.d.ts +2 -0
  22. package/dist/src/components/icons/PropertyIcons/SchoolsIcon.d.ts +2 -0
  23. package/dist/src/components/icons/PropertyIcons/ShopIcon.d.ts +2 -0
  24. package/dist/src/components/icons/PropertyIcons/StarIcon.d.ts +2 -0
  25. package/dist/src/components/icons/PropertyIcons/index.d.ts +8 -0
  26. package/dist/src/components/icons/index.d.ts +3 -0
  27. package/dist/src/components/index.d.ts +2 -0
  28. package/dist/src/components/list/PropertiesList/PropertiesList.d.ts +8 -2
  29. package/dist/src/components/list/PropertyCard.d.ts +2 -2
  30. package/package.json +1 -1
  31. 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,3 @@
1
+ import { FC } from 'react';
2
+ import type { TagProps } from '../Tag';
3
+ export declare const PropertyTag: FC<TagProps>;
@@ -0,0 +1 @@
1
+ export * from './PropertyTag';
@@ -1 +1,3 @@
1
1
  export * from './Tag';
2
+ export * from './PropertyTag';
3
+ export * from './AmenityTags';
@@ -0,0 +1,7 @@
1
+ import type { FC } from 'react';
2
+ type BedroomsFormProps = {
3
+ selected?: number;
4
+ onClick: (value?: number) => void;
5
+ };
6
+ export declare const BedroomsForm: FC<BedroomsFormProps>;
7
+ export {};
@@ -0,0 +1 @@
1
+ export * from './BedroomsForm';
@@ -0,0 +1,8 @@
1
+ import type { FC } from 'react';
2
+ type BudgetFormProps = {
3
+ minPrice?: number;
4
+ maxPrice?: number;
5
+ onSubmit: (minPrice?: number, maxPrice?: number) => void;
6
+ };
7
+ export declare const BudgetForm: FC<BudgetFormProps>;
8
+ export {};
@@ -0,0 +1 @@
1
+ export * from './BudgetForm';
@@ -0,0 +1,2 @@
1
+ export * from './BedroomsForm';
2
+ export * from './BudgetForm';
@@ -0,0 +1,2 @@
1
+ import type { SvgIconProps } from '@mui/material';
2
+ export declare const BeachesIcon: ({ sx, ...props }: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { SvgIconProps } from '@mui/material';
2
+ export declare const BusIcon: ({ sx, ...props }: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { SvgIconProps } from '@mui/material';
2
+ export declare const GymIcon: ({ sx, ...props }: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { SvgIconProps } from '@mui/material';
2
+ export declare const ParksIcon: ({ sx, ...props }: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { SvgIconProps } from '@mui/material';
2
+ export declare const RestaurantsIcon: ({ sx, ...props }: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { SvgIconProps } from '@mui/material';
2
+ export declare const SchoolsIcon: ({ sx, ...props }: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { SvgIconProps } from '@mui/material';
2
+ export declare const ShopIcon: ({ sx, ...props }: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { SvgIconProps } from '@mui/material';
2
+ export declare const StarIcon: ({ sx, ...props }: SvgIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export * from './StarIcon';
2
+ export * from './ParksIcon';
3
+ export * from './RestaurantsIcon';
4
+ export * from './SchoolsIcon';
5
+ export * from './BeachesIcon';
6
+ export * from './BusIcon';
7
+ export * from './ShopIcon';
8
+ export * from './GymIcon';
@@ -0,0 +1,3 @@
1
+ export * from './PropertyIcons';
2
+ export * from './BedIcon';
3
+ export * from './SearchsmartlyLogo';
@@ -7,3 +7,5 @@ export * from './Tag';
7
7
  export * from './list';
8
8
  export * from './Powered';
9
9
  export * from './EmptyDefaultImage';
10
+ export * from './forms';
11
+ export * from './icons';
@@ -1,12 +1,18 @@
1
- import { type PropertyItemType } from '../types';
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 { type ReactElement } from 'react';
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?: ReactElement | ReactElement[];
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,6 +1,6 @@
1
1
  {
2
2
  "name": "searchsmartly-ui",
3
- "version": "0.0.16",
3
+ "version": "0.0.21",
4
4
  "description": "SearchSmartly UI Library",
5
5
  "keywords": [
6
6
  "react",
@@ -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 {};