@retrodevs/ui-library 0.4.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,7 @@
1
+ import { Accordion as Accordion_2 } from '@base-ui/react/accordion';
2
+ import { AccordionItemProps } from '@base-ui/react';
3
+ import { AccordionPanelProps } from '@base-ui/react';
4
+ import { AccordionTriggerProps } from '@base-ui/react';
1
5
  import { AlertDialog as AlertDialog_2 } from '@base-ui/react/alert-dialog';
2
6
  import { AutocompleteInputProps } from '@base-ui/react';
3
7
  import { AutocompleteTriggerProps } from '@base-ui/react';
@@ -7,8 +11,12 @@ import { AvatarRootProps } from '@base-ui/react';
7
11
  import { CheckboxRootProps } from '@base-ui/react';
8
12
  import { ClassProp } from 'class-variance-authority/types';
9
13
  import { ClassValue } from 'clsx';
14
+ import { Collapsible as Collapsible_2 } from '@base-ui/react/collapsible';
15
+ import { CollapsiblePanelProps } from '@base-ui/react';
16
+ import { CollapsibleTriggerProps } from '@base-ui/react';
10
17
  import { Combobox as Combobox_2 } from '@base-ui/react/combobox';
11
18
  import { ComboboxClearProps } from '@base-ui/react';
19
+ import { Component } from 'react';
12
20
  import { ComponentRenderFn } from '@base-ui/react';
13
21
  import { ControllerRenderProps } from 'react-hook-form';
14
22
  import { DayPicker } from 'react-day-picker';
@@ -21,6 +29,7 @@ import { DialogPopupProps } from '@base-ui/react';
21
29
  import { DialogPortalProps } from '@base-ui/react';
22
30
  import { DialogTitleProps } from '@base-ui/react';
23
31
  import { DialogTriggerProps } from '@base-ui/react';
32
+ import { ErrorInfo } from 'react';
24
33
  import { FieldError } from 'react-hook-form';
25
34
  import { FieldValues } from 'react-hook-form';
26
35
  import { FormProviderProps } from 'react-hook-form';
@@ -29,16 +38,22 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
29
38
  import { Menu } from '@base-ui/react/menu';
30
39
  import { MenuTriggerProps } from '@base-ui/react';
31
40
  import { NativeButtonProps } from 'node_modules/@base-ui/react/esm/utils/types';
41
+ import { OTPInput } from 'input-otp';
32
42
  import { Path } from 'react-hook-form';
33
43
  import { Popover as Popover_2 } from '@base-ui/react/popover';
34
44
  import { PopoverTriggerState } from '@base-ui/react';
35
45
  import { Progress as Progress_2 } from '@base-ui/react/progress';
46
+ import { RadioGroupProps } from '@base-ui/react';
47
+ import { RadioRootProps } from '@base-ui/react';
36
48
  import * as React_2 from 'react';
37
49
  import { ReactElement } from 'react';
38
50
  import { ReactNode } from 'react';
39
51
  import * as RechartsPrimitive from 'recharts';
52
+ import { ScrollArea as ScrollArea_2 } from '@base-ui/react/scroll-area';
53
+ import { ScrollAreaScrollbarProps } from '@base-ui/react';
40
54
  import { Select as Select_2 } from '@base-ui/react/select';
41
55
  import { SelectTriggerProps } from '@base-ui/react';
56
+ import { SeparatorProps } from '@base-ui/react';
42
57
  import { Slider as Slider_2 } from '@base-ui/react/slider';
43
58
  import { SliderThumbProps } from '@base-ui/react';
44
59
  import { SwitchRootProps } from '@base-ui/react';
@@ -48,11 +63,20 @@ import { TabsRootProps } from '@base-ui/react';
48
63
  import { TabsTabProps } from '@base-ui/react';
49
64
  import { ToasterProps } from 'sonner';
50
65
  import { Tooltip as Tooltip_2 } from '@base-ui/react/tooltip';
66
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
51
67
  import { UseEmblaCarouselType } from 'embla-carousel-react';
52
68
  import { UseFormReturn } from 'react-hook-form';
53
69
  import { VariantProps } from 'class-variance-authority';
54
70
  import { WithBaseUIEvent } from 'node_modules/@base-ui/react/esm/utils/types';
55
71
 
