@pagamio/frontend-commons-lib 0.8.201 → 0.8.203
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.
|
@@ -6,7 +6,7 @@ import { useAppSidebarContext } from '../../context';
|
|
|
6
6
|
import { useLibTranslations, useTranslation } from '../../translations';
|
|
7
7
|
const AppSidebarMenu = () => {
|
|
8
8
|
const { pages } = useAppSidebarContext();
|
|
9
|
-
return (_jsx(Sidebar.Items, { children:
|
|
9
|
+
return (_jsx(Sidebar.Items, { children: _jsx(Sidebar.ItemGroup, { children: pages.map((item) => (_jsx(AppSidebarItem, { ...item }, item.label))) }) }));
|
|
10
10
|
};
|
|
11
11
|
const AppSidebarItem = ({ href, target, icon, label, items, badge, forceDropdown }) => {
|
|
12
12
|
const { pathname, linkComponent: Link } = useAppSidebarContext();
|
|
@@ -63,7 +63,7 @@ const AppMobileSidebar = () => {
|
|
|
63
63
|
const { t } = useTranslation();
|
|
64
64
|
if (!isOpen)
|
|
65
65
|
return null;
|
|
66
|
-
return (_jsxs(_Fragment, { children: [_jsx(Sidebar, { "aria-label": t('sidebar.mobileAriaLabel', 'Sidebar with multi-level dropdown example'), className: twMerge('fixed inset-y-0 left-0 z-20 hidden h-full shrink-0 flex-col border-r border-gray-200 pt-16 dark:border-gray-700 md:flex', isOpen && 'flex'), id: "sidebar", children: _jsxs("div", { className: "flex h-full flex-col justify-between", children: [_jsxs("div", { className: "flex-1 overflow-y-auto py-2", children: [sidebarHeader && _jsx("div", { className: "mb-4 px-3", children: sidebarHeader }), _jsx("div", { className: "px-3", children: _jsx(AppSidebarMenu, {}) })] }), sidebarFooter && _jsx("div", { className: "border-t border-gray-200 dark:border-gray-700 p-3", children: sidebarFooter })] }) }), _jsx("div", { onClick: close, "aria-hidden": "true", className: "fixed inset-0 z-10 h-full w-full bg-gray-900/50 pt-16 dark:bg-gray-900/90" })] }));
|
|
66
|
+
return (_jsxs(_Fragment, { children: [_jsx(Sidebar, { "aria-label": t('sidebar.mobileAriaLabel', 'Sidebar with multi-level dropdown example'), className: twMerge('fixed inset-y-0 left-0 z-20 hidden h-full shrink-0 flex-col border-r border-gray-200 pt-16 dark:border-gray-700 md:flex', isOpen && 'flex'), id: "sidebar", children: _jsxs("div", { className: "flex h-full flex-col justify-between", children: [_jsxs("div", { className: "flex-1 overflow-y-auto py-2 scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]", children: [sidebarHeader && _jsx("div", { className: "mb-4 px-3", children: sidebarHeader }), _jsx("div", { className: "px-3", children: _jsx(AppSidebarMenu, {}) })] }), sidebarFooter && _jsx("div", { className: "border-t border-gray-200 dark:border-gray-700 p-3", children: sidebarFooter })] }) }), _jsx("div", { onClick: close, "aria-hidden": "true", className: "fixed inset-0 z-10 h-full w-full bg-gray-900/50 pt-16 dark:bg-gray-900/90" })] }));
|
|
67
67
|
};
|
|
68
68
|
const AppDesktopSidebar = () => {
|
|
69
69
|
const { desktop: { isCollapsed, setCollapsed }, sidebarHeader, sidebarFooter, } = useAppSidebarContext();
|
|
@@ -86,7 +86,7 @@ const AppDesktopSidebar = () => {
|
|
|
86
86
|
setCollapsed(true);
|
|
87
87
|
},
|
|
88
88
|
};
|
|
89
|
-
return (_jsx(Sidebar, { onMouseEnter: preview.enable, onMouseLeave: preview.disable, "aria-label": tLib('sidebar.desktopAriaLabel', 'Sidebar with multi-level dropdown example'), collapsed: isCollapsed, className: twMerge('fixed inset-y-0 left-0 z-20 flex h-full shrink-0 flex-col border-r border-gray-200 pt-16 duration-75 dark:border-gray-700 bg-white dark:bg-gray-900', isCollapsed && 'hidden w-16'), id: "sidebar", children: _jsxs("div", { className: "flex h-full flex-col justify-between", children: [_jsxs("div", { className: "flex-1 overflow-y-auto py-2", children: [sidebarHeader && _jsx("div", { className: "mb-4 px-3", children: sidebarHeader }), _jsx("div", { className: "px-2", children: _jsx(AppSidebarMenu, {}) })] }), sidebarFooter && _jsx("div", { className: "border-t border-gray-200 dark:border-gray-700 p-3", children: sidebarFooter })] }) }));
|
|
89
|
+
return (_jsx(Sidebar, { onMouseEnter: preview.enable, onMouseLeave: preview.disable, "aria-label": tLib('sidebar.desktopAriaLabel', 'Sidebar with multi-level dropdown example'), collapsed: isCollapsed, className: twMerge('fixed inset-y-0 left-0 z-20 flex h-full shrink-0 flex-col border-r border-gray-200 pt-16 duration-75 dark:border-gray-700 bg-white dark:bg-gray-900', isCollapsed && 'hidden w-16'), id: "sidebar", children: _jsxs("div", { className: "flex h-full flex-col justify-between", children: [_jsxs("div", { className: "flex-1 overflow-y-auto py-2 scrollbar-hide [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]", children: [sidebarHeader && _jsx("div", { className: "mb-4 px-3", children: sidebarHeader }), _jsx("div", { className: "px-2", children: _jsx(AppSidebarMenu, {}) })] }), sidebarFooter && _jsx("div", { className: "border-t border-gray-200 dark:border-gray-700 p-3", children: sidebarFooter })] }) }));
|
|
90
90
|
};
|
|
91
91
|
const AppDashboardSidebar = () => {
|
|
92
92
|
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "md:hidden", children: _jsx(AppMobileSidebar, {}) }), _jsx("div", { className: "hidden md:block", children: _jsx(AppDesktopSidebar, {}) })] }));
|
package/lib/styles.css
CHANGED
|
@@ -1337,9 +1337,6 @@ input[type="range"]::-ms-fill-lower {
|
|
|
1337
1337
|
.ms-3 {
|
|
1338
1338
|
margin-inline-start: 0.75rem;
|
|
1339
1339
|
}
|
|
1340
|
-
.mt-0 {
|
|
1341
|
-
margin-top: 0px;
|
|
1342
|
-
}
|
|
1343
1340
|
.mt-0\.5 {
|
|
1344
1341
|
margin-top: 0.125rem;
|
|
1345
1342
|
}
|
|
@@ -2920,9 +2917,6 @@ input[type="range"]::-ms-fill-lower {
|
|
|
2920
2917
|
.pb-0 {
|
|
2921
2918
|
padding-bottom: 0px;
|
|
2922
2919
|
}
|
|
2923
|
-
.pb-2 {
|
|
2924
|
-
padding-bottom: 0.5rem;
|
|
2925
|
-
}
|
|
2926
2920
|
.pb-2\.5 {
|
|
2927
2921
|
padding-bottom: 0.625rem;
|
|
2928
2922
|
}
|
|
@@ -3646,6 +3640,9 @@ input[type="range"]::-ms-fill-lower {
|
|
|
3646
3640
|
.ease-out {
|
|
3647
3641
|
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
3648
3642
|
}
|
|
3643
|
+
.\[-ms-overflow-style\:none\] {
|
|
3644
|
+
-ms-overflow-style: none;
|
|
3645
|
+
}
|
|
3649
3646
|
.\[overflow\:-moz-scrollbars-none\] {
|
|
3650
3647
|
overflow: -moz-scrollbars-none;
|
|
3651
3648
|
}
|
|
@@ -6122,6 +6119,9 @@ input[type="range"]::-ms-fill-lower {
|
|
|
6122
6119
|
.\[\&\:\:-webkit-scrollbar\]\:\!hidden::-webkit-scrollbar {
|
|
6123
6120
|
display: none !important;
|
|
6124
6121
|
}
|
|
6122
|
+
.\[\&\:\:-webkit-scrollbar\]\:hidden::-webkit-scrollbar {
|
|
6123
|
+
display: none;
|
|
6124
|
+
}
|
|
6125
6125
|
.\[\&\:\:-webkit-scrollbar\]\:\!h-0::-webkit-scrollbar {
|
|
6126
6126
|
height: 0px !important;
|
|
6127
6127
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagamio/frontend-commons-lib",
|
|
3
3
|
"description": "Pagamio library for Frontend reusable components like the form engine and table container",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.203",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"provenance": false
|