nave-ui-library 1.0.0-beta.66 → 1.0.0-beta.68
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 +132 -65
- package/dist/react/index.js +297 -361
- package/dist/styles.css +1 -1
- package/dist/wc/index.d.ts +7 -4
- package/dist/wc/index.js +55 -72
- package/package.json +1 -1
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 { ReactNode,
|
|
3
|
+
import { ReactNode, ComponentProps, 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';
|
|
@@ -91,11 +91,12 @@ type ResolveTokensParams = {
|
|
|
91
91
|
componentName: string;
|
|
92
92
|
variant?: string;
|
|
93
93
|
size?: string;
|
|
94
|
+
shape?: string;
|
|
94
95
|
tone?: string;
|
|
95
96
|
tokens?: Partial<ThemeTokensBase>;
|
|
96
97
|
};
|
|
97
98
|
|
|
98
|
-
declare function resolveTokens<T extends ResolvedTokenMap = ResolvedTokenMap>({ componentName, variant, size, tone, tokens }: ResolveTokensParams, theme: ThemeTokensBase): T;
|
|
99
|
+
declare function resolveTokens<T extends ResolvedTokenMap = ResolvedTokenMap>({ componentName, variant, size, tone, shape, tokens, }: ResolveTokensParams, theme: ThemeTokensBase): T;
|
|
99
100
|
|
|
100
101
|
/**
|
|
101
102
|
* Typed token contracts for every component.
|
|
@@ -1229,14 +1230,68 @@ declare function Alert({ className, style, size, tone, icon, title, description,
|
|
|
1229
1230
|
type BadgeTone = 'neutral' | 'brand' | 'success' | 'info' | 'warning' | 'error';
|
|
1230
1231
|
type BadgeSize = 'small' | 'medium' | 'large';
|
|
1231
1232
|
type BadgeShape = 'rounded' | 'square';
|
|
1232
|
-
|
|
1233
|
-
children: React
|
|
1233
|
+
type BadgeProps = ComponentProps<'span'> & {
|
|
1234
|
+
children: React.ReactNode;
|
|
1234
1235
|
tone?: BadgeTone;
|
|
1236
|
+
icon?: string;
|
|
1235
1237
|
size?: BadgeSize;
|
|
1236
1238
|
shape?: BadgeShape;
|
|
1237
1239
|
asChild?: boolean;
|
|
1238
1240
|
tokens?: Partial<ThemeTokensBase>;
|
|
1239
|
-
}
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
declare const BADGE_TOKEN_MAP: {
|
|
1244
|
+
fontWeight: {
|
|
1245
|
+
tokenPath: string;
|
|
1246
|
+
fallback: number;
|
|
1247
|
+
};
|
|
1248
|
+
fontFamily: {
|
|
1249
|
+
tokenPath: string;
|
|
1250
|
+
fallback: string;
|
|
1251
|
+
};
|
|
1252
|
+
lineHeight: {
|
|
1253
|
+
tokenPath: string;
|
|
1254
|
+
fallback: string;
|
|
1255
|
+
};
|
|
1256
|
+
letterSpacing: {
|
|
1257
|
+
tokenPath: string;
|
|
1258
|
+
fallback: string;
|
|
1259
|
+
};
|
|
1260
|
+
fontSize: {
|
|
1261
|
+
tokenPath: string;
|
|
1262
|
+
fallback: string;
|
|
1263
|
+
};
|
|
1264
|
+
minHeight: {
|
|
1265
|
+
tokenPath: string;
|
|
1266
|
+
fallback: string;
|
|
1267
|
+
};
|
|
1268
|
+
padding: {
|
|
1269
|
+
tokenPath: string;
|
|
1270
|
+
fallback: string;
|
|
1271
|
+
};
|
|
1272
|
+
background: {
|
|
1273
|
+
tokenPath: string;
|
|
1274
|
+
fallback: string;
|
|
1275
|
+
};
|
|
1276
|
+
color: {
|
|
1277
|
+
tokenPath: string;
|
|
1278
|
+
fallback: string;
|
|
1279
|
+
};
|
|
1280
|
+
borderColor: {
|
|
1281
|
+
tokenPath: string;
|
|
1282
|
+
fallback: string;
|
|
1283
|
+
};
|
|
1284
|
+
borderRadius: {
|
|
1285
|
+
tokenPath: string;
|
|
1286
|
+
fallback: string;
|
|
1287
|
+
};
|
|
1288
|
+
'--badge-icon-gap': {
|
|
1289
|
+
tokenPath: string;
|
|
1290
|
+
fallback: string;
|
|
1291
|
+
};
|
|
1292
|
+
};
|
|
1293
|
+
|
|
1294
|
+
declare function Badge({ className, tone, size, shape, asChild, children, icon, tokens, style, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
1240
1295
|
|
|
1241
1296
|
type EmptyStateProps = {
|
|
1242
1297
|
tokens?: Partial<ThemeTokensBase>;
|
|
@@ -1432,8 +1487,9 @@ declare const AccordionContent: ({ className, children, ...props }: ComponentPro
|
|
|
1432
1487
|
|
|
1433
1488
|
declare const AccordionItem: ({ className, ...props }: ComponentProps<typeof AccordionPrimitive.Item>) => react_jsx_runtime.JSX.Element;
|
|
1434
1489
|
|
|
1435
|
-
declare const AccordionTrigger: ({ className, children, ...props }: ComponentProps<typeof AccordionPrimitive.Trigger> & {
|
|
1490
|
+
declare const AccordionTrigger: ({ className, children, label, ...props }: ComponentProps<typeof AccordionPrimitive.Trigger> & {
|
|
1436
1491
|
size?: "sm" | "md";
|
|
1492
|
+
label?: string;
|
|
1437
1493
|
}) => react_jsx_runtime.JSX.Element;
|
|
1438
1494
|
|
|
1439
1495
|
declare const Accordion: typeof Accordion$1 & {
|
|
@@ -1829,68 +1885,19 @@ type SidebarProps = {
|
|
|
1829
1885
|
};
|
|
1830
1886
|
declare function Sidebar({ title, sections, items, collapsed, onToggleCollapse, onItemClick, className, tokens, }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
1831
1887
|
|
|
1832
|
-
|
|
1888
|
+
type TabsSize = 'medium' | 'small';
|
|
1889
|
+
type TabsProps = {
|
|
1833
1890
|
size: TabsSize;
|
|
1834
1891
|
tokens?: Partial<ThemeTokensBase>;
|
|
1835
|
-
}
|
|
1836
|
-
type
|
|
1837
|
-
|
|
1892
|
+
} & ComponentProps<typeof TabsPrimitive.Root>;
|
|
1893
|
+
type TabsContentProps = ComponentProps<typeof TabsPrimitive.Content>;
|
|
1894
|
+
type TabsListProps = {
|
|
1838
1895
|
size?: TabsSize;
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
declare function TabsContent({ className, ...props }: React$1.ComponentProps<typeof TabsPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
1896
|
+
} & ComponentProps<typeof TabsPrimitive.List>;
|
|
1897
|
+
type TabsTriggerProps = ComponentProps<typeof TabsPrimitive.Trigger>;
|
|
1842
1898
|
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
totalSteps: number;
|
|
1846
|
-
title: React$1.ReactNode;
|
|
1847
|
-
description: React$1.ReactNode;
|
|
1848
|
-
onBack: () => void;
|
|
1849
|
-
onNext: () => void;
|
|
1850
|
-
backLabel?: React$1.ReactNode;
|
|
1851
|
-
nextLabel?: React$1.ReactNode;
|
|
1852
|
-
disableBack?: boolean;
|
|
1853
|
-
disableNext?: boolean;
|
|
1854
|
-
showPointer?: boolean;
|
|
1855
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1856
|
-
};
|
|
1857
|
-
declare function Tour({ className, currentStep, totalSteps, title, description, onBack, onNext, backLabel, nextLabel, disableBack, disableNext, showPointer, tokens, style, ...props }: TourProps): react_jsx_runtime.JSX.Element;
|
|
1858
|
-
|
|
1859
|
-
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1860
|
-
type IconVariant = 'default' | 'primary' | 'muted' | 'danger' | 'success';
|
|
1861
|
-
type IconProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
1862
|
-
children?: React$1.ReactNode;
|
|
1863
|
-
size?: IconSize;
|
|
1864
|
-
color?: IconVariant;
|
|
1865
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1866
|
-
asChild?: boolean;
|
|
1867
|
-
};
|
|
1868
|
-
declare function Icon({ className, size, color, tokens: customTokens, asChild, style, children, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
1869
|
-
|
|
1870
|
-
type IconLabelProps = {
|
|
1871
|
-
icon: React$1.ReactNode;
|
|
1872
|
-
label: React$1.ReactNode;
|
|
1873
|
-
iconPosition?: 'left' | 'right';
|
|
1874
|
-
className?: string;
|
|
1875
|
-
};
|
|
1876
|
-
declare function IconLabel({ icon, label, iconPosition, className, }: IconLabelProps): react_jsx_runtime.JSX.Element;
|
|
1877
|
-
|
|
1878
|
-
declare function LoaderInit({ size, className, }: {
|
|
1879
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
1880
|
-
color?: string;
|
|
1881
|
-
className?: string;
|
|
1882
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1883
|
-
|
|
1884
|
-
type SeparatorProps = React$1.ComponentProps<typeof SeparatorPrimitive.Root> & {
|
|
1885
|
-
tokens?: Partial<ThemeTokensBase>;
|
|
1886
|
-
};
|
|
1887
|
-
declare function Separator({ className, orientation, decorative, tokens, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
1888
|
-
|
|
1889
|
-
declare function ThemeProvider({ channelId, theme, children, }: {
|
|
1890
|
-
channelId?: string;
|
|
1891
|
-
theme?: any;
|
|
1892
|
-
children: React.ReactNode;
|
|
1893
|
-
}): react_jsx_runtime.JSX.Element;
|
|
1899
|
+
declare const TABS_STYLE = "tabs-ui";
|
|
1900
|
+
declare const Tabs: ({ className, size, tokens, style, ...props }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
1894
1901
|
|
|
1895
1902
|
declare function cn(...inputs: ClassValue[]): string;
|
|
1896
1903
|
|
|
@@ -2016,4 +2023,64 @@ declare function useTokenStyles<T extends ResolvedTokenMap = ResolvedTokenMap>(c
|
|
|
2016
2023
|
tokens: T;
|
|
2017
2024
|
};
|
|
2018
2025
|
|
|
2019
|
-
|
|
2026
|
+
declare const TABS_TOKEN_MAP: TokenStyleMap;
|
|
2027
|
+
|
|
2028
|
+
declare const TabsContent: ({ className, ...props }: TabsContentProps) => react_jsx_runtime.JSX.Element;
|
|
2029
|
+
|
|
2030
|
+
declare const TabsList: ({ className, ...props }: TabsListProps) => react_jsx_runtime.JSX.Element;
|
|
2031
|
+
|
|
2032
|
+
declare const TabsTrigger: ({ className, ...props }: TabsTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
2033
|
+
|
|
2034
|
+
type TourProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
2035
|
+
currentStep: number;
|
|
2036
|
+
totalSteps: number;
|
|
2037
|
+
title: React$1.ReactNode;
|
|
2038
|
+
description: React$1.ReactNode;
|
|
2039
|
+
onBack: () => void;
|
|
2040
|
+
onNext: () => void;
|
|
2041
|
+
backLabel?: React$1.ReactNode;
|
|
2042
|
+
nextLabel?: React$1.ReactNode;
|
|
2043
|
+
disableBack?: boolean;
|
|
2044
|
+
disableNext?: boolean;
|
|
2045
|
+
showPointer?: boolean;
|
|
2046
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
2047
|
+
};
|
|
2048
|
+
declare function Tour({ className, currentStep, totalSteps, title, description, onBack, onNext, backLabel, nextLabel, disableBack, disableNext, showPointer, tokens, style, ...props }: TourProps): react_jsx_runtime.JSX.Element;
|
|
2049
|
+
|
|
2050
|
+
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2051
|
+
type IconVariant = 'default' | 'primary' | 'muted' | 'danger' | 'success';
|
|
2052
|
+
type IconProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
2053
|
+
children?: React$1.ReactNode;
|
|
2054
|
+
size?: IconSize;
|
|
2055
|
+
color?: IconVariant;
|
|
2056
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
2057
|
+
asChild?: boolean;
|
|
2058
|
+
};
|
|
2059
|
+
declare function Icon({ className, size, color, tokens: customTokens, asChild, style, children, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
2060
|
+
|
|
2061
|
+
type IconLabelProps = {
|
|
2062
|
+
icon: React$1.ReactNode;
|
|
2063
|
+
label: React$1.ReactNode;
|
|
2064
|
+
iconPosition?: 'left' | 'right';
|
|
2065
|
+
className?: string;
|
|
2066
|
+
};
|
|
2067
|
+
declare function IconLabel({ icon, label, iconPosition, className, }: IconLabelProps): react_jsx_runtime.JSX.Element;
|
|
2068
|
+
|
|
2069
|
+
declare function LoaderInit({ size, className, }: {
|
|
2070
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2071
|
+
color?: string;
|
|
2072
|
+
className?: string;
|
|
2073
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2074
|
+
|
|
2075
|
+
type SeparatorProps = React$1.ComponentProps<typeof SeparatorPrimitive.Root> & {
|
|
2076
|
+
tokens?: Partial<ThemeTokensBase>;
|
|
2077
|
+
};
|
|
2078
|
+
declare function Separator({ className, orientation, decorative, tokens, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
|
|
2079
|
+
|
|
2080
|
+
declare function ThemeProvider({ channelId, theme, children, }: {
|
|
2081
|
+
channelId?: string;
|
|
2082
|
+
theme?: any;
|
|
2083
|
+
children: React.ReactNode;
|
|
2084
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2085
|
+
|
|
2086
|
+
export { AIProvider, type AIProviderProps, type AIRequest, type AIRequestFn, type AIResponse, type AITask, Accordion, type AccordionTokens, Alert, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AlertProps, type AlertTokens, Avatar, AvatarFallback, AvatarImage, type AvatarSize, type AvatarTokens, BADGE_TOKEN_MAP, Badge, type BadgeProps, 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 CardTokens, Carousel, type ChartDatum, type ChartType, Charts, type ChartsProps, type ChartsTokens, Checkbox, type CheckboxTokens, type ColorBundle, type ColorBundleWithShadow, ColorExample, Combobox, DatePickerInput, 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, Loader, LoaderInit, type LoaderProps, type LoaderSize, type LoaderTokens, type LoaderVariant, type Merchant, type ModalDialogTokens, ModuleBox, 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, TABS_STYLE, TABS_TOKEN_MAP, Table, TableBody, TableCaption, TableCell, TableCellDescription, TableFooter, TableHead, TableHeader, TableRow, type TableTokens, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, type TabsSize, type TabsTokens, TabsTrigger, type TabsTriggerProps, Textarea, ThemeProvider, type ThemeTokensBase, Tile, type TileProps, type TileSize, type TokenStyleMap, Tooltip, TooltipContent, TooltipProvider, type TooltipTokens, TooltipTrigger, Tour, type TourProps, type TourTokens, type TypographyTokens, bannerVariants, buttonBaseClasses, cn, inputSizeExtras, mapTokenStyles, resolveTokens, tokenAt, useAI, useTheme, useTokenStyles };
|