@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
@@ -0,0 +1,451 @@
1
+ import {generateMenuPath}from'@admin-layout/client';import {useLocation,useNavigate}from'@remix-run/react';import React__default,{useState,useEffect,useCallback}from'react';import {icons}from'../../../icons.js';// Constants moved outside component
2
+ const SIDEBAR_WIDTHS = {
3
+ COLLAPSED: 64,
4
+ EXPANDED: 256
5
+ };
6
+ const POPUP_CONFIG = {
7
+ MIN_WIDTH: 220};
8
+ // Pure function moved outside component
9
+ const getFirstLetter = name => name.charAt(0).toUpperCase();
10
+ // Utility for determining active menu item
11
+ const isMenuItemActive = (itemPath, currentPath, routeParams) => {
12
+ const menuPath = generateMenuPath(itemPath, routeParams);
13
+ // Exact match
14
+ if (currentPath === menuPath) {
15
+ return true;
16
+ }
17
+ // Check if current path is a child of the menu item path
18
+ if (menuPath && currentPath.startsWith(menuPath + '/')) {
19
+ return true;
20
+ }
21
+ return false;
22
+ };
23
+ // CSS keyframes definition moved outside component
24
+ const POPUP_ANIMATION_CSS = `
25
+ @keyframes fadeIn {
26
+ from { opacity: 0; transform: translateX(-10px); }
27
+ to { opacity: 1; transform: translateX(0); }
28
+ }
29
+ `;
30
+ const getTextColor = (active, navTheme) => {
31
+ if (active) return 'text-primary';
32
+ if (navTheme === 'realDark') return 'text-white';
33
+ return 'text-foreground';
34
+ };
35
+ const getIconColor = (active, navTheme) => {
36
+ if (active) return 'text-primary';
37
+ if (navTheme === 'realDark') return 'text-white';
38
+ return 'text-muted-foreground';
39
+ };
40
+ // Custom comparison function for React.memo
41
+ const areMenuItemPropsEqual = (prevProps, nextProps) => {
42
+ // 1. Item identity
43
+ if (prevProps.item !== nextProps.item) return false;
44
+ // 2. Simple props
45
+ if (prevProps.depth !== nextProps.depth || prevProps.isHoverMenu !== nextProps.isHoverMenu || prevProps.collapsed !== nextProps.collapsed || prevProps.navTheme !== nextProps.navTheme || prevProps.onNavigate !== nextProps.onNavigate) return false;
46
+ // 3. Route Params (Shallow compare)
47
+ const prevKeys = Object.keys(prevProps.routeParams);
48
+ const nextKeys = Object.keys(nextProps.routeParams);
49
+ if (prevKeys.length !== nextKeys.length) return false;
50
+ for (const key of prevKeys) {
51
+ if (prevProps.routeParams[key] !== nextProps.routeParams[key]) return false;
52
+ }
53
+ // 4. Active State
54
+ const prevIsActive = isMenuItemActive(prevProps.item.path, prevProps.locationPathname, prevProps.routeParams);
55
+ const nextIsActive = isMenuItemActive(nextProps.item.path, nextProps.locationPathname, nextProps.routeParams);
56
+ if (prevIsActive !== nextIsActive) return false;
57
+ // 5. Hover State
58
+ const prevIsHovered = prevProps.hoveredMenu === prevProps.item.path;
59
+ const nextIsHovered = nextProps.hoveredMenu === nextProps.item.path;
60
+ if (prevIsHovered !== nextIsHovered) return false;
61
+ // 6. Popup Position
62
+ if (prevProps.popupPosition.top !== nextProps.popupPosition.top || prevProps.popupPosition.height !== nextProps.popupPosition.height) return false;
63
+ // 7. Open State & OpenMenus propagation
64
+ const prevIsOpen = prevProps.openMenus.includes(prevProps.item.path);
65
+ const nextIsOpen = nextProps.openMenus.includes(nextProps.item.path);
66
+ if (prevIsOpen !== nextIsOpen) return false;
67
+ const hasChildren = prevProps.item.children && prevProps.item.children.length > 0;
68
+ if (hasChildren) {
69
+ // If we have children, we might need to re-render to pass down updated openMenus
70
+ // Case A: We are expanded (not collapsed) and Open. Children are visible.
71
+ if (!prevProps.collapsed && prevIsOpen) {
72
+ // If openMenus changed, we must re-render to update children.
73
+ if (prevProps.openMenus !== nextProps.openMenus) return false;
74
+ }
75
+ // Case B: We are collapsed and Hovered. Popup is visible.
76
+ if (prevProps.collapsed && prevIsHovered) {
77
+ if (prevProps.openMenus !== nextProps.openMenus) return false;
78
+ }
79
+ }
80
+ return true;
81
+ };
82
+ const MenuItem = React__default.memo(({
83
+ item,
84
+ depth,
85
+ isHoverMenu,
86
+ openMenus,
87
+ hoveredMenu,
88
+ collapsed,
89
+ navTheme,
90
+ locationPathname,
91
+ routeParams,
92
+ popupPosition,
93
+ onToggleMenu,
94
+ onMenuHover,
95
+ onMenuLeave,
96
+ onNavigate,
97
+ ChevronUpIcon,
98
+ ChevronDownIcon
99
+ }) => {
100
+ // Only log when actually rendering (not on every navigation)
101
+ const hasChildren = item.children && item.children.length > 0;
102
+ const isOpen = openMenus.includes(item.path);
103
+ const isActive = isMenuItemActive(item.path, locationPathname, routeParams);
104
+ const isHovered = hoveredMenu === item.path;
105
+ const menuItemPaddingLeft = `${depth * 1}rem`;
106
+ const subMenuItemPaddingLeft = `${depth * 2}rem`;
107
+ // Determine styling based on whether it's a parent or child item
108
+ const isParentWithChildren = hasChildren && depth === 0;
109
+ const shouldApplyBackground = isActive && !isParentWithChildren || isHovered;
110
+ const handleMenuClick = useCallback(e => {
111
+ // Prevent event from bubbling to parent menu items
112
+ e.stopPropagation();
113
+ if (collapsed && hasChildren && !isHoverMenu) {
114
+ // Let the hover menu handle this case - don't do anything here
115
+ // as this will be handled by the popup menu
116
+ return;
117
+ }
118
+ if (hasChildren) {
119
+ // Handle menu toggle for items with children
120
+ e.preventDefault();
121
+ onToggleMenu(item.path, depth, e);
122
+ } else {
123
+ // For items without children, navigate to their path
124
+ const targetPath = generateMenuPath(item.path, routeParams);
125
+ onNavigate(targetPath);
126
+ }
127
+ }, [hasChildren, item.path, depth, onToggleMenu, routeParams, collapsed, isHoverMenu]);
128
+ // Enhanced renderPopupMenu to handle nested items in collapsed mode
129
+ const renderPopupMenu = useCallback(() => {
130
+ if (!item.children || item.children.length === 0) return null;
131
+ // Create a helper function to directly toggle menu items in collapsed state
132
+ const toggleCollapsedMenu = (menuPath, menuItem) => {
133
+ // Direct implementation without relying on parent's onToggleMenu
134
+ openMenus.includes(menuPath);
135
+ // Access parent component's state setter directly from MainSidebarMenu
136
+ onToggleMenu(menuPath, 0, {
137
+ preventDefault: () => {},
138
+ stopPropagation: () => {}
139
+ });
140
+ };
141
+ // Create a recursive function to render menu items and their children
142
+ const renderNestedItems = (items, currentDepth) => {
143
+ return items.map(childItem => {
144
+ const isChildOpen = openMenus.includes(childItem.path);
145
+ const isChildActive = isMenuItemActive(childItem.path, locationPathname, routeParams);
146
+ const hasGrandchildren = childItem.children && childItem.children.length > 0;
147
+ return React__default.createElement("div", {
148
+ key: childItem.path,
149
+ className: "popup-menu-item"
150
+ }, React__default.createElement("div", {
151
+ className: `flex items-center justify-between w-full px-4 py-2.5 hover:bg-accent/20 text-sm cursor-pointer rounded-sm ${isChildActive ? 'bg-accent/10 text-primary font-medium' : 'text-foreground'} ${hasGrandchildren ? 'font-medium' : ''}`,
152
+ onClick: e => {
153
+ e.stopPropagation();
154
+ if (hasGrandchildren) {
155
+ // Handle menu toggle in collapsed mode using our helper
156
+ e.preventDefault();
157
+ toggleCollapsedMenu(childItem.path);
158
+ } else {
159
+ // For leaf nodes, navigate to the path
160
+ const targetPath = generateMenuPath(childItem.path, routeParams);
161
+ onNavigate(targetPath);
162
+ }
163
+ }
164
+ }, React__default.createElement("span", {
165
+ className: "text-sm font-medium"
166
+ }, childItem.name), hasGrandchildren && React__default.createElement("span", {
167
+ className: "text-muted-foreground ml-2"
168
+ }, isChildOpen ? React__default.createElement(ChevronUpIcon, {
169
+ className: "h-4 w-4"
170
+ }) : React__default.createElement(ChevronDownIcon, {
171
+ className: "h-4 w-4"
172
+ }))), hasGrandchildren && React__default.createElement("div", {
173
+ className: `pl-3 border-l border-border/60 ml-3 mt-1 mb-1 ${isChildOpen ? 'block' : 'hidden'} transition-all duration-200 ease-in-out`,
174
+ style: {
175
+ maxHeight: isChildOpen ? '500px' : '0px',
176
+ opacity: isChildOpen ? 1 : 0,
177
+ overflow: 'hidden'
178
+ }
179
+ }, renderNestedItems(childItem.children)));
180
+ });
181
+ };
182
+ return React__default.createElement("div", {
183
+ className: "fixed shadow-themed-xl rounded-themed-lg border border-border z-[999] themed-dropdown bg-card",
184
+ onClick: e => e.stopPropagation(),
185
+ style: {
186
+ left: `${SIDEBAR_WIDTHS[collapsed ? 'COLLAPSED' : 'EXPANDED']}px`,
187
+ top: `${Math.max(popupPosition.top - 20, 10)}px`,
188
+ // Adjust top position to be higher
189
+ animation: 'fadeIn 0.2s ease-out forwards',
190
+ maxWidth: 'calc(100vw - 120px)',
191
+ width: 'max-content',
192
+ minWidth: POPUP_CONFIG.MIN_WIDTH,
193
+ maxHeight: 'calc(90vh - 20px)',
194
+ // Allow for more height
195
+ overflowY: 'auto',
196
+ // Allow scrolling for tall menus
197
+ display: 'flex',
198
+ flexDirection: 'column'
199
+ }
200
+ }, React__default.createElement("style", {
201
+ dangerouslySetInnerHTML: {
202
+ __html: POPUP_ANIMATION_CSS
203
+ }
204
+ }), React__default.createElement("div", {
205
+ className: "font-medium text-sm px-4 py-3 border-b border-border whitespace-nowrap bg-muted"
206
+ }, React__default.createElement("span", {
207
+ className: "text-primary"
208
+ }, item.name)), React__default.createElement("div", {
209
+ className: "flex-grow overflow-auto py-2"
210
+ }, renderNestedItems(item.children)));
211
+ }, [item, depth, collapsed, popupPosition.top, openMenus, navTheme, locationPathname, routeParams, onToggleMenu, onNavigate, ChevronUpIcon, ChevronDownIcon]);
212
+ return React__default.createElement("div", {
213
+ className: `w-full relative group ${isHovered && collapsed && !isHoverMenu ? 'rounded-themed' : ''} ${isHovered && !isHoverMenu ? 'bg-muted' : ''}`,
214
+ onMouseEnter: e => onMenuHover(e, item, isHoverMenu),
215
+ onMouseLeave: () => onMenuLeave(item, isHoverMenu)
216
+ }, React__default.createElement("div", {
217
+ className: `flex items-center justify-between w-full px-1 py-2 hover:bg-muted text-sm cursor-pointer transition-colors rounded-themed mx-1 my-0.5 whitespace-nowrap overflow-hidden text-ellipsis ${shouldApplyBackground ? 'bg-muted' : ''}`,
218
+ style: {
219
+ paddingLeft: `calc(1rem + ${depth > 0 ? subMenuItemPaddingLeft : menuItemPaddingLeft})`
220
+ },
221
+ onClick: handleMenuClick
222
+ }, React__default.createElement("div", {
223
+ className: `flex items-center ${collapsed && !isHoverMenu ? 'justify-center w-full' : 'gap-3'}`
224
+ }, item.icon ? React__default.createElement("span", {
225
+ className: `flex-shrink-0 ${getIconColor(isActive, navTheme)}`
226
+ }, item.icon) : collapsed && !isHoverMenu ? React__default.createElement("span", {
227
+ className: `flex items-center justify-center flex-shrink-0 ${getIconColor(isActive, navTheme)}`
228
+ }, getFirstLetter(item.name)) : null, (!collapsed || isHoverMenu) && React__default.createElement("span", {
229
+ className: `font-medium whitespace-nowrap overflow-hidden text-ellipsis ${getTextColor(isActive, navTheme)} ${depth > 0 ? `text-xs` : ''}`
230
+ }, item.name)), hasChildren && (!collapsed || isHoverMenu) && React__default.createElement("span", {
231
+ className: `flex-shrink-0 ml-1 ${getIconColor(isActive, navTheme)}`
232
+ }, isOpen ? React__default.createElement(ChevronUpIcon, {
233
+ className: "h-4 w-4"
234
+ }) : React__default.createElement(ChevronDownIcon, {
235
+ className: "h-4 w-4"
236
+ }))), collapsed && hasChildren && isHovered && !isHoverMenu && item.children.length > 0 && renderPopupMenu(), hasChildren && isOpen && !collapsed && React__default.createElement("div", {
237
+ className: "transition-all duration-200 ease-in-out"
238
+ }, item.children.map(child => React__default.createElement(MenuItem, {
239
+ key: child.path,
240
+ item: child,
241
+ depth: depth + 1,
242
+ isHoverMenu: false,
243
+ openMenus: openMenus,
244
+ hoveredMenu: hoveredMenu,
245
+ collapsed: collapsed,
246
+ navTheme: navTheme,
247
+ locationPathname: locationPathname,
248
+ routeParams: routeParams,
249
+ popupPosition: popupPosition,
250
+ onToggleMenu: onToggleMenu,
251
+ onMenuHover: onMenuHover,
252
+ onMenuLeave: onMenuLeave,
253
+ onNavigate: onNavigate,
254
+ ChevronUpIcon: ChevronUpIcon,
255
+ ChevronDownIcon: ChevronDownIcon
256
+ }))));
257
+ }, areMenuItemPropsEqual);
258
+ MenuItem.displayName = 'MenuItem';
259
+ // Helper func
260
+ const findParentPaths = (menuData, currentPath, routeParams, result = [], parentStack = []) => {
261
+ for (const item of menuData) {
262
+ // Check if this item is active
263
+ const isActive = isMenuItemActive(item.path, currentPath, routeParams);
264
+ const currentParentStack = [...parentStack, item.path];
265
+ if (isActive) {
266
+ // If this item is active, add all its ancestors to the result
267
+ result.push(...currentParentStack);
268
+ }
269
+ // Check if any of its children are active
270
+ if (item.children && item.children.length > 0) {
271
+ findParentPaths(item.children, currentPath, routeParams, result, currentParentStack);
272
+ }
273
+ }
274
+ return result;
275
+ };
276
+ function MainSidebarMenuComponent({
277
+ menuData,
278
+ routeParams,
279
+ settings,
280
+ collapsed
281
+ }) {
282
+ const location = useLocation();
283
+ const navigate = useNavigate();
284
+ const [hoveredMenu, setHoveredMenu] = useState(null);
285
+ const [popupPosition, setPopupPosition] = useState({
286
+ top: 0,
287
+ height: 0
288
+ });
289
+ const {
290
+ ChevronDownIcon,
291
+ ChevronUpIcon
292
+ } = icons;
293
+ const navTheme = settings?.navTheme;
294
+ // Initialize openMenus based on the current path
295
+ const [openMenus, setOpenMenus] = useState(() => {
296
+ return findParentPaths(menuData, location.pathname, routeParams);
297
+ });
298
+ // Update openMenus when location changes
299
+ useEffect(() => {
300
+ // Find parent paths for current location
301
+ const parentPaths = findParentPaths(menuData, location.pathname, routeParams);
302
+ // Update openMenus to ensure all parent paths are open
303
+ setOpenMenus(prev => {
304
+ // Create a new Set of currently open menus
305
+ const openMenusSet = new Set(prev);
306
+ // Add all parent paths to the Set
307
+ parentPaths.forEach(path => openMenusSet.add(path));
308
+ // Convert back to array
309
+ return Array.from(openMenusSet);
310
+ });
311
+ }, [location.pathname, menuData, routeParams]);
312
+ // Helper function to find an item by path
313
+ const findMenuItem = useCallback((items, targetPath) => {
314
+ for (const item of items) {
315
+ if (item.path === targetPath) {
316
+ return item;
317
+ }
318
+ if (item.children && item.children.length > 0) {
319
+ const found = findMenuItem(item.children, targetPath);
320
+ if (found) return found;
321
+ }
322
+ }
323
+ return null;
324
+ }, []);
325
+ // Helper to find all parent paths for a menu item
326
+ const getParentMenuPaths = useCallback((items, targetPath, path = []) => {
327
+ for (const item of items) {
328
+ const currentPath = [...path, item.path];
329
+ if (item.path === targetPath) {
330
+ return path; // Return all parent paths excluding the target
331
+ }
332
+ if (item.children && item.children.length > 0) {
333
+ const parentPaths = getParentMenuPaths(item.children, targetPath, currentPath);
334
+ if (parentPaths.length > 0) {
335
+ return parentPaths;
336
+ }
337
+ }
338
+ }
339
+ return [];
340
+ }, []);
341
+ // Helper to find all child paths for a menu item
342
+ const getAllChildPaths = useCallback(item => {
343
+ const result = [];
344
+ if (!item.children) return result;
345
+ for (const child of item.children) {
346
+ result.push(child.path);
347
+ result.push(...getAllChildPaths(child));
348
+ }
349
+ return result;
350
+ }, []);
351
+ // Completely redesigned toggle function with explicit support for collapsed mode
352
+ const toggleMenu = useCallback((path, depth, e) => {
353
+ if (e && e.preventDefault) e.preventDefault();
354
+ // Allow collapsed mode to work with toggleMenu as well
355
+ // if (collapsed && !e.isTrusted) return;
356
+ const clickedItem = findMenuItem(menuData, path);
357
+ if (!clickedItem) return;
358
+ // No debug logs in production
359
+ setOpenMenus(prev => {
360
+ const newOpenMenus = new Set(prev);
361
+ const isCurrentlyOpen = prev.includes(path);
362
+ if (isCurrentlyOpen) {
363
+ // If closing a menu, close it and all its children
364
+ newOpenMenus.delete(path);
365
+ // Also close all child menus - use our helper function
366
+ const getAllChildrenOfPath = item => {
367
+ const result = [];
368
+ if (!item.children) return result;
369
+ for (const child of item.children) {
370
+ result.push(child.path);
371
+ result.push(...getAllChildrenOfPath(child));
372
+ }
373
+ return result;
374
+ };
375
+ // Close all children using our direct helper
376
+ if (clickedItem.children) {
377
+ const childPaths = getAllChildrenOfPath(clickedItem);
378
+ childPaths.forEach(childPath => newOpenMenus.delete(childPath));
379
+ }
380
+ } else {
381
+ // If opening a menu, open it and all its parent paths
382
+ newOpenMenus.add(path);
383
+ // When opening a menu, also ensure all parent paths are open
384
+ const getParentOfPath = (items, targetPath, path = []) => {
385
+ for (const item of items) {
386
+ if (item.path === targetPath) {
387
+ return path;
388
+ }
389
+ if (item.children && item.children.length > 0) {
390
+ const result = getParentOfPath(item.children, targetPath, [...path, item.path]);
391
+ if (result.length > 0) {
392
+ return result;
393
+ }
394
+ }
395
+ }
396
+ return [];
397
+ };
398
+ // Open all parent paths
399
+ const parentPaths = getParentOfPath(menuData, path);
400
+ parentPaths.forEach(parentPath => newOpenMenus.add(parentPath));
401
+ }
402
+ return Array.from(newOpenMenus);
403
+ });
404
+ }, [menuData, findMenuItem]);
405
+ // Event handlers for hover effects
406
+ const handleMenuHover = useCallback((e, item, isHoverMenu) => {
407
+ // Only set hover state if the menu has children
408
+ if (collapsed && !isHoverMenu && item.children && item.children.length > 0) {
409
+ const element = e.currentTarget;
410
+ const rect = element.getBoundingClientRect();
411
+ setPopupPosition({
412
+ top: rect.top,
413
+ height: rect.height
414
+ });
415
+ setHoveredMenu(item.path);
416
+ }
417
+ }, [collapsed]);
418
+ const handleMenuLeave = useCallback((item, isHoverMenu) => {
419
+ if (collapsed && !isHoverMenu) {
420
+ setHoveredMenu(null);
421
+ }
422
+ }, [collapsed]);
423
+ const handleNavigate = useCallback(path => {
424
+ navigate(path);
425
+ }, [navigate]);
426
+ return React__default.createElement("div", {
427
+ className: "overflow-hidden"
428
+ }, React__default.createElement("nav", {
429
+ className: `mt-2 ${collapsed ? 'px-1' : 'px-2'} overflow-x-hidden`
430
+ }, menuData.map(item => React__default.createElement(MenuItem, {
431
+ key: item.path,
432
+ item: item,
433
+ depth: 0,
434
+ isHoverMenu: false,
435
+ openMenus: openMenus,
436
+ hoveredMenu: hoveredMenu,
437
+ collapsed: collapsed,
438
+ navTheme: navTheme,
439
+ locationPathname: location.pathname,
440
+ routeParams: routeParams,
441
+ popupPosition: popupPosition,
442
+ onToggleMenu: toggleMenu,
443
+ onMenuHover: handleMenuHover,
444
+ onMenuLeave: handleMenuLeave,
445
+ onNavigate: handleNavigate,
446
+ ChevronUpIcon: ChevronUpIcon,
447
+ ChevronDownIcon: ChevronDownIcon
448
+ }))));
449
+ }
450
+ // Export the memoized version to prevent unnecessary re-renders
451
+ const MainSidebarMenu = React__default.memo(MainSidebarMenuComponent);export{MainSidebarMenu};//# sourceMappingURL=MainSidebarMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MainSidebarMenu.js","sources":["../../../../src/components/Layout/Sidebar/MainSidebarMenu.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"mNAMA;AACA,MAAM,cAAc,GAAG;AACnB,EAAA,SAAA,EAAS,EAAE;AACX,EAAA,QAAA,EAAQ;CACF;AACV,MAAM,YAAY,GAAG;AACjB,EACA,SAAA,EAAS,IAEH;AAEV;AACA,MAAM,cAAc,GAAG,IAAC,QAAiB,CAAA,MAAK,CAAA,CAAM,CAAC,CAAC,WAAE,EAAW;AAEnE;AACA,MAAM,gBAAgB,GAAG,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,IAAA,CAAA,WAAA,EAAA;;gBAGQ,CAAA,IAAA,IAAA;AACA,MAAA,MAAI,YAAS,GAAK,IAAA,GAAA,CAAA,IAAW,CAAA;AACzB,MAAA,MAAA,eAAa,GAAK,aAA4B,CAAC,IAAA,CAAA;AAC/C,MAAA,IAAA,eAAa,EAAA;AAEb;oBACO,CAAE,MAAK,CAAA,IAAG,CAAA;;AAEhB,QAAA,MAAC,oBAAC,GAAA,IAAA,IAAA;AAEH,UAAA,MAAA,MAAA,GAAA,EAAe;UAClB,IAAA,CAAA,IAAA,CAAA,QAAA,EAAA,OAAA,MAAA;AACL,UACC,KAAA,MACH,KAAA,IAAA,IAAA,CAAA,QAAA,EAAA;YAEI,MAAA,CAAA,IAAA,CAAA,KAAkB,CAAA,IAAA,CAAA;AAEhB,YAAI,MAAA,CAAA,IAAS,CAAA,GAAK,oBAAc,CAAA,KAAA,CAAA,CAAA;;UAE/B,OAAA,MAAA;AACL,QACC,CAAA;AAGL;QAEQ,IAAA,WAAe,CAAA,QAAA,EAAA;AACnB,UACC,MAAQ,UACX,GAAA,oBAAA,CAAA,WAAA,CAAA;AAEF,UAAA,UACI,CAAA,OAAA,CAAA,SAAA,IAAK,YAAU,CAAA,MAAA,CAAA,SAAiB,CAAA,CAAA;QAC5B;AAyBZ,MAAC,CAAA,MAAA;AAED;AACA,QAAO,YAAM,CAAA,GAAA,CAAA,IAAe,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { SidebarProps } from '../../typings';
3
+ export declare const PerplexSidebar: React.FC<SidebarProps>;
4
+ //# sourceMappingURL=PerplexSidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PerplexSidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Sidebar/PerplexSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAO7C,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAwTjD,CAAC"}