@inkeep/cxkit-styled 0.5.80 → 0.5.82

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 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),a=require("@inkeep/cxkit-primitives"),k=require("../ui/recipes/ai-chat-page-wrapper.cjs"),n=require("../ui/recipes/attachment.cjs"),o=require("../ui/recipes/button.cjs"),x=require("../ui/recipes/checkbox.cjs"),i=require("../ui/recipes/citation.cjs"),w=require("../ui/recipes/icon.cjs"),l=require("../ui/recipes/input.cjs"),P=require("../ui/recipes/link.cjs"),s=require("../ui/recipes/modal.cjs"),p=require("../ui/recipes/popover.cjs"),C=require("../ui/recipes/scrollable.cjs"),h=require("../ui/recipes/select.cjs"),M=require("class-variance-authority"),j=require("merge-anything"),c=require("react"),r=require("../utils.cjs"),y=require("../ui/markdown-styles.cjs"),N=require("./loading-indicator.cjs"),I=require("./embedded-chat/conversation-loading.cjs"),B=a.EmbeddedChatPrimitive.Provider,S=c.forwardRef(({className:e,size:t,variant:m,...u},b)=>d.jsx(a.EmbeddedChatPrimitive.Wrapper,{ref:b,className:r.cn(k.aiChatPageWrapper({size:t,variant:m}),"data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950","data-[composite]:w-full","max-h-[min(85vh,850px)]",e),...u})),T=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ConversationLoading,{className:r.cn("flex flex-col items-center justify-center h-full gap-12 flex-1 p-8",e),children:d.jsx(I.ConversationLoading,{}),...t}),H=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Root,{className:r.cn(C.scrollable({section:"wrapper"}),"rounded-[inherit] font-body",e),...t}),L=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Header,{className:r.cn(C.scrollable({section:"header"}),"flex items-center","bg-white dark:bg-gray-dark-950","data-[show-toolbar]:after:absolute","data-[show-toolbar]:after:left-0","data-[show-toolbar]:after:top-full","data-[show-toolbar]:after:h-[1rem]","data-[show-toolbar]:after:w-full","data-[show-toolbar]:after:text-white","data-[show-toolbar]:after:dark:text-gray-dark-950","data-[show-toolbar]:after:bg-[linear-gradient(currentColor,_transparent)]","data-[show-toolbar]:after:z-start",e),...t}),D=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HeaderToolbar,{className:r.cn("flex items-center gap-3 w-full","px-5 py-2 pt-4 justify-between *:m-0",e),...t}),W=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HeaderToolbarWrapper,{className:r.cn("flex items-center gap-1.5",e),...t}),z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ToolbarHeader,{className:r.cn("text-gray-600 dark:text-gray-dark-100 text-sm",e),...t}),q=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Content,{className:r.cn(C.scrollable({section:"content"}),"justify-end",e),...t}),_=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollArea,{className:r.cn("overflow-hidden",e),...t}),Q=c.forwardRef(({className:e,...t},m)=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaViewport,{ref:m,className:r.cn("h-full w-full rounded-[inherit]",e),...t})),R=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaScrollbar,{className:r.cn("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),O=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaThumb,{className:r.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),V=a.EmbeddedChatPrimitive.ContentScrollAreaCorner,G=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Disclaimer,{className:r.cn("ml-auto text-sm flex items-center gap-1",e),...t}),$=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerLabel,{className:r.cn("text-gray-700 dark:text-gray-dark-100",e),...t}),J=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerTrigger,{className:r.cn("cursor-pointer text-gray-700 dark:text-gray-dark-100","focus-visible:ring-gray-500 dark:focus-visible:ring-white-alpha-900 focus-visible:ring-2 focus:outline-none",e),...t}),K=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerContent,{className:r.cn(p.popover({slot:"content"}),"px-4 py-2 font-normal","w-[250px] sm:w-[420px]",e),...t}),U=a.EmbeddedChatPrimitive.DisclaimerText,X=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerArrow,{className:r.cn(p.popover({slot:"arrow"}),e),...t}),Y=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestions,{className:r.cn("mt-4 flex flex-col gap-2",e),...t}),Z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestionsLabel,{className:r.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestionsList,{className:r.cn("flex flex-col","ikp-md:flex-row","flex-wrap gap-2",e),...t}),te=c.forwardRef(({className:e,style:t,...m},u)=>{const b=c.useRef(null),v=a.composeRefs(u,b),{width:f=0,height:F=0}=a.useResizeObserver({ref:b,box:"border-box"}),A=Math.max(F,f);return d.jsx(a.EmbeddedChatPrimitive.ExampleQuestion,{ref:v,style:{"--before-size":`${A+100}px`,...t},className:r.cn("flex items-center justify-center relative z-base","min-h-9 rounded-md overflow-hidden","before:absolute before:z-hide","before:bg-gray-300 dark:before:bg-gray-dark-950","before:bg-no-repeat before:[background-position:0_0]","before:[background-size:cover] before:m-auto","before:w-[--before-size] before:h-[--before-size]","data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.600),transparent_30%)]","dark:data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.300),transparent_30%)]","data-[highlight]:first:before:animate-[spin_4s_linear_infinite]","after:absolute after:z-base after:top-[1px] after:left-[1px]","after:w-[calc(100%-2px)] after:h-[calc(100%-2px)]","after:rounded-[5px] after:bg-white dark:after:bg-gray-dark-950",e),...m})}),ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestionButton,{className:r.cn(o.button({size:"sm"}),"text-sm font-normal h-auto w-full py-2 z-start","whitespace-normal text-center leading-[unset]","border border-solid","text-gray-800 dark:text-white-alpha-950","border-white-alpha-200","[&:where(:hover,:focus)]:bg-slate-400/5","dark:[&:where(:hover,:focus)]:bg-white-alpha-100 focus:z-start",e),...t}),de=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Workflows,{className:r.cn("mt-4 flex flex-col gap-2",e),...t}),re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.WorkflowsLabel,{className:r.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),se=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.WorkflowsList,{className:r.cn("flex flex-wrap gap-2",e),...t}),oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Workflow,{className:r.cn(o.button({size:"sm"}),"min-h-9 px-3 py-2 h-auto font-medium","text-sm gap-2 whitespace-normal border ","text-inkeep-primary-strong dark:text-inkeep-expanded-primary-300","border-inkeep-expanded-primary-200","dark:border-inkeep-expanded-primary-200","hover:bg-inkeep-primary-light-subtle","dark:hover:bg-white-alpha-100",e),...t}),me=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Messages,{className:r.cn("flex flex-col w-full min-w-0 min-h-0 text-2sm relative",e),...t}),g=M.cva(["flex relative w-full overflow-hidden py-8","px-5","flex-col ikp-md:flex-row","min-w-0 grow-[2] data-[role=user]:grow-0","[&:not(:last-child)]:after:absolute","[&:not(:last-child)]:after:border-b","[&:not(:last-child)]:after:bottom-0","[&:not(:last-child)]:after:inset-x-6","ikp-md:[&:not(:last-child)]:after:inset-x-8"]),ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageWrapper,{className:r.cn(g(),e),...t}),ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.IntroMessageWrapper,{className:r.cn(g(),e),...t}),ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageHeader,{className:r.cn("flex justify-start overflow-hidden shrink-0 select-none","flex-row ikp-md:flex-col","items-center ikp-md:items-start","ikp-md:pl-3","ikp-md:pr-6","mb-6 ikp-md:mb-0",e),...t}),le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageLoading,{className:r.cn("flex items-center gap-3 h-12 w-full",e),children:d.jsx(N.LoadingIndicator,{}),...t}),he=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatar,{className:r.cn("flex items-center justify-center rounded-full","h-auto ikp-md:h-12",e),...t}),be=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatarContent,{className:r.cn("relative flex h-8 w-8 shrink-0 overflow-hidden","data-[username]:bg-inkeep-primary-lighter","dark:data-[username]:bg-inkeep-expanded-primary-300","text-inkeep-primary-stronger font-semibold ","data-[role=user]:hidden ikp-md:flex","justify-center items-center",e),...t}),xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatarFallback,{className:r.cn("hidden data-[role=user]:block",e),...t}),pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatarImage,{className:r.cn("data-[type=icon]:data-[role=user]:text-inkeep-primary-medium","dark:data-[type=icon]:data-[role=user]:text-inkeep-expanded-primary-300","data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.300)]","data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),Ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageName,{className:r.cn("px-3 py-1 ml-4 data-[role=user]:ml-0","text-sm rounded-full","bg-inkeep-primary-lighter data-[role=user]:bg-gray-50","text-inkeep-primary-stronger dark:text-inkeep-expanded-primary-300","data-[role=user]:text-gray-700 dark:data-[role=user]:text-white-alpha-700","dark:bg-gray-dark-700","ikp-md:hidden",e),...t}),ue=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageContentWrapper,{className:r.cn("overflow-hidden flex flex-col","justify-start grow-2 w-full","data-[role=user]:justify-end","data-[role=user]:shrink-2","data-[role=user]:grow-0","ikp-md:pr-3",e),...t}),Ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageContent,{className:r.cn("text-2sm flex-wrap break-words min-w-0 shrink-1 max-w-full",e),...t}),ge=a.EmbeddedChatPrimitive.MessageAttachments,ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsList,{className:r.cn("flex flex-wrap gap-2",e),...t}),fe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsItem,{className:r.cn(o.button({variant:"ghost"}),n.attachment({slot:"root"}),"font-normal px-2",e),...t}),Fe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsItemIcon,{className:r.cn(n.attachment({slot:"icon"}),e),...t}),Ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsItemTitle,{className:r.cn(n.attachment({slot:"title"}),e),...t}),ke=a.EmbeddedChatPrimitive.MessageAttachmentsPreview,we=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewOverlay,{className:r.cn(s.modal({slot:"overlay"}),e),...t}),Pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewContent,{className:r.cn(s.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),Me=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewHeader,{className:r.cn(s.modal({slot:"header"}),"px-0 pt-0 pb-8 flex flex-col gap-6","font-semibold",e),...t}),je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewClose,{className:r.cn(s.modal({slot:"close"}),e),...t}),ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewBody,{className:r.cn(s.modal({slot:"body"}),"p-0",e),...t}),Ne=({className:e,componentStyles:t,...m})=>d.jsx(a.EmbeddedChatPrimitive.Message,{className:r.cn("data-[role=user]:whitespace-pre-wrap mb-3 max-w-full",e),componentStyles:j.merge(y.markdownStyles,t??{}),...m}),Ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageToolbar,{className:r.cn("flex items-center mt-2 mb-3",e),...t}),Be=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageToolActions,{className:r.cn("mr-auto flex items-center gap-2",e),...t}),Se=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageToolAction,{className:r.cn(o.button({size:"xs",variant:"outline"}),"text-xs h-[30px] text-gray-700 dark:text-gray-200 gap-1",e),...t}),Te=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAction,{className:r.cn(o.button({variant:"iconButton",size:"sm"}),"data-[upvoted]:text-inkeep-primary-medium","data-[downvoted]:text-inkeep-primary-medium","data-[upvoted]:dark:text-inkeep-expanded-primary-300","data-[downvoted]:dark:text-inkeep-expanded-primary-300","dark:hover:text-inkeep-expanded-primary-300 px-2 text-md",e),...t}),He=a.EmbeddedChatPrimitive.MessageSources,Le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourcesHeader,{className:r.cn("block text-xs font-medium my-2 text-gray-700 dark:text-gray-dark-300",e),...t}),De=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourcesList,{className:r.cn("w-full relative flex flex-col gap-3 py-[1px]",e),...t}),We=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItem,{className:r.cn(i.citation({slot:"root"}),e),...t}),ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemBreadcrumbs,{className:r.cn(i.citation({slot:"breadcrumbs"}),e),...t}),qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemBreadcrumbIcon,{className:r.cn(i.citation({slot:"breadcrumbsIcon"}),e),...t}),_e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemIcon,{className:r.cn(i.citation({slot:"icon"}),e),...t}),Qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemTitle,{className:r.cn(i.citation({slot:"title"}),e),...t}),Re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemTag,{className:r.cn(i.citation({slot:"tag"}),e),...t}),Oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemDescription,{className:r.cn(i.citation({slot:"description"}),e),...t}),Ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemDescriptionPart,{className:r.cn(i.citation({slot:"descriptionPart"}),e),...t}),Ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemIndicator,{className:r.cn(i.citation({slot:"indicator"}),e),...t}),$e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Footer,{className:r.cn("bg-white dark:bg-gray-dark-950 pt-6 pb-4","px-5 relative","before:absolute before:block before:top-0 before:left-0","before:pointer-events-none before:w-full before:h-3","before:bg-[linear-gradient(transparent,_white)] dark:before:bg-[linear-gradient(transparent,_var(--ikp-color-gray-dark-950))]","before:-translate-y-full",e),...t}),Je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.InputFieldset,{className:r.cn("relative flex flex-col w-full p-2","rounded-lg items-stretch shadow-md dark:shadow-none","bg-gray-50 dark:bg-white-alpha-50",e),...t}),Ke=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.InputGroup,{className:r.cn("flex",e),...t}),Ue=c.forwardRef(({className:e,...t},m)=>d.jsx(a.EmbeddedChatPrimitive.Input,{ref:m,className:r.cn("min-h-[unset] overflow-hidden w-full resize-none","placeholder:text-gray-500 dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent","px-3 py-2 ml-1 mr-2 max-h-[200px] overflow-y-auto disabled:cursor-not-allowed",e),...t})),Xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.SendButton,{className:r.cn(o.button({}),"bg-transparent relative size-10 rounded-lg transition-all ease-linear","text-inkeep-primary-medium dark:text-inkeep-expanded-primary-500","active:bg-gray-300 dark:active:bg-white-alpha-100","hover:bg-gray-200 hover:text-inkeep-primary-strong","dark:hover:bg-white-alpha-100 dark:hover:text-inkeep-expanded-primary-300","disabled:text-gray-500 dark:disabled:text-white-alpha-200","disabled:cursor-not-allowed hover:disabled:[background:none] active:disabled:[background:none]",e),...t}),Ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.SendButtonIcon,{className:r.cn(w.icon(),"text-inherit rotate-[-30deg]",e),...t}),Ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBar,{className:r.cn("flex items-center justify-between","flex-wrap gap-2 px-1 pt-2 pb-1",e),...t}),et=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarList,{className:r.cn("flex items-center gap-2 flex-wrap px-3 min-w-0",e),...t}),tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachment,{className:r.cn(n.attachment({slot:"root"}),e),...t}),at=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachmentIcon,{className:r.cn(n.attachment({slot:"icon"}),e),...t}),dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachmentTitle,{className:r.cn(n.attachment({slot:"title"}),e),...t}),rt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachmentDelete,{className:r.cn(n.attachment({slot:"delete"}),e),...t}),st=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarActions,{className:r.cn("flex items-center justify-between","gap-2 flex-wrap px-3",e),...t}),ot=a.EmbeddedChatPrimitive.AttachmentsBarInfoTip,mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInfoTipIcon,{className:r.cn("cursor-pointer text-sm text-gray-600","dark:text-white-alpha-600",e),...t}),it=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInfoTipText,{className:r.cn("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-950 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)] z-dropdown","px-3 py-2 rounded-md text-sm font-normal max-w-[200px]",e),...t}),nt=a.EmbeddedChatPrimitive.AttachmentsBarInfoTipArrow,ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInputs,{className:r.cn("contents",e),...t}),lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInput,{className:r.cn(o.button({variant:"outline",size:"xs"}),"light:text-gray-700 gap-1",e),...t}),ht=a.EmbeddedChatPrimitive.AttachmentsBarModal,bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalOverlay,{className:r.cn(s.modal({slot:"overlay"}),e),...t}),xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalContent,{className:r.cn(s.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalHeader,{className:r.cn(s.modal({slot:"header"}),"px-0 pt-0 pb-8 gap-y-2","font-semibold",e),...t}),Ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalHeading,{className:r.cn("w-full semibold",e),...t}),ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalDescription,{className:r.cn("text-gray-700 dark:text-white-alpha-700","text-sm font-normal w-full",e),...t}),Et=a.EmbeddedChatPrimitive.AttachmentsBarModalHelp,gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalClose,{className:r.cn(s.modal({slot:"close"}),e),...t}),vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalBody,{className:r.cn(s.modal({slot:"body"}),"p-0",e),...t}),ft=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarForm,{className:r.cn("flex flex-col gap-8",e),...t}),Ft=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitle,{className:r.cn("flex flex-col gap-2",e),...t}),At=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitleLabel,{className:r.cn("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitleInput,{className:r.cn("h-10 px-4 rounded-md border","focus:outline-none focus:[--shadow-color:theme(colors.blue.500)]","data-[invalid]:[--shadow-color:theme(colors.red.500)]","shadow-[0_0_0_2px_var(--shadow-color)]",e),...t}),wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitleError,{className:r.cn("text-sm text-red-500",e),...t}),Pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContent,{className:r.cn("flex flex-col gap-2",e),...t}),Mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContentLabel,{className:r.cn("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContentInput,{className:r.cn(l.input({size:"md",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContentError,{className:r.cn("text-sm text-red-500",e),...t}),Nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormSubmitButton,{className:r.cn(o.button({preset:"neutralFilled"}),"ml-auto",e),...t}),It=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ActionBar,{className:r.cn("mt-4 flex items-start justify-between flex-wrap-reverse gap-2.5",e),...t}),Bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Actions,{className:r.cn("flex items-center gap-2.5 flex-wrap",e),...t}),St=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineContainer,{className:r.cn("flex items-center whitespace-nowrap",e),...t}),Tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineText,{className:r.cn("text-xs md:text-sm text-gray-500 dark:text-white-alpha-600",e),...t}),Ht=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineLogo,{className:r.cn("text-gray-400 dark:text-white-alpha-500","w-[18px] ml-2 mr-1",e),...t}),Lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineBrandName,{className:r.cn(P.link(),"inline-flex text-xs md:text-sm text-gray-500","dark:text-white-alpha-600 font-bold",e),...t}),E=r.cn(o.button({size:"xs",variant:"outline"}),"text-gray-700 dark:text-white-alpha-700"),Dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatAction,{className:r.cn(E,e),...t}),Wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatActionLabel,{className:r.cn("cursor-pointer",e),...t}),zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatActionFeedback,{className:r.cn("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-900 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)]","px-2 py-3 rounded-md text-sm font-normal",e),...t}),qt=a.EmbeddedChatPrimitive.HelpActions,_t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatHelpAction,{className:r.cn(E,e),...t}),Qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsTrigger,{className:r.cn(E,e),...t}),Rt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenu,{className:r.cn(p.popover({slot:"content"}),"gap-3 px-3 py-4 ","w-[254px] text-sm font-normal",e),...t}),Ot=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenuArrow,{className:r.cn(p.popover({slot:"arrow"}),e),...t}),Vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenuItem,{className:r.cn("flex items-center cursor-pointer hover:underline",e),...t}),Gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenuItemIcon,{className:r.cn("mr-2 text-inkeep-primary-medium",e),...t}),$t=a.EmbeddedChatPrimitive.FeedbackModal,Jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalOverlay,{className:r.cn(s.modal({slot:"overlay"}),e),...t}),Kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalContent,{className:r.cn(s.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-[480px]",e),...t}),Ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalHeader,{className:r.cn(s.modal({slot:"header"}),"px-0 pt-0 pb-8","font-semibold",e),...t}),Xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalClose,{className:r.cn(s.modal({slot:"close"}),e),...t}),Yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalBody,{className:r.cn(s.modal({slot:"body"}),"p-0",e),...t}),Zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackForm,{className:r.cn("flex flex-col gap-8",e),...t}),ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItem,{className:r.cn("flex flex-wrap items-center","gap-[1rem_0.5rem]",e),...t}),ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemCheckbox,{className:r.cn(x.checkbox({slot:"root"}),e),...t}),aa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemCheckboxIndicator,{className:r.cn(x.checkbox({slot:"indicator"}),e),...t}),da=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemLabel,{className:r.cn("select-none cursor-pointer font-medium text-sm","text-gray-700 dark:text-white-alpha-700",e),...t}),ra=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemDescription,{className:r.cn("flex-[0_0_100%]","min-h-20 py-2 border rounded-md","px-4",e),...t}),sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackSubmitButton,{className:r.cn(o.button({preset:"neutralFilled"}),"ml-auto",e),...t}),oa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormWrapper,{className:r.cn("w-full overflow-y-auto",e),...t}),ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Form,{className:r.cn(C.scrollable({section:"content"}),"relative pt-4 pb-8 gap-8","items-start justify-center w-full","px-6 ikp-md:px-10 ikp-md:pb-14",e),...t}),ia=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormClose,{className:r.cn(o.button({variant:"ghost"}),"absolute right-1 top-1","text-xl text-gray-500 dark:text-white-alpha-500 w-10 h-10 z-modal",e),...t}),na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormHeader,{className:r.cn("mt-12 flex flex-col gap-6",e),...t}),ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormHeading,{className:r.cn("font-semibold text-xl leading-5",e),...t}),la=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormDescription,{className:r.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormContent,{className:r.cn("w-full",e),...t}),ba=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormField,{className:r.cn("mb-8 flex flex-col gap-2 data-[hidden]:hidden","data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:items-center",e),...t}),xa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldLabel,{className:r.cn("font-medium text-sm text-gray-700","dark:text-white-alpha-700 ","font-medium relative","data-[required]:after:absolute",'data-[required]:after:[content:"*"]',"data-[required]:after:ml-1","data-[required]:after:mt-0","data-[required]:after:text-red-500","dark:data-[required]:after:text-red-300",e),...t}),pa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldText,{className:r.cn(l.input({size:"md",variant:"outline"}),e),...t}),Ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldEmail,{className:r.cn(l.input({size:"md",variant:"outline"}),e),...t}),ua=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldFile,{className:r.cn(l.input({size:"md",variant:"outline"}),"text-sm pl-2 file:h-full file:cursor-pointer py-0","file:bg-transparent file:border-none file:font-medium","file:text-sm file:text-gray-700 dark:file:text-white-alpha-700",e),...t}),Ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldTextArea,{className:r.cn(l.input({size:"md",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),ga=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldCheckbox,{className:r.cn(x.checkbox({slot:"root"}),e),...t}),va=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldCheckboxIndicator,{className:r.cn(x.checkbox({slot:"indicator"}),e),...t}),fa=a.EmbeddedChatPrimitive.FormFieldSelect,Fa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectTrigger,{className:r.cn(h.select({slot:"trigger"}),e),...t}),Aa=a.EmbeddedChatPrimitive.FormFieldSelectValue,ka=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectIcon,{className:r.cn("h-4 w-4 opacity-45",e),...t}),wa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectContent,{className:r.cn(h.select({slot:"content"}),e),...t}),Pa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectViewport,{className:r.cn(h.select({slot:"viewport"}),e),...t}),Ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectItem,{className:r.cn(h.select({slot:"item"}),e),...t}),ja=a.EmbeddedChatPrimitive.FormFieldSelectItemText,ya=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectItemIndicator,{className:r.cn(h.select({slot:"itemIndicator"}),e),...t}),Na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldError,{className:r.cn("text-sm flex items-center text-red-500 dark:text-red-300",e),...t}),Ia=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormError,{className:r.cn("text-red-500 dark:text-red-300",e),...t}),Ba=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFooter,{className:r.cn("flex items-center justify-end gap-6 w-full",e),...t}),Sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormCancel,{className:r.cn(o.button({variant:"outline"}),e),...t}),Ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSubmit,{className:r.cn(o.button({preset:"neutralFilled"}),e),...t}),Ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSuccess,{className:r.cn("flex flex-col items-center justify-center h-auto","m-auto px-6 py-8 ikp-md:py-14 ikp-md:px-10",e),...t}),La=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSuccessHeading,{className:r.cn("mb-6 font-bold tracking-tight","text-3xl md:text-4xl leading-6 md:leading-5",e),...t}),Da=a.EmbeddedChatPrimitive.FormSuccessMessage,Wa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSuccessButton,{className:r.cn(o.button({preset:"neutralFilled"}),"w-full mt-12 gap-2 shrink-0",e),...t});exports.ActionBar=It;exports.Actions=Bt;exports.AttachmentsBar=Ze;exports.AttachmentsBarActions=st;exports.AttachmentsBarAttachment=tt;exports.AttachmentsBarAttachmentDelete=rt;exports.AttachmentsBarAttachmentIcon=at;exports.AttachmentsBarAttachmentTitle=dt;exports.AttachmentsBarForm=ft;exports.AttachmentsBarFormContent=Pt;exports.AttachmentsBarFormContentError=yt;exports.AttachmentsBarFormContentInput=jt;exports.AttachmentsBarFormContentLabel=Mt;exports.AttachmentsBarFormSubmitButton=Nt;exports.AttachmentsBarFormTitle=Ft;exports.AttachmentsBarFormTitleError=wt;exports.AttachmentsBarFormTitleInput=kt;exports.AttachmentsBarFormTitleLabel=At;exports.AttachmentsBarInfoTip=ot;exports.AttachmentsBarInfoTipArrow=nt;exports.AttachmentsBarInfoTipIcon=mt;exports.AttachmentsBarInfoTipText=it;exports.AttachmentsBarInput=lt;exports.AttachmentsBarInputs=ct;exports.AttachmentsBarList=et;exports.AttachmentsBarModal=ht;exports.AttachmentsBarModalBody=vt;exports.AttachmentsBarModalClose=gt;exports.AttachmentsBarModalContent=xt;exports.AttachmentsBarModalDescription=ut;exports.AttachmentsBarModalHeader=pt;exports.AttachmentsBarModalHeading=Ct;exports.AttachmentsBarModalHelp=Et;exports.AttachmentsBarModalOverlay=bt;exports.ChatAction=Dt;exports.ChatActionFeedback=zt;exports.ChatActionLabel=Wt;exports.Content=q;exports.ContentScrollArea=_;exports.ContentScrollAreaCorner=V;exports.ContentScrollAreaScrollbar=R;exports.ContentScrollAreaThumb=O;exports.ContentScrollAreaViewport=Q;exports.ConversationLoading=T;exports.Disclaimer=G;exports.DisclaimerArrow=X;exports.DisclaimerContent=K;exports.DisclaimerLabel=$;exports.DisclaimerText=U;exports.DisclaimerTrigger=J;exports.ExampleQuestion=te;exports.ExampleQuestionButton=ae;exports.ExampleQuestions=Y;exports.ExampleQuestionsLabel=Z;exports.ExampleQuestionsList=ee;exports.FeedbackForm=Zt;exports.FeedbackItem=ea;exports.FeedbackItemCheckbox=ta;exports.FeedbackItemCheckboxIndicator=aa;exports.FeedbackItemDescription=ra;exports.FeedbackItemLabel=da;exports.FeedbackModal=$t;exports.FeedbackModalBody=Yt;exports.FeedbackModalClose=Xt;exports.FeedbackModalContent=Kt;exports.FeedbackModalHeader=Ut;exports.FeedbackModalOverlay=Jt;exports.FeedbackSubmitButton=sa;exports.Footer=$e;exports.Form=ma;exports.FormCancel=Sa;exports.FormClose=ia;exports.FormContent=ha;exports.FormDescription=la;exports.FormError=Ia;exports.FormField=ba;exports.FormFieldCheckbox=ga;exports.FormFieldCheckboxIndicator=va;exports.FormFieldEmail=Ca;exports.FormFieldError=Na;exports.FormFieldFile=ua;exports.FormFieldLabel=xa;exports.FormFieldSelect=fa;exports.FormFieldSelectContent=wa;exports.FormFieldSelectIcon=ka;exports.FormFieldSelectItem=Ma;exports.FormFieldSelectItemIndicator=ya;exports.FormFieldSelectItemText=ja;exports.FormFieldSelectTrigger=Fa;exports.FormFieldSelectValue=Aa;exports.FormFieldSelectViewport=Pa;exports.FormFieldText=pa;exports.FormFieldTextArea=Ea;exports.FormFooter=Ba;exports.FormHeader=na;exports.FormHeading=ca;exports.FormSubmit=Ta;exports.FormSuccess=Ha;exports.FormSuccessButton=Wa;exports.FormSuccessHeading=La;exports.FormSuccessMessage=Da;exports.FormWrapper=oa;exports.Header=L;exports.HeaderToolbar=D;exports.HeaderToolbarWrapper=W;exports.HelpAction=_t;exports.HelpActions=qt;exports.HelpActionsMenu=Rt;exports.HelpActionsMenuArrow=Ot;exports.HelpActionsMenuItem=Vt;exports.HelpActionsMenuItemIcon=Gt;exports.HelpActionsTrigger=Qt;exports.Input=Ue;exports.InputFieldset=Je;exports.InputGroup=Ke;exports.IntroMessageWrapper=ne;exports.Message=Ne;exports.MessageAction=Te;exports.MessageAttachments=ge;exports.MessageAttachmentsItem=fe;exports.MessageAttachmentsItemIcon=Fe;exports.MessageAttachmentsItemTitle=Ae;exports.MessageAttachmentsList=ve;exports.MessageAttachmentsPreview=ke;exports.MessageAttachmentsPreviewBody=ye;exports.MessageAttachmentsPreviewClose=je;exports.MessageAttachmentsPreviewContent=Pe;exports.MessageAttachmentsPreviewHeader=Me;exports.MessageAttachmentsPreviewOverlay=we;exports.MessageAvatar=he;exports.MessageAvatarContent=be;exports.MessageAvatarFallback=xe;exports.MessageAvatarImage=pe;exports.MessageContent=Ee;exports.MessageContentWrapper=ue;exports.MessageHeader=ce;exports.MessageLoading=le;exports.MessageName=Ce;exports.MessageSourceItem=We;exports.MessageSourceItemBreadcrumbIcon=qe;exports.MessageSourceItemBreadcrumbs=ze;exports.MessageSourceItemDescription=Oe;exports.MessageSourceItemDescriptionPart=Ve;exports.MessageSourceItemIcon=_e;exports.MessageSourceItemIndicator=Ge;exports.MessageSourceItemTag=Re;exports.MessageSourceItemTitle=Qe;exports.MessageSources=He;exports.MessageSourcesHeader=Le;exports.MessageSourcesList=De;exports.MessageToolAction=Se;exports.MessageToolActions=Be;exports.MessageToolbar=Ie;exports.MessageWrapper=ie;exports.Messages=me;exports.Provider=B;exports.Root=H;exports.SendButton=Xe;exports.SendButtonIcon=Ye;exports.TaglineBrandName=Lt;exports.TaglineContainer=St;exports.TaglineLogo=Ht;exports.TaglineText=Tt;exports.ToolbarHeader=z;exports.Workflow=oe;exports.Workflows=de;exports.WorkflowsLabel=re;exports.WorkflowsList=se;exports.Wrapper=S;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),a=require("@inkeep/cxkit-primitives"),k=require("../ui/recipes/ai-chat-page-wrapper.cjs"),n=require("../ui/recipes/attachment.cjs"),o=require("../ui/recipes/button.cjs"),x=require("../ui/recipes/checkbox.cjs"),m=require("../ui/recipes/citation.cjs"),w=require("../ui/recipes/icon.cjs"),l=require("../ui/recipes/input.cjs"),P=require("../ui/recipes/link.cjs"),r=require("../ui/recipes/modal.cjs"),p=require("../ui/recipes/popover.cjs"),C=require("../ui/recipes/scrollable.cjs"),h=require("../ui/recipes/select.cjs"),M=require("class-variance-authority"),j=require("merge-anything"),c=require("react"),s=require("../utils.cjs"),y=require("../ui/markdown-styles.cjs"),N=require("./loading-indicator.cjs"),I=require("./embedded-chat/conversation-loading.cjs"),B=a.EmbeddedChatPrimitive.Provider,S=c.forwardRef(({className:e,size:t,variant:i,...u},b)=>d.jsx(a.EmbeddedChatPrimitive.Wrapper,{ref:b,className:s.cn(k.aiChatPageWrapper({size:t,variant:i}),"data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950","data-[composite]:w-full","max-h-[min(85vh,850px)]","[[data-sidebar]_&]:m-[unset] [[data-sidebar]_&]:mt-auto","[[data-sidebar]_&]:h-full [[data-sidebar]_&]:w-full","[[data-sidebar]_&]:max-h-[unset]",e),...u})),T=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ConversationLoading,{className:s.cn("flex flex-col items-center justify-center h-full gap-12 flex-1 p-8",e),children:d.jsx(I.ConversationLoading,{}),...t}),H=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Root,{className:s.cn(C.scrollable({section:"wrapper"}),"rounded-[inherit] font-body",e),...t}),L=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Header,{className:s.cn(C.scrollable({section:"header"}),"flex items-center","bg-white dark:bg-gray-dark-950","data-[show-toolbar]:after:absolute","data-[show-toolbar]:after:left-0","data-[show-toolbar]:after:top-full","data-[show-toolbar]:after:h-[1rem]","data-[show-toolbar]:after:w-full","data-[show-toolbar]:after:text-white","data-[show-toolbar]:after:dark:text-gray-dark-950","data-[show-toolbar]:after:bg-[linear-gradient(currentColor,_transparent)]","data-[show-toolbar]:after:z-start",e),...t}),D=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HeaderToolbar,{className:s.cn("flex items-center gap-3 w-full","px-5 py-2 pt-4 justify-between *:m-0",e),...t}),W=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HeaderToolbarWrapper,{className:s.cn("flex items-center gap-1.5",e),...t}),z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ToolbarHeader,{className:s.cn("text-gray-600 dark:text-gray-dark-100 text-sm",e),...t}),q=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Content,{className:s.cn(C.scrollable({section:"content"}),"justify-end",e),...t}),_=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollArea,{className:s.cn("overflow-hidden",e),...t}),Q=c.forwardRef(({className:e,...t},i)=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaViewport,{ref:i,className:s.cn("h-full w-full rounded-[inherit]",e),...t})),R=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaScrollbar,{className:s.cn("flex select-none touch-none p-0.5","transition-colors duration-[160ms] ease-in-out","w-2.5 border-l border-l-transparent",e),...t}),O=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaThumb,{className:s.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),V=a.EmbeddedChatPrimitive.ContentScrollAreaCorner,G=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Disclaimer,{className:s.cn("ml-auto text-sm flex items-center gap-1",e),...t}),$=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerLabel,{className:s.cn("text-gray-700 dark:text-gray-dark-100",e),...t}),J=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerTrigger,{className:s.cn("cursor-pointer text-gray-700 dark:text-gray-dark-100","focus-visible:ring-gray-500 dark:focus-visible:ring-white-alpha-900 focus-visible:ring-2 focus:outline-none",e),...t}),K=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerContent,{className:s.cn(p.popover({slot:"content"}),"px-4 py-2 font-normal","w-[250px] sm:w-[420px]",e),...t}),U=a.EmbeddedChatPrimitive.DisclaimerText,X=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.DisclaimerArrow,{className:s.cn(p.popover({slot:"arrow"}),e),...t}),Y=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestions,{className:s.cn("mt-4 flex flex-col gap-2",e),...t}),Z=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestionsLabel,{className:s.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestionsList,{className:s.cn("flex flex-col","ikp-md:flex-row","flex-wrap gap-2",e),...t}),te=c.forwardRef(({className:e,style:t,...i},u)=>{const b=c.useRef(null),v=a.composeRefs(u,b),{width:f=0,height:F=0}=a.useResizeObserver({ref:b,box:"border-box"}),A=Math.max(F,f);return d.jsx(a.EmbeddedChatPrimitive.ExampleQuestion,{ref:v,style:{"--before-size":`${A+100}px`,...t},className:s.cn("flex items-center justify-center relative z-base","min-h-9 rounded-md overflow-hidden","before:absolute before:z-hide","before:bg-gray-300 dark:before:bg-gray-dark-950","before:bg-no-repeat before:[background-position:0_0]","before:[background-size:cover] before:m-auto","before:w-[--before-size] before:h-[--before-size]","data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.600),transparent_30%)]","dark:data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.300),transparent_30%)]","data-[highlight]:first:before:animate-[spin_4s_linear_infinite]","after:absolute after:z-base after:top-[1px] after:left-[1px]","after:w-[calc(100%-2px)] after:h-[calc(100%-2px)]","after:rounded-[5px] after:bg-white dark:after:bg-gray-dark-950",e),...i})}),ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ExampleQuestionButton,{className:s.cn(o.button({size:"sm"}),"text-sm font-normal h-auto w-full py-2 z-start","whitespace-normal text-center leading-[unset]","border border-solid","text-gray-800 dark:text-white-alpha-950","border-white-alpha-200","[&:where(:hover,:focus)]:bg-slate-400/5","dark:[&:where(:hover,:focus)]:bg-white-alpha-100 focus:z-start",e),...t}),de=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Workflows,{className:s.cn("mt-4 flex flex-col gap-2",e),...t}),se=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.WorkflowsLabel,{className:s.cn("text-2xs uppercase font-semibold tracking-widest","text-gray-600 dark:text-white-alpha-500",e),...t}),re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.WorkflowsList,{className:s.cn("flex flex-wrap gap-2",e),...t}),oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Workflow,{className:s.cn(o.button({size:"sm"}),"min-h-9 px-3 py-2 h-auto font-medium","text-sm gap-2 whitespace-normal border ","text-inkeep-primary-strong dark:text-inkeep-expanded-primary-300","border-inkeep-expanded-primary-200","dark:border-inkeep-expanded-primary-200","hover:bg-inkeep-primary-light-subtle","dark:hover:bg-white-alpha-100",e),...t}),ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Messages,{className:s.cn("flex flex-col w-full min-w-0 min-h-0 text-2sm relative",e),...t}),g=M.cva(["flex relative w-full overflow-hidden py-8","px-5","flex-col ikp-md:flex-row","min-w-0 grow-[2] data-[role=user]:grow-0","[&:not(:last-child)]:after:absolute","[&:not(:last-child)]:after:border-b","[&:not(:last-child)]:after:bottom-0","[&:not(:last-child)]:after:inset-x-6","ikp-md:[&:not(:last-child)]:after:inset-x-8"]),me=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageWrapper,{className:s.cn(g(),e),...t}),ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.IntroMessageWrapper,{className:s.cn(g(),e),...t}),ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageHeader,{className:s.cn("flex justify-start overflow-hidden shrink-0 select-none","flex-row ikp-md:flex-col","items-center ikp-md:items-start","ikp-md:pl-3","ikp-md:pr-6","mb-6 ikp-md:mb-0",e),...t}),le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageLoading,{className:s.cn("flex items-center gap-3 h-12 w-full",e),children:d.jsx(N.LoadingIndicator,{}),...t}),he=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatar,{className:s.cn("flex items-center justify-center rounded-full","h-auto ikp-md:h-12",e),...t}),be=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatarContent,{className:s.cn("relative flex h-8 w-8 shrink-0 overflow-hidden","data-[username]:bg-inkeep-primary-lighter","dark:data-[username]:bg-inkeep-expanded-primary-300","text-inkeep-primary-stronger font-semibold ","data-[role=user]:hidden ikp-md:flex","justify-center items-center",e),...t}),xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatarFallback,{className:s.cn("hidden data-[role=user]:block",e),...t}),pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAvatarImage,{className:s.cn("data-[type=icon]:data-[role=user]:text-inkeep-primary-medium","dark:data-[type=icon]:data-[role=user]:text-inkeep-expanded-primary-300","data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.300)]","data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:data-[type=icon]:data-[role=assistant]:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:data-[type=icon]:data-[role=assistant]:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),Ce=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageName,{className:s.cn("px-3 py-1 ml-4 data-[role=user]:ml-0","text-sm rounded-full","bg-inkeep-primary-lighter data-[role=user]:bg-gray-50","text-inkeep-primary-stronger dark:text-inkeep-expanded-primary-300","data-[role=user]:text-gray-700 dark:data-[role=user]:text-white-alpha-700","dark:bg-gray-dark-700","ikp-md:hidden",e),...t}),ue=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageContentWrapper,{className:s.cn("overflow-hidden flex flex-col","justify-start grow-2 w-full","data-[role=user]:justify-end","data-[role=user]:shrink-2","data-[role=user]:grow-0","ikp-md:pr-3",e),...t}),Ee=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageContent,{className:s.cn("text-2sm flex-wrap break-words min-w-0 shrink-1 max-w-full",e),...t}),ge=a.EmbeddedChatPrimitive.MessageAttachments,ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsList,{className:s.cn("flex flex-wrap gap-2",e),...t}),fe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsItem,{className:s.cn(o.button({variant:"ghost"}),n.attachment({slot:"root"}),"font-normal px-2",e),...t}),Fe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsItemIcon,{className:s.cn(n.attachment({slot:"icon"}),e),...t}),Ae=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsItemTitle,{className:s.cn(n.attachment({slot:"title"}),e),...t}),ke=a.EmbeddedChatPrimitive.MessageAttachmentsPreview,we=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewOverlay,{className:s.cn(r.modal({slot:"overlay"}),e),...t}),Pe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewContent,{className:s.cn(r.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),Me=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewHeader,{className:s.cn(r.modal({slot:"header"}),"px-0 pt-0 pb-8 flex flex-col gap-6","font-semibold",e),...t}),je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewClose,{className:s.cn(r.modal({slot:"close"}),e),...t}),ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAttachmentsPreviewBody,{className:s.cn(r.modal({slot:"body"}),"p-0",e),...t}),Ne=({className:e,componentStyles:t,...i})=>d.jsx(a.EmbeddedChatPrimitive.Message,{className:s.cn("data-[role=user]:whitespace-pre-wrap mb-3 max-w-full",e),componentStyles:j.merge(y.markdownStyles,t??{}),...i}),Ie=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageToolbar,{className:s.cn("flex items-center mt-2 mb-3",e),...t}),Be=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageToolActions,{className:s.cn("mr-auto flex items-center gap-2",e),...t}),Se=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageToolAction,{className:s.cn(o.button({size:"xs",variant:"outline"}),"text-xs h-[30px] text-gray-700 dark:text-gray-200 gap-1",e),...t}),Te=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageAction,{className:s.cn(o.button({variant:"iconButton",size:"sm"}),"data-[upvoted]:text-inkeep-primary-medium","data-[downvoted]:text-inkeep-primary-medium","data-[upvoted]:dark:text-inkeep-expanded-primary-300","data-[downvoted]:dark:text-inkeep-expanded-primary-300","dark:hover:text-inkeep-expanded-primary-300 px-2 text-md",e),...t}),He=a.EmbeddedChatPrimitive.MessageSources,Le=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourcesHeader,{className:s.cn("block text-xs font-medium my-2 text-gray-700 dark:text-gray-dark-300",e),...t}),De=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourcesList,{className:s.cn("w-full relative flex flex-col gap-3 py-[1px]",e),...t}),We=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItem,{className:s.cn(m.citation({slot:"root"}),e),...t}),ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemBreadcrumbs,{className:s.cn(m.citation({slot:"breadcrumbs"}),e),...t}),qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemBreadcrumbIcon,{className:s.cn(m.citation({slot:"breadcrumbsIcon"}),e),...t}),_e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemIcon,{className:s.cn(m.citation({slot:"icon"}),e),...t}),Qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemTitle,{className:s.cn(m.citation({slot:"title"}),e),...t}),Re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemTag,{className:s.cn(m.citation({slot:"tag"}),e),...t}),Oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemDescription,{className:s.cn(m.citation({slot:"description"}),e),...t}),Ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemDescriptionPart,{className:s.cn(m.citation({slot:"descriptionPart"}),e),...t}),Ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemIndicator,{className:s.cn(m.citation({slot:"indicator"}),e),...t}),$e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Footer,{className:s.cn("bg-white dark:bg-gray-dark-950 pt-6 pb-4","px-5 relative","before:absolute before:block before:top-0 before:left-0","before:pointer-events-none before:w-full before:h-3","before:bg-[linear-gradient(transparent,_white)] dark:before:bg-[linear-gradient(transparent,_var(--ikp-color-gray-dark-950))]","before:-translate-y-full",e),...t}),Je=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.InputFieldset,{className:s.cn("relative flex flex-col w-full p-2","rounded-lg items-stretch shadow-md dark:shadow-none","bg-gray-50 dark:bg-white-alpha-50",e),...t}),Ke=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.InputGroup,{className:s.cn("flex",e),...t}),Ue=c.forwardRef(({className:e,...t},i)=>d.jsx(a.EmbeddedChatPrimitive.Input,{ref:i,className:s.cn("min-h-[unset] overflow-hidden w-full resize-none","placeholder:text-gray-500 dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent","px-3 py-2 ml-1 mr-2 max-h-[200px] overflow-y-auto disabled:cursor-not-allowed",e),...t})),Xe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.SendButton,{className:s.cn(o.button({}),"bg-transparent relative size-10 rounded-lg transition-all ease-linear","text-inkeep-primary-medium dark:text-inkeep-expanded-primary-500","active:bg-gray-300 dark:active:bg-white-alpha-100","hover:bg-gray-200 hover:text-inkeep-primary-strong","dark:hover:bg-white-alpha-100 dark:hover:text-inkeep-expanded-primary-300","disabled:text-gray-500 dark:disabled:text-white-alpha-200","disabled:cursor-not-allowed hover:disabled:[background:none] active:disabled:[background:none]",e),...t}),Ye=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.SendButtonIcon,{className:s.cn(w.icon(),"text-inherit rotate-[-30deg]",e),...t}),Ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBar,{className:s.cn("flex items-center justify-between","flex-wrap gap-2 px-1 pt-2 pb-1",e),...t}),et=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarList,{className:s.cn("flex items-center gap-2 flex-wrap px-3 min-w-0",e),...t}),tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachment,{className:s.cn(n.attachment({slot:"root"}),e),...t}),at=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachmentIcon,{className:s.cn(n.attachment({slot:"icon"}),e),...t}),dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachmentTitle,{className:s.cn(n.attachment({slot:"title"}),e),...t}),st=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarAttachmentDelete,{className:s.cn(n.attachment({slot:"delete"}),e),...t}),rt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarActions,{className:s.cn("flex items-center justify-between","gap-2 flex-wrap px-3",e),...t}),ot=a.EmbeddedChatPrimitive.AttachmentsBarInfoTip,it=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInfoTipIcon,{className:s.cn("cursor-pointer text-sm text-gray-600","dark:text-white-alpha-600",e),...t}),mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInfoTipText,{className:s.cn("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-950 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)] z-dropdown","px-3 py-2 rounded-md text-sm font-normal max-w-[200px]",e),...t}),nt=a.EmbeddedChatPrimitive.AttachmentsBarInfoTipArrow,ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInputs,{className:s.cn("contents",e),...t}),lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarInput,{className:s.cn(o.button({variant:"outline",size:"xs"}),"light:text-gray-700 gap-1",e),...t}),ht=a.EmbeddedChatPrimitive.AttachmentsBarModal,bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalOverlay,{className:s.cn(r.modal({slot:"overlay"}),e),...t}),xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalContent,{className:s.cn(r.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-2xl",e),...t}),pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalHeader,{className:s.cn(r.modal({slot:"header"}),"px-0 pt-0 pb-8 gap-y-2","font-semibold",e),...t}),Ct=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalHeading,{className:s.cn("w-full semibold",e),...t}),ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalDescription,{className:s.cn("text-gray-700 dark:text-white-alpha-700","text-sm font-normal w-full",e),...t}),Et=a.EmbeddedChatPrimitive.AttachmentsBarModalHelp,gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalClose,{className:s.cn(r.modal({slot:"close"}),e),...t}),vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarModalBody,{className:s.cn(r.modal({slot:"body"}),"p-0",e),...t}),ft=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarForm,{className:s.cn("flex flex-col gap-8",e),...t}),Ft=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitle,{className:s.cn("flex flex-col gap-2",e),...t}),At=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitleLabel,{className:s.cn("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitleInput,{className:s.cn("h-10 px-4 rounded-md border","focus:outline-none focus:[--shadow-color:theme(colors.blue.500)]","data-[invalid]:[--shadow-color:theme(colors.red.500)]","shadow-[0_0_0_2px_var(--shadow-color)]",e),...t}),wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormTitleError,{className:s.cn("text-sm text-red-500",e),...t}),Pt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContent,{className:s.cn("flex flex-col gap-2",e),...t}),Mt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContentLabel,{className:s.cn("text-sm font-medium text-gray-700 dark:text-white-alpha-700",e),...t}),jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContentInput,{className:s.cn(l.input({size:"md",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormContentError,{className:s.cn("text-sm text-red-500",e),...t}),Nt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.AttachmentsBarFormSubmitButton,{className:s.cn(o.button({preset:"neutralFilled"}),"ml-auto",e),...t}),It=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ActionBar,{className:s.cn("mt-4 flex items-start justify-between flex-wrap-reverse gap-2.5",e),...t}),Bt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Actions,{className:s.cn("flex items-center gap-2.5 flex-wrap",e),...t}),St=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineContainer,{className:s.cn("flex items-center whitespace-nowrap",e),...t}),Tt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineText,{className:s.cn("text-xs md:text-sm text-gray-500 dark:text-white-alpha-600",e),...t}),Ht=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineLogo,{className:s.cn("text-gray-400 dark:text-white-alpha-500","w-[18px] ml-2 mr-1",e),...t}),Lt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.TaglineBrandName,{className:s.cn(P.link(),"inline-flex text-xs md:text-sm text-gray-500","dark:text-white-alpha-600 font-bold",e),...t}),E=s.cn(o.button({size:"xs",variant:"outline"}),"text-gray-700 dark:text-white-alpha-700"),Dt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatAction,{className:s.cn(E,e),...t}),Wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatActionLabel,{className:s.cn("cursor-pointer",e),...t}),zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatActionFeedback,{className:s.cn("bg-white text-gray-800 fill-white","dark:bg-gray-dark-800 dark:text-white-alpha-900 dark:fill-gray-dark-800","shadow-[0_8px_30px_rgba(0,0,0,0.12)]","px-2 py-3 rounded-md text-sm font-normal",e),...t}),qt=a.EmbeddedChatPrimitive.HelpActions,_t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatHelpAction,{className:s.cn(E,e),...t}),Qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsTrigger,{className:s.cn(E,e),...t}),Rt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenu,{className:s.cn(p.popover({slot:"content"}),"gap-3 px-3 py-4 ","w-[254px] text-sm font-normal",e),...t}),Ot=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenuArrow,{className:s.cn(p.popover({slot:"arrow"}),e),...t}),Vt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenuItem,{className:s.cn("flex items-center cursor-pointer hover:underline",e),...t}),Gt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsMenuItemIcon,{className:s.cn("mr-2 text-inkeep-primary-medium",e),...t}),$t=a.EmbeddedChatPrimitive.FeedbackModal,Jt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalOverlay,{className:s.cn(r.modal({slot:"overlay"}),e),...t}),Kt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalContent,{className:s.cn(r.modal({slot:"content"}),"my-6 md:my-12 top-0 left-[unset] transform-none relative","p-8 md:p-10 max-w-[480px]",e),...t}),Ut=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalHeader,{className:s.cn(r.modal({slot:"header"}),"px-0 pt-0 pb-8","font-semibold",e),...t}),Xt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalClose,{className:s.cn(r.modal({slot:"close"}),e),...t}),Yt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackModalBody,{className:s.cn(r.modal({slot:"body"}),"p-0",e),...t}),Zt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackForm,{className:s.cn("flex flex-col gap-8",e),...t}),ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItem,{className:s.cn("flex flex-wrap items-center","gap-[1rem_0.5rem]",e),...t}),ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemCheckbox,{className:s.cn(x.checkbox({slot:"root"}),e),...t}),aa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemCheckboxIndicator,{className:s.cn(x.checkbox({slot:"indicator"}),e),...t}),da=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemLabel,{className:s.cn("select-none cursor-pointer font-medium text-sm","text-gray-700 dark:text-white-alpha-700",e),...t}),sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackItemDescription,{className:s.cn("flex-[0_0_100%]","min-h-20 py-2 border rounded-md","px-4",e),...t}),ra=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FeedbackSubmitButton,{className:s.cn(o.button({preset:"neutralFilled"}),"ml-auto",e),...t}),oa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormWrapper,{className:s.cn("w-full overflow-y-auto",e),...t}),ia=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.Form,{className:s.cn(C.scrollable({section:"content"}),"relative pt-4 pb-8 gap-8","items-start justify-center w-full","px-6 ikp-md:px-10 ikp-md:pb-14",e),...t}),ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormClose,{className:s.cn(o.button({variant:"ghost"}),"absolute right-1 top-1","text-xl text-gray-500 dark:text-white-alpha-500 w-10 h-10 z-modal",e),...t}),na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormHeader,{className:s.cn("mt-12 flex flex-col gap-6",e),...t}),ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormHeading,{className:s.cn("font-semibold text-xl leading-5",e),...t}),la=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormDescription,{className:s.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormContent,{className:s.cn("w-full",e),...t}),ba=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormField,{className:s.cn("mb-8 flex flex-col gap-2 data-[hidden]:hidden","data-[input-type=checkbox]:flex-row data-[input-type=checkbox]:items-center",e),...t}),xa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldLabel,{className:s.cn("font-medium text-sm text-gray-700","dark:text-white-alpha-700 ","font-medium relative","data-[required]:after:absolute",'data-[required]:after:[content:"*"]',"data-[required]:after:ml-1","data-[required]:after:mt-0","data-[required]:after:text-red-500","dark:data-[required]:after:text-red-300",e),...t}),pa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldText,{className:s.cn(l.input({size:"md",variant:"outline"}),e),...t}),Ca=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldEmail,{className:s.cn(l.input({size:"md",variant:"outline"}),e),...t}),ua=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldFile,{className:s.cn(l.input({size:"md",variant:"outline"}),"text-sm pl-2 file:h-full file:cursor-pointer py-0","file:bg-transparent file:border-none file:font-medium","file:text-sm file:text-gray-700 dark:file:text-white-alpha-700",e),...t}),Ea=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldTextArea,{className:s.cn(l.input({size:"md",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),ga=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldCheckbox,{className:s.cn(x.checkbox({slot:"root"}),e),...t}),va=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldCheckboxIndicator,{className:s.cn(x.checkbox({slot:"indicator"}),e),...t}),fa=a.EmbeddedChatPrimitive.FormFieldSelect,Fa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectTrigger,{className:s.cn(h.select({slot:"trigger"}),e),...t}),Aa=a.EmbeddedChatPrimitive.FormFieldSelectValue,ka=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectIcon,{className:s.cn("h-4 w-4 opacity-45",e),...t}),wa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectContent,{className:s.cn(h.select({slot:"content"}),e),...t}),Pa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectViewport,{className:s.cn(h.select({slot:"viewport"}),e),...t}),Ma=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectItem,{className:s.cn(h.select({slot:"item"}),e),...t}),ja=a.EmbeddedChatPrimitive.FormFieldSelectItemText,ya=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldSelectItemIndicator,{className:s.cn(h.select({slot:"itemIndicator"}),e),...t}),Na=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFieldError,{className:s.cn("text-sm flex items-center text-red-500 dark:text-red-300",e),...t}),Ia=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormError,{className:s.cn("text-red-500 dark:text-red-300",e),...t}),Ba=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormFooter,{className:s.cn("flex items-center justify-end gap-6 w-full",e),...t}),Sa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormCancel,{className:s.cn(o.button({variant:"outline"}),e),...t}),Ta=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSubmit,{className:s.cn(o.button({preset:"neutralFilled"}),e),...t}),Ha=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSuccess,{className:s.cn("flex flex-col items-center justify-center h-auto","m-auto px-6 py-8 ikp-md:py-14 ikp-md:px-10",e),...t}),La=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSuccessHeading,{className:s.cn("mb-6 font-bold tracking-tight","text-3xl md:text-4xl leading-6 md:leading-5",e),...t}),Da=a.EmbeddedChatPrimitive.FormSuccessMessage,Wa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormSuccessButton,{className:s.cn(o.button({preset:"neutralFilled"}),"w-full mt-12 gap-2 shrink-0",e),...t});exports.ActionBar=It;exports.Actions=Bt;exports.AttachmentsBar=Ze;exports.AttachmentsBarActions=rt;exports.AttachmentsBarAttachment=tt;exports.AttachmentsBarAttachmentDelete=st;exports.AttachmentsBarAttachmentIcon=at;exports.AttachmentsBarAttachmentTitle=dt;exports.AttachmentsBarForm=ft;exports.AttachmentsBarFormContent=Pt;exports.AttachmentsBarFormContentError=yt;exports.AttachmentsBarFormContentInput=jt;exports.AttachmentsBarFormContentLabel=Mt;exports.AttachmentsBarFormSubmitButton=Nt;exports.AttachmentsBarFormTitle=Ft;exports.AttachmentsBarFormTitleError=wt;exports.AttachmentsBarFormTitleInput=kt;exports.AttachmentsBarFormTitleLabel=At;exports.AttachmentsBarInfoTip=ot;exports.AttachmentsBarInfoTipArrow=nt;exports.AttachmentsBarInfoTipIcon=it;exports.AttachmentsBarInfoTipText=mt;exports.AttachmentsBarInput=lt;exports.AttachmentsBarInputs=ct;exports.AttachmentsBarList=et;exports.AttachmentsBarModal=ht;exports.AttachmentsBarModalBody=vt;exports.AttachmentsBarModalClose=gt;exports.AttachmentsBarModalContent=xt;exports.AttachmentsBarModalDescription=ut;exports.AttachmentsBarModalHeader=pt;exports.AttachmentsBarModalHeading=Ct;exports.AttachmentsBarModalHelp=Et;exports.AttachmentsBarModalOverlay=bt;exports.ChatAction=Dt;exports.ChatActionFeedback=zt;exports.ChatActionLabel=Wt;exports.Content=q;exports.ContentScrollArea=_;exports.ContentScrollAreaCorner=V;exports.ContentScrollAreaScrollbar=R;exports.ContentScrollAreaThumb=O;exports.ContentScrollAreaViewport=Q;exports.ConversationLoading=T;exports.Disclaimer=G;exports.DisclaimerArrow=X;exports.DisclaimerContent=K;exports.DisclaimerLabel=$;exports.DisclaimerText=U;exports.DisclaimerTrigger=J;exports.ExampleQuestion=te;exports.ExampleQuestionButton=ae;exports.ExampleQuestions=Y;exports.ExampleQuestionsLabel=Z;exports.ExampleQuestionsList=ee;exports.FeedbackForm=Zt;exports.FeedbackItem=ea;exports.FeedbackItemCheckbox=ta;exports.FeedbackItemCheckboxIndicator=aa;exports.FeedbackItemDescription=sa;exports.FeedbackItemLabel=da;exports.FeedbackModal=$t;exports.FeedbackModalBody=Yt;exports.FeedbackModalClose=Xt;exports.FeedbackModalContent=Kt;exports.FeedbackModalHeader=Ut;exports.FeedbackModalOverlay=Jt;exports.FeedbackSubmitButton=ra;exports.Footer=$e;exports.Form=ia;exports.FormCancel=Sa;exports.FormClose=ma;exports.FormContent=ha;exports.FormDescription=la;exports.FormError=Ia;exports.FormField=ba;exports.FormFieldCheckbox=ga;exports.FormFieldCheckboxIndicator=va;exports.FormFieldEmail=Ca;exports.FormFieldError=Na;exports.FormFieldFile=ua;exports.FormFieldLabel=xa;exports.FormFieldSelect=fa;exports.FormFieldSelectContent=wa;exports.FormFieldSelectIcon=ka;exports.FormFieldSelectItem=Ma;exports.FormFieldSelectItemIndicator=ya;exports.FormFieldSelectItemText=ja;exports.FormFieldSelectTrigger=Fa;exports.FormFieldSelectValue=Aa;exports.FormFieldSelectViewport=Pa;exports.FormFieldText=pa;exports.FormFieldTextArea=Ea;exports.FormFooter=Ba;exports.FormHeader=na;exports.FormHeading=ca;exports.FormSubmit=Ta;exports.FormSuccess=Ha;exports.FormSuccessButton=Wa;exports.FormSuccessHeading=La;exports.FormSuccessMessage=Da;exports.FormWrapper=oa;exports.Header=L;exports.HeaderToolbar=D;exports.HeaderToolbarWrapper=W;exports.HelpAction=_t;exports.HelpActions=qt;exports.HelpActionsMenu=Rt;exports.HelpActionsMenuArrow=Ot;exports.HelpActionsMenuItem=Vt;exports.HelpActionsMenuItemIcon=Gt;exports.HelpActionsTrigger=Qt;exports.Input=Ue;exports.InputFieldset=Je;exports.InputGroup=Ke;exports.IntroMessageWrapper=ne;exports.Message=Ne;exports.MessageAction=Te;exports.MessageAttachments=ge;exports.MessageAttachmentsItem=fe;exports.MessageAttachmentsItemIcon=Fe;exports.MessageAttachmentsItemTitle=Ae;exports.MessageAttachmentsList=ve;exports.MessageAttachmentsPreview=ke;exports.MessageAttachmentsPreviewBody=ye;exports.MessageAttachmentsPreviewClose=je;exports.MessageAttachmentsPreviewContent=Pe;exports.MessageAttachmentsPreviewHeader=Me;exports.MessageAttachmentsPreviewOverlay=we;exports.MessageAvatar=he;exports.MessageAvatarContent=be;exports.MessageAvatarFallback=xe;exports.MessageAvatarImage=pe;exports.MessageContent=Ee;exports.MessageContentWrapper=ue;exports.MessageHeader=ce;exports.MessageLoading=le;exports.MessageName=Ce;exports.MessageSourceItem=We;exports.MessageSourceItemBreadcrumbIcon=qe;exports.MessageSourceItemBreadcrumbs=ze;exports.MessageSourceItemDescription=Oe;exports.MessageSourceItemDescriptionPart=Ve;exports.MessageSourceItemIcon=_e;exports.MessageSourceItemIndicator=Ge;exports.MessageSourceItemTag=Re;exports.MessageSourceItemTitle=Qe;exports.MessageSources=He;exports.MessageSourcesHeader=Le;exports.MessageSourcesList=De;exports.MessageToolAction=Se;exports.MessageToolActions=Be;exports.MessageToolbar=Ie;exports.MessageWrapper=me;exports.Messages=ie;exports.Provider=B;exports.Root=H;exports.SendButton=Xe;exports.SendButtonIcon=Ye;exports.TaglineBrandName=Lt;exports.TaglineContainer=St;exports.TaglineLogo=Ht;exports.TaglineText=Tt;exports.ToolbarHeader=z;exports.Workflow=oe;exports.Workflows=de;exports.WorkflowsLabel=se;exports.WorkflowsList=re;exports.Wrapper=S;
@@ -31,6 +31,9 @@ const ae = a.Provider, se = u(
31
31
  "bg-white dark:bg-gray-dark-950",
32
32
  "data-[composite]:w-full",
33
33
  "max-h-[min(85vh,850px)]",
34
+ "[[data-sidebar]_&]:m-[unset] [[data-sidebar]_&]:mt-auto",
35
+ "[[data-sidebar]_&]:h-full [[data-sidebar]_&]:w-full",
36
+ "[[data-sidebar]_&]:max-h-[unset]",
34
37
  e
35
38
  ),
