@kitn.ai/ui 0.27.0 → 0.28.0
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/README.md +10 -2
- package/dist/{Icon-BnFKqqtY.js → Icon-DObhsRtm.js} +1 -1
- package/dist/{action-icons-CBskfBMz.js → action-icons-CcgNN2oT.js} +1 -1
- package/dist/arrow-down-CjRU3JgV.js +1 -0
- package/dist/arrow-left-Bnpb1UEW.js +1 -0
- package/dist/{artifact-CvXEm1lS.js → artifact-Bwt7OgcR.js} +1 -1
- package/dist/{attachments-C43ZegEq.js → attachments-Qr4kg-2b.js} +1 -1
- package/dist/{audio-visualizer-B-79y1Tj.js → audio-visualizer-DToYdfSc.js} +1 -1
- package/dist/{badge-BpUbq8c0.js → badge-CdEu_jn2.js} +1 -1
- package/dist/{bell-sn17Ip9v.js → bell-DQAAOpDz.js} +1 -1
- package/dist/{button-BH6rN0U-.js → button-DkuOnGLy.js} +1 -1
- package/dist/{card-renderer-Cb1gQmth.js → card-renderer-Jx70m6_l.js} +1 -1
- package/dist/{card-routing-DifQgS7n.js → card-routing-0YidER_3.js} +1 -1
- package/dist/check-njkVdZu2.js +1 -0
- package/dist/{checkbox-Dc9Yov_B.js → checkbox-D7iRB3nL.js} +1 -1
- package/dist/{checkbox-group-B1kDLLYk.js → checkbox-group-B2_rpoPM.js} +1 -1
- package/dist/chevron-down-B72s6PXR.js +1 -0
- package/dist/chevron-right-BatuHzUm.js +1 -0
- package/dist/{choice-card-BT3c1S8g.js → choice-card-m0BYqqOK.js} +1 -1
- package/dist/circle-check-B62pODB3.js +1 -0
- package/dist/{circle-x-wobWkoSx.js → circle-x-BPG0iPst.js} +1 -1
- package/dist/circle-zx0ByzY9.js +1 -0
- package/dist/code-block-ClMLKb7C.js +1 -0
- package/dist/{collapsible-CPJbf6FM.js → collapsible-B4DlWicL.js} +1 -1
- package/dist/components/chat-thread.d.ts +89 -1
- package/dist/components/conversation-item.d.ts +16 -0
- package/dist/components/conversation-panel.d.ts +29 -0
- package/dist/components/home-panel.d.ts +34 -0
- package/dist/components/widget-tab-bar.d.ts +16 -0
- package/dist/{composer-CjngLzal.js → composer-sQ0HcvyG.js} +3 -3
- package/dist/{confirm-card-DCx_A4bU.js → confirm-card-rQWDQsnC.js} +1 -1
- package/dist/construct-cli.es.js +182 -14
- package/dist/{context-BY8V-Nlp.js → context-0kg4ZX1J.js} +1 -1
- package/dist/controllable-CnGpMF6r.js +1 -0
- package/dist/conversation-item-BxwQLaFJ.js +1 -0
- package/dist/conversation-list-BCfGN1JU.js +1 -0
- package/dist/{copy-B6DO4PqB.js → copy-n9u9rqpi.js} +1 -1
- package/dist/{create-tween-CnMHviKB.js → create-tween-C-q-JCM-.js} +1 -1
- package/dist/{create-tween-D1aiGZZh.js → create-tween-CRrJXxBd.js} +1 -1
- package/dist/{create-tween-BPzaefTp.js → create-tween-DZ3RRDHD.js} +1 -1
- package/dist/{create-tween-DUSQUKpr.js → create-tween-uPkArjIG.js} +1 -1
- package/dist/custom-elements.json +51 -2
- package/dist/{default-input-CucQEOqH.js → default-input-CaMrJkgH.js} +1 -1
- package/dist/define-By-uL588.js +1 -0
- package/dist/define.js +2 -2
- package/dist/define.server.js +2 -2
- package/dist/{disclosure-CbLtajUQ.js → disclosure-WUImBbDv.js} +1 -1
- package/dist/{dropdown-BwhViJFd.js → dropdown-wZVeJOMd.js} +1 -1
- package/dist/elements/agent-card.js +1 -1
- package/dist/elements/artifact.js +1 -1
- package/dist/elements/attachments.js +1 -1
- package/dist/elements/audio-visualizer.js +1 -1
- package/dist/elements/avatar.js +1 -1
- package/dist/elements/badge.js +1 -1
- package/dist/elements/button.js +1 -1
- package/dist/elements/card.js +1 -1
- package/dist/elements/cards.js +1 -1
- package/dist/elements/chain-of-thought.js +1 -1
- package/dist/elements/chat-scope-picker.js +1 -1
- package/dist/elements/chat-workspace.js +1 -1
- package/dist/elements/chat.js +1 -1
- package/dist/elements/checkbox-group.js +1 -1
- package/dist/elements/checkbox.js +1 -1
- package/dist/elements/checkpoint.js +1 -1
- package/dist/elements/choice.js +1 -1
- package/dist/elements/coachmark.js +1 -1
- package/dist/elements/code-block.js +1 -1
- package/dist/elements/command.js +1 -1
- package/dist/elements/compare.js +1 -1
- package/dist/elements/composer.js +1 -1
- package/dist/elements/confirm-card.js +1 -1
- package/dist/elements/context-meter.js +1 -1
- package/dist/elements/conversation-item.js +1 -1
- package/dist/elements/conversation-list.js +1 -1
- package/dist/elements/dialog.js +1 -1
- package/dist/elements/dock.js +3 -3
- package/dist/elements/dropdown.js +1 -1
- package/dist/elements/editable-label.js +1 -1
- package/dist/elements/embed.js +1 -1
- package/dist/elements/empty.js +1 -1
- package/dist/elements/feedback-bar.js +1 -1
- package/dist/elements/file-tree.js +1 -1
- package/dist/elements/file-upload.js +1 -1
- package/dist/elements/form.js +1 -1
- package/dist/elements/hover-card.js +1 -1
- package/dist/elements/icon.js +1 -1
- package/dist/elements/image.js +1 -1
- package/dist/elements/input.js +1 -1
- package/dist/elements/kbd.js +1 -1
- package/dist/elements/link-preview.js +1 -1
- package/dist/elements/loader.js +1 -1
- package/dist/elements/markdown.js +1 -1
- package/dist/elements/menu.js +1 -1
- package/dist/elements/message-skills.js +1 -1
- package/dist/elements/message.js +1 -1
- package/dist/elements/model-switcher.js +1 -1
- package/dist/elements/nav.js +1 -1
- package/dist/elements/notice.js +1 -1
- package/dist/elements/pane-grid.js +1 -1
- package/dist/elements/pane-group.js +1 -1
- package/dist/elements/pane.js +1 -1
- package/dist/elements/popover.js +1 -1
- package/dist/elements/progress-bar.js +1 -1
- package/dist/elements/prompt-dock.js +1 -1
- package/dist/elements/prompt-input.js +1 -1
- package/dist/elements/prompt-suggestions.js +1 -1
- package/dist/elements/radio-group.js +1 -1
- package/dist/elements/reasoning.js +1 -1
- package/dist/elements/remote.js +1 -1
- package/dist/elements/resizable.js +1 -1
- package/dist/elements/response-stream.js +1 -1
- package/dist/elements/screen.js +1 -1
- package/dist/elements/scroll-area.js +1 -1
- package/dist/elements/scroll-button.js +1 -1
- package/dist/elements/search.js +1 -1
- package/dist/elements/segmented.js +1 -1
- package/dist/elements/select.js +1 -1
- package/dist/elements/separator.js +1 -1
- package/dist/elements/setting-item.js +1 -1
- package/dist/elements/settings-group.js +1 -1
- package/dist/elements/skeleton.js +1 -1
- package/dist/elements/slider.js +1 -1
- package/dist/elements/source.js +1 -1
- package/dist/elements/status.js +1 -1
- package/dist/elements/switch.js +1 -1
- package/dist/elements/tabs.js +1 -1
- package/dist/elements/tasks.js +1 -1
- package/dist/elements/text-shimmer.js +1 -1
- package/dist/elements/thinking-bar.js +1 -1
- package/dist/elements/thread.js +1 -1
- package/dist/elements/toast.js +1 -1
- package/dist/elements/tool.js +1 -1
- package/dist/elements/tooltip.js +1 -1
- package/dist/elements/voice-input.js +1 -1
- package/dist/elements/voice-output.js +1 -1
- package/dist/elements.d.ts +20 -4
- package/dist/{ellipsis-DFr4Vqr3.js → ellipsis-CbOpJnU3.js} +1 -1
- package/dist/{embed-5s_vU4J0.js → embed-CrfjkbUG.js} +1 -1
- package/dist/{external-link-u9d85ORQ.js → external-link-ByXAwBBQ.js} +1 -1
- package/dist/{file-text-CX7_x42o.js → file-text-DMib2qwt.js} +1 -1
- package/dist/{file-tree-D3kBjXI5.js → file-tree-CJqM2aP7.js} +1 -1
- package/dist/{folder-V-YdIL8f.js → folder-_BAb929C.js} +1 -1
- package/dist/{form-BRNUMCN2.js → form-DSZgZQZk.js} +1 -1
- package/dist/{hover-card-DaeiYrTA.js → hover-card-BQbul9eq.js} +1 -1
- package/dist/{icon-BpixdZNq.js → icon-CdcfRhYI.js} +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2842 -2703
- package/dist/index.server.js +2820 -2681
- package/dist/{info-8mFsIjS3.js → info-DsFjGuI_.js} +1 -1
- package/dist/{input-d1Yuu-hz.js → input-DKbmkMos.js} +1 -1
- package/dist/kai.es.js +1 -1
- package/dist/{kbd-961zMPFB.js → kbd-PvdGhX4s.js} +1 -1
- package/dist/{link-preview-DIIbV2Sd.js → link-preview-DbM1866N.js} +1 -1
- package/dist/{link-DlZZBGaR.js → link-zF8PzWfF.js} +1 -1
- package/dist/{loader-YQszHFaW.js → loader-BM4CEz4G.js} +1 -1
- package/dist/{markdown-CVk1MPsj.js → markdown-LMvmAyBk.js} +7 -7
- package/dist/mcp.es.js +78 -4
- package/dist/{message-CwKVEdZg.js → message-BSsgvHvf.js} +1 -1
- package/dist/{message-DS8lzHc1.js → message-BYZECyek.js} +1 -1
- package/dist/message-circle-DruwObfX.js +1 -0
- package/dist/message-square-BG6q6mlm.js +1 -0
- package/dist/{minimize-2-UEZmP2QT.js → minimize-2-BQRoBV1V.js} +1 -1
- package/dist/{model-switcher-Kk1jEQ5t.js → model-switcher-CMpCOYcB.js} +1 -1
- package/dist/{overlay-C1od6LOz.js → overlay-Cb-MkyDa.js} +1 -1
- package/dist/{panel-right-ryET0yyn.js → panel-right-i8warFxT.js} +1 -1
- package/dist/{paperclip-BDNoZFJP.js → paperclip-ByY3UVO6.js} +1 -1
- package/dist/play-BvKKq3fX.js +1 -0
- package/dist/primitives/conversation-store.d.ts +54 -0
- package/dist/{progress-bar-BvYX0aoy.js → progress-bar-jVAHvMUf.js} +1 -1
- package/dist/{prompt-suggestion-BRFu2lcu.js → prompt-suggestion-CD-qtNgC.js} +1 -1
- package/dist/{radio-DcL23cNJ.js → radio-BsoBMhkF.js} +1 -1
- package/dist/react/index.d.ts +393 -0
- package/dist/react.js +20 -20
- package/dist/{reasoning-Cackq4Rh.js → reasoning-4kBPtlTx.js} +1 -1
- package/dist/register-impl-B1hLkrI8.js +424 -0
- package/dist/{resizable-Cp9HUYih.js → resizable-uPmY9VY-.js} +1 -1
- package/dist/{rotate-ccw-0DLRDHH5.js → rotate-ccw-B2xn93py.js} +1 -1
- package/dist/{rotate-cw-DOB9IGcU.js → rotate-cw-CMVLoCyH.js} +1 -1
- package/dist/{scroll-area-emVmWP4K.js → scroll-area-BqLUo8ZZ.js} +1 -1
- package/dist/{scroll-button-CeP_gv1x.js → scroll-button-DslXiJyL.js} +1 -1
- package/dist/{select-CWmu00tS.js → select-2cLRtPGT.js} +1 -1
- package/dist/{separator-CE6vly6z.js → separator-BWQtNJcM.js} +1 -1
- package/dist/{settings-CE-78SvZ.js → settings-BBR63jLg.js} +1 -1
- package/dist/{settings-group-ZFWNxFQR.js → settings-group-B2ciy-Iw.js} +1 -1
- package/dist/{skeleton-BebdP4mf.js → skeleton-CkHI-HgC.js} +1 -1
- package/dist/{slider-BAKRYUlz.js → slider-DDR9U-i0.js} +1 -1
- package/dist/{solid-BE5ui6sy.js → solid-BzCFdL25.js} +7720 -7058
- package/dist/{solid-DFhsce3O.js → solid-DruVOXnf.js} +5864 -5283
- package/dist/solid.d.ts +6 -2
- package/dist/solid.js +217 -210
- package/dist/solid.server.js +217 -210
- package/dist/{source-B0FlguSx.js → source-GEnFF528.js} +1 -1
- package/dist/{star-CBMZvLuN.js → star-CilHq8GP.js} +1 -1
- package/dist/store-Ciyk6eZG.js +1 -0
- package/dist/{switch-CViARZCy.js → switch-KkeQIbuH.js} +1 -1
- package/dist/{tasks-card-MjCcOhR_.js → tasks-card-BrN4bggJ.js} +1 -1
- package/dist/{text-shimmer-DKlwRF2G.js → text-shimmer-Dcj1MHuq.js} +1 -1
- package/dist/{textarea-3ay2Me2-.js → textarea-Dpvbngbg.js} +1 -1
- package/dist/theme.tokens.css +28 -0
- package/dist/{thumbs-up-DQcu2HMO.js → thumbs-up-CsT9Wzb9.js} +1 -1
- package/dist/{toast-store-C6yKOhbk.js → toast-store-tgK6MuMv.js} +1 -1
- package/dist/{tool-BCYNlfKy.js → tool-DzUjIBT8.js} +1 -1
- package/dist/{tooltip-05zI4hjs.js → tooltip-Bkkg_4t0.js} +1 -1
- package/dist/{trash-2-BR1RxGky.js → trash-2-jBKxjGGQ.js} +1 -1
- package/dist/{triangle-alert-DHohDOCy.js → triangle-alert-DlQ68ppf.js} +1 -1
- package/dist/types.d.ts +48 -3
- package/dist/ui/dock.d.ts +29 -0
- package/dist/{upload-BbGW6A_u.js → upload-TcAHXv9W.js} +1 -1
- package/dist/{url-scheme-policy-DHpoTJwB.js → url-scheme-policy-DR5DgvkM.js} +1 -1
- package/dist/{use-card-resolution-CJW4grFa.js → use-card-resolution-DaZqAdWf.js} +1 -1
- package/dist/{variant-aurora-xiMPty8f.js → variant-aurora-BhLuYxJR.js} +1 -1
- package/dist/{variant-aurora-BUOVgPOB.js → variant-aurora-CNmfHhcx.js} +2 -2
- package/dist/{variant-aurora-CUsUJvFI.js → variant-aurora-D6GsdTPA.js} +2 -2
- package/dist/{variant-aurora-CW2i4bfr.js → variant-aurora-DbW_OWL2.js} +1 -1
- package/dist/{variant-custom-D91HjAKz.js → variant-custom-BRvaNHSi.js} +1 -1
- package/dist/{variant-custom-BQtOnmeO.js → variant-custom-BvYHR62b.js} +1 -1
- package/dist/{variant-custom-CAnzzppW.js → variant-custom-DMTrEO5w.js} +2 -2
- package/dist/{variant-custom-CAm9L-E5.js → variant-custom-DV2x254s.js} +2 -2
- package/dist/{variant-wave-Ca1Ls4_y.js → variant-wave-BNMGrDfj.js} +2 -2
- package/dist/{variant-wave-uY5crU_K.js → variant-wave-BpDd8t3Z.js} +1 -1
- package/dist/{variant-wave-CxX39DKd.js → variant-wave-CyBueXj9.js} +2 -2
- package/dist/{variant-wave-DYyzIIZv.js → variant-wave-sp-qwsdI.js} +1 -1
- package/dist/x-Z5UntkIJ.js +1 -0
- package/frameworks/react/index.tsx +14 -4
- package/llms-full.txt +7 -2
- package/package.json +1 -1
- package/src/agent-tooling/README.md +192 -0
- package/src/agent-tooling/catalog/invariants.ts +2 -2
- package/src/agent-tooling/construct/cli.ts +16 -0
- package/src/agent-tooling/construct/codegen.ts +309 -27
- package/src/agent-tooling/construct/construct.v1.schema.json +69 -0
- package/src/agent-tooling/construct/fixtures/owner-widget.construct.json +11 -2
- package/src/agent-tooling/construct/schema.ts +81 -0
- package/src/components/chat-thread.tsx +532 -36
- package/src/components/conversation-item.tsx +23 -0
- package/src/components/conversation-panel.tsx +118 -0
- package/src/components/home-panel.tsx +159 -0
- package/src/components/widget-tab-bar.tsx +73 -0
- package/src/elements/chat.tsx +94 -2
- package/src/elements/compiled.css +1 -1
- package/src/elements/element-meta.json +49 -6
- package/src/elements/element-nonscalar.json +2 -0
- package/src/elements/element-types.d.ts +20 -4
- package/src/index.ts +3 -1
- package/src/primitives/conversation-store.ts +248 -0
- package/src/solid.ts +10 -2
- package/src/types.ts +45 -3
- package/src/ui/dock.tsx +47 -1
- package/theme.css +28 -0
- package/dist/arrow-down-Br0qtpsz.js +0 -1
- package/dist/arrow-left-Dj7xgE12.js +0 -1
- package/dist/check-DPeeMUYx.js +0 -1
- package/dist/chevron-down-CHSWk7ZT.js +0 -1
- package/dist/chevron-right-B7l_fMgx.js +0 -1
- package/dist/circle-Bb0yOpqM.js +0 -1
- package/dist/circle-check-BGZpCiz7.js +0 -1
- package/dist/code-block-CUQ5mtv0.js +0 -1
- package/dist/controllable-D43BKmtX.js +0 -1
- package/dist/conversation-list-D4lLU_yS.js +0 -1
- package/dist/define-CGGX-7Vg.js +0 -1
- package/dist/message-circle-Xf8Q-vZp.js +0 -1
- package/dist/message-square-Cxnwgkns.js +0 -1
- package/dist/play-OFIvYXUQ.js +0 -1
- package/dist/register-impl-C7rENvPK.js +0 -424
- package/dist/store-7eoadydQ.js +0 -1
- package/dist/x-C5m1JFgi.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as G,
|
|
1
|
+
import{s as G,H as se,g as A,p as D,q as W,i as P,c as j,a as I,b as ce,d as ue,S as q,n as de,G as fe,t as M,e as me}from"./define-By-uL588.js";import{c as E}from"./cn-DN5AWfiS.js";var U=M("<div>"),xe=M('<div><svg viewBox="0 0 4 8"fill=currentColor><circle cx=1 cy=1.5 r=0.6></circle><circle cx=3 cy=1.5 r=0.6></circle><circle cx=1 cy=4 r=0.6></circle><circle cx=3 cy=4 r=0.6></circle><circle cx=1 cy=6.5 r=0.6></circle><circle cx=3 cy=6.5 r=0.6>'),ge=M("<div class=pointer-events-none data-handle-line style=position:absolute>"),pe=M("<div role=separator aria-valuemin=0 aria-valuemax=100>");const J=fe();function L(l){if(l==null||l==="")return;if(typeof l=="number")return Number.isFinite(l)?`${l}%`:void 0;const t=l.trim();if(t==="")return;if(t.endsWith("%")||t.endsWith("px"))return t;const o=Number(t);return Number.isFinite(o)?`${o}%`:void 0}function T(l){const t=/^\s*(-?\d*\.?\d+)(px|%)\s*$/.exec(l);return t?{n:parseFloat(t[1]),unit:t[2]}:null}function K(l,t,o){if(l===void 0)return;const u=T(l),d=t===void 0?void 0:T(t),f=o===void 0?void 0:T(o);if(u&&(t===void 0||d?.unit===u.unit)&&(o===void 0||f?.unit===u.unit)){let i=u.n;return f&&(i=Math.min(i,f.n)),d&&(i=Math.max(i,d.n)),`${i}${u.unit}`}return t!==void 0&&o!==void 0?`clamp(${t}, ${l}, ${o})`:o!==void 0?`min(${l}, ${o})`:t!==void 0?`max(${t}, ${l})`:l}function ve(l){const[t,o]=G(l,["orientation","children","class"]),u=()=>t.orientation??"horizontal";return j(J.Provider,{get value(){return{orientation:u()}},get children(){var d=U();return D(d,W({get class(){return E("flex h-full w-full",u()==="vertical"?"flex-col":"flex-row",t.class)},get"data-orientation"(){return u()}},o),!1,!0),P(d,()=>t.children),d}})}function he(l){const[t,o]=G(l,["defaultSize","minSize","maxSize","locked","hidden","children","class","style"]),u=(i,v,x)=>{const m=L(i);if(m!==void 0)return m;const h=v==null?"":String(v).trim();if(h!==""){const n=parseFloat(h);if(Number.isFinite(n))return`${n}px`}const g=x==null?"":String(x).trim();if(g!==""){const n=parseFloat(g);if(Number.isFinite(n))return`${n}%`}},d=()=>{const i=o,v=u(t.minSize,i["data-min-size"],i["data-min-size-pct"]),x=u(t.maxSize,i["data-max-size"],i["data-max-size-pct"]),m=K(L(t.defaultSize),v,x);return{...m!==void 0?{"flex-basis":m,"flex-grow":"0","flex-shrink":"0"}:{flex:"1 1 0%"},display:"grid","grid-template-rows":"minmax(0, 1fr)","grid-template-columns":"minmax(0, 1fr)","min-width":"0","min-height":"0"}},f=()=>{const i={},v=(x,m,h)=>{if(x==null||x==="")return;if(typeof x=="number"){i[h]=String(x);return}const g=x.trim();g.endsWith("px")?i[m]=String(parseFloat(g)):g.endsWith("%")?i[h]=String(parseFloat(g)):Number.isFinite(Number(g))&&(i[h]=g)};return v(t.minSize,"data-min-size","data-min-size-pct"),v(t.maxSize,"data-max-size","data-max-size-pct"),v(t.defaultSize,"data-default-size","data-default-size-pct"),i};return(()=>{var i=U();return D(i,W({get class(){return E("overflow-hidden",t.class)},get style(){return{...d(),...typeof t.style=="object"?t.style:{}}},get"data-locked"(){return t.locked?"":void 0},get hidden(){return t.hidden||void 0}},f,o),!1,!0),P(i,()=>t.children),i})()}function R(l,t,o,u){const d=l.dataset[t==="min"?"minSize":"maxSize"];if(d!==void 0&&d!==""){const i=parseFloat(d);if(Number.isFinite(i))return i}const f=l.dataset[t==="min"?"minSizePct":"maxSizePct"];if(f!==void 0&&f!==""){const i=parseFloat(f);if(Number.isFinite(i))return i/100*o}return u}function ye(l){const[t,o]=G(l,["handle","onPanelResize","class","keyboardStep","static","orientation"]),u=se(J),d=()=>t.orientation??u?.orientation??"horizontal",[f,i]=A(!1),[v,x]=A(!1),m=()=>!!t.static,h=()=>t.handle??"line";let g=0,n=null,s=null,$=0,C=0;const y=()=>d()==="horizontal",p=()=>y()?"width":"height",O=e=>{if(m())return;const r=e.currentTarget;n=r.previousElementSibling,s=r.nextElementSibling,!(!n||!s)&&(e.preventDefault(),i(!0),r.setPointerCapture(e.pointerId),g=y()?e.clientX:e.clientY,$=n.getBoundingClientRect()[p()],C=s.getBoundingClientRect()[p()])},Q=e=>{if(!f()||!n||!s)return;const r=(y()?e.clientX:e.clientY)-g;F(r)};function F(e){var r;if(!n||!s)return!1;const a=n.parentElement,c=a?a.getBoundingClientRect()[p()]:0,z=R(n,"min",c,0),B=R(n,"max",c,999999),b=R(s,"min",c,0),k=R(s,"max",c,999999);let S=-1/0,w=1/0;if(S=Math.max(S,z-$),w=Math.min(w,B-$),S=Math.max(S,C-k),w=Math.min(w,C-b),S>w)return!1;const N=Math.max(S,Math.min(w,e)),ae=$+N,oe=C-N;return n.style.flexBasis=`${ae}px`,n.style.flexGrow="0",n.style.flexShrink="0",s.style.flexBasis=`${oe}px`,s.style.flexGrow="0",s.style.flexShrink="0",(r=t.onPanelResize)==null||r.call(t,N),!0}function X(){if(!n||!s)return;const e=n.parentElement;if(!e)return;const r=e.getBoundingClientRect()[p()];if(r<=0)return;const a=n.getBoundingClientRect()[p()]/r*100,c=s.getBoundingClientRect()[p()]/r*100;n.style.flexBasis=`${a}%`,s.style.flexBasis=`${c}%`}const V=()=>{X(),i(!1),n=null,s=null};function Y(e){const r=e.dataset.defaultSize,a=e.dataset.defaultSizePct;r!==void 0&&r!==""?(e.style.flexBasis=`${r}px`,e.style.flexGrow="0",e.style.flexShrink="0"):a!==void 0&&a!==""?(e.style.flexBasis=`${a}%`,e.style.flexGrow="0",e.style.flexShrink="0"):(e.style.flexBasis="",e.style.flexGrow="1",e.style.flexShrink="1")}const Z=e=>{var r;if(m())return;const a=e.currentTarget,c=a.previousElementSibling,z=a.nextElementSibling;!c||!z||(e.preventDefault(),Y(c),Y(z),(r=t.onPanelResize)==null||r.call(t,0))},_=A(50),[ee,te]=_;function ne(e){return n=e.previousElementSibling,s=e.nextElementSibling,!n||!s?!1:($=n.getBoundingClientRect()[p()],C=s.getBoundingClientRect()[p()],!0)}function ie(){if(!n)return;const e=n.parentElement;if(!e)return;const r=e.getBoundingClientRect()[p()];if(r<=0)return;const a=n.getBoundingClientRect()[p()]/r*100;te(Math.round(a))}const re=e=>{if(m())return;const r=e.currentTarget,a=t.keyboardStep??16,c=y(),z=c?"ArrowLeft":"ArrowUp",B=c?"ArrowRight":"ArrowDown";let b=null;if(e.key===z)b=-a;else if(e.key===B)b=a;else if(e.key==="Home")b="min";else if(e.key==="End")b="max";else return;if(e.preventDefault(),!!ne(r)){if(b==="min"){const k=n.parentElement,S=k?k.getBoundingClientRect()[p()]:0,w=R(n,"min",S,0);F(w-$)}else if(b==="max"){const k=n.parentElement,S=k?k.getBoundingClientRect()[p()]:0,w=R(n,"max",S,999999);F(w-$)}else F(b);ie(),X(),n=null,s=null}},H=()=>f()&&h()!=="line",le=()=>f()?"var(--color-muted, #f4f4f5)":v()?"var(--color-border, #e4e4e7)":"transparent";return(()=>{var e=pe();return e.$$keydown=re,e.$$dblclick=Z,e.addEventListener("pointerleave",()=>x(!1)),e.addEventListener("pointerenter",()=>x(!0)),e.$$pointerup=V,e.$$pointermove=Q,e.$$pointerdown=O,D(e,W({get class(){return E("relative flex items-center justify-center",t.class)},get style(){return{cursor:m()?"default":y()?"col-resize":"row-resize",[y()?"width":"height"]:"8px","flex-shrink":"0",background:H()?"var(--color-muted-foreground, #98989f)":"transparent",opacity:H()?"0.3":"1"}},get tabIndex(){return m()?void 0:0},get"data-orientation"(){return d()},get"data-static"(){return m()?"":void 0},get"aria-orientation"(){return y()?"vertical":"horizontal"},get"aria-valuenow"(){return ee()}},o),!1,!0),P(e,j(q,{get when(){return h()==="grip"},get children(){var r=xe(),a=r.firstChild;return I(c=>{var z=E("z-10 flex items-center justify-center",y()?"h-6 w-3 flex-col":"h-3 w-6 flex-row"),B=E("text-muted-foreground/40",y()?"h-3 w-2":"h-2 w-3 rotate-90");return z!==c.e&&ce(r,c.e=z),B!==c.t&&ue(a,"class",c.t=B),c},{e:void 0,t:void 0}),r}}),null),P(e,j(q,{get when(){return h()==="line"},get children(){var r=ge();return I(a=>de(r,{background:le(),...y()?{top:"0",bottom:"0",left:"50%",width:"1px",transform:"translateX(-0.5px)"}:{left:"0",right:"0",top:"50%",height:"1px",transform:"translateY(-0.5px)"}},a)),r}}),null),e})()}me(["pointerdown","pointermove","pointerup","dblclick","keydown"]);export{ye as R,he as a,ve as b,K as c,L as n};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as o}from"./Icon-
|
|
1
|
+
import{I as o}from"./Icon-DObhsRtm.js";import{c as e,q as r}from"./define-By-uL588.js";var t=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],m=a=>e(o,r(a,{name:"RotateCcw",iconNode:t})),p=m;export{p as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as a}from"./Icon-
|
|
1
|
+
import{I as a}from"./Icon-DObhsRtm.js";import{c as o,q as y}from"./define-By-uL588.js";var n=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],d=e=>o(a,y(e,{name:"ArrowRight",iconNode:n})),t=d,i=[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]],p=e=>o(a,y(e,{name:"Code",iconNode:i})),h=p,k=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],s=e=>o(a,y(e,{name:"Download",iconNode:k})),c=s,r=[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],l=e=>o(a,y(e,{name:"Eye",iconNode:r})),m=l,v=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]],M=e=>o(a,y(e,{name:"House",iconNode:v})),w=M,N=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],g=e=>o(a,y(e,{name:"RotateCw",iconNode:N})),f=g;export{t as a,h as c,c as d,m as e,w as h,f as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e,p as i,q as l,i as s,t as c}from"./define-
|
|
1
|
+
import{s as e,p as i,q as l,i as s,t as c}from"./define-By-uL588.js";import{c as f}from"./cn-DN5AWfiS.js";var d=c("<div tabindex=0>");function u(t){const[o,a]=e(t,["children","class","orientation"]),n=()=>o.orientation==="horizontal"?"overflow-x-auto overflow-y-hidden":o.orientation==="both"?"overflow-auto":"overflow-y-auto overflow-x-hidden";return(()=>{var r=d();return i(r,l({get class(){return f(n(),"scrollbar-thin",o.class)}},a),!1,!0),s(r,()=>o.children),r})()}export{u as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as T,h as y,s as f,c,u as A,p as h,q as m,i as v,t as u,
|
|
1
|
+
import{g as T,h as y,s as f,c,u as A,p as h,q as m,i as v,t as u,G as k,H as C,S as H,m as L}from"./define-By-uL588.js";import{c as d}from"./cn-DN5AWfiS.js";import{B as E}from"./button-DkuOnGLy.js";import{a as F}from"./arrow-down-CjRU3JgV.js";const S=50;function q(){const[t,n]=T(!0);let r,e=!0;function a(){if(!r)return;const{scrollTop:s,scrollHeight:l,clientHeight:B}=r,g=l-s-B<S;n(g),e=g}function i(s="smooth"){r&&(typeof r.scrollTo=="function"?r.scrollTo({top:r.scrollHeight,behavior:s}):r.scrollTop=r.scrollHeight,e=!0,n(!0))}let o;const b=typeof cancelAnimationFrame=="function"?cancelAnimationFrame.bind(globalThis):()=>{};function w(){e&&(o=requestAnimationFrame(()=>{o=void 0,i("instant")}))}function x(s){r=s,s.addEventListener("scroll",a,{passive:!0});const l=new MutationObserver(w);l.observe(s,{childList:!0,subtree:!0,characterData:!0}),y(()=>{s.removeEventListener("scroll",a),l.disconnect(),o!==void 0&&(b(o),o=void 0)})}return{ref:x,isAtBottom:t,scrollToBottom:i}}var z=u("<div role=log tabindex=0>"),D=u("<div>"),O=u("<div aria-hidden=true>");const p=k();function P(){const t=C(p);if(!t)throw new Error("useChatContainer must be used within ChatContainer");return t}function j(t){const[n,r]=f(t,["children","class"]),{ref:e,isAtBottom:a,scrollToBottom:i}=q();return c(p.Provider,{value:{isAtBottom:a,scrollToBottom:i},get children(){var o=z();return A(e,o),h(o,m({get class(){return d("flex flex-col overflow-y-auto kai-focus-inset",n.class)}},r),!1,!0),v(o,()=>n.children),o}})}function G(t){const[n,r]=f(t,["children","class"]);return(()=>{var e=D();return h(e,m({get class(){return d("flex w-full flex-col",n.class)}},r),!1,!0),v(e,()=>n.children),e})()}function J(t){const[n,r]=f(t,["class"]);return(()=>{var e=O();return h(e,m({get class(){return d("h-px w-full shrink-0 scroll-mt-4",n.class)}},r),!1,!1),e})()}var K=u("<span>");const M="Scroll to bottom";function R(t){return(t??"outline")==="outline"?"border border-input bg-card text-card-foreground kai-elevation":"kai-elevation"}function U(t){const{isAtBottom:n,scrollToBottom:r}=P(),e=()=>t.label??M,a=()=>t.showLabel===!0;return c(E,{get variant(){return t.variant??"outline"},get size(){return t.size??"sm"},get"aria-label"(){return L(()=>!!a())()?void 0:e()},get tabindex(){return n()?-1:0},get"aria-hidden"(){return n()?"true":void 0},get class(){return d("rounded-lg transition-all duration-150 ease-out",R(t.variant),a()?"h-10 w-auto gap-1.5 px-3.5 text-sm":"h-10 w-10 px-0",n()?"pointer-events-none translate-y-4 scale-95 opacity-0":"translate-y-0 scale-100 opacity-100",t.class)},onClick:()=>r(),get children(){return[c(F,{class:"h-4 w-4 shrink-0","aria-hidden":"true"}),c(H,{get when(){return a()},get children(){var i=K();return v(i,e),i}})]}})}export{j as C,U as S,G as a,J as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as b,u as S,j as A,p as w,q as C,i as s,c as u,a as c,S as f,F as x,b as F,t as d}from"./define-
|
|
1
|
+
import{s as b,u as S,j as A,p as w,q as C,i as s,c as u,a as c,S as f,F as x,b as F,t as d}from"./define-By-uL588.js";import{c as h}from"./cn-DN5AWfiS.js";import{e as q,F as j}from"./input-DKbmkMos.js";import{c as k}from"./chevron-down-B72s6PXR.js";var z=d("<option value disabled>"),D=d("<div><select>"),E=d("<option>");function I(g){const[r,p]=b(g,["class","containerClass","options","value","placeholder","invalid","children","ref"]),v=()=>!!p.multiple,m=t=>{const a=r.value;return Array.isArray(a)?a.includes(t):a===t},y=()=>{const t=r.value;return Array.isArray(t)?t.length===0:t==null||t===""};return(()=>{var t=D(),a=t.firstChild;return S(e=>{const l=r.ref;typeof l=="function"&&l(e),A(()=>{if(r.children===void 0)return;const n=r.value;if(n!=null)if(Array.isArray(n)){const o=new Set(n.map(String));for(const i of e.options)i.selected=o.has(i.value)}else e.value=String(n)})},a),w(a,C(p,{get class(){return h(j,"peer",!v()&&"cursor-pointer appearance-none pr-9",r.invalid&&q,r.class)}}),!1,!0),s(a,u(f,{get when(){return r.placeholder!==void 0},get children(){var e=z();return s(e,()=>r.placeholder),c(()=>e.selected=y()),e}}),null),s(a,u(x,{get each(){return r.options},children:e=>(()=>{var l=E();return s(l,()=>e.label??String(e.value)),c(n=>{var o=e.disabled,i=m(e.value);return o!==n.e&&(l.disabled=n.e=o),i!==n.t&&(l.selected=n.t=i),n},{e:void 0,t:void 0}),c(()=>l.value=String(e.value)),l})()}),null),s(a,()=>r.children,null),s(t,u(f,{get when(){return!v()},get children(){return u(k,{"aria-hidden":"true",class:"pointer-events-none absolute right-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground peer-disabled:opacity-50"})}}),null),c(()=>F(t,h("relative block w-full",r.containerClass))),t})()}export{I as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e,p as n,q as i,t as l}from"./define-
|
|
1
|
+
import{s as e,p as n,q as i,t as l}from"./define-By-uL588.js";import{c}from"./cn-DN5AWfiS.js";var p=l("<div role=separator>");function u(t){const[r,a]=e(t,["orientation","class"]),o=()=>r.orientation==="vertical";return(()=>{var s=p();return n(s,i({get class(){return c("shrink-0 bg-border",o()?"h-full w-px":"h-px w-full",r.class)}},a),!1,!1),s})()}export{u as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as l}from"./Icon-
|
|
1
|
+
import{I as l}from"./Icon-DObhsRtm.js";import{c as r,q as e}from"./define-By-uL588.js";var o=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],m=a=>r(l,e(a,{name:"Settings",iconNode:o})),t=m;export{t as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,c as a,S as d,a as c,b as u,t as i}from"./define-
|
|
1
|
+
import{i as e,c as a,S as d,a as c,b as u,t as i}from"./define-By-uL588.js";import{c as f}from"./cn-DN5AWfiS.js";var p=i('<p class="text-xs text-muted-foreground">'),x=i('<section><div part=header class="flex flex-col gap-0.5 px-1"><h3 class="text-xs font-semibold uppercase tracking-wide text-muted-foreground"></h3></div><div part=body class="divide-y divide-border overflow-hidden rounded-xl border border-border bg-surface">'),g=i('<span class="text-xs leading-snug text-muted-foreground">'),h=i("<div part=control class=shrink-0>"),v=i('<div><div part=label class="flex min-w-0 flex-col gap-0.5"><span class="text-sm text-foreground">');function b(r){return(()=>{var t=x(),s=t.firstChild,l=s.firstChild,n=s.nextSibling;return e(l,()=>r.heading),e(s,a(d,{get when(){return r.description},get children(){var o=p();return e(o,()=>r.description),o}}),null),e(n,()=>r.children),c(()=>u(t,f("flex flex-col gap-2",r.class))),t})()}function m(r){return(()=>{var t=v(),s=t.firstChild,l=s.firstChild;return e(l,()=>r.label),e(s,a(d,{get when(){return r.description},get children(){var n=g();return e(n,()=>r.description),n}}),null),e(t,a(d,{get when(){return r.control},get children(){var n=h();return e(n,()=>r.control),n}}),null),c(()=>u(t,f("flex items-center justify-between gap-4 px-4 py-3",r.class))),t})()}export{m as S,b as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as v,c as u,i as m,F as p,S as w,t as c,p as x,q as y}from"./define-
|
|
1
|
+
import{s as v,c as u,i as m,F as p,S as w,t as c,p as x,q as y}from"./define-By-uL588.js";import{c as b}from"./cn-DN5AWfiS.js";var k=c("<div part=skeleton>"),S=c('<div class="flex w-full flex-col gap-2">');const i=r=>typeof r=="number"?`${r}px`:r,F=r=>r==="circle"?"rounded-full":r==="text"?"rounded":"rounded-md";function j(r){const[t,o]=v(r,["class","variant","width","height","lines","style"]),s=()=>t.width!=null,d=()=>t.height!=null,g=()=>!s()&&t.variant!=null&&t.variant!=="circle",f=a=>{const e=typeof t.style=="object"&&t.style?{...t.style}:{};if(t.variant==="circle"){const n=i(t.width)??i(t.height)??"2.5rem";return e.width=n,e.height=n,e}return a?e.width="70%":s()&&(e.width=i(t.width)),d()?e.height=i(t.height):t.variant==="text"&&(e.height="0.75rem"),e},h=(a=!1)=>(()=>{var e=k();return x(e,y({get class(){return b("animate-pulse bg-foreground/10",F(t.variant),g()&&"w-full",t.class)},get style(){return f(a)}},o),!1,!1),e})(),l=()=>t.variant==="text"?Math.max(1,t.lines??1):1;return u(w,{get when(){return l()>1},get fallback(){return h()},get children(){var a=S();return m(a,u(p,{get each(){return Array.from({length:l()})},children:(e,n)=>h(n()===l()-1)})),a}})}export{j as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as x,g as b,c as h,i as c,S as y,t as m,u as k,p as $,q as w}from"./define-
|
|
1
|
+
import{s as x,g as b,c as h,i as c,S as y,t as m,u as k,p as $,q as w}from"./define-By-uL588.js";import{c as L}from"./cn-DN5AWfiS.js";var S=m("<input>"),q=m('<div class="flex items-center gap-3"><span aria-hidden=true class="min-w-9 shrink-0 rounded-md bg-background px-2 py-1 text-center text-sm font-medium tabular-nums text-foreground shadow-sm">');function M(u){const[t,g]=x(u,["class","style","min","max","step","value","defaultValue","ref","valueLabel"]),[i,f]=b(u.defaultValue),s=()=>t.value??i()??(t.min+t.max)/2,l=()=>{const e=t.min,a=t.max;if(!(a>e))return"0%";const n=(s()-e)/(a-e)*100;return`${Math.min(100,Math.max(0,n))}%`},p=()=>{const e=t.style;return typeof e=="string"?`${e.replace(/;\s*$/,"")};--kai-range-fill:${l()}`:{...e??{},"--kai-range-fill":l()}};let r;const v=()=>{const e=t.value;e===void 0||r===void 0||r.valueAsNumber!==e&&(r.value=String(e))},d=()=>{const e=t.valueLabel;return typeof e=="function"?e(s()):s()},o=()=>(()=>{var e=S();return k(a=>{r=a;const n=t.ref;typeof n=="function"&&n(a)},e),$(e,w(g,{type:"range",get class(){return L("kai-range",t.class)},get style(){return p()},get min(){return t.min},get max(){return t.max},get step(){return t.step},get value(){return t.value??i()??void 0},"on:input":a=>{f(a.currentTarget.valueAsNumber),queueMicrotask(v)}}),!1,!1),e})();return h(y,{get when(){return t.valueLabel},get fallback(){return o()},get children(){var e=q(),a=e.firstChild;return c(e,o,a),c(a,d),e}})}export{M as S};
|