@collective-intelligence/ui-react 0.3.4 → 0.3.7
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 +133 -3
- package/dist/chat.d.ts +578 -0
- package/dist/chat.js +2 -0
- package/dist/components/icons/index.js +1 -1
- package/dist/components/illustrations/index.js +1 -1
- package/dist/components/ui/index.d.ts +28 -17
- package/dist/components/ui/index.js +2 -2
- package/dist/components/ui-extensions/atoms/ThemeToggle/index.js +1 -1
- package/dist/components/ui-extensions/hooks/use-mobile.js +1 -1
- package/dist/components/ui-extensions/index.d.ts +6 -6
- package/dist/components/ui-extensions/index.js +5 -5
- package/dist/components/ui-extensions/molecules/VideoPlayer/index.js +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/operations.js +1 -1
- package/dist/hooks/use-debounced-callback.js +1 -1
- package/dist/hooks/use-mount-action.js +1 -1
- package/dist/{index-y2h3pwvb.js → index-07wswd5f.js} +2 -2
- package/dist/index-1wmmfj25.js +2 -0
- package/dist/index-2thxhq0q.js +2 -0
- package/dist/index-3yxm33ex.js +42 -0
- package/dist/index-4ekvdxt4.js +2 -0
- package/dist/{index-r4k327de.js → index-4mm4a7nt.js} +2 -2
- package/dist/{index-dhysnhdt.js → index-590xzssr.js} +2 -2
- package/dist/index-7fcrqgn8.js +2 -0
- package/dist/index-99ad0xy6.js +2 -0
- package/dist/index-9at1018y.js +2 -0
- package/dist/index-9az9jb0y.js +2 -0
- package/dist/index-9me7rg96.js +2 -0
- package/dist/{index-t5c4bv5n.js → index-aahc5q93.js} +2 -2
- package/dist/index-adta20n6.js +2 -0
- package/dist/index-b3s2d1rk.js +2 -0
- package/dist/index-e105w3b8.js +2 -0
- package/dist/index-ek4ar1qs.js +2 -0
- package/dist/{index-38vsn5nv.js → index-hcecckjn.js} +2 -2
- package/dist/index-md173efw.js +2 -0
- package/dist/{index-fwsd4nes.js → index-mp8nkq9m.js} +2 -2
- package/dist/index-mxgt32b6.js +2 -0
- package/dist/index-n43k1xpt.js +6 -0
- package/dist/index-nadagexv.js +2 -0
- package/dist/{index-cx7rgb00.js → index-q04zgt5k.js} +2 -2
- package/dist/index-rbdjqvhp.js +2 -0
- package/dist/index-rvwx0vhw.js +2 -0
- package/dist/index-v31zghad.js +2 -0
- package/dist/index-vejf6hg0.js +2 -0
- package/dist/{index-a27yrhds.js → index-wwq9v1me.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/resources.js +1 -1
- package/dist/styles.css +2 -0
- package/dist/tokens/theme.js +1 -1
- package/dist/utils/cn.js +1 -1
- package/package.json +22 -6
- package/dist/index-0warxk1d.js +0 -2
- package/dist/index-1qb5701q.js +0 -2
- package/dist/index-38vag578.js +0 -2
- package/dist/index-3y40hfmd.js +0 -2
- package/dist/index-4d90e50j.js +0 -2
- package/dist/index-50g897x2.js +0 -42
- package/dist/index-58jcemv5.js +0 -2
- package/dist/index-956qe6w8.js +0 -2
- package/dist/index-dcmmdjnn.js +0 -2
- package/dist/index-k8bsc1hv.js +0 -2
- package/dist/index-kgq1r8sg.js +0 -2
- package/dist/index-rvcf3zsv.js +0 -2
- package/dist/index-s18na57g.js +0 -6
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import"../../../../index-
|
|
2
|
+
import"../../../../index-99ad0xy6.js";import"../../../../index-3yxm33ex.js";import"../../../../index-rbdjqvhp.js";import"../../../../index-1wmmfj25.js";import{xr}from"../../../../index-v31zghad.js";import"../../../../index-wwq9v1me.js";import"../../../../index-e105w3b8.js";export{xr as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{kt}from"../../../index-4mm4a7nt.js";export{kt 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,
|
|
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,
|
|
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";
|