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

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 (307) hide show
  1. package/README.md +345 -1
  2. package/lib/cdm-locales/en/settings.json +35 -1
  3. package/lib/cdm-locales/es/settings.json +37 -3
  4. package/lib/components/Layout/BasicLayout/index.d.ts +1 -2
  5. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  6. package/lib/components/Layout/BasicLayout/index.js +146 -42
  7. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  8. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
  9. package/lib/components/Layout/BasicLayout/utils.js +1 -1
  10. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
  11. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  12. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  13. package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
  14. package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
  15. package/lib/components/Layout/GlobalHeader/Header.d.ts +2 -15
  16. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  17. package/lib/components/Layout/GlobalHeader/Header.js +70 -38
  18. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  19. package/lib/components/Layout/GlobalHeader/Logo.d.ts +4 -0
  20. package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +1 -0
  21. package/lib/components/Layout/GlobalHeader/Logo.js +141 -0
  22. package/lib/components/Layout/GlobalHeader/Logo.js.map +1 -0
  23. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +6 -0
  24. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
  25. package/lib/components/Layout/GlobalHeader/MainHeader.js +230 -0
  26. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
  27. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
  28. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
  29. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  30. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -13
  31. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  32. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
  33. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
  34. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
  35. package/lib/components/Layout/GlobalHeader/RightMenu.js +290 -0
  36. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
  37. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts +9 -0
  38. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -0
  39. package/lib/components/Layout/GlobalHeader/SearchBar.js +118 -0
  40. package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -0
  41. package/lib/components/Layout/GlobalHeader/index.d.ts +4 -0
  42. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
  43. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  44. package/lib/components/Layout/ProTailwindLayout.js +1 -2
  45. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  46. package/lib/components/Layout/Sidebar/Divider.d.ts +1 -31
  47. package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
  48. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  49. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
  50. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
  51. package/lib/components/Layout/Sidebar/DynamicIcon.js +51 -0
  52. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
  53. package/lib/components/Layout/Sidebar/Sidebar.d.ts +1 -12
  54. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -1
  55. package/lib/components/Layout/Sidebar/Sidebar.js +108 -92
  56. package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
  57. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -1
  58. package/lib/components/Layout/Sidebar/SidebarMenu.js +110 -20
  59. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +1 -1
  60. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  61. package/lib/components/Layout/TailwindLayout.js +29 -19
  62. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  63. package/lib/components/Layout/getPageTitle.d.ts +1 -16
  64. package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
  65. package/lib/components/Layout/getPageTitle.js +1 -1
  66. package/lib/components/Layout/getPageTitle.js.map +1 -1
  67. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
  68. package/lib/components/Layout/slot-fill/Footer.d.ts +1 -1
  69. package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
  70. package/lib/components/Layout/slot-fill/Footer.js +6 -6
  71. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  72. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
  73. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +3 -0
  74. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
  75. package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
  76. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
  77. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +3 -0
  78. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
  79. package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
  80. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
  81. package/lib/components/Layout/slot-fill/RightContent.d.ts +3 -0
  82. package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
  83. package/lib/components/Layout/slot-fill/RightContent.js +6 -0
  84. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
  85. package/lib/components/Layout/slot-fill/index.d.ts +3 -0
  86. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  87. package/lib/components/Layout/util.d.ts.map +1 -1
  88. package/lib/components/Layout/util.js +12 -0
  89. package/lib/components/Layout/util.js.map +1 -0
  90. package/lib/components/SettingDrawer/CheckBoxTheme.js +1 -1
  91. package/lib/components/SettingDrawer/LayoutChange.d.ts +1 -1
  92. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
  93. package/lib/components/SettingDrawer/LayoutChange.js +75 -17
  94. package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
  95. package/lib/components/SettingDrawer/NavigationsModes.d.ts +1 -1
  96. package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -1
  97. package/lib/components/SettingDrawer/NavigationsModes.js +18 -10
  98. package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -1
  99. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
  100. package/lib/components/SettingDrawer/RegionalSettings.js +685 -33
  101. package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
  102. package/lib/components/SettingDrawer/SettingDrawer.d.ts +1 -1
  103. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  104. package/lib/components/SettingDrawer/SettingDrawer.js +164 -39
  105. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  106. package/lib/components/SettingDrawer/WebFontsSelector.d.ts +3 -0
  107. package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +1 -0
  108. package/lib/components/SettingDrawer/WebFontsSelector.js +24 -0
  109. package/lib/components/SettingDrawer/WebFontsSelector.js.map +1 -0
  110. package/lib/components/SettingDrawer/types.d.ts +23 -2
  111. package/lib/components/SettingDrawer/types.d.ts.map +1 -1
  112. package/lib/components/ThemeProvider/ThemeProvider.d.ts +6 -16
  113. package/lib/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  114. package/lib/components/ThemeProvider/ThemeProvider.js +26 -28
  115. package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
  116. package/lib/components/ThemeProvider/ThemeToggle.js +50 -0
  117. package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -0
  118. package/lib/components/ThemeProvider/index.d.ts +2 -5
  119. package/lib/components/ThemeProvider/index.d.ts.map +1 -1
  120. package/lib/components/ThemeProvider/themes/airbnb.d.ts +3 -0
  121. package/lib/components/ThemeProvider/themes/airbnb.d.ts.map +1 -0
  122. package/lib/components/ThemeProvider/themes/airbnb.js +186 -0
  123. package/lib/components/ThemeProvider/themes/airbnb.js.map +1 -0
  124. package/lib/components/ThemeProvider/themes/default.d.ts +3 -0
  125. package/lib/components/ThemeProvider/themes/default.d.ts.map +1 -0
  126. package/lib/components/ThemeProvider/themes/default.js +183 -0
  127. package/lib/components/ThemeProvider/themes/default.js.map +1 -0
  128. package/lib/components/ThemeProvider/themes/github.d.ts +3 -0
  129. package/lib/components/ThemeProvider/themes/github.d.ts.map +1 -0
  130. package/lib/components/ThemeProvider/themes/github.js +190 -0
  131. package/lib/components/ThemeProvider/themes/github.js.map +1 -0
  132. package/lib/components/ThemeProvider/themes/index.d.ts +15 -0
  133. package/lib/components/ThemeProvider/themes/index.d.ts.map +1 -0
  134. package/lib/components/ThemeProvider/themes/index.js +7 -0
  135. package/lib/components/ThemeProvider/themes/index.js.map +1 -0
  136. package/lib/components/ThemeProvider/themes/slack.d.ts +3 -0
  137. package/lib/components/ThemeProvider/themes/slack.d.ts.map +1 -0
  138. package/lib/components/ThemeProvider/themes/slack.js +188 -0
  139. package/lib/components/ThemeProvider/themes/slack.js.map +1 -0
  140. package/lib/components/ThemeProvider/themes/spotify.d.ts +3 -0
  141. package/lib/components/ThemeProvider/themes/spotify.d.ts.map +1 -0
  142. package/lib/components/ThemeProvider/themes/spotify.js +189 -0
  143. package/lib/components/ThemeProvider/themes/spotify.js.map +1 -0
  144. package/lib/components/ThemeProvider/types.d.ts +106 -106
  145. package/lib/components/ThemeProvider/types.d.ts.map +1 -1
  146. package/lib/components/UI/CardList.d.ts +61 -0
  147. package/lib/components/UI/CardList.d.ts.map +1 -0
  148. package/lib/components/UI/CardList.js +43 -0
  149. package/lib/components/UI/CardList.js.map +1 -0
  150. package/lib/components/UI/CategoriesTypeList.d.ts +29 -0
  151. package/lib/components/UI/CategoriesTypeList.d.ts.map +1 -0
  152. package/lib/components/UI/CategoriesTypeList.js +140 -0
  153. package/lib/components/UI/CategoriesTypeList.js.map +1 -0
  154. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +83 -0
  155. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +1 -0
  156. package/lib/components/UI/LazyLoadingGoogleMarker.js +107 -0
  157. package/lib/components/UI/LazyLoadingGoogleMarker.js.map +1 -0
  158. package/lib/components/UI/Pagination.d.ts +6 -0
  159. package/lib/components/UI/Pagination.d.ts.map +1 -0
  160. package/lib/components/UI/Pagination.js +59 -0
  161. package/lib/components/UI/Pagination.js.map +1 -0
  162. package/lib/components/UI/ParamSearchResultContainer.d.ts +101 -0
  163. package/lib/components/UI/ParamSearchResultContainer.d.ts.map +1 -0
  164. package/lib/components/UI/ParamSearchResultContainer.js +120 -0
  165. package/lib/components/UI/ParamSearchResultContainer.js.map +1 -0
  166. package/lib/components/UI/PropertyCard.d.ts +24 -0
  167. package/lib/components/UI/PropertyCard.d.ts.map +1 -0
  168. package/lib/components/UI/PropertyCard.js +375 -0
  169. package/lib/components/UI/PropertyCard.js.map +1 -0
  170. package/lib/components/UI/PropertyCardOnMap.d.ts +10 -0
  171. package/lib/components/UI/PropertyCardOnMap.d.ts.map +1 -0
  172. package/lib/components/UI/PropertyCardOnMap.js +108 -0
  173. package/lib/components/UI/PropertyCardOnMap.js.map +1 -0
  174. package/lib/components/UI/VehicleCard.d.ts +15 -0
  175. package/lib/components/UI/VehicleCard.d.ts.map +1 -0
  176. package/lib/components/UI/VehicleCardList.d.ts +14 -0
  177. package/lib/components/UI/VehicleCardList.d.ts.map +1 -0
  178. package/lib/components/UI/VehicleComponents/CarCardFooter.d.ts +7 -0
  179. package/lib/components/UI/VehicleComponents/CarCardFooter.d.ts.map +1 -0
  180. package/lib/components/UI/VehicleComponents/CarCardFooter.js +61 -0
  181. package/lib/components/UI/VehicleComponents/CarCardFooter.js.map +1 -0
  182. package/lib/components/UI/VehicleComponents/CarCardImage.d.ts +9 -0
  183. package/lib/components/UI/VehicleComponents/CarCardImage.d.ts.map +1 -0
  184. package/lib/components/UI/VehicleComponents/CarCardImage.js +32 -0
  185. package/lib/components/UI/VehicleComponents/CarCardImage.js.map +1 -0
  186. package/lib/components/UI/VehicleComponents/CarCardInfo.d.ts +13 -0
  187. package/lib/components/UI/VehicleComponents/CarCardInfo.d.ts.map +1 -0
  188. package/lib/components/UI/VehicleComponents/CarCardInfo.js +49 -0
  189. package/lib/components/UI/VehicleComponents/CarCardInfo.js.map +1 -0
  190. package/lib/components/UI/VehicleComponents/index.d.ts +4 -0
  191. package/lib/components/UI/VehicleComponents/index.d.ts.map +1 -0
  192. package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +90 -0
  193. package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +1 -0
  194. package/lib/components/UI/icons/LocationIcon.d.ts +7 -0
  195. package/lib/components/UI/icons/LocationIcon.d.ts.map +1 -0
  196. package/lib/components/UI/icons/LocationIcon.js +18 -0
  197. package/lib/components/UI/icons/LocationIcon.js.map +1 -0
  198. package/lib/components/UI/icons/index.d.ts +2 -0
  199. package/lib/components/UI/icons/index.d.ts.map +1 -0
  200. package/lib/components/UI/index.d.ts +9 -0
  201. package/lib/components/UI/index.d.ts.map +1 -0
  202. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +1 -1
  203. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  204. package/lib/components/index.d.ts +4 -0
  205. package/lib/components/index.d.ts.map +1 -0
  206. package/lib/components/index.js +1 -0
  207. package/lib/components/index.js.map +1 -0
  208. package/lib/components/typings.d.ts +133 -51
  209. package/lib/components/typings.d.ts.map +1 -1
  210. package/lib/components/typings.js +6 -0
  211. package/lib/components/typings.js.map +1 -0
  212. package/lib/config/constants.d.ts +8 -0
  213. package/lib/config/constants.d.ts.map +1 -0
  214. package/lib/config/constants.js +32 -0
  215. package/lib/config/constants.js.map +1 -0
  216. package/lib/config/env-config.d.ts +15 -0
  217. package/lib/config/env-config.d.ts.map +1 -1
  218. package/lib/config/env-config.js +66 -1
  219. package/lib/config/env-config.js.map +1 -1
  220. package/lib/helpers/DynamicIcon.d.ts +7 -4
  221. package/lib/helpers/DynamicIcon.d.ts.map +1 -1
  222. package/lib/helpers/DynamicIcon.js +51 -0
  223. package/lib/helpers/DynamicIcon.js.map +1 -0
  224. package/lib/hooks/index.d.ts +6 -0
  225. package/lib/hooks/index.d.ts.map +1 -0
  226. package/lib/hooks/use-get-current-lat-long.d.ts +18 -0
  227. package/lib/hooks/use-get-current-lat-long.d.ts.map +1 -0
  228. package/lib/hooks/use-get-current-lat-long.js +29 -0
  229. package/lib/hooks/use-get-current-lat-long.js.map +1 -0
  230. package/lib/hooks/useMediaQuery.d.ts +14 -0
  231. package/lib/hooks/useMediaQuery.d.ts.map +1 -0
  232. package/lib/hooks/useMediaQuery.js +48 -0
  233. package/lib/hooks/useMediaQuery.js.map +1 -0
  234. package/lib/hooks/useScrollThreshold.d.ts +12 -0
  235. package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
  236. package/lib/hooks/useScrollThreshold.js +60 -0
  237. package/lib/hooks/useScrollThreshold.js.map +1 -0
  238. package/lib/hooks/useTailwindTheme.d.ts +34 -0
  239. package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
  240. package/lib/hooks/useTailwindTheme.js +82 -0
  241. package/lib/hooks/useTailwindTheme.js.map +1 -0
  242. package/lib/hooks/useWindowSize.d.ts +6 -0
  243. package/lib/hooks/useWindowSize.d.ts.map +1 -0
  244. package/lib/hooks/useWindowSize.js +20 -0
  245. package/lib/hooks/useWindowSize.js.map +1 -0
  246. package/lib/icons.d.ts +2 -0
  247. package/lib/icons.d.ts.map +1 -1
  248. package/lib/icons.js +3 -4
  249. package/lib/icons.js.map +1 -1
  250. package/lib/index.d.ts +3 -0
  251. package/lib/index.d.ts.map +1 -1
  252. package/lib/index.js +1 -1
  253. package/lib/index.js.map +1 -1
  254. package/lib/machines/settingsMachine.d.ts +4 -1
  255. package/lib/machines/settingsMachine.d.ts.map +1 -1
  256. package/lib/machines/settingsMachine.js +170 -120
  257. package/lib/machines/settingsMachine.js.map +1 -1
  258. package/lib/machines/types.d.ts +124 -17
  259. package/lib/machines/types.d.ts.map +1 -1
  260. package/lib/machines/types.js +5 -0
  261. package/lib/machines/types.js.map +1 -0
  262. package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +6 -0
  263. package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +1 -0
  264. package/lib/middlewares/bookingCarRentalMiddleware.d.ts +6 -0
  265. package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +1 -0
  266. package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +7 -0
  267. package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +1 -0
  268. package/lib/middlewares/datasourcesMiddleware.d.ts +6 -0
  269. package/lib/middlewares/datasourcesMiddleware.d.ts.map +1 -0
  270. package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +7 -0
  271. package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +1 -0
  272. package/lib/module.d.ts +0 -1
  273. package/lib/module.d.ts.map +1 -1
  274. package/lib/module.js +14 -15
  275. package/lib/module.js.map +1 -1
  276. package/lib/redux/index.d.ts +2 -0
  277. package/lib/redux/index.d.ts.map +1 -0
  278. package/lib/redux/searchReducer.d.ts +42 -0
  279. package/lib/redux/searchReducer.d.ts.map +1 -0
  280. package/lib/redux/searchReducer.js +64 -0
  281. package/lib/redux/searchReducer.js.map +1 -0
  282. package/lib/tailwindConfig.d.ts +42 -0
  283. package/lib/tailwindConfig.d.ts.map +1 -0
  284. package/lib/tailwindConfig.js +23 -0
  285. package/lib/tailwindConfig.js.map +1 -0
  286. package/lib/utils/formateCarData.d.ts +2 -0
  287. package/lib/utils/formateCarData.d.ts.map +1 -0
  288. package/lib/utils/menu.d.ts.map +1 -1
  289. package/lib/utils/test-utils.d.ts.map +1 -1
  290. package/lib/utils/utils/index.d.ts.map +1 -1
  291. package/package.json +6 -6
  292. package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
  293. package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
  294. package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
  295. package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
  296. package/lib/components/ThemeProvider/themeRegistry.d.ts +0 -3
  297. package/lib/components/ThemeProvider/themeRegistry.d.ts.map +0 -1
  298. package/lib/components/ThemeProvider/themeRegistry.js +0 -388
  299. package/lib/components/ThemeProvider/themeRegistry.js.map +0 -1
  300. package/lib/components/ThemeProvider/themeUtils.d.ts +0 -26
  301. package/lib/components/ThemeProvider/themeUtils.d.ts.map +0 -1
  302. package/lib/components/ThemeProvider/themeUtils.js +0 -135
  303. package/lib/components/ThemeProvider/themeUtils.js.map +0 -1
  304. package/lib/components/defaultSettings.d.ts +0 -4
  305. package/lib/components/defaultSettings.d.ts.map +0 -1
  306. package/lib/components/defaultSettings.js +0 -14
  307. package/lib/components/defaultSettings.js.map +0 -1
