karsten-design-system 1.2.50 → 1.2.51
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/dist/index.js
CHANGED
|
@@ -451,7 +451,7 @@ function Sidebar({ item, onClose, topItem, homeTranslation = 'Início', favorite
|
|
|
451
451
|
}, "aria-label": `Ir para ${item.title}`, children: jsx(Tooltip, { text: item.tooltipText, children: item.title }) })) : (jsx(Link$1, { to: item.path || '', className: "font-roboto text-base text-light-900 hover:font-bold dark:text-light-500 dark:hover:bg-dark-400", onClick: onClose, "aria-label": `Ir para ${item.title}`, children: jsx(Tooltip, { text: item.tooltipText, children: item.title }) })) }, `top-item-${item.id ?? item.title}`))), jsxs("div", { className: "flex flex-row gap-3 items-center pl-6 pt-8 pb-4", children: [jsx("i", { className: "pi pi-star text-light-900 !font-bold text-lg dark:text-light-500" }), jsx("p", { className: "text-light-900 font-bold text-lg dark:text-light-500", children: favoritesTranslation })] })] }), jsx("div", { className: "flex-1 overflow-y-auto overflow-x-hidden px-0 pb-4 pr-1 custom-scrollbar", children: item?.map((item) => (jsx(Link$1, { className: "flex flex-row items-center pl-6 gap-2 border-b border-b-light-200 hover:bg-light-300 hover:font-bold dark:bg-dark-100 dark:text-light-500 dark:hover:bg-dark-400", to: item.path || '', onClick: onClose, "aria-label": `Ir para ${item.title}`, children: jsx("span", { className: "font-roboto text-base py-2 text-light-900 hover:font-bold dark:text-light-500 dark:hover:bg-dark-400", children: jsx(Tooltip, { text: item.tooltipText, children: item.title }) }) }, item.id))) })] }) }));
|
|
452
452
|
}
|
|
453
453
|
|
|
454
|
-
function Header({ sidebarItems, sidebarTopItems, username, userConfigItems, setOpenNotifications, isRenderNotifications = false, rightActions, redirect = '/', helloTranslation = 'Olá', favoritesTranslation = 'Favoritos', }) {
|
|
454
|
+
function Header({ sidebarItems, sidebarTopItems, username, userConfigItems, setOpenNotifications, isRenderNotifications = false, rightActions, redirect = '/', helloTranslation = 'Olá', favoritesTranslation = 'Favoritos', homeTranslation = 'Início', }) {
|
|
455
455
|
const [openSidebar, setOpenSidebar] = useState(false);
|
|
456
456
|
const [openUserConfig, setOpenUserConfig] = useState(false);
|
|
457
457
|
const userConfigRef = useRef(null);
|
|
@@ -478,7 +478,7 @@ function Header({ sidebarItems, sidebarTopItems, username, userConfigItems, setO
|
|
|
478
478
|
setOpenUserConfig(false);
|
|
479
479
|
}, href: path, className: "block w-full font-base font-roboto text-light-900 cursor-pointer hover:font-bold dark:text-light-500", "aria-label": "Op\u00E7\u00F5es de configura\u00E7\u00F5es do usu\u00E1rio", children: title }) }, id))) }) }))] }), rightActions && rightActions] })] }), openSidebar && (jsx(Sidebar, { topItem: sidebarTopItems, item: sidebarItems, onClose: () => {
|
|
480
480
|
setOpenSidebar(false);
|
|
481
|
-
}, favoritesTranslation: favoritesTranslation }))] }));
|
|
481
|
+
}, favoritesTranslation: favoritesTranslation, homeTranslation: homeTranslation }))] }));
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
const variants$2 = {
|