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,350 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as s } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import { Command as ne, useCommandState as ue } from "cmdk";
|
|
4
|
+
import { X as q } from "lucide-react";
|
|
5
|
+
import * as a from "react";
|
|
6
|
+
import { useEffect as L, forwardRef as ie } from "react";
|
|
7
|
+
import { Badge as fe } from "./badge.js";
|
|
8
|
+
import { CommandItem as J, Command as de, CommandList as ae, CommandGroup as oe } from "./command.js";
|
|
9
|
+
import { cn as b } from "../../lib/utils.js";
|
|
10
|
+
import { Label as ce } from "./label.js";
|
|
11
|
+
function ve(i, r) {
|
|
12
|
+
const [f, m] = a.useState(i);
|
|
13
|
+
return L(() => {
|
|
14
|
+
const o = setTimeout(() => m(i), r);
|
|
15
|
+
return () => {
|
|
16
|
+
clearTimeout(o);
|
|
17
|
+
};
|
|
18
|
+
}, [i, r]), f;
|
|
19
|
+
}
|
|
20
|
+
function K(i, r) {
|
|
21
|
+
if (i.length === 0)
|
|
22
|
+
return {};
|
|
23
|
+
if (!r)
|
|
24
|
+
return {
|
|
25
|
+
"": i
|
|
26
|
+
};
|
|
27
|
+
const f = {};
|
|
28
|
+
return i.forEach((m) => {
|
|
29
|
+
const o = m[r] || "";
|
|
30
|
+
f[o] || (f[o] = []), f[o].push(m);
|
|
31
|
+
}), f;
|
|
32
|
+
}
|
|
33
|
+
function me(i, r) {
|
|
34
|
+
const f = JSON.parse(JSON.stringify(i));
|
|
35
|
+
for (const [m, o] of Object.entries(f))
|
|
36
|
+
f[m] = o.filter((C) => !r.find((v) => v.value === C.value));
|
|
37
|
+
return f;
|
|
38
|
+
}
|
|
39
|
+
function xe(i, r) {
|
|
40
|
+
for (const [, f] of Object.entries(i))
|
|
41
|
+
if (f.some((m) => r.find((o) => o.value === m.value)))
|
|
42
|
+
return !0;
|
|
43
|
+
return !1;
|
|
44
|
+
}
|
|
45
|
+
const Q = ie(({ className: i, ...r }, f) => ue((o) => o.filtered.count === 0) ? /* @__PURE__ */ s.jsx(
|
|
46
|
+
"div",
|
|
47
|
+
{
|
|
48
|
+
ref: f,
|
|
49
|
+
className: b("py-6 text-center text-sm", i),
|
|
50
|
+
"cmdk-empty": "",
|
|
51
|
+
role: "presentation",
|
|
52
|
+
...r
|
|
53
|
+
}
|
|
54
|
+
) : null);
|
|
55
|
+
Q.displayName = "CommandEmpty";
|
|
56
|
+
const be = a.forwardRef(
|
|
57
|
+
({
|
|
58
|
+
value: i,
|
|
59
|
+
onChange: r,
|
|
60
|
+
placeholder: f,
|
|
61
|
+
defaultOptions: m = [],
|
|
62
|
+
options: o,
|
|
63
|
+
delay: C,
|
|
64
|
+
onSearch: v,
|
|
65
|
+
onSearchSync: F,
|
|
66
|
+
loadingIndicator: Y,
|
|
67
|
+
emptyIndicator: V,
|
|
68
|
+
maxSelected: X = Number.MAX_SAFE_INTEGER,
|
|
69
|
+
onMaxSelected: k,
|
|
70
|
+
hidePlaceholderWhenSelected: _,
|
|
71
|
+
disabled: E,
|
|
72
|
+
groupBy: g,
|
|
73
|
+
className: Z,
|
|
74
|
+
badgeClassName: W,
|
|
75
|
+
selectFirstItem: B = !0,
|
|
76
|
+
creatable: D = !1,
|
|
77
|
+
triggerSearchOnFocus: I = !1,
|
|
78
|
+
commandProps: n,
|
|
79
|
+
inputProps: u,
|
|
80
|
+
hideClearAllButton: S = !1,
|
|
81
|
+
label: $
|
|
82
|
+
}, p) => {
|
|
83
|
+
const c = a.useRef(null), [w, G] = a.useState(!1), [P, z] = a.useState(!1), [H, M] = a.useState(!1), R = a.useRef(null), [l, O] = a.useState(i || []), [h, A] = a.useState(
|
|
84
|
+
K(m, g)
|
|
85
|
+
), [x, U] = a.useState(""), j = ve(x, C || 500);
|
|
86
|
+
a.useImperativeHandle(
|
|
87
|
+
p,
|
|
88
|
+
() => ({
|
|
89
|
+
selectedValue: [...l],
|
|
90
|
+
input: c.current,
|
|
91
|
+
focus: () => {
|
|
92
|
+
var e;
|
|
93
|
+
return (e = c == null ? void 0 : c.current) == null ? void 0 : e.focus();
|
|
94
|
+
},
|
|
95
|
+
reset: () => O([])
|
|
96
|
+
}),
|
|
97
|
+
[l]
|
|
98
|
+
);
|
|
99
|
+
const N = (e) => {
|
|
100
|
+
R.current && !R.current.contains(e.target) && c.current && !c.current.contains(e.target) && (G(!1), c.current.blur());
|
|
101
|
+
}, T = a.useCallback(
|
|
102
|
+
(e) => {
|
|
103
|
+
const t = l.filter((d) => d.value !== e.value);
|
|
104
|
+
O(t), r == null || r(t);
|
|
105
|
+
},
|
|
106
|
+
[r, l]
|
|
107
|
+
), ee = a.useCallback(
|
|
108
|
+
(e) => {
|
|
109
|
+
const t = c.current;
|
|
110
|
+
t && ((e.key === "Delete" || e.key === "Backspace") && t.value === "" && l.length > 0 && (l[l.length - 1].fixed || T(l[l.length - 1])), e.key === "Escape" && t.blur());
|
|
111
|
+
},
|
|
112
|
+
[T, l]
|
|
113
|
+
);
|
|
114
|
+
L(() => {
|
|
115
|
+
if (typeof document < "u")
|
|
116
|
+
return w ? (document.addEventListener("mousedown", N), document.addEventListener("touchend", N)) : (document.removeEventListener("mousedown", N), document.removeEventListener("touchend", N)), () => {
|
|
117
|
+
document.removeEventListener("mousedown", N), document.removeEventListener("touchend", N);
|
|
118
|
+
};
|
|
119
|
+
}, [w, N]), L(() => {
|
|
120
|
+
i && O(i);
|
|
121
|
+
}, [i]), L(() => {
|
|
122
|
+
if (!o || v)
|
|
123
|
+
return;
|
|
124
|
+
const e = K(o || [], g);
|
|
125
|
+
JSON.stringify(e) !== JSON.stringify(h) && A(e);
|
|
126
|
+
}, [m, o, g, v, h]), L(() => {
|
|
127
|
+
const e = () => {
|
|
128
|
+
const d = F == null ? void 0 : F(j);
|
|
129
|
+
A(K(d || [], g));
|
|
130
|
+
};
|
|
131
|
+
(async () => {
|
|
132
|
+
!F || !w || (I && e(), j && e());
|
|
133
|
+
})();
|
|
134
|
+
}, [j, g, w, I]), L(() => {
|
|
135
|
+
const e = async () => {
|
|
136
|
+
M(!0);
|
|
137
|
+
const d = await (v == null ? void 0 : v(j));
|
|
138
|
+
A(K(d || [], g)), M(!1);
|
|
139
|
+
};
|
|
140
|
+
(async () => {
|
|
141
|
+
!v || !w || (I && await e(), j && await e());
|
|
142
|
+
})();
|
|
143
|
+
}, [j, g, w, I]);
|
|
144
|
+
const te = () => {
|
|
145
|
+
if (!D || xe(h, [{ value: x, label: x }]) || l.find((t) => t.value === x))
|
|
146
|
+
return;
|
|
147
|
+
const e = /* @__PURE__ */ s.jsx(
|
|
148
|
+
J,
|
|
149
|
+
{
|
|
150
|
+
value: x,
|
|
151
|
+
className: "cursor-pointer",
|
|
152
|
+
onMouseDown: (t) => {
|
|
153
|
+
t.preventDefault(), t.stopPropagation();
|
|
154
|
+
},
|
|
155
|
+
onSelect: (t) => {
|
|
156
|
+
if (l.length >= X) {
|
|
157
|
+
k == null || k(l.length);
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
U("");
|
|
161
|
+
const d = [...l, { value: t, label: t }];
|
|
162
|
+
O(d), r == null || r(d);
|
|
163
|
+
},
|
|
164
|
+
children: `Create "${x}"`
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
if (!v && x.length > 0 || v && j.length > 0 && !H)
|
|
168
|
+
return e;
|
|
169
|
+
}, le = a.useCallback(() => {
|
|
170
|
+
if (V)
|
|
171
|
+
return v && !D && Object.keys(h).length === 0 ? /* @__PURE__ */ s.jsx(J, { value: "-", disabled: !0, children: V }) : /* @__PURE__ */ s.jsx(Q, { children: V });
|
|
172
|
+
}, [D, V, v, h]), se = a.useMemo(
|
|
173
|
+
() => me(h, l),
|
|
174
|
+
[h, l]
|
|
175
|
+
), re = a.useCallback(() => {
|
|
176
|
+
if (n != null && n.filter)
|
|
177
|
+
return n.filter;
|
|
178
|
+
if (D)
|
|
179
|
+
return (e, t) => e.toLowerCase().includes(t.toLowerCase()) ? 1 : -1;
|
|
180
|
+
}, [D, n == null ? void 0 : n.filter]);
|
|
181
|
+
return /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col space-y-1.5", children: [
|
|
182
|
+
$ && /* @__PURE__ */ s.jsx(ce, { children: $ }),
|
|
183
|
+
/* @__PURE__ */ s.jsxs(
|
|
184
|
+
de,
|
|
185
|
+
{
|
|
186
|
+
ref: R,
|
|
187
|
+
...n,
|
|
188
|
+
onKeyDown: (e) => {
|
|
189
|
+
var t;
|
|
190
|
+
ee(e), (t = n == null ? void 0 : n.onKeyDown) == null || t.call(n, e);
|
|
191
|
+
},
|
|
192
|
+
className: b("h-auto overflow-visible bg-transparent", n == null ? void 0 : n.className),
|
|
193
|
+
shouldFilter: (n == null ? void 0 : n.shouldFilter) !== void 0 ? n.shouldFilter : !v,
|
|
194
|
+
filter: re(),
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ s.jsx(
|
|
197
|
+
"div",
|
|
198
|
+
{
|
|
199
|
+
className: b(
|
|
200
|
+
"min-h-10 rounded-md border border-input text-base ring-offset-background focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 md:text-sm",
|
|
201
|
+
{
|
|
202
|
+
"px-3 py-2": l.length !== 0,
|
|
203
|
+
"cursor-text": !E && l.length !== 0
|
|
204
|
+
},
|
|
205
|
+
Z
|
|
206
|
+
),
|
|
207
|
+
onClick: () => {
|
|
208
|
+
var e;
|
|
209
|
+
E || (e = c == null ? void 0 : c.current) == null || e.focus();
|
|
210
|
+
},
|
|
211
|
+
children: /* @__PURE__ */ s.jsxs("div", { className: "relative flex flex-wrap gap-1", children: [
|
|
212
|
+
l.map((e) => /* @__PURE__ */ s.jsxs(
|
|
213
|
+
fe,
|
|
214
|
+
{
|
|
215
|
+
className: b(
|
|
216
|
+
"data-[disabled]:bg-muted-foreground data-[disabled]:text-muted data-[disabled]:hover:bg-muted-foreground",
|
|
217
|
+
"data-[fixed]:bg-muted-foreground data-[fixed]:text-muted data-[fixed]:hover:bg-muted-foreground",
|
|
218
|
+
W
|
|
219
|
+
),
|
|
220
|
+
"data-fixed": e.fixed,
|
|
221
|
+
"data-disabled": E || void 0,
|
|
222
|
+
children: [
|
|
223
|
+
e.label,
|
|
224
|
+
/* @__PURE__ */ s.jsx(
|
|
225
|
+
"button",
|
|
226
|
+
{
|
|
227
|
+
type: "button",
|
|
228
|
+
className: b(
|
|
229
|
+
"ml-1 rounded-full outline-none ring-offset-background focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
230
|
+
(E || e.fixed) && "hidden"
|
|
231
|
+
),
|
|
232
|
+
onKeyDown: (t) => {
|
|
233
|
+
t.key === "Enter" && T(e);
|
|
234
|
+
},
|
|
235
|
+
onMouseDown: (t) => {
|
|
236
|
+
t.preventDefault(), t.stopPropagation();
|
|
237
|
+
},
|
|
238
|
+
onClick: () => T(e),
|
|
239
|
+
children: /* @__PURE__ */ s.jsx(q, { className: "h-3 w-3 text-muted-foreground hover:text-foreground" })
|
|
240
|
+
}
|
|
241
|
+
)
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
e.value
|
|
245
|
+
)),
|
|
246
|
+
/* @__PURE__ */ s.jsx(
|
|
247
|
+
ne.Input,
|
|
248
|
+
{
|
|
249
|
+
...u,
|
|
250
|
+
ref: c,
|
|
251
|
+
value: x,
|
|
252
|
+
disabled: E,
|
|
253
|
+
onValueChange: (e) => {
|
|
254
|
+
var t;
|
|
255
|
+
U(e), (t = u == null ? void 0 : u.onValueChange) == null || t.call(u, e);
|
|
256
|
+
},
|
|
257
|
+
onBlur: (e) => {
|
|
258
|
+
var t;
|
|
259
|
+
P || G(!1), (t = u == null ? void 0 : u.onBlur) == null || t.call(u, e);
|
|
260
|
+
},
|
|
261
|
+
onFocus: (e) => {
|
|
262
|
+
var t;
|
|
263
|
+
G(!0), (t = u == null ? void 0 : u.onFocus) == null || t.call(u, e);
|
|
264
|
+
},
|
|
265
|
+
placeholder: _ && l.length !== 0 ? "" : f,
|
|
266
|
+
className: b(
|
|
267
|
+
"flex-1 bg-transparent outline-none placeholder:text-muted-foreground",
|
|
268
|
+
{
|
|
269
|
+
"w-full": _,
|
|
270
|
+
"px-3 py-2": l.length === 0,
|
|
271
|
+
"ml-1": l.length !== 0
|
|
272
|
+
},
|
|
273
|
+
u == null ? void 0 : u.className
|
|
274
|
+
)
|
|
275
|
+
}
|
|
276
|
+
),
|
|
277
|
+
/* @__PURE__ */ s.jsx(
|
|
278
|
+
"button",
|
|
279
|
+
{
|
|
280
|
+
type: "button",
|
|
281
|
+
onClick: () => {
|
|
282
|
+
O(l.filter((e) => e.fixed)), r == null || r(l.filter((e) => e.fixed));
|
|
283
|
+
},
|
|
284
|
+
className: b(
|
|
285
|
+
"absolute right-0 h-6 w-6 p-0",
|
|
286
|
+
(S || E || l.length < 1 || l.filter((e) => e.fixed).length === l.length) && "hidden"
|
|
287
|
+
),
|
|
288
|
+
children: /* @__PURE__ */ s.jsx(q, {})
|
|
289
|
+
}
|
|
290
|
+
)
|
|
291
|
+
] })
|
|
292
|
+
}
|
|
293
|
+
),
|
|
294
|
+
/* @__PURE__ */ s.jsx("div", { className: "relative", children: w && /* @__PURE__ */ s.jsx(
|
|
295
|
+
ae,
|
|
296
|
+
{
|
|
297
|
+
className: "absolute top-1 z-10 w-full rounded-md border bg-popover text-popover-foreground shadow-md outline-none animate-in",
|
|
298
|
+
onMouseLeave: () => {
|
|
299
|
+
z(!1);
|
|
300
|
+
},
|
|
301
|
+
onMouseEnter: () => {
|
|
302
|
+
z(!0);
|
|
303
|
+
},
|
|
304
|
+
onMouseUp: () => {
|
|
305
|
+
var e;
|
|
306
|
+
(e = c == null ? void 0 : c.current) == null || e.focus();
|
|
307
|
+
},
|
|
308
|
+
children: H ? /* @__PURE__ */ s.jsx(s.Fragment, { children: Y }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
309
|
+
le(),
|
|
310
|
+
te(),
|
|
311
|
+
!B && /* @__PURE__ */ s.jsx(J, { value: "-", className: "hidden" }),
|
|
312
|
+
Object.entries(se).map(([e, t]) => /* @__PURE__ */ s.jsx(oe, { heading: e, className: "h-full overflow-auto", children: /* @__PURE__ */ s.jsx(s.Fragment, { children: t.map((d) => /* @__PURE__ */ s.jsx(
|
|
313
|
+
J,
|
|
314
|
+
{
|
|
315
|
+
value: d.label,
|
|
316
|
+
disabled: d.disable,
|
|
317
|
+
onMouseDown: (y) => {
|
|
318
|
+
y.preventDefault(), y.stopPropagation();
|
|
319
|
+
},
|
|
320
|
+
onSelect: () => {
|
|
321
|
+
if (l.length >= X) {
|
|
322
|
+
k == null || k(l.length);
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
U("");
|
|
326
|
+
const y = [...l, d];
|
|
327
|
+
O(y), r == null || r(y);
|
|
328
|
+
},
|
|
329
|
+
className: b(
|
|
330
|
+
"cursor-pointer",
|
|
331
|
+
d.disable && "cursor-default text-muted-foreground"
|
|
332
|
+
),
|
|
333
|
+
children: d.label
|
|
334
|
+
},
|
|
335
|
+
d.value
|
|
336
|
+
)) }) }, e))
|
|
337
|
+
] })
|
|
338
|
+
}
|
|
339
|
+
) })
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
)
|
|
343
|
+
] });
|
|
344
|
+
}
|
|
345
|
+
);
|
|
346
|
+
be.displayName = "MultipleSelector";
|
|
347
|
+
export {
|
|
348
|
+
be as MultipleSelector,
|
|
349
|
+
ve as useDebounce
|
|
350
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as e } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as n from "@radix-ui/react-navigation-menu";
|
|
4
|
+
import { cva as s } from "class-variance-authority";
|
|
5
|
+
import { ChevronDownIcon as u } from "lucide-react";
|
|
6
|
+
import { cn as o } from "../../lib/utils.js";
|
|
7
|
+
function f({
|
|
8
|
+
className: t,
|
|
9
|
+
children: a,
|
|
10
|
+
viewport: i = !0,
|
|
11
|
+
...r
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ e.jsxs(
|
|
14
|
+
n.Root,
|
|
15
|
+
{
|
|
16
|
+
"data-slot": "navigation-menu",
|
|
17
|
+
"data-viewport": i,
|
|
18
|
+
className: o(
|
|
19
|
+
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
20
|
+
t
|
|
21
|
+
),
|
|
22
|
+
...r,
|
|
23
|
+
children: [
|
|
24
|
+
a,
|
|
25
|
+
i && /* @__PURE__ */ e.jsx(l, {})
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
function p({
|
|
31
|
+
className: t,
|
|
32
|
+
...a
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ e.jsx(
|
|
35
|
+
n.List,
|
|
36
|
+
{
|
|
37
|
+
"data-slot": "navigation-menu-list",
|
|
38
|
+
className: o(
|
|
39
|
+
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
40
|
+
t
|
|
41
|
+
),
|
|
42
|
+
...a
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
function x({
|
|
47
|
+
className: t,
|
|
48
|
+
...a
|
|
49
|
+
}) {
|
|
50
|
+
return /* @__PURE__ */ e.jsx(
|
|
51
|
+
n.Item,
|
|
52
|
+
{
|
|
53
|
+
"data-slot": "navigation-menu-item",
|
|
54
|
+
className: o("relative", t),
|
|
55
|
+
...a
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
const d = s(
|
|
60
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
|
|
61
|
+
);
|
|
62
|
+
function w({
|
|
63
|
+
className: t,
|
|
64
|
+
children: a,
|
|
65
|
+
...i
|
|
66
|
+
}) {
|
|
67
|
+
return /* @__PURE__ */ e.jsxs(
|
|
68
|
+
n.Trigger,
|
|
69
|
+
{
|
|
70
|
+
"data-slot": "navigation-menu-trigger",
|
|
71
|
+
className: o(d(), "group", t),
|
|
72
|
+
...i,
|
|
73
|
+
children: [
|
|
74
|
+
a,
|
|
75
|
+
" ",
|
|
76
|
+
/* @__PURE__ */ e.jsx(
|
|
77
|
+
u,
|
|
78
|
+
{
|
|
79
|
+
className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
80
|
+
"aria-hidden": "true"
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
function b({
|
|
88
|
+
className: t,
|
|
89
|
+
...a
|
|
90
|
+
}) {
|
|
91
|
+
return /* @__PURE__ */ e.jsx(
|
|
92
|
+
n.Content,
|
|
93
|
+
{
|
|
94
|
+
"data-slot": "navigation-menu-content",
|
|
95
|
+
className: o(
|
|
96
|
+
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
|
|
97
|
+
"group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
|
|
98
|
+
t
|
|
99
|
+
),
|
|
100
|
+
...a
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
function l({
|
|
105
|
+
className: t,
|
|
106
|
+
...a
|
|
107
|
+
}) {
|
|
108
|
+
return /* @__PURE__ */ e.jsx(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
className: o(
|
|
112
|
+
"absolute top-full left-0 isolate z-50 flex justify-center"
|
|
113
|
+
),
|
|
114
|
+
children: /* @__PURE__ */ e.jsx(
|
|
115
|
+
n.Viewport,
|
|
116
|
+
{
|
|
117
|
+
"data-slot": "navigation-menu-viewport",
|
|
118
|
+
className: o(
|
|
119
|
+
"origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
120
|
+
t
|
|
121
|
+
),
|
|
122
|
+
...a
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
function h({
|
|
129
|
+
className: t,
|
|
130
|
+
...a
|
|
131
|
+
}) {
|
|
132
|
+
return /* @__PURE__ */ e.jsx(
|
|
133
|
+
n.Link,
|
|
134
|
+
{
|
|
135
|
+
"data-slot": "navigation-menu-link",
|
|
136
|
+
className: o(
|
|
137
|
+
"data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",
|
|
138
|
+
t
|
|
139
|
+
),
|
|
140
|
+
...a
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
function N({
|
|
145
|
+
className: t,
|
|
146
|
+
...a
|
|
147
|
+
}) {
|
|
148
|
+
return /* @__PURE__ */ e.jsx(
|
|
149
|
+
n.Indicator,
|
|
150
|
+
{
|
|
151
|
+
"data-slot": "navigation-menu-indicator",
|
|
152
|
+
className: o(
|
|
153
|
+
"data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
154
|
+
t
|
|
155
|
+
),
|
|
156
|
+
...a,
|
|
157
|
+
children: /* @__PURE__ */ e.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
158
|
+
}
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
export {
|
|
162
|
+
f as NavigationMenu,
|
|
163
|
+
b as NavigationMenuContent,
|
|
164
|
+
N as NavigationMenuIndicator,
|
|
165
|
+
x as NavigationMenuItem,
|
|
166
|
+
h as NavigationMenuLink,
|
|
167
|
+
p as NavigationMenuList,
|
|
168
|
+
w as NavigationMenuTrigger,
|
|
169
|
+
l as NavigationMenuViewport,
|
|
170
|
+
d as navigationMenuTriggerStyle
|
|
171
|
+
};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import { MoreHorizontalIcon as r, ChevronRightIcon as l, ChevronLeftIcon as c } from "lucide-react";
|
|
4
|
+
import { cn as i } from "../../lib/utils.js";
|
|
5
|
+
import { buttonVariants as p } from "./button.js";
|
|
6
|
+
function d({ className: a, ...n }) {
|
|
7
|
+
return /* @__PURE__ */ t.jsx(
|
|
8
|
+
"nav",
|
|
9
|
+
{
|
|
10
|
+
role: "navigation",
|
|
11
|
+
"aria-label": "pagination",
|
|
12
|
+
"data-slot": "pagination",
|
|
13
|
+
className: i("mx-auto flex w-full justify-center", a),
|
|
14
|
+
...n
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function f({
|
|
19
|
+
className: a,
|
|
20
|
+
...n
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ t.jsx(
|
|
23
|
+
"ul",
|
|
24
|
+
{
|
|
25
|
+
"data-slot": "pagination-content",
|
|
26
|
+
className: i("flex flex-row items-center gap-1", a),
|
|
27
|
+
...n
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
function j({ ...a }) {
|
|
32
|
+
return /* @__PURE__ */ t.jsx("li", { "data-slot": "pagination-item", ...a });
|
|
33
|
+
}
|
|
34
|
+
function e({
|
|
35
|
+
className: a,
|
|
36
|
+
isActive: n,
|
|
37
|
+
size: s = "icon",
|
|
38
|
+
...o
|
|
39
|
+
}) {
|
|
40
|
+
return /* @__PURE__ */ t.jsx(
|
|
41
|
+
"a",
|
|
42
|
+
{
|
|
43
|
+
"aria-current": n ? "page" : void 0,
|
|
44
|
+
"data-slot": "pagination-link",
|
|
45
|
+
"data-active": n,
|
|
46
|
+
className: i(
|
|
47
|
+
p({
|
|
48
|
+
variant: n ? "outline" : "ghost",
|
|
49
|
+
size: s
|
|
50
|
+
}),
|
|
51
|
+
a
|
|
52
|
+
),
|
|
53
|
+
...o
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
function h({
|
|
58
|
+
className: a,
|
|
59
|
+
...n
|
|
60
|
+
}) {
|
|
61
|
+
return /* @__PURE__ */ t.jsxs(
|
|
62
|
+
e,
|
|
63
|
+
{
|
|
64
|
+
"aria-label": "Go to previous page",
|
|
65
|
+
size: "default",
|
|
66
|
+
className: i("gap-1 px-2.5 sm:pl-2.5", a),
|
|
67
|
+
...n,
|
|
68
|
+
children: [
|
|
69
|
+
/* @__PURE__ */ t.jsx(c, {}),
|
|
70
|
+
/* @__PURE__ */ t.jsx("span", { className: "hidden sm:block", children: "Previous" })
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
function N({
|
|
76
|
+
className: a,
|
|
77
|
+
...n
|
|
78
|
+
}) {
|
|
79
|
+
return /* @__PURE__ */ t.jsxs(
|
|
80
|
+
e,
|
|
81
|
+
{
|
|
82
|
+
"aria-label": "Go to next page",
|
|
83
|
+
size: "default",
|
|
84
|
+
className: i("gap-1 px-2.5 sm:pr-2.5", a),
|
|
85
|
+
...n,
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ t.jsx("span", { className: "hidden sm:block", children: "Next" }),
|
|
88
|
+
/* @__PURE__ */ t.jsx(l, {})
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
function P({
|
|
94
|
+
className: a,
|
|
95
|
+
...n
|
|
96
|
+
}) {
|
|
97
|
+
return /* @__PURE__ */ t.jsxs(
|
|
98
|
+
"span",
|
|
99
|
+
{
|
|
100
|
+
"aria-hidden": !0,
|
|
101
|
+
"data-slot": "pagination-ellipsis",
|
|
102
|
+
className: i("flex size-9 items-center justify-center", a),
|
|
103
|
+
...n,
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ t.jsx(r, { className: "size-4" }),
|
|
106
|
+
/* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "More pages" })
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
export {
|
|
112
|
+
d as Pagination,
|
|
113
|
+
f as PaginationContent,
|
|
114
|
+
P as PaginationEllipsis,
|
|
115
|
+
j as PaginationItem,
|
|
116
|
+
e as PaginationLink,
|
|
117
|
+
N as PaginationNext,
|
|
118
|
+
h as PaginationPrevious
|
|
119
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as e from "@radix-ui/react-popover";
|
|
4
|
+
import { cn as n } from "../../lib/utils.js";
|
|
5
|
+
function p({
|
|
6
|
+
...o
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ t.jsx(e.Root, { "data-slot": "popover", ...o });
|
|
9
|
+
}
|
|
10
|
+
function m({
|
|
11
|
+
...o
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ t.jsx(e.Trigger, { "data-slot": "popover-trigger", ...o });
|
|
14
|
+
}
|
|
15
|
+
function l({
|
|
16
|
+
className: o,
|
|
17
|
+
align: r = "center",
|
|
18
|
+
sideOffset: a = 4,
|
|
19
|
+
...i
|
|
20
|
+
}) {
|
|
21
|
+
return /* @__PURE__ */ t.jsx(e.Portal, { children: /* @__PURE__ */ t.jsx(
|
|
22
|
+
e.Content,
|
|
23
|
+
{
|
|
24
|
+
"data-slot": "popover-content",
|
|
25
|
+
align: r,
|
|
26
|
+
sideOffset: a,
|
|
27
|
+
className: n(
|
|
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-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
29
|
+
o
|
|
30
|
+
),
|
|
31
|
+
...i
|
|
32
|
+
}
|
|
33
|
+
) });
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
p as Popover,
|
|
37
|
+
l as PopoverContent,
|
|
38
|
+
m as PopoverTrigger
|
|
39
|
+
};
|