36
39
  ...x
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./embedded-chat.cjs"),r=require("./embedded-search.cjs"),t=require("./modal.cjs"),o=require("./chat-button.cjs"),d=require("./searchbar.cjs"),a=require("./intelligent-form.cjs"),n=require("./shadow.cjs"),i=require("./loading-indicator.cjs");exports.EmbeddedChat=e;exports.EmbeddedSearch=r;exports.Modal=t;exports.ChatButton=o;exports.SearchBar=d;exports.IntelligentForm=a;exports.Shadow=n.Shadow;exports.LoadingIndicator=i.LoadingIndicator;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./embedded-chat.cjs"),r=require("./sidebar-chat.cjs"),t=require("./embedded-search.cjs"),o=require("./modal.cjs"),a=require("./chat-button.cjs"),d=require("./searchbar.cjs"),i=require("./intelligent-form.cjs"),n=require("./shadow.cjs"),c=require("./loading-indicator.cjs");exports.EmbeddedChat=e;exports.SidebarChat=r;exports.EmbeddedSearch=t;exports.Modal=o;exports.ChatButton=a;exports.SearchBar=d;exports.IntelligentForm=i;exports.Shadow=n.Shadow;exports.LoadingIndicator=c.LoadingIndicator;
@@ -1,18 +1,20 @@
1
- import * as o from "./embedded-chat.js";
2
- import * as r from "./embedded-search.js";
3
- import * as a from "./modal.js";
4
- import * as t from "./chat-button.js";
5
- import * as e from "./searchbar.js";
6
- import * as m from "./intelligent-form.js";
7
- import { Shadow as s } from "./shadow.js";
8
- import { LoadingIndicator as h } from "./loading-indicator.js";
1
+ import * as r from "./embedded-chat.js";
2
+ import * as o from "./sidebar-chat.js";
3
+ import * as a from "./embedded-search.js";
4
+ import * as t from "./modal.js";
5
+ import * as e from "./chat-button.js";
6
+ import * as m from "./searchbar.js";
7
+ import * as d from "./intelligent-form.js";
8
+ import { Shadow as i } from "./shadow.js";
9
+ import { LoadingIndicator as f } from "./loading-indicator.js";
9
10
  export {
10
- t as ChatButton,
11
- o as EmbeddedChat,
12
- r as EmbeddedSearch,
13
- m as IntelligentForm,
14
- h as LoadingIndicator,
15
- a as Modal,
16
- e as SearchBar,
17
- s as Shadow
11
+ e as ChatButton,
12
+ r as EmbeddedChat,
13
+ a as EmbeddedSearch,
14
+ d as IntelligentForm,
15
+ f as LoadingIndicator,
16
+ t as Modal,
17
+ m as SearchBar,
18
+ i as Shadow,
19
+ o as SidebarChat
18
20
  };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@inkeep/cxkit-primitives"),o=require("../utils.cjs"),r=({className:t,...a})=>e.jsx(i.SidebarChatPrimitive.Root,{...a,className:o.cn("w-[--width] h-full relative dark:bg-gray-dark-950","data-[position=left]:pr-1 data-[position=left]:border-r data-[position=left]:mr-1","data-[position=right]:pl-1 data-[position=right]:border-l data-[position=right]:ml-1","data-[state=open]:data-[position=left]:animate-sidebar-in-left","data-[state=open]:data-[position=right]:animate-sidebar-in-right","data-[state=closed]:data-[position=left]:animate-sidebar-out-left","data-[state=closed]:data-[position=right]:animate-sidebar-out-right",t)}),s=({className:t,...a})=>e.jsx(i.SidebarChatPrimitive.Resizer,{className:o.cn("px-1 bg-transparent opacity-0 hover:opacity-100","cursor-ew-resize","absolute top-0 bottom-0 z-[1]",'[[data-position="left"]>&]:-right-1','[[data-position="right"]>&]:-left-1','after:content-[""] after:absolute after:top-0 after:bottom-0 after:w-0.5 after:bg-inkeep-primary-medium dark:after:bg-inkeep-primary-light [[data-position="right"]>&]:after:right-1 [[data-position="left"]>&]:after:left-1',"data-[state=closed]:opacity-0 data-[state=closed]:pointer-events-none","data-[state=open]:pointer-events-auto","transition-opacity duration-200",t),...a});exports.Resizer=s;exports.Root=r;
