@collective-intelligence/ui-react 0.3.5 → 0.3.8

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 (75) hide show
  1. package/README.md +207 -3
  2. package/dist/chat.d.ts +578 -0
  3. package/dist/chat.js +2 -0
  4. package/dist/components/ai-elements/index.d.ts +95 -0
  5. package/dist/components/ai-elements/index.js +2 -0
  6. package/dist/components/icons/index.js +1 -1
  7. package/dist/components/illustrations/index.js +1 -1
  8. package/dist/components/ui/index.d.ts +183 -26
  9. package/dist/components/ui/index.js +4 -2
  10. package/dist/components/ui-extensions/atoms/ThemeToggle/index.js +1 -1
  11. package/dist/components/ui-extensions/hooks/use-mobile.js +1 -1
  12. package/dist/components/ui-extensions/index.d.ts +6 -6
  13. package/dist/components/ui-extensions/index.js +6 -6
  14. package/dist/components/ui-extensions/molecules/VideoPlayer/index.js +2 -2
  15. package/dist/hooks/index.js +1 -1
  16. package/dist/hooks/operations.js +1 -1
  17. package/dist/hooks/use-debounced-callback.js +1 -1
  18. package/dist/hooks/use-mount-action.js +1 -1
  19. package/dist/index-064d20xp.js +2 -0
  20. package/dist/index-0gzm7bb9.js +2 -0
  21. package/dist/index-1hxjsnw5.js +2 -0
  22. package/dist/index-2twj52t7.js +2 -0
  23. package/dist/index-2yf6mq9g.js +2 -0
  24. package/dist/{index-cx7rgb00.js → index-4cds99c5.js} +2 -2
  25. package/dist/index-64r6cav3.js +1 -0
  26. package/dist/{index-38vsn5nv.js → index-6r0znbzv.js} +2 -2
  27. package/dist/index-7j277075.js +2 -0
  28. package/dist/{index-r4k327de.js → index-9289ppfk.js} +2 -2
  29. package/dist/{index-a27yrhds.js → index-9gtg7nt7.js} +2 -2
  30. package/dist/index-ab3fc47y.js +2 -0
  31. package/dist/index-b1wfq5b8.js +2 -0
  32. package/dist/index-dg126t3v.js +2 -0
  33. package/dist/index-dvvkk1vk.js +2 -0
  34. package/dist/index-ecvn2gnv.js +2 -0
  35. package/dist/index-fnk7gsdd.js +2 -0
  36. package/dist/index-ggr2edm8.js +2 -0
  37. package/dist/index-m0v264jr.js +2 -0
  38. package/dist/index-ngpxevag.js +2 -0
  39. package/dist/index-nxbvv8m4.js +2 -0
  40. package/dist/index-pearjjhb.js +2 -0
  41. package/dist/{index-fwsd4nes.js → index-qbwndfn2.js} +2 -2
  42. package/dist/index-r2snvwyb.js +42 -0
  43. package/dist/index-r5ds1mtq.js +2 -0
  44. package/dist/index-r7hjj3ek.js +2 -0
  45. package/dist/index-rgbg5bsy.js +2 -0
  46. package/dist/{index-dhysnhdt.js → index-rjemhrz1.js} +2 -2
  47. package/dist/index-sd38wa4w.js +2 -0
  48. package/dist/index-t9yq7kfg.js +2 -0
  49. package/dist/index-tcwzyy71.js +2 -0
  50. package/dist/{index-y2h3pwvb.js → index-vx2b9cz3.js} +2 -2
  51. package/dist/index-vyhk8kgm.js +6 -0
  52. package/dist/index-ykjbsyeq.js +2 -0
  53. package/dist/index-zmwpsfzp.js +2 -0
  54. package/dist/index-zrw7ne3f.js +2 -0
  55. package/dist/index.js +1 -1
  56. package/dist/resources.js +1 -1
  57. package/dist/shadcn.css +667 -0
  58. package/dist/styles.css +2 -0
  59. package/dist/tokens/theme.js +1 -1
  60. package/dist/utils/cn.js +1 -1
  61. package/package.json +43 -7
  62. package/dist/index-0warxk1d.js +0 -2
  63. package/dist/index-1qb5701q.js +0 -2
  64. package/dist/index-38vag578.js +0 -2
  65. package/dist/index-3y40hfmd.js +0 -2
  66. package/dist/index-4d90e50j.js +0 -2
  67. package/dist/index-50g897x2.js +0 -42
  68. package/dist/index-58jcemv5.js +0 -2
  69. package/dist/index-956qe6w8.js +0 -2
  70. package/dist/index-dcmmdjnn.js +0 -2
  71. package/dist/index-k8bsc1hv.js +0 -2
  72. package/dist/index-kgq1r8sg.js +0 -2
  73. package/dist/index-rvcf3zsv.js +0 -2
  74. package/dist/index-s18na57g.js +0 -6
  75. package/dist/index-t5c4bv5n.js +0 -2
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import"../../../../index-0warxk1d.js";import"../../../../index-50g897x2.js";import"../../../../index-dcmmdjnn.js";import{nr}from"../../../../index-rvcf3zsv.js";import"../../../../index-a27yrhds.js";export{nr as default};
2
+ import"../../../../index-64r6cav3.js";import"../../../../index-dg126t3v.js";import"../../../../index-r2snvwyb.js";import"../../../../index-ngpxevag.js";import"../../../../index-ggr2edm8.js";import{Qo}from"../../../../index-b1wfq5b8.js";import"../../../../index-9gtg7nt7.js";import"../../../../index-7j277075.js";import"../../../../index-0gzm7bb9.js";export{Qo as default};
@@ -1 +1 @@
1
- import{gt}from"../../../index-r4k327de.js";export{gt as useIsMobile};
1
+ import{br}from"../../../index-9289ppfk.js";export{br as useIsMobile};
@@ -54,7 +54,7 @@ export interface CopyButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLB
54
54
  copyLabel?: React$1.ReactNode;