72
+ export declare function Accordion({ ...props }: React_2.ComponentProps<typeof Accordion_2.Root>): JSX_2.Element;
73
+
74
+ export declare const AccordionContent: React_2.ForwardRefExoticComponent<Omit<Omit<AccordionPanelProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
75
+
76
+ export declare const AccordionItem: React_2.ForwardRefExoticComponent<Omit<Omit<AccordionItemProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
77
+
78
+ export declare const AccordionTrigger: React_2.ForwardRefExoticComponent<Omit<Omit<AccordionTriggerProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
79
+
56
80
  /**
57
81
  * AlertDialog root component.
58
82
  * Controls the open/closed state of the alert dialog.
@@ -165,6 +189,29 @@ export declare const AlertDialogTitle: React_2.ForwardRefExoticComponent<Omit<Om
165
189
  */
166
190
  export declare const AlertDialogTrigger: AlertDialog_2.Trigger;
167
191
 
192
+ export declare function AsyncResourceSearch<T>({ placeholder, minQueryLength, debounceMs, fetchResults, getItemId, renderPrimary, renderSecondary, renderBadge, onSelect, className, inputClassName, }: AsyncResourceSearchProps<T>): JSX_2.Element;
193
+
194
+ export declare interface AsyncResourceSearchProps<T> {
195
+ placeholder?: string;
196
+ minQueryLength?: number;
197
+ debounceMs?: number;
198
+ fetchResults: (query: string) => Promise<T[]>;
199
+ getItemId: (item: T) => string;
200
+ renderPrimary: (item: T) => React_2.ReactNode;
201
+ renderSecondary?: (item: T) => React_2.ReactNode;
202
+ renderBadge?: (item: T) => React_2.ReactNode;
203
+ onSelect: (item: T) => void;
204
+ className?: string;
205
+ inputClassName?: string;
206
+ }
207
+
208
+ export declare interface AutocompleteOption<T> {
209
+ label: string;
210
+ value: string;
211
+ data: T;
212
+ isTyped?: boolean;
213
+ }
214
+
168
215
  /**
169
216
  * Avatar container component.
170
217
  * Wraps AvatarImage and AvatarFallback to display user avatars.
@@ -205,6 +252,18 @@ export declare const AvatarFallback: React_2.ForwardRefExoticComponent<Omit<Omit
205
252
  */
206
253
  export declare const AvatarImage: React_2.ForwardRefExoticComponent<Omit<Omit<AvatarImageProps, "ref"> & React_2.RefAttributes<HTMLImageElement>, "ref"> & React_2.RefAttributes<HTMLImageElement>>;
207
254
 
255
+ export declare function Badge({ className, variant, asChild, ...props }: BadgeProps): JSX_2.Element;
256
+
257
+ export declare interface BadgeProps extends React_2.ComponentProps<"span">, BadgeVariants {
258
+ asChild?: boolean;
259
+ }
260
+
261
+ export declare type BadgeVariants = VariantProps<typeof badgeVariants>;
262
+
263
+ export declare const badgeVariants: (props?: ({
264
+ variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "new" | "transit-destructive" | "transit-warning" | "transit-success" | "transit-blue" | null | undefined;
265
+ } & ClassProp) | undefined) => string;
266
+
208
267
  export declare function BaseAvatar({ src, alt, fallback, size, className, defaultImage }: CustomAvatarProps): JSX_2.Element;
209
268
 
210
269
  /**
@@ -441,7 +500,7 @@ export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLBu
441
500
  export declare type ButtonVariants = VariantProps<typeof buttonVariants>;
442
501
 
443
502
  export declare const buttonVariants: (props?: ({
444
- variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
503
+ variant?: "link" | "default" | "destructive" | "destructiveMuted" | "outline" | "outlineBold" | "outline_pagination" | "secondary" | "ghost" | "blue" | "black" | null | undefined;
445
504
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
446
505
  } & ClassProp) | undefined) => string;
447
506
 
@@ -554,6 +613,14 @@ export declare function CardHeader({ className, ...props }: React_2.ComponentPro
554
613
  */
555
614
  export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
556
615
 
616
+ export declare function CardWrapper({ children, className, onClick }: CardWrapperProps): JSX_2.Element;
617
+
618
+ export declare interface CardWrapperProps {
619
+ children: React_2.ReactNode;
620
+ className?: string;
621
+ onClick?: () => void;
622
+ }
623
+
557
624
  /**
558
625
  * Carousel root component.
559
626
  * Creates a carousel/slider with navigation and indicators.
@@ -696,6 +763,12 @@ export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<Omit<Check
696
763
 
697
764
  export declare function cn(...inputs: ClassValue[]): string;
698
765
 
766
+ export declare function Collapsible({ ...props }: React_2.ComponentProps<typeof Collapsible_2.Root>): JSX_2.Element;
767
+
768
+ export declare const CollapsibleContent: React_2.ForwardRefExoticComponent<Omit<Omit<CollapsiblePanelProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
769
+
770
+ export declare const CollapsibleTrigger: React_2.ForwardRefExoticComponent<Omit<Omit<CollapsibleTriggerProps, "ref"> & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
771
+
699
772
  /**
700
773
  * Combobox root component.
701
774
  * Controls the open/closed state, value, and input value of the combobox.
@@ -855,6 +928,103 @@ export declare const ComboboxTrigger: React_2.ForwardRefExoticComponent<Omit<Omi
855
928
  */
