@rafal.lemieszewski/tide-ui 0.1.0 → 0.1.2

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.
@@ -17,6 +17,15 @@ export { Tabs, TabsList, TabsTrigger, TabsContent, TabsGroupLabel } from './ui/t
17
17
  export type { TabsProps, TabsListProps, TabsTriggerProps, TabsGroupLabelProps } from './ui/tabs';
18
18
  export { Toggle } from './ui/toggle';
19
19
  export type { ToggleProps } from './ui/toggle';
20
+ export { AppFrame } from './product/app-frame';
21
+ export { Icon } from './ui/icon';
22
+ export type { IconColor, IconSize, CustomIconName } from './ui/icon';
23
+ export { Kbd } from './ui/kbd';
24
+ export { CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, } from './ui/command';
25
+ export { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from './ui/breadcrumb';
26
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarRail, SidebarGroup, SidebarGroupLabel, SidebarGroupContent, SidebarMenu, SidebarMenuItem, SidebarMenuButton, SidebarMenuSub, SidebarMenuSubItem, SidebarMenuSubButton, SidebarInset, SidebarProvider, SidebarTrigger, useSidebar, } from './ui/sidebar';
27
+ export { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, DropdownMenuLabel, DropdownMenuGroup, } from './ui/dropdown-menu';
28
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from './ui/tooltip';
20
29
  export { cn } from '../lib/utils';
