@ikatec/nebula-react 1.11.0 → 1.12.0
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/ikatec-nebula-react-1.12.0.tgz +0 -0
- package/dist/index.d.mts +33 -23
- package/dist/index.d.ts +33 -23
- package/dist/index.js +87 -8872
- package/dist/index.mjs +87 -8633
- package/package.json +5 -3
- package/dist/ikatec-nebula-react-1.11.0.tgz +0 -0
|
Binary file
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import * as React$1 from 'react';
|
|
|
3
3
|
import React__default, { PropsWithChildren, HTMLAttributes, ComponentProps, DragEvent, ChangeEvent, InputHTMLAttributes, ReactNode, MutableRefObject } from 'react';
|
|
4
4
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
5
|
import * as DrawerPrimitive from '@radix-ui/react-dialog';
|
|
6
|
-
import * as
|
|
6
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
7
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
8
8
|
import { VariantProps } from 'class-variance-authority';
|
|
9
9
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
@@ -23,8 +23,7 @@ import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
|
23
23
|
import { Toggle as Toggle$1, ToggleGroup as ToggleGroup$1 } from 'radix-ui';
|
|
24
24
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
}
|
|
26
|
+
type AccordionProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
28
27
|
declare function Accordion({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root> & {
|
|
29
28
|
collapsible?: boolean;
|
|
30
29
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -71,7 +70,7 @@ type ButtonSizeType = keyof typeof buttonSizeEnum;
|
|
|
71
70
|
declare const buttonVariantsConfig: (props?: ({
|
|
72
71
|
variant?: "primary" | "secondary" | "ghost" | "danger" | null | undefined;
|
|
73
72
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
74
|
-
} &
|
|
73
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
75
74
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
76
75
|
asChild?: boolean;
|
|
77
76
|
variant?: ButtonVariantType;
|
|
@@ -98,7 +97,7 @@ declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.Re
|
|
|
98
97
|
|
|
99
98
|
declare const separatorVariantsConfig: (props?: ({
|
|
100
99
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
101
|
-
} &
|
|
100
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
102
101
|
declare const separatorVariants: {
|
|
103
102
|
orientation: ("horizontal" | "vertical")[];
|
|
104
103
|
};
|
|
@@ -127,7 +126,7 @@ declare const ActionBarContent: React$1.ForwardRefExoticComponent<Omit<DrawerPri
|
|
|
127
126
|
|
|
128
127
|
declare const alertVariantsConfig: (props?: ({
|
|
129
128
|
variant?: "default" | "danger" | "info" | "success" | "warning" | null | undefined;
|
|
130
|
-
} &
|
|
129
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
131
130
|
declare const alertVariants: {
|
|
132
131
|
variant: ("default" | "danger" | "info" | "success" | "warning")[];
|
|
133
132
|
};
|
|
@@ -234,7 +233,7 @@ declare enum BannerType {
|
|
|
234
233
|
declare const bannerAlertVariants: (props?: ({
|
|
235
234
|
variant?: "outline" | "filled" | null | undefined;
|
|
236
235
|
type?: "info" | "success" | "warning" | "error" | null | undefined;
|
|
237
|
-
} &
|
|
236
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
238
237
|
interface BannerAlertProps extends VariantProps<typeof bannerAlertVariants> {
|
|
239
238
|
variant: keyof typeof BannerVariant;
|
|
240
239
|
type: keyof typeof BannerType;
|
|
@@ -286,8 +285,7 @@ type MessageFunction = (...args: never[]) => string;
|
|
|
286
285
|
/**
|
|
287
286
|
* Type to store the messages.
|
|
288
287
|
*/
|
|
289
|
-
|
|
290
|
-
}
|
|
288
|
+
type MessagesRecord = Record<MessageKey, Message | MessageFunction>;
|
|
291
289
|
/**
|
|
292
290
|
* Type to store the pagination messages.
|
|
293
291
|
*/
|
|
@@ -432,7 +430,7 @@ declare const DrawerPortal: React$1.FC<DrawerPrimitive.DialogPortalProps>;
|
|
|
432
430
|
declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<DrawerPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
433
431
|
declare const DrawerVariants: (props?: ({
|
|
434
432
|
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
435
|
-
} &
|
|
433
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
436
434
|
interface DrawerContentProps extends React$1.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>, VariantProps<typeof DrawerVariants> {
|
|
437
435
|
portal?: boolean;
|
|
438
436
|
}
|
|
@@ -758,8 +756,7 @@ interface KanbanBoardProps<TCard extends KanbanBoardCard = KanbanBoardCard, TCol
|
|
|
758
756
|
|
|
759
757
|
declare function KanbanBoard<TCard extends KanbanBoardCard = KanbanBoardCard, TColumnMeta extends Record<string, unknown> = Record<string, unknown>>({ columns, renderCard, renderColumnHeader, renderColumnFooter, renderEmptyState, renderColumnBody, getCardId: getCardIdProp, onCardDrop, onColumnDrop, className, columnClassName, collisionDetection, modifiers, sensors: sensorsProp, measuring, }: KanbanBoardProps<TCard, TColumnMeta>): react_jsx_runtime.JSX.Element;
|
|
760
758
|
|
|
761
|
-
|
|
762
|
-
}
|
|
759
|
+
type KanbanColumnProps = HTMLAttributes<HTMLDivElement>;
|
|
763
760
|
declare const KanbanColumn: React$1.ForwardRefExoticComponent<KanbanColumnProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
764
761
|
declare const KanbanColumnHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
765
762
|
declare const KanbanColumnTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -828,8 +825,7 @@ declare const ProfileImage: {
|
|
|
828
825
|
declare function RadioGroup({ className, ...props }: React$1.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
829
826
|
declare function RadioGroupItem({ className, ...props }: React$1.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
830
827
|
|
|
831
|
-
|
|
832
|
-
}
|
|
828
|
+
type SkeletonProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
833
829
|
declare const Skeleton: React__default.ForwardRefExoticComponent<SkeletonProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
834
830
|
|
|
835
831
|
declare function Slider({ className, defaultValue, value, min, max, ...props }: React$1.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
@@ -852,7 +848,7 @@ type SpaceSizeType = keyof typeof SpaceSizeEnum;
|
|
|
852
848
|
declare const spaceVariantsConfig: (props?: ({
|
|
853
849
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
854
850
|
direction?: "row" | "column" | null | undefined;
|
|
855
|
-
} &
|
|
851
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
856
852
|
interface SpaceProps extends React__default.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spaceVariantsConfig> {
|
|
857
853
|
size?: SpaceSizeType;
|
|
858
854
|
direction?: SpaceDirectionType;
|
|
@@ -898,10 +894,6 @@ declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.Sw
|
|
|
898
894
|
interface TableProps extends React$1.HTMLAttributes<HTMLTableElement> {
|
|
899
895
|
noCardWrapper?: boolean;
|
|
900
896
|
}
|
|
901
|
-
/**
|
|
902
|
-
* Table component that can be used with or without a card wrapper.
|
|
903
|
-
* If `noCardWrapper` is true, it renders a simple table without the card styling.
|
|
904
|
-
*/
|
|
905
897
|
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & TableProps & React$1.RefAttributes<HTMLTableElement>>;
|
|
906
898
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
907
899
|
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -912,10 +904,29 @@ declare const variants: {
|
|
|
912
904
|
second: string;
|
|
913
905
|
};
|
|
914
906
|
};
|
|
907
|
+
interface TableRowDetailsProps {
|
|
908
|
+
children: React$1.ReactNode;
|
|
909
|
+
className?: string;
|
|
910
|
+
}
|
|
911
|
+
declare const TableRowDetails: {
|
|
912
|
+
({ children, className }: TableRowDetailsProps): react_jsx_runtime.JSX.Element;
|
|
913
|
+
displayName: string;
|
|
914
|
+
};
|
|
915
915
|
interface TableRowProps extends React$1.HTMLAttributes<HTMLTableRowElement> {
|
|
916
916
|
variant?: keyof typeof variants.variant;
|
|
917
|
+
open?: boolean;
|
|
918
|
+
defaultOpen?: boolean;
|
|
919
|
+
onOpenChange?: (open: boolean) => void;
|
|
917
920
|
}
|
|
918
921
|
declare const TableRow: React$1.ForwardRefExoticComponent<TableRowProps & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
922
|
+
interface TableRowDetailsTriggerProps {
|
|
923
|
+
children: React$1.ReactNode;
|
|
924
|
+
asChild?: boolean;
|
|
925
|
+
}
|
|
926
|
+
declare const TableRowDetailsTrigger: {
|
|
927
|
+
({ children, asChild, }: TableRowDetailsTriggerProps): react_jsx_runtime.JSX.Element;
|
|
928
|
+
displayName: string;
|
|
929
|
+
};
|
|
919
930
|
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
920
931
|
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
921
932
|
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
@@ -1055,7 +1066,7 @@ declare const toast: {
|
|
|
1055
1066
|
declare const toggleVariants: (props?: ({
|
|
1056
1067
|
icon?: boolean | null | undefined;
|
|
1057
1068
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
1058
|
-
} &
|
|
1069
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1059
1070
|
declare enum ToggleSizeEnum {
|
|
1060
1071
|
xs = "xs",
|
|
1061
1072
|
sm = "sm",
|
|
@@ -1086,8 +1097,7 @@ interface ParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
|
1086
1097
|
size?: 'md' | 'sm';
|
|
1087
1098
|
}
|
|
1088
1099
|
declare const Paragraph: React__default.ForwardRefExoticComponent<ParagraphProps & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
1089
|
-
|
|
1090
|
-
}
|
|
1100
|
+
type CaptionProps = HTMLAttributes<HTMLTableCaptionElement>;
|
|
1091
1101
|
declare const Caption: React__default.ForwardRefExoticComponent<CaptionProps & React__default.RefAttributes<HTMLTableCaptionElement>>;
|
|
1092
1102
|
interface LinkProps extends React__default.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1093
1103
|
size?: 'md' | 'sm';
|
|
@@ -1237,4 +1247,4 @@ declare function useKeyPress(key: string, callback: VoidFunction): void;
|
|
|
1237
1247
|
|
|
1238
1248
|
declare const useIsMobile: (breakpoint?: number) => boolean;
|
|
1239
1249
|
|
|
1240
|
-
export { Accordion, AccordionContent, AccordionDescription, AccordionItem, type AccordionProps, AccordionTitle, AccordionTrigger, ActionBar, ActionBarButton, ActionBarClose, ActionBarContent, ActionBarDivider, ActionBarPortal, ActionBarTrigger, Alert, AlertButton, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, StyledAsync as Async, StyledAsyncCreatable as AsyncCreatable, Avatar, AvatarFallback, AvatarHoverAction, AvatarImage, AvatarSizeEnum, AvatarStick, AvatarVariantEnum, Badge, type BadgeProps, BannerAlert, type BannerAlertProps, BannerType, BannerVariant, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, type CalendarProps, Caption, type CaptionProps, Checkbox, type CheckboxProps, Combobox, type Option as ComboboxOption, type ComboboxProps, StyledCreatable as Creatable, Cropper, CropperCropArea, CropperDescription, CropperImage, type CropperProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type FileMetadata, FileUpload, type FileUploadActions, FileUploadError, type FileUploadOptions, type FileUploadProps, type FileUploadState, type FileWithPreview, Heading, type HeadingProps, type InputBaseProps, InputDatePickerSingle, type InputDatePickerSingleProps, InputDateRangePicker, type InputDateRangePickerProps, InputDateTimePickerSingle, type InputDateTimePickerSingleProps, InputPhone, InputText, type InputTextProps, InputTime, type InputTimeProps, KanbanBoard, type KanbanBoardCard, type KanbanBoardColumn, type KanbanBoardProps, KanbanCard, type KanbanCardDropEvent, KanbanColumn, KanbanColumnDragHandle, type KanbanColumnDropEvent, KanbanColumnFooter, KanbanColumnHeader, KanbanColumnTitle, type KanbanOrderingMode, type KanbanRenderCardContext, type KanbanRenderColumnBodyContext, type KanbanRenderColumnContext, Label, Link, type LinkProps, NebulaI18nProvider, type NebulaI18nProviderProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Popover, PopoverContent, type PopoverContentProps, PopoverTrigger, ProfileImage, type ProfileImageProps, RadioGroup, RadioGroupItem, StyledSelect as Select, type CreateStyledSelectProps as SelectProps, Separator, type SeparatorProps, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarMenuItem, type SidebarProps, SidebarSeparator, SidebarStateEnum, SidebarTitle, SidebarTrigger, Skeleton, type SkeletonProps, Slider, Space, SpaceDirectionEnum, type SpaceProps, SpaceSizeEnum, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, type TagVariantsType, TextArea, type TextAreaProps, TipCard, TipCardContent, TipCardFooter, TipCardHeader, TipCardItem, TipCardMedia, TipCardMediaType, TipCardProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupTypeEnum, ToggleSizeEnum, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, dateIsAvailable, formatBytes, getNebulaLanguage, localeByi18nKey, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, toggleVariants, useClickOutside, useFileUpload, useIsMobile, useKeyPress, useNebulaI18n, useSidebar, useTipCard };
|
|
1250
|
+
export { Accordion, AccordionContent, AccordionDescription, AccordionItem, type AccordionProps, AccordionTitle, AccordionTrigger, ActionBar, ActionBarButton, ActionBarClose, ActionBarContent, ActionBarDivider, ActionBarPortal, ActionBarTrigger, Alert, AlertButton, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, StyledAsync as Async, StyledAsyncCreatable as AsyncCreatable, Avatar, AvatarFallback, AvatarHoverAction, AvatarImage, AvatarSizeEnum, AvatarStick, AvatarVariantEnum, Badge, type BadgeProps, BannerAlert, type BannerAlertProps, BannerType, BannerVariant, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, type CalendarProps, Caption, type CaptionProps, Checkbox, type CheckboxProps, Combobox, type Option as ComboboxOption, type ComboboxProps, StyledCreatable as Creatable, Cropper, CropperCropArea, CropperDescription, CropperImage, type CropperProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type FileMetadata, FileUpload, type FileUploadActions, FileUploadError, type FileUploadOptions, type FileUploadProps, type FileUploadState, type FileWithPreview, Heading, type HeadingProps, type InputBaseProps, InputDatePickerSingle, type InputDatePickerSingleProps, InputDateRangePicker, type InputDateRangePickerProps, InputDateTimePickerSingle, type InputDateTimePickerSingleProps, InputPhone, InputText, type InputTextProps, InputTime, type InputTimeProps, KanbanBoard, type KanbanBoardCard, type KanbanBoardColumn, type KanbanBoardProps, KanbanCard, type KanbanCardDropEvent, KanbanColumn, KanbanColumnDragHandle, type KanbanColumnDropEvent, KanbanColumnFooter, KanbanColumnHeader, KanbanColumnTitle, type KanbanOrderingMode, type KanbanRenderCardContext, type KanbanRenderColumnBodyContext, type KanbanRenderColumnContext, Label, Link, type LinkProps, NebulaI18nProvider, type NebulaI18nProviderProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Popover, PopoverContent, type PopoverContentProps, PopoverTrigger, ProfileImage, type ProfileImageProps, RadioGroup, RadioGroupItem, StyledSelect as Select, type CreateStyledSelectProps as SelectProps, Separator, type SeparatorProps, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarMenuItem, type SidebarProps, SidebarSeparator, SidebarStateEnum, SidebarTitle, SidebarTrigger, Skeleton, type SkeletonProps, Slider, Space, SpaceDirectionEnum, type SpaceProps, SpaceSizeEnum, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableRowDetails, TableRowDetailsTrigger, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, type TagVariantsType, TextArea, type TextAreaProps, TipCard, TipCardContent, TipCardFooter, TipCardHeader, TipCardItem, TipCardMedia, TipCardMediaType, TipCardProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupTypeEnum, ToggleSizeEnum, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, dateIsAvailable, formatBytes, getNebulaLanguage, localeByi18nKey, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, toggleVariants, useClickOutside, useFileUpload, useIsMobile, useKeyPress, useNebulaI18n, useSidebar, useTipCard };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as React$1 from 'react';
|
|
|
3
3
|
import React__default, { PropsWithChildren, HTMLAttributes, ComponentProps, DragEvent, ChangeEvent, InputHTMLAttributes, ReactNode, MutableRefObject } from 'react';
|
|
4
4
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
5
|
import * as DrawerPrimitive from '@radix-ui/react-dialog';
|
|
6
|
-
import * as
|
|
6
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
7
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
8
8
|
import { VariantProps } from 'class-variance-authority';
|
|
9
9
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
@@ -23,8 +23,7 @@ import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
|
23
23
|
import { Toggle as Toggle$1, ToggleGroup as ToggleGroup$1 } from 'radix-ui';
|
|
24
24
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
}
|
|
26
|
+
type AccordionProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
28
27
|
declare function Accordion({ className, children, ...props }: React$1.ComponentProps<typeof AccordionPrimitive.Root> & {
|
|
29
28
|
collapsible?: boolean;
|
|
30
29
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -71,7 +70,7 @@ type ButtonSizeType = keyof typeof buttonSizeEnum;
|
|
|
71
70
|
declare const buttonVariantsConfig: (props?: ({
|
|
72
71
|
variant?: "primary" | "secondary" | "ghost" | "danger" | null | undefined;
|
|
73
72
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
74
|
-
} &
|
|
73
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
75
74
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
76
75
|
asChild?: boolean;
|
|
77
76
|
variant?: ButtonVariantType;
|
|
@@ -98,7 +97,7 @@ declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.Re
|
|
|
98
97
|
|
|
99
98
|
declare const separatorVariantsConfig: (props?: ({
|
|
100
99
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
101
|
-
} &
|
|
100
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
102
101
|
declare const separatorVariants: {
|
|
103
102
|
orientation: ("horizontal" | "vertical")[];
|
|
104
103
|
};
|
|
@@ -127,7 +126,7 @@ declare const ActionBarContent: React$1.ForwardRefExoticComponent<Omit<DrawerPri
|
|
|
127
126
|
|
|
128
127
|
declare const alertVariantsConfig: (props?: ({
|
|
129
128
|
variant?: "default" | "danger" | "info" | "success" | "warning" | null | undefined;
|
|
130
|
-
} &
|
|
129
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
131
130
|
declare const alertVariants: {
|
|
132
131
|
variant: ("default" | "danger" | "info" | "success" | "warning")[];
|
|
133
132
|
};
|
|
@@ -234,7 +233,7 @@ declare enum BannerType {
|
|
|
234
233
|
declare const bannerAlertVariants: (props?: ({
|
|
235
234
|
variant?: "outline" | "filled" | null | undefined;
|
|
236
235
|
type?: "info" | "success" | "warning" | "error" | null | undefined;
|
|
237
|
-
} &
|
|
236
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
238
237
|
interface BannerAlertProps extends VariantProps<typeof bannerAlertVariants> {
|
|
239
238
|
variant: keyof typeof BannerVariant;
|
|
240
239
|
type: keyof typeof BannerType;
|
|
@@ -286,8 +285,7 @@ type MessageFunction = (...args: never[]) => string;
|
|
|
286
285
|
/**
|
|
287
286
|
* Type to store the messages.
|
|
288
287
|
*/
|
|
289
|
-
|
|
290
|
-
}
|
|
288
|
+
type MessagesRecord = Record<MessageKey, Message | MessageFunction>;
|
|
291
289
|
/**
|
|
292
290
|
* Type to store the pagination messages.
|
|
293
291
|
*/
|
|
@@ -432,7 +430,7 @@ declare const DrawerPortal: React$1.FC<DrawerPrimitive.DialogPortalProps>;
|
|
|
432
430
|
declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<DrawerPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
433
431
|
declare const DrawerVariants: (props?: ({
|
|
434
432
|
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
435
|
-
} &
|
|
433
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
436
434
|
interface DrawerContentProps extends React$1.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content>, VariantProps<typeof DrawerVariants> {
|
|
437
435
|
portal?: boolean;
|
|
438
436
|
}
|
|
@@ -758,8 +756,7 @@ interface KanbanBoardProps<TCard extends KanbanBoardCard = KanbanBoardCard, TCol
|
|
|
758
756
|
|
|
759
757
|
declare function KanbanBoard<TCard extends KanbanBoardCard = KanbanBoardCard, TColumnMeta extends Record<string, unknown> = Record<string, unknown>>({ columns, renderCard, renderColumnHeader, renderColumnFooter, renderEmptyState, renderColumnBody, getCardId: getCardIdProp, onCardDrop, onColumnDrop, className, columnClassName, collisionDetection, modifiers, sensors: sensorsProp, measuring, }: KanbanBoardProps<TCard, TColumnMeta>): react_jsx_runtime.JSX.Element;
|
|
760
758
|
|
|
761
|
-
|
|
762
|
-
}
|
|
759
|
+
type KanbanColumnProps = HTMLAttributes<HTMLDivElement>;
|
|
763
760
|
declare const KanbanColumn: React$1.ForwardRefExoticComponent<KanbanColumnProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
764
761
|
declare const KanbanColumnHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
765
762
|
declare const KanbanColumnTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -828,8 +825,7 @@ declare const ProfileImage: {
|
|
|
828
825
|
declare function RadioGroup({ className, ...props }: React$1.ComponentProps<typeof RadioGroupPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
829
826
|
declare function RadioGroupItem({ className, ...props }: React$1.ComponentProps<typeof RadioGroupPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
830
827
|
|
|
831
|
-
|
|
832
|
-
}
|
|
828
|
+
type SkeletonProps = React__default.HTMLAttributes<HTMLDivElement>;
|
|
833
829
|
declare const Skeleton: React__default.ForwardRefExoticComponent<SkeletonProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
834
830
|
|
|
835
831
|
declare function Slider({ className, defaultValue, value, min, max, ...props }: React$1.ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
@@ -852,7 +848,7 @@ type SpaceSizeType = keyof typeof SpaceSizeEnum;
|
|
|
852
848
|
declare const spaceVariantsConfig: (props?: ({
|
|
853
849
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
854
850
|
direction?: "row" | "column" | null | undefined;
|
|
855
|
-
} &
|
|
851
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
856
852
|
interface SpaceProps extends React__default.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spaceVariantsConfig> {
|
|
857
853
|
size?: SpaceSizeType;
|
|
858
854
|
direction?: SpaceDirectionType;
|
|
@@ -898,10 +894,6 @@ declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.Sw
|
|
|
898
894
|
interface TableProps extends React$1.HTMLAttributes<HTMLTableElement> {
|
|
899
895
|
noCardWrapper?: boolean;
|
|
900
896
|
}
|
|
901
|
-
/**
|
|
902
|
-
* Table component that can be used with or without a card wrapper.
|
|
903
|
-
* If `noCardWrapper` is true, it renders a simple table without the card styling.
|
|
904
|
-
*/
|
|
905
897
|
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & TableProps & React$1.RefAttributes<HTMLTableElement>>;
|
|
906
898
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
907
899
|
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -912,10 +904,29 @@ declare const variants: {
|
|
|
912
904
|
second: string;
|
|
913
905
|
};
|
|
914
906
|
};
|
|
907
|
+
interface TableRowDetailsProps {
|
|
908
|
+
children: React$1.ReactNode;
|
|
909
|
+
className?: string;
|
|
910
|
+
}
|
|
911
|
+
declare const TableRowDetails: {
|
|
912
|
+
({ children, className }: TableRowDetailsProps): react_jsx_runtime.JSX.Element;
|
|
913
|
+
displayName: string;
|
|
914
|
+
};
|
|
915
915
|
interface TableRowProps extends React$1.HTMLAttributes<HTMLTableRowElement> {
|
|
916
916
|
variant?: keyof typeof variants.variant;
|
|
917
|
+
open?: boolean;
|
|
918
|
+
defaultOpen?: boolean;
|
|
919
|
+
onOpenChange?: (open: boolean) => void;
|
|
917
920
|
}
|
|
918
921
|
declare const TableRow: React$1.ForwardRefExoticComponent<TableRowProps & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
922
|
+
interface TableRowDetailsTriggerProps {
|
|
923
|
+
children: React$1.ReactNode;
|
|
924
|
+
asChild?: boolean;
|
|
925
|
+
}
|
|
926
|
+
declare const TableRowDetailsTrigger: {
|
|
927
|
+
({ children, asChild, }: TableRowDetailsTriggerProps): react_jsx_runtime.JSX.Element;
|
|
928
|
+
displayName: string;
|
|
929
|
+
};
|
|
919
930
|
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
920
931
|
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
921
932
|
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
@@ -1055,7 +1066,7 @@ declare const toast: {
|
|
|
1055
1066
|
declare const toggleVariants: (props?: ({
|
|
1056
1067
|
icon?: boolean | null | undefined;
|
|
1057
1068
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
1058
|
-
} &
|
|
1069
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1059
1070
|
declare enum ToggleSizeEnum {
|
|
1060
1071
|
xs = "xs",
|
|
1061
1072
|
sm = "sm",
|
|
@@ -1086,8 +1097,7 @@ interface ParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
|
1086
1097
|
size?: 'md' | 'sm';
|
|
1087
1098
|
}
|
|
1088
1099
|
declare const Paragraph: React__default.ForwardRefExoticComponent<ParagraphProps & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
1089
|
-
|
|
1090
|
-
}
|
|
1100
|
+
type CaptionProps = HTMLAttributes<HTMLTableCaptionElement>;
|
|
1091
1101
|
declare const Caption: React__default.ForwardRefExoticComponent<CaptionProps & React__default.RefAttributes<HTMLTableCaptionElement>>;
|
|
1092
1102
|
interface LinkProps extends React__default.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
1093
1103
|
size?: 'md' | 'sm';
|
|
@@ -1237,4 +1247,4 @@ declare function useKeyPress(key: string, callback: VoidFunction): void;
|
|
|
1237
1247
|
|
|
1238
1248
|
declare const useIsMobile: (breakpoint?: number) => boolean;
|
|
1239
1249
|
|
|
1240
|
-
export { Accordion, AccordionContent, AccordionDescription, AccordionItem, type AccordionProps, AccordionTitle, AccordionTrigger, ActionBar, ActionBarButton, ActionBarClose, ActionBarContent, ActionBarDivider, ActionBarPortal, ActionBarTrigger, Alert, AlertButton, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, StyledAsync as Async, StyledAsyncCreatable as AsyncCreatable, Avatar, AvatarFallback, AvatarHoverAction, AvatarImage, AvatarSizeEnum, AvatarStick, AvatarVariantEnum, Badge, type BadgeProps, BannerAlert, type BannerAlertProps, BannerType, BannerVariant, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, type CalendarProps, Caption, type CaptionProps, Checkbox, type CheckboxProps, Combobox, type Option as ComboboxOption, type ComboboxProps, StyledCreatable as Creatable, Cropper, CropperCropArea, CropperDescription, CropperImage, type CropperProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type FileMetadata, FileUpload, type FileUploadActions, FileUploadError, type FileUploadOptions, type FileUploadProps, type FileUploadState, type FileWithPreview, Heading, type HeadingProps, type InputBaseProps, InputDatePickerSingle, type InputDatePickerSingleProps, InputDateRangePicker, type InputDateRangePickerProps, InputDateTimePickerSingle, type InputDateTimePickerSingleProps, InputPhone, InputText, type InputTextProps, InputTime, type InputTimeProps, KanbanBoard, type KanbanBoardCard, type KanbanBoardColumn, type KanbanBoardProps, KanbanCard, type KanbanCardDropEvent, KanbanColumn, KanbanColumnDragHandle, type KanbanColumnDropEvent, KanbanColumnFooter, KanbanColumnHeader, KanbanColumnTitle, type KanbanOrderingMode, type KanbanRenderCardContext, type KanbanRenderColumnBodyContext, type KanbanRenderColumnContext, Label, Link, type LinkProps, NebulaI18nProvider, type NebulaI18nProviderProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Popover, PopoverContent, type PopoverContentProps, PopoverTrigger, ProfileImage, type ProfileImageProps, RadioGroup, RadioGroupItem, StyledSelect as Select, type CreateStyledSelectProps as SelectProps, Separator, type SeparatorProps, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarMenuItem, type SidebarProps, SidebarSeparator, SidebarStateEnum, SidebarTitle, SidebarTrigger, Skeleton, type SkeletonProps, Slider, Space, SpaceDirectionEnum, type SpaceProps, SpaceSizeEnum, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, type TagVariantsType, TextArea, type TextAreaProps, TipCard, TipCardContent, TipCardFooter, TipCardHeader, TipCardItem, TipCardMedia, TipCardMediaType, TipCardProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupTypeEnum, ToggleSizeEnum, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, dateIsAvailable, formatBytes, getNebulaLanguage, localeByi18nKey, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, toggleVariants, useClickOutside, useFileUpload, useIsMobile, useKeyPress, useNebulaI18n, useSidebar, useTipCard };
|
|
1250
|
+
export { Accordion, AccordionContent, AccordionDescription, AccordionItem, type AccordionProps, AccordionTitle, AccordionTrigger, ActionBar, ActionBarButton, ActionBarClose, ActionBarContent, ActionBarDivider, ActionBarPortal, ActionBarTrigger, Alert, AlertButton, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, StyledAsync as Async, StyledAsyncCreatable as AsyncCreatable, Avatar, AvatarFallback, AvatarHoverAction, AvatarImage, AvatarSizeEnum, AvatarStick, AvatarVariantEnum, Badge, type BadgeProps, BannerAlert, type BannerAlertProps, BannerType, BannerVariant, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, type CalendarProps, Caption, type CaptionProps, Checkbox, type CheckboxProps, Combobox, type Option as ComboboxOption, type ComboboxProps, StyledCreatable as Creatable, Cropper, CropperCropArea, CropperDescription, CropperImage, type CropperProps, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type FileMetadata, FileUpload, type FileUploadActions, FileUploadError, type FileUploadOptions, type FileUploadProps, type FileUploadState, type FileWithPreview, Heading, type HeadingProps, type InputBaseProps, InputDatePickerSingle, type InputDatePickerSingleProps, InputDateRangePicker, type InputDateRangePickerProps, InputDateTimePickerSingle, type InputDateTimePickerSingleProps, InputPhone, InputText, type InputTextProps, InputTime, type InputTimeProps, KanbanBoard, type KanbanBoardCard, type KanbanBoardColumn, type KanbanBoardProps, KanbanCard, type KanbanCardDropEvent, KanbanColumn, KanbanColumnDragHandle, type KanbanColumnDropEvent, KanbanColumnFooter, KanbanColumnHeader, KanbanColumnTitle, type KanbanOrderingMode, type KanbanRenderCardContext, type KanbanRenderColumnBodyContext, type KanbanRenderColumnContext, Label, Link, type LinkProps, NebulaI18nProvider, type NebulaI18nProviderProps, Pagination, type PaginationProps, Paragraph, type ParagraphProps, Popover, PopoverContent, type PopoverContentProps, PopoverTrigger, ProfileImage, type ProfileImageProps, RadioGroup, RadioGroupItem, StyledSelect as Select, type CreateStyledSelectProps as SelectProps, Separator, type SeparatorProps, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarMenuItem, type SidebarProps, SidebarSeparator, SidebarStateEnum, SidebarTitle, SidebarTrigger, Skeleton, type SkeletonProps, Slider, Space, SpaceDirectionEnum, type SpaceProps, SpaceSizeEnum, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, TableRowDetails, TableRowDetailsTrigger, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, type TagVariantsType, TextArea, type TextAreaProps, TipCard, TipCardContent, TipCardFooter, TipCardHeader, TipCardItem, TipCardMedia, TipCardMediaType, TipCardProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupTypeEnum, ToggleSizeEnum, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, dateIsAvailable, formatBytes, getNebulaLanguage, localeByi18nKey, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, toggleVariants, useClickOutside, useFileUpload, useIsMobile, useKeyPress, useNebulaI18n, useSidebar, useTipCard };
|