55
55
  copiedLabel?: React$1.ReactNode;
56
56
  /** Toast message when the clipboard write fails. */
57
- errorMessage?: string;
57
+ errorMessage?: string | undefined;
58
58
  /** How long the copied state persists, in milliseconds. */
59
59
  resetDelay?: number;
60
60
  }
@@ -241,7 +241,7 @@ export interface ArrayInputItemProps<Value> {
241
241
  disabled: boolean;
242
242
  id: string;
243
243
  index: number;
244
- validationMessage?: string;
244
+ validationMessage?: string | undefined;
245
245
  onValueChange: (value: Value) => void;
246
246
  value: Value;
247
247
  }
@@ -372,8 +372,8 @@ export interface CardProps extends React$1.ComponentProps<"div">, VariantProps<t
372
372
  visual?: "accent_gradient";
373
373
  }
374
374
  declare const DropdownMenu: ({ ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Root>) => React$1.JSX.Element;
375
- declare const DropdownMenuContent: ({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content>) => React$1.JSX.Element;
376
- declare const PopoverContent: ({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content>) => React$1.JSX.Element;
375
+ declare const DropdownMenuContent: ({ className, sideOffset, container, ...props }: React$1.ComponentProps<typeof DropdownMenuPrimitive.Content> & Pick<React$1.ComponentProps<typeof DropdownMenuPrimitive.Portal>, "container">) => React$1.JSX.Element;
376
+ declare const PopoverContent: ({ className, align, sideOffset, container, ...props }: React$1.ComponentProps<typeof PopoverPrimitive.Content> & Pick<React$1.ComponentProps<typeof PopoverPrimitive.Portal>, "container">) => React$1.JSX.Element;
377
377
  declare const RadioGroup: ({ className, ...props }: React$1.ComponentProps<typeof RadioGroupPrimitive.Root>) => React$1.JSX.Element;
378
378
  export type CardOptionsBlockProps = React$1.HTMLAttributes<HTMLDivElement>;
379
379
  export declare const CardOptionsBlock: React$1.ForwardRefExoticComponent<CardOptionsBlockProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -925,7 +925,7 @@ export declare const SplitButtonAction: ({ className, ...props }: Omit<React$1.C
925
925
  * The right half: a chevron that opens the related actions. Children are
926
926
  * dropdown menu items.
927
927
  */
928
- export declare const SplitButtonMenu: ({ align, children, contentClassName, disabled, label, modal, onOpenChange, open }: Pick<React$1.ComponentProps<typeof DropdownMenu>, "modal" | "onOpenChange" | "open"> & Pick<React$1.ComponentProps<typeof DropdownMenuContent>, "align"> & {
928
+ export declare const SplitButtonMenu: ({ align, children, contentClassName, disabled, label, ...menu }: Pick<React$1.ComponentProps<typeof DropdownMenu>, "modal" | "onOpenChange" | "open"> & Pick<React$1.ComponentProps<typeof DropdownMenuContent>, "align"> & {
929
929
  children: React$1.ReactNode;
930
930
  contentClassName?: string;
931
931
  disabled?: boolean;
@@ -1085,7 +1085,7 @@ export interface ErrorAlertProps {
1085
1085
  content?: string;
1086
1086
  };
1087
1087
  }
1088
- export declare const ErrorAlert: ({ title, children, details, className, open, defaultOpen, onOpenChange, classes }: ErrorAlertProps) => React$1.JSX.Element;
1088
+ export declare const ErrorAlert: ({ title, children, details, className, defaultOpen, classes, ...collapsible }: ErrorAlertProps) => React$1.JSX.Element;
1089
1089
  export type LaneProgressLane = Readonly<{
1090
1090
  fillClassName?: string;
1091
1091
  mode?: "determinate" | "indeterminate";