nave-ui-library 1.0.0-beta.21 → 1.0.0-beta.22
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/react/index.cjs +540 -4026
- package/dist/react/index.d.cts +12 -6
- package/dist/react/index.d.ts +12 -6
- package/dist/react/index.js +561 -3915
- package/dist/styles.css +1 -1
- package/dist/wc/index.cjs +15 -8
- package/dist/wc/index.d.cts +12 -6
- package/dist/wc/index.d.ts +12 -6
- package/dist/wc/index.js +15 -8
- package/package.json +2 -1
package/dist/react/index.d.cts
CHANGED
|
@@ -133,7 +133,7 @@ declare function AlertDescription({ className, ...props }: React$1.ComponentProp
|
|
|
133
133
|
|
|
134
134
|
declare const badgeVariants: (props?: ({
|
|
135
135
|
tone?: "neutral" | "brand" | "success" | "warning" | "error" | "info" | null | undefined;
|
|
136
|
-
size?: "small" | "
|
|
136
|
+
size?: "small" | "large" | "medium" | null | undefined;
|
|
137
137
|
shape?: "square" | "rounded" | null | undefined;
|
|
138
138
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
139
139
|
declare function Badge({ className, tone, size, shape, asChild, tokens, style, platform, ...props }: React$1.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
@@ -541,16 +541,22 @@ type SidebarItem = {
|
|
|
541
541
|
label: string;
|
|
542
542
|
icon: React$1.ReactNode;
|
|
543
543
|
active?: boolean;
|
|
544
|
-
|
|
544
|
+
href?: string;
|
|
545
545
|
};
|
|
546
|
-
type
|
|
546
|
+
type SidebarSection = {
|
|
547
|
+
id: string;
|
|
547
548
|
title?: string;
|
|
548
549
|
items: SidebarItem[];
|
|
550
|
+
};
|
|
551
|
+
type SidebarProps = {
|
|
552
|
+
title?: string;
|
|
553
|
+
sections?: SidebarSection[];
|
|
554
|
+
items?: SidebarItem[];
|
|
549
555
|
collapsed?: boolean;
|
|
550
|
-
|
|
556
|
+
onToggleCollapse?: () => void;
|
|
551
557
|
className?: string;
|
|
552
558
|
};
|
|
553
|
-
declare function Sidebar({ title, items, collapsed,
|
|
559
|
+
declare function Sidebar({ title, sections, items, collapsed, onToggleCollapse, className, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
554
560
|
|
|
555
561
|
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
556
562
|
type IconVariant = 'default' | 'primary' | 'muted' | 'danger' | 'success';
|
|
@@ -651,4 +657,4 @@ type ThemeTokens = Record<string, any>;
|
|
|
651
657
|
declare function setTheme(theme: ThemeTokens): void;
|
|
652
658
|
declare function getTheme(): ThemeTokens;
|
|
653
659
|
|
|
654
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Banner, type BannerProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, CalendarDayButton, Card, type CardProps, Checkbox, Combobox, DatePickerInput, DragSlider, type DragSliderProps, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateAction, type EmptyStateProps, FileUpload, type FileUploadFile, type FileUploadProps, Icon, IconLabel, type IconLabelProps, type IconProps, type IconSize, type IconVariant, Input, IntegrationCard, type IntegrationCardProps, Label, LastMovements, type LastMovementsProps, ListItem, type ListItemProps, type ListItemStatus, Loader, type Merchant, type Movement, type MovementStatus, Navbar, type NavbarAction, type NavbarUser, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, PromoBanner, type PromoBannerProps, RadioGroup, RadioItem, SearchBar, Select, type SelectItem, Separator, Sidebar, type SidebarItem, type SidebarProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeContext, ThemeProvider, type ThemeTokens, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnknownPurchase, type UnknownPurchaseProps, badgeVariants, bannerVariants, buttonBaseClasses, cardBaseClasses, getTheme, iconBaseClasses, promoBannerBaseClasses, resolveNativeStyles, resolveTokens, resolveWebStyles, setTheme, useTheme };
|
|
660
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Banner, type BannerProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, CalendarDayButton, Card, type CardProps, Checkbox, Combobox, DatePickerInput, DragSlider, type DragSliderProps, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateAction, type EmptyStateProps, FileUpload, type FileUploadFile, type FileUploadProps, Icon, IconLabel, type IconLabelProps, type IconProps, type IconSize, type IconVariant, Input, IntegrationCard, type IntegrationCardProps, Label, LastMovements, type LastMovementsProps, ListItem, type ListItemProps, type ListItemStatus, Loader, type Merchant, type Movement, type MovementStatus, Navbar, type NavbarAction, type NavbarUser, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, PromoBanner, type PromoBannerProps, RadioGroup, RadioItem, SearchBar, Select, type SelectItem, Separator, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeContext, ThemeProvider, type ThemeTokens, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnknownPurchase, type UnknownPurchaseProps, badgeVariants, bannerVariants, buttonBaseClasses, cardBaseClasses, getTheme, iconBaseClasses, promoBannerBaseClasses, resolveNativeStyles, resolveTokens, resolveWebStyles, setTheme, useTheme };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -133,7 +133,7 @@ declare function AlertDescription({ className, ...props }: React$1.ComponentProp
|
|
|
133
133
|
|
|
134
134
|
declare const badgeVariants: (props?: ({
|
|
135
135
|
tone?: "neutral" | "brand" | "success" | "warning" | "error" | "info" | null | undefined;
|
|
136
|
-
size?: "small" | "
|
|
136
|
+
size?: "small" | "large" | "medium" | null | undefined;
|
|
137
137
|
shape?: "square" | "rounded" | null | undefined;
|
|
138
138
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
139
139
|
declare function Badge({ className, tone, size, shape, asChild, tokens, style, platform, ...props }: React$1.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
@@ -541,16 +541,22 @@ type SidebarItem = {
|
|
|
541
541
|
label: string;
|
|
542
542
|
icon: React$1.ReactNode;
|
|
543
543
|
active?: boolean;
|
|
544
|
-
|
|
544
|
+
href?: string;
|
|
545
545
|
};
|
|
546
|
-
type
|
|
546
|
+
type SidebarSection = {
|
|
547
|
+
id: string;
|
|
547
548
|
title?: string;
|
|
548
549
|
items: SidebarItem[];
|
|
550
|
+
};
|
|
551
|
+
type SidebarProps = {
|
|
552
|
+
title?: string;
|
|
553
|
+
sections?: SidebarSection[];
|
|
554
|
+
items?: SidebarItem[];
|
|
549
555
|
collapsed?: boolean;
|
|
550
|
-
|
|
556
|
+
onToggleCollapse?: () => void;
|
|
551
557
|
className?: string;
|
|
552
558
|
};
|
|
553
|
-
declare function Sidebar({ title, items, collapsed,
|
|
559
|
+
declare function Sidebar({ title, sections, items, collapsed, onToggleCollapse, className, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
554
560
|
|
|
555
561
|
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
556
562
|
type IconVariant = 'default' | 'primary' | 'muted' | 'danger' | 'success';
|
|
@@ -651,4 +657,4 @@ type ThemeTokens = Record<string, any>;
|
|
|
651
657
|
declare function setTheme(theme: ThemeTokens): void;
|
|
652
658
|
declare function getTheme(): ThemeTokens;
|
|
653
659
|
|
|
654
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Banner, type BannerProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, CalendarDayButton, Card, type CardProps, Checkbox, Combobox, DatePickerInput, DragSlider, type DragSliderProps, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateAction, type EmptyStateProps, FileUpload, type FileUploadFile, type FileUploadProps, Icon, IconLabel, type IconLabelProps, type IconProps, type IconSize, type IconVariant, Input, IntegrationCard, type IntegrationCardProps, Label, LastMovements, type LastMovementsProps, ListItem, type ListItemProps, type ListItemStatus, Loader, type Merchant, type Movement, type MovementStatus, Navbar, type NavbarAction, type NavbarUser, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, PromoBanner, type PromoBannerProps, RadioGroup, RadioItem, SearchBar, Select, type SelectItem, Separator, Sidebar, type SidebarItem, type SidebarProps, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeContext, ThemeProvider, type ThemeTokens, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnknownPurchase, type UnknownPurchaseProps, badgeVariants, bannerVariants, buttonBaseClasses, cardBaseClasses, getTheme, iconBaseClasses, promoBannerBaseClasses, resolveNativeStyles, resolveTokens, resolveWebStyles, setTheme, useTheme };
|
|
660
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Banner, type BannerProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, CalendarDayButton, Card, type CardProps, Checkbox, Combobox, DatePickerInput, DragSlider, type DragSliderProps, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateAction, type EmptyStateProps, FileUpload, type FileUploadFile, type FileUploadProps, Icon, IconLabel, type IconLabelProps, type IconProps, type IconSize, type IconVariant, Input, IntegrationCard, type IntegrationCardProps, Label, LastMovements, type LastMovementsProps, ListItem, type ListItemProps, type ListItemStatus, Loader, type Merchant, type Movement, type MovementStatus, Navbar, type NavbarAction, type NavbarUser, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, PromoBanner, type PromoBannerProps, RadioGroup, RadioItem, SearchBar, Select, type SelectItem, Separator, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeContext, ThemeProvider, type ThemeTokens, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UnknownPurchase, type UnknownPurchaseProps, badgeVariants, bannerVariants, buttonBaseClasses, cardBaseClasses, getTheme, iconBaseClasses, promoBannerBaseClasses, resolveNativeStyles, resolveTokens, resolveWebStyles, setTheme, useTheme };
|