@ikatec/nebula-react 1.5.0-beta.1 → 1.5.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.5.0.tgz +0 -0
- package/dist/index.d.mts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +180 -3
- package/dist/index.mjs +173 -4
- package/package.json +3 -2
- package/dist/ikatec-nebula-react-1.5.0-beta.1.tgz +0 -0
|
Binary file
|
package/dist/index.d.mts
CHANGED
|
@@ -20,6 +20,7 @@ import { DayPicker, Locale } from 'react-day-picker';
|
|
|
20
20
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
21
21
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
22
22
|
import { UniqueIdentifier, DragEndEvent, CollisionDetection, Modifiers, SensorDescriptor, DndContext } from '@dnd-kit/core';
|
|
23
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
23
24
|
|
|
24
25
|
declare enum buttonVariantEnum {
|
|
25
26
|
primary = "\n bg-button-primary-background-default\n hover:bg-button-primary-background-hover\n active:bg-button-primary-background-active\n focus:bg-button-primary-background-focus\n focus:ring-button-primary-border-focus\n text-button-primary-text\n ",
|
|
@@ -1009,6 +1010,39 @@ declare const TipCardMedia: {
|
|
|
1009
1010
|
displayName: string;
|
|
1010
1011
|
};
|
|
1011
1012
|
|
|
1013
|
+
declare enum AvatarVariantEnum {
|
|
1014
|
+
primary = "primary",
|
|
1015
|
+
success = "success",
|
|
1016
|
+
warning = "warning",
|
|
1017
|
+
danger = "danger",
|
|
1018
|
+
neutral = "neutral",
|
|
1019
|
+
random = "random"
|
|
1020
|
+
}
|
|
1021
|
+
declare enum AvatarSizeEnum {
|
|
1022
|
+
'xs' = "xs",// 32px
|
|
1023
|
+
'sm' = "sm",// 40px
|
|
1024
|
+
'md' = "md",// 44px
|
|
1025
|
+
'lg' = "lg",// 48px
|
|
1026
|
+
'xl' = "xl",// 56px
|
|
1027
|
+
'2xl' = "2xl",// 64px
|
|
1028
|
+
'3xl' = "3xl",// 72px
|
|
1029
|
+
'4xl' = "4xl",// 80px
|
|
1030
|
+
'5xl' = "5xl"
|
|
1031
|
+
}
|
|
1032
|
+
type AvatarSizeType = keyof typeof AvatarSizeEnum;
|
|
1033
|
+
type AvatarVariantType = keyof typeof AvatarVariantEnum;
|
|
1034
|
+
declare function Avatar({ className, size, variant, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Root> & {
|
|
1035
|
+
size?: AvatarSizeType;
|
|
1036
|
+
variant?: AvatarVariantType;
|
|
1037
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1038
|
+
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
|
|
1039
|
+
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
1040
|
+
declare function AvatarStick({ className, x, y, ...props }: React$1.ComponentProps<'span'> & {
|
|
1041
|
+
x: 'left' | 'right';
|
|
1042
|
+
y: 'top' | 'bottom';
|
|
1043
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1044
|
+
declare function AvatarHoverAction({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
1045
|
+
|
|
1012
1046
|
interface Content {
|
|
1013
1047
|
/**
|
|
1014
1048
|
* Path to `node_modules` where `flowbite-react` is installed
|
|
@@ -1079,4 +1113,4 @@ declare function useClickOutside<T extends HTMLElement>(refs: PossibleRefs<T>, o
|
|
|
1079
1113
|
|
|
1080
1114
|
declare function useKeyPress(key: string, callback: VoidFunction): void;
|
|
1081
1115
|
|
|
1082
|
-
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, 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, 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, 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 KanbanRenderColumnContext, type KanbanVirtualizationOptions, 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, 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, TextArea, type TextAreaProps, TipCard, TipCardContent, TipCardFooter, TipCardHeader, TipCardItem, TipCardMedia, TipCardMediaType, TipCardProvider, Toaster, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, dateIsAvailable, formatBytes, getNebulaLanguage, localeByi18nKey, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useClickOutside, useFileUpload, useKeyPress, useNebulaI18n, useTipCard };
|
|
1116
|
+
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, 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, 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 KanbanRenderColumnContext, type KanbanVirtualizationOptions, 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, 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, TextArea, type TextAreaProps, TipCard, TipCardContent, TipCardFooter, TipCardHeader, TipCardItem, TipCardMedia, TipCardMediaType, TipCardProvider, Toaster, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, dateIsAvailable, formatBytes, getNebulaLanguage, localeByi18nKey, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useClickOutside, useFileUpload, useKeyPress, useNebulaI18n, useTipCard };
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import { DayPicker, Locale } from 'react-day-picker';
|
|
|
20
20
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
21
21
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
22
22
|
import { UniqueIdentifier, DragEndEvent, CollisionDetection, Modifiers, SensorDescriptor, DndContext } from '@dnd-kit/core';
|
|
23
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
23
24
|
|
|
24
25
|
declare enum buttonVariantEnum {
|
|
25
26
|
primary = "\n bg-button-primary-background-default\n hover:bg-button-primary-background-hover\n active:bg-button-primary-background-active\n focus:bg-button-primary-background-focus\n focus:ring-button-primary-border-focus\n text-button-primary-text\n ",
|
|
@@ -1009,6 +1010,39 @@ declare const TipCardMedia: {
|
|
|
1009
1010
|
displayName: string;
|
|
1010
1011
|
};
|
|
1011
1012
|
|
|
1013
|
+
declare enum AvatarVariantEnum {
|
|
1014
|
+
primary = "primary",
|
|
1015
|
+
success = "success",
|
|
1016
|
+
warning = "warning",
|
|
1017
|
+
danger = "danger",
|
|
1018
|
+
neutral = "neutral",
|
|
1019
|
+
random = "random"
|
|
1020
|
+
}
|
|
1021
|
+
declare enum AvatarSizeEnum {
|
|
1022
|
+
'xs' = "xs",// 32px
|
|
1023
|
+
'sm' = "sm",// 40px
|
|
1024
|
+
'md' = "md",// 44px
|
|
1025
|
+
'lg' = "lg",// 48px
|
|
1026
|
+
'xl' = "xl",// 56px
|
|
1027
|
+
'2xl' = "2xl",// 64px
|
|
1028
|
+
'3xl' = "3xl",// 72px
|
|
1029
|
+
'4xl' = "4xl",// 80px
|
|
1030
|
+
'5xl' = "5xl"
|
|
1031
|
+
}
|
|
1032
|
+
type AvatarSizeType = keyof typeof AvatarSizeEnum;
|
|
1033
|
+
type AvatarVariantType = keyof typeof AvatarVariantEnum;
|
|
1034
|
+
declare function Avatar({ className, size, variant, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Root> & {
|
|
1035
|
+
size?: AvatarSizeType;
|
|
1036
|
+
variant?: AvatarVariantType;
|
|
1037
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1038
|
+
declare function AvatarImage({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
|
|
1039
|
+
declare function AvatarFallback({ className, ...props }: React$1.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
|
|
1040
|
+
declare function AvatarStick({ className, x, y, ...props }: React$1.ComponentProps<'span'> & {
|
|
1041
|
+
x: 'left' | 'right';
|
|
1042
|
+
y: 'top' | 'bottom';
|
|
1043
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1044
|
+
declare function AvatarHoverAction({ className, ...props }: React$1.ComponentProps<'span'>): react_jsx_runtime.JSX.Element;
|
|
1045
|
+
|
|
1012
1046
|
interface Content {
|
|
1013
1047
|
/**
|
|
1014
1048
|
* Path to `node_modules` where `flowbite-react` is installed
|
|
@@ -1079,4 +1113,4 @@ declare function useClickOutside<T extends HTMLElement>(refs: PossibleRefs<T>, o
|
|
|
1079
1113
|
|
|
1080
1114
|
declare function useKeyPress(key: string, callback: VoidFunction): void;
|
|
1081
1115
|
|
|
1082
|
-
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, 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, 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, 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 KanbanRenderColumnContext, type KanbanVirtualizationOptions, 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, 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, TextArea, type TextAreaProps, TipCard, TipCardContent, TipCardFooter, TipCardHeader, TipCardItem, TipCardMedia, TipCardMediaType, TipCardProvider, Toaster, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, dateIsAvailable, formatBytes, getNebulaLanguage, localeByi18nKey, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useClickOutside, useFileUpload, useKeyPress, useNebulaI18n, useTipCard };
|
|
1116
|
+
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, 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, 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 KanbanRenderColumnContext, type KanbanVirtualizationOptions, 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, 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, TextArea, type TextAreaProps, TipCard, TipCardContent, TipCardFooter, TipCardHeader, TipCardItem, TipCardMedia, TipCardMediaType, TipCardProvider, Toaster, Tooltip, type TooltipProps, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, dateIsAvailable, formatBytes, getNebulaLanguage, localeByi18nKey, messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useClickOutside, useFileUpload, useKeyPress, useNebulaI18n, useTipCard };
|
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ var core = require('@dnd-kit/core');
|
|
|
34
34
|
var sortable = require('@dnd-kit/sortable');
|
|
35
35
|
var utilities = require('@dnd-kit/utilities');
|
|
36
36
|
var reactVirtual = require('@tanstack/react-virtual');
|
|
37
|
+
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
37
38
|
|
|
38
39
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
39
40
|
|
|
@@ -75,6 +76,7 @@ var RPNInput__namespace = /*#__PURE__*/_interopNamespace(RPNInput);
|
|
|
75
76
|
var flags__default = /*#__PURE__*/_interopDefault(flags);
|
|
76
77
|
var SliderPrimitive__namespace = /*#__PURE__*/_interopNamespace(SliderPrimitive);
|
|
77
78
|
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
|
79
|
+
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
78
80
|
|
|
79
81
|
// src/button.tsx
|
|
80
82
|
|
|
@@ -296,11 +298,11 @@ var Badge = React31__namespace.forwardRef(
|
|
|
296
298
|
Badge.displayName = "Badge";
|
|
297
299
|
|
|
298
300
|
// src/utils/extract-variant.ts
|
|
299
|
-
function extractVariants(
|
|
300
|
-
return Object.keys(
|
|
301
|
+
function extractVariants(variants5) {
|
|
302
|
+
return Object.keys(variants5).reduce(
|
|
301
303
|
(acc, key) => {
|
|
302
304
|
const variantKey = key;
|
|
303
|
-
const variantValues =
|
|
305
|
+
const variantValues = variants5[variantKey];
|
|
304
306
|
if (variantValues) {
|
|
305
307
|
acc[variantKey] = Object.keys(variantValues);
|
|
306
308
|
}
|
|
@@ -8324,6 +8326,174 @@ var TipCardMedia = ({
|
|
|
8324
8326
|
] });
|
|
8325
8327
|
};
|
|
8326
8328
|
TipCardMedia.displayName = "TipCardMedia";
|
|
8329
|
+
var avatarVariantsConfig = classVarianceAuthority.cva("relative flex size-8 shrink-0 rounded-full", {
|
|
8330
|
+
variants: {
|
|
8331
|
+
size: {
|
|
8332
|
+
xs: 'size-[32px] [&>[data-slot="avatar-hover-action"]]:text-sm [&>[data-slot="avatar-fallback"]]:text-sm',
|
|
8333
|
+
// 32px
|
|
8334
|
+
sm: 'size-[40px] [&>[data-slot="avatar-hover-action"]]:text-xl [&>[data-slot="avatar-fallback"]]:text-sm',
|
|
8335
|
+
// 40px
|
|
8336
|
+
md: 'size-[44px] [&>[data-slot="avatar-hover-action"]]:text-xl [&>[data-slot="avatar-fallback"]]:text-sm',
|
|
8337
|
+
// 44px
|
|
8338
|
+
lg: 'size-[48px] [&>[data-slot="avatar-hover-action"]]:text-xl [&>[data-slot="avatar-fallback"]]:text-base',
|
|
8339
|
+
// 48px
|
|
8340
|
+
xl: 'size-[56px] [&>[data-slot="avatar-hover-action"]]:text-xl [&>[data-slot="avatar-fallback"]]:text-xl',
|
|
8341
|
+
// 56px
|
|
8342
|
+
"2xl": 'size-[64px] [&>[data-slot="avatar-hover-action"]]:text-xl [&>[data-slot="avatar-fallback"]]:text-xl',
|
|
8343
|
+
// 64px
|
|
8344
|
+
"3xl": 'size-[72px] [&>[data-slot="avatar-hover-action"]]:text-xl [&>[data-slot="avatar-fallback"]]:text-2xl',
|
|
8345
|
+
// 72px
|
|
8346
|
+
"4xl": 'size-[80px] [&>[data-slot="avatar-hover-action"]]:text-3xl [&>[data-slot="avatar-fallback"]]:text-2xl',
|
|
8347
|
+
// 80px
|
|
8348
|
+
"5xl": 'size-[88px] [&>[data-slot="avatar-hover-action"]]:text-3xl [&>[data-slot="avatar-fallback"]]:text-3xl'
|
|
8349
|
+
// 88px
|
|
8350
|
+
},
|
|
8351
|
+
variant: {
|
|
8352
|
+
primary: 'bg-primary-200 dark:bg-primary-800 [&>[data-slot="avatar-fallback"]]:text-primary-700 dark:[&>[data-slot="avatar-fallback"]]:text-primary-100',
|
|
8353
|
+
success: 'bg-success-200 dark:bg-success-800 [&>[data-slot="avatar-fallback"]]:text-success-700 dark:[&>[data-slot="avatar-fallback"]]:text-success-100',
|
|
8354
|
+
warning: 'bg-warning-200 dark:bg-warning-800 [&>[data-slot="avatar-fallback"]]:text-warning-700 dark:[&>[data-slot="avatar-fallback"]]:text-warning-100',
|
|
8355
|
+
danger: 'bg-danger-200 dark:bg-danger-800 [&>[data-slot="avatar-fallback"]]:text-danger-700 dark:[&>[data-slot="avatar-fallback"]]:text-danger-100',
|
|
8356
|
+
neutral: 'bg-neutral-200 dark:bg-neutral-800 [&>[data-slot="avatar-fallback"]]:text-neutral-700 dark:[&>[data-slot="avatar-fallback"]]:text-neutral-100',
|
|
8357
|
+
random: 'bg-primary-200 dark:bg-primary-800 [&>[data-slot="avatar-fallback"]]:text-primary-700 dark:[&>[data-slot="avatar-fallback"]]:text-primary-100'
|
|
8358
|
+
}
|
|
8359
|
+
},
|
|
8360
|
+
defaultVariants: {
|
|
8361
|
+
size: "sm",
|
|
8362
|
+
variant: "primary"
|
|
8363
|
+
}
|
|
8364
|
+
});
|
|
8365
|
+
var AvatarVariantEnum = /* @__PURE__ */ ((AvatarVariantEnum2) => {
|
|
8366
|
+
AvatarVariantEnum2["primary"] = "primary";
|
|
8367
|
+
AvatarVariantEnum2["success"] = "success";
|
|
8368
|
+
AvatarVariantEnum2["warning"] = "warning";
|
|
8369
|
+
AvatarVariantEnum2["danger"] = "danger";
|
|
8370
|
+
AvatarVariantEnum2["neutral"] = "neutral";
|
|
8371
|
+
AvatarVariantEnum2["random"] = "random";
|
|
8372
|
+
return AvatarVariantEnum2;
|
|
8373
|
+
})(AvatarVariantEnum || {});
|
|
8374
|
+
var AvatarSizeEnum = /* @__PURE__ */ ((AvatarSizeEnum2) => {
|
|
8375
|
+
AvatarSizeEnum2["xs"] = "xs";
|
|
8376
|
+
AvatarSizeEnum2["sm"] = "sm";
|
|
8377
|
+
AvatarSizeEnum2["md"] = "md";
|
|
8378
|
+
AvatarSizeEnum2["lg"] = "lg";
|
|
8379
|
+
AvatarSizeEnum2["xl"] = "xl";
|
|
8380
|
+
AvatarSizeEnum2["2xl"] = "2xl";
|
|
8381
|
+
AvatarSizeEnum2["3xl"] = "3xl";
|
|
8382
|
+
AvatarSizeEnum2["4xl"] = "4xl";
|
|
8383
|
+
AvatarSizeEnum2["5xl"] = "5xl";
|
|
8384
|
+
return AvatarSizeEnum2;
|
|
8385
|
+
})(AvatarSizeEnum || {});
|
|
8386
|
+
var variants4 = [
|
|
8387
|
+
"primary" /* primary */,
|
|
8388
|
+
"success" /* success */,
|
|
8389
|
+
"warning" /* warning */,
|
|
8390
|
+
"danger" /* danger */,
|
|
8391
|
+
"neutral" /* neutral */
|
|
8392
|
+
];
|
|
8393
|
+
function Avatar({
|
|
8394
|
+
className,
|
|
8395
|
+
size: size4 = "sm",
|
|
8396
|
+
variant: variant3 = "primary",
|
|
8397
|
+
...props
|
|
8398
|
+
}) {
|
|
8399
|
+
const randomVariant = React31__namespace.useMemo(
|
|
8400
|
+
() => variants4[Math.floor(Math.random() * variants4.length)],
|
|
8401
|
+
[]
|
|
8402
|
+
);
|
|
8403
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8404
|
+
AvatarPrimitive__namespace.Root,
|
|
8405
|
+
{
|
|
8406
|
+
"data-slot": "avatar",
|
|
8407
|
+
className: cn(
|
|
8408
|
+
avatarVariantsConfig({
|
|
8409
|
+
size: size4,
|
|
8410
|
+
variant: variant3 === "random" /* random */ ? randomVariant : variant3
|
|
8411
|
+
}),
|
|
8412
|
+
className
|
|
8413
|
+
),
|
|
8414
|
+
...props
|
|
8415
|
+
}
|
|
8416
|
+
);
|
|
8417
|
+
}
|
|
8418
|
+
function AvatarImage({
|
|
8419
|
+
className,
|
|
8420
|
+
...props
|
|
8421
|
+
}) {
|
|
8422
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8423
|
+
AvatarPrimitive__namespace.Image,
|
|
8424
|
+
{
|
|
8425
|
+
"data-slot": "avatar-image",
|
|
8426
|
+
className: cn("aspect-square size-full rounded-full", className),
|
|
8427
|
+
...props
|
|
8428
|
+
}
|
|
8429
|
+
);
|
|
8430
|
+
}
|
|
8431
|
+
function AvatarFallback({
|
|
8432
|
+
className,
|
|
8433
|
+
...props
|
|
8434
|
+
}) {
|
|
8435
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8436
|
+
AvatarPrimitive__namespace.Fallback,
|
|
8437
|
+
{
|
|
8438
|
+
"data-slot": "avatar-fallback",
|
|
8439
|
+
className: cn(
|
|
8440
|
+
"bg-muted flex size-full items-center justify-center rounded-full",
|
|
8441
|
+
className
|
|
8442
|
+
),
|
|
8443
|
+
...props
|
|
8444
|
+
}
|
|
8445
|
+
);
|
|
8446
|
+
}
|
|
8447
|
+
var AvatarStickVariantsConfig = classVarianceAuthority.cva(
|
|
8448
|
+
"absolute bg-transparent max-h-1/2 max-w-1/2 overflow-hidden",
|
|
8449
|
+
{
|
|
8450
|
+
variants: {
|
|
8451
|
+
x: {
|
|
8452
|
+
left: "left-0",
|
|
8453
|
+
right: "right-0"
|
|
8454
|
+
},
|
|
8455
|
+
y: {
|
|
8456
|
+
top: "top-0",
|
|
8457
|
+
bottom: "bottom-0"
|
|
8458
|
+
}
|
|
8459
|
+
},
|
|
8460
|
+
defaultVariants: {
|
|
8461
|
+
x: "right",
|
|
8462
|
+
y: "bottom"
|
|
8463
|
+
}
|
|
8464
|
+
}
|
|
8465
|
+
);
|
|
8466
|
+
function AvatarStick({
|
|
8467
|
+
className,
|
|
8468
|
+
x,
|
|
8469
|
+
y,
|
|
8470
|
+
...props
|
|
8471
|
+
}) {
|
|
8472
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8473
|
+
"span",
|
|
8474
|
+
{
|
|
8475
|
+
"data-slot": "avatar-sticker",
|
|
8476
|
+
className: cn(AvatarStickVariantsConfig({ x, y }), className),
|
|
8477
|
+
...props
|
|
8478
|
+
}
|
|
8479
|
+
);
|
|
8480
|
+
}
|
|
8481
|
+
function AvatarHoverAction({
|
|
8482
|
+
className,
|
|
8483
|
+
...props
|
|
8484
|
+
}) {
|
|
8485
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8486
|
+
"span",
|
|
8487
|
+
{
|
|
8488
|
+
"data-slot": "avatar-hover-action",
|
|
8489
|
+
className: cn(
|
|
8490
|
+
"flex items-center justify-center index-100 absolute size-full cursor-pointer rounded-full ring-1 ring-neutral-100 dark:ring-neutral-800 bg-neutral-100 dark:bg-neutral-800 transition-all duration-300 opacity-0 hover:opacity-100",
|
|
8491
|
+
className
|
|
8492
|
+
),
|
|
8493
|
+
...props
|
|
8494
|
+
}
|
|
8495
|
+
);
|
|
8496
|
+
}
|
|
8327
8497
|
|
|
8328
8498
|
// src/tailwind.ts
|
|
8329
8499
|
function content({ base = "./" } = {}) {
|
|
@@ -8363,6 +8533,13 @@ exports.AlertDialogTrigger = AlertDialogTrigger;
|
|
|
8363
8533
|
exports.AlertTitle = AlertTitle;
|
|
8364
8534
|
exports.Async = StyledAsync;
|
|
8365
8535
|
exports.AsyncCreatable = StyledAsyncCreatable;
|
|
8536
|
+
exports.Avatar = Avatar;
|
|
8537
|
+
exports.AvatarFallback = AvatarFallback;
|
|
8538
|
+
exports.AvatarHoverAction = AvatarHoverAction;
|
|
8539
|
+
exports.AvatarImage = AvatarImage;
|
|
8540
|
+
exports.AvatarSizeEnum = AvatarSizeEnum;
|
|
8541
|
+
exports.AvatarStick = AvatarStick;
|
|
8542
|
+
exports.AvatarVariantEnum = AvatarVariantEnum;
|
|
8366
8543
|
exports.Badge = Badge;
|
|
8367
8544
|
exports.BannerAlert = BannerAlert;
|
|
8368
8545
|
exports.BannerType = BannerType;
|
package/dist/index.mjs
CHANGED
|
@@ -33,6 +33,7 @@ import { defaultDropAnimationSideEffects, MeasuringStrategy, useDndContext, useD
|
|
|
33
33
|
import { SortableContext, verticalListSortingStrategy, useSortable, defaultAnimateLayoutChanges, sortableKeyboardCoordinates, arrayMove, horizontalListSortingStrategy } from '@dnd-kit/sortable';
|
|
34
34
|
import { CSS } from '@dnd-kit/utilities';
|
|
35
35
|
import { useVirtualizer } from '@tanstack/react-virtual';
|
|
36
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
36
37
|
|
|
37
38
|
// src/button.tsx
|
|
38
39
|
|
|
@@ -254,11 +255,11 @@ var Badge = React31.forwardRef(
|
|
|
254
255
|
Badge.displayName = "Badge";
|
|
255
256
|
|
|
256
257
|
// src/utils/extract-variant.ts
|
|
257
|
-
function extractVariants(
|
|
258
|
-
return Object.keys(
|
|
258
|
+
function extractVariants(variants5) {
|
|
259
|
+
return Object.keys(variants5).reduce(
|
|
259
260
|
(acc, key) => {
|
|
260
261
|
const variantKey = key;
|
|
261
|
-
const variantValues =
|
|
262
|
+
const variantValues = variants5[variantKey];
|
|
262
263
|
if (variantValues) {
|
|
263
264
|
acc[variantKey] = Object.keys(variantValues);
|
|
264
265
|
}
|
|
@@ -8282,6 +8283,174 @@ var TipCardMedia = ({
|
|
|
8282
8283
|
] });
|
|
8283
8284
|
};
|
|
8284
8285
|
TipCardMedia.displayName = "TipCardMedia";
|
|
8286
|
+
var avatarVariantsConfig = cva("relative flex size-8 shrink-0 rounded-full", {
|
|
8287
|
+
variants: {
|
|
8288
|
+
size: {
|
|
8289
|
+
xs: 'size-[32px] [&>[data-slot="avatar-hover-action"]]:text-sm [&>[data-slot="avatar-fallback"]]:text-sm',
|
|
8290
|
+
// 32px
|
|
8291
|
+
sm: 'size-[40px] [&>[data-slot="avatar-hover-action"]]:text-xl [&>[data-slot="avatar-fallback"]]:text-sm',
|
|
8292
|
+
// 40px
|
|
8293
|
+
md: 'size-[44px] [&>[data-slot="avatar-hover-action"]]:text-xl [&>[data-slot="avatar-fallback"]]:text-sm',
|
|
8294
|
+
// 44px
|
|
8295
|
+
lg: 'size-[48px] [&>[data-slot="avatar-hover-action"]]:text-xl [&>[data-slot="avatar-fallback"]]:text-base',
|
|
8296
|
+
// 48px
|
|
8297
|
+
xl: 'size-[56px] [&>[data-slot="avatar-hover-action"]]:text-xl [&>[data-slot="avatar-fallback"]]:text-xl',
|
|
8298
|
+
// 56px
|
|
8299
|
+
"2xl": 'size-[64px] [&>[data-slot="avatar-hover-action"]]:text-xl [&>[data-slot="avatar-fallback"]]:text-xl',
|
|
8300
|
+
// 64px
|
|
8301
|
+
"3xl": 'size-[72px] [&>[data-slot="avatar-hover-action"]]:text-xl [&>[data-slot="avatar-fallback"]]:text-2xl',
|
|
8302
|
+
// 72px
|
|
8303
|
+
"4xl": 'size-[80px] [&>[data-slot="avatar-hover-action"]]:text-3xl [&>[data-slot="avatar-fallback"]]:text-2xl',
|
|
8304
|
+
// 80px
|
|
8305
|
+
"5xl": 'size-[88px] [&>[data-slot="avatar-hover-action"]]:text-3xl [&>[data-slot="avatar-fallback"]]:text-3xl'
|
|
8306
|
+
// 88px
|
|
8307
|
+
},
|
|
8308
|
+
variant: {
|
|
8309
|
+
primary: 'bg-primary-200 dark:bg-primary-800 [&>[data-slot="avatar-fallback"]]:text-primary-700 dark:[&>[data-slot="avatar-fallback"]]:text-primary-100',
|
|
8310
|
+
success: 'bg-success-200 dark:bg-success-800 [&>[data-slot="avatar-fallback"]]:text-success-700 dark:[&>[data-slot="avatar-fallback"]]:text-success-100',
|
|
8311
|
+
warning: 'bg-warning-200 dark:bg-warning-800 [&>[data-slot="avatar-fallback"]]:text-warning-700 dark:[&>[data-slot="avatar-fallback"]]:text-warning-100',
|
|
8312
|
+
danger: 'bg-danger-200 dark:bg-danger-800 [&>[data-slot="avatar-fallback"]]:text-danger-700 dark:[&>[data-slot="avatar-fallback"]]:text-danger-100',
|
|
8313
|
+
neutral: 'bg-neutral-200 dark:bg-neutral-800 [&>[data-slot="avatar-fallback"]]:text-neutral-700 dark:[&>[data-slot="avatar-fallback"]]:text-neutral-100',
|
|
8314
|
+
random: 'bg-primary-200 dark:bg-primary-800 [&>[data-slot="avatar-fallback"]]:text-primary-700 dark:[&>[data-slot="avatar-fallback"]]:text-primary-100'
|
|
8315
|
+
}
|
|
8316
|
+
},
|
|
8317
|
+
defaultVariants: {
|
|
8318
|
+
size: "sm",
|
|
8319
|
+
variant: "primary"
|
|
8320
|
+
}
|
|
8321
|
+
});
|
|
8322
|
+
var AvatarVariantEnum = /* @__PURE__ */ ((AvatarVariantEnum2) => {
|
|
8323
|
+
AvatarVariantEnum2["primary"] = "primary";
|
|
8324
|
+
AvatarVariantEnum2["success"] = "success";
|
|
8325
|
+
AvatarVariantEnum2["warning"] = "warning";
|
|
8326
|
+
AvatarVariantEnum2["danger"] = "danger";
|
|
8327
|
+
AvatarVariantEnum2["neutral"] = "neutral";
|
|
8328
|
+
AvatarVariantEnum2["random"] = "random";
|
|
8329
|
+
return AvatarVariantEnum2;
|
|
8330
|
+
})(AvatarVariantEnum || {});
|
|
8331
|
+
var AvatarSizeEnum = /* @__PURE__ */ ((AvatarSizeEnum2) => {
|
|
8332
|
+
AvatarSizeEnum2["xs"] = "xs";
|
|
8333
|
+
AvatarSizeEnum2["sm"] = "sm";
|
|
8334
|
+
AvatarSizeEnum2["md"] = "md";
|
|
8335
|
+
AvatarSizeEnum2["lg"] = "lg";
|
|
8336
|
+
AvatarSizeEnum2["xl"] = "xl";
|
|
8337
|
+
AvatarSizeEnum2["2xl"] = "2xl";
|
|
8338
|
+
AvatarSizeEnum2["3xl"] = "3xl";
|
|
8339
|
+
AvatarSizeEnum2["4xl"] = "4xl";
|
|
8340
|
+
AvatarSizeEnum2["5xl"] = "5xl";
|
|
8341
|
+
return AvatarSizeEnum2;
|
|
8342
|
+
})(AvatarSizeEnum || {});
|
|
8343
|
+
var variants4 = [
|
|
8344
|
+
"primary" /* primary */,
|
|
8345
|
+
"success" /* success */,
|
|
8346
|
+
"warning" /* warning */,
|
|
8347
|
+
"danger" /* danger */,
|
|
8348
|
+
"neutral" /* neutral */
|
|
8349
|
+
];
|
|
8350
|
+
function Avatar({
|
|
8351
|
+
className,
|
|
8352
|
+
size: size4 = "sm",
|
|
8353
|
+
variant: variant3 = "primary",
|
|
8354
|
+
...props
|
|
8355
|
+
}) {
|
|
8356
|
+
const randomVariant = React31.useMemo(
|
|
8357
|
+
() => variants4[Math.floor(Math.random() * variants4.length)],
|
|
8358
|
+
[]
|
|
8359
|
+
);
|
|
8360
|
+
return /* @__PURE__ */ jsx(
|
|
8361
|
+
AvatarPrimitive.Root,
|
|
8362
|
+
{
|
|
8363
|
+
"data-slot": "avatar",
|
|
8364
|
+
className: cn(
|
|
8365
|
+
avatarVariantsConfig({
|
|
8366
|
+
size: size4,
|
|
8367
|
+
variant: variant3 === "random" /* random */ ? randomVariant : variant3
|
|
8368
|
+
}),
|
|
8369
|
+
className
|
|
8370
|
+
),
|
|
8371
|
+
...props
|
|
8372
|
+
}
|
|
8373
|
+
);
|
|
8374
|
+
}
|
|
8375
|
+
function AvatarImage({
|
|
8376
|
+
className,
|
|
8377
|
+
...props
|
|
8378
|
+
}) {
|
|
8379
|
+
return /* @__PURE__ */ jsx(
|
|
8380
|
+
AvatarPrimitive.Image,
|
|
8381
|
+
{
|
|
8382
|
+
"data-slot": "avatar-image",
|
|
8383
|
+
className: cn("aspect-square size-full rounded-full", className),
|
|
8384
|
+
...props
|
|
8385
|
+
}
|
|
8386
|
+
);
|
|
8387
|
+
}
|
|
8388
|
+
function AvatarFallback({
|
|
8389
|
+
className,
|
|
8390
|
+
...props
|
|
8391
|
+
}) {
|
|
8392
|
+
return /* @__PURE__ */ jsx(
|
|
8393
|
+
AvatarPrimitive.Fallback,
|
|
8394
|
+
{
|
|
8395
|
+
"data-slot": "avatar-fallback",
|
|
8396
|
+
className: cn(
|
|
8397
|
+
"bg-muted flex size-full items-center justify-center rounded-full",
|
|
8398
|
+
className
|
|
8399
|
+
),
|
|
8400
|
+
...props
|
|
8401
|
+
}
|
|
8402
|
+
);
|
|
8403
|
+
}
|
|
8404
|
+
var AvatarStickVariantsConfig = cva(
|
|
8405
|
+
"absolute bg-transparent max-h-1/2 max-w-1/2 overflow-hidden",
|
|
8406
|
+
{
|
|
8407
|
+
variants: {
|
|
8408
|
+
x: {
|
|
8409
|
+
left: "left-0",
|
|
8410
|
+
right: "right-0"
|
|
8411
|
+
},
|
|
8412
|
+
y: {
|
|
8413
|
+
top: "top-0",
|
|
8414
|
+
bottom: "bottom-0"
|
|
8415
|
+
}
|
|
8416
|
+
},
|
|
8417
|
+
defaultVariants: {
|
|
8418
|
+
x: "right",
|
|
8419
|
+
y: "bottom"
|
|
8420
|
+
}
|
|
8421
|
+
}
|
|
8422
|
+
);
|
|
8423
|
+
function AvatarStick({
|
|
8424
|
+
className,
|
|
8425
|
+
x,
|
|
8426
|
+
y,
|
|
8427
|
+
...props
|
|
8428
|
+
}) {
|
|
8429
|
+
return /* @__PURE__ */ jsx(
|
|
8430
|
+
"span",
|
|
8431
|
+
{
|
|
8432
|
+
"data-slot": "avatar-sticker",
|
|
8433
|
+
className: cn(AvatarStickVariantsConfig({ x, y }), className),
|
|
8434
|
+
...props
|
|
8435
|
+
}
|
|
8436
|
+
);
|
|
8437
|
+
}
|
|
8438
|
+
function AvatarHoverAction({
|
|
8439
|
+
className,
|
|
8440
|
+
...props
|
|
8441
|
+
}) {
|
|
8442
|
+
return /* @__PURE__ */ jsx(
|
|
8443
|
+
"span",
|
|
8444
|
+
{
|
|
8445
|
+
"data-slot": "avatar-hover-action",
|
|
8446
|
+
className: cn(
|
|
8447
|
+
"flex items-center justify-center index-100 absolute size-full cursor-pointer rounded-full ring-1 ring-neutral-100 dark:ring-neutral-800 bg-neutral-100 dark:bg-neutral-800 transition-all duration-300 opacity-0 hover:opacity-100",
|
|
8448
|
+
className
|
|
8449
|
+
),
|
|
8450
|
+
...props
|
|
8451
|
+
}
|
|
8452
|
+
);
|
|
8453
|
+
}
|
|
8285
8454
|
|
|
8286
8455
|
// src/tailwind.ts
|
|
8287
8456
|
function content({ base = "./" } = {}) {
|
|
@@ -8293,4 +8462,4 @@ var tailwind = {
|
|
|
8293
8462
|
// plugin: () => require("tailwindcss")("node_modules/@nebulareact/dist/tailwind.config.js"),
|
|
8294
8463
|
};
|
|
8295
8464
|
|
|
8296
|
-
export { Accordion, AccordionContent, AccordionDescription, AccordionItem, AccordionTitle, AccordionTrigger, ActionBar, ActionBarButton, ActionBarClose, ActionBarContent, ActionBarDivider, ActionBarPortal, ActionBarTrigger, Alert, AlertButton, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, StyledAsync as Async, StyledAsyncCreatable as AsyncCreatable, Badge, BannerAlert, BannerType, BannerVariant, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Caption, Checkbox, StyledCreatable as Creatable, Cropper2 as Cropper, CropperCropArea2 as CropperCropArea, CropperDescription2 as CropperDescription, CropperImage2 as CropperImage, 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, FileUpload, FileUploadError, Heading, InputDatePickerSingle, InputDateRangePicker, InputDateTimePickerSingle, InputPhone, InputText, InputTime, KanbanBoard, KanbanCard, KanbanColumn, KanbanColumnDragHandle, KanbanColumnFooter, KanbanColumnHeader, KanbanColumnTitle, Label, Link, NebulaI18nProvider, Pagination, Paragraph, Popover, PopoverContent, PopoverTrigger, ProfileImage, RadioGroup2 as RadioGroup, RadioGroupItem, StyledSelect as Select, Separator2 as Separator, Skeleton, Slider, Space, SpaceDirectionEnum, SpaceSizeEnum, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TextArea, TipCard, TipCardContent2 as TipCardContent, TipCardFooter, TipCardHeader, TipCardItem, TipCardMedia, TipCardMediaType, TipCardProvider, Toaster, Tooltip, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, dateIsAvailable, formatBytes, getNebulaLanguage, localeByi18nKey, messages19 as messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useClickOutside, useFileUpload, useKeyPress, useNebulaI18n, useTipCard };
|
|
8465
|
+
export { Accordion, AccordionContent, AccordionDescription, AccordionItem, AccordionTitle, AccordionTrigger, ActionBar, ActionBarButton, ActionBarClose, ActionBarContent, ActionBarDivider, ActionBarPortal, ActionBarTrigger, Alert, AlertButton, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, StyledAsync as Async, StyledAsyncCreatable as AsyncCreatable, Avatar, AvatarFallback, AvatarHoverAction, AvatarImage, AvatarSizeEnum, AvatarStick, AvatarVariantEnum, Badge, BannerAlert, BannerType, BannerVariant, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Caption, Checkbox, StyledCreatable as Creatable, Cropper2 as Cropper, CropperCropArea2 as CropperCropArea, CropperDescription2 as CropperDescription, CropperImage2 as CropperImage, 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, FileUpload, FileUploadError, Heading, InputDatePickerSingle, InputDateRangePicker, InputDateTimePickerSingle, InputPhone, InputText, InputTime, KanbanBoard, KanbanCard, KanbanColumn, KanbanColumnDragHandle, KanbanColumnFooter, KanbanColumnHeader, KanbanColumnTitle, Label, Link, NebulaI18nProvider, Pagination, Paragraph, Popover, PopoverContent, PopoverTrigger, ProfileImage, RadioGroup2 as RadioGroup, RadioGroupItem, StyledSelect as Select, Separator2 as Separator, Skeleton, Slider, Space, SpaceDirectionEnum, SpaceSizeEnum, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TextArea, TipCard, TipCardContent2 as TipCardContent, TipCardFooter, TipCardHeader, TipCardItem, TipCardMedia, TipCardMediaType, TipCardProvider, Toaster, Tooltip, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, dateIsAvailable, formatBytes, getNebulaLanguage, localeByi18nKey, messages19 as messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useClickOutside, useFileUpload, useKeyPress, useNebulaI18n, useTipCard };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikatec/nebula-react",
|
|
3
|
-
"version": "1.5.0
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "React components for Nebula Design System",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@babel/preset-react": "^7.26.3",
|
|
31
31
|
"@babel/preset-typescript": "^7.27.0",
|
|
32
32
|
"@ikatec/eslint-config": "*",
|
|
33
|
-
"@ikatec/nebula-tokens": "1.4.0
|
|
33
|
+
"@ikatec/nebula-tokens": "1.4.0",
|
|
34
34
|
"@ikatec/typescript-config": "*",
|
|
35
35
|
"ts-node": "^10.9.2",
|
|
36
36
|
"tsup": "^8.3.5",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"@dnd-kit/utilities": "^3.2.2",
|
|
44
44
|
"@radix-ui/react-accordion": "^1.2.11",
|
|
45
45
|
"@radix-ui/react-alert-dialog": "^1.1.7",
|
|
46
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
46
47
|
"@radix-ui/react-checkbox": "^1.1.4",
|
|
47
48
|
"@radix-ui/react-dialog": "^1.1.7",
|
|
48
49
|
"@radix-ui/react-dropdown-menu": "^2.1.6",
|
|
Binary file
|