@progress/kendo-themes-html 14.0.0-dev.4 → 14.0.0-dev.6
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/cjs/chat/chat-message.js +1 -1
- package/dist/cjs/chat/chat.spec.js +1 -1
- package/dist/cjs/chat/demos/chat.js +1 -1
- package/dist/cjs/chat/templates/chat-empty.js +1 -1
- package/dist/cjs/chat/templates/chat-expandable.js +1 -1
- package/dist/cjs/chat/templates/chat-failed.js +1 -1
- package/dist/cjs/chat/templates/chat-message-skeleton.js +1 -1
- package/dist/cjs/chat/templates/chat-message-toolbar.js +1 -1
- package/dist/cjs/chat/templates/chat-normal.js +1 -1
- package/dist/cjs/chat/templates/chat-pinned.js +1 -1
- package/dist/cjs/chat/templates/chat-stop-response.js +1 -1
- package/dist/cjs/chat/templates/chat-textarea-file.js +1 -1
- package/dist/cjs/chat/templates/chat-typing.js +1 -1
- package/dist/cjs/chat/templates/chat-upload.js +1 -1
- package/dist/cjs/editor/demos/editor.js +1 -1
- package/dist/cjs/editor/templates/editor-normal.js +1 -1
- package/dist/cjs/editor/templates/editor-resizable.js +1 -1
- package/dist/cjs/editor/templates/editor-responsive-toolbar.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-crop.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-resize.js +1 -1
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/prompt/demos/prompt.js +1 -1
- package/dist/cjs/prompt/templates/prompt-inline-input-only.js +1 -1
- package/dist/cjs/prompt/templates/prompt-inline.js +1 -1
- package/dist/cjs/prompt/templates/prompt-more-actions.js +1 -1
- package/dist/cjs/prompt/templates/prompt-normal.js +1 -1
- package/dist/cjs/prompt/templates/prompt-output.js +1 -1
- package/dist/cjs/prompt/templates/prompt-popup.js +1 -1
- package/dist/cjs/prompt/templates/prompt-settings.js +1 -1
- package/dist/cjs/prompt/templates/prompt-suggestions.js +1 -1
- package/dist/cjs/prompt-box/prompt-box.spec.js +1 -1
- package/dist/cjs/prompt-box/templates/prompt-box-auto-expanded.js +1 -1
- package/dist/cjs/prompt-box/templates/prompt-box-auto.js +1 -1
- package/dist/cjs/prompt-box/templates/prompt-box-multi.js +1 -1
- package/dist/cjs/prompt-box/templates/prompt-box-single.js +1 -1
- package/dist/cjs/prompt-box/templates/prompt-box-stop-response.js +1 -1
- package/dist/cjs/rating/demos/rating.js +1 -1
- package/dist/cjs/rating/rating-item.js +1 -1
- package/dist/cjs/rating/rating.spec.js +1 -1
- package/dist/cjs/rating/templates/rating-disabled.js +1 -1
- package/dist/cjs/rating/templates/rating-normal.js +1 -1
- package/dist/cjs/rating/templates/rating-readonly.js +1 -1
- package/dist/cjs/rating/templates/rating-with-label.js +1 -1
- package/dist/cjs/smart-box/smart-box-send-button.js +1 -1
- package/dist/cjs/smart-box/templates/smart-box-disabled-send.js +1 -1
- package/dist/cjs/smart-box/templates/smart-box-normal.js +1 -1
- package/dist/cjs/smart-box/templates/smart-box-opened-focused.js +1 -1
- package/dist/cjs/smart-box/templates/smart-box-processing.js +1 -1
- package/dist/cjs/speech-to-text-button/demos/speech-to-text-button.js +1 -1
- package/dist/cjs/speech-to-text-button/speech-to-text-button.spec.js +1 -1
- package/dist/cjs/speech-to-text-button/templates/speech-to-text-button-listening.js +1 -1
- package/dist/cjs/speech-to-text-button/templates/speech-to-text-button-normal.js +1 -1
- package/dist/cjs/spreadsheet/demos/spreadsheet.js +1 -1
- package/dist/cjs/spreadsheet/spreadsheet-header.js +1 -1
- package/dist/cjs/spreadsheet/spreadsheet-sheets-bar.js +1 -1
- package/dist/cjs/spreadsheet/spreadsheet-view.js +1 -1
- package/dist/cjs/spreadsheet/templates/spreadsheet-formula-open.js +1 -1
- package/dist/cjs/spreadsheet/templates/spreadsheet-normal.js +1 -1
- package/dist/esm/chat/chat-message.mjs +1 -1
- package/dist/esm/chat/chat.spec.mjs +1 -1
- package/dist/esm/chat/demos/chat.mjs +1 -1
- package/dist/esm/chat/templates/chat-empty.mjs +1 -1
- package/dist/esm/chat/templates/chat-expandable.mjs +1 -1
- package/dist/esm/chat/templates/chat-failed.mjs +1 -1
- package/dist/esm/chat/templates/chat-message-skeleton.mjs +1 -1
- package/dist/esm/chat/templates/chat-message-toolbar.mjs +1 -1
- package/dist/esm/chat/templates/chat-normal.mjs +1 -1
- package/dist/esm/chat/templates/chat-pinned.mjs +1 -1
- package/dist/esm/chat/templates/chat-stop-response.mjs +1 -1
- package/dist/esm/chat/templates/chat-textarea-file.mjs +1 -1
- package/dist/esm/chat/templates/chat-typing.mjs +1 -1
- package/dist/esm/chat/templates/chat-upload.mjs +1 -1
- package/dist/esm/editor/demos/editor.mjs +1 -1
- package/dist/esm/editor/templates/editor-normal.mjs +1 -1
- package/dist/esm/editor/templates/editor-resizable.mjs +1 -1
- package/dist/esm/editor/templates/editor-responsive-toolbar.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-crop.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-resize.mjs +1 -1
- package/dist/esm/index.mjs +8 -8
- package/dist/esm/prompt/demos/prompt.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-inline-input-only.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-inline.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-more-actions.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-normal.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-output.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-popup.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-settings.mjs +1 -1
- package/dist/esm/prompt/templates/prompt-suggestions.mjs +1 -1
- package/dist/esm/prompt-box/prompt-box.spec.mjs +1 -1
- package/dist/esm/prompt-box/templates/prompt-box-auto-expanded.mjs +1 -1
- package/dist/esm/prompt-box/templates/prompt-box-auto.mjs +1 -1
- package/dist/esm/prompt-box/templates/prompt-box-multi.mjs +1 -1
- package/dist/esm/prompt-box/templates/prompt-box-single.mjs +1 -1
- package/dist/esm/prompt-box/templates/prompt-box-stop-response.mjs +1 -1
- package/dist/esm/rating/demos/rating.mjs +1 -1
- package/dist/esm/rating/rating-item.mjs +1 -1
- package/dist/esm/rating/rating.spec.mjs +1 -1
- package/dist/esm/rating/templates/rating-disabled.mjs +1 -1
- package/dist/esm/rating/templates/rating-normal.mjs +1 -1
- package/dist/esm/rating/templates/rating-readonly.mjs +1 -1
- package/dist/esm/rating/templates/rating-with-label.mjs +1 -1
- package/dist/esm/smart-box/smart-box-send-button.mjs +1 -1
- package/dist/esm/smart-box/templates/smart-box-disabled-send.mjs +1 -1
- package/dist/esm/smart-box/templates/smart-box-normal.mjs +1 -1
- package/dist/esm/smart-box/templates/smart-box-opened-focused.mjs +1 -1
- package/dist/esm/smart-box/templates/smart-box-processing.mjs +1 -1
- package/dist/esm/speech-to-text-button/demos/speech-to-text-button.mjs +1 -1
- package/dist/esm/speech-to-text-button/speech-to-text-button.spec.mjs +1 -1
- package/dist/esm/speech-to-text-button/templates/speech-to-text-button-listening.mjs +1 -1
- package/dist/esm/speech-to-text-button/templates/speech-to-text-button-normal.mjs +1 -1
- package/dist/esm/spreadsheet/demos/spreadsheet.mjs +1 -1
- package/dist/esm/spreadsheet/spreadsheet-header.mjs +1 -1
- package/dist/esm/spreadsheet/spreadsheet-sheets-bar.mjs +1 -1
- package/dist/esm/spreadsheet/spreadsheet-view.mjs +1 -1
- package/dist/esm/spreadsheet/templates/spreadsheet-formula-open.mjs +1 -1
- package/dist/esm/spreadsheet/templates/spreadsheet-normal.mjs +1 -1
- package/package.json +3 -3
- package/src/_preview/tests/preview-components.tsx +2 -2
- package/src/chat/chat-message.tsx +3 -3
- package/src/chat/chat.spec.tsx +2 -2
- package/src/chat/tests/chat-files-layout.tsx +8 -8
- package/src/chat/tests/chat-files-pin.tsx +2 -2
- package/src/chat/tests/chat-files.tsx +6 -6
- package/src/chat/tests/chat-message-toolbar.tsx +2 -2
- package/src/colorpicker/tests/colorpicker-size-rounded.tsx +34 -0
- package/src/drawer/tests/drawer-item-states.tsx +3 -3
- package/src/editor/demos/editor.tsx +1 -1
- package/src/editor/templates/editor-normal.tsx +1 -1
- package/src/editor/templates/editor-resizable.tsx +1 -1
- package/src/editor/templates/editor-responsive-toolbar.tsx +1 -1
- package/src/editor/tests/editor-table-wizard.tsx +1 -1
- package/src/editor/tests/editor.tsx +2 -2
- package/src/grid/tests/grid-assistant-window.tsx +4 -4
- package/src/grid/tests/grid-row-pinning-adaptive.tsx +1 -1
- package/src/grid/tests/grid-semantic-search-popup.tsx +10 -10
- package/src/grid/tests/grid-toolbar.tsx +2 -2
- package/src/imageeditor/templates/imageeditor-crop.tsx +1 -1
- package/src/imageeditor/templates/imageeditor-resize.tsx +1 -1
- package/src/prompt/demos/prompt.tsx +4 -4
- package/src/prompt/templates/prompt-inline.tsx +1 -1
- package/src/prompt/templates/prompt-output.tsx +4 -4
- package/src/prompt/tests/prompt-inline-response-generation.tsx +2 -2
- package/src/prompt-box/prompt-box.spec.tsx +1 -1
- package/src/prompt-box/tests/prompt-box-affixes.tsx +8 -8
- package/src/prompt-box/tests/prompt-box-files.tsx +2 -2
- package/src/rating/rating-item.tsx +20 -5
- package/src/smart-box/smart-box-send-button.tsx +1 -1
- package/src/smart-box/templates/smart-box-disabled-send.tsx +1 -1
- package/src/smart-box/templates/smart-box-normal.tsx +1 -1
- package/src/smart-box/templates/smart-box-opened-focused.tsx +1 -1
- package/src/smart-box/templates/smart-box-processing.tsx +1 -1
- package/src/speech-to-text-button/speech-to-text-button.spec.tsx +2 -2
- package/src/spreadsheet/spreadsheet-header.tsx +1 -1
- package/src/spreadsheet/spreadsheet-sheets-bar.tsx +8 -8
- package/src/spreadsheet/tests/spreadsheet-tools.tsx +1 -1
- package/src/toolbar/tests/toolbar-fill-modes.tsx +2 -2
- package/dist/types/loader/tests/loader-container-overlay.d.ts +0 -2
- package/src/colorpicker/tests/colorpicker-size.tsx +0 -28
- package/src/loader/tests/loader-container-overlay.tsx +0 -30
- /package/dist/types/colorpicker/tests/{colorpicker-size.d.ts → colorpicker-size-rounded.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var Ke=Object.create;var U=Object.defineProperty;var Re=Object.getOwnPropertyDescriptor;var ze=Object.getOwnPropertyNames;var He=Object.getPrototypeOf,$e=Object.prototype.hasOwnProperty;var De=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},re=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ze(t))!$e.call(e,s)&&s!==o&&U(e,s,{get:()=>t[s],enumerable:!(r=Re(t,s))||r.enumerable});return e};var Ue=(e,t,o)=>(o=e!=null?Ke(He(e)):{},re(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),Fe=e=>re(U({},"__esModule",{value:!0}),e);var Tt={};De(Tt,{PROMPT_BOX_CLASSNAME:()=>T,PromptBox:()=>S,default:()=>gt});module.exports=Fe(Tt);var p=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?p(...t):typeof t=="object"?Object.keys(t).map((o,r)=>t[r]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>p({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),se=(e,t)=>{let{valid:o,invalid:r,hover:s,focus:u,checked:l,active:d,selected:v,disabled:x,indeterminate:E,loading:m,empty:_,readonly:A,highlighted:w,...M}=t;return p({"k-valid":o,"k-invalid":r,"k-hover":s,"k-focus":u,"k-checked":l,"k-active":d,"k-selected":v,"k-disabled":x,"k-indeterminate":E&&!l,"k-loading":m,"k-empty":_,"k-readonly":A,"k-highlighted":w},Object.keys(M).reduce((B,k)=>(k.startsWith("k-")?B[k]=M[k]:B[`k-${k}`]=M[k],B),{}))};function ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(r=>[`k-${r}`,!0]))}var a={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var le=require("react/jsx-runtime"),J="k-input-inner",Xe=[],Ve={},F={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=F.value,type:o=F.type,placeholder:r=F.placeholder,autocomplete:s=F.autocomplete,disabled:u,readOnly:l,...d}=e;return(0,le.jsx)("input",{...d,type:o,className:p(e.className,J,b(J,e)),placeholder:r,autoComplete:s,defaultValue:t,disabled:u||void 0,readOnly:l||void 0})};K.states=Xe;K.options=Ve;K.className=J;var ue=require("react/jsx-runtime"),q="k-input-inner",Ge=[],Je={},pe={value:"",placeholder:""},R=e=>{let{value:t=pe.value,placeholder:o=pe.placeholder,rows:r,disabled:s,...u}=e;return(0,ue.jsx)("textarea",{...u,className:p(e.className,q,b(q,e)),placeholder:o,rows:r,defaultValue:t,disabled:s||void 0})};R.states=Ge;R.options=Je;R.className=q;var W="prompt-box",ce=W;var z=require("react/jsx-runtime"),Q="k-font-icon",qe=[],We={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Qe={},H=e=>{let{size:t,themeColor:o,icon:r,rotate:s,flip:u,...l}=e;return r?(0,z.jsx)("span",{...l,className:p(e.className,Q,b(Q,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":u==="h"||u==="both","k-flip-v":u==="v"||u==="both"}),"aria-hidden":"true"}):(0,z.jsx)(z.Fragment,{})};H.states=qe;H.options=We;H.className=Q;H.defaultOptions=Qe;var de=H;var I=require("react/jsx-runtime"),Y="k-svg-icon",Ye=[],Ze={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},me={viewBox:"0 0 24 24"},$=e=>{let{size:t,themeColor:o,rotate:r,flip:s,viewBox:u=me.viewBox,icon:l,...d}=e;if(!l)return(0,I.jsx)(I.Fragment,{});if(l==="none")return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let v=typeof l=="object"&&l.name&&l.name;return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),{[`k-svg-i-${v}`]:v,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:(0,I.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:u,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$.states=Ye;$.options=Ze;$.className=Y;$.defaultOptions=me;var Z=$;var j=Ue(require("@progress/kendo-svg-icons"));var fe="icon",xe="icons";var ge=require("react");var be=require("react"),he=(0,be.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),X="k-icon",je=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),et=[],tt={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ee={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{iconsType:t}=(0,ge.useContext)(he),{size:o,themeColor:r,icon:s,type:u=t||ee.type,rotate:l,flip:d,viewBox:v=ee.viewBox,...x}=e;if(!s)return(0,O.jsx)(O.Fragment,{});if((t||u)==="svg"){if(s==="none")return(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:s,size:o});let m=j[s]?s:je(`${s}-icon`);return j[m]?(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:j[m],size:o,themeColor:r,rotate:l,flip:d,viewBox:v}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(de,{...x,className:p(e.className,X),icon:s,size:o,themeColor:r,rotate:l,flip:d})};y.states=et;y.options=tt;y.defaultOptions=ee;y.className=X;y.moduleName=fe;y.folderName=xe;y.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var te="button",Te=te;var g=require("react/jsx-runtime"),D="k-button",ot=["icon-button"],nt=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],at={size:[a.undefined,a.xsmall,a.small,a.medium,a.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},oe={showArrow:!1,arrowIconName:"chevron-down"},i=e=>{let{as:t="button",size:o,rounded:r,fillMode:s,themeColor:u,showArrow:l=oe.showArrow,arrowIconName:d=oe.arrowIconName,variant:v,hover:x,focus:E,active:m,selected:_,disabled:A,togglable:w,ariaDisabled:M,icon:B,text:k,iconClassName:_e,className:Ae,...Pe}=e,Le=B!==void 0,we=e.children!==void 0;return(0,g.jsxs)(t,{className:p(Ae,D,ie(D,v),b(D,{size:o,rounded:r,fillMode:s,themeColor:u}),se(D,{hover:x,focus:E,active:m,disabled:A||M,selected:_}),{"k-icon-button":!k&&!we&&Le}),...Pe,"aria-pressed":w?_?"true":"false":void 0,"aria-disabled":M?"true":void 0,disabled:A||void 0,children:[B&&(0,g.jsx)(y,{className:p(_e,"k-button-icon"),icon:B}),k?(0,g.jsxs)(g.Fragment,{children:[k&&(0,g.jsx)("span",{className:"k-button-text",children:k}),e.children]}):e.children&&(0,g.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,g.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,g.jsx)(y,{icon:d})})]})};i.states=nt;i.options=at;i.variants=ot;i.className=D;i.defaultOptions=oe;i.moduleName=te;i.folderName=Te;i.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Ne=require("react/jsx-runtime"),V=e=>(0,Ne.jsx)(i,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ke=require("react/jsx-runtime"),ve=e=>(0,ke.jsx)(i,{icon:"folder",children:"Button",...e});var Be=require("react/jsx-runtime"),ye=e=>(0,Be.jsx)(i,{children:"Button",...e});var G=require("react/jsx-runtime"),rt=i.options,st=i.states,it={...i.defaultOptions,variant:"text"},lt=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],pt=[],P=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,G.jsx)(V,{...o,icon:"star"});case"icon-and-text":return(0,G.jsx)(ve,{...o,icon:"star",children:"Button"});default:return(0,G.jsx)(ye,{...o,children:"Button"})}};P.options=rt;P.states=st;P.variants=lt;P.defaultOptions=it;P.modifiers=pt;P.className=i.className;var ne="speech-to-text-button",Oe=ne;var Ee=require("react/jsx-runtime"),Se="k-speech-to-text-button",Me={icon:"microphone-outline"},c=e=>{let{listening:t=!1,icon:o=Me.icon,...r}=e;return(0,Ee.jsx)(i,{...r,icon:t?"stop-sm":o,className:p(e.className,Se,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};c.states=i.states;c.options=i.options;c.className=Se;c.defaultOptions=Me;c.moduleName=ne;c.folderName=Oe;c.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var ut=require("react/jsx-runtime");var ct=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),dt=i.states,Ce={...i.defaultOptions,variant:"normal"},mt={...i.options,fillMode:i.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},ft=[],xt=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],L=e=>{let{variant:t,...o}={...Ce,...e},r={};return t==="listening"&&(r.listening=!0),(0,Ie.jsx)(c,{...o,...r})};L.options=mt;L.states=dt;L.variants=xt;L.defaultOptions=Ce;L.modifiers=ft;L.className=c.className;var N=require("react/jsx-runtime"),T="k-prompt-box",bt=[h.hover,h.focus,h.disabled],ht={fillMode:[f.undefined,f.solid,f.flat,f.outline]},ae={lineMode:"auto",isExpanded:!1},S=e=>{let{fillMode:t,lineMode:o=ae.lineMode,startAffix:r,endAffix:s,header:u,isExpanded:l=ae.isExpanded,className:d,children:v,value:x,placeholder:E,generating:m,hover:_,focus:A,disabled:w,...M}=e,B=o==="multi"||o==="auto"&&l;return(0,N.jsxs)("div",{...M,className:p(d,"k-input",T,{[`${T}-singleline`]:o==="single",[`${T}-multiline`]:B,[`k-input-${t}`]:t,"k-hover":_,"k-focus":A,"k-disabled":w}),children:[u&&(0,N.jsx)("div",{className:`${T}-header`,children:u}),(0,N.jsxs)("div",{className:`${T}-content`,children:[r&&(0,N.jsx)("div",{className:`${T}-affix`,children:r}),o==="single"?(0,N.jsx)(K,{value:x,placeholder:E,className:`${T}-input`,type:"text","aria-label":"Prompt input"}):(0,N.jsx)(R,{value:x,placeholder:E,className:`${T}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),(0,N.jsxs)("div",{className:`${T}-affix`,children:[s,(0,N.jsx)(c,{size:"small",fillMode:"flat",rounded:"full"}),(0,N.jsx)(V,{icon:m?"stop-sm":"arrow-up-outline",size:"small",rounded:"full",active:m,disabled:!x&&!m,className:p({"k-generating":m}),"aria-label":m?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),v]})};S.states=bt;S.options=ht;S.className=T;S.defaultOptions=ae;S.moduleName=W;S.folderName=ce;S.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};var gt=S;
|
|
1
|
+
var Ke=Object.create;var U=Object.defineProperty;var Re=Object.getOwnPropertyDescriptor;var ze=Object.getOwnPropertyNames;var He=Object.getPrototypeOf,$e=Object.prototype.hasOwnProperty;var De=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},re=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ze(t))!$e.call(e,s)&&s!==o&&U(e,s,{get:()=>t[s],enumerable:!(r=Re(t,s))||r.enumerable});return e};var Ue=(e,t,o)=>(o=e!=null?Ke(He(e)):{},re(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),Fe=e=>re(U({},"__esModule",{value:!0}),e);var Tt={};De(Tt,{PROMPT_BOX_CLASSNAME:()=>T,PromptBox:()=>S,default:()=>gt});module.exports=Fe(Tt);var p=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?p(...t):typeof t=="object"?Object.keys(t).map((o,r)=>t[r]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>p({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),se=(e,t)=>{let{valid:o,invalid:r,hover:s,focus:u,checked:l,active:d,selected:v,disabled:x,indeterminate:E,loading:m,empty:_,readonly:A,highlighted:w,...M}=t;return p({"k-valid":o,"k-invalid":r,"k-hover":s,"k-focus":u,"k-checked":l,"k-active":d,"k-selected":v,"k-disabled":x,"k-indeterminate":E&&!l,"k-loading":m,"k-empty":_,"k-readonly":A,"k-highlighted":w},Object.keys(M).reduce((B,k)=>(k.startsWith("k-")?B[k]=M[k]:B[`k-${k}`]=M[k],B),{}))};function ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(r=>[`k-${r}`,!0]))}var a={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var le=require("react/jsx-runtime"),J="k-input-inner",Xe=[],Ve={},F={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=F.value,type:o=F.type,placeholder:r=F.placeholder,autocomplete:s=F.autocomplete,disabled:u,readOnly:l,...d}=e;return(0,le.jsx)("input",{...d,type:o,className:p(e.className,J,b(J,e)),placeholder:r,autoComplete:s,defaultValue:t,disabled:u||void 0,readOnly:l||void 0})};K.states=Xe;K.options=Ve;K.className=J;var ue=require("react/jsx-runtime"),q="k-input-inner",Ge=[],Je={},pe={value:"",placeholder:""},R=e=>{let{value:t=pe.value,placeholder:o=pe.placeholder,rows:r,disabled:s,...u}=e;return(0,ue.jsx)("textarea",{...u,className:p(e.className,q,b(q,e)),placeholder:o,rows:r,defaultValue:t,disabled:s||void 0})};R.states=Ge;R.options=Je;R.className=q;var W="prompt-box",ce=W;var z=require("react/jsx-runtime"),Q="k-font-icon",qe=[],We={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Qe={},H=e=>{let{size:t,themeColor:o,icon:r,rotate:s,flip:u,...l}=e;return r?(0,z.jsx)("span",{...l,className:p(e.className,Q,b(Q,{size:t}),{[`k-i-${r}`]:r,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":u==="h"||u==="both","k-flip-v":u==="v"||u==="both"}),"aria-hidden":"true"}):(0,z.jsx)(z.Fragment,{})};H.states=qe;H.options=We;H.className=Q;H.defaultOptions=Qe;var de=H;var I=require("react/jsx-runtime"),Y="k-svg-icon",Ye=[],Ze={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},me={viewBox:"0 0 24 24"},$=e=>{let{size:t,themeColor:o,rotate:r,flip:s,viewBox:u=me.viewBox,icon:l,...d}=e;if(!l)return(0,I.jsx)(I.Fragment,{});if(l==="none")return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let v=typeof l=="object"&&l.name&&l.name;return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),{[`k-svg-i-${v}`]:v,[`k-color-${o}`]:o,[`k-rotate-${r}`]:r,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:(0,I.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:u,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$.states=Ye;$.options=Ze;$.className=Y;$.defaultOptions=me;var Z=$;var j=Ue(require("@progress/kendo-svg-icons"));var fe="icon",xe="icons";var ge=require("react");var be=require("react"),he=(0,be.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),X="k-icon",je=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),et=[],tt={size:[a.undefined,a.xsmall,a.small,a.medium,a.large,a.xlarge,a.xxlarge,a.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ee={viewBox:"0 0 24 24",type:"svg"},y=e=>{let{iconsType:t}=(0,ge.useContext)(he),{size:o,themeColor:r,icon:s,type:u=t||ee.type,rotate:l,flip:d,viewBox:v=ee.viewBox,...x}=e;if(!s)return(0,O.jsx)(O.Fragment,{});if((t||u)==="svg"){if(s==="none")return(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:s,size:o});let m=j[s]?s:je(`${s}-icon`);return j[m]?(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:j[m],size:o,themeColor:r,rotate:l,flip:d,viewBox:v}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(de,{...x,className:p(e.className,X),icon:s,size:o,themeColor:r,rotate:l,flip:d})};y.states=et;y.options=tt;y.defaultOptions=ee;y.className=X;y.moduleName=fe;y.folderName=xe;y.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var te="button",Te=te;var g=require("react/jsx-runtime"),D="k-button",ot=["icon-button"],nt=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],at={size:[a.undefined,a.xsmall,a.small,a.medium,a.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},oe={showArrow:!1,arrowIconName:"chevron-down"},i=e=>{let{as:t="button",size:o,rounded:r,fillMode:s,themeColor:u,showArrow:l=oe.showArrow,arrowIconName:d=oe.arrowIconName,variant:v,hover:x,focus:E,active:m,selected:_,disabled:A,togglable:w,ariaDisabled:M,icon:B,text:k,iconClassName:_e,className:Ae,...Pe}=e,Le=B!==void 0,we=e.children!==void 0;return(0,g.jsxs)(t,{className:p(Ae,D,ie(D,v),b(D,{size:o,rounded:r,fillMode:s,themeColor:u}),se(D,{hover:x,focus:E,active:m,disabled:A||M,selected:_}),{"k-icon-button":!k&&!we&&Le}),...Pe,"aria-pressed":w?_?"true":"false":void 0,"aria-disabled":M?"true":void 0,disabled:A||void 0,children:[B&&(0,g.jsx)(y,{className:p(_e,"k-button-icon"),icon:B}),k?(0,g.jsxs)(g.Fragment,{children:[k&&(0,g.jsx)("span",{className:"k-button-text",children:k}),e.children]}):e.children&&(0,g.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,g.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,g.jsx)(y,{icon:d})})]})};i.states=nt;i.options=at;i.variants=ot;i.className=D;i.defaultOptions=oe;i.moduleName=te;i.folderName=Te;i.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Ne=require("react/jsx-runtime"),V=e=>(0,Ne.jsx)(i,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ke=require("react/jsx-runtime"),ve=e=>(0,ke.jsx)(i,{icon:"folder",children:"Button",...e});var Be=require("react/jsx-runtime"),ye=e=>(0,Be.jsx)(i,{children:"Button",...e});var G=require("react/jsx-runtime"),rt=i.options,st=i.states,it={...i.defaultOptions,variant:"text"},lt=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],pt=[],P=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,G.jsx)(V,{...o,icon:"star"});case"icon-and-text":return(0,G.jsx)(ve,{...o,icon:"star",children:"Button"});default:return(0,G.jsx)(ye,{...o,children:"Button"})}};P.options=rt;P.states=st;P.variants=lt;P.defaultOptions=it;P.modifiers=pt;P.className=i.className;var ne="speech-to-text-button",Oe=ne;var Ee=require("react/jsx-runtime"),Se="k-speech-to-text-button",Me={icon:"microphone"},c=e=>{let{listening:t=!1,icon:o=Me.icon,...r}=e;return(0,Ee.jsx)(i,{...r,icon:t?"stop":o,className:p(e.className,Se,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};c.states=i.states;c.options=i.options;c.className=Se;c.defaultOptions=Me;c.moduleName=ne;c.folderName=Oe;c.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var ut=require("react/jsx-runtime");var ct=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),dt=i.states,Ce={...i.defaultOptions,variant:"normal"},mt={...i.options,fillMode:i.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},ft=[],xt=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],L=e=>{let{variant:t,...o}={...Ce,...e},r={};return t==="listening"&&(r.listening=!0),(0,Ie.jsx)(c,{...o,...r})};L.options=mt;L.states=dt;L.variants=xt;L.defaultOptions=Ce;L.modifiers=ft;L.className=c.className;var N=require("react/jsx-runtime"),T="k-prompt-box",bt=[h.hover,h.focus,h.disabled],ht={fillMode:[f.undefined,f.solid,f.flat,f.outline]},ae={lineMode:"auto",isExpanded:!1},S=e=>{let{fillMode:t,lineMode:o=ae.lineMode,startAffix:r,endAffix:s,header:u,isExpanded:l=ae.isExpanded,className:d,children:v,value:x,placeholder:E,generating:m,hover:_,focus:A,disabled:w,...M}=e,B=o==="multi"||o==="auto"&&l;return(0,N.jsxs)("div",{...M,className:p(d,"k-input",T,{[`${T}-singleline`]:o==="single",[`${T}-multiline`]:B,[`k-input-${t}`]:t,"k-hover":_,"k-focus":A,"k-disabled":w}),children:[u&&(0,N.jsx)("div",{className:`${T}-header`,children:u}),(0,N.jsxs)("div",{className:`${T}-content`,children:[r&&(0,N.jsx)("div",{className:`${T}-affix`,children:r}),o==="single"?(0,N.jsx)(K,{value:x,placeholder:E,className:`${T}-input`,type:"text","aria-label":"Prompt input"}):(0,N.jsx)(R,{value:x,placeholder:E,className:`${T}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),(0,N.jsxs)("div",{className:`${T}-affix`,children:[s,(0,N.jsx)(c,{size:"small",fillMode:"flat",rounded:"full"}),(0,N.jsx)(V,{icon:m?"stop":"arrow-up",size:"small",rounded:"full",active:m,disabled:!x&&!m,className:p({"k-generating":m}),"aria-label":m?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),v]})};S.states=bt;S.options=ht;S.className=T;S.defaultOptions=ae;S.moduleName=W;S.folderName=ce;S.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};var gt=S;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var ze=Object.create;var U=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var De=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Fe=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},ae=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $e(t))!Ue.call(e,s)&&s!==o&&U(e,s,{get:()=>t[s],enumerable:!(a=He(t,s))||a.enumerable});return e};var Xe=(e,t,o)=>(o=e!=null?ze(De(e)):{},ae(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),Ve=e=>ae(U({},"__esModule",{value:!0}),e);var vt={};Fe(vt,{PromptBoxLineModeAutoExpanded:()=>Nt});module.exports=Ve(vt);var p=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?p(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>p({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),se=(e,t)=>{let{valid:o,invalid:a,hover:s,focus:u,checked:l,active:c,selected:N,disabled:x,indeterminate:E,loading:m,empty:_,readonly:A,highlighted:w,...M}=t;return p({"k-valid":o,"k-invalid":a,"k-hover":s,"k-focus":u,"k-checked":l,"k-active":c,"k-selected":N,"k-disabled":x,"k-indeterminate":E&&!l,"k-loading":m,"k-empty":_,"k-readonly":A,"k-highlighted":w},Object.keys(M).reduce((B,v)=>(v.startsWith("k-")?B[v]=M[v]:B[`k-${v}`]=M[v],B),{}))};function ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var le=require("react/jsx-runtime"),J="k-input-inner",Ge=[],Je={},F={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=F.value,type:o=F.type,placeholder:a=F.placeholder,autocomplete:s=F.autocomplete,disabled:u,readOnly:l,...c}=e;return(0,le.jsx)("input",{...c,type:o,className:p(e.className,J,b(J,e)),placeholder:a,autoComplete:s,defaultValue:t,disabled:u||void 0,readOnly:l||void 0})};K.states=Ge;K.options=Je;K.className=J;var ue=require("react/jsx-runtime"),q="k-input-inner",qe=[],We={},pe={value:"",placeholder:""},R=e=>{let{value:t=pe.value,placeholder:o=pe.placeholder,rows:a,disabled:s,...u}=e;return(0,ue.jsx)("textarea",{...u,className:p(e.className,q,b(q,e)),placeholder:o,rows:a,defaultValue:t,disabled:s||void 0})};R.states=qe;R.options=We;R.className=q;var W="prompt-box",de=W;var z=require("react/jsx-runtime"),Q="k-font-icon",Qe=[],Ye={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Ze={},H=e=>{let{size:t,themeColor:o,icon:a,rotate:s,flip:u,...l}=e;return a?(0,z.jsx)("span",{...l,className:p(e.className,Q,b(Q,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":u==="h"||u==="both","k-flip-v":u==="v"||u==="both"}),"aria-hidden":"true"}):(0,z.jsx)(z.Fragment,{})};H.states=Qe;H.options=Ye;H.className=Q;H.defaultOptions=Ze;var ce=H;var I=require("react/jsx-runtime"),Y="k-svg-icon",je=[],et={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},me={viewBox:"0 0 24 24"},$=e=>{let{size:t,themeColor:o,rotate:a,flip:s,viewBox:u=me.viewBox,icon:l,...c}=e;if(!l)return(0,I.jsx)(I.Fragment,{});if(l==="none")return(0,I.jsx)("span",{...c,className:p(e.className,Y,b("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof l=="object"&&l.name&&l.name;return(0,I.jsx)("span",{...c,className:p(e.className,Y,b("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:(0,I.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:u,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$.states=je;$.options=et;$.className=Y;$.defaultOptions=me;var Z=$;var j=Xe(require("@progress/kendo-svg-icons"));var fe="icon",xe="icons";var ge=require("react");var be=require("react"),he=(0,be.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),X="k-icon",tt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ot=[],nt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ee={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{iconsType:t}=(0,ge.useContext)(he),{size:o,themeColor:a,icon:s,type:u=t||ee.type,rotate:l,flip:c,viewBox:N=ee.viewBox,...x}=e;if(!s)return(0,O.jsx)(O.Fragment,{});if((t||u)==="svg"){if(s==="none")return(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:s,size:o});let m=j[s]?s:tt(`${s}-icon`);return j[m]?(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:j[m],size:o,themeColor:a,rotate:l,flip:c,viewBox:N}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(ce,{...x,className:p(e.className,X),icon:s,size:o,themeColor:a,rotate:l,flip:c})};k.states=ot;k.options=nt;k.defaultOptions=ee;k.className=X;k.moduleName=fe;k.folderName=xe;k.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var te="button",Te=te;var g=require("react/jsx-runtime"),D="k-button",rt=["icon-button"],at=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],st={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},oe={showArrow:!1,arrowIconName:"chevron-down"},i=e=>{let{as:t="button",size:o,rounded:a,fillMode:s,themeColor:u,showArrow:l=oe.showArrow,arrowIconName:c=oe.arrowIconName,variant:N,hover:x,focus:E,active:m,selected:_,disabled:A,togglable:w,ariaDisabled:M,icon:B,text:v,iconClassName:Pe,className:Le,...we}=e,Ke=B!==void 0,Re=e.children!==void 0;return(0,g.jsxs)(t,{className:p(Le,D,ie(D,N),b(D,{size:o,rounded:a,fillMode:s,themeColor:u}),se(D,{hover:x,focus:E,active:m,disabled:A||M,selected:_}),{"k-icon-button":!v&&!Re&&Ke}),...we,"aria-pressed":w?_?"true":"false":void 0,"aria-disabled":M?"true":void 0,disabled:A||void 0,children:[B&&(0,g.jsx)(k,{className:p(Pe,"k-button-icon"),icon:B}),v?(0,g.jsxs)(g.Fragment,{children:[v&&(0,g.jsx)("span",{className:"k-button-text",children:v}),e.children]}):e.children&&(0,g.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,g.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,g.jsx)(k,{icon:c})})]})};i.states=at;i.options=st;i.variants=rt;i.className=D;i.defaultOptions=oe;i.moduleName=te;i.folderName=Te;i.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Ne=require("react/jsx-runtime"),V=e=>(0,Ne.jsx)(i,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ke=require("react/jsx-runtime"),ve=e=>(0,ke.jsx)(i,{icon:"folder",children:"Button",...e});var Be=require("react/jsx-runtime"),ye=e=>(0,Be.jsx)(i,{children:"Button",...e});var G=require("react/jsx-runtime"),it=i.options,lt=i.states,pt={...i.defaultOptions,variant:"text"},ut=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],dt=[],P=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,G.jsx)(V,{...o,icon:"star"});case"icon-and-text":return(0,G.jsx)(ve,{...o,icon:"star",children:"Button"});default:return(0,G.jsx)(ye,{...o,children:"Button"})}};P.options=it;P.states=lt;P.variants=ut;P.defaultOptions=pt;P.modifiers=dt;P.className=i.className;var ne="speech-to-text-button",Oe=ne;var Ee=require("react/jsx-runtime"),Me="k-speech-to-text-button",Se={icon:"microphone-outline"},d=e=>{let{listening:t=!1,icon:o=Se.icon,...a}=e;return(0,Ee.jsx)(i,{...a,icon:t?"stop-sm":o,className:p(e.className,Me,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};d.states=i.states;d.options=i.options;d.className=Me;d.defaultOptions=Se;d.moduleName=ne;d.folderName=Oe;d.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var ct=require("react/jsx-runtime");var mt=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),ft=i.states,Ce={...i.defaultOptions,variant:"normal"},xt={...i.options,fillMode:i.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},bt=[],ht=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],L=e=>{let{variant:t,...o}={...Ce,...e},a={};return t==="listening"&&(a.listening=!0),(0,Ie.jsx)(d,{...o,...a})};L.options=xt;L.states=ft;L.variants=ht;L.defaultOptions=Ce;L.modifiers=bt;L.className=d.className;var T=require("react/jsx-runtime"),y="k-prompt-box",gt=[h.hover,h.focus,h.disabled],Tt={fillMode:[f.undefined,f.solid,f.flat,f.outline]},re={lineMode:"auto",isExpanded:!1},S=e=>{let{fillMode:t,lineMode:o=re.lineMode,startAffix:a,endAffix:s,header:u,isExpanded:l=re.isExpanded,className:c,children:N,value:x,placeholder:E,generating:m,hover:_,focus:A,disabled:w,...M}=e,B=o==="multi"||o==="auto"&&l;return(0,T.jsxs)("div",{...M,className:p(c,"k-input",y,{[`${y}-singleline`]:o==="single",[`${y}-multiline`]:B,[`k-input-${t}`]:t,"k-hover":_,"k-focus":A,"k-disabled":w}),children:[u&&(0,T.jsx)("div",{className:`${y}-header`,children:u}),(0,T.jsxs)("div",{className:`${y}-content`,children:[a&&(0,T.jsx)("div",{className:`${y}-affix`,children:a}),o==="single"?(0,T.jsx)(K,{value:x,placeholder:E,className:`${y}-input`,type:"text","aria-label":"Prompt input"}):(0,T.jsx)(R,{value:x,placeholder:E,className:`${y}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),(0,T.jsxs)("div",{className:`${y}-affix`,children:[s,(0,T.jsx)(d,{size:"small",fillMode:"flat",rounded:"full"}),(0,T.jsx)(V,{icon:m?"stop-sm":"arrow-up-outline",size:"small",rounded:"full",active:m,disabled:!x&&!m,className:p({"k-generating":m}),"aria-label":m?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),N]})};S.states=gt;S.options=Tt;S.className=y;S.defaultOptions=re;S.moduleName=W;S.folderName=de;S.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};var _e=S;var Ae=require("react/jsx-runtime"),Nt=e=>(0,Ae.jsx)(_e,{...e,lineMode:"auto",isExpanded:!0});
|
|
1
|
+
var ze=Object.create;var U=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var De=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Fe=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},ae=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $e(t))!Ue.call(e,s)&&s!==o&&U(e,s,{get:()=>t[s],enumerable:!(a=He(t,s))||a.enumerable});return e};var Xe=(e,t,o)=>(o=e!=null?ze(De(e)):{},ae(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),Ve=e=>ae(U({},"__esModule",{value:!0}),e);var vt={};Fe(vt,{PromptBoxLineModeAutoExpanded:()=>Nt});module.exports=Ve(vt);var p=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?p(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>p({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),se=(e,t)=>{let{valid:o,invalid:a,hover:s,focus:u,checked:l,active:c,selected:N,disabled:x,indeterminate:E,loading:m,empty:_,readonly:A,highlighted:w,...M}=t;return p({"k-valid":o,"k-invalid":a,"k-hover":s,"k-focus":u,"k-checked":l,"k-active":c,"k-selected":N,"k-disabled":x,"k-indeterminate":E&&!l,"k-loading":m,"k-empty":_,"k-readonly":A,"k-highlighted":w},Object.keys(M).reduce((B,v)=>(v.startsWith("k-")?B[v]=M[v]:B[`k-${v}`]=M[v],B),{}))};function ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var le=require("react/jsx-runtime"),J="k-input-inner",Ge=[],Je={},F={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=F.value,type:o=F.type,placeholder:a=F.placeholder,autocomplete:s=F.autocomplete,disabled:u,readOnly:l,...c}=e;return(0,le.jsx)("input",{...c,type:o,className:p(e.className,J,b(J,e)),placeholder:a,autoComplete:s,defaultValue:t,disabled:u||void 0,readOnly:l||void 0})};K.states=Ge;K.options=Je;K.className=J;var ue=require("react/jsx-runtime"),q="k-input-inner",qe=[],We={},pe={value:"",placeholder:""},R=e=>{let{value:t=pe.value,placeholder:o=pe.placeholder,rows:a,disabled:s,...u}=e;return(0,ue.jsx)("textarea",{...u,className:p(e.className,q,b(q,e)),placeholder:o,rows:a,defaultValue:t,disabled:s||void 0})};R.states=qe;R.options=We;R.className=q;var W="prompt-box",de=W;var z=require("react/jsx-runtime"),Q="k-font-icon",Qe=[],Ye={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Ze={},H=e=>{let{size:t,themeColor:o,icon:a,rotate:s,flip:u,...l}=e;return a?(0,z.jsx)("span",{...l,className:p(e.className,Q,b(Q,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":u==="h"||u==="both","k-flip-v":u==="v"||u==="both"}),"aria-hidden":"true"}):(0,z.jsx)(z.Fragment,{})};H.states=Qe;H.options=Ye;H.className=Q;H.defaultOptions=Ze;var ce=H;var I=require("react/jsx-runtime"),Y="k-svg-icon",je=[],et={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},me={viewBox:"0 0 24 24"},$=e=>{let{size:t,themeColor:o,rotate:a,flip:s,viewBox:u=me.viewBox,icon:l,...c}=e;if(!l)return(0,I.jsx)(I.Fragment,{});if(l==="none")return(0,I.jsx)("span",{...c,className:p(e.className,Y,b("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof l=="object"&&l.name&&l.name;return(0,I.jsx)("span",{...c,className:p(e.className,Y,b("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:(0,I.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:u,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$.states=je;$.options=et;$.className=Y;$.defaultOptions=me;var Z=$;var j=Xe(require("@progress/kendo-svg-icons"));var fe="icon",xe="icons";var ge=require("react");var be=require("react"),he=(0,be.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),X="k-icon",tt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ot=[],nt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ee={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{iconsType:t}=(0,ge.useContext)(he),{size:o,themeColor:a,icon:s,type:u=t||ee.type,rotate:l,flip:c,viewBox:N=ee.viewBox,...x}=e;if(!s)return(0,O.jsx)(O.Fragment,{});if((t||u)==="svg"){if(s==="none")return(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:s,size:o});let m=j[s]?s:tt(`${s}-icon`);return j[m]?(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:j[m],size:o,themeColor:a,rotate:l,flip:c,viewBox:N}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(ce,{...x,className:p(e.className,X),icon:s,size:o,themeColor:a,rotate:l,flip:c})};k.states=ot;k.options=nt;k.defaultOptions=ee;k.className=X;k.moduleName=fe;k.folderName=xe;k.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var te="button",Te=te;var g=require("react/jsx-runtime"),D="k-button",rt=["icon-button"],at=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],st={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},oe={showArrow:!1,arrowIconName:"chevron-down"},i=e=>{let{as:t="button",size:o,rounded:a,fillMode:s,themeColor:u,showArrow:l=oe.showArrow,arrowIconName:c=oe.arrowIconName,variant:N,hover:x,focus:E,active:m,selected:_,disabled:A,togglable:w,ariaDisabled:M,icon:B,text:v,iconClassName:Pe,className:Le,...we}=e,Ke=B!==void 0,Re=e.children!==void 0;return(0,g.jsxs)(t,{className:p(Le,D,ie(D,N),b(D,{size:o,rounded:a,fillMode:s,themeColor:u}),se(D,{hover:x,focus:E,active:m,disabled:A||M,selected:_}),{"k-icon-button":!v&&!Re&&Ke}),...we,"aria-pressed":w?_?"true":"false":void 0,"aria-disabled":M?"true":void 0,disabled:A||void 0,children:[B&&(0,g.jsx)(k,{className:p(Pe,"k-button-icon"),icon:B}),v?(0,g.jsxs)(g.Fragment,{children:[v&&(0,g.jsx)("span",{className:"k-button-text",children:v}),e.children]}):e.children&&(0,g.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,g.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,g.jsx)(k,{icon:c})})]})};i.states=at;i.options=st;i.variants=rt;i.className=D;i.defaultOptions=oe;i.moduleName=te;i.folderName=Te;i.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Ne=require("react/jsx-runtime"),V=e=>(0,Ne.jsx)(i,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ke=require("react/jsx-runtime"),ve=e=>(0,ke.jsx)(i,{icon:"folder",children:"Button",...e});var Be=require("react/jsx-runtime"),ye=e=>(0,Be.jsx)(i,{children:"Button",...e});var G=require("react/jsx-runtime"),it=i.options,lt=i.states,pt={...i.defaultOptions,variant:"text"},ut=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],dt=[],P=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,G.jsx)(V,{...o,icon:"star"});case"icon-and-text":return(0,G.jsx)(ve,{...o,icon:"star",children:"Button"});default:return(0,G.jsx)(ye,{...o,children:"Button"})}};P.options=it;P.states=lt;P.variants=ut;P.defaultOptions=pt;P.modifiers=dt;P.className=i.className;var ne="speech-to-text-button",Oe=ne;var Ee=require("react/jsx-runtime"),Me="k-speech-to-text-button",Se={icon:"microphone"},d=e=>{let{listening:t=!1,icon:o=Se.icon,...a}=e;return(0,Ee.jsx)(i,{...a,icon:t?"stop":o,className:p(e.className,Me,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};d.states=i.states;d.options=i.options;d.className=Me;d.defaultOptions=Se;d.moduleName=ne;d.folderName=Oe;d.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var ct=require("react/jsx-runtime");var mt=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),ft=i.states,Ce={...i.defaultOptions,variant:"normal"},xt={...i.options,fillMode:i.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},bt=[],ht=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],L=e=>{let{variant:t,...o}={...Ce,...e},a={};return t==="listening"&&(a.listening=!0),(0,Ie.jsx)(d,{...o,...a})};L.options=xt;L.states=ft;L.variants=ht;L.defaultOptions=Ce;L.modifiers=bt;L.className=d.className;var T=require("react/jsx-runtime"),y="k-prompt-box",gt=[h.hover,h.focus,h.disabled],Tt={fillMode:[f.undefined,f.solid,f.flat,f.outline]},re={lineMode:"auto",isExpanded:!1},S=e=>{let{fillMode:t,lineMode:o=re.lineMode,startAffix:a,endAffix:s,header:u,isExpanded:l=re.isExpanded,className:c,children:N,value:x,placeholder:E,generating:m,hover:_,focus:A,disabled:w,...M}=e,B=o==="multi"||o==="auto"&&l;return(0,T.jsxs)("div",{...M,className:p(c,"k-input",y,{[`${y}-singleline`]:o==="single",[`${y}-multiline`]:B,[`k-input-${t}`]:t,"k-hover":_,"k-focus":A,"k-disabled":w}),children:[u&&(0,T.jsx)("div",{className:`${y}-header`,children:u}),(0,T.jsxs)("div",{className:`${y}-content`,children:[a&&(0,T.jsx)("div",{className:`${y}-affix`,children:a}),o==="single"?(0,T.jsx)(K,{value:x,placeholder:E,className:`${y}-input`,type:"text","aria-label":"Prompt input"}):(0,T.jsx)(R,{value:x,placeholder:E,className:`${y}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),(0,T.jsxs)("div",{className:`${y}-affix`,children:[s,(0,T.jsx)(d,{size:"small",fillMode:"flat",rounded:"full"}),(0,T.jsx)(V,{icon:m?"stop":"arrow-up",size:"small",rounded:"full",active:m,disabled:!x&&!m,className:p({"k-generating":m}),"aria-label":m?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),N]})};S.states=gt;S.options=Tt;S.className=y;S.defaultOptions=re;S.moduleName=W;S.folderName=de;S.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};var _e=S;var Ae=require("react/jsx-runtime"),Nt=e=>(0,Ae.jsx)(_e,{...e,lineMode:"auto",isExpanded:!0});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var ze=Object.create;var U=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var De=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Fe=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},ae=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $e(t))!Ue.call(e,s)&&s!==o&&U(e,s,{get:()=>t[s],enumerable:!(a=He(t,s))||a.enumerable});return e};var Xe=(e,t,o)=>(o=e!=null?ze(De(e)):{},ae(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),Ve=e=>ae(U({},"__esModule",{value:!0}),e);var vt={};Fe(vt,{PromptBoxLineModeAuto:()=>Nt});module.exports=Ve(vt);var p=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?p(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>p({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),se=(e,t)=>{let{valid:o,invalid:a,hover:s,focus:u,checked:l,active:d,selected:N,disabled:x,indeterminate:E,loading:m,empty:_,readonly:A,highlighted:w,...M}=t;return p({"k-valid":o,"k-invalid":a,"k-hover":s,"k-focus":u,"k-checked":l,"k-active":d,"k-selected":N,"k-disabled":x,"k-indeterminate":E&&!l,"k-loading":m,"k-empty":_,"k-readonly":A,"k-highlighted":w},Object.keys(M).reduce((B,v)=>(v.startsWith("k-")?B[v]=M[v]:B[`k-${v}`]=M[v],B),{}))};function ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var le=require("react/jsx-runtime"),J="k-input-inner",Ge=[],Je={},F={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=F.value,type:o=F.type,placeholder:a=F.placeholder,autocomplete:s=F.autocomplete,disabled:u,readOnly:l,...d}=e;return(0,le.jsx)("input",{...d,type:o,className:p(e.className,J,b(J,e)),placeholder:a,autoComplete:s,defaultValue:t,disabled:u||void 0,readOnly:l||void 0})};K.states=Ge;K.options=Je;K.className=J;var ue=require("react/jsx-runtime"),q="k-input-inner",qe=[],We={},pe={value:"",placeholder:""},R=e=>{let{value:t=pe.value,placeholder:o=pe.placeholder,rows:a,disabled:s,...u}=e;return(0,ue.jsx)("textarea",{...u,className:p(e.className,q,b(q,e)),placeholder:o,rows:a,defaultValue:t,disabled:s||void 0})};R.states=qe;R.options=We;R.className=q;var W="prompt-box",ce=W;var z=require("react/jsx-runtime"),Q="k-font-icon",Qe=[],Ye={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Ze={},H=e=>{let{size:t,themeColor:o,icon:a,rotate:s,flip:u,...l}=e;return a?(0,z.jsx)("span",{...l,className:p(e.className,Q,b(Q,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":u==="h"||u==="both","k-flip-v":u==="v"||u==="both"}),"aria-hidden":"true"}):(0,z.jsx)(z.Fragment,{})};H.states=Qe;H.options=Ye;H.className=Q;H.defaultOptions=Ze;var de=H;var I=require("react/jsx-runtime"),Y="k-svg-icon",je=[],et={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},me={viewBox:"0 0 24 24"},$=e=>{let{size:t,themeColor:o,rotate:a,flip:s,viewBox:u=me.viewBox,icon:l,...d}=e;if(!l)return(0,I.jsx)(I.Fragment,{});if(l==="none")return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof l=="object"&&l.name&&l.name;return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:(0,I.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:u,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$.states=je;$.options=et;$.className=Y;$.defaultOptions=me;var Z=$;var j=Xe(require("@progress/kendo-svg-icons"));var fe="icon",xe="icons";var ge=require("react");var be=require("react"),he=(0,be.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),X="k-icon",tt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ot=[],nt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ee={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{iconsType:t}=(0,ge.useContext)(he),{size:o,themeColor:a,icon:s,type:u=t||ee.type,rotate:l,flip:d,viewBox:N=ee.viewBox,...x}=e;if(!s)return(0,O.jsx)(O.Fragment,{});if((t||u)==="svg"){if(s==="none")return(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:s,size:o});let m=j[s]?s:tt(`${s}-icon`);return j[m]?(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:j[m],size:o,themeColor:a,rotate:l,flip:d,viewBox:N}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(de,{...x,className:p(e.className,X),icon:s,size:o,themeColor:a,rotate:l,flip:d})};k.states=ot;k.options=nt;k.defaultOptions=ee;k.className=X;k.moduleName=fe;k.folderName=xe;k.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var te="button",Te=te;var g=require("react/jsx-runtime"),D="k-button",rt=["icon-button"],at=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],st={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},oe={showArrow:!1,arrowIconName:"chevron-down"},i=e=>{let{as:t="button",size:o,rounded:a,fillMode:s,themeColor:u,showArrow:l=oe.showArrow,arrowIconName:d=oe.arrowIconName,variant:N,hover:x,focus:E,active:m,selected:_,disabled:A,togglable:w,ariaDisabled:M,icon:B,text:v,iconClassName:Pe,className:Le,...we}=e,Ke=B!==void 0,Re=e.children!==void 0;return(0,g.jsxs)(t,{className:p(Le,D,ie(D,N),b(D,{size:o,rounded:a,fillMode:s,themeColor:u}),se(D,{hover:x,focus:E,active:m,disabled:A||M,selected:_}),{"k-icon-button":!v&&!Re&&Ke}),...we,"aria-pressed":w?_?"true":"false":void 0,"aria-disabled":M?"true":void 0,disabled:A||void 0,children:[B&&(0,g.jsx)(k,{className:p(Pe,"k-button-icon"),icon:B}),v?(0,g.jsxs)(g.Fragment,{children:[v&&(0,g.jsx)("span",{className:"k-button-text",children:v}),e.children]}):e.children&&(0,g.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,g.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,g.jsx)(k,{icon:d})})]})};i.states=at;i.options=st;i.variants=rt;i.className=D;i.defaultOptions=oe;i.moduleName=te;i.folderName=Te;i.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Ne=require("react/jsx-runtime"),V=e=>(0,Ne.jsx)(i,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ke=require("react/jsx-runtime"),ve=e=>(0,ke.jsx)(i,{icon:"folder",children:"Button",...e});var Be=require("react/jsx-runtime"),ye=e=>(0,Be.jsx)(i,{children:"Button",...e});var G=require("react/jsx-runtime"),it=i.options,lt=i.states,pt={...i.defaultOptions,variant:"text"},ut=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ct=[],P=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,G.jsx)(V,{...o,icon:"star"});case"icon-and-text":return(0,G.jsx)(ve,{...o,icon:"star",children:"Button"});default:return(0,G.jsx)(ye,{...o,children:"Button"})}};P.options=it;P.states=lt;P.variants=ut;P.defaultOptions=pt;P.modifiers=ct;P.className=i.className;var ne="speech-to-text-button",Oe=ne;var Ee=require("react/jsx-runtime"),Me="k-speech-to-text-button",Se={icon:"microphone-outline"},c=e=>{let{listening:t=!1,icon:o=Se.icon,...a}=e;return(0,Ee.jsx)(i,{...a,icon:t?"stop-sm":o,className:p(e.className,Me,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};c.states=i.states;c.options=i.options;c.className=Me;c.defaultOptions=Se;c.moduleName=ne;c.folderName=Oe;c.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var dt=require("react/jsx-runtime");var mt=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),ft=i.states,Ce={...i.defaultOptions,variant:"normal"},xt={...i.options,fillMode:i.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},bt=[],ht=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],L=e=>{let{variant:t,...o}={...Ce,...e},a={};return t==="listening"&&(a.listening=!0),(0,Ie.jsx)(c,{...o,...a})};L.options=xt;L.states=ft;L.variants=ht;L.defaultOptions=Ce;L.modifiers=bt;L.className=c.className;var T=require("react/jsx-runtime"),y="k-prompt-box",gt=[h.hover,h.focus,h.disabled],Tt={fillMode:[f.undefined,f.solid,f.flat,f.outline]},re={lineMode:"auto",isExpanded:!1},S=e=>{let{fillMode:t,lineMode:o=re.lineMode,startAffix:a,endAffix:s,header:u,isExpanded:l=re.isExpanded,className:d,children:N,value:x,placeholder:E,generating:m,hover:_,focus:A,disabled:w,...M}=e,B=o==="multi"||o==="auto"&&l;return(0,T.jsxs)("div",{...M,className:p(d,"k-input",y,{[`${y}-singleline`]:o==="single",[`${y}-multiline`]:B,[`k-input-${t}`]:t,"k-hover":_,"k-focus":A,"k-disabled":w}),children:[u&&(0,T.jsx)("div",{className:`${y}-header`,children:u}),(0,T.jsxs)("div",{className:`${y}-content`,children:[a&&(0,T.jsx)("div",{className:`${y}-affix`,children:a}),o==="single"?(0,T.jsx)(K,{value:x,placeholder:E,className:`${y}-input`,type:"text","aria-label":"Prompt input"}):(0,T.jsx)(R,{value:x,placeholder:E,className:`${y}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),(0,T.jsxs)("div",{className:`${y}-affix`,children:[s,(0,T.jsx)(c,{size:"small",fillMode:"flat",rounded:"full"}),(0,T.jsx)(V,{icon:m?"stop-sm":"arrow-up-outline",size:"small",rounded:"full",active:m,disabled:!x&&!m,className:p({"k-generating":m}),"aria-label":m?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),N]})};S.states=gt;S.options=Tt;S.className=y;S.defaultOptions=re;S.moduleName=W;S.folderName=ce;S.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};var _e=S;var Ae=require("react/jsx-runtime"),Nt=e=>(0,Ae.jsx)(_e,{...e,lineMode:"auto"});
|
|
1
|
+
var ze=Object.create;var U=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var De=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Fe=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},ae=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $e(t))!Ue.call(e,s)&&s!==o&&U(e,s,{get:()=>t[s],enumerable:!(a=He(t,s))||a.enumerable});return e};var Xe=(e,t,o)=>(o=e!=null?ze(De(e)):{},ae(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),Ve=e=>ae(U({},"__esModule",{value:!0}),e);var vt={};Fe(vt,{PromptBoxLineModeAuto:()=>Nt});module.exports=Ve(vt);var p=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?p(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>p({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),se=(e,t)=>{let{valid:o,invalid:a,hover:s,focus:u,checked:l,active:d,selected:N,disabled:x,indeterminate:E,loading:m,empty:_,readonly:A,highlighted:w,...M}=t;return p({"k-valid":o,"k-invalid":a,"k-hover":s,"k-focus":u,"k-checked":l,"k-active":d,"k-selected":N,"k-disabled":x,"k-indeterminate":E&&!l,"k-loading":m,"k-empty":_,"k-readonly":A,"k-highlighted":w},Object.keys(M).reduce((B,v)=>(v.startsWith("k-")?B[v]=M[v]:B[`k-${v}`]=M[v],B),{}))};function ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var le=require("react/jsx-runtime"),J="k-input-inner",Ge=[],Je={},F={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=F.value,type:o=F.type,placeholder:a=F.placeholder,autocomplete:s=F.autocomplete,disabled:u,readOnly:l,...d}=e;return(0,le.jsx)("input",{...d,type:o,className:p(e.className,J,b(J,e)),placeholder:a,autoComplete:s,defaultValue:t,disabled:u||void 0,readOnly:l||void 0})};K.states=Ge;K.options=Je;K.className=J;var ue=require("react/jsx-runtime"),q="k-input-inner",qe=[],We={},pe={value:"",placeholder:""},R=e=>{let{value:t=pe.value,placeholder:o=pe.placeholder,rows:a,disabled:s,...u}=e;return(0,ue.jsx)("textarea",{...u,className:p(e.className,q,b(q,e)),placeholder:o,rows:a,defaultValue:t,disabled:s||void 0})};R.states=qe;R.options=We;R.className=q;var W="prompt-box",ce=W;var z=require("react/jsx-runtime"),Q="k-font-icon",Qe=[],Ye={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Ze={},H=e=>{let{size:t,themeColor:o,icon:a,rotate:s,flip:u,...l}=e;return a?(0,z.jsx)("span",{...l,className:p(e.className,Q,b(Q,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":u==="h"||u==="both","k-flip-v":u==="v"||u==="both"}),"aria-hidden":"true"}):(0,z.jsx)(z.Fragment,{})};H.states=Qe;H.options=Ye;H.className=Q;H.defaultOptions=Ze;var de=H;var I=require("react/jsx-runtime"),Y="k-svg-icon",je=[],et={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},me={viewBox:"0 0 24 24"},$=e=>{let{size:t,themeColor:o,rotate:a,flip:s,viewBox:u=me.viewBox,icon:l,...d}=e;if(!l)return(0,I.jsx)(I.Fragment,{});if(l==="none")return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof l=="object"&&l.name&&l.name;return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:(0,I.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:u,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$.states=je;$.options=et;$.className=Y;$.defaultOptions=me;var Z=$;var j=Xe(require("@progress/kendo-svg-icons"));var fe="icon",xe="icons";var ge=require("react");var be=require("react"),he=(0,be.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),X="k-icon",tt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ot=[],nt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ee={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{iconsType:t}=(0,ge.useContext)(he),{size:o,themeColor:a,icon:s,type:u=t||ee.type,rotate:l,flip:d,viewBox:N=ee.viewBox,...x}=e;if(!s)return(0,O.jsx)(O.Fragment,{});if((t||u)==="svg"){if(s==="none")return(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:s,size:o});let m=j[s]?s:tt(`${s}-icon`);return j[m]?(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:j[m],size:o,themeColor:a,rotate:l,flip:d,viewBox:N}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(de,{...x,className:p(e.className,X),icon:s,size:o,themeColor:a,rotate:l,flip:d})};k.states=ot;k.options=nt;k.defaultOptions=ee;k.className=X;k.moduleName=fe;k.folderName=xe;k.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var te="button",Te=te;var g=require("react/jsx-runtime"),D="k-button",rt=["icon-button"],at=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],st={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},oe={showArrow:!1,arrowIconName:"chevron-down"},i=e=>{let{as:t="button",size:o,rounded:a,fillMode:s,themeColor:u,showArrow:l=oe.showArrow,arrowIconName:d=oe.arrowIconName,variant:N,hover:x,focus:E,active:m,selected:_,disabled:A,togglable:w,ariaDisabled:M,icon:B,text:v,iconClassName:Pe,className:Le,...we}=e,Ke=B!==void 0,Re=e.children!==void 0;return(0,g.jsxs)(t,{className:p(Le,D,ie(D,N),b(D,{size:o,rounded:a,fillMode:s,themeColor:u}),se(D,{hover:x,focus:E,active:m,disabled:A||M,selected:_}),{"k-icon-button":!v&&!Re&&Ke}),...we,"aria-pressed":w?_?"true":"false":void 0,"aria-disabled":M?"true":void 0,disabled:A||void 0,children:[B&&(0,g.jsx)(k,{className:p(Pe,"k-button-icon"),icon:B}),v?(0,g.jsxs)(g.Fragment,{children:[v&&(0,g.jsx)("span",{className:"k-button-text",children:v}),e.children]}):e.children&&(0,g.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,g.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,g.jsx)(k,{icon:d})})]})};i.states=at;i.options=st;i.variants=rt;i.className=D;i.defaultOptions=oe;i.moduleName=te;i.folderName=Te;i.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Ne=require("react/jsx-runtime"),V=e=>(0,Ne.jsx)(i,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ke=require("react/jsx-runtime"),ve=e=>(0,ke.jsx)(i,{icon:"folder",children:"Button",...e});var Be=require("react/jsx-runtime"),ye=e=>(0,Be.jsx)(i,{children:"Button",...e});var G=require("react/jsx-runtime"),it=i.options,lt=i.states,pt={...i.defaultOptions,variant:"text"},ut=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ct=[],P=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,G.jsx)(V,{...o,icon:"star"});case"icon-and-text":return(0,G.jsx)(ve,{...o,icon:"star",children:"Button"});default:return(0,G.jsx)(ye,{...o,children:"Button"})}};P.options=it;P.states=lt;P.variants=ut;P.defaultOptions=pt;P.modifiers=ct;P.className=i.className;var ne="speech-to-text-button",Oe=ne;var Ee=require("react/jsx-runtime"),Me="k-speech-to-text-button",Se={icon:"microphone"},c=e=>{let{listening:t=!1,icon:o=Se.icon,...a}=e;return(0,Ee.jsx)(i,{...a,icon:t?"stop":o,className:p(e.className,Me,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};c.states=i.states;c.options=i.options;c.className=Me;c.defaultOptions=Se;c.moduleName=ne;c.folderName=Oe;c.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var dt=require("react/jsx-runtime");var mt=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),ft=i.states,Ce={...i.defaultOptions,variant:"normal"},xt={...i.options,fillMode:i.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},bt=[],ht=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],L=e=>{let{variant:t,...o}={...Ce,...e},a={};return t==="listening"&&(a.listening=!0),(0,Ie.jsx)(c,{...o,...a})};L.options=xt;L.states=ft;L.variants=ht;L.defaultOptions=Ce;L.modifiers=bt;L.className=c.className;var T=require("react/jsx-runtime"),y="k-prompt-box",gt=[h.hover,h.focus,h.disabled],Tt={fillMode:[f.undefined,f.solid,f.flat,f.outline]},re={lineMode:"auto",isExpanded:!1},S=e=>{let{fillMode:t,lineMode:o=re.lineMode,startAffix:a,endAffix:s,header:u,isExpanded:l=re.isExpanded,className:d,children:N,value:x,placeholder:E,generating:m,hover:_,focus:A,disabled:w,...M}=e,B=o==="multi"||o==="auto"&&l;return(0,T.jsxs)("div",{...M,className:p(d,"k-input",y,{[`${y}-singleline`]:o==="single",[`${y}-multiline`]:B,[`k-input-${t}`]:t,"k-hover":_,"k-focus":A,"k-disabled":w}),children:[u&&(0,T.jsx)("div",{className:`${y}-header`,children:u}),(0,T.jsxs)("div",{className:`${y}-content`,children:[a&&(0,T.jsx)("div",{className:`${y}-affix`,children:a}),o==="single"?(0,T.jsx)(K,{value:x,placeholder:E,className:`${y}-input`,type:"text","aria-label":"Prompt input"}):(0,T.jsx)(R,{value:x,placeholder:E,className:`${y}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),(0,T.jsxs)("div",{className:`${y}-affix`,children:[s,(0,T.jsx)(c,{size:"small",fillMode:"flat",rounded:"full"}),(0,T.jsx)(V,{icon:m?"stop":"arrow-up",size:"small",rounded:"full",active:m,disabled:!x&&!m,className:p({"k-generating":m}),"aria-label":m?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),N]})};S.states=gt;S.options=Tt;S.className=y;S.defaultOptions=re;S.moduleName=W;S.folderName=ce;S.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};var _e=S;var Ae=require("react/jsx-runtime"),Nt=e=>(0,Ae.jsx)(_e,{...e,lineMode:"auto"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var ze=Object.create;var U=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var De=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Fe=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},ae=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $e(t))!Ue.call(e,s)&&s!==o&&U(e,s,{get:()=>t[s],enumerable:!(a=He(t,s))||a.enumerable});return e};var Xe=(e,t,o)=>(o=e!=null?ze(De(e)):{},ae(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),Ve=e=>ae(U({},"__esModule",{value:!0}),e);var vt={};Fe(vt,{PromptBoxLineModeMulti:()=>Nt});module.exports=Ve(vt);var p=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?p(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>p({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),se=(e,t)=>{let{valid:o,invalid:a,hover:s,focus:u,checked:l,active:d,selected:N,disabled:x,indeterminate:E,loading:m,empty:_,readonly:A,highlighted:w,...M}=t;return p({"k-valid":o,"k-invalid":a,"k-hover":s,"k-focus":u,"k-checked":l,"k-active":d,"k-selected":N,"k-disabled":x,"k-indeterminate":E&&!l,"k-loading":m,"k-empty":_,"k-readonly":A,"k-highlighted":w},Object.keys(M).reduce((B,v)=>(v.startsWith("k-")?B[v]=M[v]:B[`k-${v}`]=M[v],B),{}))};function ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var le=require("react/jsx-runtime"),J="k-input-inner",Ge=[],Je={},F={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=F.value,type:o=F.type,placeholder:a=F.placeholder,autocomplete:s=F.autocomplete,disabled:u,readOnly:l,...d}=e;return(0,le.jsx)("input",{...d,type:o,className:p(e.className,J,b(J,e)),placeholder:a,autoComplete:s,defaultValue:t,disabled:u||void 0,readOnly:l||void 0})};K.states=Ge;K.options=Je;K.className=J;var ue=require("react/jsx-runtime"),q="k-input-inner",qe=[],We={},pe={value:"",placeholder:""},R=e=>{let{value:t=pe.value,placeholder:o=pe.placeholder,rows:a,disabled:s,...u}=e;return(0,ue.jsx)("textarea",{...u,className:p(e.className,q,b(q,e)),placeholder:o,rows:a,defaultValue:t,disabled:s||void 0})};R.states=qe;R.options=We;R.className=q;var W="prompt-box",ce=W;var z=require("react/jsx-runtime"),Q="k-font-icon",Qe=[],Ye={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Ze={},H=e=>{let{size:t,themeColor:o,icon:a,rotate:s,flip:u,...l}=e;return a?(0,z.jsx)("span",{...l,className:p(e.className,Q,b(Q,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":u==="h"||u==="both","k-flip-v":u==="v"||u==="both"}),"aria-hidden":"true"}):(0,z.jsx)(z.Fragment,{})};H.states=Qe;H.options=Ye;H.className=Q;H.defaultOptions=Ze;var de=H;var I=require("react/jsx-runtime"),Y="k-svg-icon",je=[],et={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},me={viewBox:"0 0 24 24"},$=e=>{let{size:t,themeColor:o,rotate:a,flip:s,viewBox:u=me.viewBox,icon:l,...d}=e;if(!l)return(0,I.jsx)(I.Fragment,{});if(l==="none")return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof l=="object"&&l.name&&l.name;return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:(0,I.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:u,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$.states=je;$.options=et;$.className=Y;$.defaultOptions=me;var Z=$;var j=Xe(require("@progress/kendo-svg-icons"));var fe="icon",xe="icons";var ge=require("react");var be=require("react"),he=(0,be.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),X="k-icon",tt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ot=[],nt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ee={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{iconsType:t}=(0,ge.useContext)(he),{size:o,themeColor:a,icon:s,type:u=t||ee.type,rotate:l,flip:d,viewBox:N=ee.viewBox,...x}=e;if(!s)return(0,O.jsx)(O.Fragment,{});if((t||u)==="svg"){if(s==="none")return(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:s,size:o});let m=j[s]?s:tt(`${s}-icon`);return j[m]?(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:j[m],size:o,themeColor:a,rotate:l,flip:d,viewBox:N}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(de,{...x,className:p(e.className,X),icon:s,size:o,themeColor:a,rotate:l,flip:d})};k.states=ot;k.options=nt;k.defaultOptions=ee;k.className=X;k.moduleName=fe;k.folderName=xe;k.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var te="button",Te=te;var g=require("react/jsx-runtime"),D="k-button",rt=["icon-button"],at=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],st={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},oe={showArrow:!1,arrowIconName:"chevron-down"},i=e=>{let{as:t="button",size:o,rounded:a,fillMode:s,themeColor:u,showArrow:l=oe.showArrow,arrowIconName:d=oe.arrowIconName,variant:N,hover:x,focus:E,active:m,selected:_,disabled:A,togglable:w,ariaDisabled:M,icon:B,text:v,iconClassName:Pe,className:Le,...we}=e,Ke=B!==void 0,Re=e.children!==void 0;return(0,g.jsxs)(t,{className:p(Le,D,ie(D,N),b(D,{size:o,rounded:a,fillMode:s,themeColor:u}),se(D,{hover:x,focus:E,active:m,disabled:A||M,selected:_}),{"k-icon-button":!v&&!Re&&Ke}),...we,"aria-pressed":w?_?"true":"false":void 0,"aria-disabled":M?"true":void 0,disabled:A||void 0,children:[B&&(0,g.jsx)(k,{className:p(Pe,"k-button-icon"),icon:B}),v?(0,g.jsxs)(g.Fragment,{children:[v&&(0,g.jsx)("span",{className:"k-button-text",children:v}),e.children]}):e.children&&(0,g.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,g.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,g.jsx)(k,{icon:d})})]})};i.states=at;i.options=st;i.variants=rt;i.className=D;i.defaultOptions=oe;i.moduleName=te;i.folderName=Te;i.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Ne=require("react/jsx-runtime"),V=e=>(0,Ne.jsx)(i,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ke=require("react/jsx-runtime"),ve=e=>(0,ke.jsx)(i,{icon:"folder",children:"Button",...e});var Be=require("react/jsx-runtime"),ye=e=>(0,Be.jsx)(i,{children:"Button",...e});var G=require("react/jsx-runtime"),it=i.options,lt=i.states,pt={...i.defaultOptions,variant:"text"},ut=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ct=[],P=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,G.jsx)(V,{...o,icon:"star"});case"icon-and-text":return(0,G.jsx)(ve,{...o,icon:"star",children:"Button"});default:return(0,G.jsx)(ye,{...o,children:"Button"})}};P.options=it;P.states=lt;P.variants=ut;P.defaultOptions=pt;P.modifiers=ct;P.className=i.className;var ne="speech-to-text-button",Oe=ne;var Ee=require("react/jsx-runtime"),Me="k-speech-to-text-button",Se={icon:"microphone-outline"},c=e=>{let{listening:t=!1,icon:o=Se.icon,...a}=e;return(0,Ee.jsx)(i,{...a,icon:t?"stop-sm":o,className:p(e.className,Me,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};c.states=i.states;c.options=i.options;c.className=Me;c.defaultOptions=Se;c.moduleName=ne;c.folderName=Oe;c.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var dt=require("react/jsx-runtime");var mt=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),ft=i.states,Ce={...i.defaultOptions,variant:"normal"},xt={...i.options,fillMode:i.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},bt=[],ht=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],L=e=>{let{variant:t,...o}={...Ce,...e},a={};return t==="listening"&&(a.listening=!0),(0,Ie.jsx)(c,{...o,...a})};L.options=xt;L.states=ft;L.variants=ht;L.defaultOptions=Ce;L.modifiers=bt;L.className=c.className;var T=require("react/jsx-runtime"),y="k-prompt-box",gt=[h.hover,h.focus,h.disabled],Tt={fillMode:[f.undefined,f.solid,f.flat,f.outline]},re={lineMode:"auto",isExpanded:!1},S=e=>{let{fillMode:t,lineMode:o=re.lineMode,startAffix:a,endAffix:s,header:u,isExpanded:l=re.isExpanded,className:d,children:N,value:x,placeholder:E,generating:m,hover:_,focus:A,disabled:w,...M}=e,B=o==="multi"||o==="auto"&&l;return(0,T.jsxs)("div",{...M,className:p(d,"k-input",y,{[`${y}-singleline`]:o==="single",[`${y}-multiline`]:B,[`k-input-${t}`]:t,"k-hover":_,"k-focus":A,"k-disabled":w}),children:[u&&(0,T.jsx)("div",{className:`${y}-header`,children:u}),(0,T.jsxs)("div",{className:`${y}-content`,children:[a&&(0,T.jsx)("div",{className:`${y}-affix`,children:a}),o==="single"?(0,T.jsx)(K,{value:x,placeholder:E,className:`${y}-input`,type:"text","aria-label":"Prompt input"}):(0,T.jsx)(R,{value:x,placeholder:E,className:`${y}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),(0,T.jsxs)("div",{className:`${y}-affix`,children:[s,(0,T.jsx)(c,{size:"small",fillMode:"flat",rounded:"full"}),(0,T.jsx)(V,{icon:m?"stop-sm":"arrow-up-outline",size:"small",rounded:"full",active:m,disabled:!x&&!m,className:p({"k-generating":m}),"aria-label":m?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),N]})};S.states=gt;S.options=Tt;S.className=y;S.defaultOptions=re;S.moduleName=W;S.folderName=ce;S.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};var _e=S;var Ae=require("react/jsx-runtime"),Nt=e=>(0,Ae.jsx)(_e,{...e,lineMode:"multi"});
|
|
1
|
+
var ze=Object.create;var U=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var De=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Fe=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},ae=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $e(t))!Ue.call(e,s)&&s!==o&&U(e,s,{get:()=>t[s],enumerable:!(a=He(t,s))||a.enumerable});return e};var Xe=(e,t,o)=>(o=e!=null?ze(De(e)):{},ae(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),Ve=e=>ae(U({},"__esModule",{value:!0}),e);var vt={};Fe(vt,{PromptBoxLineModeMulti:()=>Nt});module.exports=Ve(vt);var p=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?p(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>p({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),se=(e,t)=>{let{valid:o,invalid:a,hover:s,focus:u,checked:l,active:d,selected:N,disabled:x,indeterminate:E,loading:m,empty:_,readonly:A,highlighted:w,...M}=t;return p({"k-valid":o,"k-invalid":a,"k-hover":s,"k-focus":u,"k-checked":l,"k-active":d,"k-selected":N,"k-disabled":x,"k-indeterminate":E&&!l,"k-loading":m,"k-empty":_,"k-readonly":A,"k-highlighted":w},Object.keys(M).reduce((B,v)=>(v.startsWith("k-")?B[v]=M[v]:B[`k-${v}`]=M[v],B),{}))};function ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var le=require("react/jsx-runtime"),J="k-input-inner",Ge=[],Je={},F={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=F.value,type:o=F.type,placeholder:a=F.placeholder,autocomplete:s=F.autocomplete,disabled:u,readOnly:l,...d}=e;return(0,le.jsx)("input",{...d,type:o,className:p(e.className,J,b(J,e)),placeholder:a,autoComplete:s,defaultValue:t,disabled:u||void 0,readOnly:l||void 0})};K.states=Ge;K.options=Je;K.className=J;var ue=require("react/jsx-runtime"),q="k-input-inner",qe=[],We={},pe={value:"",placeholder:""},R=e=>{let{value:t=pe.value,placeholder:o=pe.placeholder,rows:a,disabled:s,...u}=e;return(0,ue.jsx)("textarea",{...u,className:p(e.className,q,b(q,e)),placeholder:o,rows:a,defaultValue:t,disabled:s||void 0})};R.states=qe;R.options=We;R.className=q;var W="prompt-box",ce=W;var z=require("react/jsx-runtime"),Q="k-font-icon",Qe=[],Ye={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Ze={},H=e=>{let{size:t,themeColor:o,icon:a,rotate:s,flip:u,...l}=e;return a?(0,z.jsx)("span",{...l,className:p(e.className,Q,b(Q,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":u==="h"||u==="both","k-flip-v":u==="v"||u==="both"}),"aria-hidden":"true"}):(0,z.jsx)(z.Fragment,{})};H.states=Qe;H.options=Ye;H.className=Q;H.defaultOptions=Ze;var de=H;var I=require("react/jsx-runtime"),Y="k-svg-icon",je=[],et={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},me={viewBox:"0 0 24 24"},$=e=>{let{size:t,themeColor:o,rotate:a,flip:s,viewBox:u=me.viewBox,icon:l,...d}=e;if(!l)return(0,I.jsx)(I.Fragment,{});if(l==="none")return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof l=="object"&&l.name&&l.name;return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:(0,I.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:u,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$.states=je;$.options=et;$.className=Y;$.defaultOptions=me;var Z=$;var j=Xe(require("@progress/kendo-svg-icons"));var fe="icon",xe="icons";var ge=require("react");var be=require("react"),he=(0,be.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),X="k-icon",tt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ot=[],nt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ee={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{iconsType:t}=(0,ge.useContext)(he),{size:o,themeColor:a,icon:s,type:u=t||ee.type,rotate:l,flip:d,viewBox:N=ee.viewBox,...x}=e;if(!s)return(0,O.jsx)(O.Fragment,{});if((t||u)==="svg"){if(s==="none")return(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:s,size:o});let m=j[s]?s:tt(`${s}-icon`);return j[m]?(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:j[m],size:o,themeColor:a,rotate:l,flip:d,viewBox:N}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(de,{...x,className:p(e.className,X),icon:s,size:o,themeColor:a,rotate:l,flip:d})};k.states=ot;k.options=nt;k.defaultOptions=ee;k.className=X;k.moduleName=fe;k.folderName=xe;k.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var te="button",Te=te;var g=require("react/jsx-runtime"),D="k-button",rt=["icon-button"],at=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],st={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},oe={showArrow:!1,arrowIconName:"chevron-down"},i=e=>{let{as:t="button",size:o,rounded:a,fillMode:s,themeColor:u,showArrow:l=oe.showArrow,arrowIconName:d=oe.arrowIconName,variant:N,hover:x,focus:E,active:m,selected:_,disabled:A,togglable:w,ariaDisabled:M,icon:B,text:v,iconClassName:Pe,className:Le,...we}=e,Ke=B!==void 0,Re=e.children!==void 0;return(0,g.jsxs)(t,{className:p(Le,D,ie(D,N),b(D,{size:o,rounded:a,fillMode:s,themeColor:u}),se(D,{hover:x,focus:E,active:m,disabled:A||M,selected:_}),{"k-icon-button":!v&&!Re&&Ke}),...we,"aria-pressed":w?_?"true":"false":void 0,"aria-disabled":M?"true":void 0,disabled:A||void 0,children:[B&&(0,g.jsx)(k,{className:p(Pe,"k-button-icon"),icon:B}),v?(0,g.jsxs)(g.Fragment,{children:[v&&(0,g.jsx)("span",{className:"k-button-text",children:v}),e.children]}):e.children&&(0,g.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,g.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,g.jsx)(k,{icon:d})})]})};i.states=at;i.options=st;i.variants=rt;i.className=D;i.defaultOptions=oe;i.moduleName=te;i.folderName=Te;i.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Ne=require("react/jsx-runtime"),V=e=>(0,Ne.jsx)(i,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ke=require("react/jsx-runtime"),ve=e=>(0,ke.jsx)(i,{icon:"folder",children:"Button",...e});var Be=require("react/jsx-runtime"),ye=e=>(0,Be.jsx)(i,{children:"Button",...e});var G=require("react/jsx-runtime"),it=i.options,lt=i.states,pt={...i.defaultOptions,variant:"text"},ut=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ct=[],P=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,G.jsx)(V,{...o,icon:"star"});case"icon-and-text":return(0,G.jsx)(ve,{...o,icon:"star",children:"Button"});default:return(0,G.jsx)(ye,{...o,children:"Button"})}};P.options=it;P.states=lt;P.variants=ut;P.defaultOptions=pt;P.modifiers=ct;P.className=i.className;var ne="speech-to-text-button",Oe=ne;var Ee=require("react/jsx-runtime"),Me="k-speech-to-text-button",Se={icon:"microphone"},c=e=>{let{listening:t=!1,icon:o=Se.icon,...a}=e;return(0,Ee.jsx)(i,{...a,icon:t?"stop":o,className:p(e.className,Me,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};c.states=i.states;c.options=i.options;c.className=Me;c.defaultOptions=Se;c.moduleName=ne;c.folderName=Oe;c.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var dt=require("react/jsx-runtime");var mt=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),ft=i.states,Ce={...i.defaultOptions,variant:"normal"},xt={...i.options,fillMode:i.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},bt=[],ht=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],L=e=>{let{variant:t,...o}={...Ce,...e},a={};return t==="listening"&&(a.listening=!0),(0,Ie.jsx)(c,{...o,...a})};L.options=xt;L.states=ft;L.variants=ht;L.defaultOptions=Ce;L.modifiers=bt;L.className=c.className;var T=require("react/jsx-runtime"),y="k-prompt-box",gt=[h.hover,h.focus,h.disabled],Tt={fillMode:[f.undefined,f.solid,f.flat,f.outline]},re={lineMode:"auto",isExpanded:!1},S=e=>{let{fillMode:t,lineMode:o=re.lineMode,startAffix:a,endAffix:s,header:u,isExpanded:l=re.isExpanded,className:d,children:N,value:x,placeholder:E,generating:m,hover:_,focus:A,disabled:w,...M}=e,B=o==="multi"||o==="auto"&&l;return(0,T.jsxs)("div",{...M,className:p(d,"k-input",y,{[`${y}-singleline`]:o==="single",[`${y}-multiline`]:B,[`k-input-${t}`]:t,"k-hover":_,"k-focus":A,"k-disabled":w}),children:[u&&(0,T.jsx)("div",{className:`${y}-header`,children:u}),(0,T.jsxs)("div",{className:`${y}-content`,children:[a&&(0,T.jsx)("div",{className:`${y}-affix`,children:a}),o==="single"?(0,T.jsx)(K,{value:x,placeholder:E,className:`${y}-input`,type:"text","aria-label":"Prompt input"}):(0,T.jsx)(R,{value:x,placeholder:E,className:`${y}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),(0,T.jsxs)("div",{className:`${y}-affix`,children:[s,(0,T.jsx)(c,{size:"small",fillMode:"flat",rounded:"full"}),(0,T.jsx)(V,{icon:m?"stop":"arrow-up",size:"small",rounded:"full",active:m,disabled:!x&&!m,className:p({"k-generating":m}),"aria-label":m?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),N]})};S.states=gt;S.options=Tt;S.className=y;S.defaultOptions=re;S.moduleName=W;S.folderName=ce;S.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};var _e=S;var Ae=require("react/jsx-runtime"),Nt=e=>(0,Ae.jsx)(_e,{...e,lineMode:"multi"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var ze=Object.create;var U=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var De=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Fe=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},ae=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $e(t))!Ue.call(e,s)&&s!==o&&U(e,s,{get:()=>t[s],enumerable:!(a=He(t,s))||a.enumerable});return e};var Xe=(e,t,o)=>(o=e!=null?ze(De(e)):{},ae(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),Ve=e=>ae(U({},"__esModule",{value:!0}),e);var vt={};Fe(vt,{PromptBoxLineModeSingle:()=>Nt});module.exports=Ve(vt);var p=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?p(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>p({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),se=(e,t)=>{let{valid:o,invalid:a,hover:s,focus:u,checked:l,active:d,selected:N,disabled:x,indeterminate:E,loading:m,empty:_,readonly:A,highlighted:w,...M}=t;return p({"k-valid":o,"k-invalid":a,"k-hover":s,"k-focus":u,"k-checked":l,"k-active":d,"k-selected":N,"k-disabled":x,"k-indeterminate":E&&!l,"k-loading":m,"k-empty":_,"k-readonly":A,"k-highlighted":w},Object.keys(M).reduce((B,v)=>(v.startsWith("k-")?B[v]=M[v]:B[`k-${v}`]=M[v],B),{}))};function ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var le=require("react/jsx-runtime"),J="k-input-inner",Ge=[],Je={},F={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=F.value,type:o=F.type,placeholder:a=F.placeholder,autocomplete:s=F.autocomplete,disabled:u,readOnly:l,...d}=e;return(0,le.jsx)("input",{...d,type:o,className:p(e.className,J,b(J,e)),placeholder:a,autoComplete:s,defaultValue:t,disabled:u||void 0,readOnly:l||void 0})};K.states=Ge;K.options=Je;K.className=J;var ue=require("react/jsx-runtime"),q="k-input-inner",qe=[],We={},pe={value:"",placeholder:""},R=e=>{let{value:t=pe.value,placeholder:o=pe.placeholder,rows:a,disabled:s,...u}=e;return(0,ue.jsx)("textarea",{...u,className:p(e.className,q,b(q,e)),placeholder:o,rows:a,defaultValue:t,disabled:s||void 0})};R.states=qe;R.options=We;R.className=q;var W="prompt-box",ce=W;var z=require("react/jsx-runtime"),Q="k-font-icon",Qe=[],Ye={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Ze={},H=e=>{let{size:t,themeColor:o,icon:a,rotate:s,flip:u,...l}=e;return a?(0,z.jsx)("span",{...l,className:p(e.className,Q,b(Q,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":u==="h"||u==="both","k-flip-v":u==="v"||u==="both"}),"aria-hidden":"true"}):(0,z.jsx)(z.Fragment,{})};H.states=Qe;H.options=Ye;H.className=Q;H.defaultOptions=Ze;var de=H;var I=require("react/jsx-runtime"),Y="k-svg-icon",je=[],et={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},me={viewBox:"0 0 24 24"},$=e=>{let{size:t,themeColor:o,rotate:a,flip:s,viewBox:u=me.viewBox,icon:l,...d}=e;if(!l)return(0,I.jsx)(I.Fragment,{});if(l==="none")return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof l=="object"&&l.name&&l.name;return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:(0,I.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:u,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$.states=je;$.options=et;$.className=Y;$.defaultOptions=me;var Z=$;var j=Xe(require("@progress/kendo-svg-icons"));var fe="icon",xe="icons";var ge=require("react");var be=require("react"),he=(0,be.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),X="k-icon",tt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ot=[],nt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ee={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{iconsType:t}=(0,ge.useContext)(he),{size:o,themeColor:a,icon:s,type:u=t||ee.type,rotate:l,flip:d,viewBox:N=ee.viewBox,...x}=e;if(!s)return(0,O.jsx)(O.Fragment,{});if((t||u)==="svg"){if(s==="none")return(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:s,size:o});let m=j[s]?s:tt(`${s}-icon`);return j[m]?(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:j[m],size:o,themeColor:a,rotate:l,flip:d,viewBox:N}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(de,{...x,className:p(e.className,X),icon:s,size:o,themeColor:a,rotate:l,flip:d})};k.states=ot;k.options=nt;k.defaultOptions=ee;k.className=X;k.moduleName=fe;k.folderName=xe;k.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var te="button",Te=te;var g=require("react/jsx-runtime"),D="k-button",rt=["icon-button"],at=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],st={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},oe={showArrow:!1,arrowIconName:"chevron-down"},i=e=>{let{as:t="button",size:o,rounded:a,fillMode:s,themeColor:u,showArrow:l=oe.showArrow,arrowIconName:d=oe.arrowIconName,variant:N,hover:x,focus:E,active:m,selected:_,disabled:A,togglable:w,ariaDisabled:M,icon:B,text:v,iconClassName:Pe,className:Le,...we}=e,Ke=B!==void 0,Re=e.children!==void 0;return(0,g.jsxs)(t,{className:p(Le,D,ie(D,N),b(D,{size:o,rounded:a,fillMode:s,themeColor:u}),se(D,{hover:x,focus:E,active:m,disabled:A||M,selected:_}),{"k-icon-button":!v&&!Re&&Ke}),...we,"aria-pressed":w?_?"true":"false":void 0,"aria-disabled":M?"true":void 0,disabled:A||void 0,children:[B&&(0,g.jsx)(k,{className:p(Pe,"k-button-icon"),icon:B}),v?(0,g.jsxs)(g.Fragment,{children:[v&&(0,g.jsx)("span",{className:"k-button-text",children:v}),e.children]}):e.children&&(0,g.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,g.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,g.jsx)(k,{icon:d})})]})};i.states=at;i.options=st;i.variants=rt;i.className=D;i.defaultOptions=oe;i.moduleName=te;i.folderName=Te;i.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Ne=require("react/jsx-runtime"),V=e=>(0,Ne.jsx)(i,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ke=require("react/jsx-runtime"),ve=e=>(0,ke.jsx)(i,{icon:"folder",children:"Button",...e});var Be=require("react/jsx-runtime"),ye=e=>(0,Be.jsx)(i,{children:"Button",...e});var G=require("react/jsx-runtime"),it=i.options,lt=i.states,pt={...i.defaultOptions,variant:"text"},ut=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ct=[],P=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,G.jsx)(V,{...o,icon:"star"});case"icon-and-text":return(0,G.jsx)(ve,{...o,icon:"star",children:"Button"});default:return(0,G.jsx)(ye,{...o,children:"Button"})}};P.options=it;P.states=lt;P.variants=ut;P.defaultOptions=pt;P.modifiers=ct;P.className=i.className;var ne="speech-to-text-button",Oe=ne;var Ee=require("react/jsx-runtime"),Me="k-speech-to-text-button",Se={icon:"microphone-outline"},c=e=>{let{listening:t=!1,icon:o=Se.icon,...a}=e;return(0,Ee.jsx)(i,{...a,icon:t?"stop-sm":o,className:p(e.className,Me,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};c.states=i.states;c.options=i.options;c.className=Me;c.defaultOptions=Se;c.moduleName=ne;c.folderName=Oe;c.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var dt=require("react/jsx-runtime");var mt=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),ft=i.states,Ce={...i.defaultOptions,variant:"normal"},xt={...i.options,fillMode:i.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},bt=[],ht=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],L=e=>{let{variant:t,...o}={...Ce,...e},a={};return t==="listening"&&(a.listening=!0),(0,Ie.jsx)(c,{...o,...a})};L.options=xt;L.states=ft;L.variants=ht;L.defaultOptions=Ce;L.modifiers=bt;L.className=c.className;var T=require("react/jsx-runtime"),y="k-prompt-box",gt=[h.hover,h.focus,h.disabled],Tt={fillMode:[f.undefined,f.solid,f.flat,f.outline]},re={lineMode:"auto",isExpanded:!1},S=e=>{let{fillMode:t,lineMode:o=re.lineMode,startAffix:a,endAffix:s,header:u,isExpanded:l=re.isExpanded,className:d,children:N,value:x,placeholder:E,generating:m,hover:_,focus:A,disabled:w,...M}=e,B=o==="multi"||o==="auto"&&l;return(0,T.jsxs)("div",{...M,className:p(d,"k-input",y,{[`${y}-singleline`]:o==="single",[`${y}-multiline`]:B,[`k-input-${t}`]:t,"k-hover":_,"k-focus":A,"k-disabled":w}),children:[u&&(0,T.jsx)("div",{className:`${y}-header`,children:u}),(0,T.jsxs)("div",{className:`${y}-content`,children:[a&&(0,T.jsx)("div",{className:`${y}-affix`,children:a}),o==="single"?(0,T.jsx)(K,{value:x,placeholder:E,className:`${y}-input`,type:"text","aria-label":"Prompt input"}):(0,T.jsx)(R,{value:x,placeholder:E,className:`${y}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),(0,T.jsxs)("div",{className:`${y}-affix`,children:[s,(0,T.jsx)(c,{size:"small",fillMode:"flat",rounded:"full"}),(0,T.jsx)(V,{icon:m?"stop-sm":"arrow-up-outline",size:"small",rounded:"full",active:m,disabled:!x&&!m,className:p({"k-generating":m}),"aria-label":m?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),N]})};S.states=gt;S.options=Tt;S.className=y;S.defaultOptions=re;S.moduleName=W;S.folderName=ce;S.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};var _e=S;var Ae=require("react/jsx-runtime"),Nt=e=>(0,Ae.jsx)(_e,{...e,lineMode:"single"});
|
|
1
|
+
var ze=Object.create;var U=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var De=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Fe=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},ae=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $e(t))!Ue.call(e,s)&&s!==o&&U(e,s,{get:()=>t[s],enumerable:!(a=He(t,s))||a.enumerable});return e};var Xe=(e,t,o)=>(o=e!=null?ze(De(e)):{},ae(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),Ve=e=>ae(U({},"__esModule",{value:!0}),e);var vt={};Fe(vt,{PromptBoxLineModeSingle:()=>Nt});module.exports=Ve(vt);var p=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?p(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>p({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),se=(e,t)=>{let{valid:o,invalid:a,hover:s,focus:u,checked:l,active:d,selected:N,disabled:x,indeterminate:E,loading:m,empty:_,readonly:A,highlighted:w,...M}=t;return p({"k-valid":o,"k-invalid":a,"k-hover":s,"k-focus":u,"k-checked":l,"k-active":d,"k-selected":N,"k-disabled":x,"k-indeterminate":E&&!l,"k-loading":m,"k-empty":_,"k-readonly":A,"k-highlighted":w},Object.keys(M).reduce((B,v)=>(v.startsWith("k-")?B[v]=M[v]:B[`k-${v}`]=M[v],B),{}))};function ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var le=require("react/jsx-runtime"),J="k-input-inner",Ge=[],Je={},F={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=F.value,type:o=F.type,placeholder:a=F.placeholder,autocomplete:s=F.autocomplete,disabled:u,readOnly:l,...d}=e;return(0,le.jsx)("input",{...d,type:o,className:p(e.className,J,b(J,e)),placeholder:a,autoComplete:s,defaultValue:t,disabled:u||void 0,readOnly:l||void 0})};K.states=Ge;K.options=Je;K.className=J;var ue=require("react/jsx-runtime"),q="k-input-inner",qe=[],We={},pe={value:"",placeholder:""},R=e=>{let{value:t=pe.value,placeholder:o=pe.placeholder,rows:a,disabled:s,...u}=e;return(0,ue.jsx)("textarea",{...u,className:p(e.className,q,b(q,e)),placeholder:o,rows:a,defaultValue:t,disabled:s||void 0})};R.states=qe;R.options=We;R.className=q;var W="prompt-box",ce=W;var z=require("react/jsx-runtime"),Q="k-font-icon",Qe=[],Ye={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Ze={},H=e=>{let{size:t,themeColor:o,icon:a,rotate:s,flip:u,...l}=e;return a?(0,z.jsx)("span",{...l,className:p(e.className,Q,b(Q,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":u==="h"||u==="both","k-flip-v":u==="v"||u==="both"}),"aria-hidden":"true"}):(0,z.jsx)(z.Fragment,{})};H.states=Qe;H.options=Ye;H.className=Q;H.defaultOptions=Ze;var de=H;var I=require("react/jsx-runtime"),Y="k-svg-icon",je=[],et={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},me={viewBox:"0 0 24 24"},$=e=>{let{size:t,themeColor:o,rotate:a,flip:s,viewBox:u=me.viewBox,icon:l,...d}=e;if(!l)return(0,I.jsx)(I.Fragment,{});if(l==="none")return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof l=="object"&&l.name&&l.name;return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:(0,I.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:u,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$.states=je;$.options=et;$.className=Y;$.defaultOptions=me;var Z=$;var j=Xe(require("@progress/kendo-svg-icons"));var fe="icon",xe="icons";var ge=require("react");var be=require("react"),he=(0,be.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),X="k-icon",tt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ot=[],nt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ee={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{iconsType:t}=(0,ge.useContext)(he),{size:o,themeColor:a,icon:s,type:u=t||ee.type,rotate:l,flip:d,viewBox:N=ee.viewBox,...x}=e;if(!s)return(0,O.jsx)(O.Fragment,{});if((t||u)==="svg"){if(s==="none")return(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:s,size:o});let m=j[s]?s:tt(`${s}-icon`);return j[m]?(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:j[m],size:o,themeColor:a,rotate:l,flip:d,viewBox:N}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(de,{...x,className:p(e.className,X),icon:s,size:o,themeColor:a,rotate:l,flip:d})};k.states=ot;k.options=nt;k.defaultOptions=ee;k.className=X;k.moduleName=fe;k.folderName=xe;k.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var te="button",Te=te;var g=require("react/jsx-runtime"),D="k-button",rt=["icon-button"],at=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],st={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},oe={showArrow:!1,arrowIconName:"chevron-down"},i=e=>{let{as:t="button",size:o,rounded:a,fillMode:s,themeColor:u,showArrow:l=oe.showArrow,arrowIconName:d=oe.arrowIconName,variant:N,hover:x,focus:E,active:m,selected:_,disabled:A,togglable:w,ariaDisabled:M,icon:B,text:v,iconClassName:Pe,className:Le,...we}=e,Ke=B!==void 0,Re=e.children!==void 0;return(0,g.jsxs)(t,{className:p(Le,D,ie(D,N),b(D,{size:o,rounded:a,fillMode:s,themeColor:u}),se(D,{hover:x,focus:E,active:m,disabled:A||M,selected:_}),{"k-icon-button":!v&&!Re&&Ke}),...we,"aria-pressed":w?_?"true":"false":void 0,"aria-disabled":M?"true":void 0,disabled:A||void 0,children:[B&&(0,g.jsx)(k,{className:p(Pe,"k-button-icon"),icon:B}),v?(0,g.jsxs)(g.Fragment,{children:[v&&(0,g.jsx)("span",{className:"k-button-text",children:v}),e.children]}):e.children&&(0,g.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,g.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,g.jsx)(k,{icon:d})})]})};i.states=at;i.options=st;i.variants=rt;i.className=D;i.defaultOptions=oe;i.moduleName=te;i.folderName=Te;i.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Ne=require("react/jsx-runtime"),V=e=>(0,Ne.jsx)(i,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ke=require("react/jsx-runtime"),ve=e=>(0,ke.jsx)(i,{icon:"folder",children:"Button",...e});var Be=require("react/jsx-runtime"),ye=e=>(0,Be.jsx)(i,{children:"Button",...e});var G=require("react/jsx-runtime"),it=i.options,lt=i.states,pt={...i.defaultOptions,variant:"text"},ut=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ct=[],P=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,G.jsx)(V,{...o,icon:"star"});case"icon-and-text":return(0,G.jsx)(ve,{...o,icon:"star",children:"Button"});default:return(0,G.jsx)(ye,{...o,children:"Button"})}};P.options=it;P.states=lt;P.variants=ut;P.defaultOptions=pt;P.modifiers=ct;P.className=i.className;var ne="speech-to-text-button",Oe=ne;var Ee=require("react/jsx-runtime"),Me="k-speech-to-text-button",Se={icon:"microphone"},c=e=>{let{listening:t=!1,icon:o=Se.icon,...a}=e;return(0,Ee.jsx)(i,{...a,icon:t?"stop":o,className:p(e.className,Me,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};c.states=i.states;c.options=i.options;c.className=Me;c.defaultOptions=Se;c.moduleName=ne;c.folderName=Oe;c.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var dt=require("react/jsx-runtime");var mt=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),ft=i.states,Ce={...i.defaultOptions,variant:"normal"},xt={...i.options,fillMode:i.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},bt=[],ht=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],L=e=>{let{variant:t,...o}={...Ce,...e},a={};return t==="listening"&&(a.listening=!0),(0,Ie.jsx)(c,{...o,...a})};L.options=xt;L.states=ft;L.variants=ht;L.defaultOptions=Ce;L.modifiers=bt;L.className=c.className;var T=require("react/jsx-runtime"),y="k-prompt-box",gt=[h.hover,h.focus,h.disabled],Tt={fillMode:[f.undefined,f.solid,f.flat,f.outline]},re={lineMode:"auto",isExpanded:!1},S=e=>{let{fillMode:t,lineMode:o=re.lineMode,startAffix:a,endAffix:s,header:u,isExpanded:l=re.isExpanded,className:d,children:N,value:x,placeholder:E,generating:m,hover:_,focus:A,disabled:w,...M}=e,B=o==="multi"||o==="auto"&&l;return(0,T.jsxs)("div",{...M,className:p(d,"k-input",y,{[`${y}-singleline`]:o==="single",[`${y}-multiline`]:B,[`k-input-${t}`]:t,"k-hover":_,"k-focus":A,"k-disabled":w}),children:[u&&(0,T.jsx)("div",{className:`${y}-header`,children:u}),(0,T.jsxs)("div",{className:`${y}-content`,children:[a&&(0,T.jsx)("div",{className:`${y}-affix`,children:a}),o==="single"?(0,T.jsx)(K,{value:x,placeholder:E,className:`${y}-input`,type:"text","aria-label":"Prompt input"}):(0,T.jsx)(R,{value:x,placeholder:E,className:`${y}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),(0,T.jsxs)("div",{className:`${y}-affix`,children:[s,(0,T.jsx)(c,{size:"small",fillMode:"flat",rounded:"full"}),(0,T.jsx)(V,{icon:m?"stop":"arrow-up",size:"small",rounded:"full",active:m,disabled:!x&&!m,className:p({"k-generating":m}),"aria-label":m?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),N]})};S.states=gt;S.options=Tt;S.className=y;S.defaultOptions=re;S.moduleName=W;S.folderName=ce;S.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};var _e=S;var Ae=require("react/jsx-runtime"),Nt=e=>(0,Ae.jsx)(_e,{...e,lineMode:"single"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var ze=Object.create;var U=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var De=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Fe=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},ae=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $e(t))!Ue.call(e,s)&&s!==o&&U(e,s,{get:()=>t[s],enumerable:!(a=He(t,s))||a.enumerable});return e};var Xe=(e,t,o)=>(o=e!=null?ze(De(e)):{},ae(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),Ve=e=>ae(U({},"__esModule",{value:!0}),e);var vt={};Fe(vt,{PromptBoxStopResponse:()=>Nt});module.exports=Ve(vt);var p=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?p(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>p({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),se=(e,t)=>{let{valid:o,invalid:a,hover:s,focus:u,checked:l,active:d,selected:N,disabled:x,indeterminate:E,loading:m,empty:_,readonly:A,highlighted:w,...S}=t;return p({"k-valid":o,"k-invalid":a,"k-hover":s,"k-focus":u,"k-checked":l,"k-active":d,"k-selected":N,"k-disabled":x,"k-indeterminate":E&&!l,"k-loading":m,"k-empty":_,"k-readonly":A,"k-highlighted":w},Object.keys(S).reduce((B,v)=>(v.startsWith("k-")?B[v]=S[v]:B[`k-${v}`]=S[v],B),{}))};function ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var le=require("react/jsx-runtime"),J="k-input-inner",Ge=[],Je={},F={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=F.value,type:o=F.type,placeholder:a=F.placeholder,autocomplete:s=F.autocomplete,disabled:u,readOnly:l,...d}=e;return(0,le.jsx)("input",{...d,type:o,className:p(e.className,J,b(J,e)),placeholder:a,autoComplete:s,defaultValue:t,disabled:u||void 0,readOnly:l||void 0})};K.states=Ge;K.options=Je;K.className=J;var ue=require("react/jsx-runtime"),q="k-input-inner",qe=[],We={},pe={value:"",placeholder:""},R=e=>{let{value:t=pe.value,placeholder:o=pe.placeholder,rows:a,disabled:s,...u}=e;return(0,ue.jsx)("textarea",{...u,className:p(e.className,q,b(q,e)),placeholder:o,rows:a,defaultValue:t,disabled:s||void 0})};R.states=qe;R.options=We;R.className=q;var W="prompt-box",ce=W;var z=require("react/jsx-runtime"),Q="k-font-icon",Qe=[],Ye={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Ze={},H=e=>{let{size:t,themeColor:o,icon:a,rotate:s,flip:u,...l}=e;return a?(0,z.jsx)("span",{...l,className:p(e.className,Q,b(Q,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":u==="h"||u==="both","k-flip-v":u==="v"||u==="both"}),"aria-hidden":"true"}):(0,z.jsx)(z.Fragment,{})};H.states=Qe;H.options=Ye;H.className=Q;H.defaultOptions=Ze;var de=H;var I=require("react/jsx-runtime"),Y="k-svg-icon",je=[],et={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},me={viewBox:"0 0 24 24"},$=e=>{let{size:t,themeColor:o,rotate:a,flip:s,viewBox:u=me.viewBox,icon:l,...d}=e;if(!l)return(0,I.jsx)(I.Fragment,{});if(l==="none")return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof l=="object"&&l.name&&l.name;return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:(0,I.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:u,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$.states=je;$.options=et;$.className=Y;$.defaultOptions=me;var Z=$;var j=Xe(require("@progress/kendo-svg-icons"));var fe="icon",xe="icons";var ge=require("react");var be=require("react"),he=(0,be.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),X="k-icon",tt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ot=[],nt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ee={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{iconsType:t}=(0,ge.useContext)(he),{size:o,themeColor:a,icon:s,type:u=t||ee.type,rotate:l,flip:d,viewBox:N=ee.viewBox,...x}=e;if(!s)return(0,O.jsx)(O.Fragment,{});if((t||u)==="svg"){if(s==="none")return(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:s,size:o});let m=j[s]?s:tt(`${s}-icon`);return j[m]?(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:j[m],size:o,themeColor:a,rotate:l,flip:d,viewBox:N}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(de,{...x,className:p(e.className,X),icon:s,size:o,themeColor:a,rotate:l,flip:d})};k.states=ot;k.options=nt;k.defaultOptions=ee;k.className=X;k.moduleName=fe;k.folderName=xe;k.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var te="button",Te=te;var g=require("react/jsx-runtime"),D="k-button",rt=["icon-button"],at=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],st={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},oe={showArrow:!1,arrowIconName:"chevron-down"},i=e=>{let{as:t="button",size:o,rounded:a,fillMode:s,themeColor:u,showArrow:l=oe.showArrow,arrowIconName:d=oe.arrowIconName,variant:N,hover:x,focus:E,active:m,selected:_,disabled:A,togglable:w,ariaDisabled:S,icon:B,text:v,iconClassName:Pe,className:Le,...we}=e,Ke=B!==void 0,Re=e.children!==void 0;return(0,g.jsxs)(t,{className:p(Le,D,ie(D,N),b(D,{size:o,rounded:a,fillMode:s,themeColor:u}),se(D,{hover:x,focus:E,active:m,disabled:A||S,selected:_}),{"k-icon-button":!v&&!Re&&Ke}),...we,"aria-pressed":w?_?"true":"false":void 0,"aria-disabled":S?"true":void 0,disabled:A||void 0,children:[B&&(0,g.jsx)(k,{className:p(Pe,"k-button-icon"),icon:B}),v?(0,g.jsxs)(g.Fragment,{children:[v&&(0,g.jsx)("span",{className:"k-button-text",children:v}),e.children]}):e.children&&(0,g.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,g.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,g.jsx)(k,{icon:d})})]})};i.states=at;i.options=st;i.variants=rt;i.className=D;i.defaultOptions=oe;i.moduleName=te;i.folderName=Te;i.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Ne=require("react/jsx-runtime"),V=e=>(0,Ne.jsx)(i,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ke=require("react/jsx-runtime"),ve=e=>(0,ke.jsx)(i,{icon:"folder",children:"Button",...e});var Be=require("react/jsx-runtime"),ye=e=>(0,Be.jsx)(i,{children:"Button",...e});var G=require("react/jsx-runtime"),it=i.options,lt=i.states,pt={...i.defaultOptions,variant:"text"},ut=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ct=[],P=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,G.jsx)(V,{...o,icon:"star"});case"icon-and-text":return(0,G.jsx)(ve,{...o,icon:"star",children:"Button"});default:return(0,G.jsx)(ye,{...o,children:"Button"})}};P.options=it;P.states=lt;P.variants=ut;P.defaultOptions=pt;P.modifiers=ct;P.className=i.className;var ne="speech-to-text-button",Oe=ne;var Ee=require("react/jsx-runtime"),Se="k-speech-to-text-button",Me={icon:"microphone-outline"},c=e=>{let{listening:t=!1,icon:o=Me.icon,...a}=e;return(0,Ee.jsx)(i,{...a,icon:t?"stop-sm":o,className:p(e.className,Se,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};c.states=i.states;c.options=i.options;c.className=Se;c.defaultOptions=Me;c.moduleName=ne;c.folderName=Oe;c.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var dt=require("react/jsx-runtime");var mt=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),ft=i.states,Ce={...i.defaultOptions,variant:"normal"},xt={...i.options,fillMode:i.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},bt=[],ht=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],L=e=>{let{variant:t,...o}={...Ce,...e},a={};return t==="listening"&&(a.listening=!0),(0,Ie.jsx)(c,{...o,...a})};L.options=xt;L.states=ft;L.variants=ht;L.defaultOptions=Ce;L.modifiers=bt;L.className=c.className;var T=require("react/jsx-runtime"),y="k-prompt-box",gt=[h.hover,h.focus,h.disabled],Tt={fillMode:[f.undefined,f.solid,f.flat,f.outline]},re={lineMode:"auto",isExpanded:!1},M=e=>{let{fillMode:t,lineMode:o=re.lineMode,startAffix:a,endAffix:s,header:u,isExpanded:l=re.isExpanded,className:d,children:N,value:x,placeholder:E,generating:m,hover:_,focus:A,disabled:w,...S}=e,B=o==="multi"||o==="auto"&&l;return(0,T.jsxs)("div",{...S,className:p(d,"k-input",y,{[`${y}-singleline`]:o==="single",[`${y}-multiline`]:B,[`k-input-${t}`]:t,"k-hover":_,"k-focus":A,"k-disabled":w}),children:[u&&(0,T.jsx)("div",{className:`${y}-header`,children:u}),(0,T.jsxs)("div",{className:`${y}-content`,children:[a&&(0,T.jsx)("div",{className:`${y}-affix`,children:a}),o==="single"?(0,T.jsx)(K,{value:x,placeholder:E,className:`${y}-input`,type:"text","aria-label":"Prompt input"}):(0,T.jsx)(R,{value:x,placeholder:E,className:`${y}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),(0,T.jsxs)("div",{className:`${y}-affix`,children:[s,(0,T.jsx)(c,{size:"small",fillMode:"flat",rounded:"full"}),(0,T.jsx)(V,{icon:m?"stop-sm":"arrow-up-outline",size:"small",rounded:"full",active:m,disabled:!x&&!m,className:p({"k-generating":m}),"aria-label":m?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),N]})};M.states=gt;M.options=Tt;M.className=y;M.defaultOptions=re;M.moduleName=W;M.folderName=ce;M.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};var _e=M;var Ae=require("react/jsx-runtime"),Nt=e=>(0,Ae.jsx)(_e,{generating:!0,...e,lineMode:"single"});
|
|
1
|
+
var ze=Object.create;var U=Object.defineProperty;var He=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames;var De=Object.getPrototypeOf,Ue=Object.prototype.hasOwnProperty;var Fe=(e,t)=>{for(var o in t)U(e,o,{get:t[o],enumerable:!0})},ae=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of $e(t))!Ue.call(e,s)&&s!==o&&U(e,s,{get:()=>t[s],enumerable:!(a=He(t,s))||a.enumerable});return e};var Xe=(e,t,o)=>(o=e!=null?ze(De(e)):{},ae(t||!e||!e.__esModule?U(o,"default",{value:e,enumerable:!0}):o,e)),Ve=e=>ae(U({},"__esModule",{value:!0}),e);var vt={};Fe(vt,{PromptBoxStopResponse:()=>Nt});module.exports=Ve(vt);var p=(...e)=>e.filter(t=>t!==!0&&!!t).map(t=>Array.isArray(t)?p(...t):typeof t=="object"?Object.keys(t).map((o,a)=>t[a]||t[o]&&o||null).filter(o=>o!==null).join(" "):t).filter(t=>!!t).join(" ");var b=(e,t)=>p({[`${e}-xs`]:t.size==="xsmall",[`${e}-sm`]:t.size==="small",[`${e}-md`]:t.size==="medium",[`${e}-lg`]:t.size==="large",[`${e}-xl`]:t.size==="xlarge",[`${e}-xxl`]:t.size==="xxlarge",[`${e}-xxxl`]:t.size==="xxxlarge"},{[`${e}-${t.fillMode}`]:t.fillMode},{[`${e}-${t.themeColor}`]:t.themeColor},{"k-rounded-sm":t.rounded==="small","k-rounded-md":t.rounded==="medium","k-rounded-lg":t.rounded==="large","k-rounded-full":t.rounded==="full","k-rounded-none":t.rounded==="none"}),se=(e,t)=>{let{valid:o,invalid:a,hover:s,focus:u,checked:l,active:d,selected:N,disabled:x,indeterminate:E,loading:m,empty:_,readonly:A,highlighted:w,...S}=t;return p({"k-valid":o,"k-invalid":a,"k-hover":s,"k-focus":u,"k-checked":l,"k-active":d,"k-selected":N,"k-disabled":x,"k-indeterminate":E&&!l,"k-loading":m,"k-empty":_,"k-readonly":A,"k-highlighted":w},Object.keys(S).reduce((B,v)=>(v.startsWith("k-")?B[v]=S[v]:B[`k-${v}`]=S[v],B),{}))};function ie(e,t){if(!t)return{};let o=Array.isArray(t)?t:[t];return Object.fromEntries(o.map(a=>[`k-${a}`,!0]))}var r={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"},C={undefined:void 0,none:"none",small:"small",medium:"medium",large:"large",full:"full"},f={undefined:void 0,solid:"solid",flat:"flat",outline:"outline",clear:"clear",link:"link"},n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},h={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var le=require("react/jsx-runtime"),J="k-input-inner",Ge=[],Je={},F={type:"text",autocomplete:"off",value:"",placeholder:""},K=e=>{let{value:t=F.value,type:o=F.type,placeholder:a=F.placeholder,autocomplete:s=F.autocomplete,disabled:u,readOnly:l,...d}=e;return(0,le.jsx)("input",{...d,type:o,className:p(e.className,J,b(J,e)),placeholder:a,autoComplete:s,defaultValue:t,disabled:u||void 0,readOnly:l||void 0})};K.states=Ge;K.options=Je;K.className=J;var ue=require("react/jsx-runtime"),q="k-input-inner",qe=[],We={},pe={value:"",placeholder:""},R=e=>{let{value:t=pe.value,placeholder:o=pe.placeholder,rows:a,disabled:s,...u}=e;return(0,ue.jsx)("textarea",{...u,className:p(e.className,q,b(q,e)),placeholder:o,rows:a,defaultValue:t,disabled:s||void 0})};R.states=qe;R.options=We;R.className=q;var W="prompt-box",ce=W;var z=require("react/jsx-runtime"),Q="k-font-icon",Qe=[],Ye={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},Ze={},H=e=>{let{size:t,themeColor:o,icon:a,rotate:s,flip:u,...l}=e;return a?(0,z.jsx)("span",{...l,className:p(e.className,Q,b(Q,{size:t}),{[`k-i-${a}`]:a,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":u==="h"||u==="both","k-flip-v":u==="v"||u==="both"}),"aria-hidden":"true"}):(0,z.jsx)(z.Fragment,{})};H.states=Qe;H.options=Ye;H.className=Q;H.defaultOptions=Ze;var de=H;var I=require("react/jsx-runtime"),Y="k-svg-icon",je=[],et={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},me={viewBox:"0 0 24 24"},$=e=>{let{size:t,themeColor:o,rotate:a,flip:s,viewBox:u=me.viewBox,icon:l,...d}=e;if(!l)return(0,I.jsx)(I.Fragment,{});if(l==="none")return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),"k-none"),"aria-hidden":"true"});let N=typeof l=="object"&&l.name&&l.name;return(0,I.jsx)("span",{...d,className:p(e.className,Y,b("k-icon",{size:t}),{[`k-svg-i-${N}`]:N,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":s==="h"||s==="both","k-flip-v":s==="v"||s==="both"}),"aria-hidden":"true",children:(0,I.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof l=="object"?l.viewBox:u,dangerouslySetInnerHTML:typeof l=="object"?{__html:l.content}:void 0,children:l?void 0:e.children})})};$.states=je;$.options=et;$.className=Y;$.defaultOptions=me;var Z=$;var j=Xe(require("@progress/kendo-svg-icons"));var fe="icon",xe="icons";var ge=require("react");var be=require("react"),he=(0,be.createContext)({iconsType:"svg"});var O=require("react/jsx-runtime"),X="k-icon",tt=e=>e.replace(/([-_][a-z0-9])/gi,t=>t.toUpperCase().replace("-","").replace("_","")),ot=[],nt={size:[r.undefined,r.xsmall,r.small,r.medium,r.large,r.xlarge,r.xxlarge,r.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ee={viewBox:"0 0 24 24",type:"svg"},k=e=>{let{iconsType:t}=(0,ge.useContext)(he),{size:o,themeColor:a,icon:s,type:u=t||ee.type,rotate:l,flip:d,viewBox:N=ee.viewBox,...x}=e;if(!s)return(0,O.jsx)(O.Fragment,{});if((t||u)==="svg"){if(s==="none")return(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:s,size:o});let m=j[s]?s:tt(`${s}-icon`);return j[m]?(0,O.jsx)(Z,{...x,className:p(e.className,X),icon:j[m],size:o,themeColor:a,rotate:l,flip:d,viewBox:N}):(0,O.jsx)(O.Fragment,{})}return(0,O.jsx)(de,{...x,className:p(e.className,X),icon:s,size:o,themeColor:a,rotate:l,flip:d})};k.states=ot;k.options=nt;k.defaultOptions=ee;k.className=X;k.moduleName=fe;k.folderName=xe;k.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var te="button",Te=te;var g=require("react/jsx-runtime"),D="k-button",rt=["icon-button"],at=[h.hover,h.focus,h.active,h.selected,h.disabled,h.generating],st={size:[r.undefined,r.xsmall,r.small,r.medium,r.large],rounded:[C.undefined,C.none,C.small,C.medium,C.large,C.full],fillMode:[f.undefined,f.solid,f.flat,f.outline,f.clear,f.link],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info,n.inverse]},oe={showArrow:!1,arrowIconName:"chevron-down"},i=e=>{let{as:t="button",size:o,rounded:a,fillMode:s,themeColor:u,showArrow:l=oe.showArrow,arrowIconName:d=oe.arrowIconName,variant:N,hover:x,focus:E,active:m,selected:_,disabled:A,togglable:w,ariaDisabled:S,icon:B,text:v,iconClassName:Pe,className:Le,...we}=e,Ke=B!==void 0,Re=e.children!==void 0;return(0,g.jsxs)(t,{className:p(Le,D,ie(D,N),b(D,{size:o,rounded:a,fillMode:s,themeColor:u}),se(D,{hover:x,focus:E,active:m,disabled:A||S,selected:_}),{"k-icon-button":!v&&!Re&&Ke}),...we,"aria-pressed":w?_?"true":"false":void 0,"aria-disabled":S?"true":void 0,disabled:A||void 0,children:[B&&(0,g.jsx)(k,{className:p(Pe,"k-button-icon"),icon:B}),v?(0,g.jsxs)(g.Fragment,{children:[v&&(0,g.jsx)("span",{className:"k-button-text",children:v}),e.children]}):e.children&&(0,g.jsx)("span",{className:"k-button-text",children:e.children}),l&&(0,g.jsx)("span",{className:"k-menu-button-arrow k-button-arrow",children:(0,g.jsx)(k,{icon:d})})]})};i.states=at;i.options=st;i.variants=rt;i.className=D;i.defaultOptions=oe;i.moduleName=te;i.folderName=Te;i.ariaSpec={selector:".k-button",rules:[{selector:".k-button",attribute:"role=button or nodeName=button",usage:"The button role is implicit from the native <button> element."},{selector:".k-button",attribute:"aria-label (when icon-only)",usage:"Required for icon-only buttons that have no visible text."},{selector:".k-button",attribute:"aria-pressed (when togglable)",usage:"Indicates the pressed state of a toggle button."},{selector:".k-button",attribute:"disabled (when disabled)",usage:"Rendered when the button is disabled."}]};var Ne=require("react/jsx-runtime"),V=e=>(0,Ne.jsx)(i,{icon:"folder",...e,"aria-label":e["aria-label"]||"Folder",children:void 0});var ke=require("react/jsx-runtime"),ve=e=>(0,ke.jsx)(i,{icon:"folder",children:"Button",...e});var Be=require("react/jsx-runtime"),ye=e=>(0,Be.jsx)(i,{children:"Button",...e});var G=require("react/jsx-runtime"),it=i.options,lt=i.states,pt={...i.defaultOptions,variant:"text"},ut=[{name:"icon-only",title:"Icon Only"},{name:"icon-and-text",title:"Icon & Text"},{name:"text",title:"Text"}],ct=[],P=e=>{let{variant:t,...o}=e;switch(t){case"icon-only":return(0,G.jsx)(V,{...o,icon:"star"});case"icon-and-text":return(0,G.jsx)(ve,{...o,icon:"star",children:"Button"});default:return(0,G.jsx)(ye,{...o,children:"Button"})}};P.options=it;P.states=lt;P.variants=ut;P.defaultOptions=pt;P.modifiers=ct;P.className=i.className;var ne="speech-to-text-button",Oe=ne;var Ee=require("react/jsx-runtime"),Se="k-speech-to-text-button",Me={icon:"microphone"},c=e=>{let{listening:t=!1,icon:o=Me.icon,...a}=e;return(0,Ee.jsx)(i,{...a,icon:t?"stop":o,className:p(e.className,Se,{"k-listening":t}),"aria-pressed":t?"true":"false","aria-label":t?"Stop listening":"Start listening"})};c.states=i.states;c.options=i.options;c.className=Se;c.defaultOptions=Me;c.moduleName=ne;c.folderName=Oe;c.ariaSpec={selector:".k-speech-to-text-button",rules:[{selector:".k-button.k-speech-to-text-button",attribute:"role=button or nodeName=button",usage:"If the used element is not <button>, explicitly set its role to button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-pressed",usage:"Announces the toggle behaviour of the button."},{selector:".k-button.k-speech-to-text-button",attribute:"aria-label",usage:"Accessible name for the speech-to-text button."}]};var dt=require("react/jsx-runtime");var mt=require("react/jsx-runtime");var Ie=require("react/jsx-runtime"),ft=i.states,Ce={...i.defaultOptions,variant:"normal"},xt={...i.options,fillMode:i.options.fillMode.filter(e=>e!=="clear"&&e!=="link")},bt=[],ht=[{name:"normal",title:"Normal"},{name:"listening",title:"Listening"}],L=e=>{let{variant:t,...o}={...Ce,...e},a={};return t==="listening"&&(a.listening=!0),(0,Ie.jsx)(c,{...o,...a})};L.options=xt;L.states=ft;L.variants=ht;L.defaultOptions=Ce;L.modifiers=bt;L.className=c.className;var T=require("react/jsx-runtime"),y="k-prompt-box",gt=[h.hover,h.focus,h.disabled],Tt={fillMode:[f.undefined,f.solid,f.flat,f.outline]},re={lineMode:"auto",isExpanded:!1},M=e=>{let{fillMode:t,lineMode:o=re.lineMode,startAffix:a,endAffix:s,header:u,isExpanded:l=re.isExpanded,className:d,children:N,value:x,placeholder:E,generating:m,hover:_,focus:A,disabled:w,...S}=e,B=o==="multi"||o==="auto"&&l;return(0,T.jsxs)("div",{...S,className:p(d,"k-input",y,{[`${y}-singleline`]:o==="single",[`${y}-multiline`]:B,[`k-input-${t}`]:t,"k-hover":_,"k-focus":A,"k-disabled":w}),children:[u&&(0,T.jsx)("div",{className:`${y}-header`,children:u}),(0,T.jsxs)("div",{className:`${y}-content`,children:[a&&(0,T.jsx)("div",{className:`${y}-affix`,children:a}),o==="single"?(0,T.jsx)(K,{value:x,placeholder:E,className:`${y}-input`,type:"text","aria-label":"Prompt input"}):(0,T.jsx)(R,{value:x,placeholder:E,className:`${y}-textarea`,rows:o==="multi"||l?3:1,"aria-label":"Prompt input","aria-multiline":"true"}),(0,T.jsxs)("div",{className:`${y}-affix`,children:[s,(0,T.jsx)(c,{size:"small",fillMode:"flat",rounded:"full"}),(0,T.jsx)(V,{icon:m?"stop":"arrow-up",size:"small",rounded:"full",active:m,disabled:!x&&!m,className:p({"k-generating":m}),"aria-label":m?"Stop generating":"Send prompt","aria-live":"polite"})]})]}),N]})};M.states=gt;M.options=Tt;M.className=y;M.defaultOptions=re;M.moduleName=W;M.folderName=ce;M.ariaSpec={selector:".k-prompt-box",rules:[{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"nodeName=input",usage:"Ensures the input field has the proper textbox role."},{selector:".k-prompt-box-singleline .k-prompt-box-input",attribute:"aria-label",usage:"Provides an accessible label for the single-line input."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the textarea has the proper textbox role."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the textarea."},{selector:".k-prompt-box-multiline .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the textarea supports multiple lines of text."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"nodeName=textarea",usage:"Ensures the auto-mode textarea has the proper textbox role."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-label",usage:"Provides an accessible label for the auto-mode textarea."},{selector:".k-prompt-box:not(.k-prompt-box-singleline):not(.k-prompt-box-multiline) .k-prompt-box-textarea",attribute:"aria-multiline=true",usage:"Indicates the auto-mode textarea supports multiple lines of text."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-label",usage:"The send/stop button is labelled to indicate its current action."},{selector:".k-prompt-box-affix .k-button:not(.k-speech-to-text-button)",attribute:"aria-live=polite",usage:"Announces the change in status of the send/stop button."}]};var _e=M;var Ae=require("react/jsx-runtime"),Nt=e=>(0,Ae.jsx)(_e,{generating:!0,...e,lineMode:"single"});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var de=Object.create;var A=Object.defineProperty;var me=Object.getOwnPropertyDescriptor;var pe=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,fe=Object.prototype.hasOwnProperty;var ge=(t,e)=>{for(var o in e)A(t,o,{get:e[o],enumerable:!0})},q=(t,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of pe(e))!fe.call(t,a)&&a!==o&&A(t,a,{get:()=>e[a],enumerable:!(s=me(e,a))||s.enumerable});return t};var xe=(t,e,o)=>(o=t!=null?de(ue(t)):{},q(e||!t||!t.__esModule?A(o,"default",{value:t,enumerable:!0}):o,t)),he=t=>q(A({},"__esModule",{value:!0}),t);var He={};ge(He,{RatingDemo:()=>y,default:()=>Be});module.exports=he(He);var c=(...t)=>t.filter(e=>e!==!0&&!!e).map(e=>Array.isArray(e)?c(...e):typeof e=="object"?Object.keys(e).map((o,s)=>e[s]||e[o]&&o||null).filter(o=>o!==null).join(" "):e).filter(e=>!!e).join(" ");var C=(t,e)=>c({[`${t}-xs`]:e.size==="xsmall",[`${t}-sm`]:e.size==="small",[`${t}-md`]:e.size==="medium",[`${t}-lg`]:e.size==="large",[`${t}-xl`]:e.size==="xlarge",[`${t}-xxl`]:e.size==="xxlarge",[`${t}-xxxl`]:e.size==="xxxlarge"},{[`${t}-${e.fillMode}`]:e.fillMode},{[`${t}-${e.themeColor}`]:e.themeColor},{"k-rounded-sm":e.rounded==="small","k-rounded-md":e.rounded==="medium","k-rounded-lg":e.rounded==="large","k-rounded-full":e.rounded==="full","k-rounded-none":e.rounded==="none"}),z=(t,e)=>{let{valid:o,invalid:s,hover:a,focus:d,checked:r,active:m,selected:p,disabled:f,indeterminate:O,loading:R,empty:E,readonly:v,highlighted:ce,..._}=e;return c({"k-valid":o,"k-invalid":s,"k-hover":a,"k-focus":d,"k-checked":r,"k-active":m,"k-selected":p,"k-disabled":f,"k-indeterminate":O&&!r,"k-loading":R,"k-empty":E,"k-readonly":v,"k-highlighted":ce},Object.keys(_).reduce(($,S)=>(S.startsWith("k-")?$[S]=_[S]:$[`k-${S}`]=_[S],$),{}))};var i={undefined:void 0,xsmall:"xsmall",small:"small",medium:"medium",large:"large",xlarge:"xlarge",xxlarge:"xxlarge",xxxlarge:"xxxlarge"};var n={undefined:void 0,inherit:"inherit",base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",inverse:"inverse"},b={open:"open",hover:"hover",focus:"focus",active:"active",selected:"selected",disabled:"disabled",valid:"valid",invalid:"invalid",loading:"loading",required:"required",empty:"empty",indeterminate:"indeterminate",checked:"checked",readonly:"readonly",highlighted:"highlighted",generating:"generating",expanded:"expanded"};var I=require("react/jsx-runtime"),B="k-font-icon",be=[],ye={size:[i.undefined,i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},ve={},T=t=>{let{size:e,themeColor:o,icon:s,rotate:a,flip:d,...r}=t;return s?(0,I.jsx)("span",{...r,className:c(t.className,B,C(B,{size:e}),{[`k-i-${s}`]:s,[`k-color-${o}`]:o,[`k-rotate-${a}`]:a,"k-flip-h":d==="h"||d==="both","k-flip-v":d==="v"||d==="both"}),"aria-hidden":"true"}):(0,I.jsx)(I.Fragment,{})};T.states=be;T.options=ye;T.className=B;T.defaultOptions=ve;var J=T;var k=require("react/jsx-runtime"),H="k-svg-icon",ke=[],Ne={size:[i.undefined,i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},X={viewBox:"0 0 24 24"},g=t=>{let{size:e,themeColor:o,rotate:s,flip:a,viewBox:d=X.viewBox,icon:r,...m}=t;if(!r)return(0,k.jsx)(k.Fragment,{});if(r==="none")return(0,k.jsx)("span",{...m,className:c(t.className,H,C("k-icon",{size:e}),"k-none"),"aria-hidden":"true"});let p=typeof r=="object"&&r.name&&r.name;return(0,k.jsx)("span",{...m,className:c(t.className,H,C("k-icon",{size:e}),{[`k-svg-i-${p}`]:p,[`k-color-${o}`]:o,[`k-rotate-${s}`]:s,"k-flip-h":a==="h"||a==="both","k-flip-v":a==="v"||a==="both"}),"aria-hidden":"true",children:(0,k.jsx)("svg",{"aria-hidden":!0,focusable:!1,xmlns:"http://www.w3.org/2000/svg",viewBox:typeof r=="object"?r.viewBox:d,dangerouslySetInnerHTML:typeof r=="object"?{__html:r.content}:void 0,children:r?void 0:t.children})})};g.states=ke;g.options=Ne;g.className=H;g.defaultOptions=X;var P=g;var D=xe(require("@progress/kendo-svg-icons"));var Q="icon",Y="icons";var ee=require("react");var Z=require("react"),j=(0,Z.createContext)({iconsType:"svg"});var x=require("react/jsx-runtime"),L="k-icon",Re=t=>t.replace(/([-_][a-z0-9])/gi,e=>e.toUpperCase().replace("-","").replace("_","")),Se=[],Ce={size:[i.undefined,i.xsmall,i.small,i.medium,i.large,i.xlarge,i.xxlarge,i.xxxlarge],themeColor:[n.undefined,n.base,n.primary,n.secondary,n.tertiary,n.success,n.warning,n.error,n.info]},F={viewBox:"0 0 24 24",type:"svg"},N=t=>{let{iconsType:e}=(0,ee.useContext)(j),{size:o,themeColor:s,icon:a,type:d=e||F.type,rotate:r,flip:m,viewBox:p=F.viewBox,...f}=t;if(!a)return(0,x.jsx)(x.Fragment,{});if((e||d)==="svg"){if(a==="none")return(0,x.jsx)(P,{...f,className:c(t.className,L),icon:a,size:o});let R=D[a]?a:Re(`${a}-icon`);return D[R]?(0,x.jsx)(P,{...f,className:c(t.className,L),icon:D[R],size:o,themeColor:s,rotate:r,flip:m,viewBox:p}):(0,x.jsx)(x.Fragment,{})}return(0,x.jsx)(J,{...f,className:c(t.className,L),icon:a,size:o,themeColor:s,rotate:r,flip:m})};N.states=Se;N.options=Ce;N.defaultOptions=F;N.className=L;N.moduleName=Q;N.folderName=Y;N.ariaSpec={selector:".k-icon, .k-svg-icon",rules:[{selector:".k-icon, .k-svg-icon",attribute:"aria-hidden=true",usage:"Hides the icon element and all its children from assistive technologies."}]};var u=require("react/jsx-runtime"),G="k-rating-item",Ie=[b.hover,b.focus,b.selected,b.disabled],Te={},ne={iconType:"solid"},te={name:"star",content:'<path d="M256 391.5 117.2 480 154 314.1 32 202.4 192.9 188 256 32l63.1 156L480 202.4 358 314.1 394.8 480z"></path>',viewBox:"0 0 512 512"},oe={name:"star-outline",content:'<path d="M480 202.4 319.1 188 256 32l-63.1 156L32 202.4l122 111.7L117.2 480 256 391.5 394.8 480 358 314.1zM256 353.6l-90.8 57.9 24-108.5-82.1-75.2 108.1-9.7L256 117.3l40.8 100.8 108.1 9.7-82.1 75.2 24.1 108.5z"></path>',viewBox:"0 0 512 512"},M=t=>{let{iconType:e=ne.iconType,hover:o,focus:s,selected:a,disabled:d,dir:r,...m}=t,p;switch(e){case"split":p=(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("span",{className:"k-rating-precision-complement",children:(0,u.jsx)(g,{className:"k-icon",icon:oe,size:"xlarge"})}),(0,u.jsx)("span",{className:"k-rating-precision-part",style:{clipPath:`inset(${r==="rtl"?"0px 0px 0px 50%":"0px 50% 0px 0px"})`},children:(0,u.jsx)(g,{className:"k-icon",icon:te,size:"xlarge"})}),(0,u.jsx)("span",{style:{width:"24px",height:"24px",display:"block"}})]});break;case"outline":p=(0,u.jsx)(g,{className:"k-icon",icon:oe,size:"xlarge"});break;case"solid":p=(0,u.jsx)(g,{className:"k-icon",icon:te,size:"xlarge"});break;default:return}return(0,u.jsx)("span",{...m,className:c(G,z(G,{hover:o,focus:s,selected:a,disabled:d})),dir:r,children:p})};M.states=Ie;M.options=Te;M.className=G;M.defaultOptions=ne;var w=M;var K="rating",ae=K;var h=require("react/jsx-runtime"),V="k-rating",Me=[b.disabled,b.readonly],Oe={},U={max:5,min:0},l=t=>{let{value:e,max:o=U.max,min:s=U.min,disabled:a,readonly:d,label:r,dir:m,...p}=t,f=[],O=Math.floor(e),R=e%1===.5,E=o-Math.ceil(e);for(let v=0;v<O;v++)f.push((0,h.jsx)(w,{dir:m,iconType:"solid",selected:!0}));R&&f.push((0,h.jsx)(w,{dir:m,iconType:"split",selected:!0}));for(let v=0;v<E;v++)f.push((0,h.jsx)(w,{dir:m,iconType:"outline"}));return(0,h.jsxs)("span",{...p,className:c(t.className,V,z(V,{disabled:a,readonly:d})),dir:m,role:"slider",tabIndex:a?void 0:0,"aria-valuenow":e,"aria-valuemin":s,"aria-valuemax":o,"aria-disabled":a?"true":void 0,"aria-readonly":d?"true":void 0,children:[(0,h.jsx)("span",{className:"k-rating-container",children:f}),r&&(0,h.jsx)("span",{className:"k-rating-label",children:(0,h.jsx)("span",{children:r})})]})};l.states=Me;l.options=Oe;l.className=V;l.defaultOptions=U;l.moduleName=K;l.folderName=ae;l.ariaSpec={selector:".k-rating",rules:[{selector:".k-rating",attribute:"role=slider",usage:"Announces the slider role of the Rating element."},{selector:".k-rating",attribute:"aria-label or aria-labelledby or title",usage:"The Rating needs an accessible name to be assigned to it."},{selector:".k-rating",attribute:"aria-valuenow",usage:"Specifies the currently selected value in the Rating."},{selector:".k-rating",attribute:"aria-valuemin",usage:"Specifies the minimum available value in the Rating."},{selector:".k-rating",attribute:"aria-valuemax",usage:"Specifies the maximum available value in the Rating."},{selector:".k-rating:not(.k-disabled)",attribute:"tabindex=0",usage:"The element must be focusable. Disabled ratings are removed from tab order."},{selector:".k-rating.k-disabled",attribute:"aria-disabled=true",usage:"Rendered only when the Rating is disabled."},{selector:".k-rating.k-readonly",attribute:"aria-readonly=true (when readonly)",usage:"Rendered only when the Rating is readonly. Readonly ratings remain focusable but their value cannot be changed."}]};var re=require("react/jsx-runtime"),ie=({value:t=2.5,max:e=5,...o})=>(0,re.jsx)(l,{label:`${t} / ${e}`,value:t,max:e,...o,"aria-label":o["aria-label"]||"Rating"});var Ae=require("react/jsx-runtime");var ze=require("react/jsx-runtime");var le=require("react/jsx-runtime"),se=({value:t=2.5,...e})=>(0,le.jsx)(l,{value:t,...e,"aria-label":e["aria-label"]||"Rating"});var W=require("react/jsx-runtime"),Le=l.options,we=l.states,Ee={...l.defaultOptions,variant:"normal"},_e=[{name:"normal",title:"Normal"},{name:"label",title:"With label"}],$e=[],y=t=>{let{variant:e,...o}=t;return e==="label"?(0,W.jsx)(ie,{...o}):(0,W.jsx)(se,{...o})};y.options=Le;y.states=we;y.variants=_e;y.defaultOptions=Ee;y.modifiers=$e;y.className=l.className;var Be=y;
|