laif-ds 0.1.2 → 0.1.3
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/_virtual/jsx-runtime.js +6 -0
- package/dist/_virtual/jsx-runtime2.js +5 -0
- package/dist/_virtual/react-jsx-runtime.development.js +5 -0
- package/dist/_virtual/react-jsx-runtime.production.js +5 -0
- package/dist/components/ui/accordion.js +65 -0
- package/dist/components/ui/alert-dialog.js +147 -0
- package/dist/components/ui/alert.js +67 -0
- package/dist/components/ui/aspect-ratio.js +11 -0
- package/dist/components/ui/async-select.js +172 -0
- package/dist/components/ui/audio-visualizer.js +94 -0
- package/dist/components/ui/avatar.js +54 -0
- package/dist/components/ui/badge.js +41 -0
- package/dist/components/ui/button.js +66 -0
- package/dist/components/ui/calendar.js +62 -0
- package/dist/components/ui/card.js +77 -0
- package/dist/components/ui/carousel.js +178 -0
- package/dist/components/ui/chart.js +216 -0
- package/dist/components/ui/chat-message.js +250 -0
- package/dist/components/ui/chat.js +226 -0
- package/dist/components/ui/checkbox.js +32 -0
- package/dist/components/ui/collapsible.js +35 -0
- package/dist/components/ui/command.js +162 -0
- package/dist/components/ui/context-menu.js +224 -0
- package/dist/components/ui/copy-button.js +45 -0
- package/dist/components/ui/date-picker.js +59 -0
- package/dist/components/ui/dialog.js +123 -0
- package/dist/components/ui/drawer.js +120 -0
- package/dist/components/ui/file-preview.js +120 -0
- package/dist/components/ui/form.js +102 -0
- package/dist/components/ui/hover-card.js +39 -0
- package/dist/components/ui/icon.js +35 -0
- package/dist/components/ui/input-otp.js +62 -0
- package/dist/components/ui/input-selector.js +119 -0
- package/dist/components/ui/input.js +70 -0
- package/dist/components/ui/interrupt-prompt.js +38 -0
- package/dist/components/ui/label.js +23 -0
- package/dist/components/ui/markdown-renderer.js +126 -0
- package/dist/components/ui/menubar.js +252 -0
- package/dist/components/ui/message-input.js +336 -0
- package/dist/components/ui/message-list.js +29 -0
- package/dist/components/ui/multiple-selector.js +350 -0
- package/dist/components/ui/navigation-menu.js +171 -0
- package/dist/components/ui/pagination.js +119 -0
- package/dist/components/ui/popover.js +39 -0
- package/dist/components/ui/progress.js +32 -0
- package/dist/components/ui/prompt-suggestions.js +23 -0
- package/dist/components/ui/radio-group.js +46 -0
- package/dist/components/ui/resizable.js +49 -0
- package/dist/components/ui/scroll-area.js +61 -0
- package/dist/components/ui/select.js +189 -0
- package/dist/components/ui/separator.js +27 -0
- package/dist/components/ui/sheet.js +121 -0
- package/dist/components/ui/sidebar.js +599 -0
- package/dist/components/ui/skeleton.js +16 -0
- package/dist/components/ui/sonner.js +23 -0
- package/dist/components/ui/switch.js +32 -0
- package/dist/components/ui/table.js +115 -0
- package/dist/components/ui/tabs.js +68 -0
- package/dist/components/ui/textarea.js +19 -0
- package/dist/components/ui/toggle-group.js +63 -0
- package/dist/components/ui/toggle.js +44 -0
- package/dist/components/ui/tooltip.js +56 -0
- package/dist/components/ui/typing-indicator.js +13 -0
- package/dist/hooks/use-audio-recording.js +55 -0
- package/dist/hooks/use-auto-scroll.js +37 -0
- package/dist/hooks/use-autosize-textarea.js +22 -0
- package/dist/hooks/use-copy-to-clipboard.js +25 -0
- package/dist/hooks/use-debounce.js +16 -0
- package/dist/hooks/use-mobile.js +17 -0
- package/dist/index.d.ts +1088 -8
- package/dist/index.js +299 -0
- package/dist/lib/audio-utils.js +30 -0
- package/dist/lib/utils.js +9 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +248 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +36 -0
- package/dist/node_modules/react/jsx-runtime.js +11 -0
- package/dist/styles.css +1 -1
- package/package.json +15 -43
- package/dist/abap-BmBUA35e.js +0 -6
- package/dist/actionscript-3-zFUbzQa9.js +0 -6
- package/dist/ada-CBvPkFpZ.js +0 -6
- package/dist/andromeeda-uXNdzNpk.js +0 -4
- package/dist/angular-html-0fTdLuKf.js +0 -32
- package/dist/angular-ts-wkniW60G.js +0 -21
- package/dist/apache-CVNlsSDc.js +0 -6
- package/dist/apex-DFk3KRB1.js +0 -6
- package/dist/apl-TLDHFJX6.js +0 -16
- package/dist/applescript-CYMR_y0g.js +0 -6
- package/dist/ara-4QmU5e04.js +0 -6
- package/dist/asciidoc-v_1bjgUg.js +0 -6
- package/dist/asm-RC0Yh-NZ.js +0 -6
- package/dist/astro-Uf8_VxKJ.js +0 -16
- package/dist/aurora-x-BwoVEUWZ.js +0 -4
- package/dist/awk-gPH8MVMW.js +0 -6
- package/dist/ayu-dark-CxPZkpb2.js +0 -4
- package/dist/ballerina-kvLnRU_e.js +0 -6
- package/dist/bat-BHYy44sT.js +0 -6
- package/dist/beancount-D-MADTs_.js +0 -6
- package/dist/berry-Ci9U0o4h.js +0 -6
- package/dist/bibtex-CX618D15.js +0 -6
- package/dist/bicep-iuYiPopT.js +0 -6
- package/dist/blade-BtR00Gx0.js +0 -18
- package/dist/bsl-BIXPNqL4.js +0 -8
- package/dist/c-DASdrs7p.js +0 -6
- package/dist/cadence-BDALQi26.js +0 -6
- package/dist/cairo-tXZKA2PT.js +0 -8
- package/dist/catppuccin-frappe-BrTOiad2.js +0 -4
- package/dist/catppuccin-latte-D-dc_R4m.js +0 -4
- package/dist/catppuccin-macchiato-DN4jOp0G.js +0 -4
- package/dist/catppuccin-mocha-B8yCE3-3.js +0 -4
- package/dist/clarity-CNgV2Ths.js +0 -6
- package/dist/clojure-CsKKFGwv.js +0 -6
- package/dist/cmake-Dr-A3iJx.js +0 -6
- package/dist/cobol-DMssKNmC.js +0 -10
- package/dist/codeowners-Bt9yU6NX.js +0 -6
- package/dist/codeql-DBNTqJi1.js +0 -6
- package/dist/coffee-D_GzM8k1.js +0 -8
- package/dist/common-lisp-r7ZEOG7T.js +0 -6
- package/dist/components/atoms/index.d.ts +0 -20
- package/dist/components/index.d.ts +0 -3
- package/dist/components/molecules/index.d.ts +0 -29
- package/dist/components/organisms/index.d.ts +0 -14
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/alert-dialog.d.ts +0 -14
- package/dist/components/ui/alert.d.ts +0 -9
- package/dist/components/ui/aspect-ratio.d.ts +0 -3
- package/dist/components/ui/async-select.d.ts +0 -54
- package/dist/components/ui/audio-visualizer.d.ts +0 -7
- package/dist/components/ui/avatar.d.ts +0 -6
- package/dist/components/ui/badge.d.ts +0 -9
- package/dist/components/ui/button.d.ts +0 -14
- package/dist/components/ui/calendar.d.ts +0 -4
- package/dist/components/ui/card.d.ts +0 -9
- package/dist/components/ui/carousel.d.ts +0 -19
- package/dist/components/ui/chart.d.ts +0 -40
- package/dist/components/ui/chat-message.d.ts +0 -62
- package/dist/components/ui/chat.d.ts +0 -53
- package/dist/components/ui/checkbox.d.ts +0 -4
- package/dist/components/ui/collapsible.d.ts +0 -5
- package/dist/components/ui/command.d.ts +0 -16
- package/dist/components/ui/context-menu.d.ts +0 -25
- package/dist/components/ui/copy-button.d.ts +0 -6
- package/dist/components/ui/date-picker.d.ts +0 -11
- package/dist/components/ui/dialog.d.ts +0 -13
- package/dist/components/ui/drawer.d.ts +0 -13
- package/dist/components/ui/file-preview.d.ts +0 -7
- package/dist/components/ui/form.d.ts +0 -24
- package/dist/components/ui/hover-card.d.ts +0 -6
- package/dist/components/ui/icon.d.ts +0 -33
- package/dist/components/ui/input-otp.d.ts +0 -11
- package/dist/components/ui/input-selector.d.ts +0 -14
- package/dist/components/ui/input.d.ts +0 -14
- package/dist/components/ui/interrupt-prompt.d.ts +0 -6
- package/dist/components/ui/label.d.ts +0 -4
- package/dist/components/ui/markdown-renderer.d.ts +0 -5
- package/dist/components/ui/menubar.d.ts +0 -26
- package/dist/components/ui/message-input.d.ts +0 -23
- package/dist/components/ui/message-list.d.ts +0 -10
- package/dist/components/ui/multiple-selector.d.ts +0 -75
- package/dist/components/ui/navigation-menu.d.ts +0 -14
- package/dist/components/ui/pagination.d.ts +0 -13
- package/dist/components/ui/popover.d.ts +0 -7
- package/dist/components/ui/progress.d.ts +0 -4
- package/dist/components/ui/prompt-suggestions.d.ts +0 -10
- package/dist/components/ui/radio-group.d.ts +0 -5
- package/dist/components/ui/resizable.d.ts +0 -8
- package/dist/components/ui/scroll-area.d.ts +0 -5
- package/dist/components/ui/select.d.ts +0 -21
- package/dist/components/ui/separator.d.ts +0 -4
- package/dist/components/ui/sheet.d.ts +0 -13
- package/dist/components/ui/sidebar.d.ts +0 -69
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/sonner.d.ts +0 -3
- package/dist/components/ui/switch.d.ts +0 -4
- package/dist/components/ui/table.d.ts +0 -10
- package/dist/components/ui/tabs.d.ts +0 -7
- package/dist/components/ui/textarea.d.ts +0 -3
- package/dist/components/ui/toggle-group.d.ts +0 -7
- package/dist/components/ui/toggle.d.ts +0 -9
- package/dist/components/ui/tooltip.d.ts +0 -7
- package/dist/components/ui/typing-indicator.d.ts +0 -1
- package/dist/coq-CB6Pv_W9.js +0 -6
- package/dist/cpp-CJF2i3ah.js +0 -18
- package/dist/crystal-BKWnaU3g.js +0 -18
- package/dist/csharp-CYWRhZ2R.js +0 -6
- package/dist/css-D1aVdRIU.js +0 -6
- package/dist/csv-DvCncUGQ.js +0 -6
- package/dist/cue-BXMrmvay.js +0 -6
- package/dist/cypher-DTm5zNR1.js +0 -6
- package/dist/d-D6ZXmn3l.js +0 -6
- package/dist/dark-plus-pUHDTVV0.js +0 -4
- package/dist/dart-Dz59Is3F.js +0 -6
- package/dist/dax-DTVGzydb.js +0 -6
- package/dist/desktop-Db9vb-dl.js +0 -6
- package/dist/diff-XmNrvgM1.js +0 -6
- package/dist/docker-DWH2onkn.js +0 -6
- package/dist/dotenv-4337wvzu.js +0 -6
- package/dist/dracula-BtZx2Kac.js +0 -4
- package/dist/dracula-soft-BKa-aqBv.js +0 -4
- package/dist/dream-maker-CvvfrJSx.js +0 -6
- package/dist/edge-CgxR-qhM.js +0 -12
- package/dist/elixir-DZkeSPwW.js +0 -8
- package/dist/elm-BKuV1HE1.js +0 -8
- package/dist/emacs-lisp-BAefI874.js +0 -6
- package/dist/erb-BLwkpXUJ.js +0 -10
- package/dist/erlang-CmIiwF3I.js +0 -6
- package/dist/everforest-dark-DMCBqXCK.js +0 -4
- package/dist/everforest-light-BbXl82Em.js +0 -4
- package/dist/fennel-DNqkz9pE.js +0 -6
- package/dist/fish-DIm72t2T.js +0 -6
- package/dist/fluent-BapTxJsC.js +0 -6
- package/dist/fortran-fixed-form-s9Hnb3av.js +0 -8
- package/dist/fortran-free-form-CNDsBFUj.js +0 -6
- package/dist/fsharp-Cv0x43wb.js +0 -8
- package/dist/gdresource-CMcKXvgJ.js +0 -10
- package/dist/gdscript-D7aheHm-.js +0 -6
- package/dist/gdshader-BGJEsM2Z.js +0 -6
- package/dist/genie-C9gPjc6J.js +0 -6
- package/dist/gherkin-bka1Exbx.js +0 -6
- package/dist/git-commit-BspYIY3P.js +0 -8
- package/dist/git-rebase--zLBTjUa.js +0 -8
- package/dist/github-dark-DenFmJkN.js +0 -4
- package/dist/github-dark-default-BJPUVz4H.js +0 -4
- package/dist/github-dark-dimmed-DUshB20C.js +0 -4
- package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
- package/dist/github-light-JYsPkUQd.js +0 -4
- package/dist/github-light-default-D99KPAby.js +0 -4
- package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
- package/dist/gleam-B4k9YFGD.js +0 -6
- package/dist/glimmer-js-DhY9umHJ.js +0 -14
- package/dist/glimmer-ts-CCrHcYH5.js +0 -14
- package/dist/glsl-XLGYNq5B.js +0 -8
- package/dist/gnuplot-DnWoRZt-.js +0 -6
- package/dist/go-BErP6iv1.js +0 -6
- package/dist/graphql-DWpQF4JI.js +0 -14
- package/dist/groovy-IWs5-NIO.js +0 -6
- package/dist/hack-CQrV-ytR.js +0 -10
- package/dist/haml-CMN0hQaL.js +0 -10
- package/dist/handlebars-Cc-7fXX5.js +0 -14
- package/dist/haskell-CtlGos0K.js +0 -6
- package/dist/haxe-CZZ33vZw.js +0 -6
- package/dist/hcl-6hOg9WP4.js +0 -6
- package/dist/hjson-CgwED-oz.js +0 -6
- package/dist/hlsl-3-lv4gi7.js +0 -6
- package/dist/hooks/index.d.ts +0 -6
- package/dist/hooks/use-audio-recording.d.ts +0 -14
- package/dist/hooks/use-auto-scroll.d.ts +0 -7
- package/dist/hooks/use-autosize-textarea.d.ts +0 -8
- package/dist/hooks/use-copy-to-clipboard.d.ts +0 -9
- package/dist/hooks/use-debounce.d.ts +0 -1
- package/dist/hooks/use-mobile.d.ts +0 -1
- package/dist/houston-BDYrDoDW.js +0 -4
- package/dist/html-B0P_v3yU.js +0 -10
- package/dist/html-derivative-D59SHfh8.js +0 -8
- package/dist/http-Dcjm_K1m.js +0 -14
- package/dist/hxml-BNKImryz.js +0 -8
- package/dist/hy-C2xHhR6I.js +0 -6
- package/dist/imba-Drd0AMDo.js +0 -8
- package/dist/index-B3zhPw_i.js +0 -6376
- package/dist/index-CX8WDA1V.js +0 -71798
- package/dist/ini-BUcvsX-U.js +0 -6
- package/dist/java-B7odJ7Ap.js +0 -6
- package/dist/javascript-fa8UlHZE.js +0 -6
- package/dist/jinja-CCSYduCH.js +0 -11
- package/dist/jison-BygvlveW.js +0 -8
- package/dist/json-71t8ZF9g.js +0 -6
- package/dist/json5-Z7F6rA6a.js +0 -6
- package/dist/jsonc-Dphhs4m2.js +0 -6
- package/dist/jsonl-D9jj92Gg.js +0 -6
- package/dist/jsonnet-DEQ7IUoJ.js +0 -6
- package/dist/jssm-j74e88UX.js +0 -6
- package/dist/jsx-Bkesy5tT.js +0 -6
- package/dist/julia-CiahampL.js +0 -16
- package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
- package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
- package/dist/kanagawa-wave-CQwozSzG.js +0 -4
- package/dist/kotlin-DCgZY7Ii.js +0 -6
- package/dist/kusto-Cw029H-v.js +0 -6
- package/dist/laif-ds.es.js +0 -238
- package/dist/laif-ds.umd.js +0 -8032
- package/dist/laserwave-6a00oqik.js +0 -4
- package/dist/latex-LfGCYGw5.js +0 -8
- package/dist/lean-CYSet4vs.js +0 -6
- package/dist/less-DQA4v-Nm.js +0 -6
- package/dist/light-plus-CZuVqSLX.js +0 -4
- package/dist/liquid-CvufO3kO.js +0 -14
- package/dist/log-D2eRfqDn.js +0 -6
- package/dist/logo-QEAtGWZ9.js +0 -6
- package/dist/lua-BVfhNLDr.js +0 -8
- package/dist/luau-BjYGiqID.js +0 -6
- package/dist/make-BjuHP00g.js +0 -6
- package/dist/markdown-B6guhLWd.js +0 -6
- package/dist/marko-CHlMS8w5.js +0 -14
- package/dist/material-theme-D6KBX41T.js +0 -4
- package/dist/material-theme-darker-CkRroheE.js +0 -4
- package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
- package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
- package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
- package/dist/matlab-BpQlIJiw.js +0 -6
- package/dist/mdc-4K6B6lHG.js +0 -12
- package/dist/mdx-DIoECIFU.js +0 -6
- package/dist/mermaid-BZ7WHNIe.js +0 -6
- package/dist/min-dark-C7ak0t6c.js +0 -4
- package/dist/min-light-CKFxVcPp.js +0 -4
- package/dist/mipsasm-DusDYkFc.js +0 -6
- package/dist/mojo-CY9jaezJ.js +0 -6
- package/dist/monokai-C1KBYcO0.js +0 -4
- package/dist/move-ChphFumd.js +0 -6
- package/dist/narrat-Dz4d7OmN.js +0 -6
- package/dist/nextflow-DW0Yq9a2.js +0 -6
- package/dist/nginx-Can2eAjw.js +0 -8
- package/dist/night-owl-Bm2rzalh.js +0 -4
- package/dist/nim-B3r2RtQZ.js +0 -20
- package/dist/nix-Cg5uV_xg.js +0 -6
- package/dist/nord-CC5OiUXg.js +0 -4
- package/dist/nushell-BfRnzRWn.js +0 -6
- package/dist/objective-c-BGg9R27G.js +0 -6
- package/dist/objective-cpp-CJ3y3V_5.js +0 -6
- package/dist/ocaml-BZLsfx_o.js +0 -6
- package/dist/one-dark-pro-D7-kP8fv.js +0 -4
- package/dist/one-light-D9sNaUtq.js +0 -4
- package/dist/pascal-l2bqd7Dz.js +0 -6
- package/dist/perl-DaMQyPwp.js +0 -16
- package/dist/php-BL3EfPBi.js +0 -18
- package/dist/plastic-CSTz3KZp.js +0 -4
- package/dist/plsql-oVq_K_wH.js +0 -6
- package/dist/po-5jaeIyVd.js +0 -6
- package/dist/poimandres-C-VADXHD.js +0 -4
- package/dist/polar-wcLp8ci7.js +0 -6
- package/dist/postcss-BZ3MNRIJ.js +0 -6
- package/dist/powerquery-CgRa2XRw.js +0 -6
- package/dist/powershell-Diwyv8Eh.js +0 -6
- package/dist/prisma-COL_v1x4.js +0 -6
- package/dist/prolog-CuvJOxqT.js +0 -6
- package/dist/proto-o9HLmF90.js +0 -6
- package/dist/pug-HKe4Luo3.js +0 -12
- package/dist/puppet-wpGOnQp5.js +0 -6
- package/dist/purescript-B_1NgE2N.js +0 -6
- package/dist/python-xYxLFJY-.js +0 -6
- package/dist/qml-FlMIyjU9.js +0 -8
- package/dist/qmldir-BInDYbpo.js +0 -6
- package/dist/qss-D-h4NdUG.js +0 -6
- package/dist/r-F-9I-ITZ.js +0 -6
- package/dist/racket-BoD1TBFT.js +0 -6
- package/dist/raku-IaYcw19m.js +0 -6
- package/dist/razor-CeqqNtyB.js +0 -10
- package/dist/red-7y8PH7HH.js +0 -4
- package/dist/reg-CMUdAgIP.js +0 -6
- package/dist/regexp-GiFkbxS-.js +0 -6
- package/dist/rel-BaRn3QX7.js +0 -6
- package/dist/riscv-B9V3SsvW.js +0 -6
- package/dist/rose-pine-DhT-HZE9.js +0 -4
- package/dist/rose-pine-dawn-DiCjL2i4.js +0 -4
- package/dist/rose-pine-moon-BNmGHlcn.js +0 -4
- package/dist/rst-C3D6-dqL.js +0 -22
- package/dist/ruby-DcPLUUK3.js +0 -30
- package/dist/rust-Pc7DCsZD.js +0 -6
- package/dist/sas-tDSYjXcL.js +0 -8
- package/dist/sass-iCyS6eP9.js +0 -6
- package/dist/scala-Cly-fENF.js +0 -6
- package/dist/scheme-Zi24oEYu.js +0 -6
- package/dist/scss-DhHc4lxB.js +0 -8
- package/dist/sdbl-BBamrXFL.js +0 -6
- package/dist/shaderlab-CvqEIoL0.js +0 -8
- package/dist/shellscript-Dn0-btNd.js +0 -6
- package/dist/shellsession-8OLo3sB6.js +0 -8
- package/dist/slack-dark-i7wN4OET.js +0 -4
- package/dist/slack-ochin-ndHf0LoP.js +0 -4
- package/dist/smalltalk-Cns31tKw.js +0 -6
- package/dist/snazzy-light-BlSJXAu4.js +0 -4
- package/dist/solarized-dark-UTmkh7lw.js +0 -4
- package/dist/solarized-light-BheCkDPT.js +0 -4
- package/dist/solidity-BG_k8fA_.js +0 -6
- package/dist/soy-EwHMOVPj.js +0 -8
- package/dist/sparql-DhuelBut.js +0 -8
- package/dist/splunk-CTqDjQdo.js +0 -6
- package/dist/sql-DCkt643-.js +0 -6
- package/dist/ssh-config-DHHGll-v.js +0 -6
- package/dist/stata-Dok6hMw0.js +0 -8
- package/dist/stylus-n_9f0QQ5.js +0 -6
- package/dist/svelte-01qw6Rxm.js +0 -14
- package/dist/swift-BAWqNR8A.js +0 -6
- package/dist/synthwave-84-NU3C_KFZ.js +0 -4
- package/dist/system-verilog-Cui-g-ut.js +0 -6
- package/dist/systemd-CsKYQIQK.js +0 -6
- package/dist/talonscript-D2dGh8FO.js +0 -6
- package/dist/tasl-D3W8HMV6.js +0 -6
- package/dist/tcl-2y0Fuc4S.js +0 -6
- package/dist/templ-Hmy8U0DD.js +0 -12
- package/dist/terraform-BGW6Oerf.js +0 -6
- package/dist/tex-mHs7a43s.js +0 -8
- package/dist/tokyo-night-LhP3hHhi.js +0 -4
- package/dist/toml-CQSfOn0e.js +0 -6
- package/dist/ts-tags-DYZ4SGcN.js +0 -41
- package/dist/tsv-BtvSkaG0.js +0 -6
- package/dist/tsx-DiGsgWT8.js +0 -6
- package/dist/turtle-BJ2wmjPc.js +0 -6
- package/dist/twig-BmytkGQV.js +0 -18
- package/dist/typescript-buWNZFwO.js +0 -6
- package/dist/typespec-bLbdsxJL.js +0 -6
- package/dist/typst-Y9_SmXTs.js +0 -6
- package/dist/v-wa8Orrdd.js +0 -6
- package/dist/vala-DRdriFr_.js +0 -6
- package/dist/vb-E2_-jk4M.js +0 -6
- package/dist/verilog-B1iBoR5_.js +0 -6
- package/dist/vesper-CJsaOsSM.js +0 -4
- package/dist/vhdl-CRVaAhXk.js +0 -6
- package/dist/viml-B-zWOd7Z.js +0 -6
- package/dist/vitesse-black-BoGvW84i.js +0 -4
- package/dist/vitesse-dark-Cym-eLtO.js +0 -4
- package/dist/vitesse-light-CcmG315c.js +0 -4
- package/dist/vue-Bl1uVNsA.js +0 -31
- package/dist/vue-html-DHr5wjBG.js +0 -10
- package/dist/vyper-DWutKXpa.js +0 -6
- package/dist/wasm-Bv5f0gKv.js +0 -6
- package/dist/wasm-DQxwEHae.js +0 -7
- package/dist/wenyan-BMYnfus1.js +0 -6
- package/dist/wgsl-DnPoPGDU.js +0 -6
- package/dist/wikitext-CntM04PE.js +0 -6
- package/dist/wolfram-Ws5qPlX9.js +0 -6
- package/dist/xml-ChBsf5uy.js +0 -8
- package/dist/xsl-BefjlXrd.js +0 -8
- package/dist/yaml-Bbg74JKr.js +0 -6
- package/dist/zenscript-C0RKE4nU.js +0 -6
- package/dist/zig-D6SXBGNm.js +0 -6
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as s } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as n from "react";
|
|
4
|
+
import { Slot as f } from "@radix-ui/react-slot";
|
|
5
|
+
import { FormProvider as u, Controller as x, useFormContext as F, useFormState as I } from "react-hook-form";
|
|
6
|
+
import { cn as a } from "../../lib/utils.js";
|
|
7
|
+
import { Label as p } from "./label.js";
|
|
8
|
+
const b = u, c = n.createContext(
|
|
9
|
+
{}
|
|
10
|
+
), S = ({
|
|
11
|
+
...t
|
|
12
|
+
}) => /* @__PURE__ */ s.jsx(c.Provider, { value: { name: t.name }, children: /* @__PURE__ */ s.jsx(x, { ...t }) }), d = () => {
|
|
13
|
+
const t = n.useContext(c), o = n.useContext(l), { getFieldState: e } = F(), r = I({ name: t.name }), m = e(t.name, r);
|
|
14
|
+
if (!t)
|
|
15
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
16
|
+
const { id: i } = o;
|
|
17
|
+
return {
|
|
18
|
+
id: i,
|
|
19
|
+
name: t.name,
|
|
20
|
+
formItemId: `${i}-form-item`,
|
|
21
|
+
formDescriptionId: `${i}-form-item-description`,
|
|
22
|
+
formMessageId: `${i}-form-item-message`,
|
|
23
|
+
...m
|
|
24
|
+
};
|
|
25
|
+
}, l = n.createContext(
|
|
26
|
+
{}
|
|
27
|
+
);
|
|
28
|
+
function $({ className: t, ...o }) {
|
|
29
|
+
const e = n.useId();
|
|
30
|
+
return /* @__PURE__ */ s.jsx(l.Provider, { value: { id: e }, children: /* @__PURE__ */ s.jsx(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
"data-slot": "form-item",
|
|
34
|
+
className: a("grid gap-2", t),
|
|
35
|
+
...o
|
|
36
|
+
}
|
|
37
|
+
) });
|
|
38
|
+
}
|
|
39
|
+
function D({
|
|
40
|
+
className: t,
|
|
41
|
+
...o
|
|
42
|
+
}) {
|
|
43
|
+
const { error: e, formItemId: r } = d();
|
|
44
|
+
return /* @__PURE__ */ s.jsx(
|
|
45
|
+
p,
|
|
46
|
+
{
|
|
47
|
+
"data-slot": "form-label",
|
|
48
|
+
"data-error": !!e,
|
|
49
|
+
className: a("data-[error=true]:text-destructive", t),
|
|
50
|
+
htmlFor: r,
|
|
51
|
+
...o
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
function M({ ...t }) {
|
|
56
|
+
const { error: o, formItemId: e, formDescriptionId: r, formMessageId: m } = d();
|
|
57
|
+
return /* @__PURE__ */ s.jsx(
|
|
58
|
+
f,
|
|
59
|
+
{
|
|
60
|
+
"data-slot": "form-control",
|
|
61
|
+
id: e,
|
|
62
|
+
"aria-describedby": o ? `${r} ${m}` : `${r}`,
|
|
63
|
+
"aria-invalid": !!o,
|
|
64
|
+
...t
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
function N({ className: t, ...o }) {
|
|
69
|
+
const { formDescriptionId: e } = d();
|
|
70
|
+
return /* @__PURE__ */ s.jsx(
|
|
71
|
+
"p",
|
|
72
|
+
{
|
|
73
|
+
"data-slot": "form-description",
|
|
74
|
+
id: e,
|
|
75
|
+
className: a("text-muted-foreground text-sm", t),
|
|
76
|
+
...o
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function w({ className: t, ...o }) {
|
|
81
|
+
const { error: e, formMessageId: r } = d(), m = e ? String((e == null ? void 0 : e.message) ?? "") : o.children;
|
|
82
|
+
return m ? /* @__PURE__ */ s.jsx(
|
|
83
|
+
"p",
|
|
84
|
+
{
|
|
85
|
+
"data-slot": "form-message",
|
|
86
|
+
id: r,
|
|
87
|
+
className: a("text-destructive text-sm", t),
|
|
88
|
+
...o,
|
|
89
|
+
children: m
|
|
90
|
+
}
|
|
91
|
+
) : null;
|
|
92
|
+
}
|
|
93
|
+
export {
|
|
94
|
+
b as Form,
|
|
95
|
+
M as FormControl,
|
|
96
|
+
N as FormDescription,
|
|
97
|
+
S as FormField,
|
|
98
|
+
$ as FormItem,
|
|
99
|
+
D as FormLabel,
|
|
100
|
+
w as FormMessage,
|
|
101
|
+
d as useFormField
|
|
102
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as o } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as e from "@radix-ui/react-hover-card";
|
|
4
|
+
import { cn as i } from "../../lib/utils.js";
|
|
5
|
+
function m({
|
|
6
|
+
...t
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ o.jsx(e.Root, { "data-slot": "hover-card", ...t });
|
|
9
|
+
}
|
|
10
|
+
function l({
|
|
11
|
+
...t
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ o.jsx(e.Trigger, { "data-slot": "hover-card-trigger", ...t });
|
|
14
|
+
}
|
|
15
|
+
function c({
|
|
16
|
+
className: t,
|
|
17
|
+
align: r = "center",
|
|
18
|
+
sideOffset: a = 4,
|
|
19
|
+
...d
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ o.jsx(e.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ o.jsx(
|
|
22
|
+
e.Content,
|
|
23
|
+
{
|
|
24
|
+
"data-slot": "hover-card-content",
|
|
25
|
+
align: r,
|
|
26
|
+
sideOffset: a,
|
|
27
|
+
className: i(
|
|
28
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
29
|
+
t
|
|
30
|
+
),
|
|
31
|
+
...d
|
|
32
|
+
}
|
|
33
|
+
) });
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
m as HoverCard,
|
|
37
|
+
c as HoverCardContent,
|
|
38
|
+
l as HoverCardTrigger
|
|
39
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as l } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as n from "lucide-react";
|
|
4
|
+
import { cn as m } from "../../lib/utils.js";
|
|
5
|
+
const u = {
|
|
6
|
+
xs: 16,
|
|
7
|
+
sm: 20,
|
|
8
|
+
md: 24,
|
|
9
|
+
lg: 32,
|
|
10
|
+
xl: 40
|
|
11
|
+
};
|
|
12
|
+
function f({
|
|
13
|
+
name: o,
|
|
14
|
+
size: s = "md",
|
|
15
|
+
className: t,
|
|
16
|
+
color: c,
|
|
17
|
+
...e
|
|
18
|
+
}) {
|
|
19
|
+
if (!n[o])
|
|
20
|
+
return console.warn(`Icon "${o}" not found in lucide-react`), null;
|
|
21
|
+
const i = n[o], r = u[s];
|
|
22
|
+
return /* @__PURE__ */ l.jsx(
|
|
23
|
+
i,
|
|
24
|
+
{
|
|
25
|
+
size: r,
|
|
26
|
+
className: m(t),
|
|
27
|
+
color: c,
|
|
28
|
+
...e
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
f as Icon,
|
|
34
|
+
f as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as r } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as u from "react";
|
|
4
|
+
import { OTPInput as c, OTPInputContext as l } from "input-otp";
|
|
5
|
+
import "lucide-react";
|
|
6
|
+
import { cn as a } from "../../lib/utils.js";
|
|
7
|
+
function f({
|
|
8
|
+
className: t,
|
|
9
|
+
containerClassName: e,
|
|
10
|
+
...i
|
|
11
|
+
}) {
|
|
12
|
+
return /* @__PURE__ */ r.jsx(
|
|
13
|
+
c,
|
|
14
|
+
{
|
|
15
|
+
"data-slot": "input-otp",
|
|
16
|
+
containerClassName: a(
|
|
17
|
+
"flex items-center gap-2 has-disabled:opacity-50",
|
|
18
|
+
e
|
|
19
|
+
),
|
|
20
|
+
className: a("disabled:cursor-not-allowed", t),
|
|
21
|
+
...i
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
function b({ className: t, ...e }) {
|
|
26
|
+
return /* @__PURE__ */ r.jsx(
|
|
27
|
+
"div",
|
|
28
|
+
{
|
|
29
|
+
"data-slot": "input-otp-group",
|
|
30
|
+
className: a("flex items-center", t),
|
|
31
|
+
...e
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
function g({
|
|
36
|
+
index: t,
|
|
37
|
+
className: e,
|
|
38
|
+
...i
|
|
39
|
+
}) {
|
|
40
|
+
const n = u.useContext(l), { char: s, hasFakeCaret: o, isActive: d } = (n == null ? void 0 : n.slots[t]) ?? {};
|
|
41
|
+
return /* @__PURE__ */ r.jsxs(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "input-otp-slot",
|
|
45
|
+
"data-active": d,
|
|
46
|
+
className: a(
|
|
47
|
+
"data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",
|
|
48
|
+
e
|
|
49
|
+
),
|
|
50
|
+
...i,
|
|
51
|
+
children: [
|
|
52
|
+
s,
|
|
53
|
+
o && /* @__PURE__ */ r.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ r.jsx("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
f as InputOTP,
|
|
60
|
+
b as InputOTPGroup,
|
|
61
|
+
g as InputOTPSlot
|
|
62
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as c from "react";
|
|
4
|
+
import { motion as l } from "framer-motion";
|
|
5
|
+
import { cn as r } from "../../lib/utils.js";
|
|
6
|
+
const d = {
|
|
7
|
+
container: {
|
|
8
|
+
initial: { opacity: 0, y: 20 },
|
|
9
|
+
animate: { opacity: 1, y: 0 },
|
|
10
|
+
exit: { opacity: 0, y: -20 }
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
function w({
|
|
14
|
+
value: a = 1,
|
|
15
|
+
onChange: e,
|
|
16
|
+
min: p = 1,
|
|
17
|
+
max: b = 4,
|
|
18
|
+
className: j,
|
|
19
|
+
buttonClassName: u,
|
|
20
|
+
counterClassName: v
|
|
21
|
+
}) {
|
|
22
|
+
const [i, o] = c.useState(a), [m, x] = c.useState(!1);
|
|
23
|
+
c.useEffect(() => {
|
|
24
|
+
o(a);
|
|
25
|
+
}, [a]);
|
|
26
|
+
const y = (s) => {
|
|
27
|
+
if (s.preventDefault(), i < b) {
|
|
28
|
+
const n = i + 1;
|
|
29
|
+
o(n), e == null || e(n);
|
|
30
|
+
} else
|
|
31
|
+
f();
|
|
32
|
+
}, g = (s) => {
|
|
33
|
+
if (s.preventDefault(), i > p) {
|
|
34
|
+
const n = i - 1;
|
|
35
|
+
o(n), e == null || e(n);
|
|
36
|
+
} else
|
|
37
|
+
f();
|
|
38
|
+
}, f = () => {
|
|
39
|
+
x(!0), setTimeout(() => x(!1), 300);
|
|
40
|
+
};
|
|
41
|
+
return /* @__PURE__ */ t.jsx(
|
|
42
|
+
l.div,
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "input-selector",
|
|
45
|
+
variants: d.container,
|
|
46
|
+
initial: "initial",
|
|
47
|
+
animate: "animate",
|
|
48
|
+
exit: "exit",
|
|
49
|
+
className: r("flex w-full flex-col items-center justify-center gap-8", j),
|
|
50
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
51
|
+
l.div,
|
|
52
|
+
{
|
|
53
|
+
variants: m ? {
|
|
54
|
+
initial: { x: 0 },
|
|
55
|
+
vibrate: {
|
|
56
|
+
x: [0, -5, 5, -5, 5, 0],
|
|
57
|
+
transition: { duration: 0.3 }
|
|
58
|
+
}
|
|
59
|
+
} : void 0,
|
|
60
|
+
initial: "initial",
|
|
61
|
+
animate: m ? "vibrate" : "initial",
|
|
62
|
+
className: "flex items-center gap-8",
|
|
63
|
+
children: [
|
|
64
|
+
/* @__PURE__ */ t.jsx(
|
|
65
|
+
"button",
|
|
66
|
+
{
|
|
67
|
+
type: "button",
|
|
68
|
+
onClick: g,
|
|
69
|
+
className: r(
|
|
70
|
+
"h-12 w-12 rounded-full border",
|
|
71
|
+
"bg-background",
|
|
72
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
73
|
+
"text-foreground cursor-pointer",
|
|
74
|
+
"flex items-center justify-center",
|
|
75
|
+
u
|
|
76
|
+
),
|
|
77
|
+
children: /* @__PURE__ */ t.jsx("span", { className: "text-2xl font-medium", children: "-" })
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
/* @__PURE__ */ t.jsx(
|
|
81
|
+
l.span,
|
|
82
|
+
{
|
|
83
|
+
variants: d.container,
|
|
84
|
+
initial: "initial",
|
|
85
|
+
animate: "animate",
|
|
86
|
+
exit: "exit",
|
|
87
|
+
className: r(
|
|
88
|
+
"text-2xl font-medium text-foreground dark:text-foreground",
|
|
89
|
+
v
|
|
90
|
+
),
|
|
91
|
+
children: i
|
|
92
|
+
},
|
|
93
|
+
i
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ t.jsx(
|
|
96
|
+
"button",
|
|
97
|
+
{
|
|
98
|
+
type: "button",
|
|
99
|
+
onClick: y,
|
|
100
|
+
className: r(
|
|
101
|
+
"h-12 w-12 rounded-full border",
|
|
102
|
+
"bg-background",
|
|
103
|
+
"hover:bg-accent hover:text-accent-foreground",
|
|
104
|
+
"text-foreground cursor-pointer",
|
|
105
|
+
"flex items-center justify-center",
|
|
106
|
+
u
|
|
107
|
+
),
|
|
108
|
+
children: /* @__PURE__ */ t.jsx("span", { className: "text-2xl font-medium", children: "+" })
|
|
109
|
+
}
|
|
110
|
+
)
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
export {
|
|
118
|
+
w as InputSelector
|
|
119
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import { cva as p } from "class-variance-authority";
|
|
4
|
+
import { cn as x } from "../../lib/utils.js";
|
|
5
|
+
import { Label as f } from "./label.js";
|
|
6
|
+
import { Icon as a } from "./icon.js";
|
|
7
|
+
const c = p(
|
|
8
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex w-full min-w-0 rounded-md border bg-transparent px-3 transition-[color,box-shadow] outline-none file:inline-flex file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
default: "h-9 py-1 text-base md:text-sm file:h-7",
|
|
13
|
+
sm: "h-8 py-1 text-xs md:text-xs file:h-6",
|
|
14
|
+
lg: "h-10 py-2 text-lg md:text-lg file:h-8"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
size: "default"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
function y({
|
|
23
|
+
className: o,
|
|
24
|
+
type: l,
|
|
25
|
+
label: r,
|
|
26
|
+
labelClassName: d,
|
|
27
|
+
id: m,
|
|
28
|
+
iconLeft: i,
|
|
29
|
+
iconRight: s,
|
|
30
|
+
size: t,
|
|
31
|
+
...u
|
|
32
|
+
}) {
|
|
33
|
+
const n = m || (r ? `input-${Math.random().toString(36).substring(2, 9)}` : void 0);
|
|
34
|
+
return /* @__PURE__ */ e.jsxs("div", { className: "space-y-1.5", children: [
|
|
35
|
+
r && /* @__PURE__ */ e.jsx(
|
|
36
|
+
f,
|
|
37
|
+
{
|
|
38
|
+
htmlFor: n,
|
|
39
|
+
className: d,
|
|
40
|
+
children: r
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
|
|
44
|
+
i && /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: /* @__PURE__ */ e.jsx(a, { name: i, size: t === "lg" ? "sm" : "xs" }) }),
|
|
45
|
+
/* @__PURE__ */ e.jsx(
|
|
46
|
+
"input",
|
|
47
|
+
{
|
|
48
|
+
id: n,
|
|
49
|
+
type: l,
|
|
50
|
+
"data-slot": "input",
|
|
51
|
+
className: x(
|
|
52
|
+
c({ size: t }),
|
|
53
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
54
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
55
|
+
"shadow-xs",
|
|
56
|
+
i && t !== "lg" ? "pl-8" : "pl-10",
|
|
57
|
+
s && t !== "lg" ? "pr-8" : "pr-10",
|
|
58
|
+
o
|
|
59
|
+
),
|
|
60
|
+
...u
|
|
61
|
+
}
|
|
62
|
+
),
|
|
63
|
+
s && /* @__PURE__ */ e.jsx("div", { className: "absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground pointer-events-none", children: /* @__PURE__ */ e.jsx(a, { name: s, size: t === "lg" ? "sm" : "xs" }) })
|
|
64
|
+
] })
|
|
65
|
+
] });
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
y as Input,
|
|
69
|
+
c as inputVariants
|
|
70
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import { AnimatePresence as n, motion as i } from "framer-motion";
|
|
4
|
+
import { X as l } from "lucide-react";
|
|
5
|
+
function p({ isOpen: t, close: r }) {
|
|
6
|
+
return /* @__PURE__ */ e.jsx(n, { children: t && /* @__PURE__ */ e.jsxs(
|
|
7
|
+
i.div,
|
|
8
|
+
{
|
|
9
|
+
initial: { top: 0, filter: "blur(5px)" },
|
|
10
|
+
animate: {
|
|
11
|
+
top: -40,
|
|
12
|
+
filter: "blur(0px)",
|
|
13
|
+
transition: {
|
|
14
|
+
type: "spring",
|
|
15
|
+
filter: { type: "tween" }
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
exit: { top: 0, filter: "blur(5px)" },
|
|
19
|
+
className: "absolute left-1/2 flex -translate-x-1/2 overflow-hidden whitespace-nowrap rounded-full border bg-background py-1 text-center text-sm text-muted-foreground",
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ e.jsx("span", { className: "ml-2.5", children: "Press Enter again to interrupt" }),
|
|
22
|
+
/* @__PURE__ */ e.jsx(
|
|
23
|
+
"button",
|
|
24
|
+
{
|
|
25
|
+
className: "ml-1 mr-2.5 flex items-center",
|
|
26
|
+
type: "button",
|
|
27
|
+
onClick: r,
|
|
28
|
+
"aria-label": "Close",
|
|
29
|
+
children: /* @__PURE__ */ e.jsx(l, { className: "h-3 w-3" })
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
) });
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
p as InterruptPrompt
|
|
38
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as o } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as a from "@radix-ui/react-label";
|
|
4
|
+
import { cn as r } from "../../lib/utils.js";
|
|
5
|
+
function s({
|
|
6
|
+
className: e,
|
|
7
|
+
...t
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ o.jsx(
|
|
10
|
+
a.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "label",
|
|
13
|
+
className: r(
|
|
14
|
+
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
15
|
+
e
|
|
16
|
+
),
|
|
17
|
+
...t
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
s as Label
|
|
23
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as r } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import f, { Suspense as b } from "react";
|
|
4
|
+
import x from "react-markdown";
|
|
5
|
+
import y from "remark-gfm";
|
|
6
|
+
import { cn as p } from "../../lib/utils.js";
|
|
7
|
+
import { CopyButton as k } from "./copy-button.js";
|
|
8
|
+
function A({ children: e }) {
|
|
9
|
+
return /* @__PURE__ */ r.jsx("div", { className: "space-y-3", children: /* @__PURE__ */ r.jsx(x, { remarkPlugins: [y], components: v, children: e }) });
|
|
10
|
+
}
|
|
11
|
+
const g = f.memo(
|
|
12
|
+
async ({ children: e, language: o, ...n }) => {
|
|
13
|
+
const { codeToTokens: s, bundledLanguages: i } = await import("shiki");
|
|
14
|
+
if (!(o in i))
|
|
15
|
+
return /* @__PURE__ */ r.jsx("pre", { ...n, children: e });
|
|
16
|
+
const { tokens: l } = await s(e, {
|
|
17
|
+
lang: o,
|
|
18
|
+
defaultColor: !1,
|
|
19
|
+
themes: {
|
|
20
|
+
light: "github-light",
|
|
21
|
+
dark: "github-dark"
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return /* @__PURE__ */ r.jsx("pre", { ...n, children: /* @__PURE__ */ r.jsx("code", { children: l.map((u, c) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
25
|
+
/* @__PURE__ */ r.jsx("span", { children: u.map((a, h) => {
|
|
26
|
+
const m = typeof a.htmlStyle == "string" ? void 0 : a.htmlStyle;
|
|
27
|
+
return /* @__PURE__ */ r.jsx(
|
|
28
|
+
"span",
|
|
29
|
+
{
|
|
30
|
+
className: "text-shiki-light bg-shiki-light-bg dark:text-shiki-dark dark:bg-shiki-dark-bg",
|
|
31
|
+
style: m,
|
|
32
|
+
children: a.content
|
|
33
|
+
},
|
|
34
|
+
h
|
|
35
|
+
);
|
|
36
|
+
}) }, c),
|
|
37
|
+
c !== l.length - 1 && `
|
|
38
|
+
`
|
|
39
|
+
] })) }) });
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
g.displayName = "HighlightedCode";
|
|
43
|
+
const j = ({
|
|
44
|
+
children: e,
|
|
45
|
+
className: o,
|
|
46
|
+
language: n,
|
|
47
|
+
...s
|
|
48
|
+
}) => {
|
|
49
|
+
const i = typeof e == "string" ? e : d(e), l = p(
|
|
50
|
+
"overflow-x-scroll rounded-md border bg-background/50 p-4 font-mono text-sm [scrollbar-width:none]",
|
|
51
|
+
o
|
|
52
|
+
);
|
|
53
|
+
return /* @__PURE__ */ r.jsxs("div", { className: "group/code relative mb-4", children: [
|
|
54
|
+
/* @__PURE__ */ r.jsx(
|
|
55
|
+
b,
|
|
56
|
+
{
|
|
57
|
+
fallback: /* @__PURE__ */ r.jsx("pre", { className: l, ...s, children: e }),
|
|
58
|
+
children: /* @__PURE__ */ r.jsx(g, { language: n, className: l, children: i })
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
/* @__PURE__ */ r.jsx("div", { className: "invisible absolute right-2 top-2 flex space-x-1 rounded-lg p-1 opacity-0 transition-all duration-200 group-hover/code:visible group-hover/code:opacity-100", children: /* @__PURE__ */ r.jsx(k, { content: i, copyMessage: "Copied code to clipboard" }) })
|
|
62
|
+
] });
|
|
63
|
+
};
|
|
64
|
+
function d(e) {
|
|
65
|
+
var o;
|
|
66
|
+
if (typeof e == "string")
|
|
67
|
+
return e;
|
|
68
|
+
if ((o = e == null ? void 0 : e.props) != null && o.children) {
|
|
69
|
+
let n = e.props.children;
|
|
70
|
+
return Array.isArray(n) ? n.map((s) => d(s)).join("") : d(n);
|
|
71
|
+
}
|
|
72
|
+
return "";
|
|
73
|
+
}
|
|
74
|
+
const v = {
|
|
75
|
+
h1: t("h1", "text-2xl font-semibold"),
|
|
76
|
+
h2: t("h2", "font-semibold text-xl"),
|
|
77
|
+
h3: t("h3", "font-semibold text-lg"),
|
|
78
|
+
h4: t("h4", "font-semibold text-base"),
|
|
79
|
+
h5: t("h5", "font-medium"),
|
|
80
|
+
strong: t("strong", "font-semibold"),
|
|
81
|
+
a: t("a", "text-primary underline underline-offset-2"),
|
|
82
|
+
blockquote: t("blockquote", "border-l-2 border-primary pl-4"),
|
|
83
|
+
code: ({ children: e, className: o, node: n, ...s }) => {
|
|
84
|
+
const i = /language-(\w+)/.exec(o || "");
|
|
85
|
+
return i ? /* @__PURE__ */ r.jsx(j, { className: o, language: i[1], ...s, children: e }) : /* @__PURE__ */ r.jsx(
|
|
86
|
+
"code",
|
|
87
|
+
{
|
|
88
|
+
className: p(
|
|
89
|
+
"font-mono [:not(pre)>&]:rounded-md [:not(pre)>&]:bg-background/50 [:not(pre)>&]:px-1 [:not(pre)>&]:py-0.5"
|
|
90
|
+
),
|
|
91
|
+
...s,
|
|
92
|
+
children: e
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
},
|
|
96
|
+
pre: ({ children: e }) => e,
|
|
97
|
+
ol: t("ol", "list-decimal space-y-2 pl-6"),
|
|
98
|
+
ul: t("ul", "list-disc space-y-2 pl-6"),
|
|
99
|
+
li: t("li", "my-1.5"),
|
|
100
|
+
table: t(
|
|
101
|
+
"table",
|
|
102
|
+
"w-full border-collapse overflow-y-auto rounded-md border border-foreground/20"
|
|
103
|
+
),
|
|
104
|
+
th: t(
|
|
105
|
+
"th",
|
|
106
|
+
"border border-foreground/20 px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right"
|
|
107
|
+
),
|
|
108
|
+
td: t(
|
|
109
|
+
"td",
|
|
110
|
+
"border border-foreground/20 px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right"
|
|
111
|
+
),
|
|
112
|
+
tr: t("tr", "m-0 border-t p-0 even:bg-muted"),
|
|
113
|
+
p: t("p", "whitespace-pre-wrap"),
|
|
114
|
+
hr: t("hr", "border-foreground/20")
|
|
115
|
+
};
|
|
116
|
+
function t(e, o) {
|
|
117
|
+
const n = ({ node: s, ...i }) => {
|
|
118
|
+
const l = e;
|
|
119
|
+
return /* @__PURE__ */ r.jsx(l, { className: o, ...i });
|
|
120
|
+
};
|
|
121
|
+
return n.displayName = String(e), n;
|
|
122
|
+
}
|
|
123
|
+
export {
|
|
124
|
+
A as MarkdownRenderer,
|
|
125
|
+
A as default
|
|
126
|
+
};
|