@admin-layout/tailwind-design-pro 10.0.9-alpha.9 → 10.1.1-alpha.0

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 (273) hide show
  1. package/README.md +345 -1
  2. package/lib/cdm-locales/en/settings.json +35 -1
  3. package/lib/cdm-locales/es/settings.json +37 -3
  4. package/lib/components/Layout/BasicLayout/index.d.ts +1 -2
  5. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  6. package/lib/components/Layout/BasicLayout/index.js +146 -42
  7. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  8. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
  9. package/lib/components/Layout/BasicLayout/utils.js +1 -1
  10. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
  11. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  12. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  13. package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
  14. package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
  15. package/lib/components/Layout/GlobalHeader/Header.d.ts +2 -15
  16. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  17. package/lib/components/Layout/GlobalHeader/Header.js +70 -38
  18. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  19. package/lib/components/Layout/GlobalHeader/Logo.d.ts +4 -0
  20. package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +1 -0
  21. package/lib/components/Layout/GlobalHeader/Logo.js +141 -0
  22. package/lib/components/Layout/GlobalHeader/Logo.js.map +1 -0
  23. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +6 -0
  24. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
  25. package/lib/components/Layout/GlobalHeader/MainHeader.js +230 -0
  26. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
  27. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
  28. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
  29. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  30. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -13
  31. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  32. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
  33. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
  34. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
  35. package/lib/components/Layout/GlobalHeader/RightMenu.js +290 -0
  36. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
  37. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts +9 -0
  38. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -0
  39. package/lib/components/Layout/GlobalHeader/SearchBar.js +118 -0
  40. package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -0
  41. package/lib/components/Layout/GlobalHeader/index.d.ts +4 -0
  42. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
  43. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  44. package/lib/components/Layout/ProTailwindLayout.js +1 -2
  45. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  46. package/lib/components/Layout/Sidebar/Divider.d.ts +1 -31
  47. package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
  48. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  49. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
  50. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
  51. package/lib/components/Layout/Sidebar/DynamicIcon.js +51 -0
  52. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
  53. package/lib/components/Layout/Sidebar/Sidebar.d.ts +1 -12
  54. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -1
  55. package/lib/components/Layout/Sidebar/Sidebar.js +108 -92
  56. package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
  57. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -1
  58. package/lib/components/Layout/Sidebar/SidebarMenu.js +110 -20
  59. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +1 -1
  60. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  61. package/lib/components/Layout/TailwindLayout.js +29 -19
  62. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  63. package/lib/components/Layout/getPageTitle.d.ts +1 -16
  64. package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
  65. package/lib/components/Layout/getPageTitle.js +1 -1
  66. package/lib/components/Layout/getPageTitle.js.map +1 -1
  67. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
  68. package/lib/components/Layout/slot-fill/Footer.d.ts +1 -1
  69. package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
  70. package/lib/components/Layout/slot-fill/Footer.js +6 -6
  71. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  72. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
  73. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +3 -0
  74. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
  75. package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
  76. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
  77. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +3 -0
  78. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
  79. package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
  80. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
  81. package/lib/components/Layout/slot-fill/RightContent.d.ts +3 -0
  82. package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
  83. package/lib/components/Layout/slot-fill/RightContent.js +6 -0
  84. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
  85. package/lib/components/Layout/slot-fill/index.d.ts +3 -0
  86. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  87. package/lib/components/Layout/util.d.ts.map +1 -1
  88. package/lib/components/Layout/util.js +12 -0
  89. package/lib/components/Layout/util.js.map +1 -0
  90. package/lib/components/SettingDrawer/CheckBoxTheme.js +1 -1
  91. package/lib/components/SettingDrawer/LayoutChange.d.ts +1 -1
  92. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
  93. package/lib/components/SettingDrawer/LayoutChange.js +75 -17
  94. package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
  95. package/lib/components/SettingDrawer/NavigationsModes.d.ts +1 -1
  96. package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -1
  97. package/lib/components/SettingDrawer/NavigationsModes.js +18 -10
  98. package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -1
  99. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
  100. package/lib/components/SettingDrawer/RegionalSettings.js +685 -33
  101. package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
  102. package/lib/components/SettingDrawer/SettingDrawer.d.ts +1 -1
  103. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  104. package/lib/components/SettingDrawer/SettingDrawer.js +164 -39
  105. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  106. package/lib/components/SettingDrawer/WebFontsSelector.d.ts +3 -0
  107. package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +1 -0
  108. package/lib/components/SettingDrawer/WebFontsSelector.js +24 -0
  109. package/lib/components/SettingDrawer/WebFontsSelector.js.map +1 -0
  110. package/lib/components/SettingDrawer/types.d.ts +23 -2
  111. package/lib/components/SettingDrawer/types.d.ts.map +1 -1
  112. package/lib/components/ThemeProvider/ThemeProvider.d.ts +6 -16
  113. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  114. package/lib/components/ThemeProvider/ThemeProvider.js +26 -28
  115. package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
  116. package/lib/components/ThemeProvider/ThemeToggle.js +50 -0
  117. package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
  118. package/lib/components/ThemeProvider/index.d.ts +2 -5
  119. package/lib/components/ThemeProvider/index.d.ts.map +1 -1
  120. package/lib/components/ThemeProvider/themes/airbnb.d.ts +3 -0
  121. package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +1 -0
  122. package/lib/components/ThemeProvider/themes/airbnb.js +186 -0
  123. package/lib/components/ThemeProvider/themes/airbnb.js.map +1 -0
  124. package/lib/components/ThemeProvider/themes/default.d.ts +3 -0
  125. package/lib/components/ThemeProvider/themes/default.d.ts.map +1 -0
  126. package/lib/components/ThemeProvider/themes/default.js +183 -0
  127. package/lib/components/ThemeProvider/themes/default.js.map +1 -0
  128. package/lib/components/ThemeProvider/themes/github.d.ts +3 -0
  129. package/lib/components/ThemeProvider/themes/github.d.ts.map +1 -0
  130. package/lib/components/ThemeProvider/themes/github.js +190 -0
  131. package/lib/components/ThemeProvider/themes/github.js.map +1 -0
  132. package/lib/components/ThemeProvider/themes/index.d.ts +15 -0
  133. package/lib/components/ThemeProvider/themes/index.d.ts.map +1 -0
  134. package/lib/components/ThemeProvider/themes/index.js +7 -0
  135. package/lib/components/ThemeProvider/themes/index.js.map +1 -0
  136. package/lib/components/ThemeProvider/themes/slack.d.ts +3 -0
  137. package/lib/components/ThemeProvider/themes/slack.d.ts.map +1 -0
  138. package/lib/components/ThemeProvider/themes/slack.js +188 -0
  139. package/lib/components/ThemeProvider/themes/slack.js.map +1 -0
  140. package/lib/components/ThemeProvider/themes/spotify.d.ts +3 -0
  141. package/lib/components/ThemeProvider/themes/spotify.d.ts.map +1 -0
  142. package/lib/components/ThemeProvider/themes/spotify.js +189 -0
  143. package/lib/components/ThemeProvider/themes/spotify.js.map +1 -0
  144. package/lib/components/ThemeProvider/types.d.ts +106 -106
  145. package/lib/components/ThemeProvider/types.d.ts.map +1 -1
  146. package/lib/components/UI/CategoriesTypeList.d.ts +29 -0
  147. package/lib/components/UI/CategoriesTypeList.d.ts.map +1 -0
  148. package/lib/components/UI/CategoriesTypeList.js +140 -0
  149. package/lib/components/UI/CategoriesTypeList.js.map +1 -0
  150. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +83 -0
  151. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +1 -0
  152. package/lib/components/UI/LazyLoadingGoogleMarker.js +107 -0
  153. package/lib/components/UI/LazyLoadingGoogleMarker.js.map +1 -0
  154. package/lib/components/UI/Pagination.d.ts +6 -0
  155. package/lib/components/UI/Pagination.d.ts.map +1 -0
  156. package/lib/components/UI/Pagination.js +59 -0
  157. package/lib/components/UI/Pagination.js.map +1 -0
  158. package/lib/components/UI/ParamSearchResultContainer.d.ts +90 -0
  159. package/lib/components/UI/ParamSearchResultContainer.d.ts.map +1 -0
  160. package/lib/components/UI/ParamSearchResultContainer.js +80 -0
  161. package/lib/components/UI/ParamSearchResultContainer.js.map +1 -0
  162. package/lib/components/UI/PropertyCard.d.ts +24 -0
  163. package/lib/components/UI/PropertyCard.d.ts.map +1 -0
  164. package/lib/components/UI/PropertyCard.js +375 -0
  165. package/lib/components/UI/PropertyCard.js.map +1 -0
  166. package/lib/components/UI/PropertyCardList.d.ts +93 -0
  167. package/lib/components/UI/PropertyCardList.d.ts.map +1 -0
  168. package/lib/components/UI/PropertyCardList.js +41 -0
  169. package/lib/components/UI/PropertyCardList.js.map +1 -0
  170. package/lib/components/UI/PropertyCardOnMap.d.ts +10 -0
  171. package/lib/components/UI/PropertyCardOnMap.d.ts.map +1 -0
  172. package/lib/components/UI/PropertyCardOnMap.js +108 -0
  173. package/lib/components/UI/PropertyCardOnMap.js.map +1 -0
  174. package/lib/components/UI/icons/LocationIcon.d.ts +7 -0
  175. package/lib/components/UI/icons/LocationIcon.d.ts.map +1 -0
  176. package/lib/components/UI/icons/LocationIcon.js +18 -0
  177. package/lib/components/UI/icons/LocationIcon.js.map +1 -0
  178. package/lib/components/UI/icons/index.d.ts +2 -0
  179. package/lib/components/UI/icons/index.d.ts.map +1 -0
  180. package/lib/components/UI/index.d.ts +8 -0
  181. package/lib/components/UI/index.d.ts.map +1 -0
  182. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +1 -1
  183. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  184. package/lib/components/index.d.ts +4 -0
  185. package/lib/components/index.d.ts.map +1 -0
  186. package/lib/components/index.js +1 -0
  187. package/lib/components/index.js.map +1 -0
  188. package/lib/components/typings.d.ts +128 -51
  189. package/lib/components/typings.d.ts.map +1 -1
  190. package/lib/config/constants.d.ts +8 -0
  191. package/lib/config/constants.d.ts.map +1 -0
  192. package/lib/config/constants.js +32 -0
  193. package/lib/config/constants.js.map +1 -0
  194. package/lib/config/env-config.d.ts +3 -0
  195. package/lib/config/env-config.d.ts.map +1 -1
  196. package/lib/config/env-config.js +19 -1
  197. package/lib/config/env-config.js.map +1 -1
  198. package/lib/helpers/DynamicIcon.d.ts +7 -4
  199. package/lib/helpers/DynamicIcon.d.ts.map +1 -1
  200. package/lib/helpers/DynamicIcon.js +51 -0
  201. package/lib/helpers/DynamicIcon.js.map +1 -0
  202. package/lib/hooks/index.d.ts +6 -0
  203. package/lib/hooks/index.d.ts.map +1 -0
  204. package/lib/hooks/use-get-current-lat-long.d.ts +18 -0
  205. package/lib/hooks/use-get-current-lat-long.d.ts.map +1 -0
  206. package/lib/hooks/use-get-current-lat-long.js +29 -0
  207. package/lib/hooks/use-get-current-lat-long.js.map +1 -0
  208. package/lib/hooks/useMediaQuery.d.ts +14 -0
  209. package/lib/hooks/useMediaQuery.d.ts.map +1 -0
  210. package/lib/hooks/useMediaQuery.js +48 -0
  211. package/lib/hooks/useMediaQuery.js.map +1 -0
  212. package/lib/hooks/useScrollThreshold.d.ts +12 -0
  213. package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
  214. package/lib/hooks/useScrollThreshold.js +60 -0
  215. package/lib/hooks/useScrollThreshold.js.map +1 -0
  216. package/lib/hooks/useTailwindTheme.d.ts +34 -0
  217. package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
  218. package/lib/hooks/useTailwindTheme.js +82 -0
  219. package/lib/hooks/useTailwindTheme.js.map +1 -0
  220. package/lib/hooks/useWindowSize.d.ts +6 -0
  221. package/lib/hooks/useWindowSize.d.ts.map +1 -0
  222. package/lib/hooks/useWindowSize.js +20 -0
  223. package/lib/hooks/useWindowSize.js.map +1 -0
  224. package/lib/icons.d.ts +2 -0
  225. package/lib/icons.d.ts.map +1 -1
  226. package/lib/icons.js +3 -4
  227. package/lib/icons.js.map +1 -1
  228. package/lib/index.d.ts +3 -0
  229. package/lib/index.d.ts.map +1 -1
  230. package/lib/index.js +1 -1
  231. package/lib/index.js.map +1 -1
  232. package/lib/machines/settingsMachine.d.ts +4 -1
  233. package/lib/machines/settingsMachine.d.ts.map +1 -1
  234. package/lib/machines/settingsMachine.js +170 -120
  235. package/lib/machines/settingsMachine.js.map +1 -1
  236. package/lib/machines/types.d.ts +124 -17
  237. package/lib/machines/types.d.ts.map +1 -1
  238. package/lib/machines/types.js +5 -0
  239. package/lib/machines/types.js.map +1 -0
  240. package/lib/module.d.ts +0 -1
  241. package/lib/module.d.ts.map +1 -1
  242. package/lib/module.js +14 -15
  243. package/lib/module.js.map +1 -1
  244. package/lib/redux/index.d.ts +2 -0
  245. package/lib/redux/index.d.ts.map +1 -0
  246. package/lib/redux/searchReducer.d.ts +42 -0
  247. package/lib/redux/searchReducer.d.ts.map +1 -0
  248. package/lib/redux/searchReducer.js +64 -0
  249. package/lib/redux/searchReducer.js.map +1 -0
  250. package/lib/tailwindConfig.d.ts +42 -0
  251. package/lib/tailwindConfig.d.ts.map +1 -0
  252. package/lib/tailwindConfig.js +23 -0
  253. package/lib/tailwindConfig.js.map +1 -0
  254. package/lib/utils/menu.d.ts.map +1 -1
  255. package/lib/utils/test-utils.d.ts.map +1 -1
  256. package/lib/utils/utils/index.d.ts.map +1 -1
  257. package/package.json +6 -6
  258. package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
  259. package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
  260. package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
  261. package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
  262. package/lib/components/ThemeProvider/themeRegistry.d.ts +0 -3
  263. package/lib/components/ThemeProvider/themeRegistry.d.ts.map +0 -1
  264. package/lib/components/ThemeProvider/themeRegistry.js +0 -388
  265. package/lib/components/ThemeProvider/themeRegistry.js.map +0 -1
  266. package/lib/components/ThemeProvider/themeUtils.d.ts +0 -26
  267. package/lib/components/ThemeProvider/themeUtils.d.ts.map +0 -1
  268. package/lib/components/ThemeProvider/themeUtils.js +0 -135
  269. package/lib/components/ThemeProvider/themeUtils.js.map +0 -1
  270. package/lib/components/defaultSettings.d.ts +0 -4
  271. package/lib/components/defaultSettings.d.ts.map +0 -1
  272. package/lib/components/defaultSettings.js +0 -14
  273. package/lib/components/defaultSettings.js.map +0 -1
