@admin-layout/tailwind-design-pro 12.0.16-alpha.2 → 12.0.16-alpha.23
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 +30 -0
- package/lib/cdm-locales/en/menu.json +2 -1
- package/lib/cdm-locales/es/menu.json +2 -1
- package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -1
- package/lib/components/Layout/BasicLayout/index.js +29 -4
- 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 +12 -9
- package/lib/components/Layout/BasicLayout/utils.js.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -1
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +4 -2
- package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js +2 -2
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +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/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} +4 -4
- 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/{SidebarMenu.js → MainSidebarMenu.js} +2 -2
- 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 +170 -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 +261 -0
- package/lib/components/Layout/Sidebar/PerplexSidebarMenu.js.map +1 -0
- package/lib/components/Layout/util.js +1 -1
- package/lib/components/Layout/util.js.map +1 -1
- package/lib/components/SettingDrawer/InvitationSettings.js +1 -1
- package/lib/components/SettingDrawer/InvitationSettings.js.map +1 -1
- package/lib/components/SettingDrawer/LayoutChange.js +1 -1
- package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.d.ts.map +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.js +91 -5
- package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/typings.d.ts +9 -6
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/hooks/index.d.ts +0 -3
- package/lib/hooks/index.d.ts.map +1 -1
- 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/settingsMachine.d.ts.map +1 -1
- package/lib/machines/settingsMachine.js +4 -0
- package/lib/machines/settingsMachine.js.map +1 -1
- package/lib/machines/types.d.ts +2 -1
- package/lib/machines/types.d.ts.map +1 -1
- package/package.json +6 -16
- 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.map +0 -1
- package/lib/components/UI/CardList.d.ts +0 -61
- package/lib/components/UI/CardList.d.ts.map +0 -1
- package/lib/components/UI/CardList.js +0 -43
- package/lib/components/UI/CardList.js.map +0 -1
- package/lib/components/UI/CategoriesTypeList.d.ts +0 -29
- package/lib/components/UI/CategoriesTypeList.d.ts.map +0 -1
- package/lib/components/UI/CategoriesTypeList.js +0 -139
- package/lib/components/UI/CategoriesTypeList.js.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +0 -83
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.js +0 -107
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +0 -1
- package/lib/components/UI/Pagination.d.ts +0 -6
- package/lib/components/UI/Pagination.d.ts.map +0 -1
- package/lib/components/UI/Pagination.js +0 -56
- package/lib/components/UI/Pagination.js.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.d.ts +0 -99
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.js +0 -120
- package/lib/components/UI/ParamSearchResultContainer.js.map +0 -1
- package/lib/components/UI/PropertyCard.d.ts +0 -24
- package/lib/components/UI/PropertyCard.d.ts.map +0 -1
- package/lib/components/UI/PropertyCard.js +0 -420
- package/lib/components/UI/PropertyCard.js.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.d.ts +0 -10
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.js +0 -108
- package/lib/components/UI/PropertyCardOnMap.js.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.d.ts +0 -8
- package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.js +0 -98
- package/lib/components/UI/VehicleCard/PricePopover.js.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +0 -7
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +0 -9
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.js +0 -22
- package/lib/components/UI/VehicleCard/VehicleFeature.js.map +0 -1
- package/lib/components/UI/VehicleCard/types.d.ts +0 -59
- package/lib/components/UI/VehicleCard/types.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.d.ts +0 -15
- package/lib/components/UI/VehicleCard.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.js +0 -166
- package/lib/components/UI/VehicleCard.js.map +0 -1
- package/lib/components/UI/VehicleCardList.d.ts +0 -14
- package/lib/components/UI/VehicleCardList.d.ts.map +0 -1
- package/lib/components/UI/VehicleCardList.js +0 -38
- package/lib/components/UI/VehicleCardList.js.map +0 -1
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +0 -90
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.d.ts +0 -7
- package/lib/components/UI/icons/LocationIcon.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.js +0 -18
- package/lib/components/UI/icons/LocationIcon.js.map +0 -1
- package/lib/components/UI/icons/index.d.ts +0 -2
- package/lib/components/UI/icons/index.d.ts.map +0 -1
- package/lib/components/UI/index.d.ts +0 -10
- package/lib/components/UI/index.d.ts.map +0 -1
- package/lib/components/typings.js +0 -6
- package/lib/components/typings.js.map +0 -1
- package/lib/hooks/use-get-current-lat-long.d.ts +0 -18
- package/lib/hooks/use-get-current-lat-long.d.ts.map +0 -1
- package/lib/hooks/use-get-current-lat-long.js +0 -29
- package/lib/hooks/use-get-current-lat-long.js.map +0 -1
- package/lib/hooks/useWindowSize.d.ts +0 -6
- package/lib/hooks/useWindowSize.d.ts.map +0 -1
- package/lib/hooks/useWindowSize.js +0 -20
- package/lib/hooks/useWindowSize.js.map +0 -1
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts +0 -6
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/datasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/datasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +0 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import React__default,{useState,useEffect}from'react';import {useTranslation}from'react-i18next';import BottomMenuDropDown from'../GlobalFooter/BottomMenuDropdown.js';import {getMenuSeparation}from'@admin-layout/client';import {Divider}from'./Divider.js';import {PerplexSidebarMenu}from'./PerplexSidebarMenu.js';import {RightContent}from'../GlobalHeader/RightContent.js';import'@react-icons/all-files/fa/FaSearch.js';import'@react-icons/all-files/io5/IoMenu.js';import'@react-icons/all-files/ai/AiOutlineDash.js';import'@react-icons/all-files/fa/FaChevronDown.js';import'@react-icons/all-files/fa/FaChevronUp.js';import'@react-icons/all-files/fa/FaChevronRight.js';import'@react-icons/all-files/fa/FaChevronLeft.js';import'@react-icons/all-files/md/MdClose.js';import'@react-icons/all-files/ri/RiSettings5Fill.js';import'@react-icons/all-files/io/IoMdCopy.js';import'@react-icons/all-files/fa/FaCheck.js';import'@react-icons/all-files/io5/IoChevronBackCircleOutline.js';import'@react-icons/all-files/io5/IoChevronForwardCircleOutline.js';import'@react-icons/all-files/ri/RiPushpinLine.js';import'@react-icons/all-files/ri/RiPushpinFill.js';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../../hooks/useMediaQuery.js';const PerplexSidebar = props => {
|
|
2
|
+
const {
|
|
3
|
+
isSideMenuOpen,
|
|
4
|
+
closeSideMenu,
|
|
5
|
+
menuData,
|
|
6
|
+
collapsed,
|
|
7
|
+
routeParams,
|
|
8
|
+
settings,
|
|
9
|
+
setCollapsed,
|
|
10
|
+
location,
|
|
11
|
+
siderPinned,
|
|
12
|
+
setSiderPinned,
|
|
13
|
+
layoutSettings,
|
|
14
|
+
actor
|
|
15
|
+
} = props;
|
|
16
|
+
const [isPagesMenuOpen, setIsPagesMenuOpen] = useState(false);
|
|
17
|
+
const [iconModule, setIconModule] = React__default.useState(null);
|
|
18
|
+
const {
|
|
19
|
+
t,
|
|
20
|
+
i18n
|
|
21
|
+
} = useTranslation('menu');
|
|
22
|
+
const {
|
|
23
|
+
isMobile
|
|
24
|
+
} = useMediaQuery();
|
|
25
|
+
const currentRoute = location?.pathname || '/';
|
|
26
|
+
const routeSettings = settings?.routeSettings?.[currentRoute] || settings?.routeSettings?.['/'] || settings;
|
|
27
|
+
const deviceType = isMobile ? 'mobile' : 'desktop';
|
|
28
|
+
const deviceLayout = routeSettings?.layout?.[deviceType] || {};
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
if (!iconModule) {
|
|
31
|
+
import('./DynamicIcon.js').then(module => {
|
|
32
|
+
setIconModule(module);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}, []);
|
|
36
|
+
// Close sidebar when clicking outside on mobile
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
const handleClickOutside = event => {
|
|
39
|
+
const sidebar = document.getElementById('mobile-sidebar');
|
|
40
|
+
if (sidebar && !sidebar.contains(event.target) && isSideMenuOpen) {
|
|
41
|
+
closeSideMenu();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
45
|
+
return () => {
|
|
46
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
47
|
+
};
|
|
48
|
+
}, [isSideMenuOpen, closeSideMenu]);
|
|
49
|
+
// Close sidebar when pressing escape
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
const handleEscape = event => {
|
|
52
|
+
if (event.key === 'Escape' && isSideMenuOpen) {
|
|
53
|
+
closeSideMenu();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
document.addEventListener('keydown', handleEscape);
|
|
57
|
+
return () => {
|
|
58
|
+
document.removeEventListener('keydown', handleEscape);
|
|
59
|
+
};
|
|
60
|
+
}, [isSideMenuOpen, closeSideMenu]);
|
|
61
|
+
const {
|
|
62
|
+
upperMenus,
|
|
63
|
+
middleMenus,
|
|
64
|
+
lowerMenus,
|
|
65
|
+
bottomMenus
|
|
66
|
+
} = getMenuSeparation(menuData || []);
|
|
67
|
+
const updateMenuIcons = (menuItems = []) => {
|
|
68
|
+
if (!menuItems || !Array.isArray(menuItems)) return [];
|
|
69
|
+
return menuItems.map(item => {
|
|
70
|
+
const updatedItem = {
|
|
71
|
+
...item,
|
|
72
|
+
name: t(item.name),
|
|
73
|
+
icon: iconModule && item.icon ? iconModule.renderDynamicIcon(item.icon) : null
|
|
74
|
+
};
|
|
75
|
+
if (updatedItem.children) {
|
|
76
|
+
updatedItem.children = updateMenuIcons(updatedItem.children);
|
|
77
|
+
}
|
|
78
|
+
return updatedItem;
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
const bottomMenusData = {
|
|
82
|
+
menuData: updateMenuIcons(bottomMenus)
|
|
83
|
+
};
|
|
84
|
+
// Use CSS classes instead of theme-based styling
|
|
85
|
+
const getSidebarClasses = () => {
|
|
86
|
+
let classes = 'text-gray-500 dark:text-gray-400 md:h-[93vh] h-full flex flex-col';
|
|
87
|
+
if (settings?.navTheme === 'realDark') {
|
|
88
|
+
classes += ' themed-sidebar';
|
|
89
|
+
}
|
|
90
|
+
return classes;
|
|
91
|
+
};
|
|
92
|
+
const SidebarStyles = React__default.useMemo(() => ({
|
|
93
|
+
backgroundColor: settings?.navTheme === 'realDark' ? '#222' : '',
|
|
94
|
+
color: settings?.navTheme === 'realDark' ? '#fff !important' : ''
|
|
95
|
+
}), [settings]);
|
|
96
|
+
// Helper function to render a separator with a name
|
|
97
|
+
const renderSeparator = name => {
|
|
98
|
+
if (!deviceLayout?.splitMenus) return null;
|
|
99
|
+
return collapsed ? jsx("hr", {
|
|
100
|
+
className: "border-t border-border"
|
|
101
|
+
}) : jsx(Divider, {
|
|
102
|
+
className: "text-muted-foreground border-border my-2 p-0",
|
|
103
|
+
plain: true,
|
|
104
|
+
children: name
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
const renderSidebarContent = () => {
|
|
108
|
+
return jsxs("div", {
|
|
109
|
+
className: getSidebarClasses(),
|
|
110
|
+
style: SidebarStyles,
|
|
111
|
+
children: [jsx("div", {
|
|
112
|
+
className: "relative"
|
|
113
|
+
}), jsxs("div", {
|
|
114
|
+
className: "flex-grow overflow-y-auto",
|
|
115
|
+
children: [middleMenus?.length > 0 && jsxs("div", {
|
|
116
|
+
className: "removeBoxShadow",
|
|
117
|
+
children: [renderSeparator(deviceLayout?.middleMenuDividerName), jsx(PerplexSidebarMenu, {
|
|
118
|
+
menuData: updateMenuIcons(middleMenus),
|
|
119
|
+
routeParams: routeParams,
|
|
120
|
+
settings: settings,
|
|
121
|
+
collapsed: collapsed,
|
|
122
|
+
siderPinned: siderPinned,
|
|
123
|
+
setSiderPinned: setSiderPinned,
|
|
124
|
+
actor: actor
|
|
125
|
+
})]
|
|
126
|
+
}), lowerMenus?.length > 0 && jsxs("div", {
|
|
127
|
+
className: "removeBoxShadow",
|
|
128
|
+
children: [renderSeparator(deviceLayout?.lowerMenuDividerName), jsx(PerplexSidebarMenu, {
|
|
129
|
+
menuData: updateMenuIcons(lowerMenus),
|
|
130
|
+
routeParams: routeParams,
|
|
131
|
+
settings: settings,
|
|
132
|
+
collapsed: collapsed,
|
|
133
|
+
siderPinned: siderPinned,
|
|
134
|
+
setSiderPinned: setSiderPinned,
|
|
135
|
+
actor: actor
|
|
136
|
+
})]
|
|
137
|
+
}), jsx("div", {
|
|
138
|
+
className: "p-4",
|
|
139
|
+
children: deviceLayout?.navigationMode === 'sidebar' && jsx(RightContent, {
|
|
140
|
+
upperMenus: upperMenus,
|
|
141
|
+
collapsed: collapsed,
|
|
142
|
+
routeParams: routeParams,
|
|
143
|
+
settings: settings
|
|
144
|
+
})
|
|
145
|
+
})]
|
|
146
|
+
}), jsx("div", {
|
|
147
|
+
className: "flex-shrink-0 p-4 border-t border-border",
|
|
148
|
+
children: jsx(BottomMenuDropDown, {
|
|
149
|
+
menus: bottomMenusData,
|
|
150
|
+
collapsed: collapsed,
|
|
151
|
+
routeParams: routeParams,
|
|
152
|
+
layoutSettings: layoutSettings
|
|
153
|
+
})
|
|
154
|
+
})]
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
return jsxs("div", {
|
|
158
|
+
children: [!isMobile && jsx("aside", {
|
|
159
|
+
className: `${deviceLayout?.fixedSidebar ? 'fixed' : 'relative'} border-r border-border z-20 h-screen bg-card text-card-foreground md:block flex-shrink-0 transition-all duration-300 ease-in-out w-[92px]`,
|
|
160
|
+
children: renderSidebarContent()
|
|
161
|
+
}), isSideMenuOpen && isMobile && jsx("div", {
|
|
162
|
+
className: "fixed inset-0 z-10 flex items-end bg-black bg-opacity-50 sm:items-center sm:justify-center transition-opacity duration-300",
|
|
163
|
+
onClick: closeSideMenu
|
|
164
|
+
}), isSideMenuOpen && isMobile && jsx("aside", {
|
|
165
|
+
id: "mobile-sidebar",
|
|
166
|
+
className: `fixed inset-0 z-20 flex-shrink-0 bg-card text-card-foreground md:hidden transition-transform duration-300 ease-in-out transform w-[92px]`,
|
|
167
|
+
children: renderSidebarContent()
|
|
168
|
+
})]
|
|
169
|
+
});
|
|
170
|
+
};export{PerplexSidebar,PerplexSidebar as default};//# sourceMappingURL=PerplexSidebar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PerplexSidebar.js","sources":["../../../../src/components/Layout/Sidebar/PerplexSidebar.tsx"],"sourcesContent":[null],"names":["React"],"mappings":"gzCAaa,MAAA,cAAc,GAA2B,KAAC,IAAS;QACtD;IAcN,cAAsB;AACtB,IAAA,aAAO;IACP,QAAQ;AACR,IAAA,SAAgB;AAChB,IAAA,WAAuB;AACvB,IAAA;AACA,IAAA;IACA,QAAM;IACN,WAAM;IAEN,cAAe;kBACI;;;AAGX,EAAA,MAAA,CAAA,eAAG,EAAA,kBAAA,CAAA,GAAA,QAAA,CAAA,KAAA,CAAA;QACP,CAAC,UAAA,EAAA,aAAA,CAAA,GAAAA,cAAA,CAAA,QAAA,CAAA,IAAA,CAAA;QACA;AACL,IAAA,CAAA;IAEA;MACS,cAAM,CAAA,MAAA,CAAA;AACX,EAAA,MAAA;;AAEI,GAAA,GAAA,aAAW,EAAA;AAMf,EAAA,MAAA,YAAY,GAAA,QAAA,EAAA,QAAA,IAAA,GAAA;AACR,EAAA,MAAA,aAAS,GAAmB,QAAA,EAAA,4BAAc,CAAA,IAAA,QAAoB,EAAA,aAAA,GAAA,GAAA,CAAA,IAAA,QAAA;AAClE,EAAA,MAAA,UAAE,GAAA,QAAA,GAAA,QAAA,GAAA,SAAA;AACN,EAAA,MAAI,YAAA,gBAA6B,EAAC,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A,IAAA,IAAA;AACpD,MAAA,MAAqB,WAAA,GAAA;QACjB,GAAI,IAAa;AAAc,QAAA,IAAA,EAAA,CAAA,CAAA,SAAY,CAAA;QAE3C,IAAO,EAAA,UAAS,IACZ,IAAI,CAAA,IAAA,GAAA,UAAS,CAAC,iBAAA,CAAA,IAAA,CAAA,IAA2B,CAAA,GAC1C;AAKP,OAAE;MAEI,IAAA,WAAA,CAAA,QAAoB,EAAG;QACzB,uBACS,4BAA4B,SAAS;AA0DlD;AAEA,MAAA,OACI,WAAA;AA+BR,KAAE,CAAA;AAEF,GAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PerplexSidebarMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/Sidebar/PerplexSidebarMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkVzD,CAAC"}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import {jsx,jsxs}from'react/jsx-runtime';import React__default,{useState,useEffect}from'react';import {useSelector}from'@xstate/react';import {useLocation,Link}from'@remix-run/react';import {generateMenuPath}from'@admin-layout/client';import {icons}from'../../../icons.js';const PerplexSidebarMenu = ({
|
|
2
|
+
menuData,
|
|
3
|
+
routeParams,
|
|
4
|
+
settings,
|
|
5
|
+
collapsed,
|
|
6
|
+
siderPinned,
|
|
7
|
+
setSiderPinned,
|
|
8
|
+
actor
|
|
9
|
+
}) => {
|
|
10
|
+
const [openMenus, setOpenMenus] = useState([]);
|
|
11
|
+
const [hoveredMenu, setHoveredMenu] = useState(null);
|
|
12
|
+
const [popupPosition, setPopupPosition] = useState({
|
|
13
|
+
top: 0,
|
|
14
|
+
height: 0
|
|
15
|
+
});
|
|
16
|
+
const [headerOffset, setHeaderOffset] = useState(0);
|
|
17
|
+
const hoverCloseTimeout = React__default.useRef(null);
|
|
18
|
+
const {
|
|
19
|
+
PushpinLineIcon,
|
|
20
|
+
PushpinFillIcon
|
|
21
|
+
} = icons;
|
|
22
|
+
const location = useLocation();
|
|
23
|
+
const machineState = useSelector(actor, state => state);
|
|
24
|
+
const pinnedPath = machineState?.context?.sidebar?.pinnedPath || null;
|
|
25
|
+
const isMenuItemActive = itemPath => {
|
|
26
|
+
const currentPath = location.pathname;
|
|
27
|
+
const menuPath = generateMenuPath(itemPath, routeParams);
|
|
28
|
+
// Exact match
|
|
29
|
+
if (currentPath === menuPath) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
// Check if current path is a child of the menu item path
|
|
33
|
+
if (menuPath && currentPath.startsWith(menuPath + '/')) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
};
|
|
38
|
+
const toggleMenu = (path, depth, e) => {
|
|
39
|
+
e.preventDefault();
|
|
40
|
+
if (collapsed) return;
|
|
41
|
+
setOpenMenus(prev => {
|
|
42
|
+
if (prev.includes(path)) {
|
|
43
|
+
return prev.filter(item => item !== path);
|
|
44
|
+
} else {
|
|
45
|
+
return [...prev, path];
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
const handleMenuClick = (path, hasChildren, depth, e) => {
|
|
50
|
+
if (hasChildren && !collapsed) {
|
|
51
|
+
toggleMenu(path, depth, e);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
const getFirstLetter = name => {
|
|
55
|
+
return name.charAt(0).toUpperCase();
|
|
56
|
+
};
|
|
57
|
+
const getFirstWord = name => {
|
|
58
|
+
if (!name) return '';
|
|
59
|
+
const parts = name.trim().split(/\s+/);
|
|
60
|
+
return parts[0] || name;
|
|
61
|
+
};
|
|
62
|
+
const handleMenuHover = (e, item, isHoverMenu, depth = 0) => {
|
|
63
|
+
// Only set hover state if the menu has children
|
|
64
|
+
const canShowHoverPopup = collapsed && !isHoverMenu || !collapsed && depth === 0 && !isHoverMenu;
|
|
65
|
+
if (item.children && item.children.length > 0 && canShowHoverPopup) {
|
|
66
|
+
const element = e.currentTarget;
|
|
67
|
+
const rect = element.getBoundingClientRect();
|
|
68
|
+
// Calculate position ensuring it stays within viewport roughly
|
|
69
|
+
const viewportHeight = window.innerHeight;
|
|
70
|
+
let top = rect.top;
|
|
71
|
+
const maxTop = Math.max(8, viewportHeight - 300); // crude lower bound to avoid going off screen
|
|
72
|
+
if (top > maxTop) top = maxTop;
|
|
73
|
+
setPopupPosition({
|
|
74
|
+
top: top,
|
|
75
|
+
height: rect.height
|
|
76
|
+
});
|
|
77
|
+
if (hoverCloseTimeout.current) {
|
|
78
|
+
window.clearTimeout(hoverCloseTimeout.current);
|
|
79
|
+
hoverCloseTimeout.current = null;
|
|
80
|
+
}
|
|
81
|
+
setHoveredMenu(item.path);
|
|
82
|
+
// If a different top-level item is hovered while pinned, update pinnedPath
|
|
83
|
+
if (depth === 0 && pinnedPath) {
|
|
84
|
+
actor?.send({
|
|
85
|
+
type: 'UPDATE',
|
|
86
|
+
value: {
|
|
87
|
+
'sidebar.pinnedPath': item.path
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
const handleMenuLeave = (item, isHoverMenu) => {
|
|
94
|
+
if (!isHoverMenu) {
|
|
95
|
+
if (hoverCloseTimeout.current) {
|
|
96
|
+
window.clearTimeout(hoverCloseTimeout.current);
|
|
97
|
+
}
|
|
98
|
+
hoverCloseTimeout.current = window.setTimeout(() => {
|
|
99
|
+
setHoveredMenu(null);
|
|
100
|
+
}, 120);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
// Measure global header height so the rail starts below it
|
|
104
|
+
useEffect(() => {
|
|
105
|
+
const computeHeaderOffset = () => {
|
|
106
|
+
const headerEl = document.querySelector('header');
|
|
107
|
+
const measured = headerEl ? headerEl.getBoundingClientRect().height : 0;
|
|
108
|
+
setHeaderOffset(measured || 0);
|
|
109
|
+
};
|
|
110
|
+
computeHeaderOffset();
|
|
111
|
+
window.addEventListener('resize', computeHeaderOffset);
|
|
112
|
+
return () => window.removeEventListener('resize', computeHeaderOffset);
|
|
113
|
+
}, []);
|
|
114
|
+
const toggleSiderPinned = (e, path) => {
|
|
115
|
+
e.preventDefault();
|
|
116
|
+
e.stopPropagation();
|
|
117
|
+
const nextPinned = pinnedPath === path ? null : path;
|
|
118
|
+
actor?.send({
|
|
119
|
+
type: 'UPDATE',
|
|
120
|
+
value: {
|
|
121
|
+
'sidebar.pinnedPath': nextPinned
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
setHoveredMenu(path);
|
|
125
|
+
setSiderPinned(!siderPinned);
|
|
126
|
+
};
|
|
127
|
+
const renderPopupMenu = (item, depth = 0) => {
|
|
128
|
+
if (!item.children || item.children.length === 0) return null;
|
|
129
|
+
const sidebarWidth = 92; // Updated fixed sidebar rail width
|
|
130
|
+
return jsxs("div", {
|
|
131
|
+
className: "fixed border border-border z-[999] overflow-hidden bg-background",
|
|
132
|
+
style: {
|
|
133
|
+
left: `${sidebarWidth}px`,
|
|
134
|
+
top: `${headerOffset}px`,
|
|
135
|
+
height: `calc(100vh - ${headerOffset}px)`,
|
|
136
|
+
animation: 'fadeIn 0.2s ease-out forwards',
|
|
137
|
+
width: '228px',
|
|
138
|
+
maxWidth: 'calc(100vw - 100px)'
|
|
139
|
+
},
|
|
140
|
+
onMouseEnter: () => {
|
|
141
|
+
if (hoverCloseTimeout.current) {
|
|
142
|
+
window.clearTimeout(hoverCloseTimeout.current);
|
|
143
|
+
hoverCloseTimeout.current = null;
|
|
144
|
+
}
|
|
145
|
+
// keep the popup open while hovering it
|
|
146
|
+
setHoveredMenu(item.path);
|
|
147
|
+
},
|
|
148
|
+
onMouseLeave: () => {
|
|
149
|
+
if (pinnedPath === item.path) return; // don't close if pinned
|
|
150
|
+
if (hoverCloseTimeout.current) {
|
|
151
|
+
window.clearTimeout(hoverCloseTimeout.current);
|
|
152
|
+
}
|
|
153
|
+
hoverCloseTimeout.current = window.setTimeout(() => setHoveredMenu(null), 120);
|
|
154
|
+
},
|
|
155
|
+
children: [jsx("style", {
|
|
156
|
+
dangerouslySetInnerHTML: {
|
|
157
|
+
__html: `
|
|
158
|
+
@keyframes fadeIn {
|
|
159
|
+
from { opacity: 0; transform: translateX(-10px); }
|
|
160
|
+
to { opacity: 1; transform: translateX(0); }
|
|
161
|
+
}
|
|
162
|
+
`
|
|
163
|
+
}
|
|
164
|
+
}), jsxs("div", {
|
|
165
|
+
className: "font-medium text-sm px-3 py-2 border-b border-border bg-muted sticky top-0 flex items-center justify-between",
|
|
166
|
+
children: [jsx("span", {
|
|
167
|
+
className: "text-primary whitespace-nowrap overflow-hidden text-ellipsis pr-2",
|
|
168
|
+
children: item.name
|
|
169
|
+
}), jsx("button", {
|
|
170
|
+
className: "text-muted-foreground hover:text-primary transition-colors",
|
|
171
|
+
"aria-label": pinnedPath === item.path ? 'Unpin' : 'Pin',
|
|
172
|
+
onClick: e => toggleSiderPinned(e, item.path),
|
|
173
|
+
children: pinnedPath === item.path ? jsx(PushpinFillIcon, {
|
|
174
|
+
className: "h-4 w-4"
|
|
175
|
+
}) : jsx(PushpinLineIcon, {
|
|
176
|
+
className: "h-4 w-4"
|
|
177
|
+
})
|
|
178
|
+
})]
|
|
179
|
+
}), jsx("div", {
|
|
180
|
+
className: "overflow-y-auto overflow-x-hidden py-1",
|
|
181
|
+
style: {
|
|
182
|
+
height: `calc(100vh - ${headerOffset}px - 44px)`
|
|
183
|
+
},
|
|
184
|
+
children: item.children.map(child => jsx("div", {
|
|
185
|
+
className: "w-full min-w-max",
|
|
186
|
+
children: renderMenuItem(child, depth + 1, true)
|
|
187
|
+
}, child.path))
|
|
188
|
+
})]
|
|
189
|
+
});
|
|
190
|
+
};
|
|
191
|
+
const renderMenuItem = (item, depth = 0, isHoverMenu = false) => {
|
|
192
|
+
const hasChildren = item.children && item.children.length > 0;
|
|
193
|
+
const isOpen = openMenus.includes(item.path);
|
|
194
|
+
const isActive = isMenuItemActive(item.path);
|
|
195
|
+
const isHovered = hoveredMenu === item.path;
|
|
196
|
+
const paddingLeft = `${depth * 1}rem`;
|
|
197
|
+
// Determine styling based on whether it's a parent or child item
|
|
198
|
+
const isParentWithChildren = hasChildren && depth === 0;
|
|
199
|
+
const shouldApplyBackground = isHovered || !isParentWithChildren && isActive;
|
|
200
|
+
return jsxs("div", {
|
|
201
|
+
className: `w-full relative group ${isHovered && collapsed && !isHoverMenu ? `rounded-themed` : ''}`,
|
|
202
|
+
style: {
|
|
203
|
+
backgroundColor: isHovered && !isHoverMenu ? 'hsl(var(--muted))' : ''
|
|
204
|
+
},
|
|
205
|
+
onMouseEnter: e => handleMenuHover(e, item, isHoverMenu, depth),
|
|
206
|
+
onMouseLeave: () => handleMenuLeave(item, isHoverMenu),
|
|
207
|
+
children: [depth === 0 && (isActive || isParentWithChildren && isHovered) && jsx("span", {
|
|
208
|
+
className: "absolute left-0 top-1 bottom-1 w-0.5 bg-primary rounded-sm"
|
|
209
|
+
}), jsx(Link, {
|
|
210
|
+
to: hasChildren && (collapsed || !collapsed && depth === 0) && !isHoverMenu ? '#' : generateMenuPath(item?.path, routeParams),
|
|
211
|
+
className: `flex items-center justify-between w-full px-1 py-2 hover:bg-muted text-xs cursor-pointer transition-colors rounded-themed mx-1 my-1 whitespace-nowrap overflow-hidden text-ellipsis ${shouldApplyBackground ? 'bg-muted' : ''}`,
|
|
212
|
+
style: {
|
|
213
|
+
paddingLeft: depth === 0 && !isHoverMenu ? '0.25rem' : `calc(1rem + ${paddingLeft})`
|
|
214
|
+
},
|
|
215
|
+
onClick: e => handleMenuClick(item.path, hasChildren && depth > 0, depth, e),
|
|
216
|
+
children: jsxs("div", {
|
|
217
|
+
className: `flex ${depth === 0 && !isHoverMenu ? 'flex-col items-center justify-center w-full gap-1' : 'items-center gap-3'}`,
|
|
218
|
+
children: [item.icon ? jsx("span", {
|
|
219
|
+
className: `flex-shrink-0 ${isActive ? 'text-primary' : 'text-muted-foreground'} ${depth === 0 && !isHoverMenu ? 'text-[20px]' : ''}`,
|
|
220
|
+
style: {
|
|
221
|
+
color: !isActive && settings?.navTheme === 'realDark' ? '#fff' : undefined
|
|
222
|
+
},
|
|
223
|
+
children: item.icon
|
|
224
|
+
}) : jsx("span", {
|
|
225
|
+
className: `flex items-center justify-center flex-shrink-0 ${isActive ? 'text-primary' : 'text-muted-foreground'} ${depth === 0 && !isHoverMenu ? 'text-[16px] h-6 w-6 rounded-md bg-muted select-none text-center' : ''}`,
|
|
226
|
+
style: {
|
|
227
|
+
color: !isActive && settings?.navTheme === 'realDark' ? '#fff' : undefined
|
|
228
|
+
},
|
|
229
|
+
children: getFirstLetter(item.name)
|
|
230
|
+
}), depth === 0 && !isHoverMenu ? jsx("span", {
|
|
231
|
+
className: `font-medium text-[11px] leading-4 text-center whitespace-nowrap overflow-hidden text-ellipsis w-full px-1 ${isActive ? 'text-primary' : 'text-foreground'}`,
|
|
232
|
+
style: {
|
|
233
|
+
color: !isActive && settings?.navTheme === 'realDark' ? '#fff' : undefined
|
|
234
|
+
},
|
|
235
|
+
title: item.name,
|
|
236
|
+
children: getFirstWord(item.name)
|
|
237
|
+
}) : (!collapsed || isHoverMenu) && jsx("span", {
|
|
238
|
+
className: `font-medium whitespace-nowrap overflow-hidden text-ellipsis ${isActive ? 'text-primary' : 'text-foreground'}`,
|
|
239
|
+
style: {
|
|
240
|
+
color: !isActive && settings?.navTheme === 'realDark' ? '#fff' : undefined
|
|
241
|
+
},
|
|
242
|
+
children: item.name
|
|
243
|
+
})]
|
|
244
|
+
})
|
|
245
|
+
}), (() => {
|
|
246
|
+
const activePath = hoveredMenu || pinnedPath;
|
|
247
|
+
return hasChildren && !isHoverMenu && item.children.length > 0 && item.path === activePath && (collapsed || !collapsed && depth === 0);
|
|
248
|
+
})() && renderPopupMenu(item, depth), hasChildren && isOpen && !collapsed && depth > 0 && jsx("div", {
|
|
249
|
+
className: "transition-all duration-200 ease-in-out bg-background",
|
|
250
|
+
children: item.children.map(child => renderMenuItem(child, depth + 1))
|
|
251
|
+
})]
|
|
252
|
+
}, item.path);
|
|
253
|
+
};
|
|
254
|
+
return jsx("div", {
|
|
255
|
+
className: "overflow-hidden",
|
|
256
|
+
children: jsx("nav", {
|
|
257
|
+
className: `mt-2 ${collapsed ? 'px-1' : 'px-2'} overflow-x-hidden`,
|
|
258
|
+
children: menuData.map(item => renderMenuItem(item))
|
|
259
|
+
})
|
|
260
|
+
});
|
|
261
|
+
};export{PerplexSidebarMenu};//# sourceMappingURL=PerplexSidebarMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PerplexSidebarMenu.js","sources":["../../../../src/components/Layout/Sidebar/PerplexSidebarMenu.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_jsx"],"mappings":"uRAQa,kBAAkB,GAA+B,CAAC;UASrD;aACY;AAClB,EAAA,QAAM;WACC;aACD;gBACiB;AACvB,EAAA;AACA,CAAA,KAAA;QACM,CAAA,SAAA,EAAU,YAAI,CAAA,GAAsB,QAAO,CAAE,EAAA,CAAA;AAEnD,EAAA,MAAA,CAAA,WAAsB,EAAA,cAAI,CAAA,GAAkB,QAAE,CAAA,IAAA,CAAA;AAC1C,EAAA,MAAA,CAAA,aAAiB,EAAA,4BAAqB,CAAA;SAChC,CAAA;UAEQ,EAAA;AACd,GAAA,CAAA;AACI,EAAA,MAAA,CAAA,cAAW,eAAC,CAAA,GAAA,QAAA,CAAA,CAAA,CAAA;QAChB,iBAAC,GAAAA,cAAA,CAAA,MAAA,CAAA,IAAA,CAAA;QAED;mBAGC;AAED,IAAA;AACJ,GAAA,GAAE,KAAA;QAEI,QAAA,GAAA,WAA4B,EAAa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I,CAAC,IAAI,CACP;AAQnB,UAAA,QAAA,EAAA,UAAgB,KAAA,IAAG,CAAW,IAAA,GAAAA,GAAA,CAAA,eAAe,EAAA;AAC7C,YAAA,SAAA,EAAA;AAEI,WAAA,CAAA,GAAAA,GAAA,CAAA,eAAY,EAAA;AACZ,YAAA,SAAA,EAAA;;AAEA,SAAA,CAAA;mBAEJ,EAAA;AAUhB,QAAE,SAAA,EAAA,wCAAA;AAEF,QAAA,KACS,EAAA;AAMb,UAAE,MAAA,EAAA,CAAA,aAAA,EAAA,YAAA,CAAA,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {generatePath}from'
|
|
1
|
+
import {generatePath}from'@remix-run/router';/* eslint-disable import/no-extraneous-dependencies */
|
|
2
2
|
const generateMenuPath = (path, params) => {
|
|
3
3
|
try {
|
|
4
4
|
const generatedPath = generatePath(path, params);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sources":["../../../src/components/Layout/util.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"util.js","sources":["../../../src/components/Layout/util.ts"],"sourcesContent":[null],"names":[],"mappings":"6CAAA;MAGa,gBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,KAAI;AAC7C,EAAA,IAAA;UACU,aAAA,GAAA,YAA4B,CAAA,IAAC,QAAM,CAAA;AACzC,IAAA,OAAA;IACJ,OAAC,GAAA,EAAA;;;;;SAIA,IAAA;AACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';function InvitationSettings(props) {
|
|
2
2
|
const {
|
|
3
3
|
settings,
|
|
4
4
|
changeSetting,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvitationSettings.js","sources":["../../../src/components/SettingDrawer/InvitationSettings.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InvitationSettings.js","sources":["../../../src/components/SettingDrawer/InvitationSettings.tsx"],"sourcesContent":[null],"names":[],"mappings":"yRAMwB,SAAA,kBAAkB,CAAC,KAAiC,EAAA;QAClE;IACN,QAAQ;AACR,IAAA,aAAgB;AAChB,IAAA;AACA,GAAA,GAAA;QACM;IACN;MACM,cAAA,CAAW,UAAG,CAAQ;AAE5B,EAAA,MAAA;AACI,IAAA;mBAA2B,EAAA;AAC3B,EAAA,MAAA,uBAAuB,EAAA,QAAA,IAAA,GAAA;AACnB,EAAc,QAAA,EAAA,aAAA,GAAA,YAAA,CAAA,IAAA,QAAA,EAAA,aAAA,GAAA,GAAA,CAAA,IAAA;;AAIlB,EAAA,MAAA,WAAA,GAAc,QAAA,EAAA,YAAA,EAAA,OAAA,EAAA,WAAoC,IAAA,EAAc;AACpE,EAAA,MAAE,sBAAA,GAAA,CAAA,GAAA,EAAA,KAAA,KAAA;AAEF,IAAA,IAAA,CAAA,aAAkB,EAAE;IAEpB,MAAO,cAEC,GAAA;AAqCZ,MAAC,GAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import
|
|
1
|
+
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';function LayoutChange(props) {
|
|
2
2
|
const {
|
|
3
3
|
settings,
|
|
4
4
|
changeSetting,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutChange.js","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LayoutChange.js","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"sourcesContent":[null],"names":[],"mappings":"kSAMwB,SAAA,YAAY,CAAC,KAAiC,EAAA;QAC5D;IACN,QAAQ;AACR,IAAA,aAAgB;AAChB,IAAA;AACA,GAAA,GAAA;AACA,EAAA,MAAA;IACA;MACM,cAAA,CAAA,UAAe,CAAA;AAErB,EAAA,MAAA;AACI,IAAA;mBAA2B,EAAA;AAE3B,EAAA,MAAA,YAAA,GAA+B,QAAA,EAAA,QAAA,IAAA,GAAA;AAC3B,EAAA,MAAA;;AAEH,GAAA,GAAA,QAAE,IAAA,EAAA;AACP,EAAA,MAAE,aAAA,GAAA,QAAA,EAAA,aAAA,GAAA,YAAA,CAAA,IAAA,QAAA,EAAA,aAAA,GAAA,GAAA,CAAA,IAAA,QAAA;AAEF,EAAA,MAAA,aAAkB,QAAO,WAAe,GAAA,SAAQ;QAEzC,YAEC,GAAA,aAAA,EAAA,MAAA,GAAA,UAAc,CAAA,IAAA,EAAC;6CAiD2B;AACtB,IAAA,IAAA,CAAA,aAAA,EAAA;+CAYsB,CAAA,QAAA,EAAA;AACtB,MAAA,GAAA,YAAA;;AAaA,KAAA,CAAA;AAQhC,GAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationsModes.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/NavigationsModes.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"NavigationsModes.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/NavigationsModes.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AA6F/C,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,oBAAoB,2CAgFlG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import'react';import'@react-icons/all-files/fa/FaMoon.js';import'@react-icons/all-files/fa/FaSun.js';import {useMediaQuery}from'../../hooks/useMediaQuery.js';const navigationModes = [{
|
|
2
2
|
key: 'sidebar',
|
|
3
3
|
title: 'Sidebar',
|
|
4
4
|
svg: jsxs("svg", {
|
|
@@ -219,6 +219,89 @@ const menuTypes = [{
|
|
|
219
219
|
opacity: "0.65"
|
|
220
220
|
})]
|
|
221
221
|
})
|
|
222
|
+
}, {
|
|
223
|
+
key: 'perplexLayout',
|
|
224
|
+
title: 'Perplex Layout',
|
|
225
|
+
svg: jsxs("svg", {
|
|
226
|
+
width: "58",
|
|
227
|
+
height: "50",
|
|
228
|
+
viewBox: "0 0 80 60",
|
|
229
|
+
fill: "none",
|
|
230
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
231
|
+
children: [jsx("rect", {
|
|
232
|
+
x: "1",
|
|
233
|
+
y: "1",
|
|
234
|
+
width: "78",
|
|
235
|
+
height: "58",
|
|
236
|
+
rx: "4",
|
|
237
|
+
fill: "white",
|
|
238
|
+
stroke: "#E5E7EB",
|
|
239
|
+
strokeWidth: "2"
|
|
240
|
+
}), jsx("rect", {
|
|
241
|
+
x: "1",
|
|
242
|
+
y: "1",
|
|
243
|
+
width: "20",
|
|
244
|
+
height: "58",
|
|
245
|
+
rx: "3",
|
|
246
|
+
fill: "#0F172A"
|
|
247
|
+
}), jsx("rect", {
|
|
248
|
+
x: "5",
|
|
249
|
+
y: "10",
|
|
250
|
+
width: "10",
|
|
251
|
+
height: "3",
|
|
252
|
+
rx: "1.5",
|
|
253
|
+
fill: "white",
|
|
254
|
+
opacity: "0.9"
|
|
255
|
+
}), jsx("rect", {
|
|
256
|
+
x: "5",
|
|
257
|
+
y: "20",
|
|
258
|
+
width: "10",
|
|
259
|
+
height: "3",
|
|
260
|
+
rx: "1.5",
|
|
261
|
+
fill: "white",
|
|
262
|
+
opacity: "0.6"
|
|
263
|
+
}), jsx("rect", {
|
|
264
|
+
x: "5",
|
|
265
|
+
y: "30",
|
|
266
|
+
width: "10",
|
|
267
|
+
height: "3",
|
|
268
|
+
rx: "1.5",
|
|
269
|
+
fill: "white",
|
|
270
|
+
opacity: "0.4"
|
|
271
|
+
}), jsx("rect", {
|
|
272
|
+
x: "25",
|
|
273
|
+
y: "10",
|
|
274
|
+
width: "40",
|
|
275
|
+
height: "3",
|
|
276
|
+
rx: "1.5",
|
|
277
|
+
fill: "#0F172A",
|
|
278
|
+
opacity: "0.7"
|
|
279
|
+
}), jsx("rect", {
|
|
280
|
+
x: "25",
|
|
281
|
+
y: "20",
|
|
282
|
+
width: "30",
|
|
283
|
+
height: "3",
|
|
284
|
+
rx: "1.5",
|
|
285
|
+
fill: "#0F172A",
|
|
286
|
+
opacity: "0.5"
|
|
287
|
+
}), jsx("rect", {
|
|
288
|
+
x: "25",
|
|
289
|
+
y: "35",
|
|
290
|
+
width: "45",
|
|
291
|
+
height: "3",
|
|
292
|
+
rx: "1.5",
|
|
293
|
+
fill: "#0F172A",
|
|
294
|
+
opacity: "0.4"
|
|
295
|
+
}), jsx("rect", {
|
|
296
|
+
x: "25",
|
|
297
|
+
y: "45",
|
|
298
|
+
width: "35",
|
|
299
|
+
height: "3",
|
|
300
|
+
rx: "1.5",
|
|
301
|
+
fill: "#0F172A",
|
|
302
|
+
opacity: "0.3"
|
|
303
|
+
})]
|
|
304
|
+
})
|
|
222
305
|
}];
|
|
223
306
|
function NavigationModes({
|
|
224
307
|
changeSetting,
|
|
@@ -267,10 +350,13 @@ function NavigationModes({
|
|
|
267
350
|
className: "flex flex-row gap-4",
|
|
268
351
|
children: menuTypes.map((type, index) => jsx("div", {
|
|
269
352
|
className: "relative cursor-pointer hover:opacity-80 transition-opacity shadow-sm dark:shadow-md rounded overflow-hidden",
|
|
270
|
-
onClick: () =>
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
353
|
+
onClick: () => {
|
|
354
|
+
changeSetting(`routeSettings.${currentRoute}.layout.${deviceType}`, {
|
|
355
|
+
...deviceLayout,
|
|
356
|
+
sideMenuType: type.key
|
|
357
|
+
});
|
|
358
|
+
changeSetting('sideMenuType', type.key);
|
|
359
|
+
},
|
|
274
360
|
children: jsxs("div", {
|
|
275
361
|
className: "relative",
|
|
276
362
|
children: [type.svg, deviceLayout?.sideMenuType === type.key && jsx("svg", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationsModes.js","sources":["../../../src/components/SettingDrawer/NavigationsModes.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavigationsModes.js","sources":["../../../src/components/SettingDrawer/NavigationsModes.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"uMAIA,MAAM,eAAe,GAAG,CAAA;AACpB,EAAA,GAAA,EAAA,SAAA;AACI,EAAA,KAAA,EAAA,SAAc;AACd,EAAA,GAAA,EAAAA,IA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
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) {
|
|
2
2
|
const {
|
|
3
3
|
t
|
|
4
4
|
} = useTranslation('settings');
|