@admin-layout/tailwind-design-pro 10.1.1-alpha.9 → 11.2.1-alpha.1

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 (443) hide show
  1. package/README.md +376 -250
  2. package/lib/cdm-locales/en/menu.json +2 -1
  3. package/lib/cdm-locales/en/settings.json +6 -1
  4. package/lib/cdm-locales/es/menu.json +2 -1
  5. package/lib/cdm-locales/es/settings.json +6 -1
  6. package/lib/cdm-locales/index.d.ts +2 -0
  7. package/lib/cdm-locales/index.d.ts.map +1 -0
  8. package/lib/cdm-locales/index.ts +1 -0
  9. package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -1
  10. package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
  11. package/lib/components/LanguageMenu/LanguageMenu.js +40 -61
  12. package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
  13. package/lib/components/Layout/BasicLayout/index.d.ts +6 -5
  14. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  15. package/lib/components/Layout/BasicLayout/index.js +255 -175
  16. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  17. package/lib/components/Layout/BasicLayout/utils.d.ts +4 -2
  18. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
  19. package/lib/components/Layout/BasicLayout/utils.js +80 -109
  20. package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
  21. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  22. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +28 -38
  23. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  24. package/lib/components/Layout/GlobalFooter/Copyright.d.ts +2 -1
  25. package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
  26. package/lib/components/Layout/GlobalFooter/Footer.d.ts +2 -1
  27. package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
  28. package/lib/components/Layout/GlobalHeader/Header.d.ts +0 -1
  29. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  30. package/lib/components/Layout/GlobalHeader/Header.js +82 -66
  31. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  32. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
  33. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
  34. package/lib/components/Layout/GlobalHeader/MainHeader.js +119 -162
  35. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
  36. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
  37. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +26 -30
  38. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  39. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -0
  40. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  41. package/lib/components/Layout/GlobalHeader/RightContent.js +82 -19
  42. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
  43. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
  44. package/lib/components/Layout/GlobalHeader/RightMenu.js +116 -158
  45. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
  46. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -1
  47. package/lib/components/Layout/GlobalHeader/SearchBar.js +36 -45
  48. package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
  49. package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
  50. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
  51. package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
  52. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  53. package/lib/components/Layout/ProTailwindLayout.js +70 -9
  54. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  55. package/lib/components/Layout/Sidebar/BottomMenu.d.ts +4 -0
  56. package/lib/components/Layout/Sidebar/BottomMenu.d.ts.map +1 -0
  57. package/lib/components/Layout/Sidebar/BottomMenu.js +294 -0
  58. package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
  59. package/lib/components/Layout/Sidebar/Divider.d.ts +2 -1
  60. package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
  61. package/lib/components/Layout/Sidebar/Divider.js +26 -28
  62. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  63. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +1 -1
  64. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -1
  65. package/lib/components/Layout/Sidebar/DynamicIcon.js +10 -11
  66. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
  67. package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
  68. package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
  69. package/lib/components/Layout/Sidebar/MainSidebar.js +224 -0
  70. package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
  71. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +6 -0
  72. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
  73. package/lib/components/Layout/Sidebar/MainSidebarMenu.js +451 -0
  74. package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
  75. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +4 -0
  76. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
  77. package/lib/components/Layout/Sidebar/PerplexSidebar.js +254 -0
  78. package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
  79. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
  80. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
  81. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +318 -0
  82. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
  83. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  84. package/lib/components/Layout/TailwindLayout.js +37 -20
  85. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  86. package/lib/components/Layout/getPageTitle.js.map +1 -1
  87. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +3 -2
  88. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
  89. package/lib/components/Layout/slot-fill/AdditionalSettings.js +2 -2
  90. package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
  91. package/lib/components/Layout/slot-fill/Footer.d.ts +3 -2
  92. package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
  93. package/lib/components/Layout/slot-fill/Footer.js +2 -2
  94. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  95. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +3 -2
  96. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
  97. package/lib/components/Layout/slot-fill/HeaderNotice.js +7 -0
  98. package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -0
  99. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +2 -1
  100. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -1
  101. package/lib/components/Layout/slot-fill/HeaderSearchBar.js +2 -2
  102. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
  103. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +2 -1
  104. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -1
  105. package/lib/components/Layout/slot-fill/HeaderSearchButton.js +2 -2
  106. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
  107. package/lib/components/Layout/slot-fill/Logo.d.ts +5 -0
  108. package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
  109. package/lib/components/Layout/slot-fill/Logo.js +7 -0
  110. package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
  111. package/lib/components/Layout/slot-fill/RightContent.d.ts +2 -1
  112. package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -1
  113. package/lib/components/Layout/slot-fill/RightContent.js +2 -2
  114. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
  115. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +5 -0
  116. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
  117. package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
  118. package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
  119. package/lib/components/Layout/slot-fill/index.d.ts +2 -0
  120. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  121. package/lib/components/Layout/util.js +1 -1
  122. package/lib/components/Layout/util.js.map +1 -1
  123. package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -2
  124. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  125. package/lib/components/SettingDrawer/SettingDrawer.js +190 -499
  126. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  127. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +8 -0
  128. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
  129. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +21 -0
  130. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
  131. package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +4 -0
  132. package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
  133. package/lib/components/SettingDrawer/components/CheckBoxTheme.js +119 -0
  134. package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
  135. package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +8 -0
  136. package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
  137. package/lib/components/SettingDrawer/components/DeviceTabs.js +74 -0
  138. package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
  139. package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +4 -0
  140. package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
  141. package/lib/components/SettingDrawer/components/InvitationSettings.js +72 -0
  142. package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
  143. package/lib/components/SettingDrawer/components/LayoutChange.d.ts +4 -0
  144. package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
  145. package/lib/components/SettingDrawer/components/LayoutChange.js +111 -0
  146. package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
  147. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +21 -0
  148. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
  149. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +106 -0
  150. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
  151. package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +4 -0
  152. package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
  153. package/lib/components/SettingDrawer/components/NavigationsModes.js +322 -0
  154. package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
  155. package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +4 -0
  156. package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
  157. package/lib/components/SettingDrawer/components/RegionalSettings.js +519 -0
  158. package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
  159. package/lib/components/SettingDrawer/components/SettingsActions.d.ts +13 -0
  160. package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
  161. package/lib/components/SettingDrawer/components/SettingsActions.js +42 -0
  162. package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
  163. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +5 -0
  164. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
  165. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +22 -0
  166. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
  167. package/lib/components/SettingDrawer/components/Switch.d.ts +4 -0
  168. package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
  169. package/lib/components/SettingDrawer/components/Switch.js +20 -0
  170. package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
  171. package/lib/components/SettingDrawer/components/ThemeColor.d.ts +4 -0
  172. package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
  173. package/lib/components/SettingDrawer/components/ThemeColor.js +45 -0
  174. package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
  175. package/lib/components/SettingDrawer/components/ThemeSelector.d.ts +4 -0
  176. package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
  177. package/lib/components/SettingDrawer/components/ThemeSelector.js +16 -0
  178. package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
  179. package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +4 -0
  180. package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -0
  181. package/lib/components/SettingDrawer/components/WebFontsSelector.js +22 -0
  182. package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -0
  183. package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts +18 -0
  184. package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -0
  185. package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +115 -0
  186. package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -0
  187. package/lib/components/SettingDrawer/utils/constants.d.ts +11 -0
  188. package/lib/components/SettingDrawer/utils/constants.d.ts.map +1 -0
  189. package/lib/components/SettingDrawer/utils/constants.js +77 -0
  190. package/lib/components/SettingDrawer/utils/constants.js.map +1 -0
  191. package/lib/components/SettingDrawer/utils/helper.d.ts +37 -0
  192. package/lib/components/SettingDrawer/utils/helper.d.ts.map +1 -0
  193. package/lib/components/SettingDrawer/utils/helper.js +154 -0
  194. package/lib/components/SettingDrawer/utils/helper.js.map +1 -0
  195. package/lib/components/SettingDrawer/utils/transformers.d.ts +15 -0
  196. package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -0
  197. package/lib/components/SettingDrawer/utils/transformers.js +73 -0
  198. package/lib/components/SettingDrawer/utils/transformers.js.map +1 -0
  199. package/lib/components/SettingDrawer/{types.d.ts → utils/types.d.ts} +14 -0
  200. package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
  201. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +13 -4
  202. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  203. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
  204. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
  205. package/lib/components/index.d.ts +0 -2
  206. package/lib/components/index.d.ts.map +1 -1
  207. package/lib/components/index.js +1 -1
  208. package/lib/components/typings.d.ts +20 -6
  209. package/lib/components/typings.d.ts.map +1 -1
  210. package/lib/compute.d.ts.map +1 -1
  211. package/lib/compute.js +10 -2
  212. package/lib/compute.js.map +1 -1
  213. package/lib/config/analytics-config.d.ts +59 -0
  214. package/lib/config/analytics-config.d.ts.map +1 -0
  215. package/lib/config/constants.js.map +1 -1
  216. package/lib/config/env-config.d.ts +6 -0
  217. package/lib/config/env-config.d.ts.map +1 -1
  218. package/lib/config/env-config.js +21 -1
  219. package/lib/config/env-config.js.map +1 -1
  220. package/lib/config/index.d.ts +3 -0
  221. package/lib/config/index.d.ts.map +1 -0
  222. package/lib/helpers/DynamicIcon.d.ts +1 -1
  223. package/lib/helpers/DynamicIcon.d.ts.map +1 -1
  224. package/lib/helpers/DynamicIcon.js +16 -17
  225. package/lib/helpers/DynamicIcon.js.map +1 -1
  226. package/lib/hooks/index.d.ts +0 -3
  227. package/lib/hooks/index.d.ts.map +1 -1
  228. package/lib/hooks/useMediaQuery.js.map +1 -1
  229. package/lib/hooks/useScrollThreshold.js.map +1 -1
  230. package/lib/hooks/useTailwindTheme.js.map +1 -1
  231. package/lib/icons.d.ts +2 -0
  232. package/lib/icons.d.ts.map +1 -1
  233. package/lib/icons.js +4 -2
  234. package/lib/icons.js.map +1 -1
  235. package/lib/index.d.ts +1 -1
  236. package/lib/index.d.ts.map +1 -1
  237. package/lib/index.js +1 -1
  238. package/lib/index.js.map +1 -1
  239. package/lib/machines/selectors.d.ts +118 -0
  240. package/lib/machines/selectors.d.ts.map +1 -0
  241. package/lib/machines/settingsMachine.d.ts +25 -2
  242. package/lib/machines/settingsMachine.d.ts.map +1 -1
  243. package/lib/machines/settingsMachine.js +133 -168
  244. package/lib/machines/settingsMachine.js.map +1 -1
  245. package/lib/machines/types.d.ts +107 -9
  246. package/lib/machines/types.d.ts.map +1 -1
  247. package/lib/machines/types.js.map +1 -1
  248. package/lib/module.js.map +1 -1
  249. package/lib/redux/searchReducer.d.ts +1 -1
  250. package/lib/redux/searchReducer.d.ts.map +1 -1
  251. package/lib/redux/searchReducer.js.map +1 -1
  252. package/lib/routes.json +9 -1
  253. package/lib/styles/index.css +602 -372
  254. package/lib/tailwindConfig.d.ts +85 -27
  255. package/lib/tailwindConfig.d.ts.map +1 -1
  256. package/lib/tailwindConfig.js +96 -18
  257. package/lib/tailwindConfig.js.map +1 -1
  258. package/lib/utils/__tests__/analytics-utils.test.d.ts +2 -0
  259. package/lib/utils/__tests__/analytics-utils.test.d.ts.map +1 -0
  260. package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
  261. package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
  262. package/lib/utils/__tests__/menu.test.d.ts +2 -0
  263. package/lib/utils/__tests__/menu.test.d.ts.map +1 -0
  264. package/lib/utils/__tests__/selectors.test.d.ts +2 -0
  265. package/lib/utils/__tests__/selectors.test.d.ts.map +1 -0
  266. package/lib/utils/__tests__/settingsMachine.test.d.ts +2 -0
  267. package/lib/utils/__tests__/settingsMachine.test.d.ts.map +1 -0
  268. package/lib/utils/__tests__/settingsUtils.test.d.ts +2 -0
  269. package/lib/utils/__tests__/settingsUtils.test.d.ts.map +1 -0
  270. package/lib/utils/analytics-utils.d.ts +43 -0
  271. package/lib/utils/analytics-utils.d.ts.map +1 -0
  272. package/lib/utils/analytics.d.ts +48 -0
  273. package/lib/utils/analytics.d.ts.map +1 -0
  274. package/lib/utils/configOverrides.d.ts +213 -0
  275. package/lib/utils/configOverrides.d.ts.map +1 -0
  276. package/lib/utils/configOverrides.js +91 -0
  277. package/lib/utils/configOverrides.js.map +1 -0
  278. package/lib/utils/isBrowser/index.js.map +1 -1
  279. package/lib/utils/settingsUtils.d.ts +20 -0
  280. package/lib/utils/settingsUtils.d.ts.map +1 -0
  281. package/lib/utils/settingsUtils.js +74 -0
  282. package/lib/utils/settingsUtils.js.map +1 -0
  283. package/lib/utils/utils/index.js.map +1 -1
  284. package/package.json +7 -15
  285. package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
  286. package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
  287. package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
  288. package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
  289. package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
  290. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
  291. package/lib/components/Layout/Sidebar/Sidebar.js +0 -186
  292. package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
  293. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
  294. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
  295. package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -183
  296. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
  297. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -3
  298. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
  299. package/lib/components/SettingDrawer/CheckBoxTheme.js +0 -123
  300. package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
  301. package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -3
  302. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
  303. package/lib/components/SettingDrawer/LayoutChange.js +0 -123
  304. package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
  305. package/lib/components/SettingDrawer/NavigationsModes.d.ts +0 -3
  306. package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +0 -1
  307. package/lib/components/SettingDrawer/NavigationsModes.js +0 -289
  308. package/lib/components/SettingDrawer/NavigationsModes.js.map +0 -1
  309. package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -3
  310. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
  311. package/lib/components/SettingDrawer/RegionalSettings.js +0 -740
  312. package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
  313. package/lib/components/SettingDrawer/Switch/index.d.ts +0 -3
  314. package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
  315. package/lib/components/SettingDrawer/Switch/index.js +0 -22
  316. package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
  317. package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -3
  318. package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
  319. package/lib/components/SettingDrawer/ThemeColor.js +0 -35
  320. package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
  321. package/lib/components/SettingDrawer/ThemeSelector.d.ts +0 -3
  322. package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +0 -1
  323. package/lib/components/SettingDrawer/ThemeSelector.js +0 -18
  324. package/lib/components/SettingDrawer/ThemeSelector.js.map +0 -1
  325. package/lib/components/SettingDrawer/WebFontsSelector.d.ts +0 -3
  326. package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +0 -1
  327. package/lib/components/SettingDrawer/WebFontsSelector.js +0 -24
  328. package/lib/components/SettingDrawer/WebFontsSelector.js.map +0 -1
  329. package/lib/components/SettingDrawer/types.d.ts.map +0 -1
  330. package/lib/components/ThemeProvider/ThemeProvider.d.ts +0 -8
  331. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +0 -1
  332. package/lib/components/ThemeProvider/ThemeProvider.js +0 -60
  333. package/lib/components/ThemeProvider/ThemeProvider.js.map +0 -1
  334. package/lib/components/ThemeProvider/ThemeToggle.d.ts +0 -7
  335. package/lib/components/ThemeProvider/ThemeToggle.d.ts.map +0 -1
  336. package/lib/components/ThemeProvider/ThemeToggle.js +0 -50
  337. package/lib/components/ThemeProvider/ThemeToggle.js.map +0 -1
  338. package/lib/components/ThemeProvider/index.d.ts +0 -4
  339. package/lib/components/ThemeProvider/index.d.ts.map +0 -1
  340. package/lib/components/ThemeProvider/themes/airbnb.d.ts +0 -3
  341. package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +0 -1
  342. package/lib/components/ThemeProvider/themes/airbnb.js +0 -186
  343. package/lib/components/ThemeProvider/themes/airbnb.js.map +0 -1
  344. package/lib/components/ThemeProvider/themes/default.d.ts +0 -3
  345. package/lib/components/ThemeProvider/themes/default.d.ts.map +0 -1
  346. package/lib/components/ThemeProvider/themes/default.js +0 -183
  347. package/lib/components/ThemeProvider/themes/default.js.map +0 -1
  348. package/lib/components/ThemeProvider/themes/github.d.ts +0 -3
  349. package/lib/components/ThemeProvider/themes/github.d.ts.map +0 -1
  350. package/lib/components/ThemeProvider/themes/github.js +0 -190
  351. package/lib/components/ThemeProvider/themes/github.js.map +0 -1
  352. package/lib/components/ThemeProvider/themes/index.d.ts +0 -15
  353. package/lib/components/ThemeProvider/themes/index.d.ts.map +0 -1
  354. package/lib/components/ThemeProvider/themes/index.js +0 -7
  355. package/lib/components/ThemeProvider/themes/index.js.map +0 -1
  356. package/lib/components/ThemeProvider/themes/slack.d.ts +0 -3
  357. package/lib/components/ThemeProvider/themes/slack.d.ts.map +0 -1
  358. package/lib/components/ThemeProvider/themes/slack.js +0 -188
  359. package/lib/components/ThemeProvider/themes/slack.js.map +0 -1
  360. package/lib/components/ThemeProvider/themes/spotify.d.ts +0 -3
  361. package/lib/components/ThemeProvider/themes/spotify.d.ts.map +0 -1
  362. package/lib/components/ThemeProvider/themes/spotify.js +0 -189
  363. package/lib/components/ThemeProvider/themes/spotify.js.map +0 -1
  364. package/lib/components/ThemeProvider/types.d.ts +0 -112
  365. package/lib/components/ThemeProvider/types.d.ts.map +0 -1
  366. package/lib/components/UI/CardList.d.ts +0 -61
  367. package/lib/components/UI/CardList.d.ts.map +0 -1
  368. package/lib/components/UI/CardList.js +0 -43
  369. package/lib/components/UI/CardList.js.map +0 -1
  370. package/lib/components/UI/CategoriesTypeList.d.ts +0 -29
  371. package/lib/components/UI/CategoriesTypeList.d.ts.map +0 -1
  372. package/lib/components/UI/CategoriesTypeList.js +0 -140
  373. package/lib/components/UI/CategoriesTypeList.js.map +0 -1
  374. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +0 -83
  375. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +0 -1
  376. package/lib/components/UI/LazyLoadingGoogleMarker.js +0 -107
  377. package/lib/components/UI/LazyLoadingGoogleMarker.js.map +0 -1
  378. package/lib/components/UI/Pagination.d.ts +0 -6
  379. package/lib/components/UI/Pagination.d.ts.map +0 -1
  380. package/lib/components/UI/Pagination.js +0 -59
  381. package/lib/components/UI/Pagination.js.map +0 -1
  382. package/lib/components/UI/ParamSearchResultContainer.d.ts +0 -99
  383. package/lib/components/UI/ParamSearchResultContainer.d.ts.map +0 -1
  384. package/lib/components/UI/ParamSearchResultContainer.js +0 -120
  385. package/lib/components/UI/ParamSearchResultContainer.js.map +0 -1
  386. package/lib/components/UI/PropertyCard.d.ts +0 -24
  387. package/lib/components/UI/PropertyCard.d.ts.map +0 -1
  388. package/lib/components/UI/PropertyCard.js +0 -375
  389. package/lib/components/UI/PropertyCard.js.map +0 -1
  390. package/lib/components/UI/PropertyCardOnMap.d.ts +0 -10
  391. package/lib/components/UI/PropertyCardOnMap.d.ts.map +0 -1
  392. package/lib/components/UI/PropertyCardOnMap.js +0 -108
  393. package/lib/components/UI/PropertyCardOnMap.js.map +0 -1
  394. package/lib/components/UI/VehicleCard/PricePopover.d.ts +0 -8
  395. package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +0 -1
  396. package/lib/components/UI/VehicleCard/PricePopover.js +0 -98
  397. package/lib/components/UI/VehicleCard/PricePopover.js.map +0 -1
  398. package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +0 -7
  399. package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +0 -1
  400. package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +0 -9
  401. package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +0 -1
  402. package/lib/components/UI/VehicleCard/VehicleFeature.js +0 -23
  403. package/lib/components/UI/VehicleCard/VehicleFeature.js.map +0 -1
  404. package/lib/components/UI/VehicleCard/types.d.ts +0 -59
  405. package/lib/components/UI/VehicleCard/types.d.ts.map +0 -1
  406. package/lib/components/UI/VehicleCard.d.ts +0 -15
  407. package/lib/components/UI/VehicleCard.d.ts.map +0 -1
  408. package/lib/components/UI/VehicleCard.js +0 -166
  409. package/lib/components/UI/VehicleCard.js.map +0 -1
  410. package/lib/components/UI/VehicleCardList.d.ts +0 -14
  411. package/lib/components/UI/VehicleCardList.d.ts.map +0 -1
  412. package/lib/components/UI/VehicleCardList.js +0 -38
  413. package/lib/components/UI/VehicleCardList.js.map +0 -1
  414. package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +0 -90
  415. package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +0 -1
  416. package/lib/components/UI/icons/LocationIcon.d.ts +0 -7
  417. package/lib/components/UI/icons/LocationIcon.d.ts.map +0 -1
  418. package/lib/components/UI/icons/LocationIcon.js +0 -18
  419. package/lib/components/UI/icons/LocationIcon.js.map +0 -1
  420. package/lib/components/UI/icons/index.d.ts +0 -2
  421. package/lib/components/UI/icons/index.d.ts.map +0 -1
  422. package/lib/components/UI/index.d.ts +0 -10
  423. package/lib/components/UI/index.d.ts.map +0 -1
  424. package/lib/components/typings.js +0 -6
  425. package/lib/components/typings.js.map +0 -1
  426. package/lib/hooks/use-get-current-lat-long.d.ts +0 -18
  427. package/lib/hooks/use-get-current-lat-long.d.ts.map +0 -1
  428. package/lib/hooks/use-get-current-lat-long.js +0 -29
  429. package/lib/hooks/use-get-current-lat-long.js.map +0 -1
  430. package/lib/hooks/useWindowSize.d.ts +0 -6
  431. package/lib/hooks/useWindowSize.d.ts.map +0 -1
  432. package/lib/hooks/useWindowSize.js +0 -20
  433. package/lib/hooks/useWindowSize.js.map +0 -1
  434. package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +0 -6
  435. package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +0 -1
  436. package/lib/middlewares/bookingCarRentalMiddleware.d.ts +0 -6
  437. package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +0 -1
  438. package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +0 -7
  439. package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +0 -1
  440. package/lib/middlewares/datasourcesMiddleware.d.ts +0 -6
  441. package/lib/middlewares/datasourcesMiddleware.d.ts.map +0 -1
  442. package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +0 -7
  443. package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +0 -1