@@ -0,0 +1,50 @@
1
+ "use client";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ import { SidebarChatPrimitive as i } from "@inkeep/cxkit-primitives";
4
+ import { cn as o } from "../utils.js";
5
+ const d = ({
6
+ className: t,
7
+ ...a
8
+ }) => /* @__PURE__ */ e(
9
+ i.Root,
10
+ {
11
+ ...a,
12
+ className: o(
13
+ "w-[--width] h-full relative dark:bg-gray-dark-950",
14
+ // For resizer
15
+ "data-[position=left]:pr-1 data-[position=left]:border-r data-[position=left]:mr-1",
16
+ "data-[position=right]:pl-1 data-[position=right]:border-l data-[position=right]:ml-1",
17
+ // Presence-based animations using data-state from the Presence component
18
+ "data-[state=open]:data-[position=left]:animate-sidebar-in-left",
19
+ "data-[state=open]:data-[position=right]:animate-sidebar-in-right",
20
+ "data-[state=closed]:data-[position=left]:animate-sidebar-out-left",
21
+ "data-[state=closed]:data-[position=right]:animate-sidebar-out-right",
22
+ t
23
+ )
24
+ }
25
+ ), p = ({
26
+ className: t,
27
+ ...a
28
+ }) => /* @__PURE__ */ e(
29
+ i.Resizer,
30
+ {
31
+ className: o(
32
+ "px-1 bg-transparent opacity-0 hover:opacity-100",
33
+ "cursor-ew-resize",
34
+ "absolute top-0 bottom-0 z-[1]",
35
+ '[[data-position="left"]>&]:-right-1',
36
+ '[[data-position="right"]>&]:-left-1',
37
+ 'after:content-[""] after:absolute after:top-0 after:bottom-0 after:w-0.5 after:bg-inkeep-primary-medium dark:after:bg-inkeep-primary-light [[data-position="right"]>&]:after:right-1 [[data-position="left"]>&]:after:left-1',
38
+ // Hide resizer when sidebar is closed using presence states
39
+ "data-[state=closed]:opacity-0 data-[state=closed]:pointer-events-none",
40
+ "data-[state=open]:pointer-events-auto",
41
+ "transition-opacity duration-200",
42
+ t
43
+ ),
44
+ ...a
45
+ }
46
+ );
47
+ export {
48
+ p as Resizer,
49
+ d as Root
50
+ };
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./components/embedded-chat.cjs"),o=require("./components/embedded-search.cjs"),i=require("./components/modal.cjs"),d=require("./components/chat-button.cjs"),a=require("./components/searchbar.cjs"),n=require("./components/intelligent-form.cjs"),c=require("./components/shadow.cjs"),u=require("./components/loading-indicator.cjs"),g=require("./ui/recipes/widget-toggle.cjs"),t=require("@inkeep/cxkit-primitives");exports.EmbeddedChat=r;exports.EmbeddedSearch=o;exports.Modal=i;exports.ChatButton=d;exports.SearchBar=a;exports.IntelligentForm=n;exports.Shadow=c.Shadow;exports.LoadingIndicator=u.LoadingIndicator;exports.widgetToggle=g.widgetToggle;Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./components/embedded-chat.cjs"),o=require("./components/sidebar-chat.cjs"),i=require("./components/embedded-search.cjs"),a=require("./components/modal.cjs"),d=require("./components/chat-button.cjs"),n=require("./components/searchbar.cjs"),c=require("./components/intelligent-form.cjs"),s=require("./components/shadow.cjs"),u=require("./components/loading-indicator.cjs"),g=require("./ui/recipes/widget-toggle.cjs"),t=require("@inkeep/cxkit-primitives");exports.EmbeddedChat=r;exports.SidebarChat=o;exports.EmbeddedSearch=i;exports.Modal=a;exports.ChatButton=d;exports.SearchBar=n;exports.IntelligentForm=c;exports.Shadow=s.Shadow;exports.LoadingIndicator=u.LoadingIndicator;exports.widgetToggle=g.widgetToggle;Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});
package/dist/index.d.cts CHANGED
@@ -24,6 +24,7 @@ import { SearchBarPrimitive } from '@inkeep/cxkit-primitives';
24
24
  import { SelectItemTextProps } from '@radix-ui/react-select';
