@brainfish-ai/components 0.35.9 → 0.35.11

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,2 +1,2 @@
1
- export{C as ChatSearch,a as ChatSearchProvider,N as NextBestActionType,R as ResolvedConversationFooter,u as useChatSearch,b as useIsChatSearchDirty,v as validateUrlString}from"../chunks/ChatSearch.qg_5DlLP.js";
1
+ export{C as ChatSearch,a as ChatSearchProvider,N as NextBestActionType,R as ResolvedConversationFooter,u as useChatSearch,b as useIsChatSearchDirty,v as validateUrlString}from"../chunks/ChatSearch.DRNw8Ry4.js";
2
2
  //# sourceMappingURL=chat-search.js.map
@@ -0,0 +1,2 @@
1
+ import e from"react";import{PencilSimple as t}from"@phosphor-icons/react";import a from"clsx";const r=e.forwardRef(({className:r,children:o,...s},n)=>/* @__PURE__ */e.createElement("span",{className:"group flex items-center"},/* @__PURE__ */e.createElement("span",{...s,ref:n,role:"textbox",contentEditable:!0,suppressContentEditableWarning:!0,className:r},o),/* @__PURE__ */e.createElement(t,{size:16,className:a("ml-2 opacity-0 -translate-x-1 transition-[opacity,transform] duration-300","group-hover:opacity-100 group-hover:translate-x-0","group-focus-within:opacity-100 group-focus-within:translate-x-0"),role:"presentation"})));r.displayName="EditableLabel";export{r as EditableLabel};
2
+ //# sourceMappingURL=editable-label.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editable-label.js","sources":["../../../src/components/editable-label/editable-label.tsx"],"sourcesContent":["import React from \"react\";\nimport { PencilSimple } from \"@phosphor-icons/react\";\nimport clsx from \"clsx\";\n\nexport const EditableLabel = React.forwardRef<\n HTMLSpanElement,\n React.ComponentPropsWithoutRef<\"span\">\n>(({ className, children, ...props }, ref) => (\n <span className=\"group flex items-center\">\n <span\n {...props}\n ref={ref}\n role=\"textbox\"\n contentEditable\n suppressContentEditableWarning\n className={className}\n >\n {children}\n </span>\n <PencilSimple\n size={16}\n className={clsx(\n \"ml-2 opacity-0 -translate-x-1 transition-[opacity,transform] duration-300\",\n \"group-hover:opacity-100 group-hover:translate-x-0\",\n \"group-focus-within:opacity-100 group-focus-within:translate-x-0\"\n )}\n role=\"presentation\"\n />\n </span>\n));\n\nEditableLabel.displayName = \"EditableLabel\";\n\nexport default EditableLabel;\n"],"names":["EditableLabel","React","forwardRef","className","children","props","ref","createElement","role","contentEditable","suppressContentEditableWarning","PencilSimple","size","clsx","displayName"],"mappings":"8FAIO,MAAMA,EAAgBC,EAAMC,WAGjC,EAAGC,YAAWC,cAAaC,GAASC,mBACpCL,EAAAM,cAAC,OAAA,CAAKJ,UAAU,0CACdF,EAAAM,cAAC,OAAA,IACKF,EACJC,MACAE,KAAK,UACLC,iBAAe,EACfC,gCAA8B,EAC9BP,aAECC,kBAEHH,EAAAM,cAACI,EAAA,CACCC,KAAM,GACNT,UAAWU,EACT,4EACA,oDACA,mEAEFL,KAAK,mBAKXR,EAAcc,YAAc"}
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import './global.css';/* empty css */export{BrainfishColors}from"./colors.js";export{C as ChatSearch,a as ChatSearchProvider,N as NextBestActionType,R as ResolvedConversationFooter,u as useChatSearch,b as useIsChatSearchDirty,v as validateUrlString}from"./chunks/ChatSearch.qg_5DlLP.js";export{C as ContextPillBadge,a as Conversation,b as ConversationActions,c as ConversationInput,d as ConversationMessageAssistant,e as ConversationMessageUser,f as ConversationMessages,g as ConversationProvider,h as ConversationStatus,i as ConversationSuggestions,j as getConversationStatusLabel,u as useConversation}from"./chunks/Conversation.CfhUJm_Q.js";export{C as CodeBlock,F as FormattedMessage,M as MemoizedReactMarkdown,Z as ZoomableImage,a as addPopupWidgetUtm,b as addUtmParameters}from"./chunks/FormattedMessage.CEEjawib.js";export{MermaidDiagram}from"./chunks/MermaidDiagram.PRgXQ5Yh.js";export{Accordion,AccordionContent,AccordionItem,AccordionTrigger}from"./components/ui/accordion.js";export{AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogOverlay,AlertDialogPortal,AlertDialogTitle,AlertDialogTrigger}from"./components/ui/alert-dialog.js";export{Alert,AlertAction,AlertContent,AlertDescription,AlertTitle}from"./components/ui/alert.js";export{Avatar,AvatarBadge,AvatarFallback,AvatarGroup,AvatarGroupCount,AvatarImage}from"./components/ui/avatar.js";export{Badge,badgeVariants}from"./components/ui/badge.js";export{ButtonGroup,ButtonGroupSeparator,ButtonGroupText,buttonGroupVariants}from"./components/ui/button-group.js";export{B as Button,b as buttonVariants}from"./chunks/button.C7qRaFMP.js";export{Calendar}from"./components/ui/calendar.js";export{Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle}from"./components/ui/card.js";export{Collapsible,CollapsibleContent,CollapsibleTrigger}from"./components/ui/collapsible.js";export{Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut}from"./components/ui/command.js";export{Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger}from"./components/ui/dialog.js";export{DivButton,divButtonVariants}from"./components/ui/div-button.js";import{DropdownMenu as o,DropdownMenuTrigger as t,DropdownMenuContent as r,DropdownMenuItem as n}from"./components/ui/dropdown-menu.js";export{DropdownMenuCheckboxItem,DropdownMenuGroup,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger}from"./components/ui/dropdown-menu.js";export{Icon,MemoizedIcon}from"./components/ui/icon.js";export{Input}from"./components/ui/input.js";export{Item,ItemActions,ItemContent,ItemDescription,ItemFooter,ItemGroup,ItemHeader,ItemMedia,ItemSeparator,ItemTitle}from"./components/ui/item.js";export{Label}from"./components/ui/label.js";export{Popover,PopoverAnchor,PopoverContent,PopoverTrigger}from"./components/ui/popover.js";export{Progress}from"./components/ui/progress.js";export{RadioGroup,RadioGroupItem}from"./components/ui/radio-group.js";export{ResizableHandle,ResizablePanel,ResizablePanelGroup}from"./components/ui/resizable.js";export{R as Ripple,a as RippleStatus,S as SweepText}from"./chunks/ripple-status.BiOlScXz.js";export{ScrollArea,ScrollBar}from"./components/ui/scroll-area.js";export{Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectSeparator,SelectTrigger,SelectValue}from"./components/ui/select.js";export{Separator}from"./components/ui/separator.js";export{Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger}from"./components/ui/sheet.js";export{Spinner}from"./components/ui/spinner.js";export{Switch}from"./components/ui/switch.js";export{Tabs,TabsContent,TabsList,TabsTrigger}from"./components/ui/tabs.js";export{Table,TableBody,TableCaption,TableCell,TableFooter,TableHead,TableHeader,TableRow}from"./components/ui/table.js";export{Textarea}from"./components/ui/textarea.js";export{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger}from"./components/ui/tooltip.js";export{C as Combobox}from"./chunks/combobox.DKotd4uC.js";export{D as DataTable}from"./chunks/data-table.1ptJ47z8.js";export{D as DatePicker}from"./chunks/date-picker.Bto-A8WE.js";export{F as FileUpload,a as FileUploadStatus,f as formatFileSize}from"./chunks/file-upload-status.sUoGRgbH.js";export{F as Filter,a as Filters,O as Operator}from"./chunks/filters.Bxyw3eHZ.js";export{F as FontPicker,a as FontPickerItem,c as clearFontCache,g as getCachedFonts,l as loadFont,s as setCachedFonts,u as useFontOptions}from"./chunks/font-picker.CVZovtmt.js";export{I as InputWithTags}from"./chunks/input-with-tags.aktIpAck.js";export{L as Logo}from"./chunks/logo.DtwFGMBj.js";export{C as ChatLogo}from"./chunks/chat-logo.F_m9SJrM.js";export{A as AILogo,a as AILogoPaths}from"./chunks/ai-logo.Bh2bhNcG.js";export{S as SimpleSelect}from"./chunks/simpleSelect.BiNOqq3j.js";export{T as Trend,a as TrendValue}from"./chunks/trend-value.lSWHqdkm.js";export{T as TwoLevelCombobox}from"./chunks/two-level-combobox.CWKR1tXX.js";export{F as FullLayout,a as FullLayoutHeader,b as FullLayoutLeftSidebar,c as FullLayoutNavStateContext,d as FullLayoutProvider,e as FullLayoutRightSidebar,u as useFullLayoutContext,f as useRightSidebar}from"./chunks/header-pane.DCGet3RZ.js";export{H as HEADER_NAV_HEIGHT,a as HeaderNav}from"./chunks/header-nav.BY2ppP8j.js";export{S as Sidebar,u as useSidebar}from"./chunks/sidebar.tGcs3r4O.js";export{MicrosoftTeamsLogo}from"./logos/microsoft-teams-logo.js";export{SlackLogo}from"./logos/slack-logo.js";export{MicrosoftLogo}from"./logos/microsoft-logo.js";export{R as ReviewList,a as ReviewListItem,b as ReviewsSelectionProvider,S as SuggestionCard,u as useReviewsSelection}from"./chunks/suggestion-card.DKQAazak.js";import{ChartBar as p,CreditCard as m}from"@phosphor-icons/react";import*as x from"react";import{c as k}from"./chunks/utils.DtKoarLP.js";function w({percentage:e,label:a="Queries",status:s,onViewPlan:i,onViewBilling:l}){/* @__PURE__ */
1
+ import './global.css';/* empty css */export{BrainfishColors}from"./colors.js";export{C as ChatSearch,a as ChatSearchProvider,N as NextBestActionType,R as ResolvedConversationFooter,u as useChatSearch,b as useIsChatSearchDirty,v as validateUrlString}from"./chunks/ChatSearch.DRNw8Ry4.js";export{C as ContextPillBadge,a as Conversation,b as ConversationActions,c as ConversationInput,d as ConversationMessageAssistant,e as ConversationMessageUser,f as ConversationMessages,g as ConversationProvider,h as ConversationStatus,i as ConversationSuggestions,j as getConversationStatusLabel,u as useConversation}from"./chunks/Conversation.CfhUJm_Q.js";export{C as CodeBlock,F as FormattedMessage,M as MemoizedReactMarkdown,Z as ZoomableImage,a as addPopupWidgetUtm,b as addUtmParameters}from"./chunks/FormattedMessage.CEEjawib.js";export{MermaidDiagram}from"./chunks/MermaidDiagram.PRgXQ5Yh.js";export{Accordion,AccordionContent,AccordionItem,AccordionTrigger}from"./components/ui/accordion.js";export{AlertDialog,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDescription,AlertDialogFooter,AlertDialogHeader,AlertDialogOverlay,AlertDialogPortal,AlertDialogTitle,AlertDialogTrigger}from"./components/ui/alert-dialog.js";export{Alert,AlertAction,AlertContent,AlertDescription,AlertTitle}from"./components/ui/alert.js";export{Avatar,AvatarBadge,AvatarFallback,AvatarGroup,AvatarGroupCount,AvatarImage}from"./components/ui/avatar.js";export{Badge,badgeVariants}from"./components/ui/badge.js";export{ButtonGroup,ButtonGroupSeparator,ButtonGroupText,buttonGroupVariants}from"./components/ui/button-group.js";export{B as Button,b as buttonVariants}from"./chunks/button.C7qRaFMP.js";export{Calendar}from"./components/ui/calendar.js";export{Card,CardContent,CardDescription,CardFooter,CardHeader,CardTitle}from"./components/ui/card.js";export{Collapsible,CollapsibleContent,CollapsibleTrigger}from"./components/ui/collapsible.js";export{Command,CommandDialog,CommandEmpty,CommandGroup,CommandInput,CommandItem,CommandList,CommandSeparator,CommandShortcut}from"./components/ui/command.js";export{Dialog,DialogClose,DialogContent,DialogDescription,DialogFooter,DialogHeader,DialogOverlay,DialogPortal,DialogTitle,DialogTrigger}from"./components/ui/dialog.js";export{DivButton,divButtonVariants}from"./components/ui/div-button.js";import{DropdownMenu as o,DropdownMenuTrigger as t,DropdownMenuContent as r,DropdownMenuItem as n}from"./components/ui/dropdown-menu.js";export{DropdownMenuCheckboxItem,DropdownMenuGroup,DropdownMenuLabel,DropdownMenuPortal,DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuSeparator,DropdownMenuShortcut,DropdownMenuSub,DropdownMenuSubContent,DropdownMenuSubTrigger}from"./components/ui/dropdown-menu.js";export{Icon,MemoizedIcon}from"./components/ui/icon.js";export{Input}from"./components/ui/input.js";export{Item,ItemActions,ItemContent,ItemDescription,ItemFooter,ItemGroup,ItemHeader,ItemMedia,ItemSeparator,ItemTitle}from"./components/ui/item.js";export{Label}from"./components/ui/label.js";export{Popover,PopoverAnchor,PopoverContent,PopoverTrigger}from"./components/ui/popover.js";export{Progress}from"./components/ui/progress.js";export{RadioGroup,RadioGroupItem}from"./components/ui/radio-group.js";export{ResizableHandle,ResizablePanel,ResizablePanelGroup}from"./components/ui/resizable.js";export{R as Ripple,a as RippleStatus,S as SweepText}from"./chunks/ripple-status.BiOlScXz.js";export{ScrollArea,ScrollBar}from"./components/ui/scroll-area.js";export{Select,SelectContent,SelectGroup,SelectItem,SelectLabel,SelectSeparator,SelectTrigger,SelectValue}from"./components/ui/select.js";export{Separator}from"./components/ui/separator.js";export{Sheet,SheetClose,SheetContent,SheetDescription,SheetFooter,SheetHeader,SheetOverlay,SheetPortal,SheetTitle,SheetTrigger}from"./components/ui/sheet.js";export{Spinner}from"./components/ui/spinner.js";export{Switch}from"./components/ui/switch.js";export{Tabs,TabsContent,TabsList,TabsTrigger}from"./components/ui/tabs.js";export{Table,TableBody,TableCaption,TableCell,TableFooter,TableHead,TableHeader,TableRow}from"./components/ui/table.js";export{Textarea}from"./components/ui/textarea.js";export{Tooltip,TooltipContent,TooltipProvider,TooltipTrigger}from"./components/ui/tooltip.js";export{C as Combobox}from"./chunks/combobox.DKotd4uC.js";export{D as DataTable}from"./chunks/data-table.1ptJ47z8.js";export{D as DatePicker}from"./chunks/date-picker.Bto-A8WE.js";export{F as FileUpload,a as FileUploadStatus,f as formatFileSize}from"./chunks/file-upload-status.sUoGRgbH.js";export{F as Filter,a as Filters,O as Operator}from"./chunks/filters.Bxyw3eHZ.js";export{F as FontPicker,a as FontPickerItem,c as clearFontCache,g as getCachedFonts,l as loadFont,s as setCachedFonts,u as useFontOptions}from"./chunks/font-picker.CVZovtmt.js";export{I as InputWithTags}from"./chunks/input-with-tags.aktIpAck.js";export{L as Logo}from"./chunks/logo.DtwFGMBj.js";export{C as ChatLogo}from"./chunks/chat-logo.F_m9SJrM.js";export{A as AILogo,a as AILogoPaths}from"./chunks/ai-logo.Bh2bhNcG.js";export{S as SimpleSelect}from"./chunks/simpleSelect.BiNOqq3j.js";export{T as Trend,a as TrendValue}from"./chunks/trend-value.lSWHqdkm.js";export{T as TwoLevelCombobox}from"./chunks/two-level-combobox.CWKR1tXX.js";export{F as FullLayout,a as FullLayoutHeader,b as FullLayoutLeftSidebar,c as FullLayoutNavStateContext,d as FullLayoutProvider,e as FullLayoutRightSidebar,u as useFullLayoutContext,f as useRightSidebar}from"./chunks/header-pane.DCGet3RZ.js";export{H as HEADER_NAV_HEIGHT,a as HeaderNav}from"./chunks/header-nav.BY2ppP8j.js";export{S as Sidebar,u as useSidebar}from"./chunks/sidebar.tGcs3r4O.js";export{MicrosoftTeamsLogo}from"./logos/microsoft-teams-logo.js";export{SlackLogo}from"./logos/slack-logo.js";export{MicrosoftLogo}from"./logos/microsoft-logo.js";export{R as ReviewList,a as ReviewListItem,b as ReviewsSelectionProvider,S as SuggestionCard,u as useReviewsSelection}from"./chunks/suggestion-card.DKQAazak.js";import{ChartBar as p,CreditCard as m}from"@phosphor-icons/react";import*as x from"react";import{c as k}from"./chunks/utils.DtKoarLP.js";function w({percentage:e,label:a="Queries",status:s,onViewPlan:i,onViewBilling:l}){/* @__PURE__ */
2
2
  return x.createElement(o,null,/* @__PURE__ */x.createElement(t,{asChild:!0},/* @__PURE__ */x.createElement("button",{type:"button",className:k("flex items-center gap-1.5 rounded border bg-surface py-1 pl-2 pr-2.5","text-xs font-normal text-dark-900 cursor-pointer","hover:bg-dark-200 active:bg-dark-400","focus-visible:outline-none","transition-colors",{"border-yellow-500/50":"warning"===s,"border-red-500/50":"reached"===s}),"aria-label":`${a} usage: ${e}%`},
3
3
  /* @__PURE__ */x.createElement("span",{className:k("h-2 w-2 shrink-0 rounded-full",{"bg-yellow-500":"warning"===s,"bg-red-500":"reached"===s}),"aria-hidden":"true"}),
4
4
  /* @__PURE__ */x.createElement("span",{className:"whitespace-nowrap"},e,"% of ",a," used"),