lecom-ui 2.9.1 → 2.9.3
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.
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { useTranslation
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Typography } from '../Typography/Typography.js';
|
|
4
4
|
import { cn } from '../../lib/utils.js';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
6
|
import { Menu } from 'lucide-react';
|
|
7
7
|
import { colorLuminance } from 'use-color-luminance';
|
|
8
|
-
import { i18n } from '../../i18n/index.js';
|
|
9
8
|
import { useSidebar } from '../Sidebar/Sidebar.js';
|
|
10
9
|
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '../Tooltip/Tooltip.js';
|
|
11
10
|
import { HelpMenu } from './HelpMenu.js';
|
|
@@ -55,7 +54,7 @@ const Header = ({
|
|
|
55
54
|
}
|
|
56
55
|
};
|
|
57
56
|
};
|
|
58
|
-
return /* @__PURE__ */ React.createElement(
|
|
57
|
+
return /* @__PURE__ */ React.createElement(
|
|
59
58
|
"header",
|
|
60
59
|
{
|
|
61
60
|
className: cn(headerVariants({ className }), ""),
|
|
@@ -88,7 +87,7 @@ const Header = ({
|
|
|
88
87
|
module
|
|
89
88
|
)), /* @__PURE__ */ React.createElement("div", { className: "max-md:hidden" }, extraContent && extraContent)),
|
|
90
89
|
/* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-4" }, /* @__PURE__ */ React.createElement(SocialMenu, { customStyles: getCustomStyles(), ...socialMenu }), /* @__PURE__ */ React.createElement(UserMenu, { customStyles: getCustomStyles(), ...userMenu }), /* @__PURE__ */ React.createElement(HelpMenu, { customStyles: getCustomStyles(), ...helpMenu }), /* @__PURE__ */ React.createElement(ModulesMenu, { customStyles: getCustomStyles(), ...modulesMenu }))
|
|
91
|
-
)
|
|
90
|
+
);
|
|
92
91
|
};
|
|
93
92
|
Header.displayName = "Header";
|
|
94
93
|
|
|
@@ -9,6 +9,7 @@ import { LogoLecomBrand } from '../CustomIcon/Icons/LogoLecomBrand.js';
|
|
|
9
9
|
import { Header } from '../Header/Header.js';
|
|
10
10
|
import { SidebarProvider, Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarMenu, SidebarMenuItem, SidebarMenuButton, SidebarFooter } from '../Sidebar/Sidebar.js';
|
|
11
11
|
import { Typography } from '../Typography/Typography.js';
|
|
12
|
+
import '../../i18n/index.js';
|
|
12
13
|
|
|
13
14
|
const Layout = ({ children, header, sideBar }) => {
|
|
14
15
|
const { t } = useTranslation();
|
package/dist/index.d.ts
CHANGED
|
@@ -367,6 +367,13 @@ interface HeaderProps extends React.HTMLAttributes<HTMLElement>, VariantProps<ty
|
|
|
367
367
|
onOpenMenuChange?: () => void;
|
|
368
368
|
}
|
|
369
369
|
|
|
370
|
+
declare enum Translations {
|
|
371
|
+
PT_BR = "pt_BR",
|
|
372
|
+
EN_US = "en_US",
|
|
373
|
+
ES_ES = "es_ES"
|
|
374
|
+
}
|
|
375
|
+
declare const i18n: node_modules_i18next.i18n;
|
|
376
|
+
|
|
370
377
|
interface SideBarProps {
|
|
371
378
|
items: {
|
|
372
379
|
title: string;
|
|
@@ -604,13 +611,6 @@ type SidebarContext = {
|
|
|
604
611
|
declare const SidebarContext: React.Context<SidebarContext | null>;
|
|
605
612
|
declare function useSidebar(): SidebarContext;
|
|
606
613
|
|
|
607
|
-
declare enum Translations {
|
|
608
|
-
PT_BR = "pt_BR",
|
|
609
|
-
EN_US = "en_US",
|
|
610
|
-
ES_ES = "es_ES"
|
|
611
|
-
}
|
|
612
|
-
declare const i18n: node_modules_i18next.i18n;
|
|
613
|
-
|
|
614
614
|
type Fonts = 'roboto' | 'montserrat' | 'ibm';
|
|
615
615
|
declare const fonts: {
|
|
616
616
|
roboto: string[];
|