25
25
  import { SelectProps } from '@radix-ui/react-select';
26
26
  import { SelectValueProps } from '@radix-ui/react-select';
27
+ import { SidebarChatPrimitive } from '@inkeep/cxkit-primitives';
27
28
  import { TextareaAutosizeProps } from 'react-textarea-autosize';
28
29
  import { TextareaHTMLAttributes } from 'react';
29
30
  import { TooltipArrowProps } from '@radix-ui/react-tooltip';
@@ -977,6 +978,17 @@ export declare const Shadow: (props: ShadowProps) => JSX.Element;
977
978
 
978
979
  export declare type ShadowProps = React.ComponentPropsWithRef<typeof InkeepShadow>;
979
980
 
981
+ export declare namespace SidebarChat {
982
+ export {
983
+ SidebarChatRoot as Root,
984
+ SidebarChatResizer as Resizer
985
+ }
986
+ }
987
+
988
+ declare const SidebarChatResizer: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Resizer>) => JSX.Element;
989
+
990
+ declare const SidebarChatRoot: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Root>) => JSX.Element;
991
+
980
992
  export declare const widgetToggle: (props?: ({
981
993
  slot?: "root" | "icon" | "button" | null | undefined;
982
994
  } & ClassProp) | undefined) => string;
package/dist/index.d.ts CHANGED
@@ -24,6 +24,7 @@ import { SearchBarPrimitive } from '@inkeep/cxkit-primitives';
24
24
  import { SelectItemTextProps } from '@radix-ui/react-select';