@@ -1,4 +1,4 @@
1
- export declare const FOOTER_SLOT_FILL_NAME = "footer-slot-fill";
1
+ export declare const FOOTER_SLOT_FILL_NAME = "footer-fill";
2
2
  export declare const FooterSlot: (props: any) => import("react/jsx-runtime").JSX.Element;
3
3
  export declare const FooterCard: (props: any) => import("react/jsx-runtime").JSX.Element;
4
4
  //# sourceMappingURL=Footer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/Footer.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD,eAAO,MAAM,UAAU,yDAEtB,CAAC;AAEF,eAAO,MAAM,UAAU,yDAEtB,CAAC"}
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/Footer.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,gBAAgB,CAAC;AAEnD,eAAO,MAAM,UAAU,GAAI,UAAK,4CAE/B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,UAAK,4CAE/B,CAAC"}
@@ -1,7 +1,7 @@
1
- import {jsx}from'react/jsx-runtime';import {Fill}from'@common-stack/components-pro';const FOOTER_SLOT_FILL_NAME = 'footer-slot-fill';
2
- const FooterCard = props => {
3
- return jsx(Fill, {
4
- ...props,
5
- name: FOOTER_SLOT_FILL_NAME
1
+ import {jsx}from'react/jsx-runtime';import {Slot}from'@common-stack/components-pro';const FOOTER_SLOT_FILL_NAME = 'footer-fill';
2
+ const FooterSlot = props => {
3
+ return jsx(Slot, {
4
+ name: FOOTER_SLOT_FILL_NAME,
5
+ fillProps: props
6
6
  });
7
- };export{FOOTER_SLOT_FILL_NAME,FooterCard};//# sourceMappingURL=Footer.js.map
7
+ };export{FOOTER_SLOT_FILL_NAME,FooterSlot};//# sourceMappingURL=Footer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Footer.js","sources":["../../../../src/components/Layout/slot-fill/Footer.tsx"],"sourcesContent":[null],"names":[],"mappings":"oFAGO,MAAM,qBAAqB,GAAG;;;;;;"}
1
+ {"version":3,"file":"Footer.js","sources":["../../../../src/components/Layout/slot-fill/Footer.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"oFAEO,MAAM,qBAAqB,GAAG;AAExB,MAAA,UAAU,GAAG,KAAC,IAAS;SACzBA,GAAA,CAAA,IAAK,EAAA;AAChB,IAAE,IAAA,EAAA,qBAAA;AAEF,IAAA,SAAa,EAAA;IACT;AACJ"}
@@ -1 +1 @@
1
- {"version":3,"file":"HeaderNotice.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/HeaderNotice.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,gBAAgB,yDAE5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,yDAE5B,CAAC"}
1
+ {"version":3,"file":"HeaderNotice.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/HeaderNotice.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,gBAAgB,GAAI,UAAK,4CAErC,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,UAAK,4CAErC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import 'reflect-metadata';
2
+ export declare const HeaderSearchBarSlot: (props: any) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=HeaderSearchBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderSearchBar.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/HeaderSearchBar.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAK1B,eAAO,MAAM,mBAAmB,GAAI,UAAK,4CAExC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import {jsx}from'react/jsx-runtime';import'reflect-metadata';import {Slot}from'@common-stack/components-pro';import {HEADER_SEARCHBAR_FILL}from'@admin-layout/client/lib/constants/layout.js';const HeaderSearchBarSlot = props => {
2
+ return jsx(Slot, {
3
+ name: HEADER_SEARCHBAR_FILL,
4
+ fillProps: props
5
+ });
6
+ };export{HeaderSearchBarSlot};//# sourceMappingURL=HeaderSearchBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderSearchBar.js","sources":["../../../../src/components/Layout/slot-fill/HeaderSearchBar.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"8LAKa,MAAA,mBAAmB,GAAG,KAAC,IAAS;SAClCA,GAAA,CAAA,IAAK,EAAA;AAChB,IAAE,IAAA,EAAA,qBAAA;;;"}
@@ -0,0 +1,3 @@
1
+ import 'reflect-metadata';
2
+ export declare const HeaderSearchButtonSlot: (props: any) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=HeaderSearchButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderSearchButton.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/HeaderSearchButton.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAK1B,eAAO,MAAM,sBAAsB,GAAI,UAAK,4CAE3C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import {jsx}from'react/jsx-runtime';import'reflect-metadata';import {Slot}from'@common-stack/components-pro';import {HEADER_SEARCH_BUTTON_FILL}from'@admin-layout/client/lib/constants/layout.js';const HeaderSearchButtonSlot = props => {
2
+ return jsx(Slot, {
3
+ name: HEADER_SEARCH_BUTTON_FILL,
4
+ fillProps: props
5
+ });
6
+ };export{HeaderSearchButtonSlot};//# sourceMappingURL=HeaderSearchButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderSearchButton.js","sources":["../../../../src/components/Layout/slot-fill/HeaderSearchButton.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"kMAKa,MAAA,sBAAsB,GAAG,KAAC,IAAS;SACrCA,GAAA,CAAA,IAAK,EAAA;AAChB,IAAE,IAAA,EAAA,yBAAA;;;"}
@@ -0,0 +1,3 @@
1
+ import 'reflect-metadata';
2
+ export declare const RightContentSlot: (props: any) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=RightContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RightContent.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/RightContent.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAK1B,eAAO,MAAM,gBAAgB,GAAI,UAAK,4CAErC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import {jsx}from'react/jsx-runtime';import'reflect-metadata';import {Slot}from'@common-stack/components-pro';import {RIGHT_CONTENT_FILL}from'@admin-layout/client/lib/constants/layout.js';const RightContentSlot = props => {
2
+ return jsx(Slot, {
3
+ name: RIGHT_CONTENT_FILL,
4
+ fillProps: props
5
+ });
6
+ };export{RightContentSlot};//# sourceMappingURL=RightContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RightContent.js","sources":["../../../../src/components/Layout/slot-fill/RightContent.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"2LAKa,MAAA,gBAAgB,GAAG,KAAC,IAAS;SAC/BA,GAAA,CAAA,IAAK,EAAA;AAChB,IAAE,IAAA,EAAA,kBAAA;;;"}
@@ -1,4 +1,7 @@
1
1
  export * from './HeaderNotice';
2
2
  export * from './Footer';
3
3
  export * from './AdditionalSettings';
4
+ export * from './HeaderSearchBar';
5
+ export * from './HeaderSearchButton';
6
+ export * from './RightContent';
4
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,oCAU5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,CAAC,CAAC,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,CAQ7F,CAAC"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,GAAI,SAAI,EAAE,WAAM,WAU5C,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,CAAC,CAAC,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,CAQ7F,CAAC"}
@@ -0,0 +1,12 @@
1
+ import {generatePath}from'react-router';/* eslint-disable import/no-extraneous-dependencies */
2
+ const generateMenuPath = (path, params) => {
3
+ try {
4
+ const generatedPath = generatePath(path, params);
5
+ return generatedPath;
6
+ } catch (err) {
7
+ // console.log('--fillParams.path', path);
8
+ // console.log('--fillParams.params', params);
9
+ // console.log('generatePath is errored due to missing orgId');
10
+ }
11
+ return null;
12
+ };export{generateMenuPath};//# sourceMappingURL=util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.js","sources":["../../../src/components/Layout/util.ts"],"sourcesContent":[null],"names":[],"mappings":"wCAAA;MAGa,gBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAI;AAC7C,EAAA,IAAA;UACU,aAAA,GAAA,YAA4B,CAAA,IAAC,QAAM,CAAA;AACzC,IAAA,OAAA;IACJ,OAAC,GAAA,EAAA;;;;;SAIA,IAAA;AACD"}
@@ -1,4 +1,4 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';const themelist = [{
1
+ import {jsx,jsxs}from'react/jsx-runtime';const themelist = [{
2
2
  key: 'light',
3
3
  title: 'Light',
4
4
  svg: jsxs("svg", {
@@ -1,3 +1,3 @@
1
1
  import { ILayoutSettingsProps } from './types';
2
- export default function LayoutChange(props: ILayoutSettingsProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function LayoutChange(props: ILayoutSettingsProps | any): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=LayoutChange.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutChange.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,oBAAoB,2CA0C/D"}
1
+ {"version":3,"file":"LayoutChange.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,oBAAoB,GAAG,GAAG,2CA2GrE"}
@@ -1,65 +1,123 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';function LayoutChange(props) {
1
+ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import'../../hooks/use-get-current-lat-long.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';function LayoutChange(props) {
2
2
  const {
3
3
  settings,
4
- changeSetting
4
+ changeSetting,
5
+ location
5
6
  } = props;
6
7
  const {
7
8
  t
8
9
  } = useTranslation('settings');
9
10
  const {
10
- layout = {},
11
+ isMobile
12
+ } = useMediaQuery();
13
+ const currentRoute = location?.pathname || '/';
14
+ const {
11
15
  navTheme
12
16
  } = settings || {};
17
+ const routeSettings = settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
18
+ const deviceType = isMobile ? 'mobile' : 'desktop';
19
+ const deviceLayout = routeSettings?.layout?.[deviceType] || {};
13
20
  const handleLayoutChange = (key, value) => {
14
21
  if (!changeSetting) return;
15
- changeSetting('layout', {
16
- ...layout,
22
+ changeSetting(`routeSettings.${currentRoute}.layout.${deviceType}`, {
23
+ ...deviceLayout,
17
24
  [key]: value
18
25
  });
19
26
  };
27
+ const textColor = {
28
+ color: navTheme === 'dark' ? '#ffff' : 'black'
29
+ };
20
30
  return jsxs("div", {
21
31
  children: [jsxs("div", {
22
32
  className: "flex items-center mt-4",
23
33
  children: [jsx("p", {
24
34
  className: "mb-0",
25
- style: {
26
- color: navTheme === 'dark' ? '#ffff' : 'black'
27
- },
35
+ style: textColor,
28
36
  children: t('fixed_header')
29
37
  }), jsx("div", {
30
38
  className: "flex-grow"
31
39
  }), jsx(Switch, {
32
- value: layout.fixedHeader,
40
+ value: deviceLayout.fixedHeader,
33
41
  onChange: checked => handleLayoutChange('fixedHeader', checked)
34
42
  })]
35
43
  }), jsxs("div", {
36
44
  className: "flex items-center mt-4",
37
45
  children: [jsx("p", {
38
46
  className: "mb-0",
39
- style: {
40
- color: navTheme === 'dark' ? '#ffff' : 'black'
41
- },
47
+ style: textColor,
42
48
  children: t('fixed_sidebar')
43
49
  }), jsx("div", {
44
50
  className: "flex-grow"
45
51
  }), jsx(Switch, {
46
- value: layout.fixedSidebar,
52
+ value: deviceLayout.fixedSidebar,
47
53
  onChange: checked => handleLayoutChange('fixedSidebar', checked)
48
54
  })]
49
55
  }), jsxs("div", {
50
56
  className: "flex items-center mt-4",
51
57
  children: [jsx("p", {
52
58
  className: "mb-0",
53
- style: {
54
- color: navTheme === 'dark' ? '#ffff' : 'black'
55
- },
59
+ style: textColor,
56
60
  children: t('split_menus')
57
61
  }), jsx("div", {
58
62
  className: "flex-grow"
59
63
  }), jsx(Switch, {
60
- value: layout.splitMenus,
64
+ value: deviceLayout.splitMenus,
61
65
  onChange: checked => handleLayoutChange('splitMenus', checked)
62
66
  })]
67
+ }), deviceLayout.splitMenus && jsxs(Fragment, {
68
+ children: [jsx("div", {
69
+ className: "mt-6 mb-2",
70
+ children: jsx("p", {
71
+ className: "text-sm font-medium",
72
+ style: textColor,
73
+ children: t('menu_divider_names')
74
+ })
75
+ }), jsxs("div", {
76
+ className: "flex flex-col space-y-4",
77
+ children: [jsxs("div", {
78
+ className: "flex flex-col",
79
+ children: [jsx("label", {
80
+ className: "text-xs mb-1",
81
+ style: textColor,
82
+ children: t('upper_menu_divider')
83
+ }), jsx("input", {
84
+ type: "text",
85
+ className: "px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",
86
+ value: deviceLayout?.upperMenuDividerName,
87
+ onChange: e => {
88
+ handleLayoutChange('upperMenuDividerName', e.target.value);
89
+ }
90
+ })]
91
+ }), jsxs("div", {
92
+ className: "flex flex-col",
93
+ children: [jsx("label", {
94
+ className: "text-xs mb-1",
95
+ style: textColor,
96
+ children: t('middle_menu_divider')
97
+ }), jsx("input", {
98
+ type: "text",
99
+ className: "px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",
100
+ value: deviceLayout?.middleMenuDividerName,
101
+ onChange: e => {
102
+ handleLayoutChange('middleMenuDividerName', e.target.value);
103
+ }
104
+ })]
105
+ }), jsxs("div", {
106
+ className: "flex flex-col",
107
+ children: [jsx("label", {
108
+ className: "text-xs mb-1",
109
+ style: textColor,
110
+ children: t('lower_menu_divider')
111
+ }), jsx("input", {
112
+ type: "text",
113
+ className: "px-3 py-2 border border-gray-300 rounded-md text-sm focus:outline-none focus:ring-2 focus:ring-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white",
114
+ value: deviceLayout?.lowerMenuDividerName,
115
+ onChange: e => {
116
+ handleLayoutChange('lowerMenuDividerName', e.target.value);
117
+ }
118
+ })]
119
+ })]
120
+ })]
63
121
  })]
64
122
  });
65
123
  }export{LayoutChange as default};//# sourceMappingURL=LayoutChange.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutChange.js","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"sourcesContent":[null],"names":[],"mappings":"2HAKwB,SAAA,YAAY,CAAC,KAA2B,EAAA;AAC5D,EAAA,MAAA;IACA,QAAQ;IACR;AAEA,GAAA,GAAA;AACI,EAAA,MAAA;;oBAEa,CAAA,UAAW,CAAA;AACpB,EAAA,MAAA;aACC,EAAA;AACJ,IAAA;AACL,GAAA,GAAE,QAAA,IAAA,EAAA;QAEK,gCAEM,KAAA;AA0BjB,IAAC,IAAA,CAAA,aAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"LayoutChange.js","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"sourcesContent":[null],"names":[],"mappings":"kVAMwB,SAAA,YAAY,CAAC,KAAiC,EAAA;QAC5D;IACN,QAAQ;AACR,IAAA,aAAgB;AAChB,IAAA;AACA,GAAA,GAAA;AACA,EAAA,MAAA;IACA;MACM,cAAA,CAAA,UAAe,CAAA;AAErB,EAAA,MAAA;AACI,IAAA;mBAA2B,EAAA;AAE3B,EAAA,MAAA,YAAA,GAA+B,QAAA,EAAA,QAAA,IAAA,GAAA;AAC3B,EAAA,MAAA;;AAEH,GAAA,GAAA,QAAE,IAAA,EAAA;AACP,EAAA,MAAE,aAAA,GAAA,QAAA,EAAA,aAAA,GAAA,YAAA,CAAA,IAAA,QAAA,EAAA,aAAA,GAAA,GAAA,CAAA,IAAA,QAAA;AAEF,EAAA,MAAA,aAAkB,QAAO,WAAe,GAAA,SAAQ;QAEzC,YAEC,GAAA,aAAA,EAAA,MAAA,GAAA,UAAc,CAAA,IAAA,EAAC;6CAiD2B;AACtB,IAAA,IAAA,CAAA,aAAA,EAAA;+CAYsB,CAAA,QAAA,EAAA;AACtB,MAAA,GAAA,YAAA;;AAaA,KAAA,CAAA;AAQhC,GAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +1,3 @@
1
1
  import { NavMenuSelectorProps } from './types';
2
- export default function NavigationModes({ changeSetting, settings }: NavMenuSelectorProps): import("react/jsx-runtime").JSX.Element;
2
+ export default function NavigationModes({ changeSetting, settings, location }: NavMenuSelectorProps): import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=NavigationsModes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationsModes.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/NavigationsModes.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA2E/C,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,oBAAoB,2CAoExF"}
1
+ {"version":3,"file":"NavigationsModes.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/NavigationsModes.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA4E/C,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,oBAAoB,2CA8ElG"}
@@ -1,4 +1,4 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';const navigationModes = [{
1
+ import {jsxs,jsx}from'react/jsx-runtime';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import'../../hooks/use-get-current-lat-long.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';const navigationModes = [{
2
2
  key: 'sidebar',
3
3
  title: 'Sidebar',
4
4
  svg: jsxs("svg", {
@@ -222,25 +222,33 @@ const menuTypes = [{
222
222
  }];
223
223
  function NavigationModes({
224
224
  changeSetting,
225
- settings
225
+ settings,
226
+ location
226
227
  }) {
228
+ const {
229
+ isMobile
230
+ } = useMediaQuery();
231
+ const currentRoute = location?.pathname || '/';
232
+ const routeSettings = settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
233
+ const deviceType = isMobile ? 'mobile' : 'desktop';
234
+ const deviceLayout = routeSettings?.layout?.[deviceType] || {};
227
235
  return jsxs("div", {
228
236
  className: "space-y-8",
229
237
  children: [jsxs("section", {
230
238
  children: [jsx("h3", {
231
239
  className: "text-sm font-medium text-gray-700 dark:text-gray-200 mb-3",
232
- children: "Navigation Mode"
240
+ children: deviceType === 'mobile' ? 'Mobile Navigation Mode' : 'Desktop Navigation Mode'
233
241
  }), jsx("div", {
234
242
  className: "flex flex-row gap-4",
235
243
  children: navigationModes.map((mode, index) => jsx("div", {
236
244
  className: "relative cursor-pointer hover:opacity-80 transition-opacity shadow-sm dark:shadow-md rounded overflow-hidden",
237
- onClick: () => changeSetting('layout', {
238
- ...settings.layout,
245
+ onClick: () => changeSetting(`routeSettings.${currentRoute}.layout.${deviceType}`, {
246
+ ...deviceLayout,
239
247
  navigationMode: mode.key
240
248
  }),
241
249
  children: jsxs("div", {
242
250
  className: "relative",
243
- children: [mode.svg, settings?.layout?.navigationMode === mode.key && jsx("svg", {
251
+ children: [mode.svg, deviceLayout?.navigationMode === mode.key && jsx("svg", {
244
252
  className: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-6 h-6 text-blue-500 pointer-events-none",
245
253
  viewBox: "0 0 24 24",
246
254
  fill: "currentColor",
@@ -254,18 +262,18 @@ function NavigationModes({
254
262
  }), jsxs("section", {
255
263
  children: [jsx("h3", {
256
264
  className: "text-sm font-medium text-gray-700 dark:text-gray-200 mb-3",
257
- children: "Menu Type"
265
+ children: deviceType === 'mobile' ? 'Mobile Menu Type' : 'Desktop Menu Type'
258
266
  }), jsx("div", {
259
267
  className: "flex flex-row gap-4",
260
268
  children: menuTypes.map((type, index) => jsx("div", {
261
269
  className: "relative cursor-pointer hover:opacity-80 transition-opacity shadow-sm dark:shadow-md rounded overflow-hidden",
262
- onClick: () => changeSetting('layout', {
263
- ...settings.layout,
270
+ onClick: () => changeSetting(`routeSettings.${currentRoute}.layout.${deviceType}`, {
271
+ ...deviceLayout,
264
272
  sideMenuType: type.key
265
273
  }),
266
274
  children: jsxs("div", {
267
275
  className: "relative",
268
- children: [type.svg, settings?.layout?.sideMenuType === type.key && jsx("svg", {
276
+ children: [type.svg, deviceLayout?.sideMenuType === type.key && jsx("svg", {
269
277
  className: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-6 h-6 text-blue-500 pointer-events-none",
270
278
  viewBox: "0 0 24 24",
271
279
  fill: "currentColor",
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationsModes.js","sources":["../../../src/components/SettingDrawer/NavigationsModes.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"yCAGA,MAAM,eAAe,GAAG,CAAA;AACpB,EAAA,GAAA,EAAA,SAAA;AACI,EAAA,KAAA,EAAA,SAAc;AACd,EAAA,GAAA,EAAAA,IAAA,CAAK,KAAW,EAAA;AAChB,IAAA,KAAA,EAAG,IACM;AAQZ,IAAA,MAAA,EAAA,IAAA;AACD,IAAA,OAAA,EAAA,WAAA;AACI,IAAA,KAAA,EAAG,4BAAU;AACb,IAAA,QAAA,GAAOC,GAAS,CAAA,MAAA,EAAA;AAChB,MAAA,KAAG,EAAE,IACI;AAQZ,MAAA,MAAA,EAAA,IAAA;AACD,MAAA,EAAA,EAAA,GAAA;AACI,MAAA,IAAA;AACA,KAAA,CAAA,EAAAA,GAAA,CAAK,MAAS,EAAA;SACX,GAAA;AAaN,MAAA,CAAA,EAAA,GAAA;MACH,KAAA,EAAA,IAAA;AAEF,MAAM,YAAY;AACd,MAAA,IAAA,EAAA;AACI,KAAA,CAAA,EAAAA,IAAK,MAAS,EAAA;AACd,MAAA,CAAA,EAAA,GAAA;SACG,GAAA;AAQN,MAAA,KAAA,EAAA,IAAA;AACD,MAAA,MAAA,EAAA,GAAA;AACI,MAAA,EAAA,EAAA,GAAK;AACL,MAAA,IAAA,EAAA;QACAA,GAAG,CAAE,MACD,EAAA;AAOP,MAAA,CAAA,EAAA,GAAA;MACH,CAAA,EAAA,IAAA;AAEF,MAAM,WAAkB;AACpB,MAAA,MACI,EAAK,GAAA;;;AAaoB,MAAA,OAAA,EAAA;;;;AAqDjC,MAAC,KAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"NavigationsModes.js","sources":["../../../src/components/SettingDrawer/NavigationsModes.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"uPAIA,MAAM,eAAe,GAAG,CAAA;AACpB,EAAA,GAAA,EAAA,SAAA;AACI,EAAA,KAAA,EAAA,SAAc;AACd,EAAA,GAAA,EAAAA,IAAA,CAAK,KAAW,EAAA;AAChB,IAAA,KAAA,EAAG,IACM;AAQZ,IAAA,MAAA,EAAA,IAAA;AACD,IAAA,OAAA,EAAA,WAAA;AACI,IAAA,KAAA,EAAG,4BAAU;AACb,IAAA,QAAA,GAAOC,GAAS,CAAA,MAAA,EAAA;AAChB,MAAA,KAAG,EAAE,IACI;AAQZ,MAAA,MAAA,EAAA,IAAA;AACD,MAAA,EAAA,EAAA,GAAA;AACI,MAAA,IAAA;AACA,KAAA,CAAA,EAAAA,GAAA,CAAK,MAAS,EAAA;SACX,GAAA;AAaN,MAAA,CAAA,EAAA,GAAA;MACH,KAAA,EAAA,IAAA;AAEF,MAAM,YAAY;AACd,MAAA,IAAA,EAAA;AACI,KAAA,CAAA,EAAAA,IAAK,MAAS,EAAA;AACd,MAAA,CAAA,EAAA,GAAA;SACG,GAAA;AAQN,MAAA,KAAA,EAAA,IAAA;AACD,MAAA,MAAA,EAAA,GAAA;AACI,MAAA,EAAA,EAAA,GAAK;AACL,MAAA,IAAA,EAAA;QACAA,GAAG,CAAE,MACD,EAAA;AAOP,MAAA,CAAA,EAAA,GAAA;MACH,CAAA,EAAA,IAAA;AAEF,MAAM,KAAQ,EAAA,IAAA;AACV,MAAA,MAAQ,EAAQ,GAAA;AAChB,MAAA,EAAA,EAAM;AACN,MAAA,IAAM;MACA,OAAA,EAAA;KACA,CAAA,EAAAA,GAAA,CAAA,MAAA,EAAA;MAEC,CAAA,EAAA,GACH;AAa4B,MAAA,CAAA,EAAA,IAAA;;;AAkCA,MAAA,EAAA,EAAA,GAAA;;;AAuBpC,KAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"RegionalSettings.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/RegionalSettings.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK,EAAE,sBAAsB,2CAiDrE"}
1
+ {"version":3,"file":"RegionalSettings.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/RegionalSettings.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAKjD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK,EAAE,sBAAsB,2CAgoBrE"}