@admin-layout/tailwind-design-pro 11.0.4-alpha.4 → 11.2.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (357) hide show
  1. package/README.md +471 -1
  2. package/lib/cdm-locales/en/menu.json +2 -1
  3. package/lib/cdm-locales/en/settings.json +40 -1
  4. package/lib/cdm-locales/es/menu.json +2 -1
  5. package/lib/cdm-locales/es/settings.json +42 -3
  6. package/lib/cdm-locales/index.d.ts +2 -0
  7. package/lib/cdm-locales/index.d.ts.map +1 -0
  8. package/lib/cdm-locales/index.ts +1 -0
  9. package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -1
  10. package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
  11. package/lib/components/LanguageMenu/LanguageMenu.js +40 -61
  12. package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
  13. package/lib/components/Layout/BasicLayout/index.d.ts +6 -12
  14. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  15. package/lib/components/Layout/BasicLayout/index.js +274 -108
  16. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  17. package/lib/components/Layout/BasicLayout/utils.d.ts +4 -2
  18. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
  19. package/lib/components/Layout/BasicLayout/utils.js +80 -109
  20. package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
  21. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +1 -8
  22. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  23. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +28 -38
  24. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  25. package/lib/components/Layout/GlobalFooter/Copyright.d.ts +2 -1
  26. package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
  27. package/lib/components/Layout/GlobalFooter/Footer.d.ts +2 -1
  28. package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
  29. package/lib/components/Layout/GlobalHeader/Header.d.ts +1 -15
  30. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  31. package/lib/components/Layout/GlobalHeader/Header.js +107 -65
  32. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  33. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +4 -0
  34. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -0
  35. package/lib/components/Layout/GlobalHeader/MainHeader.js +187 -0
  36. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -0
  37. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +1 -12
  38. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -1
  39. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +26 -30
  40. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  41. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +3 -16
  42. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  43. package/lib/components/Layout/GlobalHeader/RightContent.js +86 -0
  44. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -0
  45. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts +4 -0
  46. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -0
  47. package/lib/components/Layout/GlobalHeader/RightMenu.js +248 -0
  48. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -0
  49. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts +9 -0
  50. package/lib/components/Layout/GlobalHeader/SearchBar.d.ts.map +1 -0
  51. package/lib/components/Layout/GlobalHeader/SearchBar.js +109 -0
  52. package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -0
  53. package/lib/components/Layout/GlobalHeader/index.d.ts +3 -0
  54. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -0
  55. package/lib/components/Layout/ProTailwindLayout.d.ts +3 -1
  56. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  57. package/lib/components/Layout/ProTailwindLayout.js +77 -12
  58. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  59. package/lib/components/Layout/Sidebar/BottomMenu.d.ts +4 -0
  60. package/lib/components/Layout/Sidebar/BottomMenu.d.ts.map +1 -0
  61. package/lib/components/Layout/Sidebar/BottomMenu.js +294 -0
  62. package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
  63. package/lib/components/Layout/Sidebar/Divider.d.ts +2 -31
  64. package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
  65. package/lib/components/Layout/Sidebar/Divider.js +26 -28
  66. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  67. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +5 -0
  68. package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -0
  69. package/lib/components/Layout/Sidebar/DynamicIcon.js +50 -0
  70. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -0
  71. package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
  72. package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
  73. package/lib/components/Layout/Sidebar/MainSidebar.js +224 -0
  74. package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
  75. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +6 -0
  76. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
  77. package/lib/components/Layout/Sidebar/MainSidebarMenu.js +451 -0
  78. package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
  79. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +4 -0
  80. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
  81. package/lib/components/Layout/Sidebar/PerplexSidebar.js +254 -0
  82. package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
  83. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
  84. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
  85. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +318 -0
  86. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
  87. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  88. package/lib/components/Layout/TailwindLayout.js +46 -13
  89. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  90. package/lib/components/Layout/getPageTitle.d.ts +1 -16
  91. package/lib/components/Layout/getPageTitle.d.ts.map +1 -1
  92. package/lib/components/Layout/getPageTitle.js +1 -1
  93. package/lib/components/Layout/getPageTitle.js.map +1 -1
  94. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +5 -0
  95. package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -0
  96. package/lib/components/Layout/slot-fill/AdditionalSettings.js +7 -0
  97. package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -0
  98. package/lib/components/Layout/slot-fill/Footer.d.ts +4 -3
  99. package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
  100. package/lib/components/Layout/slot-fill/Footer.js +6 -6
  101. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  102. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +3 -2
  103. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
  104. package/lib/components/Layout/slot-fill/HeaderNotice.js +7 -0
  105. package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -0
  106. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +4 -0
  107. package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -0
  108. package/lib/components/Layout/slot-fill/HeaderSearchBar.js +6 -0
  109. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -0
  110. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +4 -0
  111. package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -0
  112. package/lib/components/Layout/slot-fill/HeaderSearchButton.js +6 -0
  113. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -0
  114. package/lib/components/Layout/slot-fill/Logo.d.ts +5 -0
  115. package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
  116. package/lib/components/Layout/slot-fill/Logo.js +7 -0
  117. package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
  118. package/lib/components/Layout/slot-fill/RightContent.d.ts +4 -0
  119. package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -0
  120. package/lib/components/Layout/slot-fill/RightContent.js +6 -0
  121. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -0
  122. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +5 -0
  123. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
  124. package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
  125. package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
  126. package/lib/components/Layout/slot-fill/index.d.ts +6 -0
  127. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  128. package/lib/components/Layout/util.d.ts.map +1 -1
  129. package/lib/components/Layout/util.js +12 -0
  130. package/lib/components/Layout/util.js.map +1 -0
  131. package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -25
  132. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  133. package/lib/components/SettingDrawer/SettingDrawer.js +203 -382
  134. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  135. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +8 -0
  136. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
  137. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +21 -0
  138. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
  139. package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +4 -0
  140. package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
  141. package/lib/components/SettingDrawer/components/CheckBoxTheme.js +119 -0
  142. package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
  143. package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +8 -0
  144. package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
  145. package/lib/components/SettingDrawer/components/DeviceTabs.js +74 -0
  146. package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
  147. package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +4 -0
  148. package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
  149. package/lib/components/SettingDrawer/components/InvitationSettings.js +72 -0
  150. package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
  151. package/lib/components/SettingDrawer/components/LayoutChange.d.ts +4 -0
  152. package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
  153. package/lib/components/SettingDrawer/components/LayoutChange.js +111 -0
  154. package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
  155. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +21 -0
  156. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
  157. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +106 -0
  158. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
  159. package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +4 -0
  160. package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
  161. package/lib/components/SettingDrawer/components/NavigationsModes.js +322 -0
  162. package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
  163. package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +4 -0
  164. package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
  165. package/lib/components/SettingDrawer/components/RegionalSettings.js +519 -0
  166. package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
  167. package/lib/components/SettingDrawer/components/SettingsActions.d.ts +13 -0
  168. package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
  169. package/lib/components/SettingDrawer/components/SettingsActions.js +42 -0
  170. package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
  171. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +5 -0
  172. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
  173. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +22 -0
  174. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
  175. package/lib/components/SettingDrawer/components/Switch.d.ts +4 -0
  176. package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
  177. package/lib/components/SettingDrawer/components/Switch.js +20 -0
  178. package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
  179. package/lib/components/SettingDrawer/components/ThemeColor.d.ts +4 -0
  180. package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
  181. package/lib/components/SettingDrawer/components/ThemeColor.js +45 -0
  182. package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
  183. package/lib/components/SettingDrawer/components/ThemeSelector.d.ts +4 -0
  184. package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
  185. package/lib/components/SettingDrawer/components/ThemeSelector.js +16 -0
  186. package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
  187. package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +4 -0
  188. package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -0
  189. package/lib/components/SettingDrawer/components/WebFontsSelector.js +22 -0
  190. package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -0
  191. package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts +18 -0
  192. package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -0
  193. package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +115 -0
  194. package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -0
  195. package/lib/components/SettingDrawer/utils/constants.d.ts +11 -0
  196. package/lib/components/SettingDrawer/utils/constants.d.ts.map +1 -0
  197. package/lib/components/SettingDrawer/utils/constants.js +77 -0
  198. package/lib/components/SettingDrawer/utils/constants.js.map +1 -0
  199. package/lib/components/SettingDrawer/utils/helper.d.ts +37 -0
  200. package/lib/components/SettingDrawer/utils/helper.d.ts.map +1 -0
  201. package/lib/components/SettingDrawer/utils/helper.js +154 -0
  202. package/lib/components/SettingDrawer/utils/helper.js.map +1 -0
  203. package/lib/components/SettingDrawer/utils/transformers.d.ts +15 -0
  204. package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -0
  205. package/lib/components/SettingDrawer/utils/transformers.js +73 -0
  206. package/lib/components/SettingDrawer/utils/transformers.js.map +1 -0
  207. package/lib/components/SettingDrawer/utils/types.d.ts +105 -0
  208. package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
  209. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +16 -1
  210. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  211. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
  212. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
  213. package/lib/components/index.d.ts +2 -0
  214. package/lib/components/index.d.ts.map +1 -0
  215. package/lib/components/index.js +1 -0
  216. package/lib/components/index.js.map +1 -0
  217. package/lib/components/typings.d.ts +154 -50
  218. package/lib/components/typings.d.ts.map +1 -1
  219. package/lib/compute.d.ts.map +1 -1
  220. package/lib/compute.js +16 -6
  221. package/lib/compute.js.map +1 -1
  222. package/lib/config/analytics-config.d.ts +59 -0
  223. package/lib/config/analytics-config.d.ts.map +1 -0
  224. package/lib/config/constants.d.ts +8 -0
  225. package/lib/config/constants.d.ts.map +1 -0
  226. package/lib/config/constants.js +32 -0
  227. package/lib/config/constants.js.map +1 -0
  228. package/lib/config/env-config.d.ts +21 -0
  229. package/lib/config/env-config.d.ts.map +1 -1
  230. package/lib/config/env-config.js +86 -1
  231. package/lib/config/env-config.js.map +1 -1
  232. package/lib/config/index.d.ts +3 -0
  233. package/lib/config/index.d.ts.map +1 -0
  234. package/lib/helpers/DynamicIcon.d.ts +8 -5
  235. package/lib/helpers/DynamicIcon.d.ts.map +1 -1
  236. package/lib/helpers/DynamicIcon.js +50 -0
  237. package/lib/helpers/DynamicIcon.js.map +1 -0
  238. package/lib/hooks/index.d.ts +3 -0
  239. package/lib/hooks/index.d.ts.map +1 -0
  240. package/lib/hooks/useMediaQuery.d.ts +14 -0
  241. package/lib/hooks/useMediaQuery.d.ts.map +1 -0
  242. package/lib/hooks/useMediaQuery.js +48 -0
  243. package/lib/hooks/useMediaQuery.js.map +1 -0
  244. package/lib/hooks/useScrollThreshold.d.ts +12 -0
  245. package/lib/hooks/useScrollThreshold.d.ts.map +1 -0
  246. package/lib/hooks/useScrollThreshold.js +60 -0
  247. package/lib/hooks/useScrollThreshold.js.map +1 -0
  248. package/lib/hooks/useTailwindTheme.d.ts +34 -0
  249. package/lib/hooks/useTailwindTheme.d.ts.map +1 -0
  250. package/lib/hooks/useTailwindTheme.js +82 -0
  251. package/lib/hooks/useTailwindTheme.js.map +1 -0
  252. package/lib/icons.d.ts +18 -0
  253. package/lib/icons.d.ts.map +1 -0
  254. package/lib/icons.js +14 -0
  255. package/lib/icons.js.map +1 -0
  256. package/lib/index.d.ts +3 -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/selectors.d.ts +118 -0
  261. package/lib/machines/selectors.d.ts.map +1 -0
  262. package/lib/machines/settingsMachine.d.ts +29 -0
  263. package/lib/machines/settingsMachine.d.ts.map +1 -0
  264. package/lib/machines/settingsMachine.js +171 -0
  265. package/lib/machines/settingsMachine.js.map +1 -0
  266. package/lib/machines/types.d.ts +272 -0
  267. package/lib/machines/types.d.ts.map +1 -0
  268. package/lib/machines/types.js +5 -0
  269. package/lib/machines/types.js.map +1 -0
  270. package/lib/module.d.ts +0 -1
  271. package/lib/module.d.ts.map +1 -1
  272. package/lib/module.js +14 -15
  273. package/lib/module.js.map +1 -1
  274. package/lib/redux/index.d.ts +2 -0
  275. package/lib/redux/index.d.ts.map +1 -0
  276. package/lib/redux/searchReducer.d.ts +42 -0
  277. package/lib/redux/searchReducer.d.ts.map +1 -0
  278. package/lib/redux/searchReducer.js +64 -0
  279. package/lib/redux/searchReducer.js.map +1 -0
  280. package/lib/routes.json +10 -1
  281. package/lib/styles/index.css +667 -45
  282. package/lib/tailwindConfig.d.ts +100 -0
  283. package/lib/tailwindConfig.d.ts.map +1 -0
  284. package/lib/tailwindConfig.js +101 -0
  285. package/lib/tailwindConfig.js.map +1 -0
  286. package/lib/utils/__tests__/analytics-utils.test.d.ts +2 -0
  287. package/lib/utils/__tests__/analytics-utils.test.d.ts.map +1 -0
  288. package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
  289. package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
  290. package/lib/utils/__tests__/menu.test.d.ts +2 -0
  291. package/lib/utils/__tests__/menu.test.d.ts.map +1 -0
  292. package/lib/utils/__tests__/selectors.test.d.ts +2 -0
  293. package/lib/utils/__tests__/selectors.test.d.ts.map +1 -0
  294. package/lib/utils/__tests__/settingsMachine.test.d.ts +2 -0
  295. package/lib/utils/__tests__/settingsMachine.test.d.ts.map +1 -0
  296. package/lib/utils/__tests__/settingsUtils.test.d.ts +2 -0
  297. package/lib/utils/__tests__/settingsUtils.test.d.ts.map +1 -0
  298. package/lib/utils/analytics-utils.d.ts +43 -0
  299. package/lib/utils/analytics-utils.d.ts.map +1 -0
  300. package/lib/utils/analytics.d.ts +48 -0
  301. package/lib/utils/analytics.d.ts.map +1 -0
  302. package/lib/utils/configOverrides.d.ts +213 -0
  303. package/lib/utils/configOverrides.d.ts.map +1 -0
  304. package/lib/utils/configOverrides.js +91 -0
  305. package/lib/utils/configOverrides.js.map +1 -0
  306. package/lib/utils/formateCarData.d.ts +2 -0
  307. package/lib/utils/formateCarData.d.ts.map +1 -0
  308. package/lib/utils/isBrowser/index.js.map +1 -1
  309. package/lib/utils/menu.d.ts.map +1 -1
  310. package/lib/utils/settingsUtils.d.ts +20 -0
  311. package/lib/utils/settingsUtils.d.ts.map +1 -0
  312. package/lib/utils/settingsUtils.js +74 -0
  313. package/lib/utils/settingsUtils.js.map +1 -0
  314. package/lib/utils/test-utils.d.ts.map +1 -1
  315. package/lib/utils/utils/index.d.ts.map +1 -1
  316. package/lib/utils/utils/index.js.map +1 -1
  317. package/package.json +7 -15
  318. package/lib/components/Layout/GlobalFooter/Copyright.js +0 -8
  319. package/lib/components/Layout/GlobalFooter/Copyright.js.map +0 -1
  320. package/lib/components/Layout/GlobalFooter/Footer.js +0 -22
  321. package/lib/components/Layout/GlobalFooter/Footer.js.map +0 -1
  322. package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -15
  323. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
  324. package/lib/components/Layout/Sidebar/Sidebar.js +0 -141
  325. package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
  326. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -6
  327. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
  328. package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -89
  329. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
  330. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -8
  331. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
  332. package/lib/components/SettingDrawer/CheckBoxTheme.js +0 -48
  333. package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
  334. package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -7
  335. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
  336. package/lib/components/SettingDrawer/LayoutChange.js +0 -69
  337. package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
  338. package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -8
  339. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
  340. package/lib/components/SettingDrawer/RegionalSettings.js +0 -95
  341. package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
  342. package/lib/components/SettingDrawer/Switch/index.d.ts +0 -9
  343. package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
  344. package/lib/components/SettingDrawer/Switch/index.js +0 -39
  345. package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
  346. package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -8
  347. package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
  348. package/lib/components/SettingDrawer/ThemeColor.js +0 -32
  349. package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
  350. package/lib/components/defaultSettings.d.ts +0 -4
  351. package/lib/components/defaultSettings.d.ts.map +0 -1
  352. package/lib/components/defaultSettings.js +0 -14
  353. package/lib/components/defaultSettings.js.map +0 -1
  354. package/lib/utils/index.d.ts +0 -2
  355. package/lib/utils/index.d.ts.map +0 -1
  356. package/lib/utils/index.js +0 -13
  357. package/lib/utils/index.js.map +0 -1