25
25
  import { SelectProps } from '@radix-ui/react-select';
26
26
  import { SelectValueProps } from '@radix-ui/react-select';
27
+ import { SidebarChatPrimitive } from '@inkeep/cxkit-primitives';
27
28
  import { TextareaAutosizeProps } from 'react-textarea-autosize';
28
29
  import { TextareaHTMLAttributes } from 'react';
29
30
  import { TooltipArrowProps } from '@radix-ui/react-tooltip';
@@ -977,6 +978,17 @@ export declare const Shadow: (props: ShadowProps) => JSX.Element;
977
978
 
978
979
  export declare type ShadowProps = React.ComponentPropsWithRef<typeof InkeepShadow>;
979
980
 
981
+ export declare namespace SidebarChat {
982
+ export {
983
+ SidebarChatRoot as Root,
984
+ SidebarChatResizer as Resizer
985
+ }
986
+ }
987
+
988
+ declare const SidebarChatResizer: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Resizer>) => JSX.Element;
989
+
990
+ declare const SidebarChatRoot: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Root>) => JSX.Element;
991
+
980
992
  export declare const widgetToggle: (props?: ({
981
993
  slot?: "root" | "icon" | "button" | null | undefined;
982
994
  } & ClassProp) | undefined) => string;
package/dist/index.js CHANGED
@@ -1,21 +1,23 @@
1
- import * as o from "./components/embedded-chat.js";
2
- import * as r from "./components/embedded-search.js";
3
- import * as e from "./components/modal.js";
4
- import * as t from "./components/chat-button.js";
5
- import * as a from "./components/searchbar.js";
6
- import * as m from "./components/intelligent-form.js";
7
- import { Shadow as s } from "./components/shadow.js";
8
- import { LoadingIndicator as f } from "./components/loading-indicator.js";
9
- import { widgetToggle as h } from "./ui/recipes/widget-toggle.js";
1
+ import * as r from "./components/embedded-chat.js";
2
+ import * as o from "./components/sidebar-chat.js";
3
+ import * as t from "./components/embedded-search.js";
4
+ import * as a from "./components/modal.js";
5
+ import * as e from "./components/chat-button.js";
6
+ import * as m from "./components/searchbar.js";
7
+ import * as d from "./components/intelligent-form.js";
8
+ import { Shadow as i } from "./components/shadow.js";
9
+ import { LoadingIndicator as h } from "./components/loading-indicator.js";
10
+ import { widgetToggle as n } from "./ui/recipes/widget-toggle.js";
10
11
  export * from "@inkeep/cxkit-primitives";
