@agenticindiedev/ui 0.2.3 → 0.3.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/README.md +258 -54
- package/dist/index.cjs +15 -15
- package/dist/index.d.ts +248 -0
- package/dist/index.js +5465 -4039
- package/dist/styles.css +407 -394
- package/dist/tailwind.preset.js +91 -0
- package/dist/themes/dark.scss +57 -0
- package/dist/themes/light.scss +57 -0
- package/package.json +7 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
2
|
+
import { Action } from '@radix-ui/react-toast';
|
|
1
3
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
2
4
|
import type * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
5
|
import { ClassProp } from 'class-variance-authority/types';
|
|
4
6
|
import { ClassValue } from 'clsx';
|
|
7
|
+
import { Close } from '@radix-ui/react-toast';
|
|
5
8
|
import { ColumnDef } from '@tanstack/react-table';
|
|
9
|
+
import { Content } from '@radix-ui/react-accordion';
|
|
10
|
+
import { Description } from '@radix-ui/react-toast';
|
|
6
11
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
12
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
8
13
|
import { JSX } from 'react/jsx-runtime';
|
|
@@ -11,13 +16,43 @@ import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
|
11
16
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
12
17
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
13
18
|
import * as React_2 from 'react';
|
|
19
|
+
import { Root } from '@radix-ui/react-toast';
|
|
14
20
|
import type * as SelectPrimitive from '@radix-ui/react-select';
|
|
15
21
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
16
22
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
17
23
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
18
24
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
25
|
+
import { Title } from '@radix-ui/react-toast';
|
|
26
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
19
27
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
28
|
+
import { Trigger } from '@radix-ui/react-accordion';
|
|
20
29
|
import { VariantProps } from 'class-variance-authority';
|
|
30
|
+
import { Viewport } from '@radix-ui/react-toast';
|
|
31
|
+
|
|
32
|
+
export declare const Accordion: React_2.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React_2.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
|
|
34
|
+
export declare const AccordionContent: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
35
|
+
|
|
36
|
+
export declare interface AccordionContentProps extends React.ComponentPropsWithoutRef<Content> {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export declare const AccordionItem: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
40
|
+
variant?: "default" | "ghost" | "bordered" | null | undefined;
|
|
41
|
+
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
|
|
43
|
+
export declare interface AccordionItemProps extends React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>, VariantProps<typeof accordionItemVariants> {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare const accordionItemVariants: (props?: ({
|
|
47
|
+
variant?: "default" | "ghost" | "bordered" | null | undefined;
|
|
48
|
+
} & ClassProp) | undefined) => string;
|
|
49
|
+
|
|
50
|
+
export declare type AccordionProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
|
|
51
|
+
|
|
52
|
+
export declare const AccordionTrigger: React_2.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
53
|
+
|
|
54
|
+
export declare interface AccordionTriggerProps extends React.ComponentPropsWithoutRef<Trigger> {
|
|
55
|
+
}
|
|
21
56
|
|
|
22
57
|
export declare const Alert: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
23
58
|
variant?: "default" | "destructive" | null | undefined;
|
|
@@ -66,6 +101,32 @@ export declare const badgeVariants: (props?: ({
|
|
|
66
101
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
67
102
|
} & ClassProp) | undefined) => string;
|
|
68
103
|
|
|
104
|
+
export declare interface BreadcrumbItem {
|
|
105
|
+
label: string;
|
|
106
|
+
href?: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare interface BreadcrumbItem_2 {
|
|
110
|
+
label: string;
|
|
111
|
+
href?: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export declare const Breadcrumbs: React_2.ForwardRefExoticComponent<BreadcrumbsProps_2 & React_2.RefAttributes<HTMLElement>>;
|
|
115
|
+
|
|
116
|
+
export declare interface BreadcrumbsProps extends React.HTMLAttributes<HTMLElement> {
|
|
117
|
+
items: BreadcrumbItem[];
|
|
118
|
+
separator?: React.ReactNode;
|
|
119
|
+
showHome?: boolean;
|
|
120
|
+
homeHref?: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
declare interface BreadcrumbsProps_2 extends React_2.HTMLAttributes<HTMLElement> {
|
|
124
|
+
items: BreadcrumbItem_2[];
|
|
125
|
+
separator?: React_2.ReactNode;
|
|
126
|
+
showHome?: boolean;
|
|
127
|
+
homeHref?: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
69
130
|
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
70
131
|
|
|
71
132
|
export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -242,6 +303,16 @@ export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<Drop
|
|
|
242
303
|
export declare interface DropdownMenuTriggerProps extends React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Trigger> {
|
|
243
304
|
}
|
|
244
305
|
|
|
306
|
+
/**
|
|
307
|
+
* Get the current theme from localStorage or system preference
|
|
308
|
+
*/
|
|
309
|
+
export declare function getTheme(): Theme;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Initialize theme on page load
|
|
313
|
+
*/
|
|
314
|
+
export declare function initTheme(): Theme;
|
|
315
|
+
|
|
245
316
|
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
246
317
|
|
|
247
318
|
export declare interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'>, VariantProps<typeof inputVariants> {
|
|
@@ -263,6 +334,115 @@ export declare interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelE
|
|
|
263
334
|
|
|
264
335
|
export declare const labelVariants: (props?: ClassProp | undefined) => string;
|
|
265
336
|
|
|
337
|
+
export declare const Link: React_2.ForwardRefExoticComponent<LinkProps_2 & React_2.RefAttributes<HTMLAnchorElement>>;
|
|
338
|
+
|
|
339
|
+
export declare interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
340
|
+
asChild?: boolean;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
declare interface LinkProps_2 extends React_2.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
344
|
+
asChild?: boolean;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export declare const linkVariants: (props?: ({
|
|
348
|
+
variant?: "default" | "secondary" | "primary" | "muted" | null | undefined;
|
|
349
|
+
underline?: "none" | "hover" | "always" | null | undefined;
|
|
350
|
+
} & ClassProp) | undefined) => string;
|
|
351
|
+
|
|
352
|
+
export declare const Loading: React_2.ForwardRefExoticComponent<LoadingProps_2 & React_2.RefAttributes<HTMLDivElement>>;
|
|
353
|
+
|
|
354
|
+
export declare interface LoadingProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof loadingVariants> {
|
|
355
|
+
text?: string;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
declare interface LoadingProps_2 extends React_2.HTMLAttributes<HTMLDivElement>, VariantProps<typeof loadingVariants> {
|
|
359
|
+
text?: string;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export declare const loadingVariants: (props?: ({
|
|
363
|
+
variant?: "spinner" | "dots" | "bars" | "pulse" | null | undefined;
|
|
364
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
365
|
+
} & ClassProp) | undefined) => string;
|
|
366
|
+
|
|
367
|
+
export declare const Menu: React_2.ForwardRefExoticComponent<MenuProps_2 & React_2.RefAttributes<HTMLElement>>;
|
|
368
|
+
|
|
369
|
+
export declare interface MenuItem {
|
|
370
|
+
label: string;
|
|
371
|
+
href?: string;
|
|
372
|
+
onClick?: () => void;
|
|
373
|
+
active?: boolean;
|
|
374
|
+
disabled?: boolean;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
declare interface MenuItem_2 {
|
|
378
|
+
label: string;
|
|
379
|
+
href?: string;
|
|
380
|
+
onClick?: () => void;
|
|
381
|
+
active?: boolean;
|
|
382
|
+
disabled?: boolean;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export declare const menuItemVariants: (props?: ({
|
|
386
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
387
|
+
active?: boolean | null | undefined;
|
|
388
|
+
} & ClassProp) | undefined) => string;
|
|
389
|
+
|
|
390
|
+
export declare interface MenuProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof menuVariants> {
|
|
391
|
+
items: MenuItem[];
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
declare interface MenuProps_2 extends React_2.HTMLAttributes<HTMLElement>, VariantProps<typeof menuVariants> {
|
|
395
|
+
items: MenuItem_2[];
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
export declare const menuVariants: (props?: ({
|
|
399
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
400
|
+
} & ClassProp) | undefined) => string;
|
|
401
|
+
|
|
402
|
+
export declare const Navbar: React_2.ForwardRefExoticComponent<NavbarProps_2 & React_2.RefAttributes<HTMLElement>>;
|
|
403
|
+
|
|
404
|
+
export declare interface NavbarProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof navbarVariants> {
|
|
405
|
+
brand?: React.ReactNode;
|
|
406
|
+
items?: MenuItem[];
|
|
407
|
+
actions?: React.ReactNode;
|
|
408
|
+
mobileMenuOpen?: boolean;
|
|
409
|
+
onMobileMenuToggle?: (open: boolean) => void;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
declare interface NavbarProps_2 extends React_2.HTMLAttributes<HTMLElement>, VariantProps<typeof navbarVariants> {
|
|
413
|
+
brand?: React_2.ReactNode;
|
|
414
|
+
items?: MenuItem[];
|
|
415
|
+
actions?: React_2.ReactNode;
|
|
416
|
+
mobileMenuOpen?: boolean;
|
|
417
|
+
onMobileMenuToggle?: (open: boolean) => void;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
export declare const navbarVariants: (props?: ({
|
|
421
|
+
variant?: "default" | "elevated" | "bordered" | null | undefined;
|
|
422
|
+
} & ClassProp) | undefined) => string;
|
|
423
|
+
|
|
424
|
+
export declare const Pagination: React_2.ForwardRefExoticComponent<PaginationProps_2 & React_2.RefAttributes<HTMLElement>>;
|
|
425
|
+
|
|
426
|
+
export declare interface PaginationProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof paginationVariants> {
|
|
427
|
+
currentPage: number;
|
|
428
|
+
totalPages: number;
|
|
429
|
+
onPageChange: (page: number) => void;
|
|
430
|
+
showFirstLast?: boolean;
|
|
431
|
+
maxVisible?: number;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
declare interface PaginationProps_2 extends React_2.HTMLAttributes<HTMLElement>, VariantProps<typeof paginationVariants> {
|
|
435
|
+
currentPage: number;
|
|
436
|
+
totalPages: number;
|
|
437
|
+
onPageChange: (page: number) => void;
|
|
438
|
+
showFirstLast?: boolean;
|
|
439
|
+
maxVisible?: number;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export declare const paginationVariants: (props?: ({
|
|
443
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
444
|
+
} & ClassProp) | undefined) => string;
|
|
445
|
+
|
|
266
446
|
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
267
447
|
|
|
268
448
|
export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -320,6 +500,11 @@ export declare const Separator: React_2.ForwardRefExoticComponent<Omit<Separator
|
|
|
320
500
|
export declare interface SeparatorProps extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {
|
|
321
501
|
}
|
|
322
502
|
|
|
503
|
+
/**
|
|
504
|
+
* Set the theme and persist to localStorage
|
|
505
|
+
*/
|
|
506
|
+
export declare function setTheme(theme: Theme): void;
|
|
507
|
+
|
|
323
508
|
export declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): JSX.Element;
|
|
324
509
|
|
|
325
510
|
export declare interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -403,6 +588,63 @@ export declare interface TextareaProps extends React.TextareaHTMLAttributes<HTML
|
|
|
403
588
|
declare interface TextareaProps_2 extends React_2.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
404
589
|
}
|
|
405
590
|
|
|
591
|
+
export declare type Theme = keyof typeof themes;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* All available themes
|
|
595
|
+
*/
|
|
596
|
+
declare const themes: {
|
|
597
|
+
readonly light: "light";
|
|
598
|
+
readonly dark: "dark";
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
export declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
602
|
+
variant?: "default" | "success" | "warning" | "error" | "info" | null | undefined;
|
|
603
|
+
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
|
|
604
|
+
|
|
605
|
+
export declare const ToastAction: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
606
|
+
|
|
607
|
+
export declare type ToastActionElement = React_2.ReactElement<typeof ToastAction>;
|
|
608
|
+
|
|
609
|
+
export declare interface ToastActionProps extends React.ComponentPropsWithoutRef<Action> {
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
export declare const ToastClose: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
613
|
+
|
|
614
|
+
export declare interface ToastCloseProps extends React.ComponentPropsWithoutRef<Close> {
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export declare const ToastDescription: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
618
|
+
|
|
619
|
+
export declare interface ToastDescriptionProps extends React.ComponentPropsWithoutRef<Description> {
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export declare interface ToastProps extends React.ComponentPropsWithoutRef<Root>, VariantProps<typeof toastVariants> {
|
|
623
|
+
title?: string;
|
|
624
|
+
description?: string;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export declare const ToastProvider: React_2.FC<ToastPrimitives.ToastProviderProps>;
|
|
628
|
+
|
|
629
|
+
export declare const ToastTitle: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
630
|
+
|
|
631
|
+
export declare interface ToastTitleProps extends React.ComponentPropsWithoutRef<Title> {
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
declare const toastVariants: (props?: ({
|
|
635
|
+
variant?: "default" | "success" | "warning" | "error" | "info" | null | undefined;
|
|
636
|
+
} & ClassProp) | undefined) => string;
|
|
637
|
+
|
|
638
|
+
export declare const ToastViewport: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React_2.RefAttributes<HTMLOListElement>, "ref"> & React_2.RefAttributes<HTMLOListElement>>;
|
|
639
|
+
|
|
640
|
+
export declare interface ToastViewportProps extends React.ComponentPropsWithoutRef<Viewport> {
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Toggle between light and dark themes
|
|
645
|
+
*/
|
|
646
|
+
export declare function toggleTheme(): Theme;
|
|
647
|
+
|
|
406
648
|
export declare const Tooltip: React_2.FC<TooltipPrimitive.TooltipProps>;
|
|
407
649
|
|
|
408
650
|
export declare const TooltipContent: React_2.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -420,4 +662,10 @@ export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPr
|
|
|
420
662
|
export declare interface TooltipTriggerProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger> {
|
|
421
663
|
}
|
|
422
664
|
|
|
665
|
+
/**
|
|
666
|
+
* Watch for system preference changes
|
|
667
|
+
* Returns a cleanup function to stop watching
|
|
668
|
+
*/
|
|
669
|
+
export declare function watchSystemPreference(callback?: (theme: Theme) => void): () => void;
|
|
670
|
+
|
|
423
671
|
export { }
|