@@ -1,392 +1,213 @@
1
- import {jsx,Fragment,jsxs}from'react/jsx-runtime';import {useState,useRef,useEffect}from'react';import {useTranslation}from'react-i18next';import isBrowser from'../../utils/isBrowser/index.js';import {MdClose}from'@react-icons/all-files/md/MdClose.js';import {RiSettings5Fill}from'@react-icons/all-files/ri/RiSettings5Fill.js';import*as rcUtil from'rc-util';import {parse}from'qs';import {defaultSettings}from'../defaultSettings.js';import ThemeColor from'./ThemeColor.js';import {Switch}from'./Switch/index.js';import CheckBoxTheme from'./CheckBoxTheme.js';import LayoutChange from'./LayoutChange.js';import RegionalSettings from'./RegionalSettings.js';let oldSetting = {};
2
- const updateTheme = (dark, color, publicPath = '/theme') => {
3
- // ssr
4
- if (typeof window === 'undefined' || !window.umi_plugin_ant_themeVar) {
5
- return;
6
- }
7
- const href = dark ? `${publicPath}/dark` : `${publicPath}/`;
8
- // If it is DARK, and is color = daybreak, there is no need to splice
9
- let colorFileName = dark && color ? `-${encodeURIComponent(color)}` : encodeURIComponent(color || '');
10
- if (color === 'daybreak' && dark) {
11
- colorFileName = '';
12
- }
13
- const dom = document.getElementById('theme-style');
14
- // If these two are empty
15
- if (!href && !colorFileName) {
16
- if (dom) {
17
- dom.remove();
18
- localStorage.removeItem('site-theme');
19
- }
20
- return;
21
- }
22
- const url = `${href}${colorFileName || ''}.css`;
23
- if (dom) {
24
- dom.onload = () => {
25
- window.setTimeout(() => {});
26
- };
27
- dom.href = url;
28
- } else {
29
- const style = document.createElement('link');
30
- style.type = 'text/css';
31
- style.rel = 'stylesheet';
32
- style.id = 'theme-style';
33
- style.onload = () => {
34
- window.setTimeout(() => {});
35
- };
36
- style.href = url;
37
- if (document.body.append) {
38
- document.body.append(style);
39
- } else {
40
- document.body.appendChild(style);
41
- }
42
- }
43
- // localStorage.setItem('site-theme', dark ? 'dark' : 'light');
44
- };
45
- const initState = (settings, onSettingChange, publicPath) => {
46
- if (!isBrowser()) {
47
- return;
48
- }
49
- let loadedStyle = false;
50
- if (window.location.search) {
51
- const params = parse(window.location.search.replace('?', ''));
52
- const replaceSetting = {};
53
- Object.keys(params).forEach(key => {
54
- if (defaultSettings[key] || defaultSettings[key] === undefined) {
55
- replaceSetting[key] = params[key];
56
- if (key.includes('Render')) {
57
- replaceSetting[key] = params[key] === 'false' ? false : undefined;
58
- }
59
- }
60
- });
61
- if (onSettingChange) {
62
- onSettingChange({
63
- ...settings,
64
- ...replaceSetting
65
- });
66
- }
67
- // Set the topic in the URL and load it once.
68
- if (oldSetting.navTheme !== params.navTheme && params.navTheme) {
69
- updateTheme(settings.navTheme === 'realDark', params.primaryColor, publicPath);
70
- loadedStyle = true;
71
- }
72
- }
73
- if (loadedStyle) {
74
- return;
75
- }
76
- // If there is no topic in the URL, and no load in the URL is loaded.
77
- if (defaultSettings.navTheme !== settings.navTheme && settings.navTheme) {
78
- updateTheme(settings.navTheme === 'realDark', settings.primaryColor, publicPath);
79
- }
80
- };
81
- const getParamsFromUrl = settings => {
82
- if (!isBrowser()) {
83
- return defaultSettings;
84
- }
85
- // The first time I entered the browser parameters synchronized.
86
- let params = {};
87
- if (window.location.search) {
88
- params = parse(window.location.search.replace('?', ''));
89
- }
90
- Object.keys(params).forEach(key => {
91
- if (params[key] === 'true') {
92
- params[key] = true;
93
- }
94
- });
95
- return {
96
- ...defaultSettings,
97
- ...(settings || {}),
98
- ...params
99
- };
100
- };
101
- const getThemeList = settings => {
1
+ import {useSelector}from'@xstate/react';import clsx from'clsx';import*as React from'react';import {useRef,useState,useEffect}from'react';import {useTranslation}from'react-i18next';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';import {icons}from'../../icons.js';import isBrowser from'../../utils/isBrowser/index.js';import {getDefaultApplyToAllRoutes,getSettingValue}from'../../utils/settingsUtils.js';import'@common-stack/components-pro';import {AdditionalSettingsSlot}from'../Layout/slot-fill/AdditionalSettings.js';import'reflect-metadata';import'@admin-layout/client/lib/constants/layout.js';import {ApplyToAllRoutesToggle}from'./components/ApplyToAllRoutesToggle.js';import {CheckBoxTheme}from'./components/CheckBoxTheme.js';import {DeviceTabs}from'./components/DeviceTabs.js';import {InvitationSettings}from'./components/InvitationSettings.js';import {LayoutChange}from'./components/LayoutChange.js';import {MenuVisibilitySettings}from'./components/MenuVisibilitySettings.js';import {NavigationModes}from'./components/NavigationsModes.js';import {RegionalSettings}from'./components/RegionalSettings.js';import {SettingsActions}from'./components/SettingsActions.js';import {SettingsDrawerHeader}from'./components/SettingsDrawerHeader.js';import {ThemeColor}from'./components/ThemeColor.js';import {ThemeSelector}from'./components/ThemeSelector.js';import {WebFontsSelector}from'./components/WebFontsSelector.js';import {useSettingsOperations}from'./hooks/useSettingsOperations.js';import {THEME_OPTIONS,FONT_OPTIONS}from'./utils/constants.js';import {useThemeList,parseSettingPath}from'./utils/helper.js';function SettingDrawer(props) {
102
2
  const {
103
- t
104
- } = useTranslation('settings');
105
- let list = [];
106
- const defaultList = [
107
- //@sri following are needed otherwise we need make above plugin to work
108
- {
109
- key: 'dust',
110
- fileName: 'dust.css',
111
- modifyVars: {
112
- '@primary-color': '#F5222D'
113
- }
114
- }, {
115
- key: 'volcano',
116
- fileName: 'volcano.css',
117
- modifyVars: {
118
- '@primary-color': '#FA541C'
119
- }
120
- }, {
121
- key: 'sunset',
122
- fileName: 'sunset.css',
123
- modifyVars: {
124
- '@primary-color': '#FAAD14'
125
- }
126
- }, {
127
- key: 'cyan',
128
- fileName: 'cyan.css',
129
- modifyVars: {
130
- '@primary-color': '#13C2C2'
131
- }
132
- }, {
133
- key: 'green',
134
- fileName: 'green.css',
135
- modifyVars: {
136
- '@primary-color': '#52C41A'
137
- }
138
- }, {
139
- key: 'geekblue',
140
- fileName: 'geekblue.css',
141
- modifyVars: {
142
- '@primary-color': '#2F54EB'
143
- }
144
- }, {
145
- key: 'purple',
146
- fileName: 'purple.css',
147
- modifyVars: {
148
- '@primary-color': '#722ED1'
149
- }
150
- }];
151
- // ssr
152
- if (typeof window === 'undefined') {
153
- list = defaultList;
154
- } else {
155
- list = window.umi_plugin_ant_themeVar || defaultList;
156
- }
157
- const themeList = [{
158
- key: 'light',
159
- title: t('light')
160
- }];
161
- const darkColorList = [{
162
- key: 'daybreak',
163
- color: '#1890ff',
164
- theme: 'dark'
165
- }];
166
- const lightColorList = [{
167
- key: 'daybreak',
168
- color: '#1890ff',
169
- theme: 'dark'
170
- }];
171
- if (settings.layout !== 'mix') {
172
- themeList.push({
173
- key: 'dark',
174
- title: t('dark')
175
- });
176
- }
177
- if (list.find(item => item.theme === 'dark')) {
178
- themeList.push({
179
- key: 'realDark',
180
- title: t('dark')
181
- });
182
- }
183
- // insert theme color List
184
- list.forEach(item => {
185
- const color = (item.modifyVars || {})['@primary-color'];
186
- if (item.theme === 'dark' && color) {
187
- darkColorList.push({
188
- color,
189
- ...item
190
- });
191
- }
192
- if (!item.theme || item.theme === 'light') {
193
- lightColorList.push({
194
- color,
195
- ...item
196
- });
197
- }
198
- });
199
- return {
200
- colorList: {
201
- dark: darkColorList,
202
- light: lightColorList
203
- },
204
- themeList
205
- };
206
- };
207
- const SettingDrawer = props => {
208
- let {
3
+ actor,
4
+ colorList,
209
5
  navTheme,
210
- settings,
211
- onSettingChange
6
+ pathname,
7
+ location,
8
+ fullMenuData,
9
+ routePattern
212
10
  } = props;
213
- const [show, setShow] = useState(false);
11
+ const {
12
+ CloseIcon,
13
+ Settings5FillIcon
14
+ } = icons;
15
+ // Refs
16
+ const btnRef = useRef();
17
+ // Hooks
18
+ const {
19
+ isMobile
20
+ } = useMediaQuery();
214
21
  const {
215
22
  t
216
23
  } = useTranslation('settings');
217
- const btnRef = useRef();
218
- const [settingState, setSettingState] = rcUtil.useMergedState(() => getParamsFromUrl(settings), {
219
- value: settings,
220
- onChange: onSettingChange
24
+ // State
25
+ const [show, setShow] = useState(false);
26
+ const [activeDeviceTab, setActiveDeviceTab] = useState(isMobile ? 'mobile' : 'desktop');
27
+ const [applyToAllRoutes, setApplyToAllRoutes] = useState(false);
28
+ // Selectors - guard actor so that useSelector isn't called with undefined/invalid actor
29
+ const settingState = actor ? useSelector(actor, state => state.context.public) : {};
30
+ const changedSettings = actor ? useSelector(actor, state => state.context.internal.changedSettings) : {};
31
+ // Custom hooks
32
+ const {
33
+ copied,
34
+ copiedModified,
35
+ handleCopySettings,
36
+ handleCopyModifiedSettings,
37
+ handleSaveSettings,
38
+ handleResetSettings
39
+ } = useSettingsOperations({
40
+ actor,
41
+ settingState,
42
+ changedSettings
221
43
  });
222
- const themeList = getThemeList(settingState);
223
- /**
224
- * Modify settings
225
- * @param key
226
- * @param value
227
- */
228
- const changeSetting = (key, value) => {
229
- const nextState = {
230
- ...settingState
231
- };
232
- nextState[key] = value;
233
- if (key === 'navTheme') {
234
- updateTheme(value === 'realDark', undefined);
235
- nextState.primaryColor = value;
236
- }
237
- if (key === 'primaryColor') {
238
- updateTheme(nextState.navTheme === 'realDark', value === 'daybreak' ? '' : value);
239
- }
240
- if (key === 'layout') {
241
- nextState.contentWidth = value === 'top' ? 'Fixed' : 'Fluid';
242
- }
243
- if (key === 'layout' && value !== 'mix') {
244
- nextState.splitMenus = false;
245
- }
246
- if (key === 'layout' && value === 'mix') {
247
- nextState.navTheme = 'light';
248
- }
249
- if (key === 'colorWeak' && value === true) {
250
- const dom = document.querySelector('body');
251
- if (dom) {
252
- dom.dataset.prosettingdrawer = dom.style.filter;
253
- dom.style.filter = 'invert(80%)';
254
- }
255
- }
256
- if (key === 'colorWeak' && value === false) {
257
- const dom = document.querySelector('body');
258
- if (dom) {
259
- dom.style.filter = dom.dataset.prosettingdrawer || 'none';
260
- delete dom.dataset.prosettingdrawer;
261
- }
262
- }
263
- setSettingState(nextState);
264
- };
44
+ // Computed values
45
+ const currentRoute = routePattern || location?.pathname || '/';
46
+ const deviceType = activeDeviceTab;
47
+ const currentPathname = isBrowser() ? window.location.pathname : pathname || '';
48
+ const themeList = useThemeList(settingState, location, routePattern);
49
+ // Derived state
50
+ const defaultApplyToAllRoutes = React.useMemo(() => {
51
+ return getDefaultApplyToAllRoutes(settingState, currentRoute, deviceType);
52
+ }, [settingState, currentRoute, deviceType]);
53
+ const settingsForComponents = settingState;
54
+ // Effects
265
55
  useEffect(() => {
266
- // Only update if there's a meaningful difference
267
- if (JSON.stringify(settingState) !== JSON.stringify(settings)) {
268
- oldSetting = {
269
- ...defaultSettings,
270
- ...settings
271
- };
272
- if (isBrowser()) {
273
- // Compare settings with oldSetting to determine if initialization is needed
274
- if (JSON.stringify(settings) !== JSON.stringify(oldSetting)) {
275
- initState(settings, onSettingChange, props.publicPath);
56
+ setApplyToAllRoutes(defaultApplyToAllRoutes);
57
+ }, [defaultApplyToAllRoutes]);
58
+ useEffect(() => {
59
+ setActiveDeviceTab(isMobile ? 'mobile' : 'desktop');
60
+ }, [isMobile]);
61
+ useEffect(() => {
62
+ if (actor) {
63
+ actor.send({
64
+ type: 'UISETTING_UPDATE_DEVICE_TYPE',
65
+ deviceType: activeDeviceTab
66
+ });
67
+ }
68
+ }, [activeDeviceTab, actor]);
69
+ // Helper func
70
+ function handleSettingChange(key, value) {
71
+ const isGlobalSetting = key === 'hiddenMenuKeys' || key === 'hiddenMenuCategories' || key === 'applyToAllRoutes' || key === 'fixedHeader' || key === 'fixedSidebar' || key === 'splitMenus' || key === 'upperMenuDividerName' || key === 'middleMenuDividerName' || key === 'lowerMenuDividerName';
72
+ if (isGlobalSetting) {
73
+ actor.send({
74
+ type: 'UISETTING_UPDATE',
75
+ value: {
76
+ [key]: value
276
77
  }
277
- const nextState = {
278
- ...settings,
279
- showSettingPanel: process.env.NODE_ENV !== 'production'
280
- };
281
- setSettingState(nextState);
282
- }
78
+ });
79
+ return;
283
80
  }
284
- }, [settings]); // Only depend on settings
285
- return jsx(Fragment, {
286
- children: settings?.showSettingPanel ? jsxs(Fragment, {
287
- children: [jsx("button", {
288
- ref: btnRef,
289
- onClick: () => setShow(!show),
290
- style: {
291
- backgroundColor: settings?.primaryColor,
292
- display: 'flex',
293
- alignItems: 'center',
294
- justifyContent: 'center'
295
- },
296
- className: `fixed top-24 right-0 z-50 border-none cursor-pointer transition duration-500 bg-current w-12 h-12 rounded-l-lg hover:bg-current ${show ? 'mr-72' : 'mr-0'}`,
297
- children: !show ? jsx(RiSettings5Fill, {
298
- fontSize: '32px',
299
- className: "text-white"
300
- }) : jsx(MdClose, {
301
- className: "text-white",
302
- fontSize: '36px'
303
- })
304
- }), jsxs("div", {
305
- className: `
306
- fixed right-0 top-0 bg-white w-72 transition-all duration-500 overflow-hidden overflow-y-auto z-50 p-4 min-h-full max-h-full
307
- ${show ? 'opacity-100 visible' : 'w-0 opacity-0 invisible'}
308
- ${settings?.navTheme === 'dark' ? 'bg-[#1f1f1f]' : 'bg-white'}
309
- `,
310
- children: [jsxs("div", {
311
- className: "flex flex-row items-center",
312
- children: [jsx("p", {
313
- className: `text-2xl mb-0 ${settings?.navTheme === 'dark' ? 'text-white' : 'text-black'}`,
314
- children: t('setting')
315
- }), jsx("div", {
316
- className: "flex-grow"
317
- }), jsx("button", {
318
- onClick: () => setShow(false),
319
- className: `bg-transparent border-none rounded-lg w-10 h-10 cursor-pointer mb-2 hover:${settingState?.navTheme === 'dark' ? 'bg-[#2a2a2a]' : 'bg-gray-200'}`,
320
- children: jsx(MdClose, {
321
- fontSize: '36px'
322
- })
323
- })]
324
- }), jsxs("div", {
325
- className: `mt-8 pb-8 ${settingState?.navTheme !== 'dark' ? 'border-b border-opacity-6 border-black' : 'border-b border-[#2a2b2a]'}`,
326
- children: [jsx("p", {
327
- className: `${settingState?.navTheme === 'dark' ? 'text-white' : 'text-black'}`,
328
- children: t('page_style_settings')
329
- }), jsx("div", {
330
- children: jsx(CheckBoxTheme, {
331
- list: themeList.themeList,
332
- changeSetting: changeSetting,
333
- settings: settingState
334
- })
335
- }), jsxs("div", {
336
- className: "mt-8",
337
- children: [jsx("p", {
338
- className: `${settings?.navTheme === 'dark' ? 'text-white' : 'text-black'}`,
339
- children: t('theme_color')
340
- }), jsx(ThemeColor, {
341
- color: themeList.colorList[navTheme === 'realDark' ? 'dark' : 'light'],
342
- changeSetting: changeSetting,
343
- settings: settingState
344
- })]
345
- })]
346
- }), jsxs("div", {
347
- className: `mt-8 pb-8 ${settingState?.navTheme !== 'dark' ? 'border-b border-opacity-6 border-black' : 'border-b border-[#2a2b2a]'}`,
348
- children: [jsx("div", {
349
- children: jsx("p", {
350
- className: `${settingState?.navTheme === 'dark' ? 'text-white' : 'text-black'}`,
351
- children: t('navigation_mode')
352
- })
353
- }), jsx("div", {
354
- className: "mt-8",
355
- children: jsx(LayoutChange, {
356
- settings: settingState,
357
- changeSetting: changeSetting
358
- })
359
- })]
360
- }), jsxs("div", {
361
- className: `mt-8 pb-8 ${settingState?.navTheme !== 'dark' ? 'border-b border-opacity-6 border-black' : 'border-b border-[#2a2b2a]'}`,
362
- children: [jsx("p", {
363
- className: `mb-2 ${settingState?.navTheme === 'dark' ? 'text-white' : 'text-black'}`,
364
- children: t('regional_rettings')
365
- }), jsx(RegionalSettings, {
366
- settings: settingState,
367
- changeSetting: changeSetting
368
- })]
369
- }), jsxs("div", {
370
- className: "mt-8",
371
- children: [jsx("p", {
372
- className: `${settingState.navTheme === 'dark' ? 'text-white' : 'text-black'}`,
373
- children: t('other_setting')
374
- }), jsxs("div", {
375
- className: "flex flex-row items-center",
376
- children: [jsx("p", {
377
- className: `mb-0 ${settingState.navTheme === 'dark' ? 'text-white' : 'text-black'}`,
378
- children: t('weak_mode')
379
- }), jsx("div", {
380
- className: "flex-grow"
381
- }), jsx(Switch, {
382
- value: settingState.colorWeak,
383
- settingKey: "colorWeak",
384
- settings: settingState,
385
- changeSetting: changeSetting
386
- })]
387
- })]
388
- })]
389
- })]
390
- }) : null
391
- });
392
- };export{SettingDrawer};//# sourceMappingURL=SettingDrawer.js.map
81
+ const bracketKey = applyToAllRoutes ? `[${deviceType}]` : `[${currentRoute}][${deviceType}]`;
82
+ const settingObject = parseSettingPath(key, value);
83
+ const nestedValue = {
84
+ [bracketKey]: settingObject
85
+ };
86
+ actor.send({
87
+ type: 'UISETTING_UPDATE',
88
+ value: nestedValue
89
+ });
90
+ }
91
+ function getThemeValue() {
92
+ return getSettingValue(settingState, 'theme', applyToAllRoutes, currentRoute, deviceType, 'default');
93
+ }
94
+ function getFontFamilyValue() {
95
+ return getSettingValue(settingState, 'fontFamily', applyToAllRoutes, currentRoute, deviceType, 'Poppins, sans-serif');
96
+ }
97
+ return React.createElement(React.Fragment, null, settingState?.showSettingPanel && React.createElement(React.Fragment, null, React.createElement("button", {
98
+ ref: btnRef,
99
+ onClick: () => setShow(!show),
100
+ style: {
101
+ backgroundColor: settingState?.primaryColor,
102
+ display: 'flex',
103
+ alignItems: 'center',
104
+ justifyContent: 'center'
105
+ },
106
+ className: `fixed top-24 right-0 z-50 border-none cursor-pointer transition duration-500 w-12 h-12 rounded-l-lg hover:bg-opacity-80 ${show ? 'mr-[20rem]' : 'mr-0'}`
107
+ }, !show ? React.createElement(Settings5FillIcon, {
108
+ fontSize: '32px',
109
+ className: "text-white"
110
+ }) : React.createElement(CloseIcon, {
111
+ className: "text-white",
112
+ fontSize: '36px'
113
+ })), React.createElement("div", {
114
+ className: clsx('fixed right-0 top-0 w-[20rem] transition-all duration-500 overflow-hidden overflow-y-auto z-50 p-4 min-h-full max-h-full', 'bg-white dark:bg-[#1f1f1f]', show ? 'opacity-100 visible' : 'w-0 opacity-0 invisible', 'shadow-lg')
115
+ }, React.createElement(SettingsDrawerHeader, {
116
+ onClose: () => setShow(false)
117
+ }), React.createElement("div", {
118
+ className: "mt-8 pb-8 border-b border-black dark:border-[#2a2b2a]"
119
+ }, React.createElement(MenuVisibilitySettings, {
120
+ fullMenuData: fullMenuData,
121
+ settings: settingState,
122
+ changeSetting: handleSettingChange
123
+ }), React.createElement(ApplyToAllRoutesToggle, {
124
+ checked: applyToAllRoutes,
125
+ onChange: setApplyToAllRoutes
126
+ }), React.createElement(DeviceTabs, {
127
+ activeTab: activeDeviceTab,
128
+ onTabChange: setActiveDeviceTab
129
+ })), React.createElement("div", {
130
+ className: "mt-8 pb-8 border-b border-black dark:border-[#2a2b2a]"
131
+ }, React.createElement("p", {
132
+ className: "text-black dark:text-white"
133
+ }, t('page_style_settings')), React.createElement("div", null, React.createElement(CheckBoxTheme, {
134
+ list: themeList.themeList,
135
+ changeSetting: handleSettingChange,
136
+ settings: settingsForComponents,
137
+ location: location,
138
+ applyToAllRoutes: applyToAllRoutes
139
+ })), React.createElement("div", {
140
+ className: "mt-8"
141
+ }, React.createElement("p", {
142
+ className: "text-black dark:text-white"
143
+ }, t('Select Theme')), React.createElement(ThemeSelector, {
144
+ value: getThemeValue(),
145
+ onChange: value => handleSettingChange('theme', value),
146
+ options: THEME_OPTIONS
147
+ })), React.createElement("div", {
148
+ className: "mt-8 dark:border-[#2a2b2a]"
149
+ }, React.createElement("p", {
150
+ className: "mb-2 text-black dark:text-white"
151
+ }, t('theme_color')), React.createElement(ThemeColor, {
152
+ color: colorList || themeList.colorList[navTheme === 'realDark' ? 'dark' : 'light'],
153
+ changeSetting: handleSettingChange,
154
+ settings: settingsForComponents,
155
+ location: location,
156
+ routePattern: routePattern,
157
+ applyToAllRoutes: applyToAllRoutes
158
+ })), React.createElement("div", {
159
+ className: "mt-8"
160
+ }, React.createElement("p", {
161
+ className: "text-black dark:text-white"
162
+ }, t('Font Family')), React.createElement(WebFontsSelector, {
163
+ value: getFontFamilyValue(),
164
+ onChange: value => handleSettingChange('fontFamily', value),
165
+ options: FONT_OPTIONS
166
+ }))), React.createElement("div", {
167
+ className: "mt-8 pb-8 border-b border-black dark:border-[#2a2b2a]"
168
+ }, React.createElement(NavigationModes, {
169
+ settings: settingsForComponents,
170
+ changeSetting: handleSettingChange,
171
+ applyToAllRoutes: applyToAllRoutes,
172
+ location: location,
173
+ routePattern: routePattern
174
+ }), React.createElement("div", {
175
+ className: "mt-8"
176
+ }, React.createElement(LayoutChange, {
177
+ settings: settingsForComponents,
178
+ changeSetting: handleSettingChange,
179
+ applyToAllRoutes: applyToAllRoutes,
180
+ location: location,
181
+ routePattern: routePattern
182
+ })), React.createElement("div", {
183
+ className: "mt-8"
184
+ }, React.createElement(InvitationSettings, {
185
+ settings: settingsForComponents,
186
+ changeSetting: handleSettingChange,
187
+ location: location,
188
+ routePattern: routePattern,
189
+ applyToAllRoutes: applyToAllRoutes
190
+ }))), React.createElement("div", {
191
+ className: "mt-8 pb-8 border-b border-black dark:border-[#2a2b2a]"
192
+ }, React.createElement(RegionalSettings, {
193
+ settings: settingsForComponents,
194
+ changeSetting: handleSettingChange,
195
+ applyToAllRoutes: applyToAllRoutes,
196
+ location: location,
197
+ routePattern: routePattern
198
+ })), React.createElement("div", {
199
+ className: "mt-8 pb-8 border-b border-black dark:border-[#2a2b2a]"
200
+ }, React.createElement(AdditionalSettingsSlot, {
201
+ settings: settingsForComponents,
202
+ onSettingsChange: handleSettingChange,
203
+ pathname: currentPathname
204
+ })), React.createElement(SettingsActions, {
205
+ hasChanges: changedSettings && Object.keys(changedSettings).length > 0,
206
+ copied: copied,
207
+ copiedModified: copiedModified,
208
+ onSave: handleSaveSettings,
209
+ onCopyAll: handleCopySettings,
210
+ onCopyModified: handleCopyModifiedSettings,
211
+ onReset: handleResetSettings
212
+ }))));
213
+ }export{SettingDrawer};//# sourceMappingURL=SettingDrawer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SettingDrawer.js","sources":["../../../src/components/SettingDrawer/SettingDrawer.tsx"],"sourcesContent":[null],"names":["_jsx","_Fragment","_jsxs"],"mappings":"8oBAuCA,IAAI,UAAU,GAAoC,EAAE;AAEpD,MAAM,WAAW,GAAG,CAAC,IAAoB,EAAE,KAAc,EAAE,UAAU,GAAG,QAAQ,KAAI;;MAE5E,OAAA,MAAa,KAAA,WAAgB,IAAA,CAAA,MAAoB,CAAA,uBAAwB,EAAA;;;AAI7E,EAAA,MAAA,IAAU,GAAA,IAAO,GAAC,CAAC,EAAC,UAAa,CAAA,KAAA,CAAA,GAAQ,CAAC,EAAI,UAAA,CAAA,CAAU;;MAEpD,aAAA,OAAoB,IAAA,QAAU,CAAC,CAAC,EAAA,kBAAsB,CAAA,OAAM,CAAC,GAAG,kBAAE,CAAA,KAAwB,IAAA,EAAI,CAAE;AACpG,EAAA,IAAA,UAAc,UAAA,IAAc,IAAA,EAAI;iBACf,GAAA,EAAA;;QAGX,GAAA,WAAc,CAAA,4BAAgB,CAAA;;AAGpC,EAAA,IAAA,CAAA,IAAS,IAAA,CAAA,aAAK,EAAa;QACvB,GAAI,EAAA;gBACI,EAAM;AACV,MAAA,YAAA,CAAA,UAAa,CAAA,YAAW,CAAA;;;;QAK1B,GAAA,MAAS,IAAA,CAAA,eAAoB,IAAA,EAAI,CAAE,IA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A,QAAA,SAAA,EAAA;AACA;AA8BpC,4BAAE,EAAA,IAAA,GAAA,qBAAA,GAAA,yBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"SettingDrawer.js","sources":["../../../src/components/SettingDrawer/SettingDrawer.tsx"],"sourcesContent":[null],"names":[],"mappings":"2qDA4BM,SAAU,aAAa,CAAC,KAAyB,EAAA;AACnD,EAAA,MAAA;AACA,IAAA,KAAA;IAEA,SAAO;AACP,IAAA,QAAM;IAEN,QAAQ;AACR,IAAA,QAAQ;IACR,YAAW;IAEX;MACA,KAAO;AACP,EAAA,MAAA;IACA,SAAO;IAEP;MACA,KAAM;;QAGN,MAAA,GAAA,MAAe,EAAA;AACf;QAQI;;mBAEA,EAAA;AACH,EAAA,MAAE;IAEH;MACA,cAAM,CAAA,UAAe,CAAA;;AAErB,EAAA,MAAA,CAAA,iBAAqB,QAAG,CAAA,KAAY,CAAC;QACrC,CAAA,eAAkB,EAAA,kBAAa,CAAA,WAAc,CAAQ,QAAE,GAAA,QAAc,GAAA,SAAA,CAAA;QAErE,CAAA,gBAAgB,EAAA,mBAAA,CAAA,GAAA,QAAA,CAAA,KAAA,CAAA;AAChB;QACI,YAAO,GAAA,KAAA,GAAA,WAA2B,CAAA,KAAA,EAAA,KAAY,iBAAgB,CAAA,MAAA,CAAU,GAAE,EAAA;QAC1E,0BAA0B,WAAE,CAAU,KAAG,EAAA,KAAA,IAAA,KAAA,CAAA,OAAA,CAAA,QAAA,CAAA,eAAA,CAAA,GAAA,EAAA;;QAG7C;IACA,MAAA;kBACI;AACJ,IAAA,kBAAI;IAEJ,0BAAe;sBACX;AACJ,IAAA;MAEA,qBAAe,CAAA;SACX;gBACI;AACI,IAAA;AACA,GAAA,CAAA;AACH;QACL,YAAC,GAAA,YAAA,IAAA,QAAA,EAAA,QAAA,IAAA,GAAA;AACL,EA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface ApplyToAllRoutesToggleProps {
3
+ checked: boolean;
4
+ onChange: (checked: boolean) => void;
5
+ }
6
+ export declare function ApplyToAllRoutesToggle({ checked, onChange }: ApplyToAllRoutesToggleProps): React.JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=ApplyToAllRoutesToggle.d.ts.map