laif-ds 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/components/ui/button.js +1 -1
  2. package/dist/components/ui/card.js +41 -34
  3. package/dist/components/ui/data-table.js +122 -0
  4. package/dist/components/ui/toaster.js +26 -0
  5. package/dist/components/ui/typo.js +53 -0
  6. package/dist/dist/_virtual/jsx-runtime.js +6 -0
  7. package/dist/dist/_virtual/jsx-runtime2.js +5 -0
  8. package/dist/dist/_virtual/react-jsx-runtime.development.js +5 -0
  9. package/dist/dist/_virtual/react-jsx-runtime.production.js +5 -0
  10. package/dist/dist/components/ui/checkbox.js +32 -0
  11. package/dist/dist/components/ui/scroll-area.js +61 -0
  12. package/dist/dist/components/ui/table.js +87 -0
  13. package/dist/dist/lib/utils.js +9 -0
  14. package/dist/dist/node_modules/@radix-ui/number/dist/index.js +7 -0
  15. package/dist/dist/node_modules/@radix-ui/primitive/dist/index.js +10 -0
  16. package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +136 -0
  17. package/dist/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
  18. package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +56 -0
  19. package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +10 -0
  20. package/dist/dist/node_modules/@radix-ui/react-presence/dist/index.js +72 -0
  21. package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
  22. package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +534 -0
  23. package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +50 -0
  24. package/dist/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +14 -0
  25. package/dist/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +33 -0
  26. package/dist/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
  27. package/dist/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +9 -0
  28. package/dist/dist/node_modules/@radix-ui/react-use-size/dist/index.js +28 -0
  29. package/dist/dist/node_modules/clsx/dist/clsx.js +18 -0
  30. package/dist/dist/node_modules/lucide-react/dist/esm/Icon.js +41 -0
  31. package/dist/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +28 -0
  32. package/dist/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +21 -0
  33. package/dist/dist/node_modules/lucide-react/dist/esm/icons/check.js +13 -0
  34. package/dist/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +20 -0
  35. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +248 -0
  36. package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +36 -0
  37. package/dist/dist/node_modules/react/jsx-runtime.js +11 -0
  38. package/dist/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +2732 -0
  39. package/dist/index.d.ts +85 -18
  40. package/dist/index.js +253 -249
  41. package/dist/node_modules/@tanstack/react-table/build/lib/index.js +103 -0
  42. package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1896 -0
  43. package/dist/styles.css +1 -1
  44. package/package.json +9 -7
  45. package/dist/components/ui/sonner.js +0 -23
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
5
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
6
6
  import { ClassProp } from 'class-variance-authority/types';
7
7
  import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
8
+ import { ColumnDef } from '@tanstack/react-table';
8
9
  import { Command as Command_2 } from 'cmdk';
9
10
  import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
10
11
  import { ControllerProps } from 'react-hook-form';
@@ -25,12 +26,14 @@ import * as LabelPrimitive from '@radix-ui/react-label';
25
26
  import * as LucideIcons from 'lucide-react';
26
27
  import * as MenubarPrimitive from '@radix-ui/react-menubar';
27
28
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
29
+ import { OnChangeFn } from '@tanstack/react-table';
28
30
  import { OTPInput } from 'input-otp';
29
31
  import * as PopoverPrimitive from '@radix-ui/react-popover';
30
32
  import * as ProgressPrimitive from '@radix-ui/react-progress';
31
33
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
32
34
  import * as React_2 from 'react';
33
35
  import { ReactElement } from 'react';
36
+ import { ReactNode } from 'react';
34
37
  import * as RechartsPrimitive from 'recharts';
35
38
  import { RefAttributes } from 'react';
36
39
  import { RefObject } from 'react';
@@ -41,44 +44,72 @@ import * as SeparatorPrimitive from '@radix-ui/react-separator';
41
44
  import { Slot } from '@radix-ui/react-slot';
42
45
  import * as SwitchPrimitive from '@radix-ui/react-switch';
43
46
  import * as TabsPrimitive from '@radix-ui/react-tabs';
44
- import { ToasterProps } from 'sonner';
47
+ import { Toaster as Toaster_2 } from 'sonner';
45
48
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
46
49
  import * as TogglePrimitive from '@radix-ui/react-toggle';
47
50
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
48
51
  import { UseEmblaCarouselType } from 'embla-carousel-react';
49
52
  import { VariantProps } from 'class-variance-authority';
50
53
 
