@admin-layout/tailwind-design-pro 12.0.16-alpha.7 → 12.0.16-alpha.70

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 (180) hide show
  1. package/README.md +20 -0
  2. package/lib/cdm-locales/en/menu.json +2 -1
  3. package/lib/cdm-locales/es/menu.json +2 -1
  4. package/lib/cdm-locales/index.d.ts +2 -0
  5. package/lib/cdm-locales/index.d.ts.map +1 -0
  6. package/lib/cdm-locales/index.ts +1 -0
  7. package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
  8. package/lib/components/Layout/BasicLayout/index.d.ts +2 -1
  9. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
  10. package/lib/components/Layout/BasicLayout/index.js +131 -44
  11. package/lib/components/Layout/BasicLayout/index.js.map +1 -1
  12. package/lib/components/Layout/BasicLayout/utils.d.ts +2 -0
  13. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
  14. package/lib/components/Layout/BasicLayout/utils.js +16 -13
  15. package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
  16. package/lib/components/Layout/GlobalFooter/Account.d.ts +4 -0
  17. package/lib/components/Layout/GlobalFooter/Account.d.ts.map +1 -0
  18. package/lib/components/Layout/GlobalFooter/Account.js +147 -0
  19. package/lib/components/Layout/GlobalFooter/Account.js.map +1 -0
  20. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
  21. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +7 -12
  22. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
  23. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
  24. package/lib/components/Layout/GlobalHeader/Header.js +31 -8
  25. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
  26. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
  27. package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
  28. package/lib/components/Layout/GlobalHeader/MainHeader.js +32 -84
  29. package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
  30. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +1 -1
  31. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
  32. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -0
  33. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
  34. package/lib/components/Layout/GlobalHeader/RightContent.js +73 -6
  35. package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
  36. package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
  37. package/lib/components/Layout/GlobalHeader/RightMenu.js +2 -4
  38. package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
  39. package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
  40. package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
  41. package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
  42. package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
  43. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
  44. package/lib/components/Layout/ProTailwindLayout.js +69 -7
  45. package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
  46. package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
  47. package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
  48. package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
  49. package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
  50. package/lib/components/Layout/Sidebar/{Sidebar.js → MainSidebar.js} +86 -30
  51. package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
  52. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +4 -0
  53. package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
  54. package/lib/components/Layout/Sidebar/MainSidebarMenu.js +294 -0
  55. package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
  56. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +5 -0
  57. package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
  58. package/lib/components/Layout/Sidebar/PerplexSidebar.js +218 -0
  59. package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
  60. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
  61. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
  62. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +330 -0
  63. package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
  64. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
  65. package/lib/components/Layout/TailwindLayout.js +37 -10
  66. package/lib/components/Layout/TailwindLayout.js.map +1 -1
  67. package/lib/components/Layout/getPageTitle.js.map +1 -1
  68. package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
  69. package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
  70. package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
  71. package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
  72. package/lib/components/Layout/slot-fill/Logo.d.ts +4 -0
  73. package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
  74. package/lib/components/Layout/slot-fill/Logo.js +7 -0
  75. package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
  76. package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
  77. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +4 -0
  78. package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
  79. package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
  80. package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
  81. package/lib/components/Layout/slot-fill/index.d.ts +2 -0
  82. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
  83. package/lib/components/Layout/util.js +1 -1
  84. package/lib/components/Layout/util.js.map +1 -1
  85. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +1 -1
  86. package/lib/components/SettingDrawer/CheckBoxTheme.js +13 -3
  87. package/lib/components/SettingDrawer/CheckBoxTheme.js.map +1 -1
  88. package/lib/components/SettingDrawer/InvitationSettings.d.ts.map +1 -1
  89. package/lib/components/SettingDrawer/InvitationSettings.js +10 -6
  90. package/lib/components/SettingDrawer/InvitationSettings.js.map +1 -1
  91. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
  92. package/lib/components/SettingDrawer/LayoutChange.js +23 -16
  93. package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
  94. package/lib/components/SettingDrawer/MenuVisibilitySettings.d.ts +20 -0
  95. package/lib/components/SettingDrawer/MenuVisibilitySettings.d.ts.map +1 -0
  96. package/lib/components/SettingDrawer/MenuVisibilitySettings.js +120 -0
  97. package/lib/components/SettingDrawer/MenuVisibilitySettings.js.map +1 -0
  98. package/lib/components/SettingDrawer/NavigationsModes.d.ts +1 -1
  99. package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -1
  100. package/lib/components/SettingDrawer/NavigationsModes.js +90 -39
  101. package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -1
  102. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
  103. package/lib/components/SettingDrawer/RegionalSettings.js +54 -177
  104. package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
  105. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
  106. package/lib/components/SettingDrawer/SettingDrawer.js +404 -66
  107. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
  108. package/lib/components/SettingDrawer/Switch/index.js.map +1 -1
  109. package/lib/components/SettingDrawer/ThemeColor.d.ts.map +1 -1
  110. package/lib/components/SettingDrawer/ThemeColor.js +15 -3
  111. package/lib/components/SettingDrawer/ThemeColor.js.map +1 -1
  112. package/lib/components/SettingDrawer/types.d.ts +12 -0
  113. package/lib/components/SettingDrawer/types.d.ts.map +1 -1
  114. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +10 -5
  115. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
  116. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
  117. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
  118. package/lib/components/index.js +1 -1
  119. package/lib/components/typings.d.ts +16 -1
  120. package/lib/components/typings.d.ts.map +1 -1
  121. package/lib/compute.d.ts.map +1 -1
  122. package/lib/compute.js +10 -2
  123. package/lib/compute.js.map +1 -1
  124. package/lib/config/constants.js.map +1 -1
  125. package/lib/config/env-config.d.ts +3 -0
  126. package/lib/config/env-config.d.ts.map +1 -1
  127. package/lib/config/env-config.js +10 -0
  128. package/lib/config/env-config.js.map +1 -1
  129. package/lib/helpers/DynamicIcon.js.map +1 -1
  130. package/lib/hooks/useMediaQuery.js.map +1 -1
  131. package/lib/hooks/useScrollThreshold.js.map +1 -1
  132. package/lib/hooks/useTailwindTheme.js +82 -0
  133. package/lib/hooks/useTailwindTheme.js.map +1 -0
  134. package/lib/icons.d.ts +2 -0
  135. package/lib/icons.d.ts.map +1 -1
  136. package/lib/icons.js +4 -2
  137. package/lib/icons.js.map +1 -1
  138. package/lib/index.d.ts +1 -0
  139. package/lib/index.d.ts.map +1 -1
  140. package/lib/index.js +1 -1
  141. package/lib/index.js.map +1 -1
  142. package/lib/machines/selectors.d.ts +118 -0
  143. package/lib/machines/selectors.d.ts.map +1 -0
  144. package/lib/machines/settingsMachine.d.ts +25 -2
  145. package/lib/machines/settingsMachine.d.ts.map +1 -1
  146. package/lib/machines/settingsMachine.js +174 -163
  147. package/lib/machines/settingsMachine.js.map +1 -1
  148. package/lib/machines/settingsMachine.test.d.ts +2 -0
  149. package/lib/machines/settingsMachine.test.d.ts.map +1 -0
  150. package/lib/machines/types.d.ts +106 -9
  151. package/lib/machines/types.d.ts.map +1 -1
  152. package/lib/machines/types.js.map +1 -1
  153. package/lib/module.js.map +1 -1
  154. package/lib/redux/searchReducer.js.map +1 -1
  155. package/lib/routes.json +9 -1
  156. package/lib/tailwindConfig.js.map +1 -1
  157. package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
  158. package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
  159. package/lib/utils/configOverrides.d.ts +213 -0
  160. package/lib/utils/configOverrides.d.ts.map +1 -0
  161. package/lib/utils/configOverrides.js +91 -0
  162. package/lib/utils/configOverrides.js.map +1 -0
  163. package/lib/utils/isBrowser/index.js.map +1 -1
  164. package/lib/utils/settingsUtils.d.ts +20 -0
  165. package/lib/utils/settingsUtils.d.ts.map +1 -0
  166. package/lib/utils/settingsUtils.js +74 -0
  167. package/lib/utils/settingsUtils.js.map +1 -0
  168. package/lib/utils/utils/index.js.map +1 -1
  169. package/package.json +6 -6
  170. package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
  171. package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
  172. package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
  173. package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
  174. package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
  175. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
  176. package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
  177. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
  178. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
  179. package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -176
  180. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +0 -1