21
30
  export declare const designTokens: {
22
31
  readonly colors: {
@@ -30,4 +30,4 @@ export interface ChartProps {
30
30
  }
31
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
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;
33
+ 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> {
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, TValue> 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> {
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 };
@@ -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">, 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?: "primary" | "success" | "warning" | "error" | "default" | 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" | "link";
26
+ };
27
+ secondaryAction?: {
28
+ label: string;
29
+ onClick?: () => void;
30
+ href?: string;
31
+ variant?: "default" | "secondary" | "ghost" | "link";
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 type { EmptyStateProps };
@@ -0,0 +1,76 @@
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 };
76
+ export type { FileUploadProps, FileUploadDropzoneProps, FileUploadTriggerProps, FileUploadListProps, FileUploadItemProps, FileUploadItemPreviewProps, FileUploadItemMetadataProps, FileUploadItemProgressProps, FileUploadItemDeleteProps, };
@@ -0,0 +1,40 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const listboxVariants: (props?: ({
4
+ orientation?: "grid" | "horizontal" | "vertical" | null | undefined;
5
+ size?: "sm" | "md" | "lg" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export interface ListboxContextValue {
8
+ value: string | string[];
9
+ onValueChange: (value: string | string[]) => void;
10
+ multiple?: boolean;
11
+ orientation?: "vertical" | "horizontal" | "grid";
12
+ disabled?: boolean;
13
+ }
14
+ export interface ListboxProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect">, VariantProps<typeof listboxVariants> {
15
+ value?: string | string[];
16
+ onValueChange?: (value: string | string[]) => void;
17
+ multiple?: boolean;
18
+ disabled?: boolean;
19
+ gridCols?: number;
20
+ }
21
+ declare const Listbox: React.ForwardRefExoticComponent<ListboxProps & React.RefAttributes<HTMLDivElement>>;
22
+ export interface ListboxItemProps extends React.HTMLAttributes<HTMLDivElement> {
23
+ value: string;
24
+ disabled?: boolean;
25
+ children: React.ReactNode;
26
+ }
27
+ declare const ListboxItem: React.ForwardRefExoticComponent<ListboxItemProps & React.RefAttributes<HTMLDivElement>>;
28
+ export interface ListboxItemIndicatorProps extends React.HTMLAttributes<HTMLSpanElement> {
29
+ children: React.ReactNode;
30
+ }
31
+ declare const ListboxItemIndicator: React.ForwardRefExoticComponent<ListboxItemIndicatorProps & React.RefAttributes<HTMLSpanElement>>;
32
+ export interface ListboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
33
+ children: React.ReactNode;
34
+ }
35
+ declare const ListboxGroup: React.ForwardRefExoticComponent<ListboxGroupProps & React.RefAttributes<HTMLDivElement>>;
36
+ export interface ListboxGroupLabelProps extends React.HTMLAttributes<HTMLDivElement> {
37
+ children: React.ReactNode;
38
+ }
39
+ declare const ListboxGroupLabel: React.ForwardRefExoticComponent<ListboxGroupLabelProps & React.RefAttributes<HTMLDivElement>>;
40
+ export { Listbox, ListboxItem, ListboxItemIndicator, ListboxGroup, ListboxGroupLabel };
@@ -0,0 +1,69 @@
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>>;
69
+ export type { MentionProps, MentionSuggestion, MentionTextProps };
@@ -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">, 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 type { NumberScrubberProps };
@@ -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" | "warning" | "error" | "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;
@@ -0,0 +1,92 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const spinnerVariants: (props?: ({
4
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
5
+ variant?: "primary" | "secondary" | "success" | "warning" | "error" | "default" | "tertiary" | "disabled" | "inverse" | null | undefined;
6
+ speed?: "normal" | "slow" | "fast" | null | undefined;
7
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
+ export interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof spinnerVariants> {
9
+ /**
10
+ * Text to display alongside the spinner
11
+ */
12
+ label?: string;
13
+ /**
14
+ * Whether to show the loading text
15
+ */
16
+ showLabel?: boolean;
17
+ /**
18
+ * Custom loading text
19
+ */
20
+ loadingText?: string;
21
+ }
22
+ declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
23
+ export interface LoadingOverlayProps extends React.HTMLAttributes<HTMLDivElement> {
24
+ /**
25
+ * Whether the overlay is visible
26
+ */
27
+ visible: boolean;
28
+ /**
29
+ * Loading message to display
30
+ */
31
+ message?: string;
32
+ /**
33
+ * Spinner size
34
+ */
35
+ spinnerSize?: VariantProps<typeof spinnerVariants>["size"];
36
+ /**
37
+ * Background opacity
38
+ */
39
+ opacity?: "light" | "medium" | "heavy";
40
+ }
41
+ declare const LoadingOverlay: React.ForwardRefExoticComponent<LoadingOverlayProps & React.RefAttributes<HTMLDivElement>>;
42
+ export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
43
+ /**
44
+ * Width of the skeleton
45
+ */
46
+ width?: string | number;
47
+ /**
48
+ * Height of the skeleton
49
+ */
50
+ height?: string | number;
51
+ /**
52
+ * Border radius variant
53
+ */
54
+ radius?: "none" | "sm" | "md" | "lg" | "full";
55
+ /**
56
+ * Whether to animate the skeleton
57
+ */
58
+ animate?: boolean;
59
+ }
60
+ declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
61
+ export interface PulseProps extends React.HTMLAttributes<HTMLDivElement> {
62
+ /**
63
+ * Color variant
64
+ */
65
+ variant?: "default" | "primary" | "success" | "warning" | "error";
66
+ /**
67
+ * Size of the pulse dot
68
+ */
69
+ size?: "sm" | "md" | "lg";
70
+ }
71
+ declare const Pulse: React.ForwardRefExoticComponent<PulseProps & React.RefAttributes<HTMLDivElement>>;
72
+ export interface ProgressDotsProps extends React.HTMLAttributes<HTMLDivElement> {
73
+ /**
74
+ * Total number of dots
75
+ */
76
+ total: number;
77
+ /**
78
+ * Current active dot (0-indexed)
79
+ */
80
+ current: number;
81
+ /**
82
+ * Size of the dots
83
+ */
84
+ size?: "sm" | "md" | "lg";
85
+ /**
86
+ * Whether to animate the transition
87
+ */
88
+ animate?: boolean;
89
+ }
90
+ declare const ProgressDots: React.ForwardRefExoticComponent<ProgressDotsProps & React.RefAttributes<HTMLDivElement>>;
91
+ export { Spinner, LoadingOverlay, Skeleton, Pulse, ProgressDots, spinnerVariants };
92
+ export type { SpinnerProps, LoadingOverlayProps, SkeletonProps, PulseProps, ProgressDotsProps };
@@ -0,0 +1,82 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from "react";
3
+ declare const tagVariants: (props?: ({
4
+ intent?: "success" | "warning" | "neutral" | "brand" | "destructive" | null | undefined;
5
+ appearance?: "solid" | "subtle" | null | undefined;
6
+ size?: "sm" | "md" | "lg" | null | undefined;
7
+ closable?: boolean | null | undefined;
8
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
9
+ export interface TagProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onClick">, VariantProps<typeof tagVariants> {
10
+ /**
11
+ * Content of the tag
12
+ */
13
+ children: React.ReactNode;
14
+ /**
15
+ * Whether the tag can be closed/removed
16
+ */
17
+ closable?: boolean;
18
+ /**
19
+ * Callback when the close button is clicked
20
+ */
21
+ onClose?: () => void;
22
+ /**
23
+ * Whether the tag is disabled
24
+ */
25
+ disabled?: boolean;
26
+ /**
27
+ * Callback when the tag itself is clicked (not the close button)
28
+ */
29
+ onClick?: () => void;
30
+ /**
31
+ * Whether the tag is clickable/interactive
32
+ */
33
+ interactive?: boolean;
34
+ }
35
+ declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLDivElement>>;
36
+ export interface TagGroupProps extends React.HTMLAttributes<HTMLDivElement> {
37
+ /**
38
+ * Array of tag data
39
+ */
40
+ tags: Array<{
41
+ id: string;
42
+ label: string;
43
+ intent?: TagProps["intent"];
44
+ appearance?: TagProps["appearance"];
45
+ disabled?: boolean;
46
+ }>;
47
+ /**
48
+ * Callback when a tag is removed
49
+ */
50
+ onTagRemove?: (tagId: string) => void;
51
+ /**
52
+ * Callback when a tag is clicked
53
+ */
54
+ onTagClick?: (tagId: string) => void;
55
+ /**
56
+ * Whether tags are closable by default
57
+ */
58
+ closable?: boolean;
59
+ /**
60
+ * Whether tags are interactive by default
61
+ */
62
+ interactive?: boolean;
63
+ /**
64
+ * Default size for all tags
65
+ */
66
+ size?: TagProps["size"];
67
+ /**
68
+ * Default intent for all tags
69
+ */
70
+ intent?: TagProps["intent"];
71
+ /**
72
+ * Default appearance for all tags
73
+ */
74
+ appearance?: TagProps["appearance"];
75
+ /**
76
+ * Maximum number of tags to show before collapsing
77
+ */
78
+ maxVisible?: number;
79
+ }
80
+ declare const TagGroup: React.ForwardRefExoticComponent<TagGroupProps & React.RefAttributes<HTMLDivElement>>;
81
+ export { Tag, TagGroup, tagVariants };
82
+ export type { TagProps, TagGroupProps };