51
- export declare function Accordion({ ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Root>): JSX.Element;
54
+ export declare function Accordion({ ...props }: AccordionProps): JSX.Element;
52
55
 
53
- export declare function AccordionContent({ className, children, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Content>): JSX.Element;
56
+ export declare function AccordionContent({ className, children, ...props }: AccordionContentProps): JSX.Element;
54
57
 
55
- export declare function AccordionItem({ className, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Item>): JSX.Element;
58
+ declare type AccordionContentProps = React_2.ComponentProps<typeof AccordionPrimitive.Content>;
56
59
 
57
- export declare function AccordionTrigger({ className, children, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Trigger>): JSX.Element;
60
+ export declare function AccordionItem({ className, ...props }: AccordionItemProps): JSX.Element;
61
+
62
+ declare type AccordionItemProps = React_2.ComponentProps<typeof AccordionPrimitive.Item>;
63
+
64
+ declare type AccordionProps = React_2.ComponentProps<typeof AccordionPrimitive.Root>;
65
+
66
+ export declare function AccordionTrigger({ className, children, ...props }: AccordionTriggerProps): JSX.Element;
67
+
68
+ declare type AccordionTriggerProps = React_2.ComponentProps<typeof AccordionPrimitive.Trigger>;
58
69
 
59
70
  declare type AdditionalMessageOptions = Omit<ChatMessageProps, keyof Message>;
60
71
 
61
- export declare function Alert({ className, variant, ...props }: React_2.ComponentProps<"div"> & VariantProps<typeof alertVariants>): JSX.Element;
72
+ export declare function Alert({ className, variant, ...props }: AlertProps): JSX.Element;
62
73
 
63
74
  export declare function AlertDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
64
75
 
65
- export declare function AlertDialog({ ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Root>): JSX.Element;
76
+ export declare function AlertDialog({ ...props }: AlertDialogProps): JSX.Element;
77
+
78
+ export declare function AlertDialogAction({ className, ...props }: AlertDialogActionProps): JSX.Element;
79
+
80
+ declare type AlertDialogActionProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Action>;
81
+
82
+ export declare function AlertDialogCancel({ className, ...props }: AlertDialogCancelProps): JSX.Element;
83
+
84
+ declare type AlertDialogCancelProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Cancel>;
85
+
86
+ export declare function AlertDialogContent({ className, ...props }: AlertDialogContentProps): JSX.Element;
87
+
88
+ declare type AlertDialogContentProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Content>;
89
+
90
+ export declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): JSX.Element;
91
+
92
+ declare type AlertDialogDescriptionProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Description>;
93
+
94
+ export declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): JSX.Element;
95
+
96
+ declare type AlertDialogFooterProps = React_2.ComponentProps<"div">;
66
97
 
67
- export declare function AlertDialogAction({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Action>): JSX.Element;
98
+ export declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): JSX.Element;
68
99
 
69
- export declare function AlertDialogCancel({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Cancel>): JSX.Element;
100
+ declare type AlertDialogHeaderProps = React_2.ComponentProps<"div">;
70
101
 
71
- export declare function AlertDialogContent({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Content>): JSX.Element;
102
+ declare type AlertDialogProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Root>;
72
103
 
73
- export declare function AlertDialogDescription({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Description>): JSX.Element;
104
+ export declare function AlertDialogTitle({ className, ...props }: AlertDialogTitleProps): JSX.Element;
74
105
 
75
- export declare function AlertDialogFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
106
+ declare type AlertDialogTitleProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Title>;
76
107
 
77
- export declare function AlertDialogHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
108
+ export declare function AlertDialogTrigger({ ...props }: AlertDialogTriggerProps): JSX.Element;
78
109
 
79
- export declare function AlertDialogTitle({ className, ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Title>): JSX.Element;
110
+ declare type AlertDialogTriggerProps = React_2.ComponentProps<typeof AlertDialogPrimitive.Trigger>;
80
111
 
81
- export declare function AlertDialogTrigger({ ...props }: React_2.ComponentProps<typeof AlertDialogPrimitive.Trigger>): JSX.Element;
112
+ declare type AlertProps = React_2.ComponentProps<"div"> & VariantProps<typeof alertVariants>;
82
113
 
83
114
  export declare function AlertTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
84
115
 
@@ -88,7 +119,9 @@ declare const alertVariants: (props?: ({
88
119
 
89
120
  declare type Animation_2 = VariantProps<typeof chatBubbleVariants>["animation"];
90
121
 
91
- export declare function AspectRatio({ ...props }: React.ComponentProps<typeof AspectRatioPrimitive.Root>): JSX.Element;
122
+ export declare function AspectRatio({ ...props }: AspectRatioProps): JSX.Element;
123
+
124
+ declare type AspectRatioProps = React.ComponentProps<typeof AspectRatioPrimitive.Root>;
92
125
 
93
126
  export declare function AsyncSelect<T>({ fetcher, preload, filterFn, renderOption, getOptionValue, getDisplayValue, notFound, loadingSkeleton, label, labelClassName, placeholder, value, onChange, disabled, width, className, triggerClassName, noResultsMessage, clearable, size, }: AsyncSelectProps<T>): JSX.Element;
94
127
 
@@ -172,7 +205,7 @@ export declare const badgeVariants: (props?: ({
172
205
 
173
206
  export declare function Button({ className, variant, size, asChild, iconLeft, iconRight, ...props }: ButtonProps): JSX.Element;
174
207
 
175
- declare interface ButtonProps extends React_2.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
208
+ export declare interface ButtonProps extends React_2.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
176
209
  asChild?: boolean;
177
210
  iconLeft?: IconName;
178
211
  iconRight?: IconName;
@@ -185,7 +218,7 @@ export declare const buttonVariants: (props?: ({
185
218
 
186
219
  export declare function Calendar({ className, classNames, showOutsideDays, ...props }: React_2.ComponentProps<typeof DayPicker>): JSX.Element;
187
220
 
188
- export declare function Card({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
221
+ export declare function Card({ className, size, ...props }: CardProps): JSX.Element;
189
222
 
190
223
  export declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
191
224
 
@@ -195,6 +228,12 @@ export declare function CardFooter({ className, ...props }: React_2.ComponentPro
195
228
 
196
229
  export declare function CardHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
197
230
 
231
+ export declare interface CardProps extends React_2.ComponentProps<"div"> {
232
+ size?: CardSize;
233
+ }
234
+
235
+ declare type CardSize = "default" | "sm" | "lg";
236
+
198
237
  export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
199
238
 
200
239
  export declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React_2.ComponentProps<"div"> & CarouselProps): JSX.Element;
@@ -406,6 +445,23 @@ declare type CopyButtonProps = {
406
445
  copyMessage?: string;
407
446
  };
408
447
 
448
+ export declare function DataTable<TData, TValue>({ columns, data, loading, loadingComponent, emptyComponent, className, rowSelection, onRowSelectionChange, checkable, onCheckedRowsChange, notFoundMessage, loadingMessage }: DataTableProps<TData, TValue>): JSX.Element;
449
+
450
+ declare interface DataTableProps<TData, TValue> {
451
+ columns: ColumnDef<TData, TValue>[];
452
+ data: TData[];
453
+ loading?: boolean;
454
+ loadingComponent?: ReactNode;
455
+ emptyComponent?: ReactNode;
456
+ className?: string;
457
+ rowSelection?: Record<string, boolean>;
458
+ onRowSelectionChange?: OnChangeFn<Record<string, boolean>>;
459
+ checkable?: boolean;
460
+ onCheckedRowsChange?: (checkedRows: TData[]) => void;
461
+ notFoundMessage?: string;
462
+ loadingMessage?: string;
463
+ }
464
+
409
465
  export declare function DatePicker({ value, onChange, placeholder, dateFormat, className, buttonVariant, disabled, size, }: DatePickerProps): JSX.Element;
410
466
 
411
467
  declare interface DatePickerProps {
@@ -978,6 +1034,8 @@ declare const THEMES: {
978
1034
 
979
1035
  export declare const Toaster: ({ ...props }: ToasterProps) => JSX.Element;
980
1036
 
1037
+ declare type ToasterProps = React.ComponentProps<typeof Toaster_2>;
1038
+
981
1039
  export declare function Toggle({ className, variant, size, ...props }: React_2.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): JSX.Element;
982
1040
 
983
1041
  export declare function ToggleGroup({ className, variant, size, children, ...props }: React_2.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>): JSX.Element;
@@ -1022,6 +1080,15 @@ export declare function TooltipTrigger({ ...props }: React_2.ComponentProps<type
1022
1080
 
1023
1081
  export declare function TypingIndicator(): JSX.Element;
1024
1082
 
1083
+ export declare const Typo: React_2.FC<TypoProps>;
1084
+
1085
+ export declare interface TypoProps extends React_2.HTMLAttributes<HTMLElement> {
1086
+ variant?: TypoVariant;
1087
+ as?: React_2.ElementType;
1088
+ }
1089
+
1090
+ declare type TypoVariant = "hero-title" | "title" | "subtitle" | "body" | "body-bold" | "caption" | "overline" | "button" | "small" | "h1" | "h2" | "h3" | "h4" | "h5";
1091
+
1025
1092
  export declare function useAudioRecording({ transcribeAudio, onTranscriptionComplete, }: UseAudioRecordingOptions): {
1026
1093
  isListening: boolean;
1027
1094
  isSpeechSupported: boolean;