lecom-ui 2.9.2 → 2.9.4
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,8 +6,9 @@ import { ScrollArea } from '../ScrollArea/ScrollArea.js';
|
|
|
6
6
|
import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../Select/Select.js';
|
|
7
7
|
import { useIsMobile } from '../../hooks/use-mobile.js';
|
|
8
8
|
import { User } from 'lucide-react';
|
|
9
|
-
import
|
|
9
|
+
import '../../i18n/index.js';
|
|
10
10
|
import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '../Tooltip/Tooltip.js';
|
|
11
|
+
import i18n from 'i18next';
|
|
11
12
|
|
|
12
13
|
const UserMenu = ({
|
|
13
14
|
customStyles,
|
|
@@ -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/i18n/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { initReactI18next } from 'react-i18next';
|
|
2
|
+
import i18n from 'i18next';
|
|
3
|
+
export { default } from 'i18next';
|
|
2
4
|
import { translations } from './locales/index.js';
|
|
3
5
|
|
|
4
6
|
var Translations = /* @__PURE__ */ ((Translations2) => {
|
|
@@ -16,7 +18,6 @@ const i18nConfig = {
|
|
|
16
18
|
escapeValue: false
|
|
17
19
|
}
|
|
18
20
|
};
|
|
19
|
-
|
|
20
|
-
i18n.init();
|
|
21
|
+
i18n.use(initReactI18next).init(i18nConfig);
|
|
21
22
|
|
|
22
|
-
export { Translations
|
|
23
|
+
export { Translations };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
|
10
10
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
11
11
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
12
12
|
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
13
|
-
import * as node_modules_i18next from 'node_modules/i18next';
|
|
14
13
|
|
|
15
14
|
declare const accordionVariants: (props?: ({
|
|
16
15
|
variant?: "default" | null | undefined;
|
|
@@ -367,6 +366,12 @@ interface HeaderProps extends React.HTMLAttributes<HTMLElement>, VariantProps<ty
|
|
|
367
366
|
onOpenMenuChange?: () => void;
|
|
368
367
|
}
|
|
369
368
|
|
|
369
|
+
declare enum Translations {
|
|
370
|
+
PT_BR = "pt_BR",
|
|
371
|
+
EN_US = "en_US",
|
|
372
|
+
ES_ES = "es_ES"
|
|
373
|
+
}
|
|
374
|
+
|
|
370
375
|
interface SideBarProps {
|
|
371
376
|
items: {
|
|
372
377
|
title: string;
|
|
@@ -604,13 +609,6 @@ type SidebarContext = {
|
|
|
604
609
|
declare const SidebarContext: React.Context<SidebarContext | null>;
|
|
605
610
|
declare function useSidebar(): SidebarContext;
|
|
606
611
|
|
|
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
612
|
type Fonts = 'roboto' | 'montserrat' | 'ibm';
|
|
615
613
|
declare const fonts: {
|
|
616
614
|
roboto: string[];
|
|
@@ -618,4 +616,4 @@ declare const fonts: {
|
|
|
618
616
|
ibm: string[];
|
|
619
617
|
};
|
|
620
618
|
|
|
621
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type BgColor, Button, type ButtonProps, CadastroFacil, type CadastroFacilProps, type CalloutNotificationProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, type Color, type ColorToken, type CustomStyles$1 as CustomStyles, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type FillColor, type Fonts, type HeaderProps, type InlineNotificationProps, Layout, type LayoutProps, LogoLecom, LogoLecomBrand, type LogoLecomBrandProps, type LogoLecomProps, ModoTeste, type ModoTesteProps, Notification, type NotificationProps, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationIndex, PaginationItem, PaginationLast, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Rpa, type RpaProps, ScrollArea, ScrollBar, type SideBarProps, Skeleton, Spin, type SpinProps, Switch, TOAST_REMOVE_DELAY, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRowBody, TableRowHeader, Tag, type TagProps, type TextColor, type ToastNotificationProps, type ToasterToast, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, Translations, TypeMessageNotification, Typography, type TypographyProps, accordionVariants, buttonVariants, colors, fonts, getPositionClass,
|
|
619
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type BgColor, Button, type ButtonProps, CadastroFacil, type CadastroFacilProps, type CalloutNotificationProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, type Color, type ColorToken, type CustomStyles$1 as CustomStyles, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type FillColor, type Fonts, type HeaderProps, type InlineNotificationProps, Layout, type LayoutProps, LogoLecom, LogoLecomBrand, type LogoLecomBrandProps, type LogoLecomProps, ModoTeste, type ModoTesteProps, Notification, type NotificationProps, Pagination, PaginationContent, PaginationEllipsis, PaginationFirst, PaginationIndex, PaginationItem, PaginationLast, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Rpa, type RpaProps, ScrollArea, ScrollBar, type SideBarProps, Skeleton, Spin, type SpinProps, Switch, TOAST_REMOVE_DELAY, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRowBody, TableRowHeader, Tag, type TagProps, type TextColor, type ToastNotificationProps, type ToasterToast, Tooltip, TooltipArrow, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, Translations, TypeMessageNotification, Typography, type TypographyProps, accordionVariants, buttonVariants, colors, fonts, getPositionClass, notificationVariants, reducer, tagVariants, toast, typographyVariants, useNotificationToast, useSidebar };
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,6 @@ export { Typography, typographyVariants } from './components/Typography/Typograp
|
|
|
23
23
|
export { ScrollArea, ScrollBar } from './components/ScrollArea/ScrollArea.js';
|
|
24
24
|
export { Spin } from './components/Spin/Spin.js';
|
|
25
25
|
export { useSidebar } from './components/Sidebar/Sidebar.js';
|
|
26
|
-
export { Translations
|
|
26
|
+
export { Translations } from './i18n/index.js';
|
|
27
27
|
export { colors } from './tokens/colors.js';
|
|
28
28
|
export { fonts } from './tokens/fonts.js';
|