@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.
- package/README.md +20 -0
- package/lib/cdm-locales/en/menu.json +2 -1
- package/lib/cdm-locales/es/menu.json +2 -1
- package/lib/cdm-locales/index.d.ts +2 -0
- package/lib/cdm-locales/index.d.ts.map +1 -0
- package/lib/cdm-locales/index.ts +1 -0
- package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
- package/lib/components/Layout/BasicLayout/index.d.ts +2 -1
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +131 -44
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts +2 -0
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +16 -13
- package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/Account.d.ts +4 -0
- package/lib/components/Layout/GlobalFooter/Account.d.ts.map +1 -0
- package/lib/components/Layout/GlobalFooter/Account.js +147 -0
- package/lib/components/Layout/GlobalFooter/Account.js.map +1 -0
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +7 -12
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +31 -8
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts +0 -2
- package/lib/components/Layout/GlobalHeader/MainHeader.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js +32 -84
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts +1 -0
- package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +73 -6
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.js +2 -4
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts +0 -1
- package/lib/components/Layout/GlobalHeader/index.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.d.ts +2 -2
- package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +69 -7
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts +5 -0
- package/lib/components/Layout/Sidebar/MainSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/{Sidebar.js → MainSidebar.js} +86 -30
- package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js +294 -0
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts +5 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js +218 -0
- package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts +4 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.d.ts.map +1 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +330 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
- package/lib/components/Layout/TailwindLayout.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +37 -10
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/getPageTitle.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
- package/lib/components/Layout/slot-fill/Logo.d.ts +4 -0
- package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/Logo.js +7 -0
- package/lib/components/Layout/slot-fill/Logo.js.map +1 -0
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +4 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js +7 -0
- package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -0
- package/lib/components/Layout/slot-fill/index.d.ts +2 -0
- package/lib/components/Layout/slot-fill/index.d.ts.map +1 -1
- package/lib/components/Layout/util.js +1 -1
- package/lib/components/Layout/util.js.map +1 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +1 -1
- package/lib/components/SettingDrawer/CheckBoxTheme.js +13 -3
- package/lib/components/SettingDrawer/CheckBoxTheme.js.map +1 -1
- package/lib/components/SettingDrawer/InvitationSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/InvitationSettings.js +10 -6
- package/lib/components/SettingDrawer/InvitationSettings.js.map +1 -1
- package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -1
- package/lib/components/SettingDrawer/LayoutChange.js +23 -16
- package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
- package/lib/components/SettingDrawer/MenuVisibilitySettings.d.ts +20 -0
- package/lib/components/SettingDrawer/MenuVisibilitySettings.d.ts.map +1 -0
- package/lib/components/SettingDrawer/MenuVisibilitySettings.js +120 -0
- package/lib/components/SettingDrawer/MenuVisibilitySettings.js.map +1 -0
- package/lib/components/SettingDrawer/NavigationsModes.d.ts +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.js +90 -39
- package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +54 -177
- package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +404 -66
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/Switch/index.js.map +1 -1
- package/lib/components/SettingDrawer/ThemeColor.d.ts.map +1 -1
- package/lib/components/SettingDrawer/ThemeColor.js +15 -3
- package/lib/components/SettingDrawer/ThemeColor.js.map +1 -1
- package/lib/components/SettingDrawer/types.d.ts +12 -0
- package/lib/components/SettingDrawer/types.d.ts.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +10 -5
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +97 -4
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/typings.d.ts +16 -1
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/compute.d.ts.map +1 -1
- package/lib/compute.js +10 -2
- package/lib/compute.js.map +1 -1
- package/lib/config/constants.js.map +1 -1
- package/lib/config/env-config.d.ts +3 -0
- package/lib/config/env-config.d.ts.map +1 -1
- package/lib/config/env-config.js +10 -0
- package/lib/config/env-config.js.map +1 -1
- package/lib/helpers/DynamicIcon.js.map +1 -1
- package/lib/hooks/useMediaQuery.js.map +1 -1
- package/lib/hooks/useScrollThreshold.js.map +1 -1
- package/lib/hooks/useTailwindTheme.js +82 -0
- package/lib/hooks/useTailwindTheme.js.map +1 -0
- package/lib/icons.d.ts +2 -0
- package/lib/icons.d.ts.map +1 -1
- package/lib/icons.js +4 -2
- package/lib/icons.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/machines/selectors.d.ts +118 -0
- package/lib/machines/selectors.d.ts.map +1 -0
- package/lib/machines/settingsMachine.d.ts +25 -2
- package/lib/machines/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +174 -163
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/settingsMachine.test.d.ts +2 -0
- package/lib/machines/settingsMachine.test.d.ts.map +1 -0
- package/lib/machines/types.d.ts +106 -9
- package/lib/machines/types.d.ts.map +1 -1
- package/lib/machines/types.js.map +1 -1
- package/lib/module.js.map +1 -1
- package/lib/redux/searchReducer.js.map +1 -1
- package/lib/routes.json +9 -1
- package/lib/tailwindConfig.js.map +1 -1
- package/lib/utils/__tests__/configOverrides.test.d.ts +2 -0
- package/lib/utils/__tests__/configOverrides.test.d.ts.map +1 -0
- package/lib/utils/configOverrides.d.ts +213 -0
- package/lib/utils/configOverrides.d.ts.map +1 -0
- package/lib/utils/configOverrides.js +91 -0
- package/lib/utils/configOverrides.js.map +1 -0
- package/lib/utils/isBrowser/index.js.map +1 -1
- package/lib/utils/settingsUtils.d.ts +20 -0
- package/lib/utils/settingsUtils.d.ts.map +1 -0
- package/lib/utils/settingsUtils.js +74 -0
- package/lib/utils/settingsUtils.js.map +1 -0
- package/lib/utils/utils/index.js.map +1 -1
- package/package.json +6 -6
- package/lib/components/Layout/GlobalHeader/Logo.d.ts +0 -4
- package/lib/components/Layout/GlobalHeader/Logo.d.ts.map +0 -1
- package/lib/components/Layout/GlobalHeader/Logo.js +0 -141
- package/lib/components/Layout/GlobalHeader/Logo.js.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -5
- package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/Sidebar.js.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +0 -4
- package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +0 -1
- package/lib/components/Layout/Sidebar/SidebarMenu.js +0 -176
- 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
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
49
|
-
changeSetting(`routeSettings.${currentRoute}.regions.${deviceType}.header`, {
|
|
50
|
-
...regions[deviceType]?.header,
|
|
51
|
-
[element]: value
|
|
52
|
-
});
|
|
47
|
+
setConfigValue(`header.${element}`, value, true);
|
|
53
48
|
};
|
|
54
|
-
|
|
55
|
-
const
|
|
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:
|
|
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:
|
|
518
|
+
children: jsx("div", {
|
|
502
519
|
className: "ml-4 mb-4 border-l-2 border-gray-200 pl-4",
|
|
503
|
-
children:
|
|
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: [
|
|
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:
|
|
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:
|
|
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:
|
|
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","
|
|
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,KAAkB,CAAA;AAClE,EAAA,MAAE,CAAA,oBAAA,EAAA,uBAAA,CAAA,GAAA,KAAA,CAAA,QAAA,CAAA,IAAA,CAAA;QAEF,CAAA,mBAAA,EAAA,sBAA2C,CAAA,GAAA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingDrawer.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/SettingDrawer.tsx"],"names":[],"mappings":"
|
|
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"}
|