@admin-layout/tailwind-design-pro 12.0.16-alpha.93 → 12.2.1-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -1
- package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -1
- package/lib/components/LanguageMenu/LanguageMenu.js +25 -32
- package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -1
- package/lib/components/Layout/BasicLayout/index.d.ts +1 -1
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +96 -103
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.d.ts +2 -2
- package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/utils.js +69 -88
- package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +25 -30
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts +2 -1
- package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +32 -43
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js +71 -81
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +26 -30
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightContent.js +25 -29
- package/lib/components/Layout/GlobalHeader/RightContent.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/RightMenu.js +112 -136
- package/lib/components/Layout/GlobalHeader/RightMenu.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/SearchBar.js +36 -45
- package/lib/components/Layout/GlobalHeader/SearchBar.js.map +1 -1
- package/lib/components/Layout/ProTailwindLayout.js +2 -3
- package/lib/components/Layout/ProTailwindLayout.js.map +1 -1
- package/lib/components/Layout/Sidebar/BottomMenu.js +148 -184
- package/lib/components/Layout/Sidebar/BottomMenu.js.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.d.ts +2 -1
- package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/Divider.js +26 -28
- package/lib/components/Layout/Sidebar/Divider.js.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/DynamicIcon.js +10 -11
- package/lib/components/Layout/Sidebar/DynamicIcon.js.map +1 -1
- package/lib/components/Layout/Sidebar/MainSidebar.js +75 -97
- package/lib/components/Layout/Sidebar/MainSidebar.js.map +1 -1
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts +1 -1
- package/lib/components/Layout/Sidebar/MainSidebarMenu.d.ts.map +1 -1
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js +113 -129
- package/lib/components/Layout/Sidebar/MainSidebarMenu.js.map +1 -1
- package/lib/components/Layout/Sidebar/PerplexSidebar.js +108 -133
- package/lib/components/Layout/Sidebar/PerplexSidebar.js.map +1 -1
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js +71 -85
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +13 -14
- package/lib/components/Layout/TailwindLayout.js.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts +3 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/AdditionalSettings.js +2 -2
- package/lib/components/Layout/slot-fill/AdditionalSettings.js.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.d.ts +3 -2
- package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Footer.js +2 -2
- package/lib/components/Layout/slot-fill/Footer.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +3 -2
- package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderNotice.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderNotice.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchBar.js.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts +2 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js +2 -2
- package/lib/components/Layout/slot-fill/HeaderSearchButton.js.map +1 -1
- package/lib/components/Layout/slot-fill/Logo.d.ts +3 -2
- package/lib/components/Layout/slot-fill/Logo.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/Logo.js +2 -2
- package/lib/components/Layout/slot-fill/Logo.js.map +1 -1
- package/lib/components/Layout/slot-fill/RightContent.d.ts +2 -1
- package/lib/components/Layout/slot-fill/RightContent.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/RightContent.js +2 -2
- package/lib/components/Layout/slot-fill/RightContent.js.map +1 -1
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts +3 -2
- package/lib/components/Layout/slot-fill/SideMenuLogo.d.ts.map +1 -1
- package/lib/components/Layout/slot-fill/SideMenuLogo.js +2 -2
- package/lib/components/Layout/slot-fill/SideMenuLogo.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts +2 -1
- package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +117 -139
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts +2 -1
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js +17 -23
- package/lib/components/SettingDrawer/components/ApplyToAllRoutesToggle.js.map +1 -1
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts +2 -1
- package/lib/components/SettingDrawer/components/CheckBoxTheme.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js +85 -97
- package/lib/components/SettingDrawer/components/CheckBoxTheme.js.map +1 -1
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts +2 -1
- package/lib/components/SettingDrawer/components/DeviceTabs.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/DeviceTabs.js +67 -75
- package/lib/components/SettingDrawer/components/DeviceTabs.js.map +1 -1
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts +2 -1
- package/lib/components/SettingDrawer/components/InvitationSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/InvitationSettings.js +41 -52
- package/lib/components/SettingDrawer/components/InvitationSettings.js.map +1 -1
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts +2 -1
- package/lib/components/SettingDrawer/components/LayoutChange.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/LayoutChange.js +75 -94
- package/lib/components/SettingDrawer/components/LayoutChange.js.map +1 -1
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts +2 -1
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js +50 -63
- package/lib/components/SettingDrawer/components/MenuVisibilitySettings.js.map +1 -1
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts +2 -1
- package/lib/components/SettingDrawer/components/NavigationsModes.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/NavigationsModes.js +272 -290
- package/lib/components/SettingDrawer/components/NavigationsModes.js.map +1 -1
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts +2 -1
- package/lib/components/SettingDrawer/components/RegionalSettings.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/RegionalSettings.js +437 -535
- package/lib/components/SettingDrawer/components/RegionalSettings.js.map +1 -1
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts +2 -1
- package/lib/components/SettingDrawer/components/SettingsActions.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/SettingsActions.js +29 -56
- package/lib/components/SettingDrawer/components/SettingsActions.js.map +1 -1
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts +2 -1
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js +13 -16
- package/lib/components/SettingDrawer/components/SettingsDrawerHeader.js.map +1 -1
- package/lib/components/SettingDrawer/components/Switch.d.ts +2 -1
- package/lib/components/SettingDrawer/components/Switch.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/Switch.js +8 -10
- package/lib/components/SettingDrawer/components/Switch.js.map +1 -1
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts +2 -1
- package/lib/components/SettingDrawer/components/ThemeColor.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/ThemeColor.js +24 -26
- package/lib/components/SettingDrawer/components/ThemeColor.js.map +1 -1
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts +2 -1
- package/lib/components/SettingDrawer/components/ThemeSelector.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/ThemeSelector.js +11 -13
- package/lib/components/SettingDrawer/components/ThemeSelector.js.map +1 -1
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts +1 -0
- package/lib/components/SettingDrawer/components/WebFontsSelector.d.ts.map +1 -1
- package/lib/components/SettingDrawer/components/WebFontsSelector.js +17 -19
- package/lib/components/SettingDrawer/components/WebFontsSelector.js.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +2 -6
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +16 -23
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -1
- package/lib/compute.js +1 -7
- package/lib/helpers/DynamicIcon.d.ts +1 -1
- package/lib/helpers/DynamicIcon.d.ts.map +1 -1
- package/lib/helpers/DynamicIcon.js +16 -17
- package/lib/helpers/DynamicIcon.js.map +1 -1
- package/lib/routes.json +1 -10
- package/package.json +6 -6
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
className: "flex flex-col items-center justify-center py-4"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})]
|
|
25
|
-
}), jsx("div", {
|
|
26
|
-
className: "text-gray-500 text-sm",
|
|
27
|
-
children: `${new Date().getFullYear()} By CDMBase LLC`
|
|
28
|
-
})]
|
|
29
|
-
});
|
|
1
|
+
import*as React from'react';import {Link}from'@remix-run/react';import {isEmpty}from'lodash-es';import {useAppSelector,useLayoutSettings}from'@admin-layout/client';React.createElement("footer", {
|
|
2
|
+
className: "flex flex-col items-center justify-center py-4"
|
|
3
|
+
}, React.createElement("div", {
|
|
4
|
+
className: "flex space-x-8 mb-2"
|
|
5
|
+
}, React.createElement("a", {
|
|
6
|
+
href: "https://cdebase.com",
|
|
7
|
+
target: "_blank",
|
|
8
|
+
rel: "noopener noreferrer",
|
|
9
|
+
className: "text-gray-600 hover:text-gray-800 transition-colors"
|
|
10
|
+
}, "CDEBase Pro"), React.createElement("a", {
|
|
11
|
+
href: "https://github.com/cdebase",
|
|
12
|
+
target: "_blank",
|
|
13
|
+
rel: "noopener noreferrer",
|
|
14
|
+
className: "text-gray-600 hover:text-gray-800 transition-colors"
|
|
15
|
+
}, React.createElement("svg", {
|
|
16
|
+
className: "w-6 h-6",
|
|
17
|
+
fill: "currentColor",
|
|
18
|
+
viewBox: "0 0 24 24"
|
|
19
|
+
}, React.createElement("path", {
|
|
20
|
+
d: "M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"
|
|
21
|
+
})))), React.createElement("div", {
|
|
22
|
+
className: "text-gray-500 text-sm"
|
|
23
|
+
}, `${new Date().getFullYear()} By CDMBase LLC`));
|
|
30
24
|
const UserView = React.memo(({
|
|
31
25
|
collapsed,
|
|
32
26
|
layoutSettings
|
|
@@ -44,64 +38,53 @@ const UserView = React.memo(({
|
|
|
44
38
|
settings
|
|
45
39
|
} = useLayoutSettings();
|
|
46
40
|
if (isEmpty(profile) || isTest || mock) {
|
|
47
|
-
return
|
|
48
|
-
className: "flex"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
d: "M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"
|
|
77
|
-
})
|
|
78
|
-
})]
|
|
79
|
-
})
|
|
80
|
-
})
|
|
81
|
-
});
|
|
41
|
+
return React.createElement("div", {
|
|
42
|
+
className: "flex"
|
|
43
|
+
}, React.createElement("div", {
|
|
44
|
+
className: "xl:w-2/3"
|
|
45
|
+
}, React.createElement(Link, {
|
|
46
|
+
to: "/login"
|
|
47
|
+
}, !collapsed && React.createElement("button", {
|
|
48
|
+
className: "bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded flex items-center w-40 transition-colors"
|
|
49
|
+
}, React.createElement("svg", {
|
|
50
|
+
className: "w-5 h-5 mr-2",
|
|
51
|
+
fill: "none",
|
|
52
|
+
stroke: "currentColor",
|
|
53
|
+
viewBox: "0 0 24 24"
|
|
54
|
+
}, React.createElement("path", {
|
|
55
|
+
strokeLinecap: "round",
|
|
56
|
+
strokeLinejoin: "round",
|
|
57
|
+
strokeWidth: 2,
|
|
58
|
+
d: "M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"
|
|
59
|
+
})), "Login"), collapsed && React.createElement("svg", {
|
|
60
|
+
className: "w-6 h-6",
|
|
61
|
+
fill: "none",
|
|
62
|
+
stroke: "currentColor",
|
|
63
|
+
viewBox: "0 0 24 24"
|
|
64
|
+
}, React.createElement("path", {
|
|
65
|
+
strokeLinecap: "round",
|
|
66
|
+
strokeLinejoin: "round",
|
|
67
|
+
strokeWidth: 2,
|
|
68
|
+
d: "M11 16l-4-4m0 0l4-4m-4 4h14m-5 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h7a3 3 0 013 3v1"
|
|
69
|
+
})))));
|
|
82
70
|
}
|
|
83
|
-
return
|
|
71
|
+
return React.createElement("span", {
|
|
84
72
|
"data-user": nickname,
|
|
85
73
|
id: !isEmpty(profile) || isTest || mock ? `cde-user-placeholder` : 'cde-user',
|
|
86
|
-
className: `${settings?.themeType === 'dark' ? 'text-white' : ''}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
className: "pl-2 text-sm",
|
|
101
|
-
children: nickname
|
|
102
|
-
})]
|
|
103
|
-
})
|
|
104
|
-
});
|
|
74
|
+
className: `${settings?.themeType === 'dark' ? 'text-white' : ''}`
|
|
75
|
+
}, React.createElement("div", {
|
|
76
|
+
className: `flex items-center ${layoutSettings?.sideMenuType === 'perplexLayout' ? 'flex-col' : ''}`
|
|
77
|
+
}, React.createElement("div", {
|
|
78
|
+
className: "w-8 h-8 rounded-full bg-gray-300 flex items-center justify-center overflow-hidden ml-1 mb-1"
|
|
79
|
+
}, picture ? React.createElement("img", {
|
|
80
|
+
src: picture,
|
|
81
|
+
alt: "Account",
|
|
82
|
+
className: "w-full h-full object-cover"
|
|
83
|
+
}) : React.createElement("span", {
|
|
84
|
+
className: "text-sm"
|
|
85
|
+
}, 'Account'.charAt(0))), !collapsed && React.createElement("span", {
|
|
86
|
+
className: "pl-2 text-sm"
|
|
87
|
+
}, nickname)));
|
|
105
88
|
});
|
|
106
89
|
const FooterSubMenuItemRender = React.memo(({
|
|
107
90
|
item,
|
|
@@ -109,12 +92,10 @@ const FooterSubMenuItemRender = React.memo(({
|
|
|
109
92
|
layoutSettings
|
|
110
93
|
}) => {
|
|
111
94
|
if (item?.key === 'usermenu' || item?.key === 'account') {
|
|
112
|
-
return
|
|
95
|
+
return React.createElement(UserView, {
|
|
113
96
|
collapsed: collapsed,
|
|
114
97
|
layoutSettings: layoutSettings
|
|
115
98
|
});
|
|
116
99
|
}
|
|
117
|
-
return
|
|
118
|
-
children: item?.name
|
|
119
|
-
});
|
|
100
|
+
return React.createElement("span", null, item?.name);
|
|
120
101
|
});export{FooterSubMenuItemRender,UserView};//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../src/components/Layout/BasicLayout/utils.tsx"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../../src/components/Layout/BasicLayout/utils.tsx"],"sourcesContent":[null],"names":[],"mappings":"oKAKgC,KAC5B,CAAA,aAAA,CAAA,QAAA,EAAA;WACI,EAAA;AACI,CAAA,EAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAQA,EAAA,SAAA,EAAA;sBAMI,CAAA,GAAA,EAAA;AACI,EAAA,IAAA,EAAA,qBAAA;AAIZ,EAAA,MAAA,EAAA,QAAA;AAIR,EAAA,GAAA,EAAO,qBAAiB;AACpB,EAAA,WAAQ;AACR,CAAA,EAAA,aAAQ,CAAA,EAAM,KAAM,CAAA,aAAY,CAAA,GAAA,EAAO;AACvC,EAAA,IAAA,EAAA,4BAAqB;QAEjB,EAAA,QAAQ;AACR,EAAA,GAAA,EAAA,qBACI;aACI;AACI,CAAA,EAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AACK,EAAA,SAAA,EA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,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA;AAEF,MAAA,SAAA,EAAA,SAAA;AACA,MAAM,YAAO;AACT,MAAA,MAAQ,EAAA,cAAe;AACvB,MAAA,OAAQ,EAAA;AACR,KAAA,EAAA,KAAQ,CAAA,aAAc,CAAC,MAAM;AAE7B,MAAC,aAAc,EAAE,OAAO;AACxB,MAAC,cAAe,EAAC,OAAQ;AACzB,MAAC,WAAS,EAAK,CAAC;MAEf,CAAA;KACA,CAAA,CAAA,CAAG;;AAGJ,EAAA,OAAA,KAAU,CAAA,aAAc;AAC5B,IAAE,WAAA,EAAA,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import {generateMenuPath}from'@admin-layout/client';import {useNavigate}from'@remix-run/react';import {FooterSubMenuItemRender}from'../BasicLayout/utils.js';const BottomMenuDropDown = props => {
|
|
2
2
|
const {
|
|
3
3
|
menus,
|
|
4
4
|
collapsed,
|
|
@@ -34,34 +34,29 @@ import {jsxs,jsx}from'react/jsx-runtime';import*as React from'react';import {gen
|
|
|
34
34
|
setIsOpen(!isOpen);
|
|
35
35
|
};
|
|
36
36
|
const menuItems = menus?.menuData?.find(menu => menu.key === 'usermenu');
|
|
37
|
-
return
|
|
37
|
+
return React.createElement("div", {
|
|
38
38
|
className: "relative",
|
|
39
|
-
ref: dropdownRef
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}), item.name]
|
|
63
|
-
}, item.key))
|
|
64
|
-
})
|
|
65
|
-
})]
|
|
66
|
-
});
|
|
39
|
+
ref: dropdownRef
|
|
40
|
+
}, React.createElement("div", {
|
|
41
|
+
className: "cursor-pointer",
|
|
42
|
+
onClick: handleToggleDropdown,
|
|
43
|
+
onContextMenu: e => {
|
|
44
|
+
e.preventDefault();
|
|
45
|
+
handleToggleDropdown();
|
|
46
|
+
}
|
|
47
|
+
}, React.createElement(FooterSubMenuItemRender, {
|
|
48
|
+
item: menus.menuData[0],
|
|
49
|
+
collapsed: collapsed,
|
|
50
|
+
layoutSettings: layoutSettings
|
|
51
|
+
})), isOpen && React.createElement("div", {
|
|
52
|
+
className: "absolute bottom-full left-0 mb-1 bg-background border border-gray-200 rounded shadow-lg z-10 min-w-40"
|
|
53
|
+
}, React.createElement("div", {
|
|
54
|
+
className: "py-1"
|
|
55
|
+
}, menuItems?.children?.map(item => React.createElement("div", {
|
|
56
|
+
key: item.key,
|
|
57
|
+
className: "flex items-center px-4 py-2 text-sm text-foreground hover:bg-accent/20 cursor-pointer",
|
|
58
|
+
onClick: () => handleClick(item.key)
|
|
59
|
+
}, item.icon && React.createElement("span", {
|
|
60
|
+
className: "mr-2"
|
|
61
|
+
}, item.icon), item.name)))));
|
|
67
62
|
};export{BottomMenuDropDown as default};//# sourceMappingURL=BottomMenuDropdown.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomMenuDropdown.js","sources":["../../../../src/components/Layout/GlobalFooter/BottomMenuDropdown.tsx"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"BottomMenuDropdown.js","sources":["../../../../src/components/Layout/GlobalFooter/BottomMenuDropdown.tsx"],"sourcesContent":[null],"names":[],"mappings":"yLAMA,MAAM,kBAAkB,GAAsC,KAAC,IAAO;QAClE;AACA,IAAA,KAAA;AACA,IAAA,SAAO;IACP,WAAM;AAEN,IAAA;AACI,GAAA,GAAA,KAAA;AACI,EAAA,MAAA,QAAI,cAAY,EAAA;iBACZ,SAAU,CAAA,GAAA,KAAO,CAAA,QAAA,C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alFooter/Copyright.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Copyright.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/GlobalFooter/Copyright.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,QAAA,MAAM,SAAS,GAAI;;CAAS,sBAI3B,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/GlobalFooter/Footer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/GlobalFooter/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,YAAY,GAAI;;;CAAoB,sBAehD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from'react';import {Link}from'@remix-run/react';import {useDispatch,useSelector}from'react-redux';import {RightContent}from'./RightContent.js';import {icons}from'../../../icons.js';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';import {SearchBar}from'./SearchBar.js';import {HeaderNoticeSlot}from'../slot-fill/HeaderNotice.js';import'@common-stack/components-pro';import'reflect-metadata';import'@admin-layout/client/lib/constants/layout.js';const GlobalHeader = props => {
|
|
2
2
|
const {
|
|
3
3
|
theme,
|
|
4
4
|
layout,
|
|
@@ -81,47 +81,36 @@ import {jsx,jsxs}from'react/jsx-runtime';import {Link}from'@remix-run/react';imp
|
|
|
81
81
|
const showSearchBar = headerSettings?.showSearchSlot && headerSettings?.searchBarRender;
|
|
82
82
|
// Determine if right content should be shown
|
|
83
83
|
const showRightContent = headerSettings?.showRightContent && layoutSettings?.navigationMode !== 'sidebar';
|
|
84
|
-
return
|
|
84
|
+
return React__default.createElement("header", {
|
|
85
85
|
className: getHeaderClasses(),
|
|
86
|
-
style: getHeaderStyles()
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
className: "pull-right pt-2 mr-2",
|
|
117
|
-
children: jsx(HeaderNoticeSlot, {})
|
|
118
|
-
})
|
|
119
|
-
}), showRightContent && jsx(RightContent, {
|
|
120
|
-
upperMenus: upperMenus,
|
|
121
|
-
collapsed: collapsed,
|
|
122
|
-
routeParams: routeParams,
|
|
123
|
-
settings: settings
|
|
124
|
-
})]
|
|
125
|
-
})
|
|
126
|
-
});
|
|
86
|
+
style: getHeaderStyles()
|
|
87
|
+
}, React__default.createElement("div", {
|
|
88
|
+
className: `flex items-center justify-between h-full px-4 sm:px-6 mx-auto relative z-10 ${settings?.navTheme === 'realDark' ? 'text-white' : 'text-foreground'}`
|
|
89
|
+
}, isMobile && headerSettings?.showMenuToggle && React__default.createElement("button", {
|
|
90
|
+
className: "p-1 -ml-1 rounded-md md:hidden focus:outline-none focus-themed",
|
|
91
|
+
onClick: toggleSideMenu,
|
|
92
|
+
"aria-label": "Menu"
|
|
93
|
+
}, React__default.createElement(MenuIcon, {
|
|
94
|
+
className: "w-6 h-6"
|
|
95
|
+
})), headerSettings?.showLogo && React__default.createElement("div", null, React__default.createElement(Link, {
|
|
96
|
+
to: "/",
|
|
97
|
+
className: "ml-6 flex items-center gap-2.5 text-lg font-bold text-foreground"
|
|
98
|
+
}, typeof settings?.logo === 'string' ? React__default.createElement("img", {
|
|
99
|
+
src: settings?.logo,
|
|
100
|
+
alt: "Logo",
|
|
101
|
+
className: "w-[28px]"
|
|
102
|
+
}) : settings?.logo, !isMobile && headerSettings?.showPageTitle && React__default.createElement("span", {
|
|
103
|
+
style: {
|
|
104
|
+
color: settings?.navTheme === 'realDark' ? '#fff' : undefined
|
|
105
|
+
}
|
|
106
|
+
}, settings?.title))), showSearchBar && React__default.createElement("div", {
|
|
107
|
+
className: "flex-1 max-w-xl mx-4 hidden md:block"
|
|
108
|
+
}, React__default.createElement(SearchBar, null)), React__default.createElement("div", null, React__default.createElement("span", {
|
|
109
|
+
className: "pull-right pt-2 mr-2"
|
|
110
|
+
}, React__default.createElement(HeaderNoticeSlot, null))), showRightContent && React__default.createElement(RightContent, {
|
|
111
|
+
upperMenus: upperMenus,
|
|
112
|
+
collapsed: collapsed,
|
|
113
|
+
routeParams: routeParams,
|
|
114
|
+
settings: settings
|
|
115
|
+
})));
|
|
127
116
|
};export{GlobalHeader};//# sourceMappingURL=Header.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sources":["../../../../src/components/Layout/GlobalHeader/Header.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Header.js","sources":["../../../../src/components/Layout/GlobalHeader/Header.tsx"],"sourcesContent":[null],"names":[],"mappings":"ojBAUO,MAAM,YAAY,GAAqC,KAAC,IAAO;AAClE,EAAA,MAAA;AACA,IAAA,KAAA;AACA,IAAA,MAAM;AACN,IAAA,UAAM;AACN,IAAA,WAAQ;AAER,IAAA;IACA,QAAM;IAEN,cAAA;AACA,IAAA;WACI;AACA,EAAA,MAAA;;WAGA;;;AAE6B,GAAA,GAAA,aAAA,EAAA;EAC5B,WAAA;QAED;eACO;AACX,IAAA;MAEA,WAAA,CAAA,KAAA,IAAA,KAAA,CAAA,MAAA,CAAA;AACA,EAAA,MAAA,uBAAuB,EAAA,QAAA,IAAA,GAAA;AACnB,EA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/client';import {Link}from'@remix-run/react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';import {SearchBarBehavior}from'../../../machines/types.js';import'@common-stack/components-pro';import {HeaderSearchBarSlot}from'../slot-fill/HeaderSearchBar.js';import {HeaderSearchButtonSlot}from'../slot-fill/HeaderSearchButton.js';import {RightContentSlot}from'../slot-fill/RightContent.js';import {LogoSlot}from'../slot-fill/Logo.js';import {RightMenu}from'./RightMenu.js';const MainHeader = props => {
|
|
2
2
|
const {
|
|
3
3
|
rightContentRender,
|
|
4
4
|
setSettingToggle,
|
|
@@ -111,87 +111,77 @@ import {jsx,jsxs}from'react/jsx-runtime';import*as React from'react';import {get
|
|
|
111
111
|
if (!deviceRegions?.header?.showHeader && deviceRegions?.header?.showHeader !== undefined) {
|
|
112
112
|
return null;
|
|
113
113
|
}
|
|
114
|
-
return
|
|
114
|
+
return React.createElement("div", {
|
|
115
115
|
className: getHeaderClasses(),
|
|
116
|
-
style: getHeaderStyles()
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
style: getHeaderStyles()
|
|
117
|
+
}, React.createElement("div", {
|
|
118
|
+
className: "flex flex-col"
|
|
119
|
+
}, React.createElement("div", {
|
|
120
|
+
className: `
|
|
121
121
|
justify-around items-start ${deviceRegions?.header?.searchBarRender ? 'pt-0' : 'pt-[7px]'}
|
|
122
122
|
${deviceRegions?.header?.hidden ? 'hidden' : 'flex'}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
routeParams: routeParams,
|
|
188
|
-
getMenuSeparation: getMenuSeparation,
|
|
189
|
-
scrolled: scrolled,
|
|
190
|
-
authorities: authorities,
|
|
191
|
-
picture: picture
|
|
192
|
-
})]
|
|
193
|
-
})]
|
|
194
|
-
})
|
|
195
|
-
})
|
|
196
|
-
});
|
|
123
|
+
`
|
|
124
|
+
}, isMobile && showMenu && React.createElement("button", {
|
|
125
|
+
onClick: toggleSideMenu,
|
|
126
|
+
className: "flex items-center justify-center p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors duration-200",
|
|
127
|
+
"aria-label": "Toggle sidebar"
|
|
128
|
+
}, React.createElement("svg", {
|
|
129
|
+
className: "w-6 h-6 text-gray-600 dark:text-gray-300",
|
|
130
|
+
fill: "none",
|
|
131
|
+
stroke: "currentColor",
|
|
132
|
+
viewBox: "0 0 24 24",
|
|
133
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
134
|
+
}, React.createElement("path", {
|
|
135
|
+
strokeLinecap: "round",
|
|
136
|
+
strokeLinejoin: "round",
|
|
137
|
+
strokeWidth: 2,
|
|
138
|
+
d: "M4 6h16M4 12h16M4 18h16"
|
|
139
|
+
}))), headerSettings?.showLogo && React.createElement(Link, {
|
|
140
|
+
to: "/",
|
|
141
|
+
className: "text-foreground"
|
|
142
|
+
}, React.createElement(LogoSlot, {
|
|
143
|
+
settings: settings,
|
|
144
|
+
scrolled: scrolled,
|
|
145
|
+
location: location,
|
|
146
|
+
prefersReducedMotion: prefersReducedMotion,
|
|
147
|
+
layout: layout
|
|
148
|
+
})), React.createElement("div", {
|
|
149
|
+
className: "flex-grow"
|
|
150
|
+
}), headerSettings?.showSearchSlot && React.createElement("div", {
|
|
151
|
+
className: "relative flex items-start justify-center"
|
|
152
|
+
}, React.createElement("div", {
|
|
153
|
+
className: `transition-all duration-300 ease-in-out ${searchOptionsShown ? 'opacity-0 absolute' : 'opacity-100'}`
|
|
154
|
+
}, showSearchBar && !searchOptionsShown ? React.createElement(HeaderSearchButtonSlot, {
|
|
155
|
+
transform: "scale",
|
|
156
|
+
transitionDuration: "1.5s",
|
|
157
|
+
transitionTimingFunction: "ease-in",
|
|
158
|
+
setSearchOptionsShown: () => {
|
|
159
|
+
setSearchOptionsShown(true);
|
|
160
|
+
}
|
|
161
|
+
}) : null), React.createElement("div", {
|
|
162
|
+
className: `transition-all duration-300 ease-in-out ${searchOptionsShown ? 'opacity-100' : 'opacity-0 absolute'}`
|
|
163
|
+
}, showSearchBar && searchOptionsShown ? React.createElement(HeaderSearchBarSlot, {
|
|
164
|
+
searchOptionsShown: searchOptionsShown,
|
|
165
|
+
listId: "navbar_searchbox",
|
|
166
|
+
onClose: () => {
|
|
167
|
+
setSearchOptionsShown(false);
|
|
168
|
+
setShowSearchBar(deviceRegions?.header?.searchBarBehavior !== SearchBarBehavior.ON_SCROLL || scrolled);
|
|
169
|
+
}
|
|
170
|
+
}) : null)), React.createElement("div", {
|
|
171
|
+
className: "flex-grow"
|
|
172
|
+
}), headerSettings?.showRightContent && React.createElement("div", {
|
|
173
|
+
className: "flex space-x-1 md:space-x-4"
|
|
174
|
+
}, React.createElement(RightContentSlot, {
|
|
175
|
+
scrolled: scrolled,
|
|
176
|
+
navTheme: settings?.navTheme
|
|
177
|
+
}), React.createElement(RightMenu, {
|
|
178
|
+
match: null,
|
|
179
|
+
menuData: menuData,
|
|
180
|
+
settings: settings,
|
|
181
|
+
routeParams: routeParams,
|
|
182
|
+
getMenuSeparation: getMenuSeparation,
|
|
183
|
+
scrolled: scrolled,
|
|
184
|
+
authorities: authorities,
|
|
185
|
+
picture: picture
|
|
186
|
+
})))));
|
|
197
187
|
};export{MainHeader};//# sourceMappingURL=MainHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MainHeader.js","sources":["../../../../src/components/Layout/GlobalHeader/MainHeader.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MainHeader.js","sources":["../../../../src/components/Layout/GlobalHeader/MainHeader.tsx"],"sourcesContent":[null],"names":[],"mappings":"ioBAWO,MAAM,UAAU,GAAmD,KAAC,IAAO;AAC9E,EAAA,MAAA;AAuBA,IAAA,kBAAkB;AAClB,IAAA;IACA,aAAM;IAEN,QAAA;AACA,IAAA,WAAM;YACF;AACA,IAAA,MAAA;YACA;gBAEI;YACA;gBACI;AAAqB,IAAA,aAAA;YAC5B;sBAED;yBACiB;AACrB,IAAA,WAAE;IAEF,OAAA;AACA,IAAA,mBAAmB;AACf,IAAA,QAAA;;AAGJ,GAAA,GAAA;QAEA;AACA,IAAA;AACA,GAAA,GAAA,aAAO,EAAA;AAEP,EAAA,MAAA,YAAgB,GAAG,QAAE,EAAA,QAAA,IAAA,GAAA;QACjB,UAAA,GAAA,QAAA,GAAA,QAAA,GAAA,SAAA;AACA;wBACI,GAAA,IAAA,IAAuB;;wBAGjB,GAAA,CAAU,GAAG,iBAAiB,UAAC,CAAA,CAAA,CAAA;AACrC,IAAA,MAAA,UAAM,GAAA,QAAA,EAAA,UAAwB,GAAE,cAAA,CAAA;AAC5B,IAAA,IAAA,UAAA,EAAA;AACJ,MAAA,MAAA,KAAE,GAAA,IAAA,C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