@admin-layout/tailwind-design-pro 11.0.4-alpha.4 → 12.0.16-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 (315) hide show
  1. package/README.md +401 -1
  2. package/lib/cdm-locales/en/settings.json +40 -1
  3. package/lib/cdm-locales/es/settings.json +42 -3
  4. package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
  5. package/lib/components/LanguageMenu/LanguageMenu.js +8 -18
  6. package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
  7. package/lib/components/Layout/BasicLayout/index.d.ts +1 -8
  8. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  9. package/lib/components/Layout/BasicLayout/index.js +141 -64
  10. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  11. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
  12. package/lib/components/Layout/BasicLayout/utils.js +1 -14
  13. package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
  14. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
  15. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  16. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  17. package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
  18. package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
  19. package/lib/components/Layout/GlobalHeader/Header.d.ts +1 -14
  20. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  21. package/lib/components/Layout/GlobalHeader/Header.js +78 -53
  22. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  23. package/lib/components/Layout/GlobalHeader/Logo.d.ts +4 -0
  24. package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +1 -0
  25. package/lib/components/Layout/GlobalHeader/Logo.js +141 -0
  26. package/lib/components/Layout/GlobalHeader/Logo.js.map +1 -0
  27. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +6 -0
  28. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
  29. package/lib/components/Layout/GlobalHeader/MainHeader.js +228 -0
  30. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
  31. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
  32. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
  33. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +4 -4
  34. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  35. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +2 -16
  36. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  37. package/lib/components/Layout/GlobalHeader/RightContent.js +23 -0
  38. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -0
  39. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
  40. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
  41. package/lib/components/Layout/GlobalHeader/RightMenu.js +274 -0
  42. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
  43. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts +9 -0
  44. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -0
  45. package/lib/components/Layout/GlobalHeader/SearchBar.js +118 -0
  46. package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -0
  47. package/lib/components/Layout/GlobalHeader/index.d.ts +4 -0
  48. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
  49. package/lib/components/Layout/ProTailwindLayout.d.ts +2 -0
  50. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  51. package/lib/components/Layout/ProTailwindLayout.js +7 -3
  52. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  53. package/lib/components/Layout/Sidebar/Divider.d.ts +1 -31
  54. package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
  55. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  56. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
  57. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
  58. package/lib/components/Layout/Sidebar/DynamicIcon.js +51 -0
  59. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
  60. package/lib/components/Layout/Sidebar/Sidebar.d.ts +1 -11
  61. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -1
  62. package/lib/components/Layout/Sidebar/Sidebar.js +117 -78
  63. package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
  64. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +3 -5
  65. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -1
  66. package/lib/components/Layout/Sidebar/SidebarMenu.js +132 -45
  67. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +1 -1
  68. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  69. package/lib/components/Layout/TailwindLayout.js +34 -14
  70. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  71. package/lib/components/Layout/getPageTitle.d.ts +1 -16
  72. package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
  73. package/lib/components/Layout/getPageTitle.js +1 -1
  74. package/lib/components/Layout/getPageTitle.js.map +1 -1
  75. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +4 -0
  76. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -0
  77. package/lib/components/Layout/slot-fill/AdditionalSettings.js +7 -0
  78. package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -0
  79. package/lib/components/Layout/slot-fill/Footer.d.ts +1 -1
  80. package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
  81. package/lib/components/Layout/slot-fill/Footer.js +6 -6
  82. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  83. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
  84. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +3 -0
  85. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
  86. package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
  87. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
  88. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +3 -0
  89. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
  90. package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
  91. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
  92. package/lib/components/Layout/slot-fill/RightContent.d.ts +3 -0
  93. package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
  94. package/lib/components/Layout/slot-fill/RightContent.js +6 -0
  95. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
  96. package/lib/components/Layout/slot-fill/index.d.ts +4 -0
  97. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  98. package/lib/components/Layout/util.d.ts.map +1 -1
  99. package/lib/components/Layout/util.js +12 -0
  100. package/lib/components/Layout/util.js.map +1 -0
  101. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +1 -6
  102. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +1 -1
  103. package/lib/components/SettingDrawer/CheckBoxTheme.js +106 -31
  104. package/lib/components/SettingDrawer/CheckBoxTheme.js.map +1 -1
  105. package/lib/components/SettingDrawer/InvitationSettings.d.ts +3 -0
  106. package/lib/components/SettingDrawer/InvitationSettings.d.ts.map +1 -0
  107. package/lib/components/SettingDrawer/InvitationSettings.js +79 -0
  108. package/lib/components/SettingDrawer/InvitationSettings.js.map +1 -0
  109. package/lib/components/SettingDrawer/LayoutChange.d.ts +2 -6
  110. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
  111. package/lib/components/SettingDrawer/LayoutChange.js +84 -30
  112. package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
  113. package/lib/components/SettingDrawer/NavigationsModes.d.ts +3 -0
  114. package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -0
  115. package/lib/components/SettingDrawer/NavigationsModes.js +289 -0
  116. package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -0
  117. package/lib/components/SettingDrawer/RegionalSettings.d.ts +1 -6
  118. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
  119. package/lib/components/SettingDrawer/RegionalSettings.js +696 -51
  120. package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
  121. package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -25
  122. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  123. package/lib/components/SettingDrawer/SettingDrawer.js +249 -113
  124. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  125. package/lib/components/SettingDrawer/Switch/index.d.ts +2 -8
  126. package/lib/components/SettingDrawer/Switch/index.d.ts.map +1 -1
  127. package/lib/components/SettingDrawer/Switch/index.js +17 -34
  128. package/lib/components/SettingDrawer/Switch/index.js.map +1 -1
  129. package/lib/components/SettingDrawer/ThemeColor.d.ts +1 -6
  130. package/lib/components/SettingDrawer/ThemeColor.d.ts.map +1 -1
  131. package/lib/components/SettingDrawer/ThemeColor.js +3 -0
  132. package/lib/components/SettingDrawer/ThemeColor.js.map +1 -1
  133. package/lib/components/SettingDrawer/ThemeSelector.d.ts +3 -0
  134. package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +1 -0
  135. package/lib/components/SettingDrawer/ThemeSelector.js +18 -0
  136. package/lib/components/SettingDrawer/ThemeSelector.js.map +1 -0
  137. package/lib/components/SettingDrawer/WebFontsSelector.d.ts +3 -0
  138. package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +1 -0
  139. package/lib/components/SettingDrawer/WebFontsSelector.js +24 -0
  140. package/lib/components/SettingDrawer/WebFontsSelector.js.map +1 -0
  141. package/lib/components/SettingDrawer/types.d.ts +91 -0
  142. package/lib/components/SettingDrawer/types.d.ts.map +1 -0
  143. package/lib/components/UI/CardList.d.ts +61 -0
  144. package/lib/components/UI/CardList.d.ts.map +1 -0
  145. package/lib/components/UI/CardList.js +43 -0
  146. package/lib/components/UI/CardList.js.map +1 -0
  147. package/lib/components/UI/CategoriesTypeList.d.ts +29 -0
  148. package/lib/components/UI/CategoriesTypeList.d.ts.map +1 -0
  149. package/lib/components/UI/CategoriesTypeList.js +139 -0
  150. package/lib/components/UI/CategoriesTypeList.js.map +1 -0
  151. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +83 -0
  152. package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +1 -0
  153. package/lib/components/UI/LazyLoadingGoogleMarker.js +107 -0
  154. package/lib/components/UI/LazyLoadingGoogleMarker.js.map +1 -0
  155. package/lib/components/UI/Pagination.d.ts +6 -0
  156. package/lib/components/UI/Pagination.d.ts.map +1 -0
  157. package/lib/components/UI/Pagination.js +56 -0
  158. package/lib/components/UI/Pagination.js.map +1 -0
  159. package/lib/components/UI/ParamSearchResultContainer.d.ts +99 -0
  160. package/lib/components/UI/ParamSearchResultContainer.d.ts.map +1 -0
  161. package/lib/components/UI/ParamSearchResultContainer.js +120 -0
  162. package/lib/components/UI/ParamSearchResultContainer.js.map +1 -0
  163. package/lib/components/UI/PropertyCard.d.ts +24 -0
  164. package/lib/components/UI/PropertyCard.d.ts.map +1 -0
  165. package/lib/components/UI/PropertyCard.js +420 -0
  166. package/lib/components/UI/PropertyCard.js.map +1 -0
  167. package/lib/components/UI/PropertyCardOnMap.d.ts +10 -0
  168. package/lib/components/UI/PropertyCardOnMap.d.ts.map +1 -0
  169. package/lib/components/UI/PropertyCardOnMap.js +108 -0
  170. package/lib/components/UI/PropertyCardOnMap.js.map +1 -0
  171. package/lib/components/UI/VehicleCard/PricePopover.d.ts +8 -0
  172. package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +1 -0
  173. package/lib/components/UI/VehicleCard/PricePopover.js +98 -0
  174. package/lib/components/UI/VehicleCard/PricePopover.js.map +1 -0
  175. package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +7 -0
  176. package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +1 -0
  177. package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +9 -0
  178. package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +1 -0
  179. package/lib/components/UI/VehicleCard/VehicleFeature.js +22 -0
  180. package/lib/components/UI/VehicleCard/VehicleFeature.js.map +1 -0
  181. package/lib/components/UI/VehicleCard/types.d.ts +59 -0
  182. package/lib/components/UI/VehicleCard/types.d.ts.map +1 -0
  183. package/lib/components/UI/VehicleCard.d.ts +15 -0
  184. package/lib/components/UI/VehicleCard.d.ts.map +1 -0
  185. package/lib/components/UI/VehicleCard.js +166 -0
  186. package/lib/components/UI/VehicleCard.js.map +1 -0
  187. package/lib/components/UI/VehicleCardList.d.ts +14 -0
  188. package/lib/components/UI/VehicleCardList.d.ts.map +1 -0
  189. package/lib/components/UI/VehicleCardList.js +38 -0
  190. package/lib/components/UI/VehicleCardList.js.map +1 -0
  191. package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +90 -0
  192. package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +1 -0
  193. package/lib/components/UI/icons/LocationIcon.d.ts +7 -0
  194. package/lib/components/UI/icons/LocationIcon.d.ts.map +1 -0
  195. package/lib/components/UI/icons/LocationIcon.js +18 -0
  196. package/lib/components/UI/icons/LocationIcon.js.map +1 -0
  197. package/lib/components/UI/icons/index.d.ts +2 -0
  198. package/lib/components/UI/icons/index.d.ts.map +1 -0
  199. package/lib/components/UI/index.d.ts +10 -0
  200. package/lib/components/UI/index.d.ts.map +1 -0
  201. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +11 -1
  202. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  203. package/lib/components/index.d.ts +3 -0
  204. package/lib/components/index.d.ts.map +1 -0
  205. package/lib/components/index.js +1 -0
  206. package/lib/components/index.js.map +1 -0
  207. package/lib/components/typings.d.ts +139 -49
  208. package/lib/components/typings.d.ts.map +1 -1
  209. package/lib/components/typings.js +6 -0
  210. package/lib/components/typings.js.map +1 -0
  211. package/lib/compute.d.ts.map +1 -1
  212. package/lib/compute.js +6 -4
  213. package/lib/compute.js.map +1 -1
  214. package/lib/config/analytics-config.d.ts +59 -0
  215. package/lib/config/analytics-config.d.ts.map +1 -0
  216. package/lib/config/constants.d.ts +8 -0
  217. package/lib/config/constants.d.ts.map +1 -0
  218. package/lib/config/constants.js +32 -0
  219. package/lib/config/constants.js.map +1 -0
  220. package/lib/config/env-config.d.ts +18 -0
  221. package/lib/config/env-config.d.ts.map +1 -1
  222. package/lib/config/env-config.js +76 -1
  223. package/lib/config/env-config.js.map +1 -1
  224. package/lib/config/index.d.ts +3 -0
  225. package/lib/config/index.d.ts.map +1 -0
  226. package/lib/helpers/DynamicIcon.d.ts +7 -4
  227. package/lib/helpers/DynamicIcon.d.ts.map +1 -1
  228. package/lib/helpers/DynamicIcon.js +51 -0
  229. package/lib/helpers/DynamicIcon.js.map +1 -0
  230. package/lib/hooks/index.d.ts +6 -0
  231. package/lib/hooks/index.d.ts.map +1 -0
  232. package/lib/hooks/use-get-current-lat-long.d.ts +18 -0
  233. package/lib/hooks/use-get-current-lat-long.d.ts.map +1 -0
  234. package/lib/hooks/use-get-current-lat-long.js +29 -0
  235. package/lib/hooks/use-get-current-lat-long.js.map +1 -0
  236. package/lib/hooks/useMediaQuery.d.ts +14 -0
  237. package/lib/hooks/useMediaQuery.d.ts.map +1 -0
  238. package/lib/hooks/useMediaQuery.js +48 -0
  239. package/lib/hooks/useMediaQuery.js.map +1 -0
  240. package/lib/hooks/useScrollThreshold.d.ts +12 -0
  241. package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
  242. package/lib/hooks/useScrollThreshold.js +60 -0
  243. package/lib/hooks/useScrollThreshold.js.map +1 -0
  244. package/lib/hooks/useTailwindTheme.d.ts +34 -0
  245. package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
  246. package/lib/hooks/useTailwindTheme.js +82 -0
  247. package/lib/hooks/useTailwindTheme.js.map +1 -0
  248. package/lib/hooks/useWindowSize.d.ts +6 -0
  249. package/lib/hooks/useWindowSize.d.ts.map +1 -0
  250. package/lib/hooks/useWindowSize.js +20 -0
  251. package/lib/hooks/useWindowSize.js.map +1 -0
  252. package/lib/icons.d.ts +16 -0
  253. package/lib/icons.d.ts.map +1 -0
  254. package/lib/icons.js +12 -0
  255. package/lib/icons.js.map +1 -0
  256. package/lib/index.d.ts +2 -3
  257. package/lib/index.d.ts.map +1 -1
  258. package/lib/index.js +1 -1
  259. package/lib/index.js.map +1 -1
  260. package/lib/machines/settingsMachine.d.ts +6 -0
  261. package/lib/machines/settingsMachine.d.ts.map +1 -0
  262. package/lib/machines/settingsMachine.js +206 -0
  263. package/lib/machines/settingsMachine.js.map +1 -0
  264. package/lib/machines/types.d.ts +174 -0
  265. package/lib/machines/types.d.ts.map +1 -0
  266. package/lib/machines/types.js +5 -0
  267. package/lib/machines/types.js.map +1 -0
  268. package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +6 -0
  269. package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +1 -0
  270. package/lib/middlewares/bookingCarRentalMiddleware.d.ts +6 -0
  271. package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +1 -0
  272. package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +7 -0
  273. package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +1 -0
  274. package/lib/middlewares/datasourcesMiddleware.d.ts +6 -0
  275. package/lib/middlewares/datasourcesMiddleware.d.ts.map +1 -0
  276. package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +7 -0
  277. package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +1 -0
  278. package/lib/module.d.ts +0 -1
  279. package/lib/module.d.ts.map +1 -1
  280. package/lib/module.js +14 -15
  281. package/lib/module.js.map +1 -1
  282. package/lib/redux/index.d.ts +2 -0
  283. package/lib/redux/index.d.ts.map +1 -0
  284. package/lib/redux/searchReducer.d.ts +42 -0
  285. package/lib/redux/searchReducer.d.ts.map +1 -0
  286. package/lib/redux/searchReducer.js +64 -0
  287. package/lib/redux/searchReducer.js.map +1 -0
  288. package/lib/routes.json +1 -0
  289. package/lib/styles/index.css +667 -45
  290. package/lib/tailwindConfig.d.ts +100 -0
  291. package/lib/tailwindConfig.d.ts.map +1 -0
  292. package/lib/tailwindConfig.js +101 -0
  293. package/lib/tailwindConfig.js.map +1 -0
  294. package/lib/utils/analytics-utils.d.ts +43 -0
  295. package/lib/utils/analytics-utils.d.ts.map +1 -0
  296. package/lib/utils/analytics.d.ts +48 -0
  297. package/lib/utils/analytics.d.ts.map +1 -0
  298. package/lib/utils/formateCarData.d.ts +2 -0
  299. package/lib/utils/formateCarData.d.ts.map +1 -0
  300. package/lib/utils/menu.d.ts.map +1 -1
  301. package/lib/utils/test-utils.d.ts.map +1 -1
  302. package/lib/utils/utils/index.d.ts.map +1 -1
  303. package/package.json +7 -5
  304. package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
  305. package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
  306. package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
  307. package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
  308. package/lib/components/defaultSettings.d.ts +0 -4
  309. package/lib/components/defaultSettings.d.ts.map +0 -1
  310. package/lib/components/defaultSettings.js +0 -14
  311. package/lib/components/defaultSettings.js.map +0 -1
  312. package/lib/utils/index.d.ts +0 -2
  313. package/lib/utils/index.d.ts.map +0 -1
  314. package/lib/utils/index.js +0 -13
  315. package/lib/utils/index.js.map +0 -1
