@admin-layout/tailwind-design-pro 12.0.16-alpha.9 → 12.0.16-alpha.90

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 (260) hide show
  1. package/lib/cdm-locales/en/menu.json +2 -1
  2. package/lib/cdm-locales/es/menu.json +2 -1
  3. package/lib/cdm-locales/index.d.ts +2 -0
  4. package/lib/cdm-locales/index.d.ts.map +1 -0
  5. package/lib/cdm-locales/index.ts +1 -0
  6. package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
  7. package/lib/components/LanguageMenu/LanguageMenu.js +16 -20
  8. package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
  9. package/lib/components/Layout/BasicLayout/index.d.ts +6 -5
  10. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  11. package/lib/components/Layout/BasicLayout/index.js +220 -124
  12. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  13. package/lib/components/Layout/BasicLayout/utils.d.ts +2 -0
  14. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
  15. package/lib/components/Layout/BasicLayout/utils.js +16 -13
  16. package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
  17. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  18. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +9 -14
  19. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  20. package/lib/components/Layout/GlobalHeader/Header.d.ts +0 -1
  21. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  22. package/lib/components/Layout/GlobalHeader/Header.js +38 -10
  23. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  24. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
  25. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
  26. package/lib/components/Layout/GlobalHeader/MainHeader.js +54 -85
  27. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
  28. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +1 -1
  29. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  30. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -0
  31. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  32. package/lib/components/Layout/GlobalHeader/RightContent.js +73 -6
  33. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
  34. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
  35. package/lib/components/Layout/GlobalHeader/RightMenu.js +2 -4
  36. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
  37. package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
  38. package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
  39. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
  40. package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
  41. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  42. package/lib/components/Layout/ProTailwindLayout.js +69 -7
  43. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  44. package/lib/components/Layout/Sidebar/BottomMenu.d.ts +4 -0
  45. package/lib/components/Layout/Sidebar/BottomMenu.d.ts.map +1 -0
  46. package/lib/components/Layout/Sidebar/BottomMenu.js +330 -0
  47. package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -0
  48. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  49. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
  50. package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
  51. package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
  52. package/lib/components/Layout/Sidebar/MainSidebar.js +246 -0
  53. package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
  54. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +6 -0
  55. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
  56. package/lib/components/Layout/Sidebar/MainSidebarMenu.js +467 -0
  57. package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
  58. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +4 -0
  59. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
  60. package/lib/components/Layout/Sidebar/PerplexSidebar.js +279 -0
  61. package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
  62. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
  63. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
  64. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +332 -0
  65. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
  66. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  67. package/lib/components/Layout/TailwindLayout.js +29 -10
  68. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  69. package/lib/components/Layout/getPageTitle.js.map +1 -1
  70. package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
  71. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  72. package/lib/components/Layout/slot-fill/HeaderNotice.js +7 -0
  73. package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -0
  74. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
  75. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
  76. package/lib/components/Layout/slot-fill/Logo.d.ts +4 -0
  77. package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
  78. package/lib/components/Layout/slot-fill/Logo.js +7 -0
  79. package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
  80. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
  81. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +4 -0
  82. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
  83. package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
  84. package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
  85. package/lib/components/Layout/slot-fill/index.d.ts +2 -0
  86. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  87. package/lib/components/Layout/util.js +1 -1
  88. package/lib/components/Layout/util.js.map +1 -1
  89. package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -3
  90. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  91. package/lib/components/SettingDrawer/SettingDrawer.js +166 -416
  92. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  93. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +7 -0
  94. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -0
  95. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +30 -0
  96. package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -0
  97. package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +3 -0
  98. package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -0
  99. package/lib/components/SettingDrawer/{CheckBoxTheme.js → components/CheckBoxTheme.js} +14 -5
  100. package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -0
  101. package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +7 -0
  102. package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -0
  103. package/lib/components/SettingDrawer/components/DeviceTabs.js +82 -0
  104. package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -0
  105. package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +3 -0
  106. package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -0
  107. package/lib/components/SettingDrawer/{InvitationSettings.js → components/InvitationSettings.js} +11 -7
  108. package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -0
  109. package/lib/components/SettingDrawer/components/LayoutChange.d.ts +3 -0
  110. package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -0
  111. package/lib/components/SettingDrawer/{LayoutChange.js → components/LayoutChange.js} +24 -17
  112. package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -0
  113. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +20 -0
  114. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -0
  115. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +119 -0
  116. package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -0
  117. package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +3 -0
  118. package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -0
  119. package/lib/components/SettingDrawer/{NavigationsModes.js → components/NavigationsModes.js} +91 -40
  120. package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -0
  121. package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +3 -0
  122. package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -0
  123. package/lib/components/SettingDrawer/{RegionalSettings.js → components/RegionalSettings.js} +55 -178
  124. package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -0
  125. package/lib/components/SettingDrawer/components/SettingsActions.d.ts +12 -0
  126. package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -0
  127. package/lib/components/SettingDrawer/components/SettingsActions.js +69 -0
  128. package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -0
  129. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +4 -0
  130. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -0
  131. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +25 -0
  132. package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -0
  133. package/lib/components/SettingDrawer/{Switch/index.d.ts → components/Switch.d.ts} +2 -2
  134. package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -0
  135. package/lib/components/SettingDrawer/{Switch/index.js → components/Switch.js} +1 -1
  136. package/lib/components/SettingDrawer/components/Switch.js.map +1 -0
  137. package/lib/components/SettingDrawer/components/ThemeColor.d.ts +3 -0
  138. package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -0
  139. package/lib/components/SettingDrawer/{ThemeColor.js → components/ThemeColor.js} +16 -4
  140. package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -0
  141. package/lib/components/SettingDrawer/{ThemeSelector.d.ts → components/ThemeSelector.d.ts} +1 -1
  142. package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -0
  143. package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -0
  144. package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +3 -0
  145. package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -0
  146. package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -0
  147. package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts +18 -0
  148. package/lib/components/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -0
  149. package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +119 -0
  150. package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -0
  151. package/lib/components/SettingDrawer/utils/constants.d.ts +11 -0
  152. package/lib/components/SettingDrawer/utils/constants.d.ts.map +1 -0
  153. package/lib/components/SettingDrawer/utils/constants.js +77 -0
  154. package/lib/components/SettingDrawer/utils/constants.js.map +1 -0
  155. package/lib/components/SettingDrawer/utils/helper.d.ts +37 -0
  156. package/lib/components/SettingDrawer/utils/helper.d.ts.map +1 -0
  157. package/lib/components/SettingDrawer/utils/helper.js +243 -0
  158. package/lib/components/SettingDrawer/utils/helper.js.map +1 -0
  159. package/lib/components/SettingDrawer/utils/transformers.d.ts +15 -0
  160. package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -0
  161. package/lib/components/SettingDrawer/utils/transformers.js +76 -0
  162. package/lib/components/SettingDrawer/utils/transformers.js.map +1 -0
  163. package/lib/components/SettingDrawer/{types.d.ts → utils/types.d.ts} +14 -0
  164. package/lib/components/SettingDrawer/utils/types.d.ts.map +1 -0
  165. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +10 -5
  166. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  167. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
  168. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
  169. package/lib/components/index.js +1 -1
  170. package/lib/components/typings.d.ts +20 -1
  171. package/lib/components/typings.d.ts.map +1 -1
  172. package/lib/compute.d.ts.map +1 -1
  173. package/lib/compute.js +10 -2
  174. package/lib/compute.js.map +1 -1
  175. package/lib/config/constants.js.map +1 -1
  176. package/lib/config/env-config.d.ts +3 -0
  177. package/lib/config/env-config.d.ts.map +1 -1
  178. package/lib/config/env-config.js +10 -0
  179. package/lib/config/env-config.js.map +1 -1
  180. package/lib/helpers/DynamicIcon.js.map +1 -1
  181. package/lib/hooks/useMediaQuery.js.map +1 -1
  182. package/lib/hooks/useScrollThreshold.js.map +1 -1
  183. package/lib/hooks/useTailwindTheme.js +82 -0
  184. package/lib/hooks/useTailwindTheme.js.map +1 -0
  185. package/lib/icons.d.ts +2 -0
  186. package/lib/icons.d.ts.map +1 -1
  187. package/lib/icons.js +4 -2
  188. package/lib/icons.js.map +1 -1
  189. package/lib/index.d.ts +1 -0
  190. package/lib/index.d.ts.map +1 -1
  191. package/lib/index.js +1 -1
  192. package/lib/index.js.map +1 -1
  193. package/lib/machines/selectors.d.ts +118 -0
  194. package/lib/machines/selectors.d.ts.map +1 -0
  195. package/lib/machines/settingsMachine.d.ts +25 -2
  196. package/lib/machines/settingsMachine.d.ts.map +1 -1
  197. package/lib/machines/settingsMachine.js +139 -168
  198. package/lib/machines/settingsMachine.js.map +1 -1
  199. package/lib/machines/settingsMachine.test.d.ts +2 -0
  200. package/lib/machines/settingsMachine.test.d.ts.map +1 -0
  201. package/lib/machines/types.d.ts +107 -9
  202. package/lib/machines/types.d.ts.map +1 -1
  203. package/lib/machines/types.js.map +1 -1
  204. package/lib/module.js.map +1 -1
  205. package/lib/redux/searchReducer.js.map +1 -1
  206. package/lib/routes.json +9 -1
  207. package/lib/tailwindConfig.js.map +1 -1
  208. package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
  209. package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
  210. package/lib/utils/configOverrides.d.ts +213 -0
  211. package/lib/utils/configOverrides.d.ts.map +1 -0
  212. package/lib/utils/configOverrides.js +91 -0
  213. package/lib/utils/configOverrides.js.map +1 -0
  214. package/lib/utils/isBrowser/index.js.map +1 -1
  215. package/lib/utils/settingsUtils.d.ts +20 -0
  216. package/lib/utils/settingsUtils.d.ts.map +1 -0
  217. package/lib/utils/settingsUtils.js +74 -0
  218. package/lib/utils/settingsUtils.js.map +1 -0
  219. package/lib/utils/utils/index.js.map +1 -1
  220. package/package.json +6 -6
  221. package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
  222. package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
  223. package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
  224. package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
  225. package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
  226. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
  227. package/lib/components/Layout/Sidebar/Sidebar.js +0 -180
  228. package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
  229. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
  230. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
  231. package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -176
  232. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
  233. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +0 -3
  234. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +0 -1
  235. package/lib/components/SettingDrawer/CheckBoxTheme.js.map +0 -1
  236. package/lib/components/SettingDrawer/InvitationSettings.d.ts +0 -3
  237. package/lib/components/SettingDrawer/InvitationSettings.d.ts.map +0 -1
  238. package/lib/components/SettingDrawer/InvitationSettings.js.map +0 -1
  239. package/lib/components/SettingDrawer/LayoutChange.d.ts +0 -3
  240. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +0 -1
  241. package/lib/components/SettingDrawer/LayoutChange.js.map +0 -1
  242. package/lib/components/SettingDrawer/NavigationsModes.d.ts +0 -3
  243. package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +0 -1
  244. package/lib/components/SettingDrawer/NavigationsModes.js.map +0 -1
  245. package/lib/components/SettingDrawer/RegionalSettings.d.ts +0 -3
  246. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +0 -1
  247. package/lib/components/SettingDrawer/RegionalSettings.js.map +0 -1
  248. package/lib/components/SettingDrawer/Switch/index.d.ts.map +0 -1
  249. package/lib/components/SettingDrawer/Switch/index.js.map +0 -1
  250. package/lib/components/SettingDrawer/ThemeColor.d.ts +0 -3
  251. package/lib/components/SettingDrawer/ThemeColor.d.ts.map +0 -1
  252. package/lib/components/SettingDrawer/ThemeColor.js.map +0 -1
  253. package/lib/components/SettingDrawer/ThemeSelector.d.ts.map +0 -1
  254. package/lib/components/SettingDrawer/ThemeSelector.js.map +0 -1
  255. package/lib/components/SettingDrawer/WebFontsSelector.d.ts +0 -3
  256. package/lib/components/SettingDrawer/WebFontsSelector.d.ts.map +0 -1
  257. package/lib/components/SettingDrawer/WebFontsSelector.js.map +0 -1
  258. package/lib/components/SettingDrawer/types.d.ts.map +0 -1
  259. /package/lib/components/SettingDrawer/{ThemeSelector.js → components/ThemeSelector.js} +0 -0
  260. /package/lib/components/SettingDrawer/{WebFontsSelector.js → components/WebFontsSelector.js} +0 -0
