@altimateai/ui-components 0.0.68 → 0.0.69-beta.2

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.
@@ -1,6 +1,6 @@
1
1
  import React__default, { FC, ReactNode } from 'react';
2
- import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, F as Feedback, r as LoadingState, s as ChatSession, i as Citation, t as TodoItem, M as MessageAttachment, D as DetectedEntity, E as EntityType, u as AgentStreamResponse, S as SessionStatusEnum } from '../types-CPALoG7v.js';
3
- export { x as AssistantMeta, w as ChatEvent, v as ChatEventStatus, z as ChatbotUrls, B as Datamate, G as EntityDetectionRequest, H as EntityDetectionResponse, y as FileUploadProps, W as FinalResponseData, N as InteractionChoice, K as InteractionType, J as Mode, V as ProgressUpdate, R as ToolUsageData, U as UploadedFile, X as agentStreamResponseSchema, O as sessionStatusSchema, Q as todoItemSchema } from '../types-CPALoG7v.js';
2
+ import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, F as Feedback, r as LoadingState, s as ChatSession, i as Citation, t as TodoItem, M as MessageAttachment, D as DetectedEntity, E as EntityType, u as AgentStreamResponse, S as SessionStatusEnum } from '../types-C2UJ4TLI.js';
3
+ export { x as AssistantMeta, w as ChatEvent, v as ChatEventStatus, z as ChatbotUrls, B as Datamate, G as EntityDetectionRequest, H as EntityDetectionResponse, y as FileUploadProps, W as FinalResponseData, N as InteractionChoice, K as InteractionType, J as Mode, V as ProgressUpdate, R as ToolUsageData, U as UploadedFile, X as agentStreamResponseSchema, O as sessionStatusSchema, Q as todoItemSchema } from '../types-C2UJ4TLI.js';
4
4
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
5
5
  import { UnknownAction } from '@reduxjs/toolkit';
6
6
  import * as react_jsx_runtime from 'react/jsx-runtime';
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as React$1 from 'react';
2
- import { HTMLAttributes, ButtonHTMLAttributes, ReactNode, FC, MouseEvent } from 'react';
3
- import { B as ButtonProps } from './Button-Bsgqi8kG.js';
2
+ import React__default, { HTMLAttributes, ButtonHTMLAttributes, ReactNode, FC, MouseEvent } from 'react';
3
+ import { B as ButtonProps, a as Button } from './Button-42Dj_nRE.js';
4
4
  import { Components } from 'react-markdown';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { PlotParams } from 'react-plotly.js';
7
- import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-CPALoG7v.js';
8
- export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-CPALoG7v.js';
7
+ import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-C2UJ4TLI.js';
8
+ export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-C2UJ4TLI.js';
9
9
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
10
10
  import { PayloadAction } from '@reduxjs/toolkit';
11
11
  import * as immer from 'immer';
@@ -25,16 +25,16 @@ interface SpinnerProps extends HTMLAttributes<HTMLDivElement> {
25
25
  }
26
26
  declare const Spinner: React$1.ForwardRefExoticComponent<SpinnerProps & React$1.RefAttributes<HTMLDivElement>>;
27
27
 
