nave-ui-library 1.0.0-beta.56 → 1.0.0-beta.58
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.d.ts +67 -21
- package/dist/react/index.js +1172 -687
- package/dist/styles.css +1 -1
- package/dist/wc/index.d.ts +118 -74
- package/dist/wc/index.js +74 -59
- package/package.json +63 -63
package/dist/react/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import { CSSProperties } from 'react';
|
|
3
|
+
import { HTMLAttributes, CSSProperties } from 'react';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
6
6
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
@@ -1229,6 +1229,40 @@ type EmptyStateProps = {
|
|
|
1229
1229
|
};
|
|
1230
1230
|
declare function EmptyState({ icon, title, description, actions, align, className, size, tokens, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
1231
1231
|
|
|
1232
|
+
type FeedbackSize = 'small' | 'medium';
|
|
1233
|
+
type FeedbackProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1234
|
+
title?: string;
|
|
1235
|
+
description?: string;
|
|
1236
|
+
img?: string;
|
|
1237
|
+
imgAlt?: string;
|
|
1238
|
+
btnPrimary?: string;
|
|
1239
|
+
btnSecondary?: string;
|
|
1240
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1241
|
+
size: FeedbackSize;
|
|
1242
|
+
onClickPrimary: () => void;
|
|
1243
|
+
onClickSecondary: () => void;
|
|
1244
|
+
};
|
|
1245
|
+
declare const Feedback: ({ size, tokens, title, imgAlt, description, img, btnPrimary, btnSecondary, onClickPrimary, onClickSecondary, ...props }: FeedbackProps) => react_jsx_runtime.JSX.Element;
|
|
1246
|
+
|
|
1247
|
+
type FileUploadState = 'default' | 'drag' | 'error' | 'disabled';
|
|
1248
|
+
type FileUploadProps = {
|
|
1249
|
+
accept?: string[];
|
|
1250
|
+
maxSizeMB?: number;
|
|
1251
|
+
multiple?: boolean;
|
|
1252
|
+
title?: string;
|
|
1253
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1254
|
+
description?: string;
|
|
1255
|
+
buttonLabel?: string;
|
|
1256
|
+
icon?: React$1.ReactNode;
|
|
1257
|
+
state?: FileUploadState;
|
|
1258
|
+
className?: string;
|
|
1259
|
+
isDragging?: boolean;
|
|
1260
|
+
onFilesChange?: (files: File[]) => void;
|
|
1261
|
+
onError?: (errors: string[]) => void;
|
|
1262
|
+
actions?: React$1.ReactNode;
|
|
1263
|
+
};
|
|
1264
|
+
declare function FileUpload({ accept, maxSizeMB, multiple, title, description, buttonLabel, icon, state, className, actions, tokens, onFilesChange, onError, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
1265
|
+
|
|
1232
1266
|
type LoaderSize = 'small' | 'medium' | 'large' | 'extraLarge';
|
|
1233
1267
|
type LoaderVariant = 'default' | 'primary';
|
|
1234
1268
|
type LoaderProps = React$1.ComponentProps<'div'> & {
|
|
@@ -1253,25 +1287,6 @@ type ProgressProps = React$1.ComponentProps<typeof ProgressPrimitive.Root> & {
|
|
|
1253
1287
|
};
|
|
1254
1288
|
declare function Progress({ className, style, value, label, showValue, description, icon, variant, tokens, ...props }: ProgressProps): react_jsx_runtime.JSX.Element;
|
|
1255
1289
|
|
|
1256
|
-
type FileUploadState = 'default' | 'drag' | 'error' | 'disabled';
|
|
1257
|
-
type FileUploadProps = {
|
|
1258
|
-
accept?: string[];
|
|
1259
|
-
maxSizeMB?: number;
|
|
1260
|
-
multiple?: boolean;
|
|
1261
|
-
title?: string;
|
|
1262
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1263
|
-
description?: string;
|
|
1264
|
-
buttonLabel?: string;
|
|
1265
|
-
icon?: React$1.ReactNode;
|
|
1266
|
-
state?: FileUploadState;
|
|
1267
|
-
className?: string;
|
|
1268
|
-
isDragging?: boolean;
|
|
1269
|
-
onFilesChange?: (files: File[]) => void;
|
|
1270
|
-
onError?: (errors: string[]) => void;
|
|
1271
|
-
actions?: React$1.ReactNode;
|
|
1272
|
-
};
|
|
1273
|
-
declare function FileUpload({ accept, maxSizeMB, multiple, title, description, buttonLabel, icon, state, className, actions, tokens, onFilesChange, onError, }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
1274
|
-
|
|
1275
1290
|
type Variant = 'primary' | 'secondary' | 'tertiary';
|
|
1276
1291
|
type Orientation = 'horizontal' | 'vertical';
|
|
1277
1292
|
type ImagePosition = 'left' | 'right' | 'top' | 'bottom';
|
|
@@ -1371,6 +1386,21 @@ declare function AccordionContent({ className, children, ...props }: React$1.Com
|
|
|
1371
1386
|
size?: 'sm' | 'md';
|
|
1372
1387
|
}): react_jsx_runtime.JSX.Element;
|
|
1373
1388
|
|
|
1389
|
+
type ExpansionPanelStatus = 'incomplete' | 'complete' | 'blocked';
|
|
1390
|
+
type ExpansionPanelSize = 'small' | 'medium';
|
|
1391
|
+
type ExpansionPanelProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1392
|
+
title?: string;
|
|
1393
|
+
description?: string;
|
|
1394
|
+
btnLabel?: string;
|
|
1395
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1396
|
+
size: ExpansionPanelSize;
|
|
1397
|
+
status: ExpansionPanelStatus;
|
|
1398
|
+
children?: React.ReactNode;
|
|
1399
|
+
isDisabled?: boolean;
|
|
1400
|
+
onSubmit: () => void;
|
|
1401
|
+
};
|
|
1402
|
+
declare const ExpansionPanel: ({ size, title, description, btnLabel, tokens, status, children, isDisabled, onSubmit, ...props }: ExpansionPanelProps) => react_jsx_runtime.JSX.Element;
|
|
1403
|
+
|
|
1374
1404
|
type ModuleBoxProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
1375
1405
|
title?: React$1.ReactNode;
|
|
1376
1406
|
headerActions?: React$1.ReactNode;
|
|
@@ -1558,6 +1588,19 @@ interface SwitchProps extends React$1.ComponentProps<typeof SwitchPrimitive.Root
|
|
|
1558
1588
|
}
|
|
1559
1589
|
declare const Switch: ({ className, tokens, size, label, description, disabled, style, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
|
|
1560
1590
|
|
|
1591
|
+
type TileSize = 'small' | 'medium';
|
|
1592
|
+
type TileProps = HTMLAttributes<HTMLDivElement> & {
|
|
1593
|
+
title: string;
|
|
1594
|
+
size: TileSize;
|
|
1595
|
+
description?: string;
|
|
1596
|
+
isSelect?: boolean;
|
|
1597
|
+
error?: boolean;
|
|
1598
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
1599
|
+
className?: string;
|
|
1600
|
+
onChange: () => void;
|
|
1601
|
+
};
|
|
1602
|
+
declare const Tile: ({ title, description, tokens, className, isSelect, error, size, onChange, }: TileProps) => react_jsx_runtime.JSX.Element;
|
|
1603
|
+
|
|
1561
1604
|
type BreadcrumbSize = 'small' | 'medium';
|
|
1562
1605
|
interface BreadcrumbProps extends React$1.ComponentProps<'nav'> {
|
|
1563
1606
|
tokens?: Partial<ThemeTokensBase>;
|
|
@@ -1783,6 +1826,9 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
1783
1826
|
declare enum COMPONENT_NAMES {
|
|
1784
1827
|
ACCORDION = "accordion",
|
|
1785
1828
|
BADGE = "badge",
|
|
1829
|
+
FEEDBACK = "feedback",
|
|
1830
|
+
EXPANSION_PANEL = "expansionPanel",
|
|
1831
|
+
TILE = "tile",
|
|
1786
1832
|
BUTTON = "button",
|
|
1787
1833
|
CHECKBOX = "checkbox",
|
|
1788
1834
|
DRAWER = "drawer",
|
|
@@ -1898,4 +1944,4 @@ declare function useTokenStyles<T extends ResolvedTokenMap = ResolvedTokenMap>(c
|
|
|
1898
1944
|
tokens: T;
|
|
1899
1945
|
};
|
|
1900
1946
|
|
|
1901
|
-
export { AIProvider, type AIProviderProps, type AIRequest, type AIRequestFn, type AIResponse, type AITask, Accordion, AccordionContent, AccordionItem, type AccordionTokens, AccordionTrigger, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, type AlertTokens, Avatar, AvatarFallback, AvatarImage, type AvatarSize, type AvatarTokens, Badge, type BadgeShape, type BadgeSize, type BadgeTokens, type BadgeTone, Banner, type BannerProps, type BannerTokens, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type BreadcrumbSize, type BreadcrumbTokens, Button, type ButtonProps, type ButtonTokens, COMPONENT_NAMES, type CSSPropertiesWithVars, Calendar, type CalendarTokens, Card, type CardProps, type CardTokens, type ChartDatum, type ChartType, Charts, type ChartsProps, type ChartsTokens, Checkbox, type CheckboxTokens, type ColorBundle, type ColorBundleWithShadow, ColorExample, Combobox, DatePickerInput, DragSlider, type DragSliderProps, type DragSliderTokens, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerSlotTokens, DrawerTitle, type DrawerTokens, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownTokens, EmptyState, type EmptyStateProps, type EmptyStateTokens, FileUpload, type FileUploadProps, type FileUploadState, type FileUploadTokens, type FontSizeTokens, Header, type HeaderProps, type HeaderSize, type HeaderTokens, INPUT_TOKEN_MAP, Icon, IconLabel, type IconLabelProps, type IconProps, type IconSize, type IconTokens, type IconVariant, Input, type InputSizeDimensions, type InputTokens, IntegrationCard, type IntegrationCardProps, type IntegrationCardTokens, Label, type LabelTokens, type LabeledFontTokens, ListItem, type ListItemProps, type ListItemStatus, Loader, LoaderInit, type LoaderProps, type LoaderSize, type LoaderTokens, type LoaderVariant, type Merchant, type ModalDialogTokens, ModuleBox, type ModuleBoxProps, type ModuleBoxTokens, Navbar, NavbarLogo, NavbarMerchant, type NavbarTokens, type NavbarUser, NavbarUserMenu, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationTokens, PasswordInput, Popover, PopoverAnchor, PopoverContent, type PopoverTokens, PopoverTrigger, Progress, type ProgressTokens, type PromoBannerTokens, RadioGroup, RadioItem, type RadioTokens, type ResolvedTokenMap, SearchBar, Select, type SelectTokens, Separator, type SeparatorTokens, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, type SidebarTokens, Switch, type SwitchTokens, Table, TableBody, TableCaption, TableCell, TableCellDescription, TableFooter, TableHead, TableHeader, TableRow, type TableTokens, Tabs, TabsContent, TabsList, type TabsSize, type TabsTokens, TabsTrigger, Textarea, ThemeProvider, type ThemeTokensBase, type TokenStyleMap, Tooltip, TooltipContent, TooltipProvider, type TooltipTokens, TooltipTrigger, Tour, type TourProps, type TourTokens, type TypographyTokens, accordionContentVariants, accordionTriggerVariants, bannerVariants, buttonBaseClasses, cn, inputSizeExtras, mapTokenStyles, resolveTokens, tokenAt, useAI, useTheme, useTokenStyles };
|
|
1947
|
+
export { AIProvider, type AIProviderProps, type AIRequest, type AIRequestFn, type AIResponse, type AITask, Accordion, AccordionContent, AccordionItem, type AccordionTokens, AccordionTrigger, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, type AlertTokens, Avatar, AvatarFallback, AvatarImage, type AvatarSize, type AvatarTokens, Badge, type BadgeShape, type BadgeSize, type BadgeTokens, type BadgeTone, Banner, type BannerProps, type BannerTokens, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type BreadcrumbSize, type BreadcrumbTokens, Button, type ButtonProps, type ButtonTokens, COMPONENT_NAMES, type CSSPropertiesWithVars, Calendar, type CalendarTokens, Card, type CardProps, type CardTokens, type ChartDatum, type ChartType, Charts, type ChartsProps, type ChartsTokens, Checkbox, type CheckboxTokens, type ColorBundle, type ColorBundleWithShadow, ColorExample, Combobox, DatePickerInput, DragSlider, type DragSliderProps, type DragSliderTokens, Drawer, DrawerBody, DrawerClose, DrawerCloseButton, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, type DrawerSlotTokens, DrawerTitle, type DrawerTokens, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownTokens, EmptyState, type EmptyStateProps, type EmptyStateTokens, ExpansionPanel, type ExpansionPanelProps, type ExpansionPanelSize, type ExpansionPanelStatus, Feedback, type FeedbackProps, type FeedbackSize, FileUpload, type FileUploadProps, type FileUploadState, type FileUploadTokens, type FontSizeTokens, Header, type HeaderProps, type HeaderSize, type HeaderTokens, INPUT_TOKEN_MAP, Icon, IconLabel, type IconLabelProps, type IconProps, type IconSize, type IconTokens, type IconVariant, Input, type InputSizeDimensions, type InputTokens, IntegrationCard, type IntegrationCardProps, type IntegrationCardTokens, Label, type LabelTokens, type LabeledFontTokens, ListItem, type ListItemProps, type ListItemStatus, Loader, LoaderInit, type LoaderProps, type LoaderSize, type LoaderTokens, type LoaderVariant, type Merchant, type ModalDialogTokens, ModuleBox, type ModuleBoxProps, type ModuleBoxTokens, Navbar, NavbarLogo, NavbarMerchant, type NavbarTokens, type NavbarUser, NavbarUserMenu, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationTokens, PasswordInput, Popover, PopoverAnchor, PopoverContent, type PopoverTokens, PopoverTrigger, Progress, type ProgressTokens, type PromoBannerTokens, RadioGroup, RadioItem, type RadioTokens, type ResolvedTokenMap, SearchBar, Select, type SelectTokens, Separator, type SeparatorTokens, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, type SidebarTokens, Switch, type SwitchTokens, Table, TableBody, TableCaption, TableCell, TableCellDescription, TableFooter, TableHead, TableHeader, TableRow, type TableTokens, Tabs, TabsContent, TabsList, type TabsSize, type TabsTokens, TabsTrigger, Textarea, ThemeProvider, type ThemeTokensBase, Tile, type TileProps, type TileSize, type TokenStyleMap, Tooltip, TooltipContent, TooltipProvider, type TooltipTokens, TooltipTrigger, Tour, type TourProps, type TourTokens, type TypographyTokens, accordionContentVariants, accordionTriggerVariants, bannerVariants, buttonBaseClasses, cn, inputSizeExtras, mapTokenStyles, resolveTokens, tokenAt, useAI, useTheme, useTokenStyles };
|