@@ -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/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';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,7 +609,7 @@ 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
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"RegionalSettings.js","sources":["../../../src/components/SettingDrawer/RegionalSettings.tsx"],"sourcesContent":[null],"names":["_jsxs","_Fragment","_jsx"],"mappings":"wZAQwB,SAAA,gBAAgB,CAAC,KAA6B,EAAA;QAC5D;IACN;AACA,GAAA,GAAA,cAAgB,CAAA,UAAa,CAAA;AAC7B,EAAA,MAAA;AACA,IAAA,QAAQ;AACR,IAAA,aAAO;AACP,IAAA;AACA,GAAA,GAAA,KAAO;AACP,EAAA,MAAA;AACA,IAAA;MACM,QAAA,IAAA,EAAA;QACA,YAAU,GAAG,QAAQ,EAAE,QAAC,IAAW,GAAA;AAEzC,EAAA,MAAA;AACI,IAAA,OAAA,GAAkB;cAAS,EAAA,aAAA,GAAA,YAAA,CAAA,IAAA,EAAA;AAE3B,EAAA,MAAA,CAAA,gBAA+B,EAAA,mBAAA,CAAA,GAAA,KAAwB,CAAA,QAAA,CAAA,KAAA,CAAA;AACnD,EAAA,MAAA,CAAA,oBAAqB,EAAA,uBAAS,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,IAAA,CAAA;4BAClB,EAAA,sBAAA,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,SAAA,CAAA;AACf,EAAA,MAAA,CAAA,eAAE,EAAA,kBAAA,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,SAAA,CAAA;AACP,EAAA,MAAE;AAEF,IAAA;AACI,GAAA,GAAA,aAAkB,EAAA;6BAAS,GAAA,IAAA,CAAA,KAAA,CAAA,MAAA,CAAA,gBAAA,CAAA;AAE3B,EAAA,MAAA,UAAA,GAAa,QAAkB,GAAA,QAAA,GAAA,SAAwB;AACnD,EAAA,MAAA,kBAAqB,GAAA,CAAA,GAAA,OAAS,KAAA;sBAClB,EAAA;AACf,IAAA,aAAE,CAAA,CAAA,cAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"RegionalSettings.js","sources":["../../../src/components/SettingDrawer/RegionalSettings.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"mdASc,SAAU,gBAAgB,CAAC,KAA6B,EAAA;QAClE;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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"SettingDrawer.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/SettingDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,OAAO,EAAsB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAoTjE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,GAAG,CAyR5D,CAAC"}
1
+ {"version":3,"file":"SettingDrawer.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/SettingDrawer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,EAAsB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAsVjE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,GAAG,GAAG,CAmpB5D,CAAC"}