@rafal.lemieszewski/tide-ui 0.1.1 → 0.2.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.
Files changed (34) hide show
  1. package/dist/components/index.d.ts +16 -0
  2. package/dist/components/ui/alert-dialog.d.ts +6 -3
  3. package/dist/components/ui/avatar.d.ts +3 -3
  4. package/dist/components/ui/badge.d.ts +3 -2
  5. package/dist/components/ui/button.d.ts +1 -1
  6. package/dist/components/ui/chart.d.ts +12 -7
  7. package/dist/components/ui/data-table.d.ts +44 -0
  8. package/dist/components/ui/date-picker.d.ts +30 -0
  9. package/dist/components/ui/dialog.d.ts +5 -2
  10. package/dist/components/ui/editable.d.ts +51 -0
  11. package/dist/components/ui/empty-state.d.ts +47 -0
  12. package/dist/components/ui/file-upload.d.ts +75 -0
  13. package/dist/components/ui/icon.d.ts +2 -2
  14. package/dist/components/ui/linked-chart.d.ts +1 -1
  15. package/dist/components/ui/listbox.d.ts +43 -0
  16. package/dist/components/ui/mention.d.ts +68 -0
  17. package/dist/components/ui/number-scrubber.d.ts +21 -0
  18. package/dist/components/ui/progress.d.ts +13 -0
  19. package/dist/components/ui/scroll-area.d.ts +5 -0
  20. package/dist/components/ui/sortable.d.ts +41 -0
  21. package/dist/components/ui/spinner.d.ts +91 -0
  22. package/dist/components/ui/tag.d.ts +81 -0
  23. package/dist/components/ui/tree.d.ts +33 -0
  24. package/dist/components/ui/typography.d.ts +10 -0
  25. package/dist/index.cjs.js +1683 -1633
  26. package/dist/index.cjs.js.map +1 -1
  27. package/dist/index.es.js +18724 -12261
  28. package/dist/index.es.js.map +1 -1
  29. package/dist/style.css +1 -1
  30. package/package.json +19 -6
  31. package/dist/avatars/acme.png +0 -0
  32. package/dist/avatars/rl.png +0 -0
  33. package/dist/avatars/sea.png +0 -0
  34. package/dist/components/product/app-frame.d.ts +0 -10
@@ -13,10 +13,26 @@ export type { LabelProps } from './ui/label';
13
13
  export { Separator } from './ui/separator';
14
14
  export { Skeleton, SkeletonAvatar, SkeletonButton, SkeletonCard, SkeletonTable, skeletonVariants } from './ui/skeleton';
15
15
  export { Switch } from './ui/switch';
16
+ export { Textarea } from './ui/textarea';
17
+ export type { TextareaProps } from './ui/textarea';
16
18
  export { Tabs, TabsList, TabsTrigger, TabsContent, TabsGroupLabel } from './ui/tabs';
17
19
  export type { TabsProps, TabsListProps, TabsTriggerProps, TabsGroupLabelProps } from './ui/tabs';
18
20
  export { Toggle } from './ui/toggle';
19
21
  export type { ToggleProps } from './ui/toggle';
22
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, selectTriggerVariants, selectContentVariants, selectItemVariants, } from './ui/select';
23
+ export type { SelectTriggerProps, SelectContentProps, SelectItemProps } from './ui/select';
24
+ export { TextLink } from './ui/text-link';
25
+ export type { TextLinkProps } from './ui/text-link';
26
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from './ui/accordion';
27
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogBody, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from './ui/alert-dialog';
28
+ export { Icon } from './ui/icon';
29
+ export type { IconColor, IconSize, CustomIconName } from './ui/icon';
30
+ export { Kbd } from './ui/kbd';
31
+ export { CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, } from './ui/command';
32
+ export { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from './ui/breadcrumb';
33
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarInput, SidebarRail, SidebarSeparator, SidebarGroup, SidebarGroupAction, SidebarGroupLabel, SidebarGroupContent, SidebarMenu, SidebarMenuItem, SidebarMenuButton, SidebarMenuAction, SidebarMenuBadge, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubItem, SidebarMenuSubButton, SidebarInset, SidebarProvider, SidebarTrigger, useSidebar, } from './ui/sidebar';
34
+ export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, DropdownMenuLabel, DropdownMenuGroup, } from './ui/dropdown-menu';
35
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from './ui/tooltip';
20
36
  export { cn } from '../lib/utils';