@@ -1,4 +1,4 @@
1
- import {jsxs,jsx}from'react/jsx-runtime';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';const navigationModes = [{
1
+ import {jsxs,jsx}from'react/jsx-runtime';import {useMemo}from'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';import {getSettingValue}from'../../../utils/settingsUtils.js';const navigationModes = [{
2
2
  key: 'sidebar',
3
3
  title: 'Sidebar',
4
4
  svg: jsxs("svg", {
@@ -183,55 +183,106 @@ const menuTypes = [{
183
183
  })]
184
184
  })
185
185
  }, {
186
- key: 'grouping',
187
- title: 'Grouping',
186
+ key: 'perplexLayout',
187
+ title: 'Perplex Layout',
188
188
  svg: jsxs("svg", {
189
189
  width: "58",
190
190
  height: "50",
191
- viewBox: "0 0 58 50",
191
+ viewBox: "0 0 80 60",
192
+ fill: "none",
192
193
  xmlns: "http://www.w3.org/2000/svg",
193
194
  children: [jsx("rect", {
194
- width: "58",
195
- height: "50",
196
- rx: "8",
197
- fill: "#ffffff"
195
+ x: "1",
196
+ y: "1",
197
+ width: "78",
198
+ height: "58",
199
+ rx: "4",
200
+ fill: "white",
201
+ stroke: "#E5E7EB",
202
+ strokeWidth: "2"
198
203
  }), jsx("rect", {
199
- x: "0",
200
- y: "0",
201
- width: "58",
202
- height: "14",
203
- fill: "#001529"
204
+ x: "1",
205
+ y: "1",
206
+ width: "20",
207
+ height: "58",
208
+ rx: "3",
209
+ fill: "#0F172A"
204
210
  }), jsx("rect", {
205
- x: "8",
206
- y: "6",
211
+ x: "5",
212
+ y: "10",
207
213
  width: "10",
208
- height: "2",
209
- rx: "1",
210
- fill: "#ffffff",
211
- opacity: "0.65"
214
+ height: "3",
215
+ rx: "1.5",
216
+ fill: "white",
217
+ opacity: "0.9"
212
218
  }), jsx("rect", {
213
- x: "24",
214
- y: "6",
219
+ x: "5",
220
+ y: "20",
215
221
  width: "10",
216
- height: "2",
217
- rx: "1",
218
- fill: "#ffffff",
219
- opacity: "0.65"
222
+ height: "3",
223
+ rx: "1.5",
224
+ fill: "white",
225
+ opacity: "0.6"
226
+ }), jsx("rect", {
227
+ x: "5",
228
+ y: "30",
229
+ width: "10",
230
+ height: "3",
231
+ rx: "1.5",
232
+ fill: "white",
233
+ opacity: "0.4"
234
+ }), jsx("rect", {
235
+ x: "25",
236
+ y: "10",
237
+ width: "40",
238
+ height: "3",
239
+ rx: "1.5",
240
+ fill: "#0F172A",
241
+ opacity: "0.7"
242
+ }), jsx("rect", {
243
+ x: "25",
244
+ y: "20",
245
+ width: "30",
246
+ height: "3",
247
+ rx: "1.5",
248
+ fill: "#0F172A",
249
+ opacity: "0.5"
250
+ }), jsx("rect", {
251
+ x: "25",
252
+ y: "35",
253
+ width: "45",
254
+ height: "3",
255
+ rx: "1.5",
256
+ fill: "#0F172A",
257
+ opacity: "0.4"
258
+ }), jsx("rect", {
259
+ x: "25",
260
+ y: "45",
261
+ width: "35",
262
+ height: "3",
263
+ rx: "1.5",
264
+ fill: "#0F172A",
265
+ opacity: "0.3"
220
266
  })]
221
267
  })
222
268
  }];