28
- interface Props$7 extends ButtonHTMLAttributes<HTMLButtonElement> {
29
- variant?: ButtonProps["variant"];
28
+ interface Props$7 extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "title"> {
29
+ variant?: ButtonProps<"icon">["variant"];
30
30
  title: string;
31
31
  }
32
- declare const IconButton: (props: Props$7) => JSX.Element;
32
+ declare const IconButton: ({ title, variant, type, ...props }: Props$7) => JSX.Element;
33
33
 
34
- type Props$6 = ButtonProps & {
34
+ type Props$6 = {
35
35
  loading: boolean;
36
36
  loadingText?: string | null;
37
- };
37
+ } & React__default.ComponentProps<typeof Button>;
38
38
  declare const LoadingButton: ({ loading, loadingText, ...rest }: Props$6) => JSX.Element;
39
39
 
40
40
  interface Props$5 {
@@ -12,7 +12,17 @@ function is(e) {
12
12
  * This source code is licensed under the MIT license.
13
13
  * See the LICENSE file in the root directory of this source tree.
14
14
  */
15
- const zt = [["path", { d: "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4", key: "svg-0" }], ["path", { d: "M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4", key: "svg-1" }]], ss = bt("outline", "refresh", "Refresh", zt), us = (e) => /* @__PURE__ */ $.jsx(pt, { ...e, type: e.type ?? "button", size: "icon", variant: e.variant ?? "ghost", children: e.children });
15
+ const zt = [["path", { d: "M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4", key: "svg-0" }], ["path", { d: "M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4", key: "svg-1" }]], ss = bt("outline", "refresh", "Refresh", zt), us = ({ title: e, variant: o, type: n, ...r }) => /* @__PURE__ */ $.jsx(
16
+ pt,
17
+ {
18
+ ...r,
19
+ title: e,
20
+ type: n ?? "button",
21
+ size: "icon",
22
+ variant: o ?? "ghost",
23
+ children: r.children
24
+ }
25
+ );
16
26
  var ee = {}, pr = { exports: {} };
17
27
  (function(e) {
18
28
  function o(n) {
@@ -1,5 +1,5 @@
1
- import { a as Button, B as ButtonProps } from '../Button-Bsgqi8kG.js';
2
- export { b as buttonVariants } from '../Button-Bsgqi8kG.js';
1
+ import { a as Button, B as ButtonProps, b as ButtonSize } from '../Button-42Dj_nRE.js';
2
+ export { c as buttonVariants } from '../Button-42Dj_nRE.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { DayPicker, DayButton, DateRange } from 'react-day-picker';
5
5
  import * as React$1 from 'react';
@@ -338,6 +338,7 @@ type ToasterToast = ToastProps & {
338
338
  title?: React$1.ReactNode;
339
339
  description?: React$1.ReactNode;
340
340
  action?: ToastActionElement;
341
+ icon?: React$1.ReactNode;
341
342
  };
342
343
  declare const actionTypes: {
343
344
  readonly ADD_TOAST: "ADD_TOAST";
@@ -503,23 +504,15 @@ declare const Sidebar: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttri
503
504
  variant?: "sidebar" | "floating" | "inset";
504
505
  collapsible?: "offcanvas" | "icon" | "none";
505
506
  }, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
506
- declare const SidebarTrigger: React$1.ForwardRefExoticComponent<(Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<(props?: ({
507
+ declare const SidebarTrigger: React$1.ForwardRefExoticComponent<Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<(props?: ({
507
508
  variant?: "link" | "default" | "destructive" | "outline" | "success" | "secondary" | "ghost" | null | undefined;
508
509
  size?: "xs" | "sm" | "lg" | "default" | "icon" | null | undefined;
509
510
  } & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
510
511
  asChild?: boolean;
511
512
  } & {
512
- size: "icon";
513
- title: string;
514
- } & React$1.RefAttributes<HTMLButtonElement>, "ref"> | Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement> & Omit<VariantProps<(props?: ({
515
- variant?: "link" | "default" | "destructive" | "outline" | "success" | "secondary" | "ghost" | null | undefined;
516
- size?: "xs" | "sm" | "lg" | "default" | "icon" | null | undefined;
517
- } & class_variance_authority_types.ClassProp) | undefined) => string>, "size"> & {
518
- asChild?: boolean;
519
- } & {
520
- size?: "default" | "sm" | "xs" | "lg";
513
+ size?: ButtonSize | undefined;
521
514
  title?: string;
522
- } & React$1.RefAttributes<HTMLButtonElement>, "ref">) & React$1.RefAttributes<HTMLButtonElement>>;
515
+ } & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
523
516
  declare const SidebarRail: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
524
517
  declare const SidebarInset: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
525
518
  declare const SidebarInput: React$1.ForwardRefExoticComponent<Omit<InputProps & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
@@ -658,7 +651,8 @@ declare const PaginationContent: React$1.ForwardRefExoticComponent<Omit<React$1.
658
651
  declare const PaginationItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
659
652
  type PaginationLinkProps = {
660
653
  isActive?: boolean;
661
- } & Pick<ButtonProps, "size"> & React$1.ComponentProps<"a">;
654
+ size?: ButtonSize;
655
+ } & React$1.ComponentProps<"a">;
662
656
  declare const PaginationLink: {
663
657
  ({ className, isActive, size, children, "aria-label": ariaLabel, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
664
658
  displayName: string;
@@ -739,4 +733,4 @@ declare function ToggleGroup({ className, variant, size, spacing, children, ...p
739
733
  }): react_jsx_runtime.JSX.Element;
740
734
  declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
741
735
 
742
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AutosizeTextAreaRef, AutosizeTextarea, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Combobox, ComboboxInner, type ComboboxOption, type ComboboxRef, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DebouncedInput, type DebouncedInputProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragAndDropFileUpload, type DragAndDropFileUploadProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, type Option, PREDEFINED_RANGES, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Switch, TZDateRange, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, TagsInput, TagsInputClear, TagsInputInput, TagsInputItem, TagsInputLabel, TagsInputList, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipCore, TooltipProvider, TooltipTrigger, Typography, badgeVariants, reducer, tabsVariants, toast, toggleVariants, useAutosizeTextArea, useFormField, useSidebar, useToast };
736
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, type AutosizeTextAreaRef, AutosizeTextarea, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonProps, ButtonSize, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Combobox, ComboboxInner, type ComboboxOption, type ComboboxRef, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DebouncedInput, type DebouncedInputProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragAndDropFileUpload, type DragAndDropFileUploadProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, type Option, PREDEFINED_RANGES, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Switch, TZDateRange, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, TagsInput, TagsInputClear, TagsInputInput, TagsInputItem, TagsInputLabel, TagsInputList, Textarea, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipCore, TooltipProvider, TooltipTrigger, Typography, badgeVariants, reducer, tabsVariants, toast, toggleVariants, useAutosizeTextArea, useFormField, useSidebar, useToast };
@@ -3556,9 +3556,10 @@ ho.displayName = so.displayName;
3556
3556
  function cg() {
3557
3557
  const { toasts: e } = Bi();
3558
3558
  return /* @__PURE__ */ u.jsxs(bf, { children: [
3559
- e.map(function({ id: t, title: n, description: a, action: r, ...o }) {
3560
- return /* @__PURE__ */ u.jsxs(uo, { ...o, children: [
3561
- /* @__PURE__ */ u.jsxs("div", { className: "al-grid al-gap-1", children: [
3559
+ e.map(function({ id: t, title: n, description: a, action: r, icon: o, ...i }) {
3560
+ return /* @__PURE__ */ u.jsxs(uo, { ...i, children: [
3561
+ o && /* @__PURE__ */ u.jsx("div", { className: "al-flex-shrink-0", children: o }),
3562
+ /* @__PURE__ */ u.jsxs("div", { className: "al-grid al-gap-1 al-flex-1", children: [
3562
3563
  n && /* @__PURE__ */ u.jsx(mo, { children: n }),
3563
3564
  a && /* @__PURE__ */ u.jsx(ho, { children: a })
3564
3565
  ] }),
@@ -117,6 +117,7 @@ interface ChatbotProps {
117
117
  classNames?: {
118
118
  chatbot?: string;
119
119
  chatMessages?: string;
120
+ messageItem?: string;
120
121
  };
121
122
  initialMessage?: string;
122
123
  submitInitialMessageOnMount?: boolean;
@@ -246,6 +247,7 @@ interface ChatState {
246
247
  classNames?: {
247
248
  chatbot?: string;
248
249
  chatMessages?: string;
250
+ messageItem?: string;
249
251
  };
250
252
  }
251
253
  declare const todoItemSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.68",
3
+ "version": "0.0.69-beta.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"