856
929
  export declare function ComboboxValue({ ...props }: React_2.ComponentProps<typeof Combobox_2.Value>): JSX_2.Element;
857
930
 
931
+ export declare const Command: React_2.ForwardRefExoticComponent<Omit<{
932
+ children?: React_2.ReactNode;
933
+ } & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
934
+ ref?: React_2.Ref<HTMLDivElement>;
935
+ } & {
936
+ asChild?: boolean;
937
+ }, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & {
938
+ label?: string;
939
+ shouldFilter?: boolean;
940
+ filter?: (value: string, search: string, keywords?: string[]) => number;
941
+ defaultValue?: string;
942
+ value?: string;
943
+ onValueChange?: (value: string) => void;
944
+ loop?: boolean;
945
+ disablePointerSelection?: boolean;
946
+ vimBindings?: boolean;
947
+ } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
948
+
949
+ export declare function CommandDialog({ children, classNames, ...props }: CommandDialogProps): JSX_2.Element;
950
+
951
+ export declare interface CommandDialogProps extends Omit<React_2.ComponentProps<typeof Dialog>, "children"> {
952
+ children?: React_2.ReactNode;
953
+ classNames?: {
954
+ content?: string;
955
+ command?: string;
956
+ };
957
+ }
958
+
959
+ export declare const CommandEmpty: React_2.ForwardRefExoticComponent<Omit<{
960
+ children?: React_2.ReactNode;
961
+ } & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
962
+ ref?: React_2.Ref<HTMLDivElement>;
963
+ } & {
964
+ asChild?: boolean;
965
+ }, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
966
+
967
+ export declare const CommandGroup: React_2.ForwardRefExoticComponent<Omit<{
968
+ children?: React_2.ReactNode;
969
+ } & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
970
+ ref?: React_2.Ref<HTMLDivElement>;
971
+ } & {
972
+ asChild?: boolean;
973
+ }, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
974
+ heading?: React_2.ReactNode;
975
+ value?: string;
976
+ forceMount?: boolean;
977
+ } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
978
+
979
+ export declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React_2.InputHTMLAttributes<HTMLInputElement>> & {
980
+ ref?: React_2.Ref<HTMLInputElement>;
981
+ } & {
982
+ asChild?: boolean;
983
+ }, "key" | "asChild" | keyof React_2.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
984
+ value?: string;
985
+ onValueChange?: (search: string) => void;
986
+ } & React_2.RefAttributes<HTMLInputElement>, "ref"> & {
987
+ wrapperClassName?: string;
988
+ } & React_2.RefAttributes<HTMLInputElement>>;
989
+
990
+ export declare const CommandItem: React_2.ForwardRefExoticComponent<Omit<{
991
+ children?: React_2.ReactNode;
992
+ } & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
993
+ ref?: React_2.Ref<HTMLDivElement>;
994
+ } & {
995
+ asChild?: boolean;
996
+ }, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "value" | "disabled"> & {
997
+ disabled?: boolean;
998
+ onSelect?: (value: string) => void;
999
+ value?: string;
1000
+ keywords?: string[];
1001
+ forceMount?: boolean;
1002
+ } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
1003
+
1004
+ export declare const CommandList: React_2.ForwardRefExoticComponent<Omit<{
1005
+ children?: React_2.ReactNode;
1006
+ } & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
1007
+ ref?: React_2.Ref<HTMLDivElement>;
1008
+ } & {
1009
+ asChild?: boolean;
1010
+ }, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & {
1011
+ label?: string;
1012
+ } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
1013
+
1014
+ export declare const CommandSeparator: React_2.ForwardRefExoticComponent<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
1015
+ ref?: React_2.Ref<HTMLDivElement>;
1016
+ } & {
1017
+ asChild?: boolean;
1018
+ }, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & {
1019
+ alwaysRender?: boolean;
1020
+ } & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
1021
+
1022
+ export declare function CommandShortcut({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
1023
+
1024
+ export declare namespace CommandShortcut {
1025
+ var displayName: string;
1026
+ }
1027
+
858
1028
  declare interface CustomAvatarProps {
859
1029
  /** The source URL of the avatar image */
860
1030
  src?: string | null;
@@ -1045,7 +1215,10 @@ export declare function DialogClose({ ...props }: React_2.ComponentProps<typeof
1045
1215
  * @param props.children - Dialog content
1046
1216
  * @returns Dialog content element
1047
1217
  */
1048
- export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<Omit<DialogPopupProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
1218
+ export declare const DialogContent: React_2.ForwardRefExoticComponent<Omit<Omit<DialogPopupProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
1219
+ /** @default true */
1220
+ showCloseButton?: boolean;
1221
+ } & React_2.RefAttributes<HTMLDivElement>>;
1049
1222
 
1050
1223
  /**
1051
1224
  * Dialog description component.
@@ -1170,6 +1343,70 @@ export declare function DropdownMenuSubTrigger({ className, inset, children, ...
1170
1343
 
1171
1344
  export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<Omit<MenuTriggerProps<unknown> & React_2.RefAttributes<HTMLElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
1172
1345
 
1346
+ export declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
1347
+ state: ErrorBoundaryState;
1348
+ static getDerivedStateFromError(error: Error): ErrorBoundaryState;
1349
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
1350
+ render(): string | number | boolean | Iterable<ReactNode> | JSX_2.Element | null | undefined;
1351
+ }
1352
+
1353
+ export declare interface ErrorBoundaryProps {
1354
+ children: ReactNode;
1355
+ fallback?: ReactNode;
1356
+ className?: string;
1357
+ }
1358
+
1359
+ declare interface ErrorBoundaryState {
1360
+ hasError: boolean;
1361
+ error: Error | null;
1362
+ }
1363
+
1364
+ export declare function FadeIn({ children, delay, duration, direction, className, }: FadeInProps): JSX_2.Element;
1365
+
1366
+ export declare function FadeInOnScroll({ children, delay, duration, direction, className, threshold, }: FadeInOnScrollProps): JSX_2.Element;
1367
+
1368
+ declare interface FadeInOnScrollProps {
1369
+ children: ReactNode;
1370
+ delay?: number;
1371
+ duration?: number;
1372
+ direction?: "up" | "down" | "left" | "right" | "none";
1373
+ className?: string;
1374
+ threshold?: number;
1375
+ }
1376
+
1377
+ declare interface FadeInProps {
1378
+ children: ReactNode;
1379
+ delay?: number;
1380
+ duration?: number;
1381
+ direction?: "up" | "down" | "left" | "right" | "none";
1382
+ className?: string;
1383
+ }
1384
+
1385
+ export declare function FadeInStagger({ children, delay, duration, staggerDelay, direction, className, }: FadeInStaggerProps): JSX_2.Element;
1386
+
1387
+ declare interface FadeInStaggerProps {
1388
+ children: ReactNode[];
1389
+ delay?: number;
1390
+ duration?: number;
1391
+ staggerDelay?: number;
1392
+ direction?: "up" | "down" | "left" | "right" | "none";
1393
+ className?: string;
1394
+ }
1395
+
1396
+ export declare function FloatingPanelShell({ open, onClose, title, icon, className, headerClassName, defaultMinimized, children, }: FloatingPanelShellProps): JSX_2.Element | null;
1397
+
1398
+ export declare interface FloatingPanelShellProps {
1399
+ open: boolean;
1400
+ onClose: () => void;
1401
+ title: string;
1402
+ icon?: React_2.ReactNode;
1403
+ className?: string;
1404
+ headerClassName?: string;
1405
+ /** When true, starts collapsed to a title bar */
1406
+ defaultMinimized?: boolean;
1407
+ children: React_2.ReactNode;
1408
+ }
1409
+
1173
1410
  /**
1174
1411
  * Form provider component.
1175
1412
  * Wraps form components and provides form context via react-hook-form.
@@ -1286,20 +1523,48 @@ declare interface ICustomSelectProps {
1286
1523
 
1287
1524
  /**
1288
1525
  * Input component for text, email, password, and other input types.
1289
- * Supports all standard input HTML attributes with consistent styling.
1290
- *
1291
- * @param props - Input component props (extends React.ComponentProps<"input">)
1292
- * @param props.className - Additional CSS classes
1293
- * @param props.type - Input type (text, email, password, number, etc.)
1294
- * @returns Input element
1295
- *
1296
- * @example
1297
- * ```tsx
1298
- * <Input type="email" placeholder="Enter your email" />
1299
- * <Input type="password" placeholder="Password" />
1300
- * ```
1301
1526
  */
1302
- export declare const Input: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
1527
+ export declare const Input: React_2.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
1528
+
1529
+ export declare function InputAutocomplete<T>({ title, placeholder, minQueryLength, debounceMs, loadOptions, getOptionLabel, getOptionValue, onSelect, defaultValue, allowTypedInput, className, inputClassName, listClassName, }: InputAutocompleteProps<T>): JSX_2.Element;
1530
+
1531
+ export declare interface InputAutocompleteProps<T> {
1532
+ title?: string;
1533
+ placeholder?: string;
1534
+ /** Minimum query length before calling `loadOptions` */
1535
+ minQueryLength?: number;
1536
+ debounceMs?: number;
1537
+ loadOptions: (query: string) => Promise<T[]>;
1538
+ getOptionLabel: (item: T) => string;
1539
+ getOptionValue: (item: T) => string;
1540
+ onSelect: (selected: T | string) => void;
1541
+ defaultValue?: T | null;
1542
+ allowTypedInput?: boolean;
1543
+ className?: string;
1544
+ inputClassName?: string;
1545
+ listClassName?: string;
1546
+ }
1547
+
1548
+ export declare function InputOTP({ className, containerClassName, ...props }: React_2.ComponentProps<typeof OTPInput> & {
1549
+ containerClassName?: string;
1550
+ }): JSX_2.Element;
1551
+
1552
+ export declare function InputOTPGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
1553
+
1554
+ export declare function InputOTPSeparator({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
1555
+
1556
+ export declare const InputOTPSlot: React_2.ForwardRefExoticComponent<Omit<React_2.ClassAttributes<HTMLDivElement> & React_2.HTMLAttributes<HTMLDivElement> & {
1557
+ index: number;
1558
+ }, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
1559
+
1560
+ export declare interface InputProps extends React_2.ComponentProps<"input">, InputVariants {
1561
+ }
1562
+
1563
+ export declare type InputVariants = VariantProps<typeof inputVariants>;
1564
+
1565
+ export declare const inputVariants: (props?: ({
1566
+ fieldSize?: "default" | "comfortable" | null | undefined;
1567
+ } & ClassProp) | undefined) => string;
1303
1568
 
1304
1569
  declare interface IPopoverControlledProps {
1305
1570
  /** Controlled open state */
@@ -1356,6 +1621,38 @@ export declare interface ITabProps {
1356
1621
  */
1357
1622
  export declare const Label: React_2.ForwardRefExoticComponent<React_2.LabelHTMLAttributes<HTMLLabelElement> & React_2.RefAttributes<HTMLLabelElement>>;
1358
1623
 
1624
+ export declare function LoadingFallback({ className, message }: LoadingFallbackProps): JSX_2.Element;
1625
+
1626
+ export declare interface LoadingFallbackProps {
1627
+ className?: string;
1628
+ message?: string;
1629
+ }
1630
+
1631
+ export declare function LoadingSpinner({ className }: LoadingSpinnerProps): JSX_2.Element;
1632
+
1633
+ export declare interface LoadingSpinnerProps {
1634
+ className?: string;
1635
+ }
1636
+
1637
+ export declare function Pagination({ className, ...props }: React_2.ComponentProps<"nav">): JSX_2.Element;
1638
+
1639
+ export declare function PaginationContent({ className, ...props }: React_2.ComponentProps<"ul">): JSX_2.Element;
1640
+
1641
+ export declare function PaginationEllipsis({ className, ...props }: React_2.ComponentProps<"span">): JSX_2.Element;
1642
+
1643
+ export declare function PaginationItem({ ...props }: React_2.ComponentProps<"li">): JSX_2.Element;
1644
+
1645
+ export declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): JSX_2.Element;
1646
+
1647
+ declare type PaginationLinkProps = React_2.ComponentProps<"a"> & {
1648
+ isActive?: boolean;
1649
+ size?: VariantProps<typeof buttonVariants>["size"];
1650
+ };
1651
+
1652
+ export declare function PaginationNext({ className, ...props }: PaginationLinkProps): JSX_2.Element;
1653
+
1654
+ export declare function PaginationPrevious({ className, ...props }: PaginationLinkProps): JSX_2.Element;
1655
+
1359
1656
  /**
1360
1657
  * Popover root component.
1361
1658
  * Controls the open/closed state of the popover.
@@ -1389,7 +1686,7 @@ export declare function PopoverContent({ className, align, sideOffset, ...props
1389
1686
  */
1390
1687
  export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<Omit<NativeButtonProps & Omit<WithBaseUIEvent<Omit<React_2.DetailedHTMLProps<React_2.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
1391
1688
  ref?: ((instance: HTMLButtonElement | null) => void | React_2.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React_2.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React_2.RefObject<HTMLButtonElement> | null | undefined;
1392
- }>, "className" | "defaultChecked" | "defaultValue" | "color"> & {
1689
+ }>, "className" | "color" | "defaultValue" | "defaultChecked"> & {
1393
1690
  className?: string | ((state: PopoverTriggerState) => string | undefined) | undefined;
1394
1691
  render?: React_2.ReactElement<any, string | React_2.JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps<any>, PopoverTriggerState> | undefined;
1395
1692
  style?: React_2.CSSProperties | ((state: PopoverTriggerState) => React_2.CSSProperties | undefined) | undefined;
@@ -1456,6 +1753,86 @@ export declare function ProgressTrack({ className, ...props }: React_2.Component
1456
1753
  */
1457
1754
  export declare function ProgressValue({ className, ...props }: React_2.ComponentProps<typeof Progress_2.Value>): JSX_2.Element;
1458
1755
 
1756
+ export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<Omit<RadioGroupProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
1757
+
1758
+ export declare const RadioGroupItem: React_2.ForwardRefExoticComponent<Omit<Omit<RadioRootProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref"> & React_2.RefAttributes<HTMLElement>>;
1759
+
1760
+ export declare function ScrollArea({ className, children, ...props }: React_2.ComponentProps<typeof ScrollArea_2.Root>): JSX_2.Element;
1761
+
1762
+ export declare const ScrollBar: React_2.ForwardRefExoticComponent<Omit<Omit<ScrollAreaScrollbarProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
1763
+ orientation?: "vertical" | "horizontal";
1764
+ } & React_2.RefAttributes<HTMLDivElement>>;
1765
+
1766
+ export declare function SearchEmptyState({ query, className }: SearchEmptyStateProps): JSX_2.Element;
1767
+
1768
+ export declare interface SearchEmptyStateProps {
1769
+ query: string;
1770
+ className?: string;
1771
+ }
1772
+
1773
+ export declare function SearchLoadingState({ className, rows }: SearchLoadingStateProps): JSX_2.Element;
1774
+
1775
+ export declare interface SearchLoadingStateProps {
1776
+ className?: string;
1777
+ rows?: number;
1778
+ }
1779
+
1780
+ export declare function SearchResultCard<T extends SearchResultLike = SearchResultLike>({ result, isHighlighted, onClick, className, classNames, renderIcon, formatTypeLabel, getTypeBadgeClassName, badgeVariant, }: SearchResultCardProps<T>): JSX_2.Element;
1781
+
1782
+ export declare interface SearchResultCardClassNames {
1783
+ root?: string;
1784
+ icon?: string;
1785
+ title?: string;
1786
+ description?: string;
1787
+ }
1788
+
1789
+ export declare interface SearchResultCardProps<T extends SearchResultLike = SearchResultLike> {
1790
+ result: T;
1791
+ isHighlighted?: boolean;
1792
+ onClick?: () => void;
1793
+ className?: string;
1794
+ classNames?: SearchResultCardClassNames;
1795
+ renderIcon?: (type: string) => React_2.ReactNode;
1796
+ formatTypeLabel?: (type: string) => string;
1797
+ /** Merged with Badge `className` for the type pill */
1798
+ getTypeBadgeClassName?: (type: string) => string | undefined;
1799
+ badgeVariant?: React_2.ComponentProps<typeof Badge>["variant"];
1800
+ }
1801
+
1802
+ /**
1803
+ * Minimal search result shape for presentational components.
1804
+ * Apps can extend with extra fields; use `render*` props for domain mapping.
1805
+ */
1806
+ export declare interface SearchResultLike {
1807
+ type: string;
1808
+ title: string;
1809
+ description: string;
1810
+ metadata?: {
1811
+ status?: string;
1812
+ trackingNumber?: string;
1813
+ poNumber?: string;
1814
+ [key: string]: unknown;
1815
+ };
1816
+ }
1817
+
1818
+ export declare function SearchSuggestions({ suggestions, onSelectSuggestion, className, }: SearchSuggestionsProps): JSX_2.Element | null;
1819
+
1820
+ export declare interface SearchSuggestionsProps {
1821
+ suggestions: string[];
1822
+ onSelectSuggestion: (suggestion: string) => void;
1823
+ className?: string;
1824
+ }
1825
+
1826
+ export declare function SearchTypeFilters<T extends string = string>({ availableTypes, selectedTypes, onToggleType, formatTypeLabel, className, }: SearchTypeFiltersProps<T>): JSX_2.Element | null;
1827
+
1828
+ export declare interface SearchTypeFiltersProps<T extends string = string> {
1829
+ availableTypes: T[];
1830
+ selectedTypes: T[];
1831
+ onToggleType: (type: T) => void;
1832
+ formatTypeLabel?: (type: T) => string;
1833
+ className?: string;
1834
+ }
1835
+
1459
1836
  /**
1460
1837
  * Select root component.
1461
1838
  * Controls the open/closed state and value of the select.
@@ -1523,6 +1900,8 @@ export declare const SelectTrigger: React_2.ForwardRefExoticComponent<Omit<Omit<
1523
1900
 
1524
1901
  export declare function SelectValue({ ...props }: React_2.ComponentProps<typeof Select_2.Value>): JSX_2.Element;
1525
1902
 
1903
+ export declare const Separator: React_2.ForwardRefExoticComponent<Omit<Omit<SeparatorProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
1904
+
1526
1905
  /**
1527
1906
  * Sheet root component.
1528
1907
  * Controls the open/closed state of the sheet.
@@ -1561,6 +1940,92 @@ export declare const SheetTitle: React_2.ForwardRefExoticComponent<Omit<Omit<Dia
1561
1940
 
1562
1941
  export declare const SheetTrigger: React_2.ForwardRefExoticComponent<Omit<DialogTriggerProps<unknown> & React_2.RefAttributes<HTMLElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
1563
1942
 
1943
+ export declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React_2.ComponentProps<"div"> & {
1944
+ side?: "left" | "right";
1945
+ variant?: "sidebar" | "floating" | "inset";
1946
+ collapsible?: "offcanvas" | "icon" | "none";
1947
+ }): JSX_2.Element;
1948
+
1949
+ export declare function SidebarContent({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
1950
+
1951
+ declare type SidebarContextProps = {
1952
+ state: "expanded" | "collapsed";
1953
+ open: boolean;
1954
+ setOpen: (open: boolean) => void;
1955
+ openMobile: boolean;
1956
+ setOpenMobile: (open: boolean) => void;
1957
+ isMobile: boolean;
1958
+ toggleSidebar: () => void;
1959
+ };
1960
+
1961
+ export declare function SidebarFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
1962
+
1963
+ export declare function SidebarGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
1964
+
1965
+ export declare function SidebarGroupAction({ className, asChild, ...props }: React_2.ComponentProps<"button"> & {
1966
+ asChild?: boolean;
1967
+ }): JSX_2.Element;
1968
+
1969
+ export declare function SidebarGroupContent({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
1970
+
1971
+ export declare function SidebarGroupLabel({ className, asChild, ...props }: React_2.ComponentProps<"div"> & {
1972
+ asChild?: boolean;
1973
+ }): JSX_2.Element;
1974
+
1975
+ export declare function SidebarHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
1976
+
1977
+ export declare function SidebarInput({ className, ...props }: React_2.ComponentProps<typeof Input>): JSX_2.Element;
1978
+
1979
+ export declare function SidebarInset({ className, ...props }: React_2.ComponentProps<"main">): JSX_2.Element;
1980
+
1981
+ export declare function SidebarMenu({ className, ...props }: React_2.ComponentProps<"ul">): JSX_2.Element;
1982
+
1983
+ export declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React_2.ComponentProps<"button"> & {
1984
+ asChild?: boolean;
1985
+ showOnHover?: boolean;
1986
+ }): JSX_2.Element;
1987
+
1988
+ export declare function SidebarMenuBadge({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
1989
+
1990
+ export declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, children, ...props }: React_2.ComponentProps<"button"> & {
1991
+ asChild?: boolean;
1992
+ isActive?: boolean;
1993
+ tooltip?: string | React_2.ComponentProps<typeof TooltipPrimitive.Content>;
1994
+ } & VariantProps<typeof sidebarMenuButtonVariants>): JSX_2.Element;
1995
+
1996
+ export declare const sidebarMenuButtonVariants: (props?: ({
1997
+ variant?: "default" | "outline" | null | undefined;
1998
+ size?: "default" | "sm" | "lg" | null | undefined;
1999
+ } & ClassProp) | undefined) => string;
2000
+
2001
+ export declare function SidebarMenuItem({ className, ...props }: React_2.ComponentProps<"li">): JSX_2.Element;
2002
+
2003
+ export declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React_2.ComponentProps<"div"> & {
2004
+ showIcon?: boolean;
2005
+ }): JSX_2.Element;
2006
+
2007
+ export declare function SidebarMenuSub({ className, ...props }: React_2.ComponentProps<"ul">): JSX_2.Element;
2008
+
2009
+ export declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React_2.ComponentProps<"a"> & {
2010
+ asChild?: boolean;
2011
+ size?: "sm" | "md";
2012
+ isActive?: boolean;
2013
+ }): JSX_2.Element;
2014
+
2015
+ export declare function SidebarMenuSubItem({ className, ...props }: React_2.ComponentProps<"li">): JSX_2.Element;
2016
+
2017
+ export declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React_2.ComponentProps<"div"> & {
2018
+ defaultOpen?: boolean;
2019
+ open?: boolean;
2020
+ onOpenChange?: (open: boolean) => void;
2021
+ }): JSX_2.Element;
2022
+
2023
+ export declare function SidebarRail({ className, ...props }: React_2.ComponentProps<"button">): JSX_2.Element;
2024
+
2025
+ export declare function SidebarSeparator({ className, ...props }: React_2.ComponentProps<typeof Separator>): JSX_2.Element;
2026
+
2027
+ export declare function SidebarTrigger({ className, onClick, ...props }: React_2.ComponentProps<typeof Button>): JSX_2.Element;
2028
+
1564
2029
  declare type SideDrawerVariantProps = VariantProps<typeof sideDrawerVariants>;
1565
2030
 
1566
2031
  /** Side drawer variant styles using class-variance-authority */
@@ -1578,6 +2043,8 @@ declare const sizeClasses: {
1578
2043
  full: string;
1579
2044
  };
1580
2045
 
2046
+ export declare function Skeleton({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
2047
+
1581
2048
  /**
1582
2049
  * Slider root component.
1583
2050
  * Controls the value and behavior of the slider.
@@ -1646,6 +2113,24 @@ export declare function SliderTrack({ className, ...props }: React_2.ComponentPr
1646
2113
  */
1647
2114
  export declare function SliderValue({ className, ...props }: React_2.ComponentProps<typeof Slider_2.Value>): JSX_2.Element;
1648
2115
 
2116
+ export declare function StarRating({ rating, onRatingChange, maxRating, size, readonly, className, classNames, }: StarRatingProps): JSX_2.Element;
2117
+
2118
+ export declare interface StarRatingClassNames {
2119
+ root?: string;
2120
+ starButton?: string;
2121
+ starIcon?: string;
2122
+ }
2123
+
2124
+ export declare interface StarRatingProps {
2125
+ rating: number;
2126
+ onRatingChange?: (rating: number) => void;
2127
+ maxRating?: number;
2128
+ size?: "sm" | "md" | "lg";
2129
+ readonly?: boolean;
2130
+ className?: string;
2131
+ classNames?: StarRatingClassNames;
2132
+ }
2133
+
1649
2134
  /**
1650
2135
  * Switch component for toggle input.
1651
2136
  * Provides accessible switch/toggle functionality with smooth animations.
@@ -1767,18 +2252,8 @@ declare interface TimePickerProps {
1767
2252
  /**
1768
2253
  * Toaster component for displaying toast notifications.
1769
2254
  * Integrates with next-themes for theme-aware styling.
1770
- *
1771
- * @param props - Toaster props (extends ToasterProps from sonner)
1772
- * @param props.position - Toast position (default: "bottom-right")
1773
- * @param props.richColors - Enable rich color variants
1774
- * @returns Toaster element
1775
- *
1776
- * @example
1777
- * ```tsx
1778
- * <Toaster position="top-right" />
1779
- * ```
1780
2255
  */
1781
- export declare const Toaster: ({ ...props }: ToasterProps) => JSX_2.Element;
2256
+ export declare const Toaster: ({ toastOptions, ...props }: ToasterProps) => JSX_2.Element;
1782
2257
 
1783
2258
  /**
1784
2259
  * Tooltip root component.
@@ -1824,6 +2299,8 @@ export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<Omit<Tool
1824
2299
 
1825
2300
  declare type UseCarouselParameters = Parameters<typeof default_2>;
1826
2301
 
2302
+ export declare function useDebouncedValue<T>(value: T, delayMs: number): T;
2303
+
1827
2304
  export declare const useFormField: () => {
1828
2305
  invalid: boolean;
1829
2306
  isDirty: boolean;
@@ -1837,4 +2314,17 @@ export declare const useFormField: () => {
1837
2314
  formMessageId: string;
1838
2315
  };
1839
2316
 
2317
+ /**
2318
+ * Returns true when the viewport width is below the mobile breakpoint.
2319
+ * SSR-safe: returns false until mounted, then updates from matchMedia.
2320
+ */
2321
+ export declare function useIsMobile(breakpointPx?: number): boolean;
2322
+
2323
+ /**
2324
+ * Subscribes to a CSS media query string (e.g. `(min-width: 1024px)`).
2325
+ */
2326
+ export declare function useMediaQuery(query: string): boolean;
2327
+
2328
+ export declare function useSidebar(): SidebarContextProps;
2329
+
1840
2330
  export { }