@@ -1,189 +0,0 @@
1
- // Spotify-inspired theme
2
- const spotifyTheme = {
3
- name: 'spotify',
4
- colors: {
5
- primary: {
6
- 50: '#ecfdf5',
7
- 100: '#d1fae5',
8
- 200: '#a7f3d0',
9
- 300: '#6ee7b7',
10
- 400: '#34d399',
11
- 500: '#1DB954',
12
- // Spotify green
13
- 600: '#059669',
14
- 700: '#047857',
15
- 800: '#065f46',
16
- 900: '#064e3b',
17
- 950: '#022c22'
18
- },
19
- secondary: {
20
- 50: '#f8fafc',
21
- 100: '#f1f5f9',
22
- 200: '#e2e8f0',
23
- 300: '#cbd5e1',
24
- 400: '#94a3b8',
25
- 500: '#767676',
26
- // Spotify secondary gray
27
- 600: '#475569',
28
- 700: '#334155',
29
- 800: '#1e293b',
30
- 900: '#0f172a',
31
- 950: '#020617'
32
- },
33
- accent: {
34
- 50: '#fff7ed',
35
- 100: '#ffedd5',
36
- 200: '#fed7aa',
37
- 300: '#fdba74',
38
- 400: '#fb923c',
39
- 500: '#f97316',
40
- // Spotify orange
41
- 600: '#ea580c',
42
- 700: '#c2410c',
43
- 800: '#9a3412',
44
- 900: '#7c2d12',
45
- 950: '#431407'
46
- },
47
- success: {
48
- 50: '#f0fdf4',
49
- 100: '#dcfce7',
50
- 200: '#bbf7d0',
51
- 300: '#86efac',
52
- 400: '#4ade80',
53
- 500: '#1DB954',
54
- // Spotify green (same as primary)
55
- 600: '#16a34a',
56
- 700: '#15803d',
57
- 800: '#166534',
58
- 900: '#14532d',
59
- 950: '#052e16'
60
- },
61
- warning: {
62
- 50: '#fffbeb',
63
- 100: '#fef3c7',
64
- 200: '#fde68a',
65
- 300: '#fcd34d',
66
- 400: '#fbbf24',
67
- 500: '#f59e0b',
68
- 600: '#d97706',
69
- 700: '#b45309',
70
- 800: '#92400e',
71
- 900: '#78350f',
72
- 950: '#451a03'
73
- },
74
- error: {
75
- 50: '#fef2f2',
76
- 100: '#fee2e2',
77
- 200: '#fecaca',
78
- 300: '#fca5a5',
79
- 400: '#f87171',
80
- 500: '#ef4444',
81
- 600: '#dc2626',
82
- 700: '#b91c1c',
83
- 800: '#991b1b',
84
- 900: '#7f1d1d',
85
- 950: '#450a0a'
86
- },
87
- neutral: {
88
- 50: '#f9fafb',
89
- 100: '#f3f4f6',
90
- 200: '#e5e7eb',
91
- 300: '#d1d5db',
92
- 400: '#9ca3af',
93
- 500: '#6b7280',
94
- 600: '#4b5563',
95
- 700: '#374151',
96
- 800: '#1f2937',
97
- 900: '#111827',
98
- 950: '#030712'
99
- },
100
- background: {
101
- light: '#ffffff',
102
- dark: '#121212' // Spotify dark background
103
- },
104
- text: {
105
- light: {
106
- primary: '#191414',
107
- secondary: '#535353',
108
- tertiary: '#b3b3b3'
109
- },
110
- dark: {
111
- primary: '#ffffff',
112
- secondary: '#b3b3b3',
113
- tertiary: '#727272'
114
- }
115
- }
116
- },
117
- borderRadius: {
118
- sm: '4px',
119
- DEFAULT: '8px',
120
- md: '12px',
121
- lg: '16px',
122
- xl: '24px',
123
- '2xl': '32px',
124
- full: '9999px'
125
- },
126
- fontFamily: {
127
- sans: ['Circular', 'Helvetica Neue', 'Arial', 'sans-serif'],
128
- serif: ['Georgia', 'Cambria', 'Times New Roman', 'Times', 'serif'],
129
- mono: ['Courier New', 'monospace']
130
- },
131
- boxShadow: {
132
- sm: '0 2px 4px rgba(0,0,0,0.05)',
133
- DEFAULT: '0 4px 8px rgba(0,0,0,0.1)',
134
- md: '0 8px 16px rgba(0,0,0,0.1)',
135
- lg: '0 16px 32px rgba(0,0,0,0.15)',
136
- xl: '0 24px 48px rgba(0,0,0,0.2)'
137
- },
138
- typography: {
139
- headings: {
140
- fontWeight: '700',
141
- lineHeight: '1.2',
142
- letterSpacing: '-0.04em'
143
- },
144
- body: {
145
- fontWeight: '400',
146
- lineHeight: '1.5',
147
- letterSpacing: '0'
148
- }
149
- },
150
- // Component specific styling
151
- components: {
152
- buttons: {
153
- primary: {
154
- background: '#1DB954',
155
- text: '#FFFFFF',
156
- hoverBackground: '#1ed760',
157
- hoverText: '#FFFFFF',
158
- borderRadius: '500px',
159
- // Spotify uses pill-shaped buttons
160
- padding: '12px 32px',
161
- fontWeight: '700'
162
- },
163
- secondary: {
164
- background: 'transparent',
165
- text: '#FFFFFF',
166
- border: '1px solid #727272',
167
- hoverBackground: 'rgba(255,255,255,0.1)',
168
- hoverText: '#FFFFFF',
169
- borderRadius: '500px',
170
- padding: '12px 32px',
171
- fontWeight: '700'
172
- }
173
- },
174
- cards: {
175
- borderRadius: '8px',
176
- padding: '16px',
177
- shadow: '0 8px 24px rgba(0,0,0,0.5)',
178
- border: 'none'
179
- },
180
- inputs: {
181
- borderRadius: '4px',
182
- borderColor: '#727272',
183
- focusBorderColor: '#1DB954',
184
- padding: '8px 12px',
185
- fontSize: '14px',
186
- lineHeight: '1.5'
187
- }
188
- }
189
- };export{spotifyTheme};//# sourceMappingURL=spotify.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"spotify.js","sources":["../../../../src/components/ThemeProvider/themes/spotify.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;AACa,MAAA,YAAY,GAAiB;AACtC,EAAA,IAAA,EAAI,SAAW;AACf,EAAA,MAAA,EAAM;AACF,IAAA,OAAA,EAAA;AACI,MAAA,EAAA,EAAA,SAAa;AACb,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;oBACA;AACd;AACA,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACjB,MAAA,GAAA,EAAA;AACD,KAAA;AACI,IAAA,SAAA;AACA,MAAA,EAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;oBACA;AACd,MAAA,GAAA,EAAA,SAAc;AACd;AACA,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACjB,MAAA,GAAA,EAAA,SAAA;AACD,MAAA,GAAA,EAAA;AACI,KAAA;AACA,IAAA,MAAA,EAAA;AACA,MAAA,EAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;oBACA;AACd,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACd;AACA,MAAA,GAAA,EAAA,SAAc;AACd,MAAA,GAAA,EAAA,SAAc;AACjB,MAAA,G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AACD,MAAA,UAAM,EAAA,KAAA;AACF,MAAA,UAAA,EAAA;AACA,MAAA,aAAA,EAAA;AACA,KAAA;AACH,IAAA,IAAA,EAAA;AACJ,MAAA,UAAA,EAAA,KAAA;MAC4B,UAAA,EAAA,KAAA;AAC7B,MAAA,aAAY,EAAA;AACR;AACI,GAAA;AACI;AACA,EAAA,UAAA,EAAA;AACA,IAAA,OAAA,EAAA;AACA,MAAA,OAAA,EAAA;kBACY,EAAA,SAAA;AACZ,QAAA,IAAA,EAAA,SAAO;AACP,QAAA,eAAA,EAAA,SAAiB;AACpB,QAAA,SAAA,EAAA,SAAA;AACD,QAAA,YAAA,EAAW,OAAA;AACP;AACA,QAAA,OAAA,EAAA,WAAe;AACf,QAAA,UAAA,EAAA;AACA,OAAA;AACA,MAAA,SAAA,EAAA;AACA,QAAA,UAAA,EAAA,aAAqB;AACrB,QAAA,IAAA,EAAA,SAAO;AACP,QAAA,MAAA,EAAA,mBAAiB;AACpB,QAAA,eAAA,EAAA,uBAAA;AACJ,QAAA,SAAA,EAAA,SAAA;AACD,QAAA,YAAO,EAAA,OAAA;AACH,QAAA,OAAA,EAAA,WAAmB;AACnB,QAAA,UAAA;AACA;AACA,KAAA;AACH,IAAA,KAAA,EAAA;AACD,MAAA,YAAQ,EAAA,KAAA;AACJ,MAAA,OAAA,EAAA,MAAA;AACA,MAAA,MAAA,EAAA,4BAAsB;AACtB,MAAA,MAAA,EAAA;AACA,KAAA;AACA,IAAA,MAAA,EAAA;AACA,MAAA,YAAA,EAAA,KAAiB;AACpB,MAAA,WAAA,EAAA,SAAA;AACJ,MAAA,gBAAA,EAAA,SAAA;MACH,OAAA,EAAA,UAAA;;;;;"}
@@ -1,112 +0,0 @@
1
- export interface ThemeContextProps {
2
- themeName: ThemeName;
3
- theme: DefaultTheme;
4
- isDarkMode: boolean;
5
- toggleDarkMode: () => void;
6
- }
7
- export interface DefaultTheme {
8
- name: string;
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
- };
87
- }
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;
100
- }
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;
110
- }
111
- export type ThemeName = 'default' | 'airbnb' | 'slack' | 'github' | 'spotify';
112
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","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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"}
@@ -1,61 +0,0 @@
1
- import React from 'react';
2
- interface IBaseItem {
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
- type CardListProps = {
38
- items?: IBaseItem[];
39
- setFocus: (index: number) => void;
40
- setBlur: (index: number) => void;
41
- handleLike: (index: number) => void;
42
- likeBtnLoading: boolean;
43
- categoryTypes: any[];
44
- extraIcons?: any;
45
- className?: string;
46
- customCardComponent?: (props: {
47
- item: IBaseItem;
48
- index: number;
49
- setFocus: () => void;
50
- setBlur: (index: number) => void;
51
- handleLike: (index: number) => void;
52
- likeBtnLoading: boolean;
53
- categoryTypes: any[];
54
- extraIcons?: any;
55
- authenticated: boolean;
56
- }) => React.ReactNode;
57
- emptyMessage?: string;
58
- };
59
- export declare const CardList: React.FC<CardListProps>;
60
- export {};
61
- //# sourceMappingURL=CardList.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardList.d.ts","sourceRoot":"","sources":["../../../src/components/UI/CardList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,SAAS;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,WAAW,CAAC,EAAE,GAAG,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,GAAG,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,GAAG,CAAC;IACf,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,GAAG,CAAC;CACtB;AAYD,KAAK,aAAa,GAAG;IACjB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,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,GAAG,EAAE,CAAC;IACrB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE;QAC1B,IAAI,EAAE,SAAS,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,IAAI,CAAC;QACrB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACjC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QACpC,cAAc,EAAE,OAAO,CAAC;QACxB,aAAa,EAAE,GAAG,EAAE,CAAC;QACrB,UAAU,CAAC,EAAE,GAAG,CAAC;QACjB,aAAa,EAAE,OAAO,CAAC;KAC1B,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAuC5C,CAAC"}
@@ -1,43 +0,0 @@
1
- import {jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {isEmpty}from'lodash-es';import {isUserAuthenticated}from'@adminide-stack/user-auth0-client';const CardList = props => {
2
- const {
3
- setBlur,
4
- setFocus,
5
- items,
6
- handleLike,
7
- likeBtnLoading,
8
- categoryTypes,
9
- extraIcons,
10
- className = '',
11
- customCardComponent,
12
- emptyMessage = 'No items found'
13
- } = props;
14
- const {
15
- t
16
- } = useTranslation();
17
- const {
18
- authenticated
19
- } = isUserAuthenticated();
20
- if (isEmpty(items)) {
21
- return jsx("div", {
22
- className: "text-base",
23
- children: emptyMessage
24
- });
25
- }
26
- return jsx("div", {
27
- className: `flex flex-wrap justify-evenly ${className}`,
28
- children: items?.map((item, index) => jsx("div", {
29
- className: "max-w-[100%] mb-4",
30
- children: customCardComponent?.({
31
- item,
32
- index,
33
- setFocus: () => setFocus(index),
34
- setBlur,
35
- handleLike,
36
- likeBtnLoading,
37
- categoryTypes,
38
- extraIcons,
39
- authenticated
40
- })
41
- }, index))
42
- });
43
- };export{CardList};//# sourceMappingURL=CardList.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CardList.js","sources":["../../../src/components/UI/CardList.tsx"],"sourcesContent":[null],"names":[],"mappings":"mLA0Ea,MAAA,QAAQ,GAA4B,KAAC,IAAS;QACjD;AAYN,IAAA;AACA,IAAA,QAAQ;AAER,IAAA,KAAW;AACP,IAAA,UAAA;IACJ,cAAC;IAED,aACS;;gBAKW,EAAK;AACL,IAAA,mBAAA;gBACA,GAAO;;;;oBAIG,EAAA;;AAEb,IAAA;AAKrB,GAAE,GAAA,mBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,29 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,140 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"CategoriesTypeList.js","sources":["../../../src/components/UI/CategoriesTypeList.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx","React"],"mappings":"6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