@@ -18,7 +18,7 @@ const getPageTitleInfo = (props, ignoreTile) => {
18
18
  locale: false
19
19
  }
20
20
  } = props;
21
- const pageTitle = title || '';
21
+ const pageTitle = ignoreTile ? '' : title || '';
22
22
  const currRouterData = matchParamsPath(pathname, breadcrumb, breadcrumbMap);
23
23
  if (!currRouterData) {
24
24
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"getPageTitle.js","sources":["../../../src/components/Layout/getPageTitle.ts"],"sourcesContent":[null],"names":[],"mappings":"yCAca,MAAA,eAAe,GAAG,CAC3B,QAAgB,EAChB,UAA6C,EAC7C,aAAyC,KAC3B;;MAEV,aAAA,EAAa;UACP,OAAA,GAAA,CAAO,GAAG,aAAI,CAAA,IAAc,EAAA,CAAA,CAAI,IAAI,CAAA,GAAI,IAAK,YAAiB,CAAA,GAAA,CAAA,CAAA,IAAI,CAAC,QAAM,CAAA,CAAA;QAC/E,OAAI,EAAA;AACA,MAAA,OAAA,yBAAyB,CAAA;;;AAGrC;AAEA,MAAM,gBAAgB,GAAG,CACrB,KAAwB,EACxB,UAAoB,KAQpB;AACA,EAAA,MAAA;AAOQ,IAAA,QAAA,MAAa;;AAGrB,IAAA,aAAe;IACf,aAAM;IACN,KAAK,GAAc,gBAAG;QAClB,GAAO;AACH,MAAA,MAAA,EAAA;AACA;AACA,GAAA,GAAA,KAAA;iBACF,GAAA,KAAA,IAAA,EAAA;QACL,cAAA,GAAA,eAAA,CAAA,QAAA,EAAA,UAAA,EAAA,aAAA,CAAA;AACD,EAAA,IAAA,CAAA,cAA6B,EAAA;AAE7B,IAAA,OAAQ;WACI,EAAA;AACJ,MAAA,EAAA,EAAA,EAAA;cACc,EAAA;AACjB,KAAA;;MAGD,QAAS,GAAA,cAAG,CAAA,IAAA;UACL,CAAA,MAAA,KAAA,KAAA,IAAA,cAAA,CAAA,MAAA,IAAA,aAAA,EAAA;AACH,IAAA,QAAA,GAAA,aAAgB,CAAA;AAChB,MAAA,EAAA,EAAA,cAAI,CAAA,MAAe,IAAA,EAAM;AACzB,MAAA,cAAQ,EAAE,cAAS,CAAA;;;AAG3B,EAAA,IAAA,CAAA,QAAc,EAAA;WACH;AACH,MAAA,KAAA,EAAA,SAAe;AACf,MAAA,EAAA,EAAA,cAAI,CAAA,MAAe,IAAA,EAAM;cACjB,EAAA;;;MAGT,CAAA,KAAA,EAAA;AACH,IAAA,OAAA;AACA,MAAA,KAAI,EAAA,QAAA;QACJ,EAAQ,cAAA,CAAA,MAAA,IAAA,EAAA;MACV;AACN,KAAE;AAEF;;;;;;"}
1
+ {"version":3,"file":"getPageTitle.js","sources":["../../../src/components/Layout/getPageTitle.ts"],"sourcesContent":[null],"names":[],"mappings":"yCAGa,MAAA,eAAe,GAAG,CAC3B,QAAgB,EAChB,UAA6C,EAC7C,aAAyC,KAC3B;;MAEV,aAAA,EAAa;UACP,OAAA,GAAA,CAAO,GAAG,aAAI,CAAA,IAAc,EAAA,CAAA,CAAI,IAAI,CAAA,GAAI,IAAK,YAAiB,CAAA,GAAA,CAAA,CAAA,IAAI,CAAC,QAAM,CAAA,CAAA;QAC/E,OAAI,EAAA;AACA,MAAA,OAAA,yBAAyB,CAAA;;;AAGrC;AAEA,MAAM,gBAAgB,GAAG,CACrB,KAAwB,EACxB,UAAoB,KAQpB;AACA,EAAA,MAAA;AAOQ,IAAA,QAAA,MAAa;;AAGrB,IAAA,aAAe;IACf,aAAM;IACN,KAAK,GAAc,gBAAG;QAClB,GAAO;AACH,MAAA,MAAA,EAAA;AACA;AACA,GAAA,GAAA,KAAA;iBACF,GAAA,UAAA,GAAA,EAAA,GAAA,KAAA,IAAA,EAAA;QACL,cAAA,GAAA,eAAA,CAAA,QAAA,EAAA,UAAA,EAAA,aAAA,CAAA;AACD,EAAA,IAAA,CAAA,cAA6B,EAAA;AAE7B,IAAA,OAAQ;WACI,EAAA;AACJ,MAAA,EAAA,EAAA,EAAA;cACc,EAAA;AACjB,KAAA;;MAGD,QAAS,GAAA,cAAG,CAAA,IAAA;UACL,CAAA,MAAA,KAAA,KAAA,IAAA,cAAA,CAAA,MAAA,IAAA,aAAA,EAAA;AACH,IAAA,QAAA,GAAA,aAAgB,CAAA;AAChB,MAAA,EAAA,EAAA,cAAI,CAAA,MAAe,IAAA,EAAM;AACzB,MAAA,cAAQ,EAAE,cAAS,CAAA;;;AAG3B,EAAA,IAAA,CAAA,QAAc,EAAA;WACH;AACH,MAAA,KAAA,EAAA,SAAe;AACf,MAAA,EAAA,EAAA,cAAI,CAAA,MAAe,IAAA,EAAM;cACjB,EAAA;;;MAGT,CAAA,KAAA,EAAA;AACH,IAAA,OAAA;AACA,MAAA,KAAI,EAAA,QAAA;QACJ,EAAQ,cAAA,CAAA,MAAA,IAAA,EAAA;MACV;AACN,KAAE;AAEF;;;;;;"}
@@ -0,0 +1,4 @@
1
+ export declare const ADDITIONAL_SETTINGS_SLOT_FILL_NAME = "additional_settings_slot_fill";
2
+ export declare const AdditionalSettingsSlot: (props: any) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const AdditionalSettingsFillCard: (props: any) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=AdditionalSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdditionalSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/AdditionalSettings.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,kCAAkC,kCAAkC,CAAC;AAElF,eAAO,MAAM,sBAAsB,GAAI,UAAK,4CAE3C,CAAC;AAEF,eAAO,MAAM,0BAA0B,GAAI,UAAK,4CAE/C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import {jsx}from'react/jsx-runtime';import {Slot}from'@common-stack/components-pro';const ADDITIONAL_SETTINGS_SLOT_FILL_NAME = 'additional_settings_slot_fill';
2
+ const AdditionalSettingsSlot = props => {
3
+ return jsx(Slot, {
4
+ name: ADDITIONAL_SETTINGS_SLOT_FILL_NAME,
5
+ fillProps: props
6
+ });
7
+ };export{ADDITIONAL_SETTINGS_SLOT_FILL_NAME,AdditionalSettingsSlot};//# sourceMappingURL=AdditionalSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdditionalSettings.js","sources":["../../../../src/components/Layout/slot-fill/AdditionalSettings.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":"oFAIO,MAAM,kCAAkC,GAAG;AAErC,MAAA,sBAAsB,GAAG,KAAC,IAAS;SACrCA,GAAA,CAAA,IAAK,EAAA;AAChB,IAAE,IAAA,EAAA,kCAAA;AAEF,IAAA,SAAa,EAAA;IACT;AACJ"}
@@ -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,3 +1,7 @@
1
1
  export * from './HeaderNotice';
