@admin-layout/tailwind-design-pro 10.0.9-alpha.8 → 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 +145 -45
  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 -29
  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 +171 -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
@@ -1,112 +1,112 @@
1
- export interface ThemeColors {
2
- light: {
3
- background: string;
4
- foreground: string;
5
- card: string;
6
- cardForeground: string;
7
- popover: string;
8
- popoverForeground: string;
9
- primary: string;
10
- primaryForeground: string;
11
- secondary: string;
12
- secondaryForeground: string;
13
- muted: string;
14
- mutedForeground: string;
15
- accent: string;
16
- accentForeground: string;
17
- destructive: string;
18
- destructiveForeground: string;
19
- border: string;
20
- input: string;
21
- ring: string;
22
- };
23
- dark: {
24
- background: string;
25
- foreground: string;
26
- card: string;
27
- cardForeground: string;
28
- popover: string;
29
- popoverForeground: string;
30
- primary: string;
31
- primaryForeground: string;
32
- secondary: string;
33
- secondaryForeground: string;
34
- muted: string;
35
- mutedForeground: string;
36
- accent: string;
37
- accentForeground: string;
38
- destructive: string;
39
- destructiveForeground: string;
40
- border: string;
41
- input: string;
42
- ring: string;
43
- };
44
- }
45
- export interface ThemeFontSizes {
46
- xs: string;
47
- sm: string;
48
- base: string;
49
- lg: string;
50
- xl: string;
51
- '2xl': string;
52
- '3xl': string;
53
- '4xl': string;
54
- '5xl': string;
55
- }
56
- export interface ThemeSpacing {
57
- px: string;
58
- 0: string;
59
- 0.5: string;
60
- 1: string;
61
- 1.5: string;
62
- 2: string;
63
- 2.5: string;
64
- 3: string;
65
- 3.5: string;
66
- 4: string;
67
- 5: string;
68
- 6: string;
69
- 8: string;
70
- 10: string;
71
- 12: string;
72
- 16: string;
73
- 20: string;
74
- 24: string;
75
- 32: string;
76
- 40: string;
77
- 48: string;
78
- 56: string;
79
- 64: string;
80
- }
81
- export interface ThemeBorderRadius {
82
- none: string;
83
- sm: string;
84
- DEFAULT: string;
85
- md: string;
86
- lg: string;
87
- xl: string;
88
- '2xl': string;
89
- '3xl': string;
90
- full: string;
1
+ export interface ThemeContextProps {
2
+ themeName: ThemeName;
3
+ theme: DefaultTheme;
4
+ isDarkMode: boolean;
5
+ toggleDarkMode: () => void;
91
6
  }
92
- export interface Theme {
7
+ export interface DefaultTheme {
93
8
  name: string;
94
- colors: ThemeColors;
95
- fontSizes: ThemeFontSizes;
96
- spacing: ThemeSpacing;
97
- borderRadius: ThemeBorderRadius;
9
+ colors: {
10
+ primary: ColorRamp;
11
+ secondary: ColorRamp;
12
+ accent: ColorRamp;
13
+ success: ColorRamp;
14
+ warning: ColorRamp;
15
+ error: ColorRamp;
16
+ neutral: ColorRamp;
17
+ background: {
18
+ light: string;
19
+ dark: string;
20
+ };
21
+ text: {
22
+ light: {
23
+ primary: string;
24
+ secondary: string;
25
+ tertiary: string;
26
+ };
27
+ dark: {
28
+ primary: string;
29
+ secondary: string;
30
+ tertiary: string;
31
+ };
32
+ };
33
+ };
34
+ borderRadius: {
35
+ sm: string;
36
+ DEFAULT: string;
37
+ md: string;
38
+ lg: string;
39
+ xl: string;
40
+ '2xl': string;
41
+ full: string;
42
+ };
43
+ fontFamily: {
44
+ sans: string[];
45
+ serif: string[];
46
+ mono: string[];
47
+ };
48
+ boxShadow: {
49
+ sm: string;
50
+ DEFAULT: string;
51
+ md: string;
52
+ lg: string;
53
+ xl: string;
54
+ };
55
+ typography: {
56
+ headings: {
57
+ fontWeight: string;
58
+ lineHeight: string;
59
+ letterSpacing: string;
60
+ };
61
+ body: {
62
+ fontWeight: string;
63
+ lineHeight: string;
64
+ letterSpacing: string;
65
+ };
66
+ };
67
+ components: {
68
+ buttons: {
69
+ primary: ButtonStyle;
70
+ secondary: ButtonStyle;
71
+ };
72
+ cards: {
73
+ borderRadius: string;
74
+ padding: string;
75
+ shadow: string;
76
+ border: string;
77
+ };
78
+ inputs: {
79
+ borderRadius: string;
80
+ borderColor: string;
81
+ focusBorderColor: string;
82
+ padding: string;
83
+ fontSize: string;
84
+ lineHeight: string;
85
+ };
86
+ };
98
87
  }
99
- export interface ThemeOptions {
100
- isDarkMode: boolean;
101
- primaryColor?: string;
102
- fontFamily?: string;
88
+ export interface ColorRamp {
89
+ 50: string;
90
+ 100: string;
91
+ 200: string;
92
+ 300: string;
93
+ 400: string;
94
+ 500: string;
95
+ 600: string;
96
+ 700: string;
97
+ 800: string;
98
+ 900: string;
99
+ 950: string;
103
100
  }
104
- export interface ThemeSelectorProps {
105
- value: string;
106
- onChange: (value: string) => void;
107
- options: {
108
- key: string;
109
- title: string;
110
- }[];
101
+ export interface ButtonStyle {
102
+ background: string;
103
+ text: string;
104
+ hoverBackground: string;
105
+ hoverText: string;
106
+ borderRadius: string;
107
+ padding: string;
108
+ fontWeight: string;
109
+ border?: string;
111
110
  }
111
+ export type ThemeName = 'default' | 'airbnb' | 'slack' | 'github' | 'spotify';
112
112
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeProvider/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,WAA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CAAC;YAChB,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;SAClB,CAAC;QACF,MAAM,EAAE;YACJ,YAAY,EAAE,MAAM,CAAC;YACrB,WAAW,EAAE,MAAM,CAAC;YACpB,gBAAgB,EAAE,MAAM,CAAC;YACzB,OAAO,EAAE,MAAM,CAAC;YAChB,QAAQ,EAAE,MAAM,CAAC;YACjB,UAAU,EAAE,MAAM,CAAC;SACtB,CAAC;KACL,CAAC;CACL;AAED,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { Splide } from '@cdmbase/react-splide';
2
+ import '@splidejs/react-splide/css';
3
+ import React from 'react';
4
+ export interface ICategoryType<TTypename, TCategory, TName> {
5
+ __typename?: TTypename;
6
+ id: string;
7
+ description: string | null;
8
+ category: TCategory;
9
+ name: TName;
10
+ icon?: string | null;
11
+ imageKey?: string | null;
12
+ thumbnailUrl?: string | null;
13
+ }
14
+ export interface ICategoriesTypeListProps<TTypename, TCategory, TName> {
15
+ isExplorerView?: boolean;
16
+ categories: ICategoryType<TTypename, TCategory, TName>[];
17
+ initialCategory: ICategoryType<TTypename, TCategory, TName>;
18
+ boxColor: (categoryId: string) => string;
19
+ iconColor: (categoryId: string) => string;
20
+ badgeTitle?: string;
21
+ extraIcons: string[];
22
+ aria_label: string;
23
+ splideRef?: React.RefObject<Splide>;
24
+ isNewBadge: (categoryId: string) => boolean;
25
+ handleSearchClick: (cateItem: string, item: any, isExplorerView?: boolean) => void;
26
+ activeCategory?: string;
27
+ }
28
+ export declare const CategoriesTypeList: <TTypename, TCategory, TName>({ boxColor, iconColor, badgeTitle, extraIcons, categories, initialCategory, aria_label, isExplorerView, splideRef, isNewBadge, handleSearchClick, activeCategory, }: ICategoriesTypeListProps<TTypename, TCategory, TName>) => import("react/jsx-runtime").JSX.Element;
29
+ //# sourceMappingURL=CategoriesTypeList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoriesTypeList.d.ts","sourceRoot":"","sources":["../../../src/components/UI/CategoriesTypeList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA2C,MAAM,uBAAuB,CAAC;AACxF,OAAO,4BAA4B,CAAC;AACpC,OAAO,KAAoD,MAAM,OAAO,CAAC;AAKzE,MAAM,WAAW,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK;IACtD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,wBAAwB,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK;IACjE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IACzD,eAAe,EAAE,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IAC5D,QAAQ,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,SAAS,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACpC,UAAU,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;IAC5C,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACnF,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAyGD,eAAO,MAAM,kBAAkB,GAAI,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,qKAa7D,wBAAwB,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,4CA6DvD,CAAC"}
@@ -0,0 +1,140 @@
1
+ import {jsxs,jsx}from'react/jsx-runtime';import {Splide,SplideSlide}from'@cdmbase/react-splide';import'@splidejs/react-splide/css';import React__default,{useCallback,useMemo,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import {renderDynamicIcon}from'../../helpers/DynamicIcon.js';import useWindowSize from'../../hooks/useWindowSize.js';// Helper function to merge arrays
2
+ const mergeArrays = (arr1, arr2, keyToMapIcons) => {
3
+ const iconMap = new Map(arr2.map(icon => [icon.split('.').pop(), icon]));
4
+ return arr1.filter(item => iconMap.has(item[keyToMapIcons])).map(item => ({
5
+ ...item,
6
+ icon: iconMap.get(item[keyToMapIcons])
7
+ }));
8
+ };
9
+ // Create a memoized category item component
10
+ function CategoryItemComponent({
11
+ category,
12
+ boxColor,
13
+ size,
14
+ t,
15
+ isNewBadge,
16
+ badgeTitle,
17
+ handleSearchClick,
18
+ isExplorerView,
19
+ isActive
20
+ }) {
21
+ // Prevent multiple click propagation
22
+ const handleClick = useCallback(e => {
23
+ e.preventDefault();
24
+ e.stopPropagation();
25
+ handleSearchClick(category.id, category, isExplorerView);
26
+ }, [category, handleSearchClick, isExplorerView]);
27
+ // Compute the current color values
28
+ const currentBoxColor = isActive ? boxColor(category.id) : '#4A5568';
29
+ // Determine font size based on screen width
30
+ const fontSize = useMemo(() => {
31
+ if (size.width > 1200) return '16px';
32
+ if (size.width > 768) return '15px';
33
+ if (size.width > 480) return '14px';
34
+ return '12px';
35
+ }, [size.width]);
36
+ // Determine icon size based on screen width
37
+ const iconSize = useMemo(() => ({
38
+ w: size.width > 1200 ? '2vw' : '3vw',
39
+ h: size.height > 1200 ? '2vw' : '3vw'
40
+ }), [size.width, size.height]);
41
+ return jsxs("div", {
42
+ className: `flex flex-col items-center justify-center cursor-pointer relative font-bold ${isActive ? 'active' : ''}`,
43
+ style: {
44
+ color: currentBoxColor,
45
+ fontSize
46
+ },
47
+ onClick: handleClick,
48
+ children: [renderDynamicIcon({
49
+ name: category.icon,
50
+ style: {
51
+ iconColor: currentBoxColor,
52
+ ...iconSize
53
+ }
54
+ }), jsx("div", {
55
+ className: "text-center",
56
+ children: t(category.description)
57
+ }), isNewBadge(category.id) && jsx("div", {
58
+ className: "absolute top-0 right-0 bg-blue-500 text-white rounded-md text-xs p-1",
59
+ children: badgeTitle
60
+ })]
61
+ });
62
+ }
63
+ // Use React.memo with a custom comparison function
64
+ const CategoryItem = React__default.memo(CategoryItemComponent, (prevProps, nextProps) => {
65
+ if (prevProps.category.id !== nextProps.category.id) return false;
66
+ if (prevProps.isActive !== nextProps.isActive) return false;
67
+ if (prevProps.boxColor(prevProps.category.id) !== nextProps.boxColor(nextProps.category.id)) return false;
68
+ return true;
69
+ });
70
+ const CategoriesTypeList = ({
71
+ boxColor,
72
+ iconColor,
73
+ badgeTitle,
74
+ extraIcons,
75
+ categories,
76
+ initialCategory,
77
+ aria_label,
78
+ isExplorerView,
79
+ splideRef,
80
+ isNewBadge,
81
+ handleSearchClick,
82
+ activeCategory
83
+ }) => {
84
+ const size = useWindowSize();
85
+ const {
86
+ t
87
+ } = useTranslation(['property-types', 'common']);
88
+ // Track the currently active category ID internally
89
+ const [activeCategoryId, setActiveCategoryId] = useState(() => activeCategory || initialCategory.id);
90
+ // Update internal state when activeCategory prop changes
91
+ useEffect(() => {
92
+ setActiveCategoryId(activeCategory || initialCategory.id);
93
+ }, [activeCategory, initialCategory.id]);
94
+ // Memoize the merged array
95
+ const mappedArr = useMemo(() => mergeArrays([initialCategory, ...categories], extraIcons, 'icon'), [initialCategory, categories, extraIcons]);
96
+ // Splide options
97
+ const splideOptions = useMemo(() => ({
98
+ type: 'slide',
99
+ drag: 'free',
100
+ perPage: 9,
101
+ perMove: 1,
102
+ wheel: true,
103
+ releaseWheel: true,
104
+ pagination: false,
105
+ speed: 500,
106
+ wheelSleep: 300,
107
+ breakpoints: {
108
+ 1024: {
109
+ perPage: 9
110
+ },
111
+ 600: {
112
+ perPage: 5
113
+ },
114
+ 480: {
115
+ perPage: 3
116
+ }
117
+ }
118
+ }), []);
119
+ return jsx("div", {
120
+ className: "w-full relative",
121
+ children: jsx(Splide, {
122
+ ref: splideRef,
123
+ "aria-label": aria_label,
124
+ options: splideOptions,
125
+ children: mappedArr.map(d => jsx(SplideSlide, {
126
+ children: jsx(CategoryItem, {
127
+ category: d,
128
+ boxColor: boxColor,
129
+ size: size,
130
+ t: t,
131
+ isNewBadge: isNewBadge,
132
+ badgeTitle: badgeTitle,
133
+ handleSearchClick: handleSearchClick,
134
+ isExplorerView: isExplorerView,
135
+ isActive: d.id === activeCategoryId
136
+ }, `category_${d.id}`)
137
+ }, `button_${d.id}`))
138
+ })
139
+ });
140
+ };export{CategoriesTypeList};//# sourceMappingURL=CategoriesTypeList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CategoriesTypeList.js","sources":["../../../src/components/UI/CategoriesTypeList.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","React"],"mappings":"6WAiCA;AACA,MAAM,WAAW,GAAG,CAChB,IAAkD,EAClD,IAAc,EACd,aAA+D,KACjB;AAC9C,EAAA,MAAA,OAAa,GAAA,IAAO,GAAA,CAAA,IAAI,CAAA,GAAK,CAAA,IAAS,IAAA,CAAE,IAAI,CAAA,KAAK,CAAA,GAAK,CAAC,CAAA,GAAI,EAAI,EAAA,IAAI,CAAA,CAAA,CAAA;AAEnE,EAAA,OAAA,IAAW,CAAA,MAAA,CAAA,IAAA,IAAA,OAAA,CAAA,GAAA,CAAA,IAAA,CAAA,aAAA,CAAA,CAAA,CAAA,CAAA,GAAA,CAAA,IAAA,KAAA;AACN,IAAA,GAAA,IAAA;AACA,IAAA,IAAA,EAAA,OAAK,CAAI,GAAE,CAAE,IAAE,CAAA,aAAA,CAAA;AACZ,GAAA,CAAA,CAAA;;AAEH;AACT,SAAE,qBAAA,CAAA;AAeF,EAA4C,QAAA;AAC5C,EAAS,QAAA;MAWgC;AACrC,EAAA,CAAA;YAEwB;YACC;mBACA;gBAEZ;;AAIb,CAAA,EAAA;;AAGA,EAAA,MAAA,WAAc,GAAU,WAAM,CAAA,CAAA,IAAA;AAC1B,IAAA,CAAA,CAAA,cAAc,EAAA;AAAS,IAAA,CAAA,CAAA;AACvB,IAAA,iBAAc,CAAA,QAAM,CAAA,EAAA,EAAA,QAAA,EAAA,cAAA,CAAA;AAAE,GAAA,EAAA,CAAA,QAAA,EAAA,iBAAc,EAAA,cAAA,CAAA,CAAA;AACpC;AAAsB,EAAA,MAAA,kBAAc,Q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A,SAAuB,EAAA;MAEkC,QAAA,EAAA;KAChD,CAAA;AACL,GAAA,CAAA;;;AAIJ,MAAA,YAAe,GAAAC,cAAU,CAAA,IAClB,CAAA,qBAA+B,EAAA,CAAA,SAAA,EAAK,SAAA,KAAW;MAIrC,SAAA,CAAA,QAAA,CAAA,EAAA,KAAA,SAAA,CAAA,QAAA,CAAA,EAAA,EAAA,OAAA,KAAA;AACjB,EAAA,IAAA,kBAAsB,KAAA,SACf,CAAE,QAAE,EAAA,OAAA,KAAA;AACH,EAAA,IAAA,SAAa,CAAA,QAAA,CAAA,SAAA,CAAA,QAAA,CAAA,EAAA,CAAA,KAAA,SAAA,CAAA,QAAA,CAAA,SAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,OAAA,KAAA;AACb,EAAA,OAAA;AACA,CAAA,CAAA;AACA,MAAA,kBAAU,GAAA,CAAA;AACV,EAAA,QAAA;AACA,EAAA,SAAA;AACA,EAAA,UAAA;AACA,EAAA,UAAA;AACA,EAAA,UAAA;AACA,EAAA,eAAA;AACI,EAAA,UAAA;AACA,EAAA,cAAK;AACL,EAAA,SAAA;AACH,EAAA,UAAA;mBAGP;;AAwBN,CAAC,KAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,83 @@
1
+ import { ReactElement } from 'react';
2
+ export 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
+ export 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 ILazyLoadingGoogleMarkerProps {
73
+ property: IProperty | IAirbnbProperty;
74
+ isHighlighted: boolean;
75
+ showPrices: boolean;
76
+ isActiveMarker: boolean;
77
+ propertyTypes: any;
78
+ onMarkerClick: () => void;
79
+ onInfoBoxClose: () => void;
80
+ }
81
+ export declare const LazyLoadingGoogleMarker: (props: ILazyLoadingGoogleMarkerProps) => ReactElement;
82
+ export {};
83
+ //# sourceMappingURL=LazyLoadingGoogleMarker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LazyLoadingGoogleMarker.d.ts","sourceRoot":"","sources":["../../../src/components/UI/LazyLoadingGoogleMarker.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAC;AAOjE,MAAM,WAAW,SAAS;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC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AAM,IAAI,CAAC;CAC9B;AAqFD,eAAO,MAAM,uBAAuB,GAAI,OAAO,6BAA6B,KAAG,YAmC9E,CAAC"}
@@ -0,0 +1,107 @@
1
+ import {jsx,jsxs}from'react/jsx-runtime';import React__default,{useState,useEffect}from'react';import {PropertyCardOnMap}from'./PropertyCardOnMap.js';import ReactDOMServer from'react-dom/server';import*as path from'@pubngo-stack/icons/lib/rifi-maps/index.js';import*as airbnbPath from'@pubngo-stack/icons/lib/airbnb/airbnbIcons-maps/index.js';import {AdvancedMarker}from'@vis.gl/react-google-maps';const getSvgMapIcon = (types, propertyTypes) => {
2
+ if (!types || types.length === 0) {
3
+ return 'data:image/svg+xml;charset=UTF-8,';
4
+ }
5
+ const icon = propertyTypes.find(item => item.id === types[0])?.icon || '';
6
+ return types.length > 1 ? `${icon}MultiType` : icon;
7
+ };
8
+ const pricesMarker = (price, isHighlighted) => {
9
+ const backgroundColor = isHighlighted ? 'rgb(0, 0, 0)' : 'rgb(255,255,255)';
10
+ const textColor = isHighlighted ? 'rgb(255, 255, 255)' : 'rgb(0, 0, 0)';
11
+ const borderRadius = isHighlighted ? '20' : '15';
12
+ const svgString = `<svg width="84" height="55" viewBox="0 0 84 55" fill="none" xmlns="http://www.w3.org/2000/svg">
13
+ <g filter="url(#filter0_dd_7163_1572)">
14
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M25 1C13.9543 1 5 9.95431 5 21C5 32.0457 13.9543 41 25 41H39.2222L42 46L44.7778 41H59C70.0457 41 79 32.0457 79 21C79 9.95431 70.0457 1 59 1H25Z" fill="${backgroundColor}"/>
15
+ </g>
16
+
17
+
18
+ <text x="42" y="26" font-family="Arial" font-size="14" text-anchor="middle" font-weight="bold" fill="${textColor}">${price || ''}</text>
19
+ <defs>
20
+ <filter id="filter0_dd_7163_1572" x="0" y="0" width="84" height="55" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
21
+ <feFlood flood-opacity="0" result="BackgroundImageFix"/>
22
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
23
+ <feMorphology radius="${borderRadius}" operator="erode" in="SourceAlpha" result="effect1_dropShadow_7163_1572"/>
24
+ <feOffset dy="2"/>
25
+ <feGaussianBlur stdDeviation="2"/>
26
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>
27
+ <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_7163_1572"/>
28
+ <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
29
+ <feMorphology radius="1" operator="erode" in="SourceAlpha" result="effect2_dropShadow_7163_1572"/>
30
+ <feOffset dy="4"/>
31
+ <feGaussianBlur stdDeviation="3"/>
32
+ <feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"/>
33
+ <feBlend mode="normal" in2="effect1_dropShadow_7163_1572" result="effect2_dropShadow_7163_1572"/>
34
+ <feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_7163_1572" result="shape"/>
35
+ </filter>
36
+ </defs>
37
+ </svg>`;
38
+ return 'data:image/svg+xml;charset=UTF-8,' + encodeURIComponent(svgString);
39
+ };
40
+ const svgToMarkerIcon = async (types, isHighlighted, propertyTypes) => {
41
+ const resultantIcon = getSvgMapIcon(types, propertyTypes);
42
+ let iconPath = resultantIcon.toLowerCase().startsWith('airbnb') ? isHighlighted ? airbnbPath[`${resultantIcon}Dark`] : airbnbPath[`${resultantIcon}Light`] : isHighlighted ? path[`${resultantIcon}Dark`] : path[`${resultantIcon}Light`];
43
+ // New logic to handle the case when iconPath is not found
44
+ if (!iconPath) {
45
+ iconPath = isHighlighted ? airbnbPath['AirbnbApartmentDark'] : airbnbPath['AirbnbApartmentLight'];
46
+ }
47
+ if (typeof iconPath !== 'function') return 'data:image/svg+xml;charset=UTF-8,' + encodeURIComponent(iconPath);
48
+ const svg = ReactDOMServer.renderToString(iconPath({
49
+ width: '50px',
50
+ height: '50px'
51
+ }));
52
+ return 'data:image/svg+xml;charset=UTF-8,' + encodeURIComponent(svg);
53
+ };
54
+ const getMapMarkerIcons = async (room, showPrices, isHighlighted, propertyTypes) => {
55
+ return showPrices ? pricesMarker(room?.preferences?.property?.pricing?.price?.price_breakdown?.details?.summary?.totalBeforeDiscount, isHighlighted) : await svgToMarkerIcon(room.types, isHighlighted, propertyTypes);
56
+ };
57
+ const MarkerImage = React__default.memo(({
58
+ src,
59
+ showPrices
60
+ }) => jsx("img", {
61
+ src: src,
62
+ alt: "Property Marker",
63
+ className: showPrices ? 'w-[84px] h-[40px]' : 'w-[90px] h-[60px]'
64
+ }));
65
+ const LazyLoadingGoogleMarker = props => {
66
+ const {
67
+ property,
68
+ isHighlighted,
69
+ showPrices,
70
+ isActiveMarker,
71
+ onInfoBoxClose,
72
+ onMarkerClick,
73
+ propertyTypes
74
+ } = props;
75
+ const [mapIcon, setMapIcon] = useState('');
76
+ useEffect(() => {
77
+ (async () => {
78
+ const icon = await getMapMarkerIcons(property, showPrices, isHighlighted, propertyTypes);
79
+ setMapIcon(icon);
80
+ })();
81
+ }, [isHighlighted, showPrices]);
82
+ if (!property) {
83
+ return;
84
+ }
85
+ return jsx(AdvancedMarker, {
86
+ position: {
87
+ lat: property.address.latitude_around,
88
+ lng: property.address.longitude_around
89
+ },
90
+ title: property.name,
91
+ onClick: onMarkerClick,
92
+ zIndex: isHighlighted ? 999 : 1,
93
+ children: jsxs("div", {
94
+ className: "relative cursor-pointer transform -translate-x-1/2 -translate-y-1/2",
95
+ children: [mapIcon && jsx(MarkerImage, {
96
+ src: mapIcon,
97
+ showPrices: showPrices
98
+ }), isActiveMarker && jsx("div", {
99
+ className: "absolute bottom-0 left-1/2 transform -translate-x-1/2 bg-white p-2.5 rounded-2xl z-[1000] w-[300px] shadow-[0_12px_24px_0_rgba(0,0,0,0.1),_0_2px_8px_0_rgba(0,0,0,0.05)]",
100
+ children: jsx(PropertyCardOnMap, {
101
+ room: property,
102
+ isSaved: false
103
+ })
104
+ })]
105
+ })
106
+ });
107
+ };export{LazyLoadingGoogleMarker};//# sourceMappingURL=LazyLoadingGoogleMarker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LazyLoadingGoogleMarker.js","sources":["../../../src/components/UI/LazyLoadingGoogleMarker.tsx"],"sourcesContent":[null],"names":["React","_jsx"],"mappings":"8YAwFA,MAAM,aAAa,GAAG,CAAC,KAAe,EAAE,aAAkB,KAAI;MACtD,CAAA,SAAU,KAAA,CAAA,MAAY,KAAA,CAAA,EAAM;AAC5B,IAAA,OAAA;;QAEE,IAAA,GAAO,aAAA,CAAA,IAAc,CAAA,IAAM,IAAM,IAAG,CAAA,EAAA,KAAO,KAAU,CAAA,CAAA,CAAA,CAAA,EAAE,IAAI,IAAI,EAAI;AACzE,EAAA,OAAA,KAAY,CAAA,MAAO,GAAA,CAAA,GAAK,CAAC,EAAC,cAAkB,CAAA,GAAC;AACjD,CAAC;AAED,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,aAAsB,KAAI;QACrD,eAAA,GAAkB,aAAA,GAAc,cAAE,GAAe,kBAAE;QACnD,SAAA,GAAY,aAAA,GAAc,oBAAE,GAAqB,cAAE;QACnD,YAAA,GAAe,aAAA,GAAc,IAAE,GAAK,IAAE;AAG5C,EAAA,MAAA,YAAkB,CAAA;;sNAEgM,eAAe,CAAA;;;;+GAItH,SAAS,CAAA,EAAA,EAChH,KAAK,IAAI,EACb,CAAA;;;;;wCAKoC,YAAY,CAAA;;;;;;;;;;;;;;WAczC;AAEP,EAAA,OAAA,sCAA6C,kBAAA,CAAA,SAAmB,CAAA;AACpE,CAAC;AAED,MAAM,eAAe,GAAG,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,KAAI;QAC5D,aAAA,gBAA6B,CAAA,OAAM,aAAE,CAAA;M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GAAA;AAGjC,CAAA,CAAA,CAAA;AACN,MAAA,uBAAA,GAAA,KAAA,IAAA;AAEF,EAAA;AAIA,IAAA,QAAa;AACT,IAAA,aAAgB;IAChB,UAAc;IAEd,cAAe;kBACD;AACN,IAAA,aAAA;;;AAGR,EAAA,MAAI,CAAA,OAAA,EAAA,UAAyB,CAAA,GAAA,QAAG,CAAA,EAAA,CAAA;WAEnB,CAAA,MAAA;iBACF;MACV,MAAA,IAAA,GAAA,MAAA,iBAAA,CAAA,QAAA,EAAA,UAAA,EAAA,aAAA,EAAA,aAAA,CAAA;AAED,MAAA,UACI,CAAC,IAAc,CAAA;AAEP,KAAA,GAAA;AACA,GAAA,EAAA,CAAA,aAAK,EAAA,UAAS,CAAA,CAAO;AACxB,EAAA,IAAA,CAAA,QACI,EAAA;AAcjB,IAAE;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,6 @@
1
+ export declare const Pagination: ({ currentPage, totalPages, onPageChange }: {
2
+ currentPage: any;
3
+ totalPages: any;
4
+ onPageChange: any;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=Pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/UI/Pagination.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,GAAI;;;;CAAyC,4CA8DnE,CAAC"}