@vashu96/ui 0.0.1
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/Alert.d.ts +12 -0
- package/dist/Avatar.d.ts +10 -0
- package/dist/Badge.d.ts +7 -0
- package/dist/Breadcrumb.d.ts +14 -0
- package/dist/Button.d.ts +10 -0
- package/dist/Card.d.ts +8 -0
- package/dist/Checkbox.d.ts +7 -0
- package/dist/Command.d.ts +21 -0
- package/dist/ConfirmDialog.d.ts +13 -0
- package/dist/DataTable.d.ts +12 -0
- package/dist/Dialog.d.ts +15 -0
- package/dist/Dropdown.d.ts +19 -0
- package/dist/EmptyState.d.ts +9 -0
- package/dist/FormField.d.ts +11 -0
- package/dist/Input.d.ts +6 -0
- package/dist/Label.d.ts +7 -0
- package/dist/Pagination.d.ts +9 -0
- package/dist/Progress.d.ts +11 -0
- package/dist/SearchCommand.d.ts +6 -0
- package/dist/Select.d.ts +15 -0
- package/dist/Separator.d.ts +6 -0
- package/dist/Sheet.d.ts +18 -0
- package/dist/Sidebar.d.ts +43 -0
- package/dist/Skeleton.d.ts +8 -0
- package/dist/Slider.d.ts +7 -0
- package/dist/Spinner.d.ts +8 -0
- package/dist/SpotlightCard.d.ts +6 -0
- package/dist/Switch.d.ts +10 -0
- package/dist/Table.d.ts +8 -0
- package/dist/Tabs.d.ts +27 -0
- package/dist/Tag.d.ts +10 -0
- package/dist/Textarea.d.ts +8 -0
- package/dist/Toast.d.ts +19 -0
- package/dist/Tooltip.d.ts +11 -0
- package/dist/hooks/useDebounce.d.ts +1 -0
- package/dist/hooks/useSpotlight.d.ts +15 -0
- package/dist/index.cjs +4 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +6364 -0
- package/dist/lib/cn.d.ts +1 -0
- package/package.json +38 -0
package/dist/Alert.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
type AlertVariant = "info" | "success" | "warning" | "danger";
|
|
3
|
+
interface AlertProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
variant?: AlertVariant;
|
|
5
|
+
title?: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
dismissible?: boolean;
|
|
8
|
+
onDismiss?: () => void;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const Alert: import('react').ForwardRefExoticComponent<AlertProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export { Alert, type AlertProps, type AlertVariant };
|
package/dist/Avatar.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
3
|
+
interface AvatarProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
src?: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
fallback?: string;
|
|
7
|
+
size?: AvatarSize;
|
|
8
|
+
}
|
|
9
|
+
declare const Avatar: import('react').ForwardRefExoticComponent<AvatarProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export { Avatar, type AvatarProps, type AvatarSize };
|
package/dist/Badge.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
type BadgeVariant = "default" | "success" | "warning" | "danger" | "info";
|
|
3
|
+
interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
variant?: BadgeVariant;
|
|
5
|
+
}
|
|
6
|
+
declare const Badge: import('react').ForwardRefExoticComponent<BadgeProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
export { Badge, type BadgeProps, type BadgeVariant };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
declare const Breadcrumb: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & import('react').RefAttributes<HTMLElement>>;
|
|
3
|
+
declare const BreadcrumbList: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLOListElement> & import('react').RefAttributes<HTMLOListElement>>;
|
|
4
|
+
declare const BreadcrumbItem: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLLIElement> & import('react').RefAttributes<HTMLLIElement>>;
|
|
5
|
+
interface BreadcrumbLinkProps extends HTMLAttributes<HTMLAnchorElement> {
|
|
6
|
+
href?: string;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const BreadcrumbLink: import('react').ForwardRefExoticComponent<BreadcrumbLinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
10
|
+
declare function BreadcrumbSeparator({ children, className, }: {
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbSeparator, type BreadcrumbLinkProps, };
|
package/dist/Button.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
type ButtonVariant = "primary" | "secondary" | "ghost" | "danger";
|
|
3
|
+
type ButtonSize = "sm" | "md" | "lg";
|
|
4
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
|
+
variant?: ButtonVariant;
|
|
6
|
+
size?: ButtonSize;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export { Button, type ButtonProps, type ButtonVariant, type ButtonSize };
|
package/dist/Card.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
type CardVariant = "glass" | "solid" | "outline";
|
|
3
|
+
interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
variant?: CardVariant;
|
|
5
|
+
padding?: "none" | "sm" | "md" | "lg";
|
|
6
|
+
}
|
|
7
|
+
declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Card, type CardProps, type CardVariant };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
3
|
+
label?: string;
|
|
4
|
+
indeterminate?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const Checkbox: import('react').ForwardRefExoticComponent<CheckboxProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
7
|
+
export { Checkbox, type CheckboxProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface CommandItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
shortcut?: string;
|
|
7
|
+
onSelect: () => void;
|
|
8
|
+
group?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface CommandProps {
|
|
12
|
+
open: boolean;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
items: CommandItem[];
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
emptyMessage?: string;
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
onQueryChange?: (query: string) => void;
|
|
19
|
+
}
|
|
20
|
+
declare function Command({ open, onClose, items, placeholder, emptyMessage, loading, onQueryChange, }: CommandProps): import('react').ReactPortal | null;
|
|
21
|
+
export { Command, type CommandProps, type CommandItem };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface ConfirmDialogProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
onConfirm: () => void | Promise<void>;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
confirmText?: string;
|
|
8
|
+
cancelText?: string;
|
|
9
|
+
variant?: "danger" | "default";
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function ConfirmDialog({ open, onClose, onConfirm, title, description, confirmText, cancelText, variant, loading, }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ColumnDef, Column } from '@tanstack/react-table';
|
|
2
|
+
interface DataTableProps<TData, TValue> {
|
|
3
|
+
columns: ColumnDef<TData, TValue>[];
|
|
4
|
+
data: TData[];
|
|
5
|
+
searchPlaceholder?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function DataTable<TData, TValue>({ columns, data, searchPlaceholder, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function DataTableColumnHeader<TData, TValue>({ column, title, }: {
|
|
9
|
+
column: Column<TData, TValue>;
|
|
10
|
+
title: string;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
package/dist/Dialog.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
type DialogSize = "sm" | "md" | "lg";
|
|
3
|
+
interface DialogProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
size?: DialogSize;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function Dialog({ open, onClose, size, children }: DialogProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const DialogHeader: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const DialogFooter: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const DialogTitle: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
13
|
+
declare const DialogDescription: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
14
|
+
declare function DialogClose({ children, className, ...props }: HTMLAttributes<HTMLButtonElement>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Dialog, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, type DialogProps, type DialogSize, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
interface DropdownProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
declare function Dropdown({ children }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare const DropdownTrigger: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLButtonElement> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
interface DropdownMenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
align?: "left" | "right";
|
|
9
|
+
}
|
|
10
|
+
declare function DropdownMenu({ align, className, children, ...props }: DropdownMenuProps): import('react').ReactPortal | null;
|
|
11
|
+
interface DropdownItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
destructive?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const DropdownItem: import('react').ForwardRefExoticComponent<DropdownItemProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
|
+
declare function DropdownSeparator({ className }: {
|
|
17
|
+
className?: string;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { Dropdown, DropdownTrigger, DropdownMenu, DropdownItem, DropdownSeparator, type DropdownProps, type DropdownMenuProps, type DropdownItemProps, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
interface EmptyStateProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
icon?: ReactNode;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
action?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const EmptyState: import('react').ForwardRefExoticComponent<EmptyStateProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export { EmptyState, type EmptyStateProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface FormFieldProps {
|
|
3
|
+
label?: string;
|
|
4
|
+
error?: string | boolean;
|
|
5
|
+
description?: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
htmlFor?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function FormField({ label, error, description, children, className, htmlFor, }: FormFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
package/dist/Input.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
error?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export { Input, type InputProps };
|
package/dist/Label.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LabelHTMLAttributes } from 'react';
|
|
2
|
+
interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
3
|
+
required?: boolean;
|
|
4
|
+
error?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const Label: import('react').ForwardRefExoticComponent<LabelProps & import('react').RefAttributes<HTMLLabelElement>>;
|
|
7
|
+
export { Label, type LabelProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
interface PaginationProps extends HTMLAttributes<HTMLElement> {
|
|
3
|
+
page: number;
|
|
4
|
+
totalPages: number;
|
|
5
|
+
onPageChange: (page: number) => void;
|
|
6
|
+
siblingCount?: number;
|
|
7
|
+
}
|
|
8
|
+
declare function Pagination({ page, totalPages, onPageChange, siblingCount, className, ...props }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Pagination, type PaginationProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
type ProgressVariant = "default" | "success" | "warning" | "danger";
|
|
3
|
+
interface ProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
value: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
variant?: ProgressVariant;
|
|
7
|
+
label?: string;
|
|
8
|
+
showValue?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Progress: import('react').ForwardRefExoticComponent<ProgressProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export { Progress, type ProgressProps, type ProgressVariant };
|
package/dist/Select.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface SelectOption {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
interface SelectProps {
|
|
7
|
+
options: SelectOption[];
|
|
8
|
+
value?: string;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
error?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
declare function Select({ options, value, onChange, placeholder, error, className, }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Select, type SelectProps, type SelectOption };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
interface SeparatorProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
orientation?: "horizontal" | "vertical";
|
|
4
|
+
}
|
|
5
|
+
declare const Separator: import('react').ForwardRefExoticComponent<SeparatorProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { Separator, type SeparatorProps };
|
package/dist/Sheet.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
type SheetSide = "left" | "right" | "top" | "bottom";
|
|
3
|
+
interface SheetProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
side?: SheetSide;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function Sheet({ open, onClose, side, children, className, }: SheetProps): import('react').ReactPortal | null;
|
|
11
|
+
declare const SheetHeader: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const SheetTitle: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
13
|
+
declare const SheetDescription: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
14
|
+
declare function SheetClose({ onClose }: {
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const SheetFooter: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export { Sheet, SheetHeader, SheetTitle, SheetDescription, SheetClose, SheetFooter, type SheetProps, type SheetSide, };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
interface IndicatorState {
|
|
3
|
+
top: number;
|
|
4
|
+
left: number;
|
|
5
|
+
height: number;
|
|
6
|
+
width: number;
|
|
7
|
+
opacity: number;
|
|
8
|
+
}
|
|
9
|
+
interface SidebarContextValue {
|
|
10
|
+
collapsed: boolean;
|
|
11
|
+
toggle: () => void;
|
|
12
|
+
indicator: IndicatorState;
|
|
13
|
+
setIndicator: (state: IndicatorState) => void;
|
|
14
|
+
contentRef: React.RefObject<HTMLDivElement | null>;
|
|
15
|
+
contentReady: boolean;
|
|
16
|
+
setContentReady: (ready: boolean) => void;
|
|
17
|
+
}
|
|
18
|
+
declare function useSidebar(): SidebarContextValue;
|
|
19
|
+
interface SidebarProps extends HTMLAttributes<HTMLElement> {
|
|
20
|
+
defaultCollapsed?: boolean;
|
|
21
|
+
collapsed?: boolean;
|
|
22
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
declare function Sidebar({ defaultCollapsed, collapsed: controlledCollapsed, onCollapsedChange, className, children, ...props }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare const SidebarHeader: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
27
|
+
declare const SidebarContent: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
28
|
+
interface SidebarGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
29
|
+
label?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const SidebarGroup: import('react').ForwardRefExoticComponent<SidebarGroupProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
32
|
+
interface SidebarItemProps extends HTMLAttributes<HTMLButtonElement> {
|
|
33
|
+
icon?: ReactNode;
|
|
34
|
+
active?: boolean;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
tooltip?: string;
|
|
37
|
+
}
|
|
38
|
+
declare const SidebarItem: import('react').ForwardRefExoticComponent<SidebarItemProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
39
|
+
declare const SidebarFooter: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
40
|
+
declare function SidebarToggle({ className }: {
|
|
41
|
+
className?: string;
|
|
42
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export { Sidebar, SidebarHeader, SidebarContent, SidebarGroup, SidebarItem, SidebarFooter, SidebarToggle, useSidebar, type SidebarProps, type SidebarGroupProps, type SidebarItemProps, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
variant?: "text" | "circular" | "rectangular";
|
|
4
|
+
width?: string | number;
|
|
5
|
+
height?: string | number;
|
|
6
|
+
}
|
|
7
|
+
declare const Skeleton: import('react').ForwardRefExoticComponent<SkeletonProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Skeleton, type SkeletonProps };
|
package/dist/Slider.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
3
|
+
label?: string;
|
|
4
|
+
showValue?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const Slider: import('react').ForwardRefExoticComponent<SliderProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
7
|
+
export { Slider, type SliderProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
type SpinnerSize = "sm" | "md" | "lg";
|
|
3
|
+
interface SpinnerProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
size?: SpinnerSize;
|
|
5
|
+
label?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const Spinner: import('react').ForwardRefExoticComponent<SpinnerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Spinner, type SpinnerProps, type SpinnerSize };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
interface SpotlightCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
padding?: "none" | "sm" | "md" | "lg";
|
|
4
|
+
}
|
|
5
|
+
declare const SpotlightCard: import('react').ForwardRefExoticComponent<SpotlightCardProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { SpotlightCard, type SpotlightCardProps };
|
package/dist/Switch.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
type SwitchSize = "sm" | "md";
|
|
3
|
+
interface SwitchProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
onChange: (checked: boolean) => void;
|
|
6
|
+
label?: string;
|
|
7
|
+
size?: SwitchSize;
|
|
8
|
+
}
|
|
9
|
+
declare const Switch: import('react').ForwardRefExoticComponent<SwitchProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export { Switch, type SwitchProps, type SwitchSize };
|
package/dist/Table.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
2
|
+
declare const Table: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLTableElement> & import('react').RefAttributes<HTMLTableElement>>;
|
|
3
|
+
declare const TableHeader: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & import('react').RefAttributes<HTMLTableSectionElement>>;
|
|
4
|
+
declare const TableBody: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLTableSectionElement> & import('react').RefAttributes<HTMLTableSectionElement>>;
|
|
5
|
+
declare const TableRow: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLTableRowElement> & import('react').RefAttributes<HTMLTableRowElement>>;
|
|
6
|
+
declare const TableHead: import('react').ForwardRefExoticComponent<ThHTMLAttributes<HTMLTableCellElement> & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
7
|
+
declare const TableCell: import('react').ForwardRefExoticComponent<TdHTMLAttributes<HTMLTableCellElement> & import('react').RefAttributes<HTMLTableCellElement>>;
|
|
8
|
+
export { Table, TableHeader, TableBody, TableRow, TableHead, TableCell };
|
package/dist/Tabs.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface TabsProps {
|
|
3
|
+
defaultValue: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function Tabs({ defaultValue, value, onChange, children, className, }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function TabsList({ children, className, }: {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
interface TabsTriggerProps {
|
|
15
|
+
value: string;
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
className?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare function TabsTrigger({ value, children, className, disabled, }: TabsTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
interface TabsContentProps {
|
|
22
|
+
value: string;
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare function TabsContent({ value, children, className }: TabsContentProps): import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, type TabsProps, type TabsTriggerProps, type TabsContentProps, };
|
package/dist/Tag.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
type TagVariant = "default" | "primary" | "success" | "warning" | "danger" | "info";
|
|
3
|
+
interface TagProps extends HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
variant?: TagVariant;
|
|
5
|
+
removable?: boolean;
|
|
6
|
+
onRemove?: () => void;
|
|
7
|
+
icon?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare const Tag: import('react').ForwardRefExoticComponent<TagProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
export { Tag, type TagProps, type TagVariant };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
type TextareaResize = "none" | "vertical" | "both";
|
|
3
|
+
interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
+
error?: boolean;
|
|
5
|
+
resize?: TextareaResize;
|
|
6
|
+
}
|
|
7
|
+
declare const Textarea: import('react').ForwardRefExoticComponent<TextareaProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
8
|
+
export { Textarea, type TextareaProps, type TextareaResize };
|
package/dist/Toast.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type ToastVariant = "info" | "success" | "warning" | "danger";
|
|
3
|
+
interface ToastData {
|
|
4
|
+
id: string;
|
|
5
|
+
variant: ToastVariant;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
duration?: number;
|
|
9
|
+
}
|
|
10
|
+
interface ToastContextValue {
|
|
11
|
+
toast: (data: Omit<ToastData, "id">) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function useToast(): ToastContextValue;
|
|
14
|
+
interface ToastProviderProps {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
maxToasts?: number;
|
|
17
|
+
}
|
|
18
|
+
declare function ToastProvider({ children, maxToasts }: ToastProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { ToastProvider, type ToastData, type ToastVariant, type ToastProviderProps, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type TooltipSide = "top" | "bottom" | "left" | "right";
|
|
3
|
+
interface TooltipProps {
|
|
4
|
+
content: ReactNode;
|
|
5
|
+
side?: TooltipSide;
|
|
6
|
+
delay?: number;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function Tooltip({ content, side, delay, children, className, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Tooltip, type TooltipProps, type TooltipSide };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useDebounce<T>(value: T, delay?: number): T;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* useSpotlight — Tracks mouse position relative to an element
|
|
4
|
+
* and sets CSS custom properties (--mouse-x, --mouse-y) for
|
|
5
|
+
* radial gradient border effects (the "moving sheen").
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
* const { ref, onMouseMove, onMouseLeave } = useSpotlight<HTMLDivElement>();
|
|
9
|
+
* <div ref={ref} onMouseMove={onMouseMove} onMouseLeave={onMouseLeave} />
|
|
10
|
+
*/
|
|
11
|
+
export declare function useSpotlight<T extends HTMLElement = HTMLDivElement>(): {
|
|
12
|
+
ref: RefObject<T | null>;
|
|
13
|
+
onMouseMove: (e: React.MouseEvent<T>) => void;
|
|
14
|
+
onMouseLeave: () => void;
|
|
15
|
+
};
|