nave-ui-library 1.0.0-beta.50 → 1.0.0-beta.52
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/lit/index.d.ts +178 -368
- package/dist/lit/index.js +182 -182
- package/dist/wc/index.d.ts +27 -201
- package/dist/wc/index.js +182 -182
- package/package.json +1 -1
package/dist/lit/index.d.ts
CHANGED
|
@@ -2,23 +2,14 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
4
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
5
|
-
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
6
5
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
7
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
8
7
|
import { VariantProps } from 'class-variance-authority';
|
|
9
8
|
import { Loader2Icon } from 'lucide-react';
|
|
10
9
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
11
10
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
12
|
-
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
13
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
14
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
15
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
16
11
|
import { DayPicker } from 'react-day-picker';
|
|
17
12
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
18
|
-
import { Drawer as Drawer$1 } from 'vaul';
|
|
19
|
-
import * as _radix_ui_react_dialog from '@radix-ui/react-dialog';
|
|
20
|
-
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
21
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
22
13
|
|
|
23
14
|
interface ThemeTokensBase {
|
|
24
15
|
[key: string]: unknown;
|
|
@@ -50,6 +41,21 @@ declare class NaveThemeProviderElement extends HTMLElement {
|
|
|
50
41
|
private _loadTheme;
|
|
51
42
|
}
|
|
52
43
|
|
|
44
|
+
declare function AccordionWC({ type, size, collapsible, items, defaultValue, value, onValueChange, tokens, className, }: any): react_jsx_runtime.JSX.Element;
|
|
45
|
+
declare function TabsWC({ defaultValue, value, onValueChange, size, tabs, tokens, className, }: any): react_jsx_runtime.JSX.Element;
|
|
46
|
+
declare function RadioGroupWC({ value, defaultValue, onValueChange, items, className, }: any): react_jsx_runtime.JSX.Element;
|
|
47
|
+
declare function TooltipWC({ triggerLabel, content, side, sideOffset, delayDuration, tokens, className, }: any): react_jsx_runtime.JSX.Element;
|
|
48
|
+
declare function PopoverWC({ triggerLabel, content, align, side, sideOffset, open, defaultOpen, onOpenChange, tokens, className, }: any): react_jsx_runtime.JSX.Element;
|
|
49
|
+
declare function DropdownMenuWC({ triggerLabel, items, align, sideOffset, open, onOpenChange, onItemClick, tokens, className, }: any): react_jsx_runtime.JSX.Element;
|
|
50
|
+
declare function DrawerWC({ triggerLabel, triggerVariant, triggerSize, title, description, bodyText, direction, closeLabel, open, onOpenChange, tokens, className, }: any): react_jsx_runtime.JSX.Element;
|
|
51
|
+
declare function AlertDialogWC({ triggerLabel, triggerVariant, triggerSize, title, description, cancelLabel, actionLabel, onAction, onCancel, alignment, size, open, onOpenChange, tokens, className, }: any): react_jsx_runtime.JSX.Element;
|
|
52
|
+
declare function BreadcrumbWC({ items, size, tokens, className }: any): react_jsx_runtime.JSX.Element;
|
|
53
|
+
declare function PaginationWC({ currentPage, totalPages, siblingCount, onPageChange, tokens, className, }: any): react_jsx_runtime.JSX.Element;
|
|
54
|
+
declare function TableWC({ columns, rows, caption, footer, tokens, className, }: any): react_jsx_runtime.JSX.Element;
|
|
55
|
+
declare function CardWC({ title, variant, width, content, tokens, className, }: any): react_jsx_runtime.JSX.Element;
|
|
56
|
+
declare function ModuleBoxWC({ title, content, tokens, className, headerClassName, slotClassName, footerClassName, }: any): react_jsx_runtime.JSX.Element;
|
|
57
|
+
declare function DragSliderWC({ items, tokens, className }: any): react_jsx_runtime.JSX.Element;
|
|
58
|
+
|
|
53
59
|
type ButtonProps = React.ComponentProps<'button'> & {
|
|
54
60
|
tokens?: Partial<ThemeTokensBase>;
|
|
55
61
|
variant?: 'primary' | 'secondary' | 'tertiary' | 'neutral';
|
|
@@ -181,18 +187,6 @@ interface CheckboxProps extends React.ComponentProps<typeof CheckboxPrimitive.Ro
|
|
|
181
187
|
}
|
|
182
188
|
declare function Checkbox({ className, tokens, size, tone, label, description, disabled, style, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
183
189
|
|
|
184
|
-
interface RadioGroupProps extends React.ComponentProps<typeof RadioGroupPrimitive.Root> {
|
|
185
|
-
}
|
|
186
|
-
interface RadioItemProps extends React.ComponentProps<typeof RadioGroupPrimitive.Item> {
|
|
187
|
-
size?: 'regular' | 'small' | 'extraSmall';
|
|
188
|
-
label?: string;
|
|
189
|
-
description?: string;
|
|
190
|
-
disabled?: boolean;
|
|
191
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
192
|
-
}
|
|
193
|
-
declare function RadioGroup({ className, ...props }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
194
|
-
declare function RadioItem({ className, size, label, description, disabled, tokens, value, ...props }: RadioItemProps): react_jsx_runtime.JSX.Element;
|
|
195
|
-
|
|
196
190
|
interface SwitchProps extends React.ComponentProps<typeof SwitchPrimitive.Root> {
|
|
197
191
|
tokens?: Partial<ThemeTokensBase>;
|
|
198
192
|
size?: 'regular' | 'small' | 'extraSmall';
|
|
@@ -323,15 +317,6 @@ type BannerProps = React.ComponentProps<'div'> & VariantProps<typeof bannerVaria
|
|
|
323
317
|
};
|
|
324
318
|
declare function Banner({ className, asChild, tokens, variant, size, orientation, imagePosition, contentAlign, imageDisplay, heroContentPosition, heroMinHeight, heroOverlay, title, description, cta, imageSrc, imageAlt, icon, endSlot, ...props }: BannerProps): react_jsx_runtime.JSX.Element;
|
|
325
319
|
|
|
326
|
-
type CardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
327
|
-
title?: React.ReactNode;
|
|
328
|
-
action?: React.ReactNode;
|
|
329
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
330
|
-
variant?: 'primary' | 'secondary' | 'tertiary';
|
|
331
|
-
width?: number | string;
|
|
332
|
-
};
|
|
333
|
-
declare function Card({ className, title, action, tokens, variant, width, children, style, ...props }: CardProps): react_jsx_runtime.JSX.Element;
|
|
334
|
-
|
|
335
320
|
interface ColorExampleProps {
|
|
336
321
|
className?: string;
|
|
337
322
|
colorToken: string;
|
|
@@ -410,6 +395,17 @@ declare function LoaderInit({ size, className, }: {
|
|
|
410
395
|
className?: string;
|
|
411
396
|
}): react_jsx_runtime.JSX.Element;
|
|
412
397
|
|
|
398
|
+
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
399
|
+
type IconVariant = 'default' | 'primary' | 'muted' | 'danger' | 'success';
|
|
400
|
+
type IconProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
401
|
+
children?: React.ReactNode;
|
|
402
|
+
size?: IconSize;
|
|
403
|
+
color?: IconVariant;
|
|
404
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
405
|
+
asChild?: boolean;
|
|
406
|
+
};
|
|
407
|
+
declare function Icon({ className, size, color, tokens: customTokens, asChild, style, children, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
408
|
+
|
|
413
409
|
type HeaderSize = 'desktop' | 'mobile';
|
|
414
410
|
type HeaderProps = {
|
|
415
411
|
title: React.ReactNode;
|
|
@@ -464,13 +460,6 @@ type TourProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
464
460
|
};
|
|
465
461
|
declare function Tour({ className, currentStep, totalSteps, title, description, onBack, onNext, backLabel, nextLabel, disableBack, disableNext, showPointer, tokens, style, ...props }: TourProps): react_jsx_runtime.JSX.Element;
|
|
466
462
|
|
|
467
|
-
type DragSliderProps = {
|
|
468
|
-
children: React.ReactNode;
|
|
469
|
-
className?: string;
|
|
470
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
471
|
-
};
|
|
472
|
-
declare function DragSlider({ children, className, tokens: customTokens, }: DragSliderProps): react_jsx_runtime.JSX.Element;
|
|
473
|
-
|
|
474
463
|
type ChartType = 'bar' | 'line' | 'donut' | 'pie';
|
|
475
464
|
type ChartDatum = {
|
|
476
465
|
label: string;
|
|
@@ -503,178 +492,15 @@ type ChartsProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
503
492
|
};
|
|
504
493
|
declare function Charts({ className, type, data, title, subtitle, showLegend, showGrid, showBaseline, showXAxis, showYAxis, showTooltip, height, donutCenterValue, donutCenterLabel, legendTitle, valueFormatter, xDataKey, yDataKey, nameKey, showLineArea, emptyStateLabel, tokens, style, ...props }: ChartsProps): react_jsx_runtime.JSX.Element;
|
|
505
494
|
|
|
506
|
-
declare function Accordion({ size, tokens, ...props }: React.ComponentProps<typeof AccordionPrimitive.Root> & {
|
|
507
|
-
size?: 'sm' | 'md';
|
|
508
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
509
|
-
}): react_jsx_runtime.JSX.Element;
|
|
510
|
-
declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
511
|
-
declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger> & {
|
|
512
|
-
size?: 'sm' | 'md';
|
|
513
|
-
}): react_jsx_runtime.JSX.Element;
|
|
514
|
-
declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content> & {
|
|
515
|
-
size?: 'sm' | 'md';
|
|
516
|
-
}): react_jsx_runtime.JSX.Element;
|
|
517
|
-
|
|
518
|
-
declare function Table({ className, tokens, ...props }: React.ComponentProps<'table'> & {
|
|
519
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
520
|
-
}): react_jsx_runtime.JSX.Element;
|
|
521
|
-
declare function TableHeader(props: React.ComponentProps<'thead'>): react_jsx_runtime.JSX.Element;
|
|
522
|
-
declare function TableBody(props: React.ComponentProps<'tbody'>): react_jsx_runtime.JSX.Element;
|
|
523
|
-
declare function TableRow(props: React.ComponentProps<'tr'>): react_jsx_runtime.JSX.Element;
|
|
524
|
-
declare function TableHead(props: React.ComponentProps<'th'>): react_jsx_runtime.JSX.Element;
|
|
525
|
-
declare function TableCell(props: React.ComponentProps<'td'>): react_jsx_runtime.JSX.Element;
|
|
526
|
-
declare function TableCellDescription({ className, ...props }: React.ComponentProps<'p'>): react_jsx_runtime.JSX.Element;
|
|
527
|
-
declare function TableFooter({ children, className, ...props }: React.ComponentProps<'tfoot'>): react_jsx_runtime.JSX.Element;
|
|
528
|
-
declare function TableCaption(props: React.ComponentProps<'caption'>): react_jsx_runtime.JSX.Element;
|
|
529
|
-
|
|
530
|
-
type ModuleBoxProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
531
|
-
title?: React.ReactNode;
|
|
532
|
-
headerActions?: React.ReactNode;
|
|
533
|
-
footerActions?: React.ReactNode;
|
|
534
|
-
slotPlaceholder?: React.ReactNode;
|
|
535
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
536
|
-
headerClassName?: string;
|
|
537
|
-
slotClassName?: string;
|
|
538
|
-
footerClassName?: string;
|
|
539
|
-
};
|
|
540
|
-
declare function ModuleBox({ className, title, headerActions, footerActions, slotPlaceholder, tokens, headerClassName, slotClassName, footerClassName, children, style, ...props }: ModuleBoxProps): react_jsx_runtime.JSX.Element;
|
|
541
|
-
|
|
542
|
-
interface DropdownItemProps {
|
|
543
|
-
iconLeft?: React.ReactNode;
|
|
544
|
-
iconRight?: React.ReactNode;
|
|
545
|
-
selected?: boolean;
|
|
546
|
-
disabled?: boolean;
|
|
547
|
-
destructive?: boolean;
|
|
548
|
-
}
|
|
549
|
-
type ThemedProps = {
|
|
550
|
-
variant?: string;
|
|
551
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
552
|
-
};
|
|
553
|
-
declare function DropdownMenu(props: React.ComponentProps<typeof DropdownMenuPrimitive.Root> & {
|
|
554
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
555
|
-
}): react_jsx_runtime.JSX.Element;
|
|
556
|
-
declare function DropdownMenuTrigger(props: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
557
|
-
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content> & ThemedProps): react_jsx_runtime.JSX.Element | null;
|
|
558
|
-
declare function DropdownMenuItem({ className, iconLeft, iconRight, selected, destructive, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & DropdownItemProps): react_jsx_runtime.JSX.Element;
|
|
559
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
560
|
-
inset?: boolean;
|
|
561
|
-
}): react_jsx_runtime.JSX.Element;
|
|
562
|
-
declare function DropdownMenuSeparator(props: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
563
|
-
|
|
564
|
-
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
565
|
-
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
566
|
-
declare function PopoverContent({ className, align, sideOffset, tokens, style, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content> & {
|
|
567
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
568
|
-
}): react_jsx_runtime.JSX.Element;
|
|
569
|
-
|
|
570
|
-
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
|
|
571
|
-
declare function Tooltip({ tokens, ...props }: React.ComponentProps<typeof TooltipPrimitive.Root> & {
|
|
572
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
573
|
-
}): react_jsx_runtime.JSX.Element;
|
|
574
|
-
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
575
|
-
declare function TooltipContent({ className, sideOffset, tokens, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content> & {
|
|
576
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
577
|
-
}): react_jsx_runtime.JSX.Element;
|
|
578
|
-
|
|
579
495
|
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, tokens, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
580
496
|
tokens?: Partial<ThemeTokensBase>;
|
|
581
497
|
}): react_jsx_runtime.JSX.Element;
|
|
582
498
|
|
|
583
|
-
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
584
|
-
type IconVariant = 'default' | 'primary' | 'muted' | 'danger' | 'success';
|
|
585
|
-
type IconProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
586
|
-
children?: React.ReactNode;
|
|
587
|
-
size?: IconSize;
|
|
588
|
-
color?: IconVariant;
|
|
589
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
590
|
-
asChild?: boolean;
|
|
591
|
-
};
|
|
592
|
-
declare function Icon({ className, size, color, tokens: customTokens, asChild, style, children, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
593
|
-
|
|
594
499
|
type SeparatorProps = React.ComponentProps<typeof SeparatorPrimitive.Root> & {
|
|
595
500
|
tokens?: Partial<ThemeTokensBase>;
|
|
596
501
|
};
|
|
597
502
|
declare function Separator({ className, orientation, decorative, tokens, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
598
503
|
|
|
599
|
-
type BreadcrumbSize = 'small' | 'medium';
|
|
600
|
-
interface BreadcrumbProps extends React.ComponentProps<'nav'> {
|
|
601
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
602
|
-
size?: BreadcrumbSize;
|
|
603
|
-
}
|
|
604
|
-
declare function Breadcrumb({ className, tokens, style, size, children, ...props }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
605
|
-
declare function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>): react_jsx_runtime.JSX.Element;
|
|
606
|
-
declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
607
|
-
declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<'a'> & {
|
|
608
|
-
asChild?: boolean;
|
|
609
|
-
}): react_jsx_runtime.JSX.Element;
|
|
610
|
-
declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
611
|
-
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
612
|
-
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
613
|
-
|
|
614
|
-
type DrawerSlotTokens = {
|
|
615
|
-
overlay?: Partial<ThemeTokensBase>;
|
|
616
|
-
container?: Partial<ThemeTokensBase>;
|
|
617
|
-
close?: Partial<ThemeTokensBase>;
|
|
618
|
-
title?: Partial<ThemeTokensBase>;
|
|
619
|
-
description?: Partial<ThemeTokensBase>;
|
|
620
|
-
};
|
|
621
|
-
type DrawerProps = React.ComponentProps<typeof Drawer$1.Root> & {
|
|
622
|
-
tokens?: Partial<DrawerSlotTokens>;
|
|
623
|
-
};
|
|
624
|
-
declare function Drawer({ tokens, ...props }: DrawerProps): react_jsx_runtime.JSX.Element;
|
|
625
|
-
declare const DrawerTrigger: React.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
626
|
-
declare const DrawerClose: React.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
627
|
-
declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof Drawer$1.Content>): react_jsx_runtime.JSX.Element | null;
|
|
628
|
-
declare const DrawerHeader: ({ className, ...props }: React.ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
629
|
-
declare const DrawerBody: ({ className, ...props }: React.ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
630
|
-
declare const DrawerFooter: ({ className, ...props }: React.ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
631
|
-
declare function DrawerCloseButton({ className, ...props }: React.ComponentProps<typeof Drawer$1.Close>): react_jsx_runtime.JSX.Element;
|
|
632
|
-
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof Drawer$1.Title>): react_jsx_runtime.JSX.Element | null;
|
|
633
|
-
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof Drawer$1.Description>): react_jsx_runtime.JSX.Element | null;
|
|
634
|
-
|
|
635
|
-
type AlertDialogAlignment = 'left' | 'center';
|
|
636
|
-
interface AlertDialogProps extends React.ComponentProps<typeof AlertDialogPrimitive.Root> {
|
|
637
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
638
|
-
alignment?: AlertDialogAlignment;
|
|
639
|
-
size?: 'regular';
|
|
640
|
-
}
|
|
641
|
-
declare function AlertDialog({ tokens, alignment, size, ...props }: AlertDialogProps): react_jsx_runtime.JSX.Element;
|
|
642
|
-
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
643
|
-
declare function AlertDialogContent({ className, alignment, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
|
|
644
|
-
alignment?: AlertDialogAlignment;
|
|
645
|
-
}): react_jsx_runtime.JSX.Element;
|
|
646
|
-
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
647
|
-
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): react_jsx_runtime.JSX.Element;
|
|
648
|
-
declare function AlertDialogTitle(props: React.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime.JSX.Element;
|
|
649
|
-
declare function AlertDialogDescription(props: React.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime.JSX.Element;
|
|
650
|
-
declare function AlertDialogAction({ className, children, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime.JSX.Element;
|
|
651
|
-
declare function AlertDialogCancel({ className, children, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime.JSX.Element;
|
|
652
|
-
|
|
653
|
-
declare function Pagination({ className, tokens: customTokens, style, ...props }: React.ComponentProps<'nav'> & {
|
|
654
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
655
|
-
}): react_jsx_runtime.JSX.Element;
|
|
656
|
-
type PaginationLinkProps = {
|
|
657
|
-
isActive?: boolean;
|
|
658
|
-
disabled?: boolean;
|
|
659
|
-
} & React.ComponentProps<'a'>;
|
|
660
|
-
declare function PaginationLink({ className, isActive, disabled, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
661
|
-
declare function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>): react_jsx_runtime.JSX.Element;
|
|
662
|
-
declare function PaginationItem(props: React.ComponentProps<'li'>): react_jsx_runtime.JSX.Element;
|
|
663
|
-
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
664
|
-
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
665
|
-
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
666
|
-
|
|
667
|
-
declare function Tabs({ className, size, tokens, ...props }: React.ComponentProps<typeof TabsPrimitive.Root> & {
|
|
668
|
-
size: TabsSize;
|
|
669
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
670
|
-
}): react_jsx_runtime.JSX.Element;
|
|
671
|
-
type TabsSize = 'medium' | 'small';
|
|
672
|
-
declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List> & {
|
|
673
|
-
size?: TabsSize;
|
|
674
|
-
}): react_jsx_runtime.JSX.Element;
|
|
675
|
-
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
676
|
-
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
677
|
-
|
|
678
504
|
declare global {
|
|
679
505
|
interface NaveButtonAttributes {
|
|
680
506
|
variant?: 'primary' | 'secondary' | 'tertiary' | 'neutral';
|
|
@@ -837,151 +663,189 @@ declare global {
|
|
|
837
663
|
}
|
|
838
664
|
interface NaveRadioGroupAttributes {
|
|
839
665
|
value?: string;
|
|
840
|
-
|
|
841
|
-
name?: string;
|
|
842
|
-
orientation?: 'horizontal' | 'vertical';
|
|
666
|
+
defaultValue?: string;
|
|
843
667
|
onValueChange?: (v: string) => void;
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
668
|
+
items?: Array<{
|
|
669
|
+
value: string;
|
|
670
|
+
label: string;
|
|
671
|
+
description?: string;
|
|
672
|
+
disabled?: boolean;
|
|
673
|
+
size?: string;
|
|
674
|
+
}>;
|
|
675
|
+
className?: string;
|
|
849
676
|
}
|
|
850
677
|
interface NaveAccordionAttributes {
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
678
|
+
type?: 'single' | 'multiple';
|
|
679
|
+
size?: 'sm' | 'md';
|
|
680
|
+
collapsible?: boolean;
|
|
681
|
+
items?: Array<{
|
|
682
|
+
value: string;
|
|
683
|
+
trigger: string;
|
|
684
|
+
content: string;
|
|
685
|
+
disabled?: boolean;
|
|
686
|
+
}>;
|
|
687
|
+
defaultValue?: string;
|
|
688
|
+
value?: string;
|
|
689
|
+
onValueChange?: (v: string) => void;
|
|
690
|
+
tokens?: any;
|
|
691
|
+
className?: string;
|
|
857
692
|
}
|
|
858
693
|
interface NaveTabsAttributes {
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
694
|
+
defaultValue?: string;
|
|
695
|
+
value?: string;
|
|
696
|
+
onValueChange?: (v: string) => void;
|
|
697
|
+
size?: string;
|
|
698
|
+
tabs?: Array<{
|
|
699
|
+
value: string;
|
|
700
|
+
label: string;
|
|
701
|
+
content: string;
|
|
702
|
+
disabled?: boolean;
|
|
703
|
+
}>;
|
|
704
|
+
tokens?: any;
|
|
705
|
+
className?: string;
|
|
865
706
|
}
|
|
866
707
|
interface NaveTooltipAttributes {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
708
|
+
triggerLabel?: string;
|
|
709
|
+
content?: string;
|
|
710
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
711
|
+
sideOffset?: number;
|
|
712
|
+
delayDuration?: number;
|
|
713
|
+
tokens?: any;
|
|
714
|
+
className?: string;
|
|
873
715
|
}
|
|
874
716
|
interface NavePopoverAttributes {
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
717
|
+
triggerLabel?: string;
|
|
718
|
+
content?: string;
|
|
719
|
+
align?: 'start' | 'center' | 'end';
|
|
720
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
721
|
+
sideOffset?: number;
|
|
722
|
+
open?: boolean;
|
|
723
|
+
defaultOpen?: boolean;
|
|
724
|
+
onOpenChange?: (open: boolean) => void;
|
|
725
|
+
tokens?: any;
|
|
726
|
+
className?: string;
|
|
879
727
|
}
|
|
880
728
|
interface NaveDropdownMenuAttributes {
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
729
|
+
triggerLabel?: string;
|
|
730
|
+
items?: Array<{
|
|
731
|
+
label: string;
|
|
732
|
+
type?: 'item' | 'label' | 'separator';
|
|
733
|
+
disabled?: boolean;
|
|
734
|
+
destructive?: boolean;
|
|
735
|
+
}>;
|
|
736
|
+
align?: 'start' | 'center' | 'end';
|
|
737
|
+
sideOffset?: number;
|
|
738
|
+
open?: boolean;
|
|
739
|
+
onOpenChange?: (open: boolean) => void;
|
|
740
|
+
onItemClick?: (item: any) => void;
|
|
741
|
+
tokens?: any;
|
|
742
|
+
className?: string;
|
|
891
743
|
}
|
|
892
744
|
interface NaveDrawerAttributes {
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
}
|
|
906
|
-
interface NaveDrawerDescriptionAttributes {
|
|
907
|
-
}
|
|
908
|
-
interface NaveDrawerCloseAttributes {
|
|
909
|
-
}
|
|
910
|
-
interface NaveDrawerCloseButtonAttributes {
|
|
745
|
+
triggerLabel?: string;
|
|
746
|
+
triggerVariant?: string;
|
|
747
|
+
triggerSize?: string;
|
|
748
|
+
title?: string;
|
|
749
|
+
description?: string;
|
|
750
|
+
bodyText?: string;
|
|
751
|
+
direction?: 'bottom' | 'right' | 'left';
|
|
752
|
+
closeLabel?: string;
|
|
753
|
+
open?: boolean;
|
|
754
|
+
onOpenChange?: (open: boolean) => void;
|
|
755
|
+
tokens?: any;
|
|
756
|
+
className?: string;
|
|
911
757
|
}
|
|
912
758
|
interface NaveAlertDialogAttributes {
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
interface NaveAlertDialogCancelAttributes {
|
|
759
|
+
triggerLabel?: string;
|
|
760
|
+
triggerVariant?: string;
|
|
761
|
+
triggerSize?: string;
|
|
762
|
+
title?: string;
|
|
763
|
+
description?: string;
|
|
764
|
+
cancelLabel?: string;
|
|
765
|
+
actionLabel?: string;
|
|
766
|
+
onAction?: () => void;
|
|
767
|
+
onCancel?: () => void;
|
|
768
|
+
alignment?: 'left' | 'center';
|
|
769
|
+
size?: string;
|
|
770
|
+
open?: boolean;
|
|
771
|
+
onOpenChange?: (open: boolean) => void;
|
|
772
|
+
tokens?: any;
|
|
773
|
+
className?: string;
|
|
929
774
|
}
|
|
930
775
|
interface NaveBreadcrumbAttributes {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
interface NaveBreadcrumbPageAttributes {
|
|
939
|
-
}
|
|
940
|
-
interface NaveBreadcrumbSeparatorAttributes {
|
|
941
|
-
}
|
|
942
|
-
interface NaveBreadcrumbEllipsisAttributes {
|
|
776
|
+
items?: Array<{
|
|
777
|
+
label: string;
|
|
778
|
+
href?: string;
|
|
779
|
+
}>;
|
|
780
|
+
size?: string;
|
|
781
|
+
tokens?: any;
|
|
782
|
+
className?: string;
|
|
943
783
|
}
|
|
944
784
|
interface NavePaginationAttributes {
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
}
|
|
952
|
-
interface NavePaginationPreviousAttributes {
|
|
953
|
-
}
|
|
954
|
-
interface NavePaginationNextAttributes {
|
|
955
|
-
}
|
|
956
|
-
interface NavePaginationEllipsisAttributes {
|
|
785
|
+
currentPage?: number;
|
|
786
|
+
totalPages?: number;
|
|
787
|
+
siblingCount?: number;
|
|
788
|
+
onPageChange?: (page: number) => void;
|
|
789
|
+
tokens?: any;
|
|
790
|
+
className?: string;
|
|
957
791
|
}
|
|
958
792
|
interface NaveTableAttributes {
|
|
793
|
+
columns?: string[];
|
|
794
|
+
rows?: string[][];
|
|
795
|
+
caption?: string;
|
|
796
|
+
footer?: string[][];
|
|
797
|
+
tokens?: any;
|
|
798
|
+
className?: string;
|
|
959
799
|
}
|
|
960
|
-
interface
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
}
|
|
968
|
-
interface NaveTableHeadAttributes {
|
|
969
|
-
}
|
|
970
|
-
interface NaveTableCellAttributes {
|
|
971
|
-
}
|
|
972
|
-
interface NaveTableCaptionAttributes {
|
|
973
|
-
}
|
|
974
|
-
interface NaveTableCellDescriptionAttributes {
|
|
800
|
+
interface NaveCardAttributes {
|
|
801
|
+
title?: string;
|
|
802
|
+
variant?: string;
|
|
803
|
+
width?: string | number;
|
|
804
|
+
content?: string;
|
|
805
|
+
tokens?: any;
|
|
806
|
+
className?: string;
|
|
975
807
|
}
|
|
976
808
|
interface NaveModuleBoxAttributes {
|
|
809
|
+
title?: string;
|
|
810
|
+
content?: string;
|
|
811
|
+
tokens?: any;
|
|
812
|
+
className?: string;
|
|
813
|
+
headerClassName?: string;
|
|
814
|
+
slotClassName?: string;
|
|
815
|
+
footerClassName?: string;
|
|
977
816
|
}
|
|
978
817
|
interface NaveChartsAttributes {
|
|
818
|
+
type?: 'bar' | 'line' | 'donut' | 'pie';
|
|
819
|
+
data?: any[];
|
|
820
|
+
title?: string;
|
|
821
|
+
subtitle?: string;
|
|
822
|
+
showLegend?: boolean;
|
|
823
|
+
showGrid?: boolean;
|
|
824
|
+
height?: number;
|
|
825
|
+
tokens?: any;
|
|
826
|
+
className?: string;
|
|
979
827
|
}
|
|
980
828
|
interface NaveCalendarAttributes {
|
|
829
|
+
mode?: 'single' | 'multiple' | 'range';
|
|
830
|
+
showOutsideDays?: boolean;
|
|
831
|
+
captionLayout?: string;
|
|
832
|
+
onSelect?: (date: any) => void;
|
|
833
|
+
tokens?: any;
|
|
834
|
+
className?: string;
|
|
981
835
|
}
|
|
982
836
|
interface NaveDragSliderAttributes {
|
|
837
|
+
items?: Array<{
|
|
838
|
+
title: string;
|
|
839
|
+
variant?: string;
|
|
840
|
+
}>;
|
|
841
|
+
tokens?: any;
|
|
842
|
+
className?: string;
|
|
983
843
|
}
|
|
984
844
|
interface NaveIconAttributes {
|
|
845
|
+
size?: string;
|
|
846
|
+
color?: string;
|
|
847
|
+
tokens?: any;
|
|
848
|
+
className?: string;
|
|
985
849
|
}
|
|
986
850
|
interface HTMLElementTagNameMap {
|
|
987
851
|
'nave-button': HTMLElement & NaveButtonAttributes;
|
|
@@ -1015,70 +879,16 @@ declare global {
|
|
|
1015
879
|
'nave-sidebar': HTMLElement & NaveSidebarAttributes;
|
|
1016
880
|
'nave-separator': HTMLElement & NaveSeparatorAttributes;
|
|
1017
881
|
'nave-radio-group': HTMLElement & NaveRadioGroupAttributes;
|
|
1018
|
-
'nave-radio-item': HTMLElement & NaveRadioItemAttributes;
|
|
1019
882
|
'nave-accordion': HTMLElement & NaveAccordionAttributes;
|
|
1020
|
-
'nave-accordion-item': HTMLElement & NaveAccordionItemAttributes;
|
|
1021
|
-
'nave-accordion-trigger': HTMLElement & NaveAccordionTriggerAttributes;
|
|
1022
|
-
'nave-accordion-content': HTMLElement & NaveAccordionContentAttributes;
|
|
1023
883
|
'nave-tabs': HTMLElement & NaveTabsAttributes;
|
|
1024
|
-
'nave-tabs-list': HTMLElement & NaveTabsListAttributes;
|
|
1025
|
-
'nave-tabs-trigger': HTMLElement & NaveTabsTriggerAttributes;
|
|
1026
|
-
'nave-tabs-content': HTMLElement & NaveTabsContentAttributes;
|
|
1027
884
|
'nave-tooltip': HTMLElement & NaveTooltipAttributes;
|
|
1028
|
-
'nave-tooltip-provider': HTMLElement & NaveTooltipProviderAttributes;
|
|
1029
|
-
'nave-tooltip-trigger': HTMLElement & NaveTooltipTriggerAttributes;
|
|
1030
|
-
'nave-tooltip-content': HTMLElement & NaveTooltipContentAttributes;
|
|
1031
885
|
'nave-popover': HTMLElement & NavePopoverAttributes;
|
|
1032
|
-
'nave-popover-trigger': HTMLElement & NavePopoverTriggerAttributes;
|
|
1033
|
-
'nave-popover-content': HTMLElement & NavePopoverContentAttributes;
|
|
1034
886
|
'nave-dropdown-menu': HTMLElement & NaveDropdownMenuAttributes;
|
|
1035
|
-
'nave-dropdown-menu-trigger': HTMLElement & NaveDropdownMenuTriggerAttributes;
|
|
1036
|
-
'nave-dropdown-menu-content': HTMLElement & NaveDropdownMenuContentAttributes;
|
|
1037
|
-
'nave-dropdown-menu-item': HTMLElement & NaveDropdownMenuItemAttributes;
|
|
1038
|
-
'nave-dropdown-menu-label': HTMLElement & NaveDropdownMenuLabelAttributes;
|
|
1039
|
-
'nave-dropdown-menu-separator': HTMLElement & NaveDropdownMenuSeparatorAttributes;
|
|
1040
887
|
'nave-drawer': HTMLElement & NaveDrawerAttributes;
|
|
1041
|
-
'nave-drawer-trigger': HTMLElement & NaveDrawerTriggerAttributes;
|
|
1042
|
-
'nave-drawer-content': HTMLElement & NaveDrawerContentAttributes;
|
|
1043
|
-
'nave-drawer-header': HTMLElement & NaveDrawerHeaderAttributes;
|
|
1044
|
-
'nave-drawer-body': HTMLElement & NaveDrawerBodyAttributes;
|
|
1045
|
-
'nave-drawer-footer': HTMLElement & NaveDrawerFooterAttributes;
|
|
1046
|
-
'nave-drawer-title': HTMLElement & NaveDrawerTitleAttributes;
|
|
1047
|
-
'nave-drawer-description': HTMLElement & NaveDrawerDescriptionAttributes;
|
|
1048
|
-
'nave-drawer-close': HTMLElement & NaveDrawerCloseAttributes;
|
|
1049
|
-
'nave-drawer-close-button': HTMLElement & NaveDrawerCloseButtonAttributes;
|
|
1050
888
|
'nave-alert-dialog': HTMLElement & NaveAlertDialogAttributes;
|
|
1051
|
-
'nave-alert-dialog-trigger': HTMLElement & NaveAlertDialogTriggerAttributes;
|
|
1052
|
-
'nave-alert-dialog-content': HTMLElement & NaveAlertDialogContentAttributes;
|
|
1053
|
-
'nave-alert-dialog-header': HTMLElement & NaveAlertDialogHeaderAttributes;
|
|
1054
|
-
'nave-alert-dialog-footer': HTMLElement & NaveAlertDialogFooterAttributes;
|
|
1055
|
-
'nave-alert-dialog-title': HTMLElement & NaveAlertDialogTitleAttributes;
|
|
1056
|
-
'nave-alert-dialog-description': HTMLElement & NaveAlertDialogDescriptionAttributes;
|
|
1057
|
-
'nave-alert-dialog-action': HTMLElement & NaveAlertDialogActionAttributes;
|
|
1058
|
-
'nave-alert-dialog-cancel': HTMLElement & NaveAlertDialogCancelAttributes;
|
|
1059
889
|
'nave-breadcrumb': HTMLElement & NaveBreadcrumbAttributes;
|
|
1060
|
-
'nave-breadcrumb-list': HTMLElement & NaveBreadcrumbListAttributes;
|
|
1061
|
-
'nave-breadcrumb-item': HTMLElement & NaveBreadcrumbItemAttributes;
|
|
1062
|
-
'nave-breadcrumb-link': HTMLElement & NaveBreadcrumbLinkAttributes;
|
|
1063
|
-
'nave-breadcrumb-page': HTMLElement & NaveBreadcrumbPageAttributes;
|
|
1064
|
-
'nave-breadcrumb-separator': HTMLElement & NaveBreadcrumbSeparatorAttributes;
|
|
1065
|
-
'nave-breadcrumb-ellipsis': HTMLElement & NaveBreadcrumbEllipsisAttributes;
|
|
1066
890
|
'nave-pagination': HTMLElement & NavePaginationAttributes;
|
|
1067
|
-
'nave-pagination-content': HTMLElement & NavePaginationContentAttributes;
|
|
1068
|
-
'nave-pagination-item': HTMLElement & NavePaginationItemAttributes;
|
|
1069
|
-
'nave-pagination-link': HTMLElement & NavePaginationLinkAttributes;
|
|
1070
|
-
'nave-pagination-previous': HTMLElement & NavePaginationPreviousAttributes;
|
|
1071
|
-
'nave-pagination-next': HTMLElement & NavePaginationNextAttributes;
|
|
1072
|
-
'nave-pagination-ellipsis': HTMLElement & NavePaginationEllipsisAttributes;
|
|
1073
891
|
'nave-table': HTMLElement & NaveTableAttributes;
|
|
1074
|
-
'nave-table-header': HTMLElement & NaveTableHeaderAttributes;
|
|
1075
|
-
'nave-table-body': HTMLElement & NaveTableBodyAttributes;
|
|
1076
|
-
'nave-table-footer': HTMLElement & NaveTableFooterAttributes;
|
|
1077
|
-
'nave-table-row': HTMLElement & NaveTableRowAttributes;
|
|
1078
|
-
'nave-table-head': HTMLElement & NaveTableHeadAttributes;
|
|
1079
|
-
'nave-table-cell': HTMLElement & NaveTableCellAttributes;
|
|
1080
|
-
'nave-table-caption': HTMLElement & NaveTableCaptionAttributes;
|
|
1081
|
-
'nave-table-cell-description': HTMLElement & NaveTableCellDescriptionAttributes;
|
|
1082
892
|
'nave-module-box': HTMLElement & NaveModuleBoxAttributes;
|
|
1083
893
|
'nave-charts': HTMLElement & NaveChartsAttributes;
|
|
1084
894
|
'nave-calendar': HTMLElement & NaveCalendarAttributes;
|
|
@@ -1094,4 +904,4 @@ declare global {
|
|
|
1094
904
|
}
|
|
1095
905
|
}
|
|
1096
906
|
|
|
1097
|
-
export {
|
|
907
|
+
export { AccordionWC, Alert, AlertDialogWC, Avatar, AvatarFallback, AvatarImage, Badge, Banner, BreadcrumbWC, Button, Calendar, CardWC, Charts, Checkbox, ColorExample, Combobox, DatePickerInput, DragSliderWC, DrawerWC, DropdownMenuWC, EmptyState, FileUpload, Header, Icon, Input, IntegrationCard, Label, ListItem, Loader, LoaderInit, ModuleBoxWC, NaveThemeProviderElement, PaginationWC, PasswordInput, PopoverWC, Progress, RadioGroupWC, SearchBar, Select, Separator, Sidebar, Switch, TableWC, TabsWC, Textarea, TooltipWC, Tour, getGlobalTheme, setGlobalTheme };
|