@@ -0,0 +1,93 @@
1
+ import React from 'react';
2
+ interface IProperty {
3
+ id: string;
4
+ title: string;
5
+ types: string[];
6
+ name: string;
7
+ description?: string;
8
+ introduction?: string;
9
+ address: any;
10
+ location: string;
11
+ images: any;
12
+ thumbnailUrl?: string;
13
+ thumbnailAlt?: string;
14
+ verificationDocuments?: any;
15
+ info?: any;
16
+ user: any;
17
+ status?: any;
18
+ errors?: any;
19
+ preferences?: any;
20
+ orgName?: string;
21
+ serviceConfiguration?: any;
22
+ totalReview?: number;
23
+ totalStar?: number;
24
+ reviews?: any;
25
+ comments?: any;
26
+ userLikes?: any;
27
+ calendarEvents?: any[];
28
+ isUserLike?: boolean;
29
+ formattedPrice?: number;
30
+ timeZone: string;
31
+ createdAt: any;
32
+ updatedAt?: any;
33
+ stats?: any;
34
+ guideBookId?: string;
35
+ guestSharing?: any;
36
+ }
37
+ interface IAirbnbProperty {
38
+ id: string;
39
+ title: string;
40
+ types: string[];
41
+ name: string;
42
+ description?: string;
43
+ introduction?: string;
44
+ address: any;
45
+ location: string;
46
+ images: any;
47
+ thumbnailUrl?: string;
48
+ thumbnailAlt?: string;
49
+ verificationDocuments?: any;
50
+ info?: any;
51
+ user: any;
52
+ status?: any;
53
+ errors?: any;
54
+ preferences?: any;
55
+ orgName?: string;
56
+ serviceConfiguration?: any;
57
+ totalReview?: number;
58
+ totalStar?: number;
59
+ reviews?: any;
60
+ comments?: any;
61
+ userLikes?: any;
62
+ calendarEvents?: any[];
63
+ isUserLike?: boolean;
64
+ formattedPrice?: number;
65
+ timeZone: string;
66
+ createdAt: any;
67
+ updatedAt?: any;
68
+ stats?: any;
69
+ guideBookId?: string;
70
+ guestSharing?: any;
71
+ }
72
+ interface IPropertyType {
73
+ id: string;
74
+ icon: string;
75
+ description: string;
76
+ category: string;
77
+ name: string;
78
+ imageKey: string;
79
+ created_at: string;
80
+ }
81
+ type PropertyCardListProps = {
82
+ rooms?: IProperty[] | IAirbnbProperty[];
83
+ setFocus: (index: number) => void;
84
+ setBlur: (index: number) => void;
85
+ handleLike: (index: number) => void;
86
+ likeBtnLoading: boolean;
87
+ propertyTypes: IPropertyType[];
88
+ extraIcons?: any;
89
+ className?: string;
90
+ };
91
+ export declare const PropertyCardList: React.FC<PropertyCardListProps>;
92
+ export {};
93
+ //# sourceMappingURL=PropertyCardList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyCardList.d.ts","sourceRoot":"","sources":["../../../src/components/UI/PropertyCardList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,SAAS;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,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AC,EAAE,SAAS,EAAE,GAAG,eAAe,EAAE,CAAC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,aAAa,EAAE,CAAC;IAC/B,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6B5D,CAAC"}
@@ -0,0 +1,41 @@
1
+ import {jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {isEmpty}from'lodash-es';import {PropertyCard}from'./PropertyCard.js';import {isUserAuthenticated}from'@adminide-stack/user-auth0-client';const PropertyCardList = props => {
2
+ // rooms = defaultRooms;
3
+ const {
4
+ setBlur,
5
+ setFocus,
6
+ rooms,
7
+ handleLike,
8
+ likeBtnLoading,
9
+ propertyTypes,
10
+ extraIcons,
11
+ className = ''
12
+ } = props;
13
+ const {
14
+ t
15
+ } = useTranslation();
16
+ const {
17
+ authenticated
18
+ } = isUserAuthenticated();
19
+ if (isEmpty(rooms)) {
20
+ return jsx("div", {
21
+ className: "text-base",
22
+ children: t('property.not_found_any_room')
23
+ });
24
+ }
25
+ return jsx("div", {
26
+ className: `flex flex-wrap justify-evenly ${className}`,
27
+ children: rooms?.map((r, index) => {
28
+ return jsx(PropertyCard, {
29
+ room: r,
30
+ isSaved: false,
31
+ setFocus: () => setFocus(index),
32
+ setBlur: setBlur,
33
+ handleLike: handleLike,
34
+ likeBtnLoading: likeBtnLoading,
35
+ propertyTypes: propertyTypes,
36
+ authenticated: authenticated,
37
+ extraIcons: extraIcons
38
+ }, index);
39
+ })
40
+ });
41
+ };export{PropertyCardList};//# sourceMappingURL=PropertyCardList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyCardList.js","sources":["../../../src/components/UI/PropertyCardList.tsx"],"sourcesContent":[null],"names":[],"mappings":"gOAiGa,MAAA,gBAAgB,GAAoC,KAAC,IAAS;;QAEjE;AACN,IAAA;AACA,IAAA,QAAQ;AAER,IAAA,KAAW;cACA;IACX,cAAC;AACD,IAAA,aACS;cAEU;aAeT,GACR;AACN,GAAE,GAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ import { Options } from '@cdmbase/react-splide';
2
+ type PropertyCardOnMapProps = {
3
+ room: any;
4
+ isSaved: boolean;
5
+ sliderOptions?: Options;
6
+ className?: string;
7
+ };
8
+ export declare const PropertyCardOnMap: ({ room, isSaved, sliderOptions, className, ...props }: PropertyCardOnMapProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=PropertyCardOnMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyCardOnMap.d.ts","sourceRoot":"","sources":["../../../src/components/UI/PropertyCardOnMap.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,OAAO,EAAuB,MAAM,uBAAuB,CAAC;AAIrE,KAAK,sBAAsB,GAAG;IAC1B,IAAI,EAAE,GAAG,CAAC;IACV,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,uDAM/B,sBAAsB,4CA0FxB,CAAC"}
@@ -0,0 +1,108 @@
1
+ import {jsxs,jsx}from'react/jsx-runtime';import {useMemo,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import {Link}from'@remix-run/react';import {BsStarFill}from'@react-icons/all-files/bs/BsStarFill.js';import {Splide,SplideSlide}from'@cdmbase/react-splide';import {useLayoutSettings}from'@admin-layout/client';const PropertyCardOnMap = ({
2
+ room,
3
+ isSaved,
4
+ sliderOptions = {},
5
+ className = '',
6
+ ...props
7
+ }) => {
8
+ const images = useMemo(() => room?.images?.data.map(({
9
+ url
10
+ }) => ({
11
+ src: url
12
+ })), [room]);
13
+ const {
14
+ t
15
+ } = useTranslation();
16
+ const {
17
+ settings
18
+ } = useLayoutSettings();
19
+ const [star, setStar] = useState(0);
20
+ useEffect(() => {
21
+ let temp = room?.totalReview == 0 ? 0 : room?.totalStar / room?.totalReview;
22
+ setStar(temp);
23
+ }, [room?.totalReview, room?.totalStar]);
24
+ // const { color, grayColor } = useColorTheme();
25
+ return jsxs("div", {
26
+ className: `flex flex-col flex-wrap mt-4 ${className}`,
27
+ children: [jsx("div", {
28
+ className: "w-full",
29
+ children: jsxs(Splide, {
30
+ "aria-label": t('property.property_images'),
31
+ options: {
32
+ type: 'loop',
33
+ drag: 'free',
34
+ height: '230px',
35
+ perPage: 1,
36
+ perMove: 1,
37
+ wheel: true,
38
+ releaseWheel: true,
39
+ pagination: false,
40
+ speed: 500,
41
+ ...sliderOptions
42
+ },
43
+ children: [images && images.length == 0 && jsx(SplideSlide, {
44
+ children: jsx("div", {
45
+ className: "w-full h-full",
46
+ children: jsx("img", {
47
+ src: room.thumbnailUrl,
48
+ className: "w-full h-full object-cover cursor-pointer transition-all duration-500 hover:brightness-50",
49
+ loading: "lazy",
50
+ alt: room.title || 'Property'
51
+ })
52
+ })
53
+ }), images.map((image, i) => {
54
+ return jsx(SplideSlide, {
55
+ children: jsx(Link, {
56
+ to: '/property/' + room.id,
57
+ className: "w-full",
58
+ children: jsx("div", {
59
+ className: "w-full h-full",
60
+ children: jsx("img", {
61
+ src: image.src,
62
+ className: "w-full h-full object-cover cursor-pointer transition-all duration-500 hover:brightness-50",
63
+ loading: "lazy",
64
+ alt: room.title || 'Property'
65
+ })
66
+ })
67
+ })
68
+ }, 'sliderImage1_' + i);
69
+ })]
70
+ })
71
+ }), jsxs("div", {
72
+ className: "w-full flex flex-col mt-2",
73
+ children: [jsx("div", {
74
+ className: "font-semibold text-sm",
75
+ style: {
76
+ color: settings?.primaryColor
77
+ },
78
+ children: room?.title
79
+ }), jsxs("div", {
80
+ className: "flex flex-row justify-between",
81
+ children: [jsxs("div", {
82
+ className: "flex flex-col",
83
+ children: [jsx("div", {
84
+ className: "mt-1 flex text-[9px] font-semibold",
85
+ style: {
86
+ color: settings?.primaryColor
87
+ },
88
+ children: room?.address && room?.address.city && room?.address.city.state ? room?.address.city.name + ', ' + room?.address.city.state.name : ''
89
+ }), jsxs("div", {
90
+ className: "flex items-center",
91
+ children: [jsx(BsStarFill, {
92
+ className: "text-yellow-500 w-3 h-3 mr-1"
93
+ }), jsxs("span", {
94
+ className: "text-[0.832rem] font-bold",
95
+ style: {
96
+ color: settings?.secondaryColor
97
+ },
98
+ children: [room?.reviewsOverview ? room.reviewsOverview.rating : 0, " (", room.reviewsOverview ? room.reviewsOverview.ratingCount : 0, " ", t('property.reviews'), ")"]
99
+ })]
100
+ })]
101
+ }), jsx("div", {
102
+ className: "text-lg font-bold mt-auto mb-[-2px]",
103
+ children: room.preferences?.property?.pricing?.price?.price_breakdown?.details?.pricing?.finalPrice?.total
104
+ })]
105
+ })]
106
+ })]
107
+ });
108
+ };export{PropertyCardOnMap};//# sourceMappingURL=PropertyCardOnMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyCardOnMap.js","sources":["../../../src/components/UI/PropertyCardOnMap.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"0VAkBa,iBAAiB,GAAG,CAAC;AAO9B,EAAA,IAAA;AACA,EAAA,OAAA;AACA,EAAA,aAAgB,GAAA,EAAA;WAET,GAAI,EAAA;KACF;;QAEL,MAAO,GAAK,OAAE,CAAA,MAAA,IAAA,EAAA,MAAA,EAAA,IAAA,CAAA,GAAA,CAAA,CAAA;IAClB;SAEgD;IAEhD,GAAO,EAAA;AAMa,GAAA,CAAA,CAAA,EAAA,CAAA,IAAA,CAAA,CAAA;AACA,EAAA,MAAA;AACA,IAAA;AACA,GAAA,GAAA,cAAA,EAAA;AACA,EAAA,MAAA;AACA,IAAA;AACA,GAAA,GAAA,iBAAA,EAAA;AACA,EAAA,MAAA,CAAA,IAAA,EAAA,OAAA,CAAA,GAAA,QAAU,EAAE,CAAK;AACjB,EAAA,SAAA,CAAA,MAAA;AACA,IAAA,IAAA,IAAA,GAAA,IAAA,EAAA,WAAgB,IAAA,CAAA,GAAA,CAAA,GAAA,IAAA,EAAA,SAAA,GAAA,IAAA,EAAA,WAAA;;6BAgBT,EAAA,SACF,CAAA,CAAA;AAaT;AAWY,EAAA,OAAAA,IAAA,CAAA,KAAA,EAAA;6CACC;AAaD,IAAA,QAAA,EAAA,CAAAC,GAAA,CAAA,KAAA,EAAA;AAOhC,MAAE,SAAA,EAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,7 @@
1
+ export declare const LocationIcon: ({ className, w, h, ...props }: {
2
+ [x: string]: any;
3
+ className?: string;
4
+ w: any;
5
+ h: any;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=LocationIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/UI/icons/LocationIcon.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,GAAI;;;;;CAAkC,4CAY9D,CAAC"}
@@ -0,0 +1,18 @@
1
+ import {jsx}from'react/jsx-runtime';const LocationIcon = ({
2
+ className = '',
3
+ w,
4
+ h,
5
+ ...props
6
+ }) => jsx("svg", {
7
+ viewBox: "0 0 24 24",
8
+ className: `inline-block ${className}`,
9
+ style: {
10
+ width: w || '1em',
11
+ height: h || '1em'
12
+ },
13
+ ...props,
14
+ children: jsx("path", {
15
+ d: "M12.0001 1.49866C7.85965 1.49866 4.50012 4.52256 4.50012 8.24865C4.50012 14.2487 12.0001 22.4986 12.0001 22.4986C12.0001 22.4986 19.5001 14.2487 19.5001 8.24865C19.5001 4.52256 16.1406 1.49866 12.0001 1.49866ZM12.0001 11.9987C11.4068 11.9987 10.8268 11.8227 10.3334 11.4931C9.84006 11.1634 9.45554 10.6949 9.22848 10.1467C9.00142 9.59853 8.94201 8.99533 9.05776 8.41338C9.17352 7.83144 9.45924 7.29689 9.8788 6.87733C10.2984 6.45778 10.8329 6.17205 11.4148 6.0563C11.9968 5.94054 12.6 5.99995 13.1482 6.22702C13.6963 6.45408 14.1649 6.8386 14.4945 7.33194C14.8242 7.82529 15.0001 8.40531 15.0001 8.99865C14.9992 9.79404 14.6829 10.5566 14.1205 11.119C13.5581 11.6814 12.7955 11.9978 12.0001 11.9987Z",
16
+ fill: "currentColor"
17
+ })
18
+ });export{LocationIcon};//# sourceMappingURL=LocationIcon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationIcon.js","sources":["../../../../src/components/UI/icons/LocationIcon.tsx"],"sourcesContent":[null],"names":[],"mappings":"oCAEO,MAAM,YAAY,GAAG,CAAC;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,2 @@
1
+ export * from './LocationIcon';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/UI/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from './CategoriesTypeList';
2
+ export * from './PropertyCardOnMap';
3
+ export * from './LazyLoadingGoogleMarker';
4
+ export * from './ParamSearchResultContainer';
5
+ export * from './PropertyCardList';
6
+ export * from './PropertyCard';
7
+ export * from './Pagination';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UI/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
@@ -3,6 +3,6 @@ export declare const action: ({ request }: {
3
3
  }) => Promise<import("@remix-run/server-runtime").TypedResponse<any>>, loader: ({ request }: {
4
4
  request: Request;
5
5
  }) => Promise<import("@remix-run/server-runtime").TypedResponse<{
6
- settings: import("@admin-layout/client").ProSettings;
6
+ settings: import("@admin-layout/client").PureSettings;
7
7
  }>>;
8
8
  //# sourceMappingURL=UpdateSettingsResource.server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateSettingsResource.server.d.ts","sourceRoot":"","sources":["../../../src/components/UpdateSettingsResource/UpdateSettingsResource.server.ts"],"names":[],"mappings":"AACA,eAAO,MAAQ,MAAM;;qBACoI,2BAA2B,uBAD7J,MAAM;;qBACsQ,2BAA2B;;GADjQ,CAAC"}
1
+ {"version":3,"file":"UpdateSettingsResource.server.d.ts","sourceRoot":"","sources":["../../../src/components/UpdateSettingsResource/UpdateSettingsResource.server.ts"],"names":[],"mappings":"AACA,eAAO,MAAQ,MAAM;;uEAAE,MAAM;;;;GAAgC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './UI';
2
+ export * from './Layout/GlobalHeader';
3
+ export * from './ThemeProvider';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,MAAM,CAAC;AACrB,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1 @@
1
+ export{CategoriesTypeList}from'./UI/CategoriesTypeList.js';export{PropertyCardOnMap}from'./UI/PropertyCardOnMap.js';export{LazyLoadingGoogleMarker}from'./UI/LazyLoadingGoogleMarker.js';export{ParamSearchResultContainer}from'./UI/ParamSearchResultContainer.js';export{PropertyCardList}from'./UI/PropertyCardList.js';export{PropertyCard}from'./UI/PropertyCard.js';export{Pagination}from'./UI/Pagination.js';export{MainHeader,defaultRenderLogo,defaultRenderLogoAndTitle}from'./Layout/GlobalHeader/MainHeader.js';export{Logo}from'./Layout/GlobalHeader/Logo.js';export{RightMenu}from'./Layout/GlobalHeader/RightMenu.js';export{ThemeProviderTailwind,useTheme}from'./ThemeProvider/ThemeProvider.js';export{ThemeToggle}from'./ThemeProvider/ThemeToggle.js';//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,66 +1,24 @@
1
1
  import * as H from 'history';
2
2
  import { RouterProps as BasicRouteProps } from 'react-router-dom';
3
3
  import * as React from 'react';
4
+ import { GlobalHeaderProps, MenuDataItem, ProSettings, SeparateMenusTypes } from '@admin-layout/client';
5
+ import { PermissionType } from 'common';
4
6
  export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
5
7
  to: H.Location;
6
8
  replace?: boolean;
7
9
  innerRef?: React.Ref<HTMLAnchorElement>;
8
10
  }
9
- export interface MenuDataItem {
10
- /**
11
- * @name Submenu
12
- */
13
- children?: MenuDataItem[];
14
- /**
15
- * @name Hidden subtots in the menu
16
- */
17
- hideChildrenInMenu?: boolean;
18
- /**
19
- * @name Hide you and child nodes in the menu
20
- */
21
- hideInMenu?: boolean;
22
- /**
23
- * @name Icon
24
- */
25
- icon?: React.ReactNode;
26
- /**
27
- * @name Custom menu International KEY
28
- */
29
- locale?: string | false;
30
- /**
31
- * @name Name of the menu
32
- */
33
- name?: string;
34
- /**
35
- * @name Used to calibrate the selected value, the default is `path`
36
- */
37
- key?: string;
38
- /**
39
- * @name disable menu option
40
- */
41
- disabled?: boolean;
42
- /**
43
- * @name 路径
44
- */
45
- path?: string;
46
- /**
47
- * @name Custom parent node
48
- * @description When this node is selected, the node of ParentKeys will be selected.
49
- */
50
- parentKeys?: string[];
51
- /**
52
- * @name Hide yourself and upgrade the child node to your own
53
- */
54
- flatMenu?: boolean;
55
- [key: string]: any;
56
- }
57
- export interface Route extends MenuDataItem {
58
- routes?: Route[];
11
+ export type MergerSettingsType<T> = Partial<T> & {
12
+ primaryColor?: string;
13
+ colorWeak?: boolean;
14
+ };
15
+ export interface IRoute extends MenuDataItem {
16
+ routes?: IRoute[];
59
17
  }
60
18
  export type WithFalse<T> = T | false;
61
19
  export interface RouterTypes<P> extends Omit<BasicRouteProps, 'location'> {
62
20
  computedMatch?: any;
63
- route?: Route;
21
+ route?: IRoute;
64
22
  location: BasicRouteProps['location'] | {
65
23
  pathname?: string;
66
24
  };
@@ -78,4 +36,123 @@ export interface SidebarMenuProps {
78
36
  };
79
37
  collapsed: boolean;
80
38
  }
39
+ export interface SidebarProps {
40
+ isSideMenuOpen: boolean;
41
+ closeSideMenu: () => void;
42
+ menuData: any;
43
+ collapsed: boolean;
44
+ setCollapsed: (collapsed: boolean) => void;
45
+ routeParams: {
46
+ orgName?: string;
47
+ [key: string]: string;
48
+ };
49
+ settings?: any;
50
+ upperMenuDividerName?: string;
51
+ middleMenuDividerName?: string;
52
+ lowerMenuDividerName?: string;
53
+ location?: any;
54
+ }
55
+ export interface BottomMenuDropDownProps {
56
+ menus: any;
57
+ collapsed: boolean;
58
+ routeParams: {
59
+ orgName?: string;
60
+ [key: string]: string;
61
+ };
62
+ }
63
+ export interface GlobalHeaderRightProps {
64
+ theme?: string;
65
+ layout?: any;
66
+ upperMenus: any;
67
+ routeParams: {
68
+ orgName?: string;
69
+ [key: string]: string;
70
+ };
71
+ formatMessage?: any;
72
+ collapsed?: boolean;
73
+ settings?: ProSettings;
74
+ toggleSideMenu?: any;
75
+ location?: any;
76
+ }
77
+ export interface ILogoProps {
78
+ logo: any;
79
+ settings: any;
80
+ scrolled: any;
81
+ location: any;
82
+ }
83
+ export type PrivateHeaderProps = {
84
+ scrolled?: boolean;
85
+ drawerRef?: any;
86
+ setSettingToggle?: any;
87
+ settingToggle?: any;
88
+ navTheme?: any;
89
+ location?: any;
90
+ layout?: any;
91
+ title?: any;
92
+ menuData?: IRoute[];
93
+ routeParams?: any;
94
+ settings?: any;
95
+ transition?: any;
96
+ onSettingChange?: (settings: MergerSettingsType<ProSettings>) => void;
97
+ pageTitleInfo?: any;
98
+ searchOptionsShown?: boolean;
99
+ setSearchOptionsShown?: (optionsShown: boolean) => void;
100
+ authorities: Record<string, PermissionType>;
101
+ picture?: string;
102
+ componentVisibility?: Record<string, boolean>;
103
+ containerRef?: React.RefObject<HTMLDivElement>;
104
+ };
105
+ export interface MainHeaderProps extends Partial<GlobalHeaderProps> {
106
+ rightContentRender?: WithFalse<(props: any) => React.ReactNode>;
107
+ showSettings?: boolean;
108
+ }
109
+ export type IRightMenuProps = {
110
+ match?: any;
111
+ menuData?: IRoute[];
112
+ scrolled?: boolean;
113
+ navTheme?: string;
114
+ getMenuSeparation?: (menuData: [] | any) => SeparateMenusTypes;
115
+ routeParams: {
116
+ orgName?: string;
117
+ };
118
+ settings?: Partial<ProSettings>;
119
+ authorities: Record<string, PermissionType>;
120
+ picture?: string;
121
+ };
122
+ export interface DividerProps extends React.HTMLAttributes<HTMLDivElement> {
123
+ /**
124
+ * Text to display in the middle of the divider
125
+ */
126
+ children?: React.ReactNode;
127
+ /**
128
+ * Direction of the divider
129
+ * @default "horizontal"
130
+ */
131
+ orientation?: 'horizontal' | 'vertical';
132
+ /**
133
+ * Whether the divider text is less emphasized
134
+ * @default false
135
+ */
136
+ plain?: boolean;
137
+ /**
138
+ * Custom className for the divider
139
+ */
140
+ className?: string;
141
+ /**
142
+ * Custom style for the divider
143
+ */
144
+ style?: React.CSSProperties;
145
+ /**
146
+ * Text alignment
147
+ * @default "center"
148
+ */
149
+ align?: 'left' | 'right' | 'center';
150
+ }
151
+ export interface DynamicTypeIconsProps {
152
+ icon: any;
153
+ iconColor?: string;
154
+ w?: any;
155
+ h?: any;
156
+ iconStyle?: any;
157
+ }
81
158
  //# sourceMappingURL=typings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../src/components/typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC5E,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;CAC3C;AAED,MAAM,WAAW,YAAY;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAC;IAC1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB;AAED,MAAM,WAAW,KAAM,SAAQ,YAAY;IACvC,MAA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AAG,GAAG,KAAK,kBAAkB,CAAC;IAC/D,WAAW,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;CACvC;AAED,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,GAAG,CAAC;IACV,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,GAAG,CAAC;IACR,CAAC,CAAC,EAAE,GAAG,CAAC;IACR,SAAS,CAAC,EAAE,GAAG,CAAC;CACnB"}
@@ -0,0 +1,8 @@
1
+ export declare const SCROLL_THRESHOLD: {
2
+ readonly MIN: 0;
3
+ readonly MAX: 1000;
4
+ readonly STEP: 10;
5
+ readonly DEFAULT: 50;
6
+ };
7
+ export declare const LAYOUT_SETTINGS: {};
8
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/config/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;CAKnB,CAAC;AAEX,eAAO,MAAM,eAAe,IAyBlB,CAAC"}
@@ -0,0 +1,32 @@
1
+ const SCROLL_THRESHOLD = {
2
+ MIN: 0,
3
+ MAX: 1000,
4
+ STEP: 10,
5
+ DEFAULT: 50
6
+ };
7
+ const LAYOUT_SETTINGS = {
8
+ // navTheme: 'light',
9
+ // routeSettings: {
10
+ // '/': {
11
+ // layout: {
12
+ // desktop: {
13
+ // navigationMode: 'topbar',
14
+ // contentWidth: 'fluid',
15
+ // },
16
+ // mobile: {
17
+ // contentWidth: 'fluid',
18
+ // },
19
+ // },
20
+ // regions: {
21
+ // desktop: {
22
+ // header: {
23
+ // showMenuToggle: false,
24
+ // showBackButton: false,
25
+ // showPageTitle: false,
26
+ // showActionButtons: false,
27
+ // },
28
+ // },
29
+ // },
30
+ // },
31
+ // },
32
+ };export{LAYOUT_SETTINGS,SCROLL_THRESHOLD};//# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sources":["../../src/config/constants.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAa,MAAA,gBAAgB,GAAG;AAC5B,EAAA,GAAA,EAAG;AACH,EAAA,GAAA,EAAG,IAAM;AACT,EAAA,IAAA,EAAI,EAAE;AACN,EAAA,OAAA,EAAO;;AAGE,MAAA,eAAe,GAAG;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,4 +1,7 @@
1
1
  export declare const config: Readonly<{
2
2
  LAYOUT_ROOT: string;
3
+ ENABLE_PROPERTY_PRICE_COMPARISON: boolean;
4
+ SCROLL_THRESHOLD: string;
5
+ LAYOUT_SETTINGS: string;
3
6
  } & import("envalid").CleanedEnvAccessors>;
4
7
  //# sourceMappingURL=env-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM;;0CAEjB,CAAC"}
1
+ {"version":3,"file":"env-config.d.ts","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;;;;;0CAKjB,CAAC"}