21
37
  export declare const designTokens: {
22
38
  readonly colors: {
@@ -13,10 +13,13 @@ declare const AlertDialogFooter: {
13
13
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
14
  displayName: string;
15
15
  };
16
+ declare const AlertDialogBody: {
17
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
18
+ displayName: string;
19
+ };
16
20
  declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
17
- declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
18
21
  declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
19
- variant?: "default" | "destructive";
22
+ variant?: "default" | "primary" | "destructive";
20
23
  } & React.RefAttributes<HTMLButtonElement>>;
21
24
  declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
22
- export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
25
+ export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogBody, AlertDialogFooter, AlertDialogTitle, AlertDialogAction, AlertDialogCancel, };
@@ -2,13 +2,13 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
4
4
  declare const avatarVariants: (props?: ({
5
- size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
5
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
6
6
  shape?: "circle" | "rounded" | "square" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
8
  declare const avatarFallbackVariants: (props?: ({
9
- size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
9
+ size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
10
10
  shape?: "circle" | "rounded" | "square" | null | undefined;
11
- variant?: "primary" | "secondary" | "accent" | "success" | "warning" | "error" | null | undefined;
11
+ variant?: "information" | "success" | "error" | "warning" | "violet" | "magenta" | null | undefined;
12
12
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
13
13
  interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>, VariantProps<typeof avatarVariants> {
14
14
  }
@@ -1,8 +1,9 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const badgeVariants: (props?: ({
4
- intent?: "success" | "warning" | "neutral" | "brand" | "destructive" | null | undefined;
5
- appearance?: "solid" | "subtle" | "outline" | null | undefined;
4
+ variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
5
+ intent?: "success" | "warning" | "destructive" | "neutral" | "brand" | null | undefined;
6
+ appearance?: "outline" | "solid" | "subtle" | null | undefined;
6
7
  size?: "sm" | "md" | "lg" | null | undefined;
7
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
9
  export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
@@ -2,7 +2,7 @@ import { default as React } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import { IconType } from './icon';
4
4
  declare const buttonVariants: (props?: ({
5
- variant?: "primary" | "success" | "default" | "destructive" | "ghost" | null | undefined;
5
+ variant?: "success" | "default" | "secondary" | "destructive" | "primary" | "ghost" | null | undefined;
6
6
  size?: "sm" | "md" | "lg" | null | undefined;
7
7
  iconPosition?: "none" | "left" | "right" | "only" | null | undefined;
8
8
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -1,9 +1,10 @@
1
1
  export declare const chartColorSchemes: {
2
- readonly bar: readonly ["#3B82F6", "#1D4ED8", "#1E40AF", "#1E3A8A", "#312E81", "#1E1B4B"];
3
- readonly line: readonly ["#10B981", "#059669", "#047857", "#065F46", "#064E3B", "#022C22"];
4
- readonly scatter: readonly ["#8B5CF6", "#7C3AED", "#6D28D9", "#5B21B6", "#4C1D95", "#312E81"];
2
+ readonly bar: readonly ["#3B82F6", "#1D4ED8", "#1E40AF", "#1E3A8A", "#312E81", "#1E1B4B", "#F59E0B", "#DC2626"];
3
+ readonly line: readonly ["#10B981", "#059669", "#047857", "#065F46", "#064E3B", "#022C22", "#8B5CF6", "#DC2626"];
4
+ readonly scatter: readonly ["#8B5CF6", "#7C3AED", "#6D28D9", "#5B21B6", "#4C1D95", "#312E81", "#10B981", "#F59E0B"];
5
+ readonly accessible: readonly ["#0066CC", "#CC6600", "#009966", "#CC0066", "#6600CC", "#CC9900", "#006666", "#CC0000"];
5
6
  };
6
- export type ChartType = "bar" | "horizontal-bar" | "line" | "scatter";
7
+ export type ChartType = "bar" | "horizontal-bar" | "line" | "scatter" | "composed";
7
8
  export type ChartColorScheme = keyof typeof chartColorSchemes;
8
9
  export interface ChartDataPoint {
9
10
  [key: string]: string | number;
@@ -12,6 +13,7 @@ export interface ChartConfig {
12
13
  [key: string]: {
13
14
  label: string;
14
15
  color?: string;
16
+ type?: "bar" | "line" | "area";
15
17
  };
16
18
  }
17
19
  export interface ChartProps {
@@ -27,7 +29,10 @@ export interface ChartProps {
27
29
  showGrid?: boolean;
28
30
  showLegend?: boolean;
29
31
  showTooltip?: boolean;
32
+ colorScheme?: ChartColorScheme;
33
+ responsive?: boolean;
34
+ maintainAspectRatio?: boolean;
30
35
  }
31
- export declare function Chart({ type, data, config, className, height, width, onDataPointClick, onDataPointHover, highlightedIndex, showGrid, showLegend, showTooltip, ...props }: ChartProps): import("react/jsx-runtime").JSX.Element;
32
- export declare const generateChartColors: (count: number, scheme?: ChartColorScheme) => ("#3B82F6" | "#1D4ED8" | "#1E40AF" | "#1E3A8A" | "#312E81" | "#1E1B4B" | "#10B981" | "#059669" | "#047857" | "#065F46" | "#064E3B" | "#022C22" | "#8B5CF6" | "#7C3AED" | "#6D28D9" | "#5B21B6" | "#4C1D95")[];
33
- export declare const createChartConfig: (keys: string[], labels: string[], colors?: string[]) => ChartConfig;
36
+ export declare function Chart({ type, data, config, className, height, width, onDataPointClick, onDataPointHover, highlightedIndex, showGrid, showLegend, showTooltip, colorScheme, responsive, maintainAspectRatio, ...props }: ChartProps): import("react/jsx-runtime").JSX.Element;
37
+ export declare const generateChartColors: (count: number, scheme?: ChartColorScheme) => ("#3B82F6" | "#1D4ED8" | "#1E40AF" | "#1E3A8A" | "#312E81" | "#1E1B4B" | "#F59E0B" | "#DC2626" | "#10B981" | "#059669" | "#047857" | "#065F46" | "#064E3B" | "#022C22" | "#8B5CF6" | "#7C3AED" | "#6D28D9" | "#5B21B6" | "#4C1D95" | "#0066CC" | "#CC6600" | "#009966" | "#CC0066" | "#6600CC" | "#CC9900" | "#006666" | "#CC0000")[];
38
+ export declare const createChartConfig: (input: ChartConfig | string[], labels?: string[], colors?: string[]) => ChartConfig;
@@ -0,0 +1,44 @@
1
+ import { ColumnDef, FilterFn } from '@tanstack/react-table';
2
+ import * as React from "react";
3
+ export type FilterVariant = "text" | "select" | "multiselect" | "number" | "date" | "boolean";
4
+ export interface ColumnMeta {
5
+ label?: string;
6
+ filterVariant?: FilterVariant;
7
+ filterOptions?: Array<{
8
+ label: string;
9
+ value: string;
10
+ icon?: React.ComponentType<any>;
11
+ }>;
12
+ placeholder?: string;
13
+ icon?: React.ComponentType<any>;
14
+ }
15
+ declare const fuzzyFilter: FilterFn<any>;
16
+ declare const multiSelectFilter: FilterFn<any>;
17
+ interface DataTableToolbarProps<_TData = any> {
18
+ table: any;
19
+ searchKey?: string;
20
+ searchPlaceholder?: string;
21
+ }
22
+ declare function DataTableToolbar<TData>({ table, searchKey, searchPlaceholder }: DataTableToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
23
+ interface DataTableFilterProps {
24
+ column: any;
25
+ }
26
+ declare function DataTableFilter({ column }: DataTableFilterProps): import("react/jsx-runtime").JSX.Element;
27
+ interface DataTableColumnHeaderProps<_TData = any, _TValue = any> extends React.HTMLAttributes<HTMLDivElement> {
28
+ column: any;
29
+ title: string;
30
+ }
31
+ declare function DataTableColumnHeader<TData, TValue>({ column, title, className, }: DataTableColumnHeaderProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
32
+ interface DataTablePaginationProps<_TData = any> {
33
+ table: any;
34
+ }
35
+ declare function DataTablePagination<TData>({ table }: DataTablePaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
36
+ export interface DataTableProps<TData, TValue> {
37
+ columns: ColumnDef<TData, TValue>[];
38
+ data: TData[];
39
+ searchKey?: string;
40
+ searchPlaceholder?: string;
41
+ className?: string;
42
+ }
43
+ export declare function DataTable<TData, TValue>({ columns, data, searchKey, searchPlaceholder, className, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
44
+ export { DataTableColumnHeader, DataTableFilter, DataTableToolbar, DataTablePagination, fuzzyFilter, multiSelectFilter };
@@ -0,0 +1,30 @@
1
+ import * as React from "react";
2
+ export interface DatePickerProps {
3
+ date?: Date;
4
+ onDateChange?: (date: Date | undefined) => void;
5
+ placeholder?: string;
6
+ disabled?: boolean;
7
+ className?: string;
8
+ formatStr?: string;
9
+ fromDate?: Date;
10
+ toDate?: Date;
11
+ }
12
+ declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLButtonElement>>;
13
+ export interface DateRangePickerProps {
14
+ dateRange?: {
15
+ from: Date | undefined;
16
+ to: Date | undefined;
17
+ };
18
+ onDateRangeChange?: (range: {
19
+ from: Date | undefined;
20
+ to: Date | undefined;
21
+ }) => void;
22
+ placeholder?: string;
23
+ disabled?: boolean;
24
+ className?: string;
25
+ formatStr?: string;
26
+ fromDate?: Date;
27
+ toDate?: Date;
28
+ }
29
+ declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<HTMLButtonElement>>;
30
+ export { DatePicker, DateRangePicker };
@@ -10,10 +10,13 @@ declare const DialogHeader: {
10
10
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
11
11
  displayName: string;
12
12
  };
13
+ declare const DialogBody: {
14
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
13
17
  declare const DialogFooter: {
14
18
  ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
15
19
  displayName: string;
16
20
  };
17
21
  declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
18
- declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
19
- export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
22
+ export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogBody, DialogFooter, DialogTitle, };
@@ -0,0 +1,51 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const editableVariants: (props?: ({
4
+ size?: "sm" | "md" | "lg" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export interface EditableContextValue {
7
+ isEditing: boolean;
8
+ value: string;
9
+ originalValue: string;
10
+ onEdit: () => void;
11
+ onCancel: () => void;
12
+ onSubmit: () => void;
13
+ onChange: (value: string) => void;
14
+ placeholder?: string;
15
+ invalid?: boolean;
16
+ required?: boolean;
17
+ maxLength?: number;
18
+ disabled?: boolean;
19
+ triggerMode: "click" | "dblclick" | "focus";
20
+ }
21
+ declare const useEditable: () => EditableContextValue;
22
+ export interface EditableProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "onSubmit">, VariantProps<typeof editableVariants> {
23
+ value?: string;
24
+ defaultValue?: string;
25
+ onValueChange?: (value: string) => void;
26
+ onEdit?: () => void;
27
+ onCancel?: () => void;
28
+ onSubmit?: (value: string) => void;
29
+ placeholder?: string;
30
+ invalid?: boolean;
31
+ required?: boolean;
32
+ maxLength?: number;
33
+ disabled?: boolean;
34
+ triggerMode?: "click" | "dblclick" | "focus";
35
+ controlled?: boolean;
36
+ }
37
+ declare const Editable: React.ForwardRefExoticComponent<EditableProps & React.RefAttributes<HTMLDivElement>>;
38
+ export interface EditablePreviewProps extends React.HTMLAttributes<HTMLDivElement> {
39
+ children?: React.ReactNode;
40
+ }
41
+ declare const EditablePreview: React.ForwardRefExoticComponent<EditablePreviewProps & React.RefAttributes<HTMLDivElement>>;
42
+ export interface EditableInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange"> {
43
+ autoFocus?: boolean;
44
+ }
45
+ declare const EditableInput: React.ForwardRefExoticComponent<EditableInputProps & React.RefAttributes<HTMLInputElement>>;
46
+ export interface EditableTextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange"> {
47
+ autoFocus?: boolean;
48
+ autoResize?: boolean;
49
+ }
50
+ declare const EditableTextarea: React.ForwardRefExoticComponent<EditableTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
51
+ export { Editable, EditablePreview, EditableInput, EditableTextarea, useEditable };
@@ -0,0 +1,47 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const emptyStateVariants: (props?: ({
4
+ size?: "sm" | "md" | "lg" | null | undefined;
5
+ fullWidth?: boolean | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ declare const emptyStateIconVariants: (props?: ({
8
+ variant?: "success" | "error" | "warning" | "default" | "primary" | null | undefined;
9
+ size?: "sm" | "md" | "lg" | null | undefined;
10
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
11
+ export interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof emptyStateVariants> {
12
+ icon?: React.ComponentType<{
13
+ className?: string;
14
+ }> | string;
15
+ iconVariant?: VariantProps<typeof emptyStateIconVariants>["variant"];
16
+ iconSize?: VariantProps<typeof emptyStateIconVariants>["size"];
17
+ heading: string;
18
+ description?: string;
19
+ image?: string;
20
+ imageAlt?: string;
21
+ action?: {
22
+ label: string;
23
+ onClick?: () => void;
24
+ href?: string;
25
+ variant?: "default" | "secondary" | "ghost" | "primary" | "destructive" | "success";
26
+ };
27
+ secondaryAction?: {
28
+ label: string;
29
+ onClick?: () => void;
30
+ href?: string;
31
+ variant?: "default" | "secondary" | "ghost" | "primary" | "destructive" | "success";
32
+ };
33
+ }
34
+ export declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
35
+ export declare const EmptyStates: {
36
+ NoData: ({ title, description, ...props }: Partial<EmptyStateProps>) => import("react/jsx-runtime").JSX.Element;
37
+ NoSearchResults: ({ title, description, ...props }: Partial<EmptyStateProps>) => import("react/jsx-runtime").JSX.Element;
38
+ EmptyInbox: ({ title, description, ...props }: Partial<EmptyStateProps>) => import("react/jsx-runtime").JSX.Element;
39
+ EmptyCart: ({ title, description, ...props }: Partial<EmptyStateProps>) => import("react/jsx-runtime").JSX.Element;
40
+ NoFiles: ({ title, description, ...props }: Partial<EmptyStateProps>) => import("react/jsx-runtime").JSX.Element;
41
+ ConnectionError: ({ title, description, ...props }: Partial<EmptyStateProps>) => import("react/jsx-runtime").JSX.Element;
42
+ NotFound: ({ title, description, ...props }: Partial<EmptyStateProps>) => import("react/jsx-runtime").JSX.Element;
43
+ Unauthorized: ({ title, description, ...props }: Partial<EmptyStateProps>) => import("react/jsx-runtime").JSX.Element;
44
+ ComingSoon: ({ title, description, ...props }: Partial<EmptyStateProps>) => import("react/jsx-runtime").JSX.Element;
45
+ NoNotifications: ({ title, description, ...props }: Partial<EmptyStateProps>) => import("react/jsx-runtime").JSX.Element;
46
+ };
47
+ export {};
@@ -0,0 +1,75 @@
1
+ import { Button } from './button';
2
+ import * as React from "react";
3
+ interface FileUploadContextValue {
4
+ files: FileUploadFile[];
5
+ onFilesChange: (files: FileUploadFile[]) => void;
6
+ maxFiles?: number;
7
+ maxSize?: number;
8
+ accept?: string[];
9
+ disabled?: boolean;
10
+ multiple?: boolean;
11
+ onUpload?: (files: File[]) => Promise<void>;
12
+ }
13
+ declare const useFileUpload: () => FileUploadContextValue;
14
+ export interface FileUploadFile {
15
+ id: string;
16
+ file: File;
17
+ status: "pending" | "uploading" | "success" | "error";
18
+ progress?: number;
19
+ error?: string;
20
+ preview?: string;
21
+ }
22
+ export interface FileUploadProps extends React.HTMLAttributes<HTMLDivElement> {
23
+ files: FileUploadFile[];
24
+ onFilesChange: (files: FileUploadFile[]) => void;
25
+ maxFiles?: number;
26
+ maxSize?: number;
27
+ accept?: string[];
28
+ disabled?: boolean;
29
+ multiple?: boolean;
30
+ onUpload?: (files: File[]) => Promise<void>;
31
+ }
32
+ declare const FileUploadRoot: React.ForwardRefExoticComponent<FileUploadProps & React.RefAttributes<HTMLDivElement>>;
33
+ export interface FileUploadDropzoneProps extends React.HTMLAttributes<HTMLDivElement> {
34
+ }
35
+ declare const FileUploadDropzone: React.ForwardRefExoticComponent<FileUploadDropzoneProps & React.RefAttributes<HTMLDivElement>>;
36
+ export interface FileUploadTriggerProps extends React.ComponentProps<typeof Button> {
37
+ }
38
+ declare const FileUploadTrigger: React.ForwardRefExoticComponent<Omit<FileUploadTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
39
+ export interface FileUploadListProps extends React.HTMLAttributes<HTMLDivElement> {
40
+ }
41
+ declare const FileUploadList: React.ForwardRefExoticComponent<FileUploadListProps & React.RefAttributes<HTMLDivElement>>;
42
+ export interface FileUploadItemProps extends React.HTMLAttributes<HTMLDivElement> {
43
+ file: FileUploadFile;
44
+ }
45
+ declare const FileUploadItem: React.ForwardRefExoticComponent<FileUploadItemProps & React.RefAttributes<HTMLDivElement>>;
46
+ export interface FileUploadItemPreviewProps extends React.HTMLAttributes<HTMLDivElement> {
47
+ file: FileUploadFile;
48
+ }
49
+ declare const FileUploadItemPreview: React.ForwardRefExoticComponent<FileUploadItemPreviewProps & React.RefAttributes<HTMLDivElement>>;
50
+ export interface FileUploadItemMetadataProps extends React.HTMLAttributes<HTMLDivElement> {
51
+ file: FileUploadFile;
52
+ }
53
+ declare const FileUploadItemMetadata: React.ForwardRefExoticComponent<FileUploadItemMetadataProps & React.RefAttributes<HTMLDivElement>>;
54
+ export interface FileUploadItemProgressProps extends React.HTMLAttributes<HTMLDivElement> {
55
+ file: FileUploadFile;
56
+ variant?: "linear" | "circular";
57
+ }
58
+ declare const FileUploadItemProgress: React.ForwardRefExoticComponent<FileUploadItemProgressProps & React.RefAttributes<HTMLDivElement>>;
59
+ export interface FileUploadItemDeleteProps extends React.ComponentProps<typeof Button> {
60
+ file: FileUploadFile;
61
+ }
62
+ declare const FileUploadItemDelete: React.ForwardRefExoticComponent<Omit<FileUploadItemDeleteProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
63
+ declare const formatFileSize: (bytes: number) => string;
64
+ export declare const FileUpload: {
65
+ Root: React.ForwardRefExoticComponent<FileUploadProps & React.RefAttributes<HTMLDivElement>>;
66
+ Dropzone: React.ForwardRefExoticComponent<FileUploadDropzoneProps & React.RefAttributes<HTMLDivElement>>;
67
+ Trigger: React.ForwardRefExoticComponent<Omit<FileUploadTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
68
+ List: React.ForwardRefExoticComponent<FileUploadListProps & React.RefAttributes<HTMLDivElement>>;
69
+ Item: React.ForwardRefExoticComponent<FileUploadItemProps & React.RefAttributes<HTMLDivElement>>;
70
+ ItemPreview: React.ForwardRefExoticComponent<FileUploadItemPreviewProps & React.RefAttributes<HTMLDivElement>>;
71
+ ItemMetadata: React.ForwardRefExoticComponent<FileUploadItemMetadataProps & React.RefAttributes<HTMLDivElement>>;
72
+ ItemProgress: React.ForwardRefExoticComponent<FileUploadItemProgressProps & React.RefAttributes<HTMLDivElement>>;
73
+ ItemDelete: React.ForwardRefExoticComponent<Omit<FileUploadItemDeleteProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
74
+ };
75
+ export { FileUploadRoot, FileUploadDropzone, FileUploadTrigger, FileUploadList, FileUploadItem, FileUploadItemPreview, FileUploadItemMetadata, FileUploadItemProgress, FileUploadItemDelete, useFileUpload, formatFileSize, };
@@ -28,12 +28,12 @@ export type IconSize = keyof typeof iconSizes;
28
28
  export type { CustomIconName };
29
29
  export type LucideIconName = string;
30
30
  export type IconType = CustomIconName | LucideIconName;
31
- export interface IconProps extends Omit<React.SVGAttributes<SVGElement>, 'color'> {
31
+ export interface IconProps extends Omit<React.SVGAttributes<SVGElement>, "color"> {
32
32
  name: IconType;
33
33
  size?: IconSize;
34
34
  color?: IconColor;
35
35
  /** Accessible label for the icon. If not provided, icon will be marked as decorative (aria-hidden) */
36
- 'aria-label'?: string;
36
+ "aria-label"?: string;
37
37
  }
38
38
  declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<SVGSVGElement>>;
39
39
  export { Icon, iconColors, iconSizes };
@@ -3,7 +3,7 @@ export interface LinkedChartColumn {
3
3
  key: string;
4
4
  label: string;
5
5
  type?: "text" | "number" | "currency" | "percentage";
6
- format?: (value: any) => string;
6
+ format?: (value: any, row?: any) => string;
7
7
  }
8
8
  export interface LinkedChartProps extends Omit<ChartProps, "onDataPointClick" | "onDataPointHover" | "highlightedIndex"> {
9
9
  title?: string;
@@ -0,0 +1,43 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const listboxVariants: (props?: ({
4
+ size?: "sm" | "md" | "lg" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export interface ListboxContextValue {
7
+ value: string | string[] | undefined;
8
+ onChange: (value: string | string[]) => void;
9
+ multiple?: boolean;
10
+ disabled?: boolean;
11
+ size?: "sm" | "md" | "lg";
12
+ options: {
13
+ value: string;
14
+ disabled: boolean;
15
+ ref: React.RefObject<HTMLDivElement>;
16
+ }[];
17
+ registerOption: (value: string, disabled: boolean, ref: React.RefObject<HTMLDivElement>) => void;
18
+ unregisterOption: (value: string) => void;
19
+ activeValue: string | null;
20
+ setActiveValue: (value: string | null) => void;
21
+ }
22
+ export interface ListboxProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof listboxVariants> {
23
+ value?: string | string[];
24
+ onChange?: (value: string | string[]) => void;
25
+ multiple?: boolean;
26
+ disabled?: boolean;
27
+ }
28
+ declare const Listbox: React.ForwardRefExoticComponent<ListboxProps & React.RefAttributes<HTMLDivElement>>;
29
+ export interface ListboxOptionProps extends React.HTMLAttributes<HTMLDivElement> {
30
+ value: string;
31
+ disabled?: boolean;
32
+ children: React.ReactNode;
33
+ }
34
+ declare const ListboxOption: React.ForwardRefExoticComponent<ListboxOptionProps & React.RefAttributes<HTMLDivElement>>;
35
+ export interface ListboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
36
+ children: React.ReactNode;
37
+ }
38
+ declare const ListboxGroup: React.ForwardRefExoticComponent<ListboxGroupProps & React.RefAttributes<HTMLDivElement>>;
39
+ export interface ListboxGroupLabelProps extends React.HTMLAttributes<HTMLDivElement> {
40
+ children: React.ReactNode;
41
+ }
42
+ declare const ListboxGroupLabel: React.ForwardRefExoticComponent<ListboxGroupLabelProps & React.RefAttributes<HTMLDivElement>>;
43
+ export { Listbox, ListboxOption, ListboxGroup, ListboxGroupLabel };
@@ -0,0 +1,68 @@
1
+ import * as React from "react";
2
+ export interface MentionSuggestion {
3
+ id: string;
4
+ label: string;
5
+ value: string;
6
+ avatar?: string;
7
+ description?: string;
8
+ disabled?: boolean;
9
+ }
10
+ export interface MentionProps {
11
+ /**
12
+ * Current text value
13
+ */
14
+ value: string;
15
+ /**
16
+ * Callback when the text changes
17
+ */
18
+ onChange: (value: string) => void;
19
+ /**
20
+ * Array of suggestion items
21
+ */
22
+ suggestions: MentionSuggestion[];
23
+ /**
24
+ * Character that triggers the mention dropdown
25
+ */
26
+ trigger?: string;
27
+ /**
28
+ * Placeholder text for the input
29
+ */
30
+ placeholder?: string;
31
+ /**
32
+ * Whether the input is disabled
33
+ */
34
+ disabled?: boolean;
35
+ /**
36
+ * Callback when a mention is selected
37
+ */
38
+ onMentionSelect?: (suggestion: MentionSuggestion) => void;
39
+ /**
40
+ * Custom filter function for suggestions
41
+ */
42
+ filterFn?: (suggestions: MentionSuggestion[], query: string) => MentionSuggestion[];
43
+ }
44
+ export declare const Mention: React.ForwardRefExoticComponent<MentionProps & React.RefAttributes<HTMLTextAreaElement>>;
45
+ export declare const extractMentions: (text: string, trigger?: string) => {
46
+ mention: string;
47
+ index: number;
48
+ }[];
49
+ export declare const highlightMentions: (text: string, trigger?: string, className?: string) => (string | import("react/jsx-runtime").JSX.Element)[];
50
+ export interface MentionTextProps extends React.HTMLAttributes<HTMLDivElement> {
51
+ /**
52
+ * Text content with mentions
53
+ */
54
+ text: string;
55
+ /**
56
+ * Mention trigger character
57
+ */
58
+ trigger?: string;
59
+ /**
60
+ * Custom className for mention highlights
61
+ */
62
+ mentionClassName?: string;
63
+ /**
64
+ * Callback when a mention is clicked
65
+ */
66
+ onMentionClick?: (mention: string) => void;
67
+ }
68
+ export declare const MentionText: React.ForwardRefExoticComponent<MentionTextProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,21 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const numberScrubberVariants: (props?: ({
4
+ variant?: "default" | "ghost" | null | undefined;
5
+ size?: "sm" | "md" | "lg" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface NumberScrubberProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "type" | "size">, VariantProps<typeof numberScrubberVariants> {
8
+ value?: number;
9
+ onChange?: (value: number) => void;
10
+ min?: number;
11
+ max?: number;
12
+ step?: number;
13
+ sensitivity?: number;
14
+ precision?: number;
15
+ formatValue?: (value: number) => string;
16
+ parseValue?: (value: string) => number;
17
+ onScrubStart?: () => void;
18
+ onScrubEnd?: () => void;
19
+ }
20
+ export declare const NumberScrubber: React.ForwardRefExoticComponent<NumberScrubberProps & React.RefAttributes<HTMLInputElement>>;
21
+ export {};
@@ -0,0 +1,13 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
4
+ declare const progressVariants: (props?: ({
5
+ variant?: "success" | "error" | "warning" | "default" | null | undefined;
6
+ size?: "sm" | "md" | "lg" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export interface ProgressProps extends React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>, VariantProps<typeof progressVariants> {
9
+ showLabel?: boolean;
10
+ formatLabel?: (value: number) => string;
11
+ }
12
+ declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
13
+ export { Progress };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
3
+ declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,41 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const sortableVariants: (props?: ({
4
+ orientation?: "grid" | "horizontal" | "vertical" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export interface SortableRootProps<T = any> extends Omit<React.HTMLAttributes<HTMLDivElement>, "onDragEnd">, VariantProps<typeof sortableVariants> {
7
+ items: T[];
8
+ onItemsChange: (items: T[]) => void;
9
+ getItemId?: (item: T) => string;
10
+ disabled?: boolean;
11
+ renderItem?: (item: T, index: number) => React.ReactNode;
12
+ renderOverlay?: (item: T) => React.ReactNode;
13
+ }
14
+ declare const SortableRoot: <T extends any>({ className, orientation, items, onItemsChange, getItemId, disabled, renderItem, renderOverlay, children, ...props }: SortableRootProps<T>) => import("react/jsx-runtime").JSX.Element;
15
+ export interface SortableContentProps extends React.HTMLAttributes<HTMLDivElement> {
16
+ }
17
+ declare const SortableContent: React.ForwardRefExoticComponent<SortableContentProps & React.RefAttributes<HTMLDivElement>>;
18
+ export interface SortableItemProps extends React.HTMLAttributes<HTMLDivElement> {
19
+ id: string;
20
+ item?: any;
21
+ index?: number;
22
+ disabled?: boolean;
23
+ }
24
+ declare const SortableItem: React.ForwardRefExoticComponent<SortableItemProps & React.RefAttributes<HTMLDivElement>>;
25
+ export interface SortableHandleProps extends React.HTMLAttributes<HTMLDivElement> {
26
+ disabled?: boolean;
27
+ }
28
+ declare const SortableHandle: React.ForwardRefExoticComponent<SortableHandleProps & React.RefAttributes<HTMLDivElement>>;
29
+ export interface SortableOverlayProps extends React.HTMLAttributes<HTMLDivElement> {
30
+ }
31
+ declare const SortableOverlay: React.ForwardRefExoticComponent<SortableOverlayProps & React.RefAttributes<HTMLDivElement>>;
32
+ export { SortableRoot as Root, SortableContent as Content, SortableItem as Item, SortableHandle as Handle, SortableOverlay as Overlay, };
33
+ declare const Sortable: {
34
+ Root: <T extends unknown>({ className, orientation, items, onItemsChange, getItemId, disabled, renderItem, renderOverlay, children, ...props }: SortableRootProps<T>) => import("react/jsx-runtime").JSX.Element;
35
+ Content: React.ForwardRefExoticComponent<SortableContentProps & React.RefAttributes<HTMLDivElement>>;
36
+ Item: React.ForwardRefExoticComponent<SortableItemProps & React.RefAttributes<HTMLDivElement>>;
37
+ Handle: React.ForwardRefExoticComponent<SortableHandleProps & React.RefAttributes<HTMLDivElement>>;
38
+ Overlay: React.ForwardRefExoticComponent<SortableOverlayProps & React.RefAttributes<HTMLDivElement>>;
39
+ };
40
+ export { Sortable };
41
+ export default Sortable;