223
269
  function NavigationModes({
224
270
  changeSetting,
225
271
  settings,
226
- location
272
+ location,
273
+ routePattern,
274
+ applyToAllRoutes = false
227
275
  }) {
228
276
  const {
229
277
  isMobile
230
278
  } = useMediaQuery();
231
- const currentRoute = location?.pathname || '/';
232
- const routeSettings = settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
279
+ const currentRoute = routePattern || location?.pathname || '/';
233
280
  const deviceType = isMobile ? 'mobile' : 'desktop';
234
- const deviceLayout = routeSettings?.layout?.[deviceType] || {};
281
+ // Get navigation values using the utility function
282
+ const navigationValues = useMemo(() => ({
283
+ navigationMode: getSettingValue(settings, 'navigationMode', applyToAllRoutes, currentRoute, deviceType, 'mixed'),
284
+ sideMenuType: getSettingValue(settings, 'sideMenuType', applyToAllRoutes, currentRoute, deviceType, 'expanded')
285
+ }), [settings, applyToAllRoutes, currentRoute, deviceType]);
235
286
  return jsxs("div", {
236
287
  className: "space-y-8",
237
288
  children: [jsxs("section", {
@@ -242,13 +293,13 @@ function NavigationModes({
242
293
  className: "flex flex-row gap-4",
243
294
  children: navigationModes.map((mode, index) => jsx("div", {
244
295
  className: "relative cursor-pointer hover:opacity-80 transition-opacity shadow-sm dark:shadow-md rounded overflow-hidden",
245
- onClick: () => changeSetting(`routeSettings.${currentRoute}.layout.${deviceType}`, {
246
- ...deviceLayout,
247
- navigationMode: mode.key
248
- }),
296
+ onClick: () => {
297
+ // Pass simple key - handleSettingChange in SettingDrawer will decide if it's global or route-specific
298
+ changeSetting('navigationMode', mode.key);
299
+ },
249
300
  children: jsxs("div", {
250
301
  className: "relative",
251
- children: [mode.svg, deviceLayout?.navigationMode === mode.key && jsx("svg", {
302
+ children: [mode.svg, navigationValues.navigationMode === mode.key && jsx("svg", {
252
303
  className: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-6 h-6 text-blue-500 pointer-events-none",
253
304
  viewBox: "0 0 24 24",
254
305
  fill: "currentColor",
@@ -267,13 +318,13 @@ function NavigationModes({
267
318
  className: "flex flex-row gap-4",
268
319
  children: menuTypes.map((type, index) => jsx("div", {
269
320
  className: "relative cursor-pointer hover:opacity-80 transition-opacity shadow-sm dark:shadow-md rounded overflow-hidden",
270
- onClick: () => changeSetting(`routeSettings.${currentRoute}.layout.${deviceType}`, {
271
- ...deviceLayout,
272
- sideMenuType: type.key
273
- }),
321
+ onClick: () => {
322
+ // Pass simple key - handleSettingChange in SettingDrawer will decide if it's global or route-specific
323
+ changeSetting('sideMenuType', type.key);
324
+ },
274
325
  children: jsxs("div", {
275
326
  className: "relative",
276
- children: [type.svg, deviceLayout?.sideMenuType === type.key && jsx("svg", {
327
+ children: [type.svg, navigationValues.sideMenuType === type.key && jsx("svg", {
277
328
  className: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 w-6 h-6 text-blue-500 pointer-events-none",
278
329
  viewBox: "0 0 24 24",
279
330
  fill: "currentColor",
@@ -286,4 +337,4 @@ function NavigationModes({
286
337
  })]
287
338
  })]
288
339
  });
289
- }export{NavigationModes as default};//# sourceMappingURL=NavigationsModes.js.map
340
+ }export{NavigationModes};//# sourceMappingURL=NavigationsModes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigationsModes.js","sources":["../../../../src/components/SettingDrawer/components/NavigationsModes.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"sRAMA,MAAM,eAAe,GAAG,CAAA;AACpB,EAAA,GAAA,EAAA,SAAA;AACI,EAAA,KAAA,EAAA,SAAK;AACL,EAAA,GAAA,EAAAA,IAAA,CAAK,KAAE,EAAA;AACP,IAAA,KAAA,EAAG,IACC;AAQP,IAAA,MAAA,EAAA,IAAA;AACD,IAAA,OAAA,EAAA,WAAA;AACI,IAAA,KAAA,EAAG,4BAAU;AACb,IAAA,QAAA,GAAOC,GAAA,CAAA,MAAS,EAAA;AAChB,MAAA,KAAG,EAAE,IACD;AAQP,MAAA,MAAA,EAAA,IAAA;AACD,MAAA,EAAA,EAAA,GAAA;AACI,MAAA,IAAA;AACA,KAAA,CAAA,EAAAA,GAAA,CAAK,MAAE,EAAA;SACP,GAAG;AAaN,MAAA,CAAA,EAAA,GAAA;MACH,KAAA,EAAA,IAAA;AACF,MAAM,YAAY;AACd,MAAA,IAAA,EAAA;AACI,KAAA,CAAA,EAAAA,IAAK,MAAA,EAAA;AACL,MAAA,CAAA,EAAA,GAAA;SACA,GAAG;AAQN,MAAA,KAAA,EAAA,IAAA;AACD,MAAA,MAAA,EAAA,GAAA;AACI,MAAA,EAAA,EAAA,GAAK;AACL,MAAA,IAAA,EAAA;AACA,KAAA,CAAA,EAAAA,GAAG,CAAE,MACD,EAAA;AAYP,MAAA,CAAA,EAAA,GAAA;MACH,CAAA,EAAA,IAAA;AAEF,MAAM,KAAA,EAAA,IAAU;AAOZ,MAAA,MAAQ,EAAA,GAAA;MACR,EAAA,EAAM,GAAA;AACN,MAAA,IAAM,EAAA,SAAU;MAEhB,OAAA,EAAA;AACA,KAAA,CAAA,EAAAA;AAEQ,MAAA,CAAA,EAAA,GAAA;AAQA,MAAA,CAAA,EAAA,IAAA;MAQF,KACD,EAAA,IAAQ;MAGb,MACI;;AAawB,MAAA,IAAA,EAAA,SAAA;;;AAgCA,GAAA;;AAqBhC,EAAC,GAAA,EAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ import { IRegionalSettingsProps } from '../utils/types';
2
+ export declare function RegionalSettings(props: IRegionalSettingsProps): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=RegionalSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegionalSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/RegionalSettings.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAMxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,sBAAsB,2CA4hB7D"}
@@ -1,19 +1,18 @@
1
- import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';import {SearchBarBehavior}from'../../machines/types.js';import {config}from'../../config/env-config.js';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';function RegionalSettings(props) {
1
+ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';import {useTranslation}from'react-i18next';import {Switch}from'./Switch.js';import {SearchBarBehavior}from'../../../machines/types.js';import {config}from'../../../config/env-config.js';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';import {getSettingValue}from'../../../utils/settingsUtils.js';function RegionalSettings(props) {
2
2
  const {
3
3
  t
4
4
  } = useTranslation('settings');
5
5
  const {
6
6
  settings,
7
7
  changeSetting,
8
- location
8
+ location,
9
+ routePattern,
10
+ applyToAllRoutes = false
9
11
  } = props;
10
12
  const {
11
13
  navTheme
12
14
  } = settings || {};
13
- const currentRoute = location?.pathname || '/';
14
- const {
15
- regions = {}
16
- } = settings?.routeSettings?.[currentRoute] || {};
15
+ const currentRoute = routePattern || location?.pathname || '/';
17
16
  const [isHeaderExpanded, setIsHeaderExpanded] = React.useState(false);
18
17
  const [isBackgroundExpanded, setIsBackgroundExpanded] = React.useState(true);
19
18
  const [activeBackgroundTab, setActiveBackgroundTab] = React.useState('desktop');
@@ -23,36 +22,55 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
23
22
  } = useMediaQuery();
24
23
  const scrollThresholdConfig = JSON.parse(config.SCROLL_THRESHOLD);
25
24
  const deviceType = isMobile ? 'mobile' : 'desktop';
26
- const handleRegionChange = (key, value) => {
25
+ // Helper to get config value using the utility function
26
+ const getConfigValue = (configKey, defaultValue, useActiveTab = true) => {
27
+ const device = useActiveTab ? activeBackgroundTab || activeHeaderTab : deviceType;
28
+ return getSettingValue(settings, configKey, applyToAllRoutes, currentRoute, device, defaultValue);
29
+ };
30
+ // Helper to set config value with override
31
+ const setConfigValue = (configKey, value, useActiveTab = true) => {
27
32
  if (!changeSetting) return;
28
- changeSetting(`routeSettings.${currentRoute}.regions.${deviceType}.header`, {
29
- ...regions[deviceType]?.header,
30
- [key]: value
31
- });
33
+ // Pass simple key - handleSettingChange in SettingDrawer will decide if it's global or route-specific
34
+ // based on the applyToAllRoutes flag
35
+ changeSetting(configKey, value);
36
+ };
37
+ const handleRegionChange = (key, value) => {
38
+ setConfigValue(`header.${key}`, value, false);
32
39
  };
33
40
  const handleRegionFooterChange = (key, value) => {
34
- if (!changeSetting) return;
35
- changeSetting(`routeSettings.${currentRoute}.regions.${deviceType}.footer`, {
36
- ...regions[deviceType]?.footer,
37
- [key]: value
38
- });
41
+ setConfigValue(`footer.${key}`, value, false);
39
42
  };
40
43
  const handleBackgroundChange = (property, value) => {
41
- if (!changeSetting) return;
42
- changeSetting(`routeSettings.${currentRoute}.regions.${deviceType}.background`, {
43
- ...regions[deviceType].background,
44
- [property]: value
45
- });
44
+ setConfigValue(`background.${property}`, value, true);
46
45
  };
47
46
  const handleHeaderChange = (element, value) => {
48
- if (!changeSetting) return;
49
- changeSetting(`routeSettings.${currentRoute}.regions.${deviceType}.header`, {
50
- ...regions[deviceType]?.header,
51
- [element]: value
52
- });
47
+ setConfigValue(`header.${element}`, value, true);
53
48
  };
54
- const header = regions[deviceType]?.header;
55
- const background = regions[deviceType]?.background;
49
+ // Get current values using the override-aware getter with active header tab
50
+ const header = React.useMemo(() => ({
51
+ showLogo: getConfigValue('header.showLogo', true, true),
52
+ showSearchSlot: getConfigValue('header.showSearchSlot', true, true),
53
+ showRightContent: getConfigValue('header.showRightContent', true, true),
54
+ showMenuToggle: getConfigValue('header.showMenuToggle', true, true),
55
+ showBackButton: getConfigValue('header.showBackButton', true, true),
56
+ showPageTitle: getConfigValue('header.showPageTitle', true, true),
57
+ showActionButtons: getConfigValue('header.showActionButtons', true, true),
58
+ fixedHeader: getConfigValue('header.fixedHeader', true, true),
59
+ showHeader: getConfigValue('header.showHeader', true, true),
60
+ showMenu: getConfigValue('header.showMenu', true, true),
61
+ menuHeaderRender: getConfigValue('header.menuHeaderRender', true, true),
62
+ searchBarRender: getConfigValue('header.searchBarRender', true, true),
63
+ searchBarBehavior: getConfigValue('header.searchBarBehavior', SearchBarBehavior.PERMANENT, true),
64
+ searchBarOverlay: getConfigValue('header.searchBarOverlay', true, true),
65
+ scrollThreshold: getConfigValue('header.scrollThreshold', scrollThresholdConfig.DEFAULT, true)
66
+ }), [activeHeaderTab, currentRoute, settings, applyToAllRoutes]);
67
+ const background = React.useMemo(() => ({
68
+ type: getConfigValue('background.type', 'color', true),
69
+ color: getConfigValue('background.color', 'inherit', true),
70
+ image: getConfigValue('background.image', '', true),
71
+ video: getConfigValue('background.video', '', true),
72
+ videoThumbnail: getConfigValue('background.videoThumbnail', '', true)
73
+ }), [activeBackgroundTab, currentRoute, settings, applyToAllRoutes]);
56
74
  // Helper function to render background settings based on current active tab
57
75
  const renderBackgroundSettings = () => {
58
76
  return jsxs(Fragment, {
@@ -263,7 +281,6 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
263
281
  };
264
282
  // Helper function to render header settings based on current active tab
265
283
  const renderHeaderSettings = () => {
266
- const isDesktop = activeHeaderTab === 'desktop';
267
284
  return jsxs("div", {
268
285
  className: "space-y-2",
269
286
  children: [jsxs("div", {
@@ -276,7 +293,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
276
293
  }), jsx("div", {
277
294
  className: "flex-grow"
278
295
  }), jsx(Switch, {
279
- value: isDesktop ? regions.desktop?.header?.showHeader ?? true : regions.mobile?.header?.showHeader ?? true,
296
+ value: header?.showHeader ?? true,
280
297
  onChange: checked => handleHeaderChange('showHeader', checked)
281
298
  })]
282
299
  }), jsxs("div", {
@@ -498,82 +515,12 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
498
515
  className: `grid transition-all duration-300 ease-in-out ${isBackgroundExpanded ? 'grid-rows-[1fr]' : 'grid-rows-[0fr]'}`,
499
516
  children: jsx("div", {
500
517
  className: "overflow-hidden",
501
- children: jsxs("div", {
518
+ children: jsx("div", {
502
519
  className: "ml-4 mb-4 border-l-2 border-gray-200 pl-4",
503
- children: [jsxs("div", {
504
- className: "flex mb-4 mt-1",
505
- children: [jsx("button", {
506
- className: `flex-1 py-2 px-4 text-sm font-medium transition-colors duration-200 rounded-l-lg border border-r-0 border-gray-300 ${activeBackgroundTab === 'desktop' ? 'bg-blue-500 text-white border-blue-500' : 'bg-white text-gray-700 hover:bg-gray-50'}`,
507
- onClick: () => setActiveBackgroundTab('desktop'),
508
- children: jsxs("span", {
509
- className: "flex items-center justify-center",
510
- children: [jsxs("svg", {
511
- xmlns: "http://www.w3.org/2000/svg",
512
- width: "16",
513
- height: "16",
514
- viewBox: "0 0 24 24",
515
- fill: "none",
516
- stroke: "currentColor",
517
- strokeWidth: "2",
518
- strokeLinecap: "round",
519
- strokeLinejoin: "round",
520
- className: "mr-1",
521
- children: [jsx("rect", {
522
- x: "2",
523
- y: "3",
524
- width: "20",
525
- height: "14",
526
- rx: "2",
527
- ry: "2"
528
- }), jsx("line", {
529
- x1: "8",
530
- y1: "21",
531
- x2: "16",
532
- y2: "21"
533
- }), jsx("line", {
534
- x1: "12",
535
- y1: "17",
536
- x2: "12",
537
- y2: "21"
538
- })]
539
- }), t('desktop_tab')]
540
- })
541
- }), jsx("button", {
542
- className: `flex-1 py-2 px-4 text-sm font-medium transition-colors duration-200 rounded-r-lg border border-gray-300 ${activeBackgroundTab === 'mobile' ? 'bg-blue-500 text-white border-blue-500' : 'bg-white text-gray-700 hover:bg-gray-50'}`,
543
- onClick: () => setActiveBackgroundTab('mobile'),
544
- children: jsxs("span", {
545
- className: "flex items-center justify-center",
546
- children: [jsxs("svg", {
547
- xmlns: "http://www.w3.org/2000/svg",
548
- width: "16",
549
- height: "16",
550
- viewBox: "0 0 24 24",
551
- fill: "none",
552
- stroke: "currentColor",
553
- strokeWidth: "2",
554
- strokeLinecap: "round",
555
- strokeLinejoin: "round",
556
- className: "mr-1",
557
- children: [jsx("rect", {
558
- x: "5",
559
- y: "2",
560
- width: "14",
561
- height: "20",
562
- rx: "2",
563
- ry: "2"
564
- }), jsx("line", {
565
- x1: "12",
566
- y1: "18",
567
- x2: "12",
568
- y2: "18"
569
- })]
570
- }), t('mobile_tab')]
571
- })
572
- })]
573
- }), jsx("div", {
520
+ children: jsx("div", {
574
521
  className: "mb-4",
575
522
  children: renderBackgroundSettings()
576
- })]
523
+ })
577
524
  })
578
525
  })
579
526
  })]
@@ -607,77 +554,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
607
554
  className: "overflow-hidden",
608
555
  children: jsxs("div", {
609
556
  className: "ml-4 mb-4 border-l-2 border-gray-200 pl-4",
610
- children: [jsxs("div", {
611
- className: "flex mb-4 mt-1",
612
- children: [jsx("button", {
613
- className: `flex-1 py-2 px-4 text-sm font-medium transition-colors duration-200 rounded-l-lg border border-r-0 border-gray-300 ${activeHeaderTab === 'desktop' ? 'bg-blue-500 text-white border-blue-500' : 'bg-white text-gray-700 hover:bg-gray-50'}`,
614
- onClick: () => setActiveHeaderTab('desktop'),
615
- children: jsxs("span", {
616
- className: "flex items-center justify-center",
617
- children: [jsxs("svg", {
618
- xmlns: "http://www.w3.org/2000/svg",
619
- width: "16",
620
- height: "16",
621
- viewBox: "0 0 24 24",
622
- fill: "none",
623
- stroke: "currentColor",
624
- strokeWidth: "2",
625
- strokeLinecap: "round",
626
- strokeLinejoin: "round",
627
- className: "mr-1",
628
- children: [jsx("rect", {
629
- x: "2",
630
- y: "3",
631
- width: "20",
632
- height: "14",
633
- rx: "2",
634
- ry: "2"
635
- }), jsx("line", {
636
- x1: "8",
637
- y1: "21",
638
- x2: "16",
639
- y2: "21"
640
- }), jsx("line", {
641
- x1: "12",
642
- y1: "17",
643
- x2: "12",
644
- y2: "21"
645
- })]
646
- }), t('desktop_tab')]
647
- })
648
- }), jsx("button", {
649
- className: `flex-1 py-2 px-4 text-sm font-medium transition-colors duration-200 rounded-r-lg border border-gray-300 ${activeHeaderTab === 'mobile' ? 'bg-blue-500 text-white border-blue-500' : 'bg-white text-gray-700 hover:bg-gray-50'}`,
650
- onClick: () => setActiveHeaderTab('mobile'),
651
- children: jsxs("span", {
652
- className: "flex items-center justify-center",
653
- children: [jsxs("svg", {
654
- xmlns: "http://www.w3.org/2000/svg",
655
- width: "16",
656
- height: "16",
657
- viewBox: "0 0 24 24",
658
- fill: "none",
659
- stroke: "currentColor",
660
- strokeWidth: "2",
661
- strokeLinecap: "round",
662
- strokeLinejoin: "round",
663
- className: "mr-1",
664
- children: [jsx("rect", {
665
- x: "5",
666
- y: "2",
667
- width: "14",
668
- height: "20",
669
- rx: "2",
670
- ry: "2"
671
- }), jsx("line", {
672
- x1: "12",
673
- y1: "18",
674
- x2: "12",
675
- y2: "18"
676
- })]
677
- }), t('mobile_tab')]
678
- })
679
- })]
680
- }), jsx("div", {
557
+ children: [jsx("div", {
681
558
  className: "mb-4",
682
559
  children: renderHeaderSettings()
683
560
  }), jsxs("div", {
@@ -706,7 +583,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
706
583
  }), jsx("div", {
707
584
  className: "flex-grow"
708
585
  }), jsx(Switch, {
709
- value: regions[deviceType]?.footer?.showFooter,
586
+ value: getConfigValue('footer.showFooter', true),
710
587
  onChange: checked => handleRegionFooterChange('showFooter', checked)
711
588
  })]
712
589
  }), jsxs("div", {
@@ -719,7 +596,7 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
719
596
  }), jsx("div", {
720
597
  className: "flex-grow"
721
598
  }), jsx(Switch, {
722
- value: regions[deviceType]?.header?.showMenu,
599
+ value: getConfigValue('header.showMenu', true),
723
600
  onChange: checked => handleRegionChange('showMenu', checked)
724
601
  })]
725
602
  }), jsxs("div", {
@@ -732,9 +609,9 @@ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import*as React from'react';im
732
609
  }), jsx("div", {
733
610
  className: "flex-grow"
734
611
  }), jsx(Switch, {
735
- value: regions[deviceType]?.header?.menuHeaderRender,
612
+ value: getConfigValue('header.menuHeaderRender', true),
736
613
  onChange: checked => handleRegionChange('menuHeaderRender', checked)
737
614
  })]
738
615
  })]
739
616
  });
740
- }export{RegionalSettings as default};//# sourceMappingURL=RegionalSettings.js.map
617
+ }export{RegionalSettings};//# sourceMappingURL=RegionalSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegionalSettings.js","sources":["../../../../src/components/SettingDrawer/components/RegionalSettings.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"ydASM,SAAU,gBAAgB,CAAC,KAA6B,EAAA;QAC1D;AACA,IAAA;AACA,GAAA,GAAA,cAAgB,CAAA,UAAK,CAAA;QACrB;AACA,IAAA,QAAO;AACP,IAAA,aAAO;AACP,IAAA,QAAO;AACP,IAAA,YAAO;AACP,IAAA,gBAAgB,GAAE;MAClB,KAAM;QACN;IAEA;MACA,QAAM,IAAA,EAAA;AACF,EAAA,MAAA,YAAY,GAAG,YAAY,IAAG,QAAA,EAAA,QAAmB,IAAI,GAAA;AACrD,EAAA,MAAA,CAAA,gBAAO,EAAA,uBAAmC,KAAE,CAAA,QAAA,CAAA,KAAkB,CAAA;AAClE,EAAA,MAAE,CAAA,oBAAA,EAAA,uBAAA,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,IAAA,CAAA;QAEF,CAAA,mBAAA,EAAA,sBAA2C,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,SAAA,CAAA;QAC3C,CAAA,eAAoB,EAAA,kBAAiC,CAAA,GAAE,KAAA,CAAA,QAAwB,CAAA,SAAQ,CAAA;AACnF,EAAA,MAAA;;mBAEA,EAAA;QACA,qBAAA,GAAA,IAAA,CAAA,KAAA,CAAA,MAAqC,CAAA,gBAAA,CAAA;AACrC,EAAA,MAAA,UAAA,GAAa,QAAC,GAAS,QAAS,GAAA,SAAA;AACpC;AAEA,EAAA,MAAA,2BAAuC,EAAE,YAAkB,EAAA,YAAA,GAAA,IAAA,KAAA;UACvD,MAAA,GAAA,eAAyB,mBAAoB,IAAC,eAAA,GAAA,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+ onReset: () => void;
9
+ }
10
+ export declare function SettingsActions({ hasChanges, copied, copiedModified, onSave, onCopyAll, onCopyModified, onReset, }: SettingsActionsProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=SettingsActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsActions.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/SettingsActions.tsx"],"names":[],"mappings":"AAIA,UAAU,oBAAoB;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,wBAAgB,eAAe,CAAC,EAC5B,UAAU,EACV,MAAM,EACN,cAAc,EACd,MAAM,EACN,SAAS,EACT,cAAc,EACd,OAAO,GACV,EAAE,oBAAoB,2CAwEtB"}
@@ -0,0 +1,69 @@
1
+ import {jsxs,jsx,Fragment}from'react/jsx-runtime';import clsx from'clsx';import {icons}from'../../../icons.js';function SettingsActions({
2
+ hasChanges,
3
+ copied,
4
+ copiedModified,
5
+ onSave,
6
+ onCopyAll,
7
+ onCopyModified,
8
+ onReset
9
+ }) {
10
+ const {
11
+ CopyIcon,
12
+ CheckIcon
13
+ } = icons;
14
+ return jsxs("div", {
15
+ className: "bg-yellow-50 dark:bg-yellow-900 border border-yellow-200 dark:border-yellow-700 rounded-lg p-4 mt-4",
16
+ children: [jsx("p", {
17
+ className: "text-sm text-yellow-700 dark:text-yellow-200",
18
+ children: "Setting panel shows in development environment only, please manually modify"
19
+ }), jsxs("div", {
20
+ className: "flex flex-wrap gap-2 mt-2",
21
+ children: [jsx("button", {
22
+ disabled: !hasChanges,
23
+ className: clsx('flex-1 min-w-[140px] sm:flex-none sm:w-auto px-4 py-2 rounded-lg border text-sm font-medium shadow-sm transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2', !hasChanges ? 'border-gray-300 text-gray-500 bg-gray-50 cursor-not-allowed dark:border-gray-600 dark:text-gray-400 dark:bg-gray-800' : 'border-yellow-300 text-yellow-700 bg-yellow-50 hover:bg-yellow-100 active:bg-yellow-200 dark:border-yellow-600 dark:text-yellow-200 dark:bg-yellow-900/50 dark:hover:bg-yellow-900'),
24
+ onClick: onSave,
25
+ children: jsx("span", {
26
+ children: !hasChanges ? 'No Changes' : 'Save Settings'
27
+ })
28
+ }), jsx("button", {
29
+ className: clsx('flex-1 min-w-[140px] sm:flex-none sm:w-auto px-4 py-2 rounded-lg border text-sm font-medium shadow-sm transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2', copied ? 'border-green-300 text-green-700 bg-green-50 dark:border-green-600 dark:text-green-200 dark:bg-green-900' : 'border-yellow-300 text-yellow-700 bg-yellow-50 hover:bg-yellow-100 active:bg-yellow-200 dark:border-yellow-600 dark:text-yellow-200 dark:bg-yellow-900/50 dark:hover:bg-yellow-900'),
30
+ onClick: onCopyAll,
31
+ children: copied ? jsxs(Fragment, {
32
+ children: [jsx(CheckIcon, {
33
+ className: "w-4 h-4"
34
+ }), jsx("span", {
35
+ children: "Copied!"
36
+ })]
37
+ }) : jsxs(Fragment, {
38
+ children: [jsx(CopyIcon, {
39
+ className: "w-4 h-4"
40
+ }), jsx("span", {
41
+ children: "Copy All Settings"
42
+ })]
43
+ })
44
+ }), jsx("button", {
45
+ className: clsx('flex-1 min-w-[140px] sm:flex-none sm:w-auto px-4 py-2 rounded-lg border text-sm font-medium shadow-sm transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2', copiedModified ? 'border-green-300 text-green-700 bg-green-50 dark:border-green-600 dark:text-green-200 dark:bg-green-900' : 'border-blue-300 text-blue-700 bg-blue-50 hover:bg-blue-100 active:bg-blue-200 dark:border-blue-600 dark:text-blue-200 dark:bg-blue-900/50 dark:hover:bg-blue-900'),
46
+ onClick: onCopyModified,
47
+ children: copiedModified ? jsxs(Fragment, {
48
+ children: [jsx(CheckIcon, {
49
+ className: "w-4 h-4"
50
+ }), jsx("span", {
51
+ children: "Copied!"
52
+ })]
53
+ }) : jsxs(Fragment, {
54
+ children: [jsx(CopyIcon, {
55
+ className: "w-4 h-4"
56
+ }), jsx("span", {
57
+ children: "Copy Modified Settings"
58
+ })]
59
+ })
60
+ }), jsx("button", {
61
+ className: "flex-1 min-w-[140px] sm:flex-none sm:w-auto px-4 py-2 rounded-lg border border-red-300 text-red-700 bg-red-50 hover:bg-red-100 active:bg-red-200 dark:border-red-600 dark:text-red-200 dark:bg-red-900/50 dark:hover:bg-red-900 text-sm font-medium shadow-sm transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",
62
+ onClick: onReset,
63
+ children: jsx("span", {
64
+ children: "\uD83D\uDD04 Reset All Settings"
65
+ })
66
+ })]
67
+ })]
68
+ });
69
+ }export{SettingsActions};//# sourceMappingURL=SettingsActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsActions.js","sources":["../../../../src/components/SettingDrawer/components/SettingsActions.tsx"],"sourcesContent":[null],"names":[],"mappings":"wHAcgB,eAAe,CAAC;AAS5B,EAAA,UAAQ;AAER,EAAA,MAAA;AAWwB,EAAA,cAAA;AACA,EAAA,MAAA;AAUA,EAAA,SAAA;;AAqBA,EAAA;;AA0B5B,EAAC,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,4 @@
1
+ export declare function SettingsDrawerHeader({ onClose }: {
2
+ onClose: () => void;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=SettingsDrawerHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingsDrawerHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/SettingDrawer/components/SettingsDrawerHeader.tsx"],"names":[],"mappings":"AAIA,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,2CAgBxE"}
@@ -0,0 +1,25 @@
1
+ import {jsxs,jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {icons}from'../../../icons.js';function SettingsDrawerHeader({
2
+ onClose
3
+ }) {
4
+ const {
5
+ t
6
+ } = useTranslation('settings');
7
+ const {
8
+ CloseIcon
9
+ } = icons;
10
+ return jsxs("div", {
11
+ className: "flex flex-row items-center",
12
+ children: [jsx("p", {
13
+ className: "text-2xl mb-0 text-black dark:text-white",
14
+ children: t('setting')
15
+ }), jsx("div", {
16
+ className: "flex-grow"
17
+ }), jsx("button", {
18
+ onClick: onClose,
19
+ className: "bg-transparent border-none rounded-lg w-10 h-10 cursor-pointer mb-2 hover:bg-gray-200 dark:hover:bg-[#2a2a2a]",
20
+ children: jsx(CloseIcon, {
21
+ fontSize: '36px'
22
+ })
23
+ })]
24
+ });
25
+ }export{SettingsDrawerHeader};//# sourceMappingURL=SettingsDrawerHeader.js.map