2
2
  export * from './Footer';
3
+ export * from './AdditionalSettings';
4
+ export * from './HeaderSearchBar';
5
+ export * from './HeaderSearchButton';
6
+ export * from './RightContent';
3
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"}
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,8 +1,3 @@
1
- type ICheckboxThemeProps = {
2
- list?: any[];
3
- changeSetting?: (key: string, value: string | boolean | any) => void;
4
- settings?: any;
5
- };
1
+ import { ICheckboxThemeProps } from './types';
6
2
  export default function CheckBoxTheme(props: ICheckboxThemeProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
8
3
  //# sourceMappingURL=CheckBoxTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckBoxTheme.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"names":[],"mappings":"AAEA,KAAK,mBAAmB,GAAG;IACvB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,KAAK,IAAI,CAAC;IACrE,QAAQ,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,mBAAmB,2CA+C/D"}
1
+ {"version":3,"file":"CheckBoxTheme.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAsD9C,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,mBAAmB,2CAiC/D"}
@@ -1,47 +1,122 @@
1
- import {jsx,jsxs}from'react/jsx-runtime';function CheckBoxTheme(props) {
1
+ import {jsx,jsxs}from'react/jsx-runtime';const themelist = [{
2
+ key: 'light',
3
+ title: 'Light',
4
+ svg: jsxs("svg", {
5
+ width: "58",
6
+ height: "50",
7
+ viewBox: "0 0 58 50",
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ children: [jsx("defs", {
10
+ children: jsx("filter", {
11
+ id: "softShadow",
12
+ x: "-20%",
13
+ y: "-20%",
14
+ width: "140%",
15
+ height: "140%",
16
+ children: jsx("feDropShadow", {
17
+ dx: "0",
18
+ dy: "2",
19
+ stdDeviation: "4",
20
+ floodColor: "#000000",
21
+ floodOpacity: "0.1"
22
+ })
23
+ })
24
+ }), jsx("rect", {
25
+ x: "0",
26
+ y: "0",
27
+ width: "58",
28
+ height: "50",
29
+ rx: "8",
30
+ fill: "#ffffff",
31
+ filter: "url(#softShadow)"
32
+ })]
33
+ })
34
+ }, {
35
+ key: 'realDark',
36
+ title: 'realDark',
37
+ svg: jsxs("svg", {
38
+ width: "58",
39
+ height: "50",
40
+ viewBox: "0 0 58 50",
41
+ xmlns: "http://www.w3.org/2000/svg",
42
+ children: [jsx("rect", {
43
+ x: "0",
44
+ y: "0",
45
+ width: "58",
46
+ height: "50",
47
+ rx: "8",
48
+ fill: "#ffffff"
49
+ }), jsx("path", {
50
+ d: "M0,8\n A8,8 0 0 1 8,0\n H18\n V50\n H8\n A8,8 0 0 1 0,42\n Z",
51
+ fill: "#011627"
52
+ })]
53
+ })
54
+ }, {
55
+ key: 'dark',
56
+ title: 'Dark',
57
+ svg: jsxs("svg", {
58
+ width: "58",
59
+ height: "50",
60
+ viewBox: "0 0 58 50",
61
+ xmlns: "http://www.w3.org/2000/svg",
62
+ children: [jsx("rect", {
63
+ width: "58",
64
+ height: "50",
65
+ rx: "8",
66
+ fill: "#000000"
67
+ }), jsx("clipPath", {
68
+ id: "roundedClip",
69
+ children: jsx("rect", {
70
+ width: "58",
71
+ height: "50",
72
+ rx: "8"
73
+ })
74
+ }), jsxs("g", {
75
+ clipPath: "url(#roundedClip)",
76
+ children: [jsx("rect", {
77
+ x: "0",
78
+ y: "13",
79
+ width: "29",
80
+ height: "37",
81
+ fill: "#0d1117"
82
+ }), jsx("rect", {
83
+ x: "29",
84
+ y: "13",
85
+ width: "29",
86
+ height: "37",
87
+ fill: "#233445"
88
+ })]
89
+ })]
90
+ })
91
+ }];
92
+ function CheckBoxTheme(props) {
2
93
  const {
3
94
  list,
4
95
  changeSetting,
5
96
  settings
6
97
  } = props;
7
98
  return jsx("div", {
8
- className: "flex flex-row",
9
- children: list.map((themeItems, index) => {
10
- return jsxs("div", {
11
- className: "w-16 h-12 shadow-sm rounded cursor-pointer",
99
+ className: "flex flex-row gap-4",
100
+ children: themelist.map((themeItems, index) => {
101
+ return jsx("div", {
102
+ className: "relative cursor-pointer hover:opacity-80 transition-opacity",
12
103
  style: {
13
104
  boxShadow: '0 1px 2.5px 0 rgb(0 0 0 / 18%)'
14
105
  },
15
106
  onClick: () => {
16
107
  changeSetting('navTheme', themeItems.key);
17
- changeSetting('primaryColor', settings.primaryColor);
108
+ changeSetting('primaryColor', settings?.primaryColor);
18
109
  },
19
- children: [jsx("div", {
20
- className: "h-3/10 rounded-t",
21
- style: {
22
- backgroundColor: themeItems.key == 'dark' ? 'rgba(6,25,45,1)' : '#ffff'
23
- }
24
- }), jsxs("div", {
25
- className: "flex h-7/10",
26
- children: [jsx("div", {
27
- className: "w-3/10 rounded-bl",
28
- style: {
29
- backgroundColor: themeItems.key === 'dark' ? 'rgba(13,32,51,1)' : '#ffff'
30
- }
31
- }), jsx("div", {
32
- className: "w-7/10 rounded-br",
33
- style: {
34
- backgroundColor: themeItems.key == 'dark' ? 'rgba(38,55,72,1)' : '#f0f2f5'
35
- }
110
+ children: jsxs("div", {
111
+ children: [themeItems.svg, settings?.navTheme === themeItems.key && jsx("svg", {
112
+ className: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-6 h-6 text-blue-500",
113
+ viewBox: "0 0 24 24",
114
+ fill: "currentColor",
115
+ children: jsx("path", {
116
+ d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
117
+ })
36
118
  })]
37
- }), settings?.navTheme == themeItems.key ? jsx("svg", {
38
- className: "relative -bottom-8 left-8 w-4 h-4",
39
- viewBox: "0 0 24 24",
40
- fill: "currentColor",
41
- children: jsx("path", {
42
- d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
43
- })
44
- }) : '']
119
+ })
45
120
  }, `themeItem_${index}`);
46
121
  })
47
122
  });
@@ -1 +1 @@
1
- {"version":3,"file":"CheckBoxTheme.js","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":"yCAQwB,SAAA,aAAa,CAAC,KAA0B,EAAA;QACtD;AACN,IAAA,IAAA;AAGY,IAAA,aAAA;AAMY,IAAA;AACA,GAAA,GAAA,KAAA;AACJ,EAAA,OAAAA,GAAA,CAAA;AAKQ,IAAA,SAAA,EAAA,eAAA;AACH,IAAA,QAAA,EAAA,IAAA,CAAA,GAAA,CAAA,CAAA,UAEL,EAAA,KAAA,KAAc;AAIF,MAAA,OAAAC,IAAA,CAAA,KAAA,EAAA;AACH,QAAA,SAAA,EAAA,4CAGS;AAEN,QAAA,KAAA,EAAA;;SAavB;AAGb,QAAC,OAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"CheckBoxTheme.js","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"yCAGA,MAAM,SAAS,GAAG,CAAA;AACd,EAAA,GAAA,EAAA,OAAA;AACI,EAAA,KAAA,EAAA,OAAY;AACZ,EAAA,GAAA,EAAAA,IAAA,CAAK,KAAS,EAAA;SACX,EAAA,IACM;AASZ,IAAA,MAAA,EAAA,IAAA;AACD,IAAA,OAAA,EAAA,WAAA;AACI,IAAA,KAAA,EAAG,4BAAY;AACf,IAAA,QAAA,GAAOC,GAAU,CAAA,MAAA,EAAA;cAEb,EAAAA,GAAA,CAAA,QAAK,EAAK;AAcjB,QAAA,EAAA,EAAA,YAAA;AACD,QAAA,CAAA,EAAA,MAAA;AACI,QAAA,CAAA,EAAG,MAAQ;AACX,QAAA,KAAK,EAAE,MAAM;QACb,MACI,EAAK,MAAA;AAWZ,QAAA,QAAA,EAAAA,GAAA,CAAA,cAAA,EAAA;UACH,EAAA,EAAA,GAAA;AAEF,UAAO,EAAA,EAAO,GAAU;UACd,YAAQ,EAAA,GAAA;AACd,UAAA,UACI,EAAA,SAAc;AAEN,UAAA,YAGQ,EAAA;AAGI,SAAA;AACA,OAAA;AACJ,KAAA,CAAA,EAAAA,GAAA,CAAA;SAiBX,GACC;AAEd,MAAC,CAAA,EAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ import { ILayoutSettingsProps } from './types';
2
+ export default function InvitationSettings(props: ILayoutSettingsProps | any): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=InvitationSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationSettings.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/InvitationSettings.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAAK,EAAE,oBAAoB,GAAG,GAAG,2CA6D3E"}
@@ -0,0 +1,79 @@
1
+ import {jsxs,jsx}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 InvitationSettings(props) {
2
+ const {
3
+ settings,
4
+ changeSetting,
5
+ location
6
+ } = props;
7
+ const {
8
+ t
9
+ } = useTranslation('settings');
10
+ const {
11
+ isMobile
12
+ } = useMediaQuery();
13
+ const currentRoute = location?.pathname || '/';
14
+ settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
15
+ // Fallback to global if not found in route
16
+ const invitations = settings?.organization?.members?.invitations || {};
17
+ const handleInvitationChange = (key, value) => {
18
+ if (!changeSetting) return;
19
+ const newInvitations = {
20
+ ...invitations,
21
+ [key]: value
22
+ };
23
+ changeSetting(`organization.members.invitations`, newInvitations);
24
+ };
25
+ const textColor = {
26
+ color: settings?.navTheme === 'dark' ? '#ffff' : 'black'
27
+ };
28
+ return jsxs("div", {
29
+ children: [jsx("p", {
30
+ className: "mb-2 font-medium",
31
+ style: textColor,
32
+ children: t('invitation_settings') || 'Invitation Settings'
33
+ }), jsxs("div", {
34
+ className: "flex items-center mt-4",
35
+ children: [jsx("span", {
36
+ style: textColor,
37
+ children: t('show_email_invite') || 'Show Email Invite'
38
+ }), jsx("div", {
39
+ className: "flex-grow"
40
+ }), jsx(Switch, {
41
+ value: !!invitations.showEmailInvite,
42
+ onChange: checked => handleInvitationChange('showEmailInvite', checked)
43
+ })]
44
+ }), jsxs("div", {
45
+ className: "flex items-center mt-4",
46
+ children: [jsx("span", {
47
+ style: textColor,
48
+ children: t('show_sms_invite') || 'Show SMS Invite'
49
+ }), jsx("div", {
50
+ className: "flex-grow"
51
+ }), jsx(Switch, {
52
+ value: !!invitations.showSmsInvite,
53
+ onChange: checked => handleInvitationChange('showSmsInvite', checked)
54
+ })]
55
+ }), jsxs("div", {
56
+ className: "flex items-center mt-4",
57
+ children: [jsx("span", {
58
+ style: textColor,
59
+ children: t('show_qr_code_invite') || 'Show QR Code Invite'
60
+ }), jsx("div", {
61
+ className: "flex-grow"
62
+ }), jsx(Switch, {
63
+ value: !!invitations.showQrCodeInvite,
64
+ onChange: checked => handleInvitationChange('showQrCodeInvite', checked)
65
+ })]
66
+ }), jsxs("div", {
67
+ className: "flex items-center mt-4",
68
+ children: [jsx("span", {
69
+ style: textColor,
70
+ children: t('show_invite_link') || 'Show Invite Link'
71
+ }), jsx("div", {
72
+ className: "flex-grow"
73
+ }), jsx(Switch, {
74
+ value: !!invitations.showInviteLink,
75
+ onChange: checked => handleInvitationChange('showInviteLink', checked)
76
+ })]
77
+ })]
78
+ });
79
+ }export{InvitationSettings as default};//# sourceMappingURL=InvitationSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvitationSettings.js","sources":["../../../src/components/SettingDrawer/InvitationSettings.tsx"],"sourcesContent":[null],"names":[],"mappings":"yUAMwB,SAAA,kBAAkB,CAAC,KAAiC,EAAA;QAClE;IACN,QAAQ;AACR,IAAA,aAAgB;AAChB,IAAA;AACA,GAAA,GAAA;QACM;IACN;MACM,cAAA,CAAW,UAAG,CAAQ;AAE5B,EAAA,MAAA;AACI,IAAA;mBAA2B,EAAA;AAC3B,EAAA,MAAA,uBAAuB,EAAA,QAAA,IAAA,GAAA;AACnB,EAAc,QAAA,EAAA,aAAA,GAAA,YAAA,CAAA,IAAA,QAAA,EAAA,aAAA,GAAA,GAAA,CAAA,IAAA;;AAIlB,EAAA,MAAA,WAAA,GAAc,QAAA,EAAA,YAAA,EAAA,OAAA,EAAA,WAAoC,IAAA,EAAc;AACpE,EAAA,MAAE,sBAAA,GAAA,CAAA,GAAA,EAAA,KAAA,KAAA;AAEF,IAAA,IAAA,CAAA,aAAkB,EAAE;IAEpB,MAAO,cAEC,GAAA;AAqCZ,MAAC,GAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +1,3 @@
1
- import { ProSettings } from '../defaultSettings';
2
- export type ILayoutSettingsProps = {
3
- settings?: Partial<ProSettings>;
4
- changeSetting?: (key: string, value: string | boolean) => void;
5
- };
6
- export default function LayoutChange(props: ILayoutSettingsProps): import("react/jsx-runtime").JSX.Element;
1
+ import { ILayoutSettingsProps } from './types';
2
+ export default function LayoutChange(props: ILayoutSettingsProps | any): import("react/jsx-runtime").JSX.Element;
7
3
  //# sourceMappingURL=LayoutChange.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutChange.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CAClE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,oBAAoB,2CAsE/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,68 +1,122 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';import {useState}from'react';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';function LayoutChange(props) {
2
- const [selectedValue, setSelectedValue] = useState();
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) {
3
2
  const {
4
3
  settings,
5
- changeSetting
4
+ changeSetting,
5
+ location
6
6
  } = props;
7
7
  const {
8
8
  t
9
9
  } = useTranslation('settings');
10
10
  const {
11
- contentWidth,
12
- splitMenus,
13
- fixedHeader,
14
- layout,
15
- fixSiderbar,
11
+ isMobile
12
+ } = useMediaQuery();
13
+ const currentRoute = location?.pathname || '/';
14
+ const {
16
15
  navTheme
17
- } = settings;
16
+ } = settings || {};
17
+ const routeSettings = settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
18
+ const deviceType = isMobile ? 'mobile' : 'desktop';
19
+ const deviceLayout = routeSettings?.layout?.[deviceType] || {};
20
+ const handleLayoutChange = (key, value) => {
21
+ if (!changeSetting) return;
22
+ changeSetting(`routeSettings.${currentRoute}.layout.${deviceType}`, {
23
+ ...deviceLayout,
24
+ [key]: value
25
+ });
26
+ };
27
+ const textColor = {
28
+ color: navTheme === 'dark' ? '#ffff' : 'black'
29
+ };
18
30
  return jsxs("div", {
19
31
  children: [jsxs("div", {
20
32
  className: "flex items-center mt-4",
21
33
  children: [jsx("p", {
22
34
  className: "mb-0",
23
- style: {
24
- color: navTheme == 'dark' ? '#ffff' : 'black'
25
- },
35
+ style: textColor,
26
36
  children: t('fixed_header')
27
37
  }), jsx("div", {
28
38
  className: "flex-grow"
29
39
  }), jsx(Switch, {
30
- value: fixedHeader,
31
- settingKey: "fixedHeader",
32
- changeSetting: changeSetting,
33
- settings: settings
40
+ value: deviceLayout.fixedHeader,
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: fixSiderbar,
47
- settingKey: "fixSiderbar",
48
- changeSetting: changeSetting,
49
- settings: settings
52
+ value: deviceLayout.fixedSidebar,
53
+ onChange: checked => handleLayoutChange('fixedSidebar', checked)
50
54
  })]
51
55
  }), jsxs("div", {
52
56
  className: "flex items-center mt-4",
53
57
  children: [jsx("p", {
54
58
  className: "mb-0",
55
- style: {
56
- color: navTheme == 'dark' ? '#ffff' : 'black'
57
- },
59
+ style: textColor,
58
60
  children: t('split_menus')
59
61
  }), jsx("div", {
60
62
  className: "flex-grow"
61
63
  }), jsx(Switch, {
62
- value: splitMenus,
63
- settingKey: "splitMenus",
64
- changeSetting: changeSetting,
65
- settings: settings
64
+ value: deviceLayout.splitMenus,
65
+ onChange: checked => handleLayoutChange('splitMenus', checked)
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
+ })]
66
120
  })]
67
121
  })]
68
122
  });