laif-ds 0.1.1 → 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 -0
- 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 -38
- 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-B2xHpeqn.js +0 -71567
- package/dist/index-CIiBzRi5.js +0 -6376
- 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/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/ui.es.js +0 -7
- package/dist/ui.umd.js +0 -8032
- 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,66 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as r } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import { Slot as g } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as l } from "class-variance-authority";
|
|
5
|
+
import { cn as u } from "../../lib/utils.js";
|
|
6
|
+
import { Icon as c } from "./icon.js";
|
|
7
|
+
const v = l(
|
|
8
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
|
|
13
|
+
destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
14
|
+
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
15
|
+
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
16
|
+
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
17
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
21
|
+
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
22
|
+
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
23
|
+
icon: "size-9"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
defaultVariants: {
|
|
27
|
+
variant: "default",
|
|
28
|
+
size: "default"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
function h({
|
|
33
|
+
className: n,
|
|
34
|
+
variant: s,
|
|
35
|
+
size: e,
|
|
36
|
+
asChild: i = !1,
|
|
37
|
+
iconLeft: o,
|
|
38
|
+
iconRight: a,
|
|
39
|
+
...t
|
|
40
|
+
}) {
|
|
41
|
+
const d = i ? g : "button";
|
|
42
|
+
return i ? /* @__PURE__ */ r.jsx(
|
|
43
|
+
d,
|
|
44
|
+
{
|
|
45
|
+
"data-slot": "button",
|
|
46
|
+
className: u(v({ variant: s, size: e, className: n })),
|
|
47
|
+
...t
|
|
48
|
+
}
|
|
49
|
+
) : /* @__PURE__ */ r.jsxs(
|
|
50
|
+
d,
|
|
51
|
+
{
|
|
52
|
+
"data-slot": "button",
|
|
53
|
+
className: u(v({ variant: s, size: e, className: n })),
|
|
54
|
+
...t,
|
|
55
|
+
children: [
|
|
56
|
+
o && /* @__PURE__ */ r.jsx(c, { name: o, size: e === "default" ? "md" : e === "sm" ? "xs" : "sm" }),
|
|
57
|
+
t.children,
|
|
58
|
+
a && /* @__PURE__ */ r.jsx(c, { name: a, size: e === "default" ? "md" : e === "sm" ? "xs" : "sm" })
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
h as Button,
|
|
65
|
+
v as buttonVariants
|
|
66
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as r } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import { ChevronRight as l, ChevronLeft as c } from "lucide-react";
|
|
4
|
+
import { DayPicker as m } from "react-day-picker";
|
|
5
|
+
import { cn as e } from "../../lib/utils.js";
|
|
6
|
+
import { buttonVariants as d } from "./button.js";
|
|
7
|
+
function y({
|
|
8
|
+
className: n,
|
|
9
|
+
classNames: s,
|
|
10
|
+
showOutsideDays: i = !0,
|
|
11
|
+
...o
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ r.jsx(
|
|
14
|
+
m,
|
|
15
|
+
{
|
|
16
|
+
showOutsideDays: i,
|
|
17
|
+
className: e("p-3", n),
|
|
18
|
+
classNames: {
|
|
19
|
+
months: "flex flex-col sm:flex-row gap-2",
|
|
20
|
+
month: "flex flex-col gap-4",
|
|
21
|
+
caption: "flex justify-center pt-1 relative items-center w-full",
|
|
22
|
+
caption_label: "text-sm font-medium",
|
|
23
|
+
nav: "flex items-center gap-1",
|
|
24
|
+
nav_button: e(
|
|
25
|
+
d({ variant: "outline" }),
|
|
26
|
+
"size-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
27
|
+
),
|
|
28
|
+
nav_button_previous: "absolute left-1",
|
|
29
|
+
nav_button_next: "absolute right-1",
|
|
30
|
+
table: "w-full border-collapse space-x-1",
|
|
31
|
+
head_row: "flex",
|
|
32
|
+
head_cell: "text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",
|
|
33
|
+
row: "flex w-full mt-2",
|
|
34
|
+
cell: e(
|
|
35
|
+
"relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-range-end)]:rounded-r-md",
|
|
36
|
+
o.mode === "range" ? "[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md" : "[&:has([aria-selected])]:rounded-md"
|
|
37
|
+
),
|
|
38
|
+
day: e(
|
|
39
|
+
d({ variant: "ghost" }),
|
|
40
|
+
"size-8 p-0 font-normal aria-selected:opacity-100"
|
|
41
|
+
),
|
|
42
|
+
day_range_start: "day-range-start aria-selected:bg-primary aria-selected:text-primary-foreground",
|
|
43
|
+
day_range_end: "day-range-end aria-selected:bg-primary aria-selected:text-primary-foreground",
|
|
44
|
+
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
45
|
+
day_today: "bg-accent text-accent-foreground",
|
|
46
|
+
day_outside: "day-outside text-muted-foreground aria-selected:text-muted-foreground",
|
|
47
|
+
day_disabled: "text-muted-foreground opacity-50",
|
|
48
|
+
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
49
|
+
day_hidden: "invisible",
|
|
50
|
+
...s
|
|
51
|
+
},
|
|
52
|
+
components: {
|
|
53
|
+
IconLeft: ({ className: a, ...t }) => /* @__PURE__ */ r.jsx(c, { className: e("size-4", a), ...t }),
|
|
54
|
+
IconRight: ({ className: a, ...t }) => /* @__PURE__ */ r.jsx(l, { className: e("size-4", a), ...t })
|
|
55
|
+
},
|
|
56
|
+
...o
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
y as Calendar
|
|
62
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as a } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import { cn as e } from "../../lib/utils.js";
|
|
4
|
+
function s({ className: t, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ a.jsx(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "card",
|
|
9
|
+
className: e(
|
|
10
|
+
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
|
|
11
|
+
t
|
|
12
|
+
),
|
|
13
|
+
...r
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
function n({ className: t, ...r }) {
|
|
18
|
+
return /* @__PURE__ */ a.jsx(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
"data-slot": "card-header",
|
|
22
|
+
className: e(
|
|
23
|
+
"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
24
|
+
t
|
|
25
|
+
),
|
|
26
|
+
...r
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
function c({ className: t, ...r }) {
|
|
31
|
+
return /* @__PURE__ */ a.jsx(
|
|
32
|
+
"div",
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "card-title",
|
|
35
|
+
className: e("leading-none font-semibold", t),
|
|
36
|
+
...r
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function i({ className: t, ...r }) {
|
|
41
|
+
return /* @__PURE__ */ a.jsx(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
"data-slot": "card-description",
|
|
45
|
+
className: e("text-muted-foreground text-sm", t),
|
|
46
|
+
...r
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
function l({ className: t, ...r }) {
|
|
51
|
+
return /* @__PURE__ */ a.jsx(
|
|
52
|
+
"div",
|
|
53
|
+
{
|
|
54
|
+
"data-slot": "card-content",
|
|
55
|
+
className: e("px-6", t),
|
|
56
|
+
...r
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
function u({ className: t, ...r }) {
|
|
61
|
+
return /* @__PURE__ */ a.jsx(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
"data-slot": "card-footer",
|
|
65
|
+
className: e("flex items-center px-6 [.border-t]:pt-6", t),
|
|
66
|
+
...r
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
export {
|
|
71
|
+
s as Card,
|
|
72
|
+
l as CardContent,
|
|
73
|
+
i as CardDescription,
|
|
74
|
+
u as CardFooter,
|
|
75
|
+
n as CardHeader,
|
|
76
|
+
c as CardTitle
|
|
77
|
+
};
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as l } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as s from "react";
|
|
4
|
+
import P from "embla-carousel-react";
|
|
5
|
+
import { ArrowLeft as k, ArrowRight as z } from "lucide-react";
|
|
6
|
+
import { cn as x } from "../../lib/utils.js";
|
|
7
|
+
import { Button as h } from "./button.js";
|
|
8
|
+
const v = s.createContext(null);
|
|
9
|
+
function d() {
|
|
10
|
+
const o = s.useContext(v);
|
|
11
|
+
if (!o)
|
|
12
|
+
throw new Error("useCarousel must be used within a <Carousel />");
|
|
13
|
+
return o;
|
|
14
|
+
}
|
|
15
|
+
function A({
|
|
16
|
+
orientation: o = "horizontal",
|
|
17
|
+
opts: r,
|
|
18
|
+
setApi: t,
|
|
19
|
+
plugins: a,
|
|
20
|
+
className: c,
|
|
21
|
+
children: i,
|
|
22
|
+
...u
|
|
23
|
+
}) {
|
|
24
|
+
const [N, e] = P(
|
|
25
|
+
{
|
|
26
|
+
...r,
|
|
27
|
+
axis: o === "horizontal" ? "x" : "y"
|
|
28
|
+
},
|
|
29
|
+
a
|
|
30
|
+
), [j, b] = s.useState(!1), [w, S] = s.useState(!1), f = s.useCallback((n) => {
|
|
31
|
+
n && (b(n.canScrollPrev()), S(n.canScrollNext()));
|
|
32
|
+
}, []), m = s.useCallback(() => {
|
|
33
|
+
e == null || e.scrollPrev();
|
|
34
|
+
}, [e]), C = s.useCallback(() => {
|
|
35
|
+
e == null || e.scrollNext();
|
|
36
|
+
}, [e]), y = s.useCallback(
|
|
37
|
+
(n) => {
|
|
38
|
+
n.key === "ArrowLeft" ? (n.preventDefault(), m()) : n.key === "ArrowRight" && (n.preventDefault(), C());
|
|
39
|
+
},
|
|
40
|
+
[m, C]
|
|
41
|
+
);
|
|
42
|
+
return s.useEffect(() => {
|
|
43
|
+
!e || !t || t(e);
|
|
44
|
+
}, [e, t]), s.useEffect(() => {
|
|
45
|
+
if (e)
|
|
46
|
+
return f(e), e.on("reInit", f), e.on("select", f), () => {
|
|
47
|
+
e == null || e.off("select", f);
|
|
48
|
+
};
|
|
49
|
+
}, [e, f]), /* @__PURE__ */ l.jsx(
|
|
50
|
+
v.Provider,
|
|
51
|
+
{
|
|
52
|
+
value: {
|
|
53
|
+
carouselRef: N,
|
|
54
|
+
api: e,
|
|
55
|
+
opts: r,
|
|
56
|
+
orientation: o || ((r == null ? void 0 : r.axis) === "y" ? "vertical" : "horizontal"),
|
|
57
|
+
scrollPrev: m,
|
|
58
|
+
scrollNext: C,
|
|
59
|
+
canScrollPrev: j,
|
|
60
|
+
canScrollNext: w
|
|
61
|
+
},
|
|
62
|
+
children: /* @__PURE__ */ l.jsx(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
onKeyDownCapture: y,
|
|
66
|
+
className: x("relative", c),
|
|
67
|
+
role: "region",
|
|
68
|
+
"aria-roledescription": "carousel",
|
|
69
|
+
"data-slot": "carousel",
|
|
70
|
+
...u,
|
|
71
|
+
children: i
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
function I({ className: o, ...r }) {
|
|
78
|
+
const { carouselRef: t, orientation: a } = d();
|
|
79
|
+
return /* @__PURE__ */ l.jsx(
|
|
80
|
+
"div",
|
|
81
|
+
{
|
|
82
|
+
ref: t,
|
|
83
|
+
className: "overflow-hidden",
|
|
84
|
+
"data-slot": "carousel-content",
|
|
85
|
+
children: /* @__PURE__ */ l.jsx(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
className: x(
|
|
89
|
+
"flex",
|
|
90
|
+
a === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
91
|
+
o
|
|
92
|
+
),
|
|
93
|
+
...r
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
function K({ className: o, ...r }) {
|
|
100
|
+
const { orientation: t } = d();
|
|
101
|
+
return /* @__PURE__ */ l.jsx(
|
|
102
|
+
"div",
|
|
103
|
+
{
|
|
104
|
+
role: "group",
|
|
105
|
+
"aria-roledescription": "slide",
|
|
106
|
+
"data-slot": "carousel-item",
|
|
107
|
+
className: x(
|
|
108
|
+
"min-w-0 shrink-0 grow-0 basis-full",
|
|
109
|
+
t === "horizontal" ? "pl-4" : "pt-4",
|
|
110
|
+
o
|
|
111
|
+
),
|
|
112
|
+
...r
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
function L({
|
|
117
|
+
className: o,
|
|
118
|
+
variant: r = "outline",
|
|
119
|
+
size: t = "icon",
|
|
120
|
+
...a
|
|
121
|
+
}) {
|
|
122
|
+
const { orientation: c, scrollPrev: i, canScrollPrev: u } = d();
|
|
123
|
+
return /* @__PURE__ */ l.jsxs(
|
|
124
|
+
h,
|
|
125
|
+
{
|
|
126
|
+
"data-slot": "carousel-previous",
|
|
127
|
+
variant: r,
|
|
128
|
+
size: t,
|
|
129
|
+
className: x(
|
|
130
|
+
"absolute size-8 rounded-full",
|
|
131
|
+
c === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
132
|
+
o
|
|
133
|
+
),
|
|
134
|
+
disabled: !u,
|
|
135
|
+
onClick: i,
|
|
136
|
+
...a,
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ l.jsx(k, {}),
|
|
139
|
+
/* @__PURE__ */ l.jsx("span", { className: "sr-only", children: "Previous slide" })
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
function B({
|
|
145
|
+
className: o,
|
|
146
|
+
variant: r = "outline",
|
|
147
|
+
size: t = "icon",
|
|
148
|
+
...a
|
|
149
|
+
}) {
|
|
150
|
+
const { orientation: c, scrollNext: i, canScrollNext: u } = d();
|
|
151
|
+
return /* @__PURE__ */ l.jsxs(
|
|
152
|
+
h,
|
|
153
|
+
{
|
|
154
|
+
"data-slot": "carousel-next",
|
|
155
|
+
variant: r,
|
|
156
|
+
size: t,
|
|
157
|
+
className: x(
|
|
158
|
+
"absolute size-8 rounded-full",
|
|
159
|
+
c === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
160
|
+
o
|
|
161
|
+
),
|
|
162
|
+
disabled: !u,
|
|
163
|
+
onClick: i,
|
|
164
|
+
...a,
|
|
165
|
+
children: [
|
|
166
|
+
/* @__PURE__ */ l.jsx(z, {}),
|
|
167
|
+
/* @__PURE__ */ l.jsx("span", { className: "sr-only", children: "Next slide" })
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
export {
|
|
173
|
+
A as Carousel,
|
|
174
|
+
I as CarouselContent,
|
|
175
|
+
K as CarouselItem,
|
|
176
|
+
B as CarouselNext,
|
|
177
|
+
L as CarouselPrevious
|
|
178
|
+
};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
3
|
+
import * as j from "react";
|
|
4
|
+
import * as _ from "recharts";
|
|
5
|
+
import { cn as u } from "../../lib/utils.js";
|
|
6
|
+
const P = { light: "", dark: ".dark" }, C = j.createContext(null);
|
|
7
|
+
function N() {
|
|
8
|
+
const c = j.useContext(C);
|
|
9
|
+
if (!c)
|
|
10
|
+
throw new Error("useChart must be used within a <ChartContainer />");
|
|
11
|
+
return c;
|
|
12
|
+
}
|
|
13
|
+
function R({
|
|
14
|
+
id: c,
|
|
15
|
+
className: e,
|
|
16
|
+
children: s,
|
|
17
|
+
config: n,
|
|
18
|
+
...a
|
|
19
|
+
}) {
|
|
20
|
+
const h = j.useId(), o = `chart-${c || h.replace(/:/g, "")}`;
|
|
21
|
+
return /* @__PURE__ */ t.jsx(C.Provider, { value: { config: n }, children: /* @__PURE__ */ t.jsxs(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
"data-slot": "chart",
|
|
25
|
+
"data-chart": o,
|
|
26
|
+
className: u(
|
|
27
|
+
"[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",
|
|
28
|
+
e
|
|
29
|
+
),
|
|
30
|
+
...a,
|
|
31
|
+
children: [
|
|
32
|
+
/* @__PURE__ */ t.jsx(T, { id: o, config: n }),
|
|
33
|
+
/* @__PURE__ */ t.jsx(_.ResponsiveContainer, { children: s })
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
) });
|
|
37
|
+
}
|
|
38
|
+
const T = ({ id: c, config: e }) => {
|
|
39
|
+
const s = Object.entries(e).filter(
|
|
40
|
+
([, n]) => n.theme || n.color
|
|
41
|
+
);
|
|
42
|
+
return s.length ? /* @__PURE__ */ t.jsx(
|
|
43
|
+
"style",
|
|
44
|
+
{
|
|
45
|
+
dangerouslySetInnerHTML: {
|
|
46
|
+
__html: Object.entries(P).map(
|
|
47
|
+
([n, a]) => `
|
|
48
|
+
${a} [data-chart=${c}] {
|
|
49
|
+
${s.map(([h, o]) => {
|
|
50
|
+
var l;
|
|
51
|
+
const i = ((l = o.theme) == null ? void 0 : l[n]) || o.color;
|
|
52
|
+
return i ? ` --color-${h}: ${i};` : null;
|
|
53
|
+
}).join(`
|
|
54
|
+
`)}
|
|
55
|
+
}
|
|
56
|
+
`
|
|
57
|
+
).join(`
|
|
58
|
+
`)
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
) : null;
|
|
62
|
+
}, S = _.Tooltip;
|
|
63
|
+
function K({
|
|
64
|
+
active: c,
|
|
65
|
+
payload: e,
|
|
66
|
+
className: s,
|
|
67
|
+
indicator: n = "dot",
|
|
68
|
+
hideLabel: a = !1,
|
|
69
|
+
hideIndicator: h = !1,
|
|
70
|
+
label: o,
|
|
71
|
+
labelFormatter: i,
|
|
72
|
+
labelClassName: l,
|
|
73
|
+
formatter: k,
|
|
74
|
+
color: $,
|
|
75
|
+
nameKey: L,
|
|
76
|
+
labelKey: m
|
|
77
|
+
}) {
|
|
78
|
+
const { config: g } = N(), w = j.useMemo(() => {
|
|
79
|
+
var x;
|
|
80
|
+
if (a || !(e != null && e.length))
|
|
81
|
+
return null;
|
|
82
|
+
const [r] = e, b = `${m || (r == null ? void 0 : r.dataKey) || (r == null ? void 0 : r.name) || "value"}`, f = p(g, r, b), d = !m && typeof o == "string" ? ((x = g[o]) == null ? void 0 : x.label) || o : f == null ? void 0 : f.label;
|
|
83
|
+
return i ? /* @__PURE__ */ t.jsx("div", { className: u("font-medium", l), children: i(d, e) }) : d ? /* @__PURE__ */ t.jsx("div", { className: u("font-medium", l), children: d }) : null;
|
|
84
|
+
}, [
|
|
85
|
+
o,
|
|
86
|
+
i,
|
|
87
|
+
e,
|
|
88
|
+
a,
|
|
89
|
+
l,
|
|
90
|
+
g,
|
|
91
|
+
m
|
|
92
|
+
]);
|
|
93
|
+
if (!c || !(e != null && e.length))
|
|
94
|
+
return null;
|
|
95
|
+
const v = e.length === 1 && n !== "dot";
|
|
96
|
+
return /* @__PURE__ */ t.jsxs(
|
|
97
|
+
"div",
|
|
98
|
+
{
|
|
99
|
+
className: u(
|
|
100
|
+
"border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",
|
|
101
|
+
s
|
|
102
|
+
),
|
|
103
|
+
children: [
|
|
104
|
+
v ? null : w,
|
|
105
|
+
/* @__PURE__ */ t.jsx("div", { className: "grid gap-1.5", children: e.map((r, b) => {
|
|
106
|
+
const f = `${L || r.name || r.dataKey || "value"}`, d = p(g, r, f), x = $ || r.payload.fill || r.color;
|
|
107
|
+
return /* @__PURE__ */ t.jsx(
|
|
108
|
+
"div",
|
|
109
|
+
{
|
|
110
|
+
className: u(
|
|
111
|
+
"[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",
|
|
112
|
+
n === "dot" && "items-center"
|
|
113
|
+
),
|
|
114
|
+
children: k && (r == null ? void 0 : r.value) !== void 0 && r.name ? k(r.value, r.name, r, b, r.payload) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
115
|
+
d != null && d.icon ? /* @__PURE__ */ t.jsx(d.icon, {}) : !h && /* @__PURE__ */ t.jsx(
|
|
116
|
+
"div",
|
|
117
|
+
{
|
|
118
|
+
className: u(
|
|
119
|
+
"shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",
|
|
120
|
+
{
|
|
121
|
+
"h-2.5 w-2.5": n === "dot",
|
|
122
|
+
"w-1": n === "line",
|
|
123
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": n === "dashed",
|
|
124
|
+
"my-0.5": v && n === "dashed"
|
|
125
|
+
}
|
|
126
|
+
),
|
|
127
|
+
style: {
|
|
128
|
+
"--color-bg": x,
|
|
129
|
+
"--color-border": x
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
/* @__PURE__ */ t.jsxs(
|
|
134
|
+
"div",
|
|
135
|
+
{
|
|
136
|
+
className: u(
|
|
137
|
+
"flex flex-1 justify-between leading-none",
|
|
138
|
+
v ? "items-end" : "items-center"
|
|
139
|
+
),
|
|
140
|
+
children: [
|
|
141
|
+
/* @__PURE__ */ t.jsxs("div", { className: "grid gap-1.5", children: [
|
|
142
|
+
v ? w : null,
|
|
143
|
+
/* @__PURE__ */ t.jsx("span", { className: "text-muted-foreground", children: (d == null ? void 0 : d.label) || r.name })
|
|
144
|
+
] }),
|
|
145
|
+
r.value && /* @__PURE__ */ t.jsx("span", { className: "text-foreground font-mono font-medium tabular-nums", children: r.value.toLocaleString() })
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
] })
|
|
150
|
+
},
|
|
151
|
+
r.dataKey
|
|
152
|
+
);
|
|
153
|
+
}) })
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
const M = _.Legend;
|
|
159
|
+
function H({
|
|
160
|
+
className: c,
|
|
161
|
+
hideIcon: e = !1,
|
|
162
|
+
payload: s,
|
|
163
|
+
verticalAlign: n = "bottom",
|
|
164
|
+
nameKey: a
|
|
165
|
+
}) {
|
|
166
|
+
const { config: h } = N();
|
|
167
|
+
return s != null && s.length ? /* @__PURE__ */ t.jsx(
|
|
168
|
+
"div",
|
|
169
|
+
{
|
|
170
|
+
className: u(
|
|
171
|
+
"flex items-center justify-center gap-4",
|
|
172
|
+
n === "top" ? "pb-3" : "pt-3",
|
|
173
|
+
c
|
|
174
|
+
),
|
|
175
|
+
children: s.map((o) => {
|
|
176
|
+
const i = `${a || o.dataKey || "value"}`, l = p(h, o, i);
|
|
177
|
+
return /* @__PURE__ */ t.jsxs(
|
|
178
|
+
"div",
|
|
179
|
+
{
|
|
180
|
+
className: u(
|
|
181
|
+
"[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"
|
|
182
|
+
),
|
|
183
|
+
children: [
|
|
184
|
+
l != null && l.icon && !e ? /* @__PURE__ */ t.jsx(l.icon, {}) : /* @__PURE__ */ t.jsx(
|
|
185
|
+
"div",
|
|
186
|
+
{
|
|
187
|
+
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
188
|
+
style: {
|
|
189
|
+
backgroundColor: o.color
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
),
|
|
193
|
+
l == null ? void 0 : l.label
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
o.value
|
|
197
|
+
);
|
|
198
|
+
})
|
|
199
|
+
}
|
|
200
|
+
) : null;
|
|
201
|
+
}
|
|
202
|
+
function p(c, e, s) {
|
|
203
|
+
if (typeof e != "object" || e === null)
|
|
204
|
+
return;
|
|
205
|
+
const n = "payload" in e && typeof e.payload == "object" && e.payload !== null ? e.payload : void 0;
|
|
206
|
+
let a = s;
|
|
207
|
+
return s in e && typeof e[s] == "string" ? a = e[s] : n && s in n && typeof n[s] == "string" && (a = n[s]), a in c ? c[a] : c[s];
|
|
208
|
+
}
|
|
209
|
+
export {
|
|
210
|
+
R as ChartContainer,
|
|
211
|
+
M as ChartLegend,
|
|
212
|
+
H as ChartLegendContent,
|
|
213
|
+
T as ChartStyle,
|
|
214
|
+
S as ChartTooltip,
|
|
215
|
+
K as ChartTooltipContent
|
|
216
|
+
};
|