@admin-layout/tailwind-design-pro 12.0.16-alpha.92 → 12.2.1-alpha.0
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 +1 -2
- 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.d.ts.map +1 -1
- package/lib/components/Layout/TailwindLayout.js +13 -19
- 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 -144
- 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/SettingDrawer/hooks/useSettingsOperations.d.ts.map +1 -1
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js +0 -4
- package/lib/components/SettingDrawer/hooks/useSettingsOperations.js.map +1 -1
- package/lib/components/SettingDrawer/utils/transformers.d.ts.map +1 -1
- package/lib/components/SettingDrawer/utils/transformers.js +0 -3
- package/lib/components/SettingDrawer/utils/transformers.js.map +1 -1
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +3 -3
- package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -1
- 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/machines/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +0 -6
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/utils/__tests__/analytics-utils.test.d.ts +2 -0
- package/lib/utils/__tests__/analytics-utils.test.d.ts.map +1 -0
- package/lib/utils/__tests__/menu.test.d.ts +2 -0
- package/lib/utils/__tests__/menu.test.d.ts.map +1 -0
- package/lib/utils/__tests__/selectors.test.d.ts +2 -0
- package/lib/utils/__tests__/selectors.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsMachine.test.d.ts.map +1 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts +2 -0
- package/lib/utils/__tests__/settingsUtils.test.d.ts.map +1 -0
- package/package.json +6 -6
- package/lib/machines/settingsMachine.test.d.ts.map +0 -1
- /package/lib/{machines → utils/__tests__}/settingsMachine.test.d.ts +0 -0
package/README.md
CHANGED
|
@@ -110,6 +110,14 @@ The design system provides theme-aware CSS classes that automatically adapt to t
|
|
|
110
110
|
/* Main background */
|
|
111
111
|
/* Main background */
|
|
112
112
|
/* Main background */
|
|
113
|
+
/* Main background */
|
|
114
|
+
/* Main background */
|
|
115
|
+
/* Main background */
|
|
116
|
+
/* Main background */
|
|
117
|
+
/* Main background */
|
|
118
|
+
/* Main background */
|
|
119
|
+
/* Main background */
|
|
120
|
+
/* Main background */
|
|
113
121
|
.bg-card /* Card background */
|
|
114
122
|
.bg-popover /* Popover background */
|
|
115
123
|
.bg-muted /* Muted background */
|
|
@@ -127,6 +135,14 @@ The design system provides theme-aware CSS classes that automatically adapt to t
|
|
|
127
135
|
/* Primary text */
|
|
128
136
|
/* Primary text */
|
|
129
137
|
/* Primary text */
|
|
138
|
+
/* Primary text */
|
|
139
|
+
/* Primary text */
|
|
140
|
+
/* Primary text */
|
|
141
|
+
/* Primary text */
|
|
142
|
+
/* Primary text */
|
|
143
|
+
/* Primary text */
|
|
144
|
+
/* Primary text */
|
|
145
|
+
/* Primary text */
|
|
130
146
|
.text-muted-foreground /* Secondary text */
|
|
131
147
|
.text-primary /* Primary brand color */
|
|
132
148
|
.text-secondary /* Secondary brand color */
|
|
@@ -144,6 +160,14 @@ The design system provides theme-aware CSS classes that automatically adapt to t
|
|
|
144
160
|
/* Success text */
|
|
145
161
|
/* Success text */
|
|
146
162
|
/* Success text */
|
|
163
|
+
/* Success text */
|
|
164
|
+
/* Success text */
|
|
165
|
+
/* Success text */
|
|
166
|
+
/* Success text */
|
|
167
|
+
/* Success text */
|
|
168
|
+
/* Success text */
|
|
169
|
+
/* Success text */
|
|
170
|
+
/* Success text */
|
|
147
171
|
.text-warning /* Warning text */
|
|
148
172
|
.text-error /* Error text */
|
|
149
173
|
.text-info /* Info text */
|
|
@@ -164,6 +188,14 @@ The design system provides theme-aware CSS classes that automatically adapt to t
|
|
|
164
188
|
/* Theme-aware button */
|
|
165
189
|
/* Theme-aware button */
|
|
166
190
|
/* Theme-aware button */
|
|
191
|
+
/* Theme-aware button */
|
|
192
|
+
/* Theme-aware button */
|
|
193
|
+
/* Theme-aware button */
|
|
194
|
+
/* Theme-aware button */
|
|
195
|
+
/* Theme-aware button */
|
|
196
|
+
/* Theme-aware button */
|
|
197
|
+
/* Theme-aware button */
|
|
198
|
+
/* Theme-aware button */
|
|
167
199
|
.themed-card /* Theme-aware card */
|
|
168
200
|
.themed-input /* Theme-aware input */
|
|
169
201
|
.themed-modal /* Theme-aware modal */
|
|
@@ -182,6 +214,14 @@ The design system provides theme-aware CSS classes that automatically adapt to t
|
|
|
182
214
|
/* Hover effects */
|
|
183
215
|
/* Hover effects */
|
|
184
216
|
/* Hover effects */
|
|
217
|
+
/* Hover effects */
|
|
218
|
+
/* Hover effects */
|
|
219
|
+
/* Hover effects */
|
|
220
|
+
/* Hover effects */
|
|
221
|
+
/* Hover effects */
|
|
222
|
+
/* Hover effects */
|
|
223
|
+
/* Hover effects */
|
|
224
|
+
/* Hover effects */
|
|
185
225
|
.focus-themed /* Focus states */
|
|
186
226
|
.rounded-themed /* Theme-aware border radius */
|
|
187
227
|
.shadow-themed-sm /* Theme-aware shadows */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageMenu.d.ts","sourceRoot":"","sources":["../../../src/components/LanguageMenu/LanguageMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LanguageMenu.d.ts","sourceRoot":"","sources":["../../../src/components/LanguageMenu/LanguageMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAQ3D,eAAO,MAAM,YAAY,yBAiFxB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default,{useState,useRef,useEffect}from'react';import {useTranslation}from'react-i18next';import {useMediaQuery}from'react-responsive';import {languages,useLayoutSettings}from'@admin-layout/client';import {Globe}from'lucide-react';import config from'@app/cde-webconfig.json';const LanguageMenu = () => {
|
|
2
2
|
const {
|
|
3
3
|
i18n
|
|
4
4
|
} = useTranslation();
|
|
@@ -46,36 +46,29 @@ import {jsxs,jsx}from'react/jsx-runtime';import {useState,useRef,useEffect}from'
|
|
|
46
46
|
const toggleDropdown = () => {
|
|
47
47
|
setIsOpen(!isOpen);
|
|
48
48
|
};
|
|
49
|
-
return
|
|
49
|
+
return React__default.createElement("div", {
|
|
50
50
|
className: "relative",
|
|
51
|
-
ref: dropdownRef
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}), jsx("span", {
|
|
75
|
-
className: "text-sm",
|
|
76
|
-
children: isMobile ? language.key : language.label
|
|
77
|
-
})]
|
|
78
|
-
}, `lang_${language.key}`))
|
|
79
|
-
})]
|
|
80
|
-
});
|
|
51
|
+
ref: dropdownRef
|
|
52
|
+
}, React__default.createElement("button", {
|
|
53
|
+
onClick: toggleDropdown,
|
|
54
|
+
className: "flex items-center gap-1 px-3 py-1 border border-border rounded-full h-9 hover:bg-muted transition-colors duration-200 bg-background text-foreground"
|
|
55
|
+
}, currentLang.global ? React__default.createElement(Globe, {
|
|
56
|
+
className: "w-5 h-5"
|
|
57
|
+
}) : React__default.createElement("span", {
|
|
58
|
+
className: "text-lg"
|
|
59
|
+
}, currentLang.flag), React__default.createElement("span", {
|
|
60
|
+
className: "text-sm font-medium"
|
|
61
|
+
}, isMobile ? currentLang.key.toUpperCase() : currentLang.label)), isOpen && React__default.createElement("div", {
|
|
62
|
+
className: "absolute right-0 mt-1 themed-dropdown w-40 max-h-60 overflow-y-auto"
|
|
63
|
+
}, filteredLanguages.map(language => React__default.createElement("div", {
|
|
64
|
+
key: `lang_${language.key}`,
|
|
65
|
+
className: "px-4 py-2 flex items-center gap-2 hover:bg-muted cursor-pointer text-foreground",
|
|
66
|
+
onClick: () => handleLanguageChange(language)
|
|
67
|
+
}, language.global ? React__default.createElement(Globe, {
|
|
68
|
+
className: "w-4 h-4"
|
|
69
|
+
}) : React__default.createElement("span", {
|
|
70
|
+
className: "text-base"
|
|
71
|
+
}, language.flag), React__default.createElement("span", {
|
|
72
|
+
className: "text-sm"
|
|
73
|
+
}, isMobile ? language.key : language.label)))));
|
|
81
74
|
};export{LanguageMenu};//# sourceMappingURL=LanguageMenu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LanguageMenu.js","sources":["../../../src/components/LanguageMenu/LanguageMenu.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LanguageMenu.js","sources":["../../../src/components/LanguageMenu/LanguageMenu.tsx"],"sourcesContent":[null],"names":[],"mappings":"iSAQO,MAAM,YAAY,GAAG,MAAK;AAC7B,EAAA,MAAA;AACA,IAAA;MACA,cAAM,EAAA;QACN;IACA,IAAA,EAAM;MACN,MAAO;AAEC,EAAA,MAAA,iBAAS,GAAA,SAAA,CAAA,MAAA,CAAA,QAAA,IAAA,eAAA,CAAA,aAAA,CAAA,QAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA;AACT,EAAA,MAAA,QAAO,GAAA,aAAS,CAAA;AAChB,IAAA,QAAI,EAAE;AACN,GAAA,CAAA;AACH,EAAA,MACH;IACF,QAAO;AACP,IAAA;MAEA,iBAAe,EAAA;AACX,EAAA,MAAA,CAAA,WAAK,EAAA,cAAuB,CAAC,GAAA,QAAU,CAAA,iBAAA,CAAA,IAAA,CAAA,QAAA,IAAA,QAAA,CAAA,GAAA,KAAA,QAAA,CAAA,QAAA,CAAA,IAAA;IAC3C,GAAG,EAAE,IAAE;IAEP,KAAA,EAAA,SAAe;AACX,IAAA,IAAA,EAAA,MAAM;AACF,IAAA,MAAA,EAAA;;eAEC,EAAA,SAAA,CAAA,GAAA,QAAA,CAAA,KAAA,CAAA;AACL,EAAA,MAAA,WAAE,GAAA,MAAA,CAAA,IAAA,CAAA;AAEF,EAAA,SAAA,CAAA,MAAS;AACT,IAAA,IAAA,CAAA,cAAY,CAAA,QAAA,CAAA,QAAA,CAAA;AACR,EAAA,CAAA,EAAA,EAAA,CAAA;AACJ,EAAA,SAAE,CAAA,MAAA;IACN,MAAM,kBAAC,GAAA,KAAA,IAAA;AAEP,MAAA,IAAM,WAAA,CAAA,OAAA,IAAuB,CAAC,WAAU,CAAE,OAAA,CAAA,QAAA,CAAA,KAAA,CAAA,MAAA,CAAA,EAAA;QACtC,SAAA,CAAA,KAAe,CAAA;AACf,MAAA;;YAEA,CAAA,gBAAoB,CAAE,WAAU,EAAE,kBAAgB,CAAA;AACtD,IAAA,OAAE,MAAA;MAEF,QAAM,CAAA,mBAAsB,CAAA,WAAA,EAAA,kBAAA,CAAA;AACxB,IAAA,CAAA;AACJ,EAAA,CAAA,EAAC,EAAC,CAAA;QAEF,mCACS;AACD,IAAA,cAAA,CAAA,QAAA,CAAA;uBAIgB,CAAC,QAAQ,CAAC,GAClB,CAAA;aAIJ,CAAA,KAAA,CAAA;AAKH,IAAA,oBACG,EAAA;cAOa,EAAA,QAAS,CAAA;;AAYtC,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,5 +9,5 @@ export declare function BasicLayout(props: BasicLayoutProps & GlobalHeaderProps
|
|
|
9
9
|
routeParams?: any;
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
routePattern?: string;
|
|
12
|
-
}):
|
|
12
|
+
}): React.JSX.Element;
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/BasicLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAIhB,iBAAiB,EAEpB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAA4D,MAAM,OAAO,CAAC;AAcjF,wBAAgB,mBAAmB,CAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,gBAAgB,EAAE;;;;CAAA,qCA+B3F;AAwCD,wBAAgB,WAAW,CACvB,KAAK,EAAE,gBAAgB,GACnB,iBAAiB,GAAG;IAAE,WAAW,CAAC,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/BasicLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACH,gBAAgB,EAIhB,iBAAiB,EAEpB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,KAA4D,MAAM,OAAO,CAAC;AAcjF,wBAAgB,mBAAmB,CAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,gBAAgB,EAAE;;;;CAAA,qCA+B3F;AAwCD,wBAAgB,WAAW,CACvB,KAAK,EAAE,gBAAgB,GACnB,iBAAiB,GAAG;IAAE,WAAW,CAAC,EAAE,GAAG,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,qBAkXnG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {getThemeColors,getMenuSeparation,useComponentSize}from'@admin-layout/client';import {Outlet}from'@remix-run/react';import {omit}from'lodash-es';import React__default,{useRef,useState,useMemo,useEffect,useCallback}from'react';import warning from'warning';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 {useScrollThreshold}from'../../../hooks/useScrollThreshold.js';import {SettingDrawer}from'../../SettingDrawer/SettingDrawer.js';import {getPageTitleInfo}from'../getPageTitle.js';import {MainHeader}from'../GlobalHeader/MainHeader.js';import'@remix-run/router';import'../../../helpers/DynamicIcon.js';import'@app/dialog/WrappedDialogsSwitch';import {GlobalHeader}from'../GlobalHeader/Header.js';import {MainSidebar}from'../Sidebar/MainSidebar.js';import {PerplexSidebar}from'../Sidebar/PerplexSidebar.js';import'@common-stack/components-pro';import {FooterSlot}from'../slot-fill/Footer.js';import'reflect-metadata';import'@admin-layout/client/lib/constants/layout.js';//helper func
|
|
2
2
|
function useHorizontalScroll({
|
|
3
3
|
setScrolled,
|
|
4
4
|
setSearchOptionsShown,
|
|
@@ -261,108 +261,101 @@ function BasicLayout(props) {
|
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
}, [actor]);
|
|
264
|
-
return
|
|
264
|
+
return React__default.createElement("div", {
|
|
265
265
|
className: backgroundClasses,
|
|
266
266
|
ref: horizontalScrollRef,
|
|
267
|
-
style: backgroundStyle
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
settings: settings,
|
|
362
|
-
active: footerActive
|
|
363
|
-
})
|
|
364
|
-
})]
|
|
365
|
-
})]
|
|
366
|
-
})]
|
|
367
|
-
});
|
|
267
|
+
style: backgroundStyle
|
|
268
|
+
}, deviceSettings?.header?.showHeader && !isSideMenuLayout && LAYOUT_ROOT != '/' && React__default.createElement(GlobalHeader, {
|
|
269
|
+
toggleSideMenu: toggleSideMenu,
|
|
270
|
+
settings: settings,
|
|
271
|
+
upperMenus: headerUpperMenus,
|
|
272
|
+
routeParams: memoizedRouteParams,
|
|
273
|
+
collapsed: collapsed,
|
|
274
|
+
location: location
|
|
275
|
+
}), LAYOUT_ROOT === '/' && deviceSettings?.header?.showHeader && React__default.createElement(MainHeader, {
|
|
276
|
+
scrolled: scrolled,
|
|
277
|
+
location: location,
|
|
278
|
+
menuData: memoizedMenuData,
|
|
279
|
+
settings: settings,
|
|
280
|
+
pageTitleInfo: pageTitleInfo,
|
|
281
|
+
searchOptionsShown: searchOptionsShown,
|
|
282
|
+
setSearchOptionsShown: setSearchOptionsShown,
|
|
283
|
+
authorities: authorities,
|
|
284
|
+
picture: picture,
|
|
285
|
+
componentVisibility: componentVisibility,
|
|
286
|
+
showMenu: showMenu,
|
|
287
|
+
toggleSideMenu: toggleSideMenu
|
|
288
|
+
}), React__default.createElement("div", {
|
|
289
|
+
className: "bg-background"
|
|
290
|
+
}, shouldShowSidebar && !isPerplexLayout && React__default.createElement("div", {
|
|
291
|
+
style: sideBarMarginTop ? {
|
|
292
|
+
marginTop: sideBarMarginTop
|
|
293
|
+
} : undefined
|
|
294
|
+
}, React__default.createElement(MainSidebar, {
|
|
295
|
+
isSideMenuOpen: isSideMenuOpen,
|
|
296
|
+
closeSideMenu: closeSideMenu,
|
|
297
|
+
menuData: memoizedMenuData,
|
|
298
|
+
collapsed: collapsed,
|
|
299
|
+
setCollapsed: setCollapsed,
|
|
300
|
+
routeParams: memoizedRouteParams,
|
|
301
|
+
settings: settings,
|
|
302
|
+
siderPinned: siderPinned,
|
|
303
|
+
setSiderPinned: setSiderPinned,
|
|
304
|
+
showHeader: showHeader,
|
|
305
|
+
menuHeaderRender: menuHeaderRender,
|
|
306
|
+
deviceSettings: deviceSettings,
|
|
307
|
+
isSideMenuLayout: isSideMenuLayout
|
|
308
|
+
})), shouldShowSidebar && isPerplexLayout && React__default.createElement("div", {
|
|
309
|
+
style: sideBarMarginTop ? {
|
|
310
|
+
marginTop: sideBarMarginTop
|
|
311
|
+
} : undefined
|
|
312
|
+
}, React__default.createElement(PerplexSidebar, {
|
|
313
|
+
isSideMenuOpen: isSideMenuOpen,
|
|
314
|
+
closeSideMenu: closeSideMenu,
|
|
315
|
+
menuData: memoizedMenuData,
|
|
316
|
+
collapsed: collapsed,
|
|
317
|
+
setCollapsed: setCollapsed,
|
|
318
|
+
routeParams: memoizedRouteParams,
|
|
319
|
+
settings: settings,
|
|
320
|
+
layoutSettings: layoutSettings,
|
|
321
|
+
menuHeaderRender: menuHeaderRender,
|
|
322
|
+
deviceSettings: deviceSettings,
|
|
323
|
+
siderPinned: siderPinned,
|
|
324
|
+
setSiderPinned: setSiderPinned,
|
|
325
|
+
actor: actor,
|
|
326
|
+
sideBarMarginTop: sideBarMarginTop,
|
|
327
|
+
showHeader: showHeader,
|
|
328
|
+
isSideMenuLayout: isSideMenuLayout,
|
|
329
|
+
authorities: authorities,
|
|
330
|
+
picture: picture
|
|
331
|
+
})), React__default.createElement("div", {
|
|
332
|
+
className: "flex flex-col flex-1 bg-background",
|
|
333
|
+
style: {
|
|
334
|
+
marginLeft: computedMarginLeft,
|
|
335
|
+
padding: LAYOUT_ROOT != '/' ? '24px' : '0px'
|
|
336
|
+
}
|
|
337
|
+
}, config.ENABLE_SETTING_DRAWER && React__default.createElement(SettingDrawer, {
|
|
338
|
+
primaryColor: primaryColor,
|
|
339
|
+
settings: settings,
|
|
340
|
+
onSettingChange: handleSettingChange,
|
|
341
|
+
actor: actor,
|
|
342
|
+
colorList: themeColors,
|
|
343
|
+
fullMenuData: fullMenuData,
|
|
344
|
+
location: location,
|
|
345
|
+
routePattern: props.routePattern
|
|
346
|
+
}), React__default.createElement("main", {
|
|
347
|
+
className: "relative"
|
|
348
|
+
}, searchOptionsShown && deviceSettings?.header?.searchBarOverlay && React__default.createElement("div", {
|
|
349
|
+
className: "fixed inset-0 bg-black bg-opacity-50 z-30 cursor-pointer",
|
|
350
|
+
onClick: e => {
|
|
351
|
+
e.stopPropagation();
|
|
352
|
+
setSearchOptionsShown(false);
|
|
353
|
+
}
|
|
354
|
+
}), React__default.createElement(Outlet, null)), getOverrideValue('footer.showFooter') && React__default.createElement("div", {
|
|
355
|
+
ref: refFooter,
|
|
356
|
+
className: footerFixed ? 'fixed bottom-0 w-full' : ''
|
|
357
|
+
}, React__default.createElement(FooterSlot, {
|
|
358
|
+
settings: settings,
|
|
359
|
+
active: footerActive
|
|
360
|
+
})))));
|
|
368
361
|
}export{BasicLayout,useHorizontalScroll};//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/components/Layout/BasicLayout/index.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Layout/BasicLayout/index.tsx"],"sourcesContent":[null],"names":[],"mappings":"6mCAuBA;AACM,SAAU,mBAAmB,CAAC;AAChC,EAAA,WAAM;uBAES;AACX,EAAA;;AAEI,EAAA,MAAA,KAAA,GAAA,MAAM,EAAA;AACF,EAAA,SAAA,CAAA,MAAA;oBAAmB,CAAA,OAAO,IAAA,IAAA;;mBAG1B,GAAA,CAAA,IAAA;oBACA,IAAM,CAAA,EAAA;AAEN,QAAA,CAAA,CAAA,gBAAU;AAGV,QAAA,IAAA,MAAA,CAAA,OAAU,GAAC,EAAA,EAAA;qBACP,CAAA,IAAA,CAAA;;AAEJ,QAAA,IAAA,MAAA,CAAA,OAAU,GAAC,EAAA,EAAA;AACP,UAAA,WAAA,CAAA,KAAA,CAAA;;AAER,QAAA,IAAA,MAAE,CAAA,WAAA,GAAA,MAAA,CAAA,OAAA,IAAA,QAAA,CAAA,IAAA,CAAA,YAAA,EAAA;AAEF,UAAA,gBAAO,EAAA;AACP,QAAA;AACI,MAAA,CAAA;AACJ,MAAA,MAAA,CAAC,gBAAC,CAAA,QAAA,EAAA,OAAA,CAAA;aACL,MAAA;QACF,MAAI,CAAA,mBAAA,CAAA,QAAA,EAAA,OAAA,CAAA;AACP,MAAA,CAAA;AACJ,IAAC;AACD,EAAA,CAAA,EAAA,EAAA,CAAA;AAQI,EAAA,OAAA,KAAQ;AACR;AACA,SAAI,sBAAoB,CAAA,SAAQ,EAAA,KAAA,EAAA;QAC5B;AACI,IAAA;AACA,GAAA,GAAA,KAAA;AACA,EAAA,MAAA,gBAAY,gBAAA,CAAA,SAAA,CAAA;qBACd,KAAA,KAAA,EAAA;IACN,OAAC;MACD,KAAI,EAAA,KAAA,CAAA,SAAkB,EAAA;AAClB,MAAA,EAAA,EAAA,EAAA;AACA,MAAA,QAAI,EAAA;;AAEI,EAAA;qBACK,EAAA;eACP,GAAA,eAAA,CAAA,SAAA,EAAA,aAAA,CAAA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,KAAA,GAAA,GAAA,GAAc,CAAE,mBAAQ,CAAA;;oCAKnC,CAAA,MAAA;AACJ,IAAA,iBAAA,CAAA,QAEP,CAAA,IAAA,CAAA;;qBAGJ,GAAA;AAEO,IAAA,iBAAA,CAAA,KAAA,CAAA;AAO5B,EAAC,CAAA,EAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare const defaultFooterDom:
|
|
2
|
+
export declare const defaultFooterDom: React.JSX.Element;
|
|
3
3
|
export declare const UserView: React.NamedExoticComponent<{
|
|
4
4
|
collapsed: boolean;
|
|
5
5
|
layoutSettings: any;
|
|
@@ -10,7 +10,7 @@ export declare const FooterSubMenuItemRender: React.NamedExoticComponent<{
|
|
|
10
10
|
layoutSettings: any;
|
|
11
11
|
}>;
|
|
12
12
|
export declare const handleMenuPopup: () => void;
|
|
13
|
-
export declare const itemRender: (route: any, params: any, routes: any, paths: any) =>
|
|
13
|
+
export declare const itemRender: (route: any, params: any, routes: any, paths: any) => React.JSX.Element;
|
|
14
14
|
export declare const breadCrumbs: (routers?: any[]) => any[];
|
|
15
15
|
export declare const generateLightShade: (color: string, percent: number) => string;
|
|
16
16
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/BasicLayout/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/BasicLayout/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,eAAO,MAAM,gBAAgB,mBAwB5B,CAAC;AAEF,eAAO,MAAM,QAAQ;eAA2B,OAAO;oBAAkB,GAAG;EAyDlE,CAAC;AAEX,eAAO,MAAM,uBAAuB;UAAsB,GAAG;eAAa,OAAO;oBAAkB,GAAG;EAOrG,CAAC;AAEF,eAAO,MAAM,eAAe,YAU3B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,UAAK,EAAE,WAAM,EAAE,WAAM,EAAE,UAAK,sBAStD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,eAAY,UAUvC,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,EAAE,SAAS,MAAM,WAchE,CAAC"}
|