@inkeep/cxkit-styled 0.5.111 → 0.5.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/embedded-chat.cjs +1 -1
- package/dist/components/embedded-chat.js +5 -4
- package/dist/components/embedded-search/results-loading.cjs +1 -1
- package/dist/components/embedded-search/results-loading.js +3 -3
- package/dist/components/embedded-search.cjs +1 -1
- package/dist/components/embedded-search.js +1 -1
- package/dist/components/intelligent-form.cjs +1 -1
- package/dist/components/intelligent-form.js +1 -0
- package/dist/inkeep.css.cjs +263 -263
- package/dist/inkeep.css.js +263 -263
- package/dist/ui/recipes/markdown.cjs +1 -1
- package/dist/ui/recipes/markdown.js +4 -4
- package/dist/ui/recipes/select.cjs +1 -1
- package/dist/ui/recipes/select.js +1 -1
- package/package.json +4 -4
|
@@ -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"),m=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:i,...u},b)=>d.jsx(a.EmbeddedChatPrimitive.Wrapper,{ref:b,className:r.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: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},i)=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaViewport,{ref:i,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,...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: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),...i})}),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}),ie=({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"]),me=({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,...i})=>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??{}),...i}),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(m.citation({slot:"root"}),e),...t}),ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemBreadcrumbs,{className:r.cn(m.citation({slot:"breadcrumbs"}),e),...t}),qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemBreadcrumbIcon,{className:r.cn(m.citation({slot:"breadcrumbsIcon"}),e),...t}),_e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemIcon,{className:r.cn(m.citation({slot:"icon"}),e),...t}),Qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemTitle,{className:r.cn(m.citation({slot:"title"}),e),...t}),Re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemTag,{className:r.cn(m.citation({slot:"tag"}),e),...t}),Oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemDescription,{className:r.cn(m.citation({slot:"description"}),e),...t}),Ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemDescriptionPart,{className:r.cn(m.citation({slot:"descriptionPart"}),e),...t}),Ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemIndicator,{className:r.cn(m.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},i)=>d.jsx(a.EmbeddedChatPrimitive.Input,{ref:i,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,it=({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}),mt=({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:"primaryFilled"}),"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-500 dark:text-white-alpha-600","w-5 ml-1.5 mr-0.5",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-medium",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:"primaryFilled"}),"ml-auto",e),...t}),oa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormWrapper,{className:r.cn("w-full overflow-y-auto",e),...t}),ia=({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}),ma=({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-4 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:"primaryFilled"}),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:"primaryFilled"}),"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=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=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=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=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"),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:i,...u},b)=>d.jsx(a.EmbeddedChatPrimitive.Wrapper,{ref:b,className:r.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: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-4","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}),q=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ToolbarHeader,{className:r.cn("text-gray-600 dark:text-gray-dark-100 text-sm",e),...t}),z=({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},i)=>d.jsx(a.EmbeddedChatPrimitive.ContentScrollAreaViewport,{ref:i,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,...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: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-px after:left-px","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: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}),ie=({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}),E=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:r.cn(E(),e),...t}),ne=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.IntroMessageWrapper,{className:r.cn(E(),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}),ge=({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}),Ee=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,...i})=>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??{}),...i}),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-px",e),...t}),We=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItem,{className:r.cn(m.citation({slot:"root"}),e),...t}),qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemBreadcrumbs,{className:r.cn(m.citation({slot:"breadcrumbs"}),e),...t}),ze=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemBreadcrumbIcon,{className:r.cn(m.citation({slot:"breadcrumbsIcon"}),e),...t}),_e=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemIcon,{className:r.cn(m.citation({slot:"icon"}),e),...t}),Qe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemTitle,{className:r.cn(m.citation({slot:"title"}),e),...t}),Re=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemTag,{className:r.cn(m.citation({slot:"tag"}),e),...t}),Oe=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemDescription,{className:r.cn(m.citation({slot:"description"}),e),...t}),Ve=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemDescriptionPart,{className:r.cn(m.citation({slot:"descriptionPart"}),e),...t}),Ge=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.MessageSourceItemIndicator,{className:r.cn(m.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},i)=>d.jsx(a.EmbeddedChatPrimitive.Input,{ref:i,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,it=({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}),mt=({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}),gt=a.EmbeddedChatPrimitive.AttachmentsBarModalHelp,Et=({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:"primaryFilled"}),"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-500 dark:text-white-alpha-600","w-5 ml-1.5 mr-0.5",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-medium",e),...t}),g=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(g,e),...t}),Wt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatActionLabel,{className:r.cn("cursor-pointer",e),...t}),qt=({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}),zt=a.EmbeddedChatPrimitive.HelpActions,_t=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.ChatHelpAction,{className:r.cn(g,e),...t}),Qt=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.HelpActionsTrigger,{className:r.cn(g,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-y-4 gap-x-2",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:"primaryFilled"}),"ml-auto",e),...t}),oa=({className:e,...t})=>d.jsx(a.EmbeddedChatPrimitive.FormWrapper,{className:r.cn("w-full overflow-y-auto",e),...t}),ia=({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}),ma=({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",'dark:data-[required]:after:[content:"*"]',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}),ga=({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}),Ea=({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-4 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:"primaryFilled"}),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:"primaryFilled"}),"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=it;exports.AttachmentsBarInfoTipText=mt;exports.AttachmentsBarInput=lt;exports.AttachmentsBarInputs=ct;exports.AttachmentsBarList=et;exports.AttachmentsBarModal=ht;exports.AttachmentsBarModalBody=vt;exports.AttachmentsBarModalClose=Et;exports.AttachmentsBarModalContent=xt;exports.AttachmentsBarModalDescription=ut;exports.AttachmentsBarModalHeader=pt;exports.AttachmentsBarModalHeading=Ct;exports.AttachmentsBarModalHelp=gt;exports.AttachmentsBarModalOverlay=bt;exports.ChatAction=Dt;exports.ChatActionFeedback=qt;exports.ChatActionLabel=Wt;exports.Content=z;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=ia;exports.FormCancel=Sa;exports.FormClose=ma;exports.FormContent=ha;exports.FormDescription=la;exports.FormError=Ia;exports.FormField=ba;exports.FormFieldCheckbox=Ea;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=ga;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=zt;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=Ee;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=ge;exports.MessageContentWrapper=ue;exports.MessageHeader=ce;exports.MessageLoading=le;exports.MessageName=Ce;exports.MessageSourceItem=We;exports.MessageSourceItemBreadcrumbIcon=ze;exports.MessageSourceItemBreadcrumbs=qe;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=q;exports.Workflow=oe;exports.Workflows=de;exports.WorkflowsLabel=re;exports.WorkflowsList=se;exports.Wrapper=S;
|
|
@@ -71,7 +71,7 @@ const ae = a.Provider, se = u(
|
|
|
71
71
|
"data-[show-toolbar]:after:absolute",
|
|
72
72
|
"data-[show-toolbar]:after:left-0",
|
|
73
73
|
"data-[show-toolbar]:after:top-full",
|
|
74
|
-
"data-[show-toolbar]:after:h-
|
|
74
|
+
"data-[show-toolbar]:after:h-4",
|
|
75
75
|
"data-[show-toolbar]:after:w-full",
|
|
76
76
|
"data-[show-toolbar]:after:text-white",
|
|
77
77
|
"data-[show-toolbar]:after:dark:text-gray-dark-950",
|
|
@@ -269,7 +269,7 @@ const ae = a.Provider, se = u(
|
|
|
269
269
|
"data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.600),transparent_30%)]",
|
|
270
270
|
"dark:data-[highlight]:first:before:[background-image:conic-gradient(transparent,theme(colors.inkeep-expanded-primary.300),transparent_30%)]",
|
|
271
271
|
"data-[highlight]:first:before:animate-[spin_4s_linear_infinite]",
|
|
272
|
-
"after:absolute after:z-base after:top-
|
|
272
|
+
"after:absolute after:z-base after:top-px after:left-px",
|
|
273
273
|
"after:w-[calc(100%-2px)] after:h-[calc(100%-2px)]",
|
|
274
274
|
"after:rounded-[5px] after:bg-white dark:after:bg-gray-dark-950",
|
|
275
275
|
e
|
|
@@ -674,7 +674,7 @@ const ae = a.Provider, se = u(
|
|
|
674
674
|
}) => /* @__PURE__ */ s(
|
|
675
675
|
a.MessageSourcesList,
|
|
676
676
|
{
|
|
677
|
-
className: r("w-full relative flex flex-col gap-3 py-
|
|
677
|
+
className: r("w-full relative flex flex-col gap-3 py-px", e),
|
|
678
678
|
...t
|
|
679
679
|
}
|
|
680
680
|
), mt = ({
|
|
@@ -1303,7 +1303,7 @@ const ae = a.Provider, se = u(
|
|
|
1303
1303
|
}) => /* @__PURE__ */ s(
|
|
1304
1304
|
a.FeedbackItem,
|
|
1305
1305
|
{
|
|
1306
|
-
className: r("flex flex-wrap items-center", "gap-
|
|
1306
|
+
className: r("flex flex-wrap items-center", "gap-y-4 gap-x-2", e),
|
|
1307
1307
|
...t
|
|
1308
1308
|
}
|
|
1309
1309
|
), Ma = ({
|
|
@@ -1452,6 +1452,7 @@ const ae = a.Provider, se = u(
|
|
|
1452
1452
|
"data-[required]:after:mt-0",
|
|
1453
1453
|
"data-[required]:after:text-red-500",
|
|
1454
1454
|
"dark:data-[required]:after:text-red-300",
|
|
1455
|
+
'dark:data-[required]:after:[content:"*"]',
|
|
1455
1456
|
e
|
|
1456
1457
|
),
|
|
1457
1458
|
...t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../utils.cjs"),s=require("../../ui/recipes/skeleton.cjs"),i=require("@inkeep/cxkit-primitives");function t(){const{searchSettings:{tabs:n}}=i.useInkeepConfig();return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:l.cn("h-[calc(100%-24px)]"),children:[e.jsx("div",{className:"flex px-5 py-1 gap-3 data-[hidden]:hidden","data-hidden":l.dataAttr(n.length===0),children:Array.from({length:2}).map((d,a)=>e.jsx("div",{className:l.cn(s.skeleton(),"h-[27.88px] w-16 rounded-full")},a))}),e.jsxs("div",{className:"flex px-5 py-1 gap-5 h-full",children:[e.jsx("div",{className:"flex flex-col flex-1 [[data-view=dual-pane]_&]:flex-[0_0_44%]",children:Array.from({length:4}).map((d,a)=>e.jsx("div",{className:"flex items-center pb-2.5 w-full",children:e.jsx("div",{className:l.cn(s.skeleton(),"h-20 rounded-lg grow-[1]")})},a))}),e.jsx("div",{className:l.cn(s.skeleton(),"h-full w-full rounded-md","hidden [[data-view=dual-pane]_&]:block")})]})]}),e.jsx("div",{className:"flex pt-1 pb-3 px-5 justify-self-end",children:e.jsx("div",{className:l.cn(s.skeleton(),"h-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("../../utils.cjs"),s=require("../../ui/recipes/skeleton.cjs"),i=require("@inkeep/cxkit-primitives");function t(){const{searchSettings:{tabs:n}}=i.useInkeepConfig();return e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:l.cn("h-[calc(100%-24px)]"),children:[e.jsx("div",{className:"flex px-5 py-1 gap-3 data-[hidden]:hidden","data-hidden":l.dataAttr(n.length===0),children:Array.from({length:2}).map((d,a)=>e.jsx("div",{className:l.cn(s.skeleton(),"h-[27.88px] w-16 rounded-full")},a))}),e.jsxs("div",{className:"flex px-5 py-1 gap-5 h-full",children:[e.jsx("div",{className:"flex flex-col flex-1 [[data-view=dual-pane]_&]:flex-[0_0_44%]",children:Array.from({length:4}).map((d,a)=>e.jsx("div",{className:"flex items-center pb-2.5 w-full",children:e.jsx("div",{className:l.cn(s.skeleton(),"h-20 rounded-lg grow-[1]")})},a))}),e.jsx("div",{className:l.cn(s.skeleton(),"h-full w-full rounded-md","hidden [[data-view=dual-pane]_&]:block")})]})]}),e.jsx("div",{className:"flex pt-1 pb-3 px-5 justify-self-end",children:e.jsx("div",{className:l.cn(s.skeleton(),"h-6 w-40 rounded-md")})})]})}exports.ResultsLoading=t;
|
|
@@ -3,7 +3,7 @@ import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
|
3
3
|
import { cn as l, dataAttr as r } from "../../utils.js";
|
|
4
4
|
import { skeleton as a } from "../../ui/recipes/skeleton.js";
|
|
5
5
|
import { useInkeepConfig as c } from "@inkeep/cxkit-primitives";
|
|
6
|
-
function
|
|
6
|
+
function h() {
|
|
7
7
|
const {
|
|
8
8
|
searchSettings: { tabs: i }
|
|
9
9
|
} = c();
|
|
@@ -31,9 +31,9 @@ function p() {
|
|
|
31
31
|
)
|
|
32
32
|
] })
|
|
33
33
|
] }),
|
|
34
|
-
/* @__PURE__ */ e("div", { className: "flex pt-1 pb-3 px-5 justify-self-end", children: /* @__PURE__ */ e("div", { className: l(a(), "h-
|
|
34
|
+
/* @__PURE__ */ e("div", { className: "flex pt-1 pb-3 px-5 justify-self-end", children: /* @__PURE__ */ e("div", { className: l(a(), "h-6 w-40 rounded-md") }) })
|
|
35
35
|
] });
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
|
-
|
|
38
|
+
h as ResultsLoading
|
|
39
39
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),r=require("@inkeep/cxkit-primitives"),i=require("../utils.cjs"),s=require("../ui/recipes/citation.cjs"),n=require("../ui/recipes/link.cjs"),c=require("../ui/recipes/scrollable.cjs"),l=require("./embedded-search/results-loading.cjs"),m=require("merge-anything"),o=require("../ui/markdown-styles.cjs"),h=e=>a.jsx(r.EmbeddedSearchPrimitive.Provider,{...e}),u=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Wrapper,{className:i.cn("data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950",e),...t}),b=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Root,{className:i.cn("data-[hidden]:hidden flex flex-col w-full","[--footer-height:theme(spacing.9)]","data-[mobile]:[--input-height:theme(spacing.20)]","[--ask-ai-trigger-height:0px]","[[data-show-ask-ai-card]_&]:[--ask-ai-trigger-height:theme(spacing.11)]",e),...t}),p=r.EmbeddedSearchPrimitive.Content,x=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.InputGroup,{className:i.cn("flex items-center w-full px-5 pt-3 pb-3 gap-3","[[data-mobile]_&]:max-h-[var(--input-height)]",e),...t}),g=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.InputIcon,{className:i.cn("min-w-5 w-5 text-xl","text-gray-500 dark:text-white-alpha-600",e),...t}),v=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Input,{className:i.cn("min-h-[38px] overflow-hidden w-full resize-none","py-1.5 max-h-[10vh] placeholder:text-gray-500","w-full dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent",e),...t}),I=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Loading,{className:i.cn("min-w-5 w-5 text-xl","text-gray-500 dark:text-white-alpha-600","animate-spin",e),...t}),S=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITrigger,{className:i.cn(s.citation({slot:"root"}),"mx-5 w-[calc(100%_-_theme(spacing.10))]","mb-4 h-11 cursor-pointer","h-[var(--ask-ai-trigger-height)]","grid-template-[none] flex items-center",e),...t}),k=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerIcon,{className:i.cn("[grid-area:icon] h-5 w-5 flex-shrink-0","[--start-color:theme(colors.inkeep-expanded-primary.300)]","[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),E=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerLabel,{className:i.cn(s.citation({slot:"title"}),"font-medium text-gray-700",e),...t}),R=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerQuery,{className:i.cn("font-semibold !bg-clip-text text-transparent ml-2","animate-shine [background:linear-gradient(270deg,theme(colors.inkeep-primary.stronger-light),transparent)_-200%_50%_/_25%_100%_no-repeat,theme(colors.inkeep-expanded-primary.800)] ","dark:[background:linear-gradient(270deg,theme(colors.inkeep-expanded-primary.100),transparent)_-200%_50%_/_25%_100%_no-repeat,theme(colors.inkeep-expanded-primary.400)]",e),...t}),P=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerIndicator,{className:i.cn(s.citation({slot:"indicator"}),"ml-1 opacity-100 text-inkeep-primary-stronger-light group-selected:text-inkeep-primary-strong dark:text-gray-dark-300 dark:group-selected:text-inkeep-expanded-primary-300 ",e),...t}),w=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerIndicatorText,{className:i.cn("text-xs flex-shrink-0 ml-auto","group-selected:text-inkeep-primary-strong dark:text-gray-dark-300 dark:group-selected:text-inkeep-expanded-primary-300","text-inkeep-primary-medium-subtle bg-gray-500 bg-clip-text dark:bg-white-alpha-800",e),...t}),f=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Results,{className:i.cn(c.scrollable({section:"content"}),"h-0 max-h-full","data-[has-content]:h-[min(calc(85vh_-_72px),calc(850px_-_72px_-_275px))]","md:data-[dual-pane-search-expanded]:h-[min(calc(85vh_-_72px),calc(900px_-_72px_-_135px))]","[[data-mobile]_&]:h-[calc(100vh-var(--input-height)-var(--footer-height)-var(--ask-ai-trigger-height))]","transition-all duration-250 ease-out data-[has-content]:pb-2",e),...t}),y=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsLoading,{className:i.cn("group mb-1 relative transition-all w-full h-full",e),children:a.jsx(l.ResultsLoading,{}),...t}),T=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsEmpty,{className:i.cn("flex w-full h-full","overflow-hidden relative grow-[2]","items-center justify-center text-gray-600","dark:text-gray-dark-400 mt-8",e),...t}),j=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsTabList,{className:i.cn("shrink-0 max-w-full","flex gap-3 px-5 pb-2 pt-0","overflow-x-auto [scrollbar-width:thin]",e),...t}),N=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsTab,{className:i.cn("px-3 text-1sm font-medium rounded-full shrink-0","py-1 transition-all duration-200 leading-snug","border border-gray-300 dark:border-gray-dark-500","hover:bg-gray-50 dark:hover:bg-white-alpha-50","data-[state=active]:bg-inkeep-primary-light-subtle","hover:data-[state=active]:bg-inkeep-primary-light-subtle","data-[state=active]:text-inkeep-expanded-primary-900","data-[state=active]:border-inkeep-primary-medium-subtle","dark:data-[state=active]:bg-white-alpha-100","dark:hover:data-[state=active]:bg-white-alpha-100","dark:data-[state=active]:text-inkeep-expanded-primary-300","dark:data-[state=active]:border-inkeep-expanded-primary-300","focus:outline-inkeep-expanded-primary-700 dark:focus:outline-inkeep-expanded-primary-300",e),...t}),A=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsContent,{className:i.cn("flex overflow-hidden h-full",e),...t}),_=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollArea,{className:i.cn("overflow-hidden h-full first:w-full","first:[[data-view=dual-pane]_&]:flex-1 md:first:[[data-view=dual-pane]_&]:flex-[0_0_44%]",'befter:content-[""] befter:absolute befter:inset-x-0',"befter:h-10 befter:pointer-events-none","befter:transition-opacity befter:duration-300","befter:ease-in-out ","before:top-0 after:bottom-0","before:bg-[linear-gradient(white,_transparent)] after:bg-[linear-gradient(transparent,_white)] ","dark:before:bg-[linear-gradient(var(--ikp-color-gray-dark-950),_transparent)] dark:after:bg-[linear-gradient(transparent,_var(--ikp-color-gray-dark-950))]","has-[[data-scroll-top]]:before:opacity-0","has-[[data-scroll-bottom]]:after:opacity-0",e),...t}),L=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollAreaViewport,{className:i.cn("h-full w-full rounded-[inherit]",e),...t}),O=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollAreaScrollbar,{className:i.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}),B=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollAreaThumb,{className:i.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),C=r.EmbeddedSearchPrimitive.ResultsScrollAreaCorner,q=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsList,{className:i.cn("w-full flex flex-col","items-center gap-2.5 h-full shrink-0","px-5 py-1 content-center -my-[1px]",e),...t}),D=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItem,{className:i.cn(s.citation({slot:"root"}),e),...t}),H=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemBreadcrumbs,{className:i.cn(s.citation({slot:"breadcrumbs"}),e),...t}),F=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemBreadcrumbIcon,{className:i.cn(s.citation({slot:"breadcrumbsIcon"}),e),...t}),G=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemIcon,{className:i.cn(s.citation({slot:"icon"}),e),...t}),Q=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemTitle,{className:i.cn(s.citation({slot:"title"}),e),...t}),V=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemTag,{className:i.cn(s.citation({slot:"tag"}),e),...t}),W=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemDescription,{className:i.cn(s.citation({slot:"description"}),e),...t}),z=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemDescriptionPart,{className:i.cn(s.citation({slot:"descriptionPart"}),e),...t}),M=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemIndicator,{className:i.cn(s.citation({slot:"indicator"}),e),...t}),$=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreview,{className:i.cn("flex-1 min-w-0 break-words pt-3 pb-4 pr-10 pl-5","hidden md:flex flex-col gap-6",e),...t}),J=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewHeader,{className:i.cn("flex flex-col gap-5",e),...t}),K=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewHeading,{className:i.cn("inline-block",e),...t}),U=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewTitle,{className:i.cn("text-3xl leading-snug tracking-tight","font-semibold hover:text-inkeep-primary-stronger","dark:hover:text-inkeep-expanded-primary-100",e),...t}),X=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewTitleLinkIcon,{className:i.cn("inline-block ml-2 mb-2 tracking-tight text-gray-500 dark:text-white-alpha-500",e),...t}),Y=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewBreadcrumbs,{className:i.cn(s.citation({slot:"breadcrumbs"}),"!line-clamp-none whitespace-normal text-gray-500 dark:text-gray-dark-200 text-sm",e),...t}),Z=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewBreadcrumbIcon,{className:i.cn(s.citation({slot:"breadcrumbsIcon"}),e),...t}),ee=({className:e,componentStyles:t,...d})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewBody,{className:i.cn("max-w-full text-gray-700 dark:text-gray-dark-100 [&_em]:font-bold [&_em]:not-italic",e),componentStyles:m.merge(o.markdownStyles,t??{}),...d}),te=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutline,{className:i.cn("flex flex-col gap-3",e),...t}),re=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutlineTitle,{className:i.cn("text-xs uppercase font-semibold tracking-widest","text-gray-500 dark:text-white-alpha-500",e),...t}),ae=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutlineList,{className:i.cn("flex flex-col gap-4",e),...t}),ie=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutlineItem,{className:i.cn("flex items-center gap-1 text-gray-600 dark:text-white-alpha-600 font-medium ",`${t.href?"cursor-pointer hover:text-gray-800 dark:hover:text-white-alpha-800 dark:data-[is-match]:hover:text-inkeep-expanded-primary-200 data-[is-match]:hover:text-inkeep-expanded-primary-800 ":""}`,"data-[is-match]:text-inkeep-expanded-primary-700","dark:data-[is-match]:text-inkeep-expanded-primary-300",e),...t}),se=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutlineItemIcon,{className:i.cn(e),...t}),de=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutlineItemText,{className:i.cn(e),...t}),ne=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutlineItemLinkIcon,{className:i.cn("h-3 !min-h-0 !min-w-0",e),...t}),ce=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Footer,{className:i.cn("justify-self-end","px-5 pt-1 pb-3","[[data-mobile]_&]:py-0","[[data-mobile]_&]:items-center","[[data-mobile]_&]:h-[var(--footer-height)]","hidden data-[has-results]:flex",e),...t}),le=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineContainer,{className:i.cn("flex items-center whitespace-nowrap",e),...t}),me=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineText,{className:i.cn("text-xs md:text-sm text-gray-500 dark:text-white-alpha-600",e),...t}),oe=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineLogo,{className:i.cn("text-gray-500 dark:text-white-alpha-600","w-5 ml-1.5 mr-0.5",e),...t}),he=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineBrandName,{className:i.cn(n.link(),"inline-flex text-xs md:text-sm text-gray-500","dark:text-white-alpha-600 font-medium",e),...t});exports.AskAITrigger=S;exports.AskAITriggerIcon=k;exports.AskAITriggerIndicator=P;exports.AskAITriggerIndicatorText=w;exports.AskAITriggerLabel=E;exports.AskAITriggerQuery=R;exports.Content=p;exports.Footer=ce;exports.Input=v;exports.InputGroup=x;exports.InputIcon=g;exports.Loading=I;exports.Provider=h;exports.Results=f;exports.ResultsContent=A;exports.ResultsEmpty=T;exports.ResultsItem=D;exports.ResultsItemBreadcrumbIcon=F;exports.ResultsItemBreadcrumbs=H;exports.ResultsItemDescription=W;exports.ResultsItemDescriptionPart=z;exports.ResultsItemIcon=G;exports.ResultsItemIndicator=M;exports.ResultsItemPreview=$;exports.ResultsItemPreviewBody=ee;exports.ResultsItemPreviewBreadcrumbIcon=Z;exports.ResultsItemPreviewBreadcrumbs=Y;exports.ResultsItemPreviewHeader=J;exports.ResultsItemPreviewHeading=K;exports.ResultsItemPreviewOutline=te;exports.ResultsItemPreviewOutlineItem=ie;exports.ResultsItemPreviewOutlineItemIcon=se;exports.ResultsItemPreviewOutlineItemLinkIcon=ne;exports.ResultsItemPreviewOutlineItemText=de;exports.ResultsItemPreviewOutlineList=ae;exports.ResultsItemPreviewOutlineTitle=re;exports.ResultsItemPreviewTitle=U;exports.ResultsItemPreviewTitleLinkIcon=X;exports.ResultsItemTag=V;exports.ResultsItemTitle=Q;exports.ResultsList=q;exports.ResultsLoading=y;exports.ResultsScrollArea=_;exports.ResultsScrollAreaCorner=C;exports.ResultsScrollAreaScrollbar=O;exports.ResultsScrollAreaThumb=B;exports.ResultsScrollAreaViewport=L;exports.ResultsTab=N;exports.ResultsTabList=j;exports.Root=b;exports.TaglineBrandName=he;exports.TaglineContainer=le;exports.TaglineLogo=oe;exports.TaglineText=me;exports.Wrapper=u;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),r=require("@inkeep/cxkit-primitives"),i=require("../utils.cjs"),s=require("../ui/recipes/citation.cjs"),n=require("../ui/recipes/link.cjs"),c=require("../ui/recipes/scrollable.cjs"),l=require("./embedded-search/results-loading.cjs"),m=require("merge-anything"),o=require("../ui/markdown-styles.cjs"),h=e=>a.jsx(r.EmbeddedSearchPrimitive.Provider,{...e}),u=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Wrapper,{className:i.cn("data-[hidden]:hidden rounded-md flex","bg-white dark:bg-gray-dark-950",e),...t}),b=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Root,{className:i.cn("data-[hidden]:hidden flex flex-col w-full","[--footer-height:theme(spacing.9)]","data-[mobile]:[--input-height:theme(spacing.20)]","[--ask-ai-trigger-height:0px]","[[data-show-ask-ai-card]_&]:[--ask-ai-trigger-height:theme(spacing.11)]",e),...t}),p=r.EmbeddedSearchPrimitive.Content,x=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.InputGroup,{className:i.cn("flex items-center w-full px-5 pt-3 pb-3 gap-3","[[data-mobile]_&]:max-h-[var(--input-height)]",e),...t}),g=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.InputIcon,{className:i.cn("min-w-5 w-5 text-xl","text-gray-500 dark:text-white-alpha-600",e),...t}),v=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Input,{className:i.cn("min-h-[38px] overflow-hidden w-full resize-none","py-1.5 max-h-[10vh] placeholder:text-gray-500","w-full dark:placeholder:text-gray-dark-200","border-none outline-none shadow-none bg-transparent",e),...t}),I=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Loading,{className:i.cn("min-w-5 w-5 text-xl","text-gray-500 dark:text-white-alpha-600","animate-spin",e),...t}),S=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITrigger,{className:i.cn(s.citation({slot:"root"}),"mx-5 w-[calc(100%_-_theme(spacing.10))]","mb-4 h-11 cursor-pointer","h-[var(--ask-ai-trigger-height)]","grid-template-[none] flex items-center",e),...t}),k=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerIcon,{className:i.cn("[grid-area:icon] h-5 w-5 flex-shrink-0","[--start-color:theme(colors.inkeep-expanded-primary.300)]","[--end-color:theme(colors.inkeep-expanded-primary.700)]","dark:[--start-color:theme(colors.inkeep-expanded-primary.50)]","dark:[--end-color:theme(colors.inkeep-expanded-primary.300)]",e),...t}),E=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerLabel,{className:i.cn(s.citation({slot:"title"}),"font-medium text-gray-700",e),...t}),R=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerQuery,{className:i.cn("font-semibold !bg-clip-text text-transparent ml-2","animate-shine [background:linear-gradient(270deg,theme(colors.inkeep-primary.stronger-light),transparent)_-200%_50%_/_25%_100%_no-repeat,theme(colors.inkeep-expanded-primary.800)] ","dark:[background:linear-gradient(270deg,theme(colors.inkeep-expanded-primary.100),transparent)_-200%_50%_/_25%_100%_no-repeat,theme(colors.inkeep-expanded-primary.400)]",e),...t}),P=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerIndicator,{className:i.cn(s.citation({slot:"indicator"}),"ml-1 opacity-100 text-inkeep-primary-stronger-light group-selected:text-inkeep-primary-strong dark:text-gray-dark-300 dark:group-selected:text-inkeep-expanded-primary-300 ",e),...t}),w=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.AskAITriggerIndicatorText,{className:i.cn("text-xs flex-shrink-0 ml-auto","group-selected:text-inkeep-primary-strong dark:text-gray-dark-300 dark:group-selected:text-inkeep-expanded-primary-300","text-inkeep-primary-medium-subtle bg-gray-500 bg-clip-text dark:bg-white-alpha-800",e),...t}),f=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Results,{className:i.cn(c.scrollable({section:"content"}),"h-0 max-h-full","data-[has-content]:h-[min(calc(85vh_-_72px),calc(850px_-_72px_-_275px))]","md:data-[dual-pane-search-expanded]:h-[min(calc(85vh_-_72px),calc(900px_-_72px_-_135px))]","[[data-mobile]_&]:h-[calc(100vh-var(--input-height)-var(--footer-height)-var(--ask-ai-trigger-height))]","transition-all duration-250 ease-out data-[has-content]:pb-2",e),...t}),y=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsLoading,{className:i.cn("group mb-1 relative transition-all w-full h-full",e),children:a.jsx(l.ResultsLoading,{}),...t}),T=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsEmpty,{className:i.cn("flex w-full h-full","overflow-hidden relative grow-[2]","items-center justify-center text-gray-600","dark:text-gray-dark-400 mt-8",e),...t}),j=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsTabList,{className:i.cn("shrink-0 max-w-full","flex gap-3 px-5 pb-2 pt-0","overflow-x-auto [scrollbar-width:thin]",e),...t}),N=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsTab,{className:i.cn("px-3 text-1sm font-medium rounded-full shrink-0","py-1 transition-all duration-200 leading-snug","border border-gray-300 dark:border-gray-dark-500","hover:bg-gray-50 dark:hover:bg-white-alpha-50","data-[state=active]:bg-inkeep-primary-light-subtle","hover:data-[state=active]:bg-inkeep-primary-light-subtle","data-[state=active]:text-inkeep-expanded-primary-900","data-[state=active]:border-inkeep-primary-medium-subtle","dark:data-[state=active]:bg-white-alpha-100","dark:hover:data-[state=active]:bg-white-alpha-100","dark:data-[state=active]:text-inkeep-expanded-primary-300","dark:data-[state=active]:border-inkeep-expanded-primary-300","focus:outline-inkeep-expanded-primary-700 dark:focus:outline-inkeep-expanded-primary-300",e),...t}),A=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsContent,{className:i.cn("flex overflow-hidden h-full",e),...t}),_=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollArea,{className:i.cn("overflow-hidden h-full first:w-full","first:[[data-view=dual-pane]_&]:flex-1 md:first:[[data-view=dual-pane]_&]:flex-[0_0_44%]",'befter:content-[""] befter:absolute befter:inset-x-0',"befter:h-10 befter:pointer-events-none","befter:transition-opacity befter:duration-300","befter:ease-in-out ","before:top-0 after:bottom-0","before:bg-[linear-gradient(white,_transparent)] after:bg-[linear-gradient(transparent,_white)] ","dark:before:bg-[linear-gradient(var(--ikp-color-gray-dark-950),_transparent)] dark:after:bg-[linear-gradient(transparent,_var(--ikp-color-gray-dark-950))]","has-[[data-scroll-top]]:before:opacity-0","has-[[data-scroll-bottom]]:after:opacity-0",e),...t}),L=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollAreaViewport,{className:i.cn("h-full w-full rounded-[inherit]",e),...t}),O=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollAreaScrollbar,{className:i.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}),B=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsScrollAreaThumb,{className:i.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),C=r.EmbeddedSearchPrimitive.ResultsScrollAreaCorner,q=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsList,{className:i.cn("w-full flex flex-col","items-center gap-2.5 h-full shrink-0","px-5 py-1 content-center -my-px",e),...t}),D=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItem,{className:i.cn(s.citation({slot:"root"}),e),...t}),H=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemBreadcrumbs,{className:i.cn(s.citation({slot:"breadcrumbs"}),e),...t}),F=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemBreadcrumbIcon,{className:i.cn(s.citation({slot:"breadcrumbsIcon"}),e),...t}),G=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemIcon,{className:i.cn(s.citation({slot:"icon"}),e),...t}),Q=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemTitle,{className:i.cn(s.citation({slot:"title"}),e),...t}),V=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemTag,{className:i.cn(s.citation({slot:"tag"}),e),...t}),W=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemDescription,{className:i.cn(s.citation({slot:"description"}),e),...t}),z=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemDescriptionPart,{className:i.cn(s.citation({slot:"descriptionPart"}),e),...t}),M=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemIndicator,{className:i.cn(s.citation({slot:"indicator"}),e),...t}),$=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreview,{className:i.cn("flex-1 min-w-0 break-words pt-3 pb-4 pr-10 pl-5","hidden md:flex flex-col gap-6",e),...t}),J=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewHeader,{className:i.cn("flex flex-col gap-5",e),...t}),K=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewHeading,{className:i.cn("inline-block",e),...t}),U=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewTitle,{className:i.cn("text-3xl leading-snug tracking-tight","font-semibold hover:text-inkeep-primary-stronger","dark:hover:text-inkeep-expanded-primary-100",e),...t}),X=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewTitleLinkIcon,{className:i.cn("inline-block ml-2 mb-2 tracking-tight text-gray-500 dark:text-white-alpha-500",e),...t}),Y=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewBreadcrumbs,{className:i.cn(s.citation({slot:"breadcrumbs"}),"!line-clamp-none whitespace-normal text-gray-500 dark:text-gray-dark-200 text-sm",e),...t}),Z=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewBreadcrumbIcon,{className:i.cn(s.citation({slot:"breadcrumbsIcon"}),e),...t}),ee=({className:e,componentStyles:t,...d})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewBody,{className:i.cn("max-w-full text-gray-700 dark:text-gray-dark-100 [&_em]:font-bold [&_em]:not-italic",e),componentStyles:m.merge(o.markdownStyles,t??{}),...d}),te=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutline,{className:i.cn("flex flex-col gap-3",e),...t}),re=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutlineTitle,{className:i.cn("text-xs uppercase font-semibold tracking-widest","text-gray-500 dark:text-white-alpha-500",e),...t}),ae=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutlineList,{className:i.cn("flex flex-col gap-4",e),...t}),ie=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutlineItem,{className:i.cn("flex items-center gap-1 text-gray-600 dark:text-white-alpha-600 font-medium ",`${t.href?"cursor-pointer hover:text-gray-800 dark:hover:text-white-alpha-800 dark:data-[is-match]:hover:text-inkeep-expanded-primary-200 data-[is-match]:hover:text-inkeep-expanded-primary-800 ":""}`,"data-[is-match]:text-inkeep-expanded-primary-700","dark:data-[is-match]:text-inkeep-expanded-primary-300",e),...t}),se=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutlineItemIcon,{className:i.cn(e),...t}),de=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutlineItemText,{className:i.cn(e),...t}),ne=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.ResultsItemPreviewOutlineItemLinkIcon,{className:i.cn("h-3 !min-h-0 !min-w-0",e),...t}),ce=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.Footer,{className:i.cn("justify-self-end","px-5 pt-1 pb-3","[[data-mobile]_&]:py-0","[[data-mobile]_&]:items-center","[[data-mobile]_&]:h-[var(--footer-height)]","hidden data-[has-results]:flex",e),...t}),le=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineContainer,{className:i.cn("flex items-center whitespace-nowrap",e),...t}),me=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineText,{className:i.cn("text-xs md:text-sm text-gray-500 dark:text-white-alpha-600",e),...t}),oe=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineLogo,{className:i.cn("text-gray-500 dark:text-white-alpha-600","w-5 ml-1.5 mr-0.5",e),...t}),he=({className:e,...t})=>a.jsx(r.EmbeddedSearchPrimitive.TaglineBrandName,{className:i.cn(n.link(),"inline-flex text-xs md:text-sm text-gray-500","dark:text-white-alpha-600 font-medium",e),...t});exports.AskAITrigger=S;exports.AskAITriggerIcon=k;exports.AskAITriggerIndicator=P;exports.AskAITriggerIndicatorText=w;exports.AskAITriggerLabel=E;exports.AskAITriggerQuery=R;exports.Content=p;exports.Footer=ce;exports.Input=v;exports.InputGroup=x;exports.InputIcon=g;exports.Loading=I;exports.Provider=h;exports.Results=f;exports.ResultsContent=A;exports.ResultsEmpty=T;exports.ResultsItem=D;exports.ResultsItemBreadcrumbIcon=F;exports.ResultsItemBreadcrumbs=H;exports.ResultsItemDescription=W;exports.ResultsItemDescriptionPart=z;exports.ResultsItemIcon=G;exports.ResultsItemIndicator=M;exports.ResultsItemPreview=$;exports.ResultsItemPreviewBody=ee;exports.ResultsItemPreviewBreadcrumbIcon=Z;exports.ResultsItemPreviewBreadcrumbs=Y;exports.ResultsItemPreviewHeader=J;exports.ResultsItemPreviewHeading=K;exports.ResultsItemPreviewOutline=te;exports.ResultsItemPreviewOutlineItem=ie;exports.ResultsItemPreviewOutlineItemIcon=se;exports.ResultsItemPreviewOutlineItemLinkIcon=ne;exports.ResultsItemPreviewOutlineItemText=de;exports.ResultsItemPreviewOutlineList=ae;exports.ResultsItemPreviewOutlineTitle=re;exports.ResultsItemPreviewTitle=U;exports.ResultsItemPreviewTitleLinkIcon=X;exports.ResultsItemTag=V;exports.ResultsItemTitle=Q;exports.ResultsList=q;exports.ResultsLoading=y;exports.ResultsScrollArea=_;exports.ResultsScrollAreaCorner=C;exports.ResultsScrollAreaScrollbar=O;exports.ResultsScrollAreaThumb=B;exports.ResultsScrollAreaViewport=L;exports.ResultsTab=N;exports.ResultsTabList=j;exports.Root=b;exports.TaglineBrandName=he;exports.TaglineContainer=le;exports.TaglineLogo=oe;exports.TaglineText=me;exports.Wrapper=u;
|
|
@@ -321,7 +321,7 @@ const w = (e) => /* @__PURE__ */ r(a.Provider, { ...e }), f = ({ className: e, .
|
|
|
321
321
|
className: s(
|
|
322
322
|
"w-full flex flex-col",
|
|
323
323
|
"items-center gap-2.5 h-full shrink-0",
|
|
324
|
-
"px-5 py-1 content-center -my-
|
|
324
|
+
"px-5 py-1 content-center -my-px",
|
|
325
325
|
e
|
|
326
326
|
),
|
|
327
327
|
...t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("@inkeep/cxkit-primitives"),l=require("../utils.cjs"),o=require("../ui/recipes/button.cjs"),m=require("../ui/recipes/checkbox.cjs"),s=require("../ui/recipes/input.cjs"),r=require("../ui/recipes/select.cjs"),c=require("merge-anything"),F=require("../ui/markdown-styles.cjs"),d=e=>i.jsx(n.IntelligentFormPrimitive.Provider,{...e}),g=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Root,{className:l.cn("max-w-full border divide-y","rounded-xl shadow h-full max-h-full","bg-white dark:bg-gray-dark-950","flex flex-col",e),...t}),x=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Heading,{className:l.cn("px-5 py-4 font-medium shrink-0",e),...t}),I=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Content,{className:l.cn("flex-1 overflow-hidden",e),...t}),u=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ContentScrollArea,{className:l.cn("h-full",e),...t}),S=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ContentScrollAreaViewport,{className:l.cn("h-full w-full rounded-[inherit] px-5","[&_[data-part=grid]]:px-1","[&_[data-part=grid]]:divide-y",e),...t}),p=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ContentScrollAreaScrollbar,{className:l.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}),f=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ContentScrollAreaThumb,{className:l.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),v=n.IntelligentFormPrimitive.ContentScrollAreaCorner,P=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Success,{className:l.cn("flex flex-col items-center","justify-center mx-1 pt-12 pb-6",e),...t}),b=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SuccessIcon,{className:l.cn("w-6 h-6 text-green-500 mb-5",e),...t}),h=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SuccessHeading,{className:l.cn("text-xl font-semibold","mb-3 tracking-tight",e),...t}),y=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SuccessMessage,{className:l.cn("text-gray-800 dark:text-white-alpha-950",e),...t}),j=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.PrimaryForm,{className:l.cn("w-full flex flex-col py-6",e),...t}),N=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.PrimaryFormDescription,{className:l.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),C=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.PrimaryFormFields,{className:l.cn("w-full gap-8",e),...t}),w=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.PrimaryFormSubmit,{className:l.cn(o.button({preset:"neutralFilled",size:"sm"}),"ml-auto data-[loading]:cursor-wait","data-[submitted]:hidden",e),...t}),k=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormField,{className:l.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}),A=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldLabel,{className:l.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}),T=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldText,{className:l.cn(s.input({size:"sm",variant:"outline"}),e),...t}),B=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldEmail,{className:l.cn(s.input({size:"sm",variant:"outline"}),e),...t}),R=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldFile,{className:l.cn(s.input({size:"sm",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}),q=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldTextArea,{className:l.cn(s.input({size:"sm",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),H=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldCheckbox,{className:l.cn(m.checkbox({slot:"root"}),e),...t}),L=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldCheckboxIndicator,{className:l.cn(m.checkbox({slot:"indicator"}),e),...t}),E=n.IntelligentFormPrimitive.FormFieldSelect,V=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldSelectTrigger,{className:l.cn(r.select({slot:"trigger"}),"text-sm",e),...t}),z=n.IntelligentFormPrimitive.FormFieldSelectValue,_=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldSelectIcon,{className:l.cn("h-4 w-4 opacity-45",e),...t}),D=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldSelectContent,{className:l.cn(r.select({slot:"content"}),e),...t}),M=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldSelectViewport,{className:l.cn(r.select({slot:"viewport"}),e),...t}),O=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldSelectItem,{className:l.cn(r.select({slot:"item"}),"text-sm",e),...t}),G=n.IntelligentFormPrimitive.FormFieldSelectItemText,J=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldSelectItemIndicator,{className:l.cn(r.select({slot:"itemIndicator"}),e),...t}),K=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldError,{className:l.cn("text-sm flex items-center text-red-500 dark:text-red-300",e),...t}),Q=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.BotHeading,{className:l.cn("flex items-center gap-2",e),...t}),U=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.BotHeadingIcon,{className:l.cn("border","bg-[linear-gradient(to_top,_var(--ikp-color-gray-100),_transparent)] dark:bg-[linear-gradient(to_top,_var(--ikp-color-gray-dark-600),_transparent)]","p-1 rounded-md","w-6 h-6 text-gray-600 dark:text-white-alpha-700",e),...t}),W=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.BotHeadingName,{className:l.cn("text-gray-800 dark:text-white-alpha-950 text-sm font-semibold",e),...t}),X=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Loading,{className:l.cn("py-6 flex flex-wrap","gap-x-3 gap-y-6","[&>:first-child]:basis-full text-sm",e),...t}),Y=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ConfidentResponse,{className:l.cn("w-full flex flex-col py-6 gap-6 min-w-0 text-sm",e),...t}),Z=({className:e,componentStyles:t,...a})=>i.jsx(n.IntelligentFormPrimitive.ConfidentAnswer,{className:l.cn("max-w-full ",e),componentStyles:c.merge(F.markdownStyles,t??{}),...a}),$=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ConfidentResponseButton,{className:l.cn(o.button({preset:"neutralFilled",size:"sm"}),"ml-auto gap-2 data-[escalated]:hidden",e),...t}),ee=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ConfidentResponseButtonIcon,{className:l.cn("",e),...t}),te=n.IntelligentFormPrimitive.ConfidentResponseButtonLabel,ne=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SecondaryForm,{className:l.cn("w-full flex flex-col py-6 gap-6",e),...t}),ie=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SecondaryFormDescription,{className:l.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),le=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SecondaryFormFields,{className:l.cn("w-full gap-8",e),...t}),re=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SecondaryFormSubmit,{className:l.cn(o.button({preset:"neutralFilled",size:"sm"}),"ml-auto data-[loading]:cursor-wait","data-[submitted]:hidden",e),...t}),oe=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Error,{className:l.cn("text-red-500 dark:text-red-300",e),...t}),se=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Sources,{className:l.cn("w-full flex flex-col gap-6",e),...t}),me=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SourcesCaption,{className:l.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),ae=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SourcesList,{className:l.cn("w-full flex flex-wrap gap-2 items-center",e),...t}),ce=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Source,{className:l.cn(o.button({size:"xs",variant:"outline"}),"text-gray-600 dark:text-white-alpha-700 gap-1",e),...t}),Fe=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SourceIcon,{className:l.cn("",e),...t}),de=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SourceTitle,{className:l.cn("line-clamp-1",e),...t});exports.BotHeading=Q;exports.BotHeadingIcon=U;exports.BotHeadingName=W;exports.Checkbox=H;exports.CheckboxIndicator=L;exports.ConfidentAnswer=Z;exports.ConfidentResponse=Y;exports.ConfidentResponseButton=$;exports.ConfidentResponseButtonIcon=ee;exports.ConfidentResponseButtonLabel=te;exports.Content=I;exports.ContentScrollArea=u;exports.ContentScrollAreaCorner=v;exports.ContentScrollAreaScrollbar=p;exports.ContentScrollAreaThumb=f;exports.ContentScrollAreaViewport=S;exports.Email=B;exports.Error=oe;exports.Field=k;exports.FieldError=K;exports.FieldLabel=A;exports.File=R;exports.Heading=x;exports.Loading=X;exports.PrimaryForm=j;exports.PrimaryFormDescription=N;exports.PrimaryFormFields=C;exports.PrimaryFormSubmit=w;exports.Provider=d;exports.Root=g;exports.SecondaryForm=ne;exports.SecondaryFormDescription=ie;exports.SecondaryFormFields=le;exports.SecondaryFormSubmit=re;exports.Select=E;exports.SelectContent=D;exports.SelectIcon=_;exports.SelectItem=O;exports.SelectItemIndicator=J;exports.SelectItemText=G;exports.SelectTrigger=V;exports.SelectValue=z;exports.SelectViewport=M;exports.Source=ce;exports.SourceIcon=Fe;exports.SourceTitle=de;exports.Sources=se;exports.SourcesCaption=me;exports.SourcesList=ae;exports.Success=P;exports.SuccessHeading=h;exports.SuccessIcon=b;exports.SuccessMessage=y;exports.Text=T;exports.TextArea=q;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("@inkeep/cxkit-primitives"),l=require("../utils.cjs"),o=require("../ui/recipes/button.cjs"),m=require("../ui/recipes/checkbox.cjs"),s=require("../ui/recipes/input.cjs"),r=require("../ui/recipes/select.cjs"),c=require("merge-anything"),d=require("../ui/markdown-styles.cjs"),F=e=>i.jsx(n.IntelligentFormPrimitive.Provider,{...e}),g=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Root,{className:l.cn("max-w-full border divide-y","rounded-xl shadow h-full max-h-full","bg-white dark:bg-gray-dark-950","flex flex-col",e),...t}),x=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Heading,{className:l.cn("px-5 py-4 font-medium shrink-0",e),...t}),I=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Content,{className:l.cn("flex-1 overflow-hidden",e),...t}),u=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ContentScrollArea,{className:l.cn("h-full",e),...t}),S=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ContentScrollAreaViewport,{className:l.cn("h-full w-full rounded-[inherit] px-5","[&_[data-part=grid]]:px-1","[&_[data-part=grid]]:divide-y",e),...t}),p=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ContentScrollAreaScrollbar,{className:l.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}),f=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ContentScrollAreaThumb,{className:l.cn("relative flex-1 rounded-full","bg-gray-300 dark:bg-white-alpha-200",e),...t}),v=n.IntelligentFormPrimitive.ContentScrollAreaCorner,P=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Success,{className:l.cn("flex flex-col items-center","justify-center mx-1 pt-12 pb-6",e),...t}),b=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SuccessIcon,{className:l.cn("w-6 h-6 text-green-500 mb-5",e),...t}),h=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SuccessHeading,{className:l.cn("text-xl font-semibold","mb-3 tracking-tight",e),...t}),y=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SuccessMessage,{className:l.cn("text-gray-800 dark:text-white-alpha-950",e),...t}),j=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.PrimaryForm,{className:l.cn("w-full flex flex-col py-6",e),...t}),N=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.PrimaryFormDescription,{className:l.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),C=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.PrimaryFormFields,{className:l.cn("w-full gap-8",e),...t}),w=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.PrimaryFormSubmit,{className:l.cn(o.button({preset:"neutralFilled",size:"sm"}),"ml-auto data-[loading]:cursor-wait","data-[submitted]:hidden",e),...t}),k=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormField,{className:l.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}),A=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldLabel,{className:l.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",'dark:data-[required]:after:[content:"*"]',e),...t}),T=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldText,{className:l.cn(s.input({size:"sm",variant:"outline"}),e),...t}),B=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldEmail,{className:l.cn(s.input({size:"sm",variant:"outline"}),e),...t}),q=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldFile,{className:l.cn(s.input({size:"sm",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}),R=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldTextArea,{className:l.cn(s.input({size:"sm",variant:"outline"}),"min-h-20 px-4 py-2",e),...t}),H=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldCheckbox,{className:l.cn(m.checkbox({slot:"root"}),e),...t}),L=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldCheckboxIndicator,{className:l.cn(m.checkbox({slot:"indicator"}),e),...t}),E=n.IntelligentFormPrimitive.FormFieldSelect,V=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldSelectTrigger,{className:l.cn(r.select({slot:"trigger"}),"text-sm",e),...t}),z=n.IntelligentFormPrimitive.FormFieldSelectValue,_=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldSelectIcon,{className:l.cn("h-4 w-4 opacity-45",e),...t}),D=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldSelectContent,{className:l.cn(r.select({slot:"content"}),e),...t}),M=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldSelectViewport,{className:l.cn(r.select({slot:"viewport"}),e),...t}),O=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldSelectItem,{className:l.cn(r.select({slot:"item"}),"text-sm",e),...t}),G=n.IntelligentFormPrimitive.FormFieldSelectItemText,J=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldSelectItemIndicator,{className:l.cn(r.select({slot:"itemIndicator"}),e),...t}),K=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.FormFieldError,{className:l.cn("text-sm flex items-center text-red-500 dark:text-red-300",e),...t}),Q=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.BotHeading,{className:l.cn("flex items-center gap-2",e),...t}),U=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.BotHeadingIcon,{className:l.cn("border","bg-[linear-gradient(to_top,_var(--ikp-color-gray-100),_transparent)] dark:bg-[linear-gradient(to_top,_var(--ikp-color-gray-dark-600),_transparent)]","p-1 rounded-md","w-6 h-6 text-gray-600 dark:text-white-alpha-700",e),...t}),W=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.BotHeadingName,{className:l.cn("text-gray-800 dark:text-white-alpha-950 text-sm font-semibold",e),...t}),X=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Loading,{className:l.cn("py-6 flex flex-wrap","gap-x-3 gap-y-6","[&>:first-child]:basis-full text-sm",e),...t}),Y=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ConfidentResponse,{className:l.cn("w-full flex flex-col py-6 gap-6 min-w-0 text-sm",e),...t}),Z=({className:e,componentStyles:t,...a})=>i.jsx(n.IntelligentFormPrimitive.ConfidentAnswer,{className:l.cn("max-w-full ",e),componentStyles:c.merge(d.markdownStyles,t??{}),...a}),$=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ConfidentResponseButton,{className:l.cn(o.button({preset:"neutralFilled",size:"sm"}),"ml-auto gap-2 data-[escalated]:hidden",e),...t}),ee=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.ConfidentResponseButtonIcon,{className:l.cn("",e),...t}),te=n.IntelligentFormPrimitive.ConfidentResponseButtonLabel,ne=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SecondaryForm,{className:l.cn("w-full flex flex-col py-6 gap-6",e),...t}),ie=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SecondaryFormDescription,{className:l.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),le=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SecondaryFormFields,{className:l.cn("w-full gap-8",e),...t}),re=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SecondaryFormSubmit,{className:l.cn(o.button({preset:"neutralFilled",size:"sm"}),"ml-auto data-[loading]:cursor-wait","data-[submitted]:hidden",e),...t}),oe=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Error,{className:l.cn("text-red-500 dark:text-red-300",e),...t}),se=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Sources,{className:l.cn("w-full flex flex-col gap-6",e),...t}),me=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SourcesCaption,{className:l.cn("text-gray-700 dark:text-white-alpha-700 text-sm",e),...t}),ae=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SourcesList,{className:l.cn("w-full flex flex-wrap gap-2 items-center",e),...t}),ce=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.Source,{className:l.cn(o.button({size:"xs",variant:"outline"}),"text-gray-600 dark:text-white-alpha-700 gap-1",e),...t}),de=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SourceIcon,{className:l.cn("",e),...t}),Fe=({className:e,...t})=>i.jsx(n.IntelligentFormPrimitive.SourceTitle,{className:l.cn("line-clamp-1",e),...t});exports.BotHeading=Q;exports.BotHeadingIcon=U;exports.BotHeadingName=W;exports.Checkbox=H;exports.CheckboxIndicator=L;exports.ConfidentAnswer=Z;exports.ConfidentResponse=Y;exports.ConfidentResponseButton=$;exports.ConfidentResponseButtonIcon=ee;exports.ConfidentResponseButtonLabel=te;exports.Content=I;exports.ContentScrollArea=u;exports.ContentScrollAreaCorner=v;exports.ContentScrollAreaScrollbar=p;exports.ContentScrollAreaThumb=f;exports.ContentScrollAreaViewport=S;exports.Email=B;exports.Error=oe;exports.Field=k;exports.FieldError=K;exports.FieldLabel=A;exports.File=q;exports.Heading=x;exports.Loading=X;exports.PrimaryForm=j;exports.PrimaryFormDescription=N;exports.PrimaryFormFields=C;exports.PrimaryFormSubmit=w;exports.Provider=F;exports.Root=g;exports.SecondaryForm=ne;exports.SecondaryFormDescription=ie;exports.SecondaryFormFields=le;exports.SecondaryFormSubmit=re;exports.Select=E;exports.SelectContent=D;exports.SelectIcon=_;exports.SelectItem=O;exports.SelectItemIndicator=J;exports.SelectItemText=G;exports.SelectTrigger=V;exports.SelectValue=z;exports.SelectViewport=M;exports.Source=ce;exports.SourceIcon=de;exports.SourceTitle=Fe;exports.Sources=se;exports.SourcesCaption=me;exports.SourcesList=ae;exports.Success=P;exports.SuccessHeading=h;exports.SuccessIcon=b;exports.SuccessMessage=y;exports.Text=T;exports.TextArea=R;
|
|
@@ -188,6 +188,7 @@ const y = (e) => /* @__PURE__ */ l(o.Provider, { ...e }), N = ({
|
|
|
188
188
|
"data-[required]:after:mt-0",
|
|
189
189
|
"data-[required]:after:text-red-500",
|
|
190
190
|
"dark:data-[required]:after:text-red-300",
|
|
191
|
+
'dark:data-[required]:after:[content:"*"]',
|
|
191
192
|
e
|
|
192
193
|
),
|
|
193
194
|
...t
|