11
12
  export {
12
- t as ChatButton,
13
- o as EmbeddedChat,
14
- r as EmbeddedSearch,
15
- m as IntelligentForm,
16
- f as LoadingIndicator,
17
- e as Modal,
18
- a as SearchBar,
19
- s as Shadow,
20
- h as widgetToggle
13
+ e as ChatButton,
14
+ r as EmbeddedChat,
15
+ t as EmbeddedSearch,
16
+ d as IntelligentForm,
17
+ h as LoadingIndicator,
18
+ a as Modal,
19
+ m as SearchBar,
20
+ i as Shadow,
21
+ o as SidebarChat,
22
+ n as widgetToggle
21
23
  };
@@ -550,6 +550,9 @@ video {
550
550
  .inset-\\[unset\\] {
551
551
  inset: unset;
552
552
  }
553
+ .bottom-0 {
554
+ bottom: 0px;
555
+ }
553
556
  .bottom-6 {
554
557
  bottom: 1.5rem;
555
558
  }
@@ -592,6 +595,9 @@ video {
592
595
  .z-10 {
593
596
  z-index: 10;
594
597
  }
598
+ .z-\\[1\\] {
599
+ z-index: 1;
600
+ }
595
601
  .z-base {
596
602
  z-index: var(--ikp-z-index-base);
597
603
  }
@@ -905,6 +911,9 @@ video {
905
911
  .w-8 {
906
912
  width: 2rem;
907
913
  }
914
+ .w-\\[--width\\] {
915
+ width: var(--width);
916
+ }
908
917
  .w-\\[18px\\] {
909
918
  width: 18px;
910
919
  }
@@ -1105,6 +1114,9 @@ video {
1105
1114
  .cursor-default {
1106
1115
  cursor: default;
1107
1116
  }
1117
+ .cursor-ew-resize {
1118
+ cursor: ew-resize;
1119
+ }
1108
1120
  .cursor-pointer {
1109
1121
  cursor: pointer;
1110
1122
  }
@@ -2170,6 +2182,11 @@ img[data-part='icon'][data-type='custom'] {
2170
2182
  left: 1px;
2171
2183
  }
2172
2184
 
2185
+ .after\\:top-0::after {
2186
+ content: var(--tw-content);
2187
+ top: 0px;
2188
+ }
2189
+
2173
2190
  .after\\:top-\\[1px\\]::after {
2174
2191
  content: var(--tw-content);
2175
2192
  top: 1px;
@@ -2185,6 +2202,11 @@ img[data-part='icon'][data-type='custom'] {
2185
2202
  height: calc(100% - 2px);
2186
2203
  }
2187
2204
 
2205
+ .after\\:w-0\\.5::after {
2206
+ content: var(--tw-content);
2207
+ width: 0.125rem;
2208
+ }
2209
+
2188
2210
  .after\\:w-\\[calc\\(100\\%-2px\\)\\]::after {
2189
2211
  content: var(--tw-content);
2190
2212
  width: calc(100% - 2px);
@@ -2195,6 +2217,11 @@ img[data-part='icon'][data-type='custom'] {
2195
2217
  border-radius: 5px;
2196
2218
  }
2197
2219
 
2220
+ .after\\:bg-inkeep-primary-medium::after {
2221
+ content: var(--tw-content);
2222
+ background-color: var(--ikp-color-inkeep-primary-medium);
2223
+ }
2224
+
2198
2225
  .after\\:bg-white::after {
2199
2226
  content: var(--tw-content);
2200
2227
  --tw-bg-opacity: 1;
@@ -2206,6 +2233,11 @@ img[data-part='icon'][data-type='custom'] {
2206
2233
  background-image: linear-gradient(transparent, white);
2207
2234
  }
2208
2235
 
2236
+ .after\\:content-\\[\\"\\"\\]::after {
2237
+ --tw-content: "";
2238
+ content: var(--tw-content);
2239
+ }
2240
+
2209
2241
  .first\\:w-full:first-child {
2210
2242
  width: 100%;
2211
2243
  }
@@ -2328,6 +2360,14 @@ img[data-part='icon'][data-type='custom'] {
2328
2360
  pointer-events: none;
2329
2361
  }
2330
2362
 
2363
+ .data-\\[state\\=closed\\]\\:pointer-events-none[data-state="closed"] {
2364
+ pointer-events: none;
2365
+ }
2366
+
2367
+ .data-\\[state\\=open\\]\\:pointer-events-auto[data-state="open"] {
2368
+ pointer-events: auto;
2369
+ }
2370
+
2331
2371
  .data-\\[mobile\\]\\:inset-0[data-mobile] {
2332
2372
  inset: 0px;
2333
2373
  }
@@ -2340,6 +2380,14 @@ img[data-part='icon'][data-type='custom'] {
2340
2380
  margin-right: 1rem;
2341
2381
  }
2342
2382
 
2383
+ .data-\\[position\\=left\\]\\:mr-1[data-position="left"] {
2384
+ margin-right: 0.25rem;
2385
+ }
2386
+
2387
+ .data-\\[position\\=right\\]\\:ml-1[data-position="right"] {
2388
+ margin-left: 0.25rem;
2389
+ }
2390
+
2343
2391
  .data-\\[role\\=user\\]\\:ml-0[data-role="user"] {
2344
2392
  margin-left: 0px;
2345
2393
  }
@@ -2431,6 +2479,36 @@ img[data-part='icon'][data-type='custom'] {
2431
2479
  animation: fade-out 0.2s ease-out;
2432
2480
  }
2433
2481
 
2482
+ @keyframes slide-out-left {
2483
+
2484
+ 0% {
2485
+ transform: translateX(0%);
2486
+ }
2487
+
2488
+ 100% {
2489
+ transform: translateX(-100%);
2490
+ }
2491
+ }
2492
+
2493
+ .data-\\[state\\=closed\\]\\:data-\\[position\\=left\\]\\:animate-sidebar-out-left[data-position="left"][data-state="closed"] {
2494
+ animation: slide-out-left 200ms cubic-bezier(0.3, 0.0, 0.8, 0.15);
2495
+ }
2496
+
2497
+ @keyframes slide-out-right {
2498
+
2499
+ 0% {
2500
+ transform: translateX(0%);
2501
+ }
2502
+
2503
+ 100% {
2504
+ transform: translateX(100%);
2505
+ }
2506
+ }
2507
+
2508
+ .data-\\[state\\=closed\\]\\:data-\\[position\\=right\\]\\:animate-sidebar-out-right[data-position="right"][data-state="closed"] {
2509
+ animation: slide-out-right 200ms cubic-bezier(0.3, 0.0, 0.8, 0.15);
2510
+ }
2511
+
2434
2512
  @keyframes fade-in {
2435
2513
 
2436
2514
  0% {
@@ -2461,6 +2539,36 @@ img[data-part='icon'][data-type='custom'] {
2461
2539
  animation: fade-in 0.25s ease-out;
2462
2540
  }
2463
2541
 
2542
+ @keyframes slide-in-left {
2543
+
2544
+ 0% {
2545
+ transform: translateX(-100%);
2546
+ }
2547
+
2548
+ 100% {
2549
+ transform: translateX(0%);
2550
+ }
2551
+ }
2552
+
2553
+ .data-\\[state\\=open\\]\\:data-\\[position\\=left\\]\\:animate-sidebar-in-left[data-position="left"][data-state="open"] {
2554
+ animation: slide-in-left 400ms cubic-bezier(0.05, 0.7, 0.1, 1.0);
2555
+ }
2556
+
2557
+ @keyframes slide-in-right {
2558
+
2559
+ 0% {
2560
+ transform: translateX(100%);
2561
+ }
2562
+
2563
+ 100% {
2564
+ transform: translateX(0%);
2565
+ }
2566
+ }
2567
+
2568
+ .data-\\[state\\=open\\]\\:data-\\[position\\=right\\]\\:animate-sidebar-in-right[data-position="right"][data-state="open"] {
2569
+ animation: slide-in-right 400ms cubic-bezier(0.05, 0.7, 0.1, 1.0);
2570
+ }
2571
+
2464
2572
  .data-\\[loading\\]\\:cursor-wait[data-loading] {
2465
2573
  cursor: wait;
2466
2574
  }
@@ -2493,6 +2601,14 @@ img[data-part='icon'][data-type='custom'] {
2493
2601
  border-radius: 0px;
2494
2602
  }
2495
2603
 
2604
+ .data-\\[position\\=left\\]\\:border-r[data-position="left"] {
2605
+ border-right-width: 1px;
2606
+ }
2607
+
2608
+ .data-\\[position\\=right\\]\\:border-l[data-position="right"] {
2609
+ border-left-width: 1px;
2610
+ }
2611
+
2496
2612
  .data-\\[invalid\\]\\:border-\\[--error-border-color\\][data-invalid] {
2497
2613
  border-color: var(--error-border-color);
2498
2614
  }
@@ -2530,6 +2646,14 @@ img[data-part='icon'][data-type='custom'] {
2530
2646
  padding-bottom: 0.5rem;
2531
2647
  }
2532
2648
 
2649
+ .data-\\[position\\=left\\]\\:pr-1[data-position="left"] {
2650
+ padding-right: 0.25rem;
2651
+ }
2652
+
2653
+ .data-\\[position\\=right\\]\\:pl-1[data-position="right"] {
2654
+ padding-left: 0.25rem;
2655
+ }
2656
+
2533
2657
  .data-\\[is-numeric\\=true\\]\\:text-end[data-is-numeric="true"] {
2534
2658
  text-align: end;
2535
2659
  }
@@ -2597,6 +2721,10 @@ img[data-part='icon'][data-type='custom'] {
2597
2721
  opacity: 0.5;
2598
2722
  }
2599
2723
 
2724
+ .data-\\[state\\=closed\\]\\:opacity-0[data-state="closed"] {
2725
+ opacity: 0;
2726
+ }
2727
+
2600
2728
  .data-\\[active\\]\\:shadow[data-active] {
2601
2729
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
2602
2730
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
@@ -2833,6 +2961,10 @@ img[data-part='icon'][data-type='custom'] {
2833
2961
  text-decoration-line: underline;
2834
2962
  }
2835
2963
 
2964
+ .hover\\:opacity-100:hover:not(:disabled) {
2965
+ opacity: 1;
2966
+ }
2967
+
2836
2968
  .hover\\:disabled\\:bg-gray-100:disabled:hover:not(:disabled) {
2837
2969
  background-color: var(--ikp-color-gray-100);
2838
2970
  }
@@ -3205,6 +3337,11 @@ img[data-part='icon'][data-type='custom'] {
3205
3337
  background-color: var(--ikp-color-gray-dark-950);
3206
3338
  }
3207
3339
 
3340
+ .dark\\:after\\:bg-inkeep-primary-light:is([data-theme="dark"] *)::after {
3341
+ content: var(--tw-content);
3342
+ background-color: var(--ikp-color-inkeep-primary-light);
3343
+ }
3344
+
3208
3345
  .dark\\:after\\:bg-\\[linear-gradient\\(transparent\\2c _var\\(--ikp-color-gray-dark-950\\)\\)\\]:is([data-theme="dark"] *)::after {
3209
3346
  content: var(--tw-content);
3210
3347
  background-image: linear-gradient(transparent, var(--ikp-color-gray-dark-950));
@@ -3704,10 +3841,48 @@ img[data-part='icon'][data-type='custom'] {
3704
3841
  padding-bottom: 0px;
3705
3842
  }
3706
3843
 
3844
+ [data-position="left"]>.\\[\\[data-position\\=\\"left\\"\\]\\>\\&\\]\\:-right-1 {
3845
+ right: -0.25rem;
3846
+ }
3847
+
3848
+ [data-position="left"]>.\\[\\[data-position\\=\\"left\\"\\]\\>\\&\\]\\:after\\:left-1::after {
3849
+ content: var(--tw-content);
3850
+ left: 0.25rem;
3851
+ }
3852
+
3853
+ [data-position="right"]>.\\[\\[data-position\\=\\"right\\"\\]\\>\\&\\]\\:-left-1 {
3854
+ left: -0.25rem;
3855
+ }
3856
+
3857
+ [data-position="right"]>.\\[\\[data-position\\=\\"right\\"\\]\\>\\&\\]\\:after\\:right-1::after {
3858
+ content: var(--tw-content);
3859
+ right: 0.25rem;
3860
+ }
3861
+
3707
3862
  [data-show-ask-ai-card] .\\[\\[data-show-ask-ai-card\\]_\\&\\]\\:\\[--ask-ai-trigger-height\\:theme\\(spacing\\.11\\)\\] {
3708
3863
  --ask-ai-trigger-height: 2.75rem;
3709
3864
  }
3710
3865
 
3866
+ [data-sidebar] .\\[\\[data-sidebar\\]_\\&\\]\\:m-\\[unset\\] {
3867
+ margin: unset;
3868
+ }
3869
+
3870
+ [data-sidebar] .\\[\\[data-sidebar\\]_\\&\\]\\:mt-auto {
3871
+ margin-top: auto;
3872
+ }
3873
+
3874
+ [data-sidebar] .\\[\\[data-sidebar\\]_\\&\\]\\:h-full {
3875
+ height: 100%;
3876
+ }
3877
+
3878
+ [data-sidebar] .\\[\\[data-sidebar\\]_\\&\\]\\:max-h-\\[unset\\] {
3879
+ max-height: unset;
3880
+ }
3881
+
3882
+ [data-sidebar] .\\[\\[data-sidebar\\]_\\&\\]\\:w-full {
3883
+ width: 100%;
3884
+ }
3885
+
3711
3886
  [data-view=dual-pane] .\\[\\[data-view\\=dual-pane\\]_\\&\\]\\:block {
3712
3887
  display: block;
3713
3888
  }
@@ -551,6 +551,9 @@ video {
551
551
  .inset-\\[unset\\] {
552
552
  inset: unset;
553
553
  }
554
+ .bottom-0 {
555
+ bottom: 0px;
556
+ }
554
557
  .bottom-6 {
555
558
  bottom: 1.5rem;
556
559
  }
@@ -593,6 +596,9 @@ video {
593
596
  .z-10 {
594
597
  z-index: 10;
595
598
  }
599
+ .z-\\[1\\] {
600
+ z-index: 1;
601
+ }
596
602
  .z-base {
597
603
  z-index: var(--ikp-z-index-base);
598
604
  }
@@ -906,6 +912,9 @@ video {
906
912
  .w-8 {
907
913
  width: 2rem;
908
914
  }
915
+ .w-\\[--width\\] {
916
+ width: var(--width);
917
+ }
909
918
  .w-\\[18px\\] {
910
919
  width: 18px;
911
920
  }
@@ -1106,6 +1115,9 @@ video {
1106
1115
  .cursor-default {
1107
1116
  cursor: default;
1108
1117
  }
1118
+ .cursor-ew-resize {
1119
+ cursor: ew-resize;
1120
+ }
1109
1121
  .cursor-pointer {
1110
1122
  cursor: pointer;
1111
1123
  }
@@ -2171,6 +2183,11 @@ img[data-part='icon'][data-type='custom'] {
2171
2183
  left: 1px;
2172
2184
  }
2173
2185
 
2186
+ .after\\:top-0::after {
2187
+ content: var(--tw-content);
2188
+ top: 0px;
2189
+ }
2190
+
2174
2191
  .after\\:top-\\[1px\\]::after {
2175
2192
  content: var(--tw-content);
2176
2193
  top: 1px;
@@ -2186,6 +2203,11 @@ img[data-part='icon'][data-type='custom'] {
2186
2203
  height: calc(100% - 2px);
2187
2204
  }
2188
2205
 
2206
+ .after\\:w-0\\.5::after {
2207
+ content: var(--tw-content);
2208
+ width: 0.125rem;
2209
+ }
2210
+
2189
2211
  .after\\:w-\\[calc\\(100\\%-2px\\)\\]::after {
2190
2212
  content: var(--tw-content);
2191
2213
  width: calc(100% - 2px);
@@ -2196,6 +2218,11 @@ img[data-part='icon'][data-type='custom'] {
2196
2218
  border-radius: 5px;
2197
2219
  }
2198
2220
 
2221
+ .after\\:bg-inkeep-primary-medium::after {
2222
+ content: var(--tw-content);
2223
+ background-color: var(--ikp-color-inkeep-primary-medium);
2224
+ }
2225
+
2199
2226
  .after\\:bg-white::after {
2200
2227
  content: var(--tw-content);
2201
2228
  --tw-bg-opacity: 1;
@@ -2207,6 +2234,11 @@ img[data-part='icon'][data-type='custom'] {
2207
2234
  background-image: linear-gradient(transparent, white);
2208
2235
  }
2209
2236
 
2237
+ .after\\:content-\\[\\"\\"\\]::after {
2238
+ --tw-content: "";
2239
+ content: var(--tw-content);
2240
+ }
2241
+
2210
2242
  .first\\:w-full:first-child {
2211
2243
  width: 100%;
2212
2244
  }
@@ -2329,6 +2361,14 @@ img[data-part='icon'][data-type='custom'] {
2329
2361
  pointer-events: none;
2330
2362
  }
2331
2363
 
2364
+ .data-\\[state\\=closed\\]\\:pointer-events-none[data-state="closed"] {
2365
+ pointer-events: none;
2366
+ }
2367
+
2368
+ .data-\\[state\\=open\\]\\:pointer-events-auto[data-state="open"] {
2369
+ pointer-events: auto;
2370
+ }
2371
+
2332
2372
  .data-\\[mobile\\]\\:inset-0[data-mobile] {
2333
2373
  inset: 0px;
2334
2374
  }
@@ -2341,6 +2381,14 @@ img[data-part='icon'][data-type='custom'] {
2341
2381
  margin-right: 1rem;
2342
2382
  }
2343
2383
 
2384
+ .data-\\[position\\=left\\]\\:mr-1[data-position="left"] {
2385
+ margin-right: 0.25rem;
2386
+ }
2387
+
2388
+ .data-\\[position\\=right\\]\\:ml-1[data-position="right"] {
2389
+ margin-left: 0.25rem;
2390
+ }
2391
+
2344
2392
  .data-\\[role\\=user\\]\\:ml-0[data-role="user"] {
2345
2393
  margin-left: 0px;
2346
2394
  }
@@ -2432,6 +2480,36 @@ img[data-part='icon'][data-type='custom'] {
2432
2480
  animation: fade-out 0.2s ease-out;
2433
2481
  }
2434
2482
 
2483
+ @keyframes slide-out-left {
2484
+
2485
+ 0% {
2486
+ transform: translateX(0%);
2487
+ }
2488
+
2489
+ 100% {
2490
+ transform: translateX(-100%);
2491
+ }
2492
+ }
2493
+
2494
+ .data-\\[state\\=closed\\]\\:data-\\[position\\=left\\]\\:animate-sidebar-out-left[data-position="left"][data-state="closed"] {
2495
+ animation: slide-out-left 200ms cubic-bezier(0.3, 0.0, 0.8, 0.15);
2496
+ }
2497
+
2498
+ @keyframes slide-out-right {
2499
+
2500
+ 0% {
2501
+ transform: translateX(0%);
2502
+ }
2503
+
2504
+ 100% {
2505
+ transform: translateX(100%);
2506
+ }
2507
+ }
2508
+
2509
+ .data-\\[state\\=closed\\]\\:data-\\[position\\=right\\]\\:animate-sidebar-out-right[data-position="right"][data-state="closed"] {
2510
+ animation: slide-out-right 200ms cubic-bezier(0.3, 0.0, 0.8, 0.15);
2511
+ }
2512
+
2435
2513
  @keyframes fade-in {
2436
2514
 
2437
2515
  0% {
@@ -2462,6 +2540,36 @@ img[data-part='icon'][data-type='custom'] {
2462
2540
  animation: fade-in 0.25s ease-out;
2463
2541
  }
2464
2542
 
2543
+ @keyframes slide-in-left {
2544
+
2545
+ 0% {
2546
+ transform: translateX(-100%);
2547
+ }
2548
+
2549
+ 100% {
2550
+ transform: translateX(0%);
2551
+ }
2552
+ }
2553
+
2554
+ .data-\\[state\\=open\\]\\:data-\\[position\\=left\\]\\:animate-sidebar-in-left[data-position="left"][data-state="open"] {
2555
+ animation: slide-in-left 400ms cubic-bezier(0.05, 0.7, 0.1, 1.0);
2556
+ }
2557
+
2558
+ @keyframes slide-in-right {
2559
+
2560
+ 0% {
2561
+ transform: translateX(100%);
2562
+ }
2563
+
2564
+ 100% {
2565
+ transform: translateX(0%);
2566
+ }
2567
+ }
2568
+
2569
+ .data-\\[state\\=open\\]\\:data-\\[position\\=right\\]\\:animate-sidebar-in-right[data-position="right"][data-state="open"] {
2570
+ animation: slide-in-right 400ms cubic-bezier(0.05, 0.7, 0.1, 1.0);
2571
+ }
2572
+
2465
2573
  .data-\\[loading\\]\\:cursor-wait[data-loading] {
2466
2574
  cursor: wait;
2467
2575
  }
@@ -2494,6 +2602,14 @@ img[data-part='icon'][data-type='custom'] {
2494
2602
  border-radius: 0px;
2495
2603
  }
2496
2604
 
2605
+ .data-\\[position\\=left\\]\\:border-r[data-position="left"] {
2606
+ border-right-width: 1px;
2607
+ }
2608
+
2609
+ .data-\\[position\\=right\\]\\:border-l[data-position="right"] {
2610
+ border-left-width: 1px;
2611
+ }
2612
+
2497
2613
  .data-\\[invalid\\]\\:border-\\[--error-border-color\\][data-invalid] {
2498
2614
  border-color: var(--error-border-color);
2499
2615
  }
@@ -2531,6 +2647,14 @@ img[data-part='icon'][data-type='custom'] {
2531
2647
  padding-bottom: 0.5rem;
2532
2648
  }
2533
2649
 
2650
+ .data-\\[position\\=left\\]\\:pr-1[data-position="left"] {
2651
+ padding-right: 0.25rem;
2652
+ }
2653
+
2654
+ .data-\\[position\\=right\\]\\:pl-1[data-position="right"] {
2655
+ padding-left: 0.25rem;
2656
+ }
2657
+
2534
2658
  .data-\\[is-numeric\\=true\\]\\:text-end[data-is-numeric="true"] {
2535
2659
  text-align: end;
2536
2660
  }
@@ -2598,6 +2722,10 @@ img[data-part='icon'][data-type='custom'] {
2598
2722
  opacity: 0.5;
2599
2723
  }
2600
2724
 
2725
+ .data-\\[state\\=closed\\]\\:opacity-0[data-state="closed"] {
2726
+ opacity: 0;
2727
+ }
2728
+
2601
2729
  .data-\\[active\\]\\:shadow[data-active] {
2602
2730
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
2603
2731
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
@@ -2834,6 +2962,10 @@ img[data-part='icon'][data-type='custom'] {
2834
2962
  text-decoration-line: underline;
2835
2963
  }
2836
2964
 
2965
+ .hover\\:opacity-100:hover:not(:disabled) {
2966
+ opacity: 1;
2967
+ }
2968
+
2837
2969
  .hover\\:disabled\\:bg-gray-100:disabled:hover:not(:disabled) {
2838
2970
  background-color: var(--ikp-color-gray-100);
2839
2971
  }
@@ -3206,6 +3338,11 @@ img[data-part='icon'][data-type='custom'] {
3206
3338
  background-color: var(--ikp-color-gray-dark-950);
3207
3339
  }
3208
3340
 
3341
+ .dark\\:after\\:bg-inkeep-primary-light:is([data-theme="dark"] *)::after {
3342
+ content: var(--tw-content);
3343
+ background-color: var(--ikp-color-inkeep-primary-light);
3344
+ }
3345
+
3209
3346
  .dark\\:after\\:bg-\\[linear-gradient\\(transparent\\2c _var\\(--ikp-color-gray-dark-950\\)\\)\\]:is([data-theme="dark"] *)::after {
3210
3347
  content: var(--tw-content);
3211
3348
  background-image: linear-gradient(transparent, var(--ikp-color-gray-dark-950));
@@ -3705,10 +3842,48 @@ img[data-part='icon'][data-type='custom'] {
3705
3842
  padding-bottom: 0px;
3706
3843
  }
3707
3844
 
3845
+ [data-position="left"]>.\\[\\[data-position\\=\\"left\\"\\]\\>\\&\\]\\:-right-1 {
3846
+ right: -0.25rem;
3847
+ }
3848
+
3849
+ [data-position="left"]>.\\[\\[data-position\\=\\"left\\"\\]\\>\\&\\]\\:after\\:left-1::after {
3850
+ content: var(--tw-content);
3851
+ left: 0.25rem;
3852
+ }
3853
+
3854
+ [data-position="right"]>.\\[\\[data-position\\=\\"right\\"\\]\\>\\&\\]\\:-left-1 {
3855
+ left: -0.25rem;
3856
+ }
3857
+
3858
+ [data-position="right"]>.\\[\\[data-position\\=\\"right\\"\\]\\>\\&\\]\\:after\\:right-1::after {
3859
+ content: var(--tw-content);
3860
+ right: 0.25rem;
3861
+ }
3862
+
3708
3863
  [data-show-ask-ai-card] .\\[\\[data-show-ask-ai-card\\]_\\&\\]\\:\\[--ask-ai-trigger-height\\:theme\\(spacing\\.11\\)\\] {
3709
3864
  --ask-ai-trigger-height: 2.75rem;
3710
3865
  }
3711
3866
 
3867
+ [data-sidebar] .\\[\\[data-sidebar\\]_\\&\\]\\:m-\\[unset\\] {
3868
+ margin: unset;
3869
+ }
3870
+
3871
+ [data-sidebar] .\\[\\[data-sidebar\\]_\\&\\]\\:mt-auto {
3872
+ margin-top: auto;
3873
+ }
3874
+
3875
+ [data-sidebar] .\\[\\[data-sidebar\\]_\\&\\]\\:h-full {
3876
+ height: 100%;
3877
+ }
3878
+
3879
+ [data-sidebar] .\\[\\[data-sidebar\\]_\\&\\]\\:max-h-\\[unset\\] {
3880
+ max-height: unset;
3881
+ }
3882
+
3883
+ [data-sidebar] .\\[\\[data-sidebar\\]_\\&\\]\\:w-full {
3884
+ width: 100%;
3885
+ }
3886
+
3712
3887
  [data-view=dual-pane] .\\[\\[data-view\\=dual-pane\\]_\\&\\]\\:block {
3713
3888
  display: block;
3714
3889
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/cxkit-styled",
3
- "version": "0.5.80",
3
+ "version": "0.5.82",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -39,7 +39,7 @@
39
39
  "clsx": "2.1.1",
40
40
  "merge-anything": "5.1.7",
41
41
  "tailwind-merge": "2.6.0",
42
- "@inkeep/cxkit-primitives": "0.5.80"
42
+ "@inkeep/cxkit-primitives": "0.5.82"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@biomejs/biome": "1.9.4",
@@ -59,8 +59,8 @@
59
59
  "typescript": "5.7.3",
60
60
  "vite": "5.4.11",
61
61
  "vite-plugin-dts": "4.4.0",
62
- "@inkeep/cxkit-theme": "0.5.80",
63
- "@inkeep/cxkit-types": "0.5.80"
62
+ "@inkeep/cxkit-theme": "0.5.82",
63
+ "@inkeep/cxkit-types": "0.5.82"
64
64
  },
65
65
  "module": "dist/index.js",
66
66
  "types": "dist/index.d.ts",