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.
Files changed (425) hide show
  1. package/dist/_virtual/jsx-runtime.js +6 -0
  2. package/dist/_virtual/jsx-runtime2.js +5 -0
  3. package/dist/_virtual/react-jsx-runtime.development.js +5 -0
  4. package/dist/_virtual/react-jsx-runtime.production.js +5 -0
  5. package/dist/components/ui/accordion.js +65 -0
  6. package/dist/components/ui/alert-dialog.js +147 -0
  7. package/dist/components/ui/alert.js +67 -0
  8. package/dist/components/ui/aspect-ratio.js +11 -0
  9. package/dist/components/ui/async-select.js +172 -0
  10. package/dist/components/ui/audio-visualizer.js +94 -0
  11. package/dist/components/ui/avatar.js +54 -0
  12. package/dist/components/ui/badge.js +41 -0
  13. package/dist/components/ui/button.js +66 -0
  14. package/dist/components/ui/calendar.js +62 -0
  15. package/dist/components/ui/card.js +77 -0
  16. package/dist/components/ui/carousel.js +178 -0
  17. package/dist/components/ui/chart.js +216 -0
  18. package/dist/components/ui/chat-message.js +250 -0
  19. package/dist/components/ui/chat.js +226 -0
  20. package/dist/components/ui/checkbox.js +32 -0
  21. package/dist/components/ui/collapsible.js +35 -0
  22. package/dist/components/ui/command.js +162 -0
  23. package/dist/components/ui/context-menu.js +224 -0
  24. package/dist/components/ui/copy-button.js +45 -0
  25. package/dist/components/ui/date-picker.js +59 -0
  26. package/dist/components/ui/dialog.js +123 -0
  27. package/dist/components/ui/drawer.js +120 -0
  28. package/dist/components/ui/file-preview.js +120 -0
  29. package/dist/components/ui/form.js +102 -0
  30. package/dist/components/ui/hover-card.js +39 -0
  31. package/dist/components/ui/icon.js +35 -0
  32. package/dist/components/ui/input-otp.js +62 -0
  33. package/dist/components/ui/input-selector.js +119 -0
  34. package/dist/components/ui/input.js +70 -0
  35. package/dist/components/ui/interrupt-prompt.js +38 -0
  36. package/dist/components/ui/label.js +23 -0
  37. package/dist/components/ui/markdown-renderer.js +126 -0
  38. package/dist/components/ui/menubar.js +252 -0
  39. package/dist/components/ui/message-input.js +336 -0
  40. package/dist/components/ui/message-list.js +29 -0
  41. package/dist/components/ui/multiple-selector.js +350 -0
  42. package/dist/components/ui/navigation-menu.js +171 -0
  43. package/dist/components/ui/pagination.js +119 -0
  44. package/dist/components/ui/popover.js +39 -0
  45. package/dist/components/ui/progress.js +32 -0
  46. package/dist/components/ui/prompt-suggestions.js +23 -0
  47. package/dist/components/ui/radio-group.js +46 -0
  48. package/dist/components/ui/resizable.js +49 -0
  49. package/dist/components/ui/scroll-area.js +61 -0
  50. package/dist/components/ui/select.js +189 -0
  51. package/dist/components/ui/separator.js +27 -0
  52. package/dist/components/ui/sheet.js +121 -0
  53. package/dist/components/ui/sidebar.js +599 -0
  54. package/dist/components/ui/skeleton.js +16 -0
  55. package/dist/components/ui/sonner.js +23 -0
  56. package/dist/components/ui/switch.js +32 -0
  57. package/dist/components/ui/table.js +115 -0
  58. package/dist/components/ui/tabs.js +68 -0
  59. package/dist/components/ui/textarea.js +19 -0
  60. package/dist/components/ui/toggle-group.js +63 -0
  61. package/dist/components/ui/toggle.js +44 -0
  62. package/dist/components/ui/tooltip.js +56 -0
  63. package/dist/components/ui/typing-indicator.js +13 -0
  64. package/dist/hooks/use-audio-recording.js +55 -0
  65. package/dist/hooks/use-auto-scroll.js +37 -0
  66. package/dist/hooks/use-autosize-textarea.js +22 -0
  67. package/dist/hooks/use-copy-to-clipboard.js +25 -0
  68. package/dist/hooks/use-debounce.js +16 -0
  69. package/dist/hooks/use-mobile.js +17 -0
  70. package/dist/index.d.ts +1088 -8
  71. package/dist/index.js +299 -0
  72. package/dist/lib/audio-utils.js +30 -0
  73. package/dist/lib/utils.js +9 -0
  74. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +248 -0
  75. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +36 -0
  76. package/dist/node_modules/react/jsx-runtime.js +11 -0
  77. package/dist/styles.css +1 -1
  78. package/package.json +15 -43
  79. package/dist/abap-BmBUA35e.js +0 -6
  80. package/dist/actionscript-3-zFUbzQa9.js +0 -6
  81. package/dist/ada-CBvPkFpZ.js +0 -6
  82. package/dist/andromeeda-uXNdzNpk.js +0 -4
  83. package/dist/angular-html-0fTdLuKf.js +0 -32
  84. package/dist/angular-ts-wkniW60G.js +0 -21
  85. package/dist/apache-CVNlsSDc.js +0 -6
  86. package/dist/apex-DFk3KRB1.js +0 -6
  87. package/dist/apl-TLDHFJX6.js +0 -16
  88. package/dist/applescript-CYMR_y0g.js +0 -6
  89. package/dist/ara-4QmU5e04.js +0 -6
  90. package/dist/asciidoc-v_1bjgUg.js +0 -6
  91. package/dist/asm-RC0Yh-NZ.js +0 -6
  92. package/dist/astro-Uf8_VxKJ.js +0 -16
  93. package/dist/aurora-x-BwoVEUWZ.js +0 -4
  94. package/dist/awk-gPH8MVMW.js +0 -6
  95. package/dist/ayu-dark-CxPZkpb2.js +0 -4
  96. package/dist/ballerina-kvLnRU_e.js +0 -6
  97. package/dist/bat-BHYy44sT.js +0 -6
  98. package/dist/beancount-D-MADTs_.js +0 -6
  99. package/dist/berry-Ci9U0o4h.js +0 -6
  100. package/dist/bibtex-CX618D15.js +0 -6
  101. package/dist/bicep-iuYiPopT.js +0 -6
  102. package/dist/blade-BtR00Gx0.js +0 -18
  103. package/dist/bsl-BIXPNqL4.js +0 -8
  104. package/dist/c-DASdrs7p.js +0 -6
  105. package/dist/cadence-BDALQi26.js +0 -6
  106. package/dist/cairo-tXZKA2PT.js +0 -8
  107. package/dist/catppuccin-frappe-BrTOiad2.js +0 -4
  108. package/dist/catppuccin-latte-D-dc_R4m.js +0 -4
  109. package/dist/catppuccin-macchiato-DN4jOp0G.js +0 -4
  110. package/dist/catppuccin-mocha-B8yCE3-3.js +0 -4
  111. package/dist/clarity-CNgV2Ths.js +0 -6
  112. package/dist/clojure-CsKKFGwv.js +0 -6
  113. package/dist/cmake-Dr-A3iJx.js +0 -6
  114. package/dist/cobol-DMssKNmC.js +0 -10
  115. package/dist/codeowners-Bt9yU6NX.js +0 -6
  116. package/dist/codeql-DBNTqJi1.js +0 -6
  117. package/dist/coffee-D_GzM8k1.js +0 -8
  118. package/dist/common-lisp-r7ZEOG7T.js +0 -6
  119. package/dist/components/atoms/index.d.ts +0 -20
  120. package/dist/components/index.d.ts +0 -3
  121. package/dist/components/molecules/index.d.ts +0 -29
  122. package/dist/components/organisms/index.d.ts +0 -14
  123. package/dist/components/ui/accordion.d.ts +0 -7
  124. package/dist/components/ui/alert-dialog.d.ts +0 -14
  125. package/dist/components/ui/alert.d.ts +0 -9
  126. package/dist/components/ui/aspect-ratio.d.ts +0 -3
  127. package/dist/components/ui/async-select.d.ts +0 -54
  128. package/dist/components/ui/audio-visualizer.d.ts +0 -7
  129. package/dist/components/ui/avatar.d.ts +0 -6
  130. package/dist/components/ui/badge.d.ts +0 -9
  131. package/dist/components/ui/button.d.ts +0 -14
  132. package/dist/components/ui/calendar.d.ts +0 -4
  133. package/dist/components/ui/card.d.ts +0 -9
  134. package/dist/components/ui/carousel.d.ts +0 -19
  135. package/dist/components/ui/chart.d.ts +0 -40
  136. package/dist/components/ui/chat-message.d.ts +0 -62
  137. package/dist/components/ui/chat.d.ts +0 -53
  138. package/dist/components/ui/checkbox.d.ts +0 -4
  139. package/dist/components/ui/collapsible.d.ts +0 -5
  140. package/dist/components/ui/command.d.ts +0 -16
  141. package/dist/components/ui/context-menu.d.ts +0 -25
  142. package/dist/components/ui/copy-button.d.ts +0 -6
  143. package/dist/components/ui/date-picker.d.ts +0 -11
  144. package/dist/components/ui/dialog.d.ts +0 -13
  145. package/dist/components/ui/drawer.d.ts +0 -13
  146. package/dist/components/ui/file-preview.d.ts +0 -7
  147. package/dist/components/ui/form.d.ts +0 -24
  148. package/dist/components/ui/hover-card.d.ts +0 -6
  149. package/dist/components/ui/icon.d.ts +0 -33
  150. package/dist/components/ui/input-otp.d.ts +0 -11
  151. package/dist/components/ui/input-selector.d.ts +0 -14
  152. package/dist/components/ui/input.d.ts +0 -14
  153. package/dist/components/ui/interrupt-prompt.d.ts +0 -6
  154. package/dist/components/ui/label.d.ts +0 -4
  155. package/dist/components/ui/markdown-renderer.d.ts +0 -5
  156. package/dist/components/ui/menubar.d.ts +0 -26
  157. package/dist/components/ui/message-input.d.ts +0 -23
  158. package/dist/components/ui/message-list.d.ts +0 -10
  159. package/dist/components/ui/multiple-selector.d.ts +0 -75
  160. package/dist/components/ui/navigation-menu.d.ts +0 -14
  161. package/dist/components/ui/pagination.d.ts +0 -13
  162. package/dist/components/ui/popover.d.ts +0 -7
  163. package/dist/components/ui/progress.d.ts +0 -4
  164. package/dist/components/ui/prompt-suggestions.d.ts +0 -10
  165. package/dist/components/ui/radio-group.d.ts +0 -5
  166. package/dist/components/ui/resizable.d.ts +0 -8
  167. package/dist/components/ui/scroll-area.d.ts +0 -5
  168. package/dist/components/ui/select.d.ts +0 -21
  169. package/dist/components/ui/separator.d.ts +0 -4
  170. package/dist/components/ui/sheet.d.ts +0 -13
  171. package/dist/components/ui/sidebar.d.ts +0 -69
  172. package/dist/components/ui/skeleton.d.ts +0 -2
  173. package/dist/components/ui/sonner.d.ts +0 -3
  174. package/dist/components/ui/switch.d.ts +0 -4
  175. package/dist/components/ui/table.d.ts +0 -10
  176. package/dist/components/ui/tabs.d.ts +0 -7
  177. package/dist/components/ui/textarea.d.ts +0 -3
  178. package/dist/components/ui/toggle-group.d.ts +0 -7
  179. package/dist/components/ui/toggle.d.ts +0 -9
  180. package/dist/components/ui/tooltip.d.ts +0 -7
  181. package/dist/components/ui/typing-indicator.d.ts +0 -1
  182. package/dist/coq-CB6Pv_W9.js +0 -6
  183. package/dist/cpp-CJF2i3ah.js +0 -18
  184. package/dist/crystal-BKWnaU3g.js +0 -18
  185. package/dist/csharp-CYWRhZ2R.js +0 -6
  186. package/dist/css-D1aVdRIU.js +0 -6
  187. package/dist/csv-DvCncUGQ.js +0 -6
  188. package/dist/cue-BXMrmvay.js +0 -6
  189. package/dist/cypher-DTm5zNR1.js +0 -6
  190. package/dist/d-D6ZXmn3l.js +0 -6
  191. package/dist/dark-plus-pUHDTVV0.js +0 -4
  192. package/dist/dart-Dz59Is3F.js +0 -6
  193. package/dist/dax-DTVGzydb.js +0 -6
  194. package/dist/desktop-Db9vb-dl.js +0 -6
  195. package/dist/diff-XmNrvgM1.js +0 -6
  196. package/dist/docker-DWH2onkn.js +0 -6
  197. package/dist/dotenv-4337wvzu.js +0 -6
  198. package/dist/dracula-BtZx2Kac.js +0 -4
  199. package/dist/dracula-soft-BKa-aqBv.js +0 -4
  200. package/dist/dream-maker-CvvfrJSx.js +0 -6
  201. package/dist/edge-CgxR-qhM.js +0 -12
  202. package/dist/elixir-DZkeSPwW.js +0 -8
  203. package/dist/elm-BKuV1HE1.js +0 -8
  204. package/dist/emacs-lisp-BAefI874.js +0 -6
  205. package/dist/erb-BLwkpXUJ.js +0 -10
  206. package/dist/erlang-CmIiwF3I.js +0 -6
  207. package/dist/everforest-dark-DMCBqXCK.js +0 -4
  208. package/dist/everforest-light-BbXl82Em.js +0 -4
  209. package/dist/fennel-DNqkz9pE.js +0 -6
  210. package/dist/fish-DIm72t2T.js +0 -6
  211. package/dist/fluent-BapTxJsC.js +0 -6
  212. package/dist/fortran-fixed-form-s9Hnb3av.js +0 -8
  213. package/dist/fortran-free-form-CNDsBFUj.js +0 -6
  214. package/dist/fsharp-Cv0x43wb.js +0 -8
  215. package/dist/gdresource-CMcKXvgJ.js +0 -10
  216. package/dist/gdscript-D7aheHm-.js +0 -6
  217. package/dist/gdshader-BGJEsM2Z.js +0 -6
  218. package/dist/genie-C9gPjc6J.js +0 -6
  219. package/dist/gherkin-bka1Exbx.js +0 -6
  220. package/dist/git-commit-BspYIY3P.js +0 -8
  221. package/dist/git-rebase--zLBTjUa.js +0 -8
  222. package/dist/github-dark-DenFmJkN.js +0 -4
  223. package/dist/github-dark-default-BJPUVz4H.js +0 -4
  224. package/dist/github-dark-dimmed-DUshB20C.js +0 -4
  225. package/dist/github-dark-high-contrast-D3aGCnF8.js +0 -4
  226. package/dist/github-light-JYsPkUQd.js +0 -4
  227. package/dist/github-light-default-D99KPAby.js +0 -4
  228. package/dist/github-light-high-contrast-BbmZE-Mp.js +0 -4
  229. package/dist/gleam-B4k9YFGD.js +0 -6
  230. package/dist/glimmer-js-DhY9umHJ.js +0 -14
  231. package/dist/glimmer-ts-CCrHcYH5.js +0 -14
  232. package/dist/glsl-XLGYNq5B.js +0 -8
  233. package/dist/gnuplot-DnWoRZt-.js +0 -6
  234. package/dist/go-BErP6iv1.js +0 -6
  235. package/dist/graphql-DWpQF4JI.js +0 -14
  236. package/dist/groovy-IWs5-NIO.js +0 -6
  237. package/dist/hack-CQrV-ytR.js +0 -10
  238. package/dist/haml-CMN0hQaL.js +0 -10
  239. package/dist/handlebars-Cc-7fXX5.js +0 -14
  240. package/dist/haskell-CtlGos0K.js +0 -6
  241. package/dist/haxe-CZZ33vZw.js +0 -6
  242. package/dist/hcl-6hOg9WP4.js +0 -6
  243. package/dist/hjson-CgwED-oz.js +0 -6
  244. package/dist/hlsl-3-lv4gi7.js +0 -6
  245. package/dist/hooks/index.d.ts +0 -6
  246. package/dist/hooks/use-audio-recording.d.ts +0 -14
  247. package/dist/hooks/use-auto-scroll.d.ts +0 -7
  248. package/dist/hooks/use-autosize-textarea.d.ts +0 -8
  249. package/dist/hooks/use-copy-to-clipboard.d.ts +0 -9
  250. package/dist/hooks/use-debounce.d.ts +0 -1
  251. package/dist/hooks/use-mobile.d.ts +0 -1
  252. package/dist/houston-BDYrDoDW.js +0 -4
  253. package/dist/html-B0P_v3yU.js +0 -10
  254. package/dist/html-derivative-D59SHfh8.js +0 -8
  255. package/dist/http-Dcjm_K1m.js +0 -14
  256. package/dist/hxml-BNKImryz.js +0 -8
  257. package/dist/hy-C2xHhR6I.js +0 -6
  258. package/dist/imba-Drd0AMDo.js +0 -8
  259. package/dist/index-B3zhPw_i.js +0 -6376
  260. package/dist/index-CX8WDA1V.js +0 -71798
  261. package/dist/ini-BUcvsX-U.js +0 -6
  262. package/dist/java-B7odJ7Ap.js +0 -6
  263. package/dist/javascript-fa8UlHZE.js +0 -6
  264. package/dist/jinja-CCSYduCH.js +0 -11
  265. package/dist/jison-BygvlveW.js +0 -8
  266. package/dist/json-71t8ZF9g.js +0 -6
  267. package/dist/json5-Z7F6rA6a.js +0 -6
  268. package/dist/jsonc-Dphhs4m2.js +0 -6
  269. package/dist/jsonl-D9jj92Gg.js +0 -6
  270. package/dist/jsonnet-DEQ7IUoJ.js +0 -6
  271. package/dist/jssm-j74e88UX.js +0 -6
  272. package/dist/jsx-Bkesy5tT.js +0 -6
  273. package/dist/julia-CiahampL.js +0 -16
  274. package/dist/kanagawa-dragon-CiKur4Hl.js +0 -4
  275. package/dist/kanagawa-lotus-BKu-smKu.js +0 -4
  276. package/dist/kanagawa-wave-CQwozSzG.js +0 -4
  277. package/dist/kotlin-DCgZY7Ii.js +0 -6
  278. package/dist/kusto-Cw029H-v.js +0 -6
  279. package/dist/laif-ds.es.js +0 -238
  280. package/dist/laif-ds.umd.js +0 -8032
  281. package/dist/laserwave-6a00oqik.js +0 -4
  282. package/dist/latex-LfGCYGw5.js +0 -8
  283. package/dist/lean-CYSet4vs.js +0 -6
  284. package/dist/less-DQA4v-Nm.js +0 -6
  285. package/dist/light-plus-CZuVqSLX.js +0 -4
  286. package/dist/liquid-CvufO3kO.js +0 -14
  287. package/dist/log-D2eRfqDn.js +0 -6
  288. package/dist/logo-QEAtGWZ9.js +0 -6
  289. package/dist/lua-BVfhNLDr.js +0 -8
  290. package/dist/luau-BjYGiqID.js +0 -6
  291. package/dist/make-BjuHP00g.js +0 -6
  292. package/dist/markdown-B6guhLWd.js +0 -6
  293. package/dist/marko-CHlMS8w5.js +0 -14
  294. package/dist/material-theme-D6KBX41T.js +0 -4
  295. package/dist/material-theme-darker-CkRroheE.js +0 -4
  296. package/dist/material-theme-lighter-BUBw43Yz.js +0 -4
  297. package/dist/material-theme-ocean-ClGX14Ja.js +0 -4
  298. package/dist/material-theme-palenight-C1RVm8K1.js +0 -4
  299. package/dist/matlab-BpQlIJiw.js +0 -6
  300. package/dist/mdc-4K6B6lHG.js +0 -12
  301. package/dist/mdx-DIoECIFU.js +0 -6
  302. package/dist/mermaid-BZ7WHNIe.js +0 -6
  303. package/dist/min-dark-C7ak0t6c.js +0 -4
  304. package/dist/min-light-CKFxVcPp.js +0 -4
  305. package/dist/mipsasm-DusDYkFc.js +0 -6
  306. package/dist/mojo-CY9jaezJ.js +0 -6
  307. package/dist/monokai-C1KBYcO0.js +0 -4
  308. package/dist/move-ChphFumd.js +0 -6
  309. package/dist/narrat-Dz4d7OmN.js +0 -6
  310. package/dist/nextflow-DW0Yq9a2.js +0 -6
  311. package/dist/nginx-Can2eAjw.js +0 -8
  312. package/dist/night-owl-Bm2rzalh.js +0 -4
  313. package/dist/nim-B3r2RtQZ.js +0 -20
  314. package/dist/nix-Cg5uV_xg.js +0 -6
  315. package/dist/nord-CC5OiUXg.js +0 -4
  316. package/dist/nushell-BfRnzRWn.js +0 -6
  317. package/dist/objective-c-BGg9R27G.js +0 -6
  318. package/dist/objective-cpp-CJ3y3V_5.js +0 -6
  319. package/dist/ocaml-BZLsfx_o.js +0 -6
  320. package/dist/one-dark-pro-D7-kP8fv.js +0 -4
  321. package/dist/one-light-D9sNaUtq.js +0 -4
  322. package/dist/pascal-l2bqd7Dz.js +0 -6
  323. package/dist/perl-DaMQyPwp.js +0 -16
  324. package/dist/php-BL3EfPBi.js +0 -18
  325. package/dist/plastic-CSTz3KZp.js +0 -4
  326. package/dist/plsql-oVq_K_wH.js +0 -6
  327. package/dist/po-5jaeIyVd.js +0 -6
  328. package/dist/poimandres-C-VADXHD.js +0 -4
  329. package/dist/polar-wcLp8ci7.js +0 -6
  330. package/dist/postcss-BZ3MNRIJ.js +0 -6
  331. package/dist/powerquery-CgRa2XRw.js +0 -6
  332. package/dist/powershell-Diwyv8Eh.js +0 -6
  333. package/dist/prisma-COL_v1x4.js +0 -6
  334. package/dist/prolog-CuvJOxqT.js +0 -6
  335. package/dist/proto-o9HLmF90.js +0 -6
  336. package/dist/pug-HKe4Luo3.js +0 -12
  337. package/dist/puppet-wpGOnQp5.js +0 -6
  338. package/dist/purescript-B_1NgE2N.js +0 -6
  339. package/dist/python-xYxLFJY-.js +0 -6
  340. package/dist/qml-FlMIyjU9.js +0 -8
  341. package/dist/qmldir-BInDYbpo.js +0 -6
  342. package/dist/qss-D-h4NdUG.js +0 -6
  343. package/dist/r-F-9I-ITZ.js +0 -6
  344. package/dist/racket-BoD1TBFT.js +0 -6
  345. package/dist/raku-IaYcw19m.js +0 -6
  346. package/dist/razor-CeqqNtyB.js +0 -10
  347. package/dist/red-7y8PH7HH.js +0 -4
  348. package/dist/reg-CMUdAgIP.js +0 -6
  349. package/dist/regexp-GiFkbxS-.js +0 -6
  350. package/dist/rel-BaRn3QX7.js +0 -6
  351. package/dist/riscv-B9V3SsvW.js +0 -6
  352. package/dist/rose-pine-DhT-HZE9.js +0 -4
  353. package/dist/rose-pine-dawn-DiCjL2i4.js +0 -4
  354. package/dist/rose-pine-moon-BNmGHlcn.js +0 -4
  355. package/dist/rst-C3D6-dqL.js +0 -22
  356. package/dist/ruby-DcPLUUK3.js +0 -30
  357. package/dist/rust-Pc7DCsZD.js +0 -6
  358. package/dist/sas-tDSYjXcL.js +0 -8
  359. package/dist/sass-iCyS6eP9.js +0 -6
  360. package/dist/scala-Cly-fENF.js +0 -6
  361. package/dist/scheme-Zi24oEYu.js +0 -6
  362. package/dist/scss-DhHc4lxB.js +0 -8
  363. package/dist/sdbl-BBamrXFL.js +0 -6
  364. package/dist/shaderlab-CvqEIoL0.js +0 -8
  365. package/dist/shellscript-Dn0-btNd.js +0 -6
  366. package/dist/shellsession-8OLo3sB6.js +0 -8
  367. package/dist/slack-dark-i7wN4OET.js +0 -4
  368. package/dist/slack-ochin-ndHf0LoP.js +0 -4
  369. package/dist/smalltalk-Cns31tKw.js +0 -6
  370. package/dist/snazzy-light-BlSJXAu4.js +0 -4
  371. package/dist/solarized-dark-UTmkh7lw.js +0 -4
  372. package/dist/solarized-light-BheCkDPT.js +0 -4
  373. package/dist/solidity-BG_k8fA_.js +0 -6
  374. package/dist/soy-EwHMOVPj.js +0 -8
  375. package/dist/sparql-DhuelBut.js +0 -8
  376. package/dist/splunk-CTqDjQdo.js +0 -6
  377. package/dist/sql-DCkt643-.js +0 -6
  378. package/dist/ssh-config-DHHGll-v.js +0 -6
  379. package/dist/stata-Dok6hMw0.js +0 -8
  380. package/dist/stylus-n_9f0QQ5.js +0 -6
  381. package/dist/svelte-01qw6Rxm.js +0 -14
  382. package/dist/swift-BAWqNR8A.js +0 -6
  383. package/dist/synthwave-84-NU3C_KFZ.js +0 -4
  384. package/dist/system-verilog-Cui-g-ut.js +0 -6
  385. package/dist/systemd-CsKYQIQK.js +0 -6
  386. package/dist/talonscript-D2dGh8FO.js +0 -6
  387. package/dist/tasl-D3W8HMV6.js +0 -6
  388. package/dist/tcl-2y0Fuc4S.js +0 -6
  389. package/dist/templ-Hmy8U0DD.js +0 -12
  390. package/dist/terraform-BGW6Oerf.js +0 -6
  391. package/dist/tex-mHs7a43s.js +0 -8
  392. package/dist/tokyo-night-LhP3hHhi.js +0 -4
  393. package/dist/toml-CQSfOn0e.js +0 -6
  394. package/dist/ts-tags-DYZ4SGcN.js +0 -41
  395. package/dist/tsv-BtvSkaG0.js +0 -6
  396. package/dist/tsx-DiGsgWT8.js +0 -6
  397. package/dist/turtle-BJ2wmjPc.js +0 -6
  398. package/dist/twig-BmytkGQV.js +0 -18
  399. package/dist/typescript-buWNZFwO.js +0 -6
  400. package/dist/typespec-bLbdsxJL.js +0 -6
  401. package/dist/typst-Y9_SmXTs.js +0 -6
  402. package/dist/v-wa8Orrdd.js +0 -6
  403. package/dist/vala-DRdriFr_.js +0 -6
  404. package/dist/vb-E2_-jk4M.js +0 -6
  405. package/dist/verilog-B1iBoR5_.js +0 -6
  406. package/dist/vesper-CJsaOsSM.js +0 -4
  407. package/dist/vhdl-CRVaAhXk.js +0 -6
  408. package/dist/viml-B-zWOd7Z.js +0 -6
  409. package/dist/vitesse-black-BoGvW84i.js +0 -4
  410. package/dist/vitesse-dark-Cym-eLtO.js +0 -4
  411. package/dist/vitesse-light-CcmG315c.js +0 -4
  412. package/dist/vue-Bl1uVNsA.js +0 -31
  413. package/dist/vue-html-DHr5wjBG.js +0 -10
  414. package/dist/vyper-DWutKXpa.js +0 -6
  415. package/dist/wasm-Bv5f0gKv.js +0 -6
  416. package/dist/wasm-DQxwEHae.js +0 -7
  417. package/dist/wenyan-BMYnfus1.js +0 -6
  418. package/dist/wgsl-DnPoPGDU.js +0 -6
  419. package/dist/wikitext-CntM04PE.js +0 -6
  420. package/dist/wolfram-Ws5qPlX9.js +0 -6
  421. package/dist/xml-ChBsf5uy.js +0 -8
  422. package/dist/xsl-BefjlXrd.js +0 -8
  423. package/dist/yaml-Bbg74JKr.js +0 -6
  424. package/dist/zenscript-C0RKE4nU.js +0 -6
  425. package/dist/zig-D6SXBGNm.js +0 -6
@@ -0,0 +1,224 @@
1
+ "use client";
2
+ import { j as e } from "../../_virtual/jsx-runtime.js";
3
+ import * as o from "@radix-ui/react-context-menu";
4
+ import { CheckIcon as i, CircleIcon as d, ChevronRightIcon as u } from "lucide-react";
5
+ import { cn as s } from "../../lib/utils.js";
6
+ function x({
7
+ ...t
8
+ }) {
9
+ return /* @__PURE__ */ e.jsx(o.Root, { "data-slot": "context-menu", ...t });
10
+ }
11
+ function f({
12
+ ...t
13
+ }) {
14
+ return /* @__PURE__ */ e.jsx(o.Trigger, { "data-slot": "context-menu-trigger", ...t });
15
+ }
16
+ function p({
17
+ ...t
18
+ }) {
19
+ return /* @__PURE__ */ e.jsx(o.Group, { "data-slot": "context-menu-group", ...t });
20
+ }
21
+ function g({
22
+ ...t
23
+ }) {
24
+ return /* @__PURE__ */ e.jsx(o.Portal, { "data-slot": "context-menu-portal", ...t });
25
+ }
26
+ function v({
27
+ ...t
28
+ }) {
29
+ return /* @__PURE__ */ e.jsx(o.Sub, { "data-slot": "context-menu-sub", ...t });
30
+ }
31
+ function b({
32
+ ...t
33
+ }) {
34
+ return /* @__PURE__ */ e.jsx(
35
+ o.RadioGroup,
36
+ {
37
+ "data-slot": "context-menu-radio-group",
38
+ ...t
39
+ }
40
+ );
41
+ }
42
+ function h({
43
+ className: t,
44
+ inset: n,
45
+ children: a,
46
+ ...r
47
+ }) {
48
+ return /* @__PURE__ */ e.jsxs(
49
+ o.SubTrigger,
50
+ {
51
+ "data-slot": "context-menu-sub-trigger",
52
+ "data-inset": n,
53
+ className: s(
54
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
55
+ t
56
+ ),
57
+ ...r,
58
+ children: [
59
+ a,
60
+ /* @__PURE__ */ e.jsx(u, { className: "ml-auto" })
61
+ ]
62
+ }
63
+ );
64
+ }
65
+ function j({
66
+ className: t,
67
+ ...n
68
+ }) {
69
+ return /* @__PURE__ */ e.jsx(
70
+ o.SubContent,
71
+ {
72
+ "data-slot": "context-menu-sub-content",
73
+ className: s(
74
+ "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 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
75
+ t
76
+ ),
77
+ ...n
78
+ }
79
+ );
80
+ }
81
+ function C({
82
+ className: t,
83
+ ...n
84
+ }) {
85
+ return /* @__PURE__ */ e.jsx(o.Portal, { children: /* @__PURE__ */ e.jsx(
86
+ o.Content,
87
+ {
88
+ "data-slot": "context-menu-content",
89
+ className: s(
90
+ "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 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
91
+ t
92
+ ),
93
+ ...n
94
+ }
95
+ ) });
96
+ }
97
+ function z({
98
+ className: t,
99
+ inset: n,
100
+ variant: a = "default",
101
+ ...r
102
+ }) {
103
+ return /* @__PURE__ */ e.jsx(
104
+ o.Item,
105
+ {
106
+ "data-slot": "context-menu-item",
107
+ "data-inset": n,
108
+ "data-variant": a,
109
+ className: s(
110
+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
111
+ t
112
+ ),
113
+ ...r
114
+ }
115
+ );
116
+ }
117
+ function M({
118
+ className: t,
119
+ children: n,
120
+ checked: a,
121
+ ...r
122
+ }) {
123
+ return /* @__PURE__ */ e.jsxs(
124
+ o.CheckboxItem,
125
+ {
126
+ "data-slot": "context-menu-checkbox-item",
127
+ className: s(
128
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
129
+ t
130
+ ),
131
+ checked: a,
132
+ ...r,
133
+ children: [
134
+ /* @__PURE__ */ e.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(o.ItemIndicator, { children: /* @__PURE__ */ e.jsx(i, { className: "size-4" }) }) }),
135
+ n
136
+ ]
137
+ }
138
+ );
139
+ }
140
+ function N({
141
+ className: t,
142
+ children: n,
143
+ ...a
144
+ }) {
145
+ return /* @__PURE__ */ e.jsxs(
146
+ o.RadioItem,
147
+ {
148
+ "data-slot": "context-menu-radio-item",
149
+ className: s(
150
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
151
+ t
152
+ ),
153
+ ...a,
154
+ children: [
155
+ /* @__PURE__ */ e.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(o.ItemIndicator, { children: /* @__PURE__ */ e.jsx(d, { className: "size-2 fill-current" }) }) }),
156
+ n
157
+ ]
158
+ }
159
+ );
160
+ }
161
+ function I({
162
+ className: t,
163
+ inset: n,
164
+ ...a
165
+ }) {
166
+ return /* @__PURE__ */ e.jsx(
167
+ o.Label,
168
+ {
169
+ "data-slot": "context-menu-label",
170
+ "data-inset": n,
171
+ className: s(
172
+ "text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
173
+ t
174
+ ),
175
+ ...a
176
+ }
177
+ );
178
+ }
179
+ function _({
180
+ className: t,
181
+ ...n
182
+ }) {
183
+ return /* @__PURE__ */ e.jsx(
184
+ o.Separator,
185
+ {
186
+ "data-slot": "context-menu-separator",
187
+ className: s("bg-border -mx-1 my-1 h-px", t),
188
+ ...n
189
+ }
190
+ );
191
+ }
192
+ function y({
193
+ className: t,
194
+ ...n
195
+ }) {
196
+ return /* @__PURE__ */ e.jsx(
197
+ "span",
198
+ {
199
+ "data-slot": "context-menu-shortcut",
200
+ className: s(
201
+ "text-muted-foreground ml-auto text-xs tracking-widest",
202
+ t
203
+ ),
204
+ ...n
205
+ }
206
+ );
207
+ }
208
+ export {
209
+ x as ContextMenu,
210
+ M as ContextMenuCheckboxItem,
211
+ C as ContextMenuContent,
212
+ p as ContextMenuGroup,
213
+ z as ContextMenuItem,
214
+ I as ContextMenuLabel,
215
+ g as ContextMenuPortal,
216
+ b as ContextMenuRadioGroup,
217
+ N as ContextMenuRadioItem,
218
+ _ as ContextMenuSeparator,
219
+ y as ContextMenuShortcut,
220
+ v as ContextMenuSub,
221
+ j as ContextMenuSubContent,
222
+ h as ContextMenuSubTrigger,
223
+ f as ContextMenuTrigger
224
+ };
@@ -0,0 +1,45 @@
1
+ "use client";
2
+ import { j as e } from "../../_virtual/jsx-runtime.js";
3
+ import { Check as r, Copy as n } from "lucide-react";
4
+ import { cn as s } from "../../lib/utils.js";
5
+ import { useCopyToClipboard as c } from "../../hooks/use-copy-to-clipboard.js";
6
+ import { Button as l } from "./button.js";
7
+ function C({ content: t, copyMessage: i }) {
8
+ const { isCopied: o, handleCopy: a } = c({
9
+ text: t,
10
+ copyMessage: i
11
+ });
12
+ return /* @__PURE__ */ e.jsxs(
13
+ l,
14
+ {
15
+ variant: "ghost",
16
+ size: "icon",
17
+ className: "relative h-6 w-6",
18
+ "aria-label": "Copy to clipboard",
19
+ onClick: a,
20
+ children: [
21
+ /* @__PURE__ */ e.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e.jsx(
22
+ r,
23
+ {
24
+ className: s(
25
+ "h-4 w-4 transition-transform ease-in-out",
26
+ o ? "scale-100" : "scale-0"
27
+ )
28
+ }
29
+ ) }),
30
+ /* @__PURE__ */ e.jsx(
31
+ n,
32
+ {
33
+ className: s(
34
+ "h-4 w-4 transition-transform ease-in-out",
35
+ o ? "scale-0" : "scale-100"
36
+ )
37
+ }
38
+ )
39
+ ]
40
+ }
41
+ );
42
+ }
43
+ export {
44
+ C as CopyButton
45
+ };
@@ -0,0 +1,59 @@
1
+ "use client";
2
+ import { j as t } from "../../_virtual/jsx-runtime.js";
3
+ import * as l from "react";
4
+ import { format as x } from "date-fns";
5
+ import { cn as d } from "../../lib/utils.js";
6
+ import { Button as j } from "./button.js";
7
+ import { Calendar as h } from "./calendar.js";
8
+ import { Popover as P, PopoverTrigger as g, PopoverContent as C } from "./popover.js";
9
+ function R({
10
+ value: r,
11
+ onChange: a,
12
+ placeholder: m = "Seleziona data",
13
+ dateFormat: c = "PPP",
14
+ className: f,
15
+ buttonVariant: p = "outline",
16
+ disabled: e = !1,
17
+ size: n = "default"
18
+ }) {
19
+ const [o, s] = l.useState(r);
20
+ l.useEffect(() => {
21
+ s(r);
22
+ }, [r]);
23
+ const u = (i) => {
24
+ s(i), a && a(i);
25
+ };
26
+ return /* @__PURE__ */ t.jsxs(P, { open: e ? !1 : void 0, children: [
27
+ /* @__PURE__ */ t.jsx(g, { asChild: !0, children: /* @__PURE__ */ t.jsx(
28
+ j,
29
+ {
30
+ variant: p,
31
+ size: n,
32
+ className: d(
33
+ "justify-start text-left font-normal",
34
+ !o && "text-muted-foreground",
35
+ e && "opacity-50 cursor-not-allowed",
36
+ f,
37
+ n === "sm" && "text-xs",
38
+ n === "lg" && "text-lg"
39
+ ),
40
+ disabled: e,
41
+ iconLeft: "Calendar",
42
+ children: o ? x(o, c) : /* @__PURE__ */ t.jsx("span", { children: m })
43
+ }
44
+ ) }),
45
+ /* @__PURE__ */ t.jsx(C, { className: "w-auto p-0", children: /* @__PURE__ */ t.jsx(
46
+ h,
47
+ {
48
+ mode: "single",
49
+ selected: o,
50
+ onSelect: u,
51
+ initialFocus: !0,
52
+ disabled: e
53
+ }
54
+ ) })
55
+ ] });
56
+ }
57
+ export {
58
+ R as DatePicker
59
+ };
@@ -0,0 +1,123 @@
1
+ "use client";
2
+ import { j as a } from "../../_virtual/jsx-runtime.js";
3
+ import * as o from "@radix-ui/react-dialog";
4
+ import { XIcon as i } from "lucide-react";
5
+ import { cn as s } from "../../lib/utils.js";
6
+ function u({
7
+ ...t
8
+ }) {
9
+ return /* @__PURE__ */ a.jsx(o.Root, { "data-slot": "dialog", ...t });
10
+ }
11
+ function f({
12
+ ...t
13
+ }) {
14
+ return /* @__PURE__ */ a.jsx(o.Trigger, { "data-slot": "dialog-trigger", ...t });
15
+ }
16
+ function l({
17
+ ...t
18
+ }) {
19
+ return /* @__PURE__ */ a.jsx(o.Portal, { "data-slot": "dialog-portal", ...t });
20
+ }
21
+ function r({
22
+ className: t,
23
+ ...e
24
+ }) {
25
+ return /* @__PURE__ */ a.jsx(
26
+ o.Overlay,
27
+ {
28
+ "data-slot": "dialog-overlay",
29
+ className: s(
30
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
31
+ t
32
+ ),
33
+ ...e
34
+ }
35
+ );
36
+ }
37
+ function m({
38
+ className: t,
39
+ children: e,
40
+ ...n
41
+ }) {
42
+ return /* @__PURE__ */ a.jsxs(l, { "data-slot": "dialog-portal", children: [
43
+ /* @__PURE__ */ a.jsx(r, {}),
44
+ /* @__PURE__ */ a.jsxs(
45
+ o.Content,
46
+ {
47
+ "data-slot": "dialog-content",
48
+ className: s(
49
+ "bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
50
+ t
51
+ ),
52
+ ...n,
53
+ children: [
54
+ e,
55
+ /* @__PURE__ */ a.jsxs(o.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", children: [
56
+ /* @__PURE__ */ a.jsx(i, {}),
57
+ /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" })
58
+ ] })
59
+ ]
60
+ }
61
+ )
62
+ ] });
63
+ }
64
+ function x({ className: t, ...e }) {
65
+ return /* @__PURE__ */ a.jsx(
66
+ "div",
67
+ {
68
+ "data-slot": "dialog-header",
69
+ className: s("flex flex-col gap-2 text-center sm:text-left", t),
70
+ ...e
71
+ }
72
+ );
73
+ }
74
+ function p({ className: t, ...e }) {
75
+ return /* @__PURE__ */ a.jsx(
76
+ "div",
77
+ {
78
+ "data-slot": "dialog-footer",
79
+ className: s(
80
+ "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
81
+ t
82
+ ),
83
+ ...e
84
+ }
85
+ );
86
+ }
87
+ function j({
88
+ className: t,
89
+ ...e
90
+ }) {
91
+ return /* @__PURE__ */ a.jsx(
92
+ o.Title,
93
+ {
94
+ "data-slot": "dialog-title",
95
+ className: s("text-lg leading-none font-semibold", t),
96
+ ...e
97
+ }
98
+ );
99
+ }
100
+ function v({
101
+ className: t,
102
+ ...e
103
+ }) {
104
+ return /* @__PURE__ */ a.jsx(
105
+ o.Description,
106
+ {
107
+ "data-slot": "dialog-description",
108
+ className: s("text-muted-foreground text-sm", t),
109
+ ...e
110
+ }
111
+ );
112
+ }
113
+ export {
114
+ u as Dialog,
115
+ m as DialogContent,
116
+ v as DialogDescription,
117
+ p as DialogFooter,
118
+ x as DialogHeader,
119
+ r as DialogOverlay,
120
+ l as DialogPortal,
121
+ j as DialogTitle,
122
+ f as DialogTrigger
123
+ };
@@ -0,0 +1,120 @@
1
+ "use client";
2
+ import { j as r } from "../../_virtual/jsx-runtime.js";
3
+ import { Drawer as e } from "vaul";
4
+ import { cn as d } from "../../lib/utils.js";
5
+ function c({
6
+ ...a
7
+ }) {
8
+ return /* @__PURE__ */ r.jsx(e.Root, { "data-slot": "drawer", ...a });
9
+ }
10
+ function w({
11
+ ...a
12
+ }) {
13
+ return /* @__PURE__ */ r.jsx(e.Trigger, { "data-slot": "drawer-trigger", ...a });
14
+ }
15
+ function i({
16
+ ...a
17
+ }) {
18
+ return /* @__PURE__ */ r.jsx(e.Portal, { "data-slot": "drawer-portal", ...a });
19
+ }
20
+ function n({
21
+ className: a,
22
+ ...t
23
+ }) {
24
+ return /* @__PURE__ */ r.jsx(
25
+ e.Overlay,
26
+ {
27
+ "data-slot": "drawer-overlay",
28
+ className: d(
29
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
30
+ a
31
+ ),
32
+ ...t
33
+ }
34
+ );
35
+ }
36
+ function m({
37
+ className: a,
38
+ children: t,
39
+ ...o
40
+ }) {
41
+ return /* @__PURE__ */ r.jsxs(i, { "data-slot": "drawer-portal", children: [
42
+ /* @__PURE__ */ r.jsx(n, {}),
43
+ /* @__PURE__ */ r.jsxs(
44
+ e.Content,
45
+ {
46
+ "data-slot": "drawer-content",
47
+ className: d(
48
+ "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
49
+ "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
50
+ "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
51
+ "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
52
+ "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
53
+ a
54
+ ),
55
+ ...o,
56
+ children: [
57
+ /* @__PURE__ */ r.jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
58
+ t
59
+ ]
60
+ }
61
+ )
62
+ ] });
63
+ }
64
+ function x({ className: a, ...t }) {
65
+ return /* @__PURE__ */ r.jsx(
66
+ "div",
67
+ {
68
+ "data-slot": "drawer-header",
69
+ className: d("flex flex-col gap-1.5 p-4", a),
70
+ ...t
71
+ }
72
+ );
73
+ }
74
+ function f({ className: a, ...t }) {
75
+ return /* @__PURE__ */ r.jsx(
76
+ "div",
77
+ {
78
+ "data-slot": "drawer-footer",
79
+ className: d("mt-auto flex flex-col gap-2 p-4", a),
80
+ ...t
81
+ }
82
+ );
83
+ }
84
+ function v({
85
+ className: a,
86
+ ...t
87
+ }) {
88
+ return /* @__PURE__ */ r.jsx(
89
+ e.Title,
90
+ {
91
+ "data-slot": "drawer-title",
92
+ className: d("text-foreground font-semibold", a),
93
+ ...t
94
+ }
95
+ );
96
+ }
97
+ function p({
98
+ className: a,
99
+ ...t
100
+ }) {
101
+ return /* @__PURE__ */ r.jsx(
102
+ e.Description,
103
+ {
104
+ "data-slot": "drawer-description",
105
+ className: d("text-muted-foreground text-sm", a),
106
+ ...t
107
+ }
108
+ );
109
+ }
110
+ export {
111
+ c as Drawer,
112
+ m as DrawerContent,
113
+ p as DrawerDescription,
114
+ f as DrawerFooter,
115
+ x as DrawerHeader,
116
+ n as DrawerOverlay,
117
+ i as DrawerPortal,
118
+ v as DrawerTitle,
119
+ w as DrawerTrigger
120
+ };
@@ -0,0 +1,120 @@
1
+ "use client";
2
+ import { j as e } from "../../_virtual/jsx-runtime.js";
3
+ import i, { useEffect as w } from "react";
4
+ import { motion as s } from "framer-motion";
5
+ import { X as l, FileIcon as p } from "lucide-react";
6
+ const y = i.forwardRef(
7
+ (t, r) => t.file.type.startsWith("image/") ? /* @__PURE__ */ e.jsx(o, { ...t, ref: r }) : t.file.type.startsWith("text/") || t.file.name.endsWith(".txt") || t.file.name.endsWith(".md") ? /* @__PURE__ */ e.jsx(m, { ...t, ref: r }) : /* @__PURE__ */ e.jsx(u, { ...t, ref: r })
8
+ );
9
+ y.displayName = "FilePreview";
10
+ const o = i.forwardRef(
11
+ ({ file: t, onRemove: r }, a) => /* @__PURE__ */ e.jsxs(
12
+ s.div,
13
+ {
14
+ ref: a,
15
+ className: "relative flex max-w-[200px] rounded-md border p-1.5 pr-2 text-xs",
16
+ layout: !0,
17
+ initial: { opacity: 0, y: "100%" },
18
+ animate: { opacity: 1, y: 0 },
19
+ exit: { opacity: 0, y: "100%" },
20
+ children: [
21
+ /* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center space-x-2", children: [
22
+ /* @__PURE__ */ e.jsx(
23
+ "img",
24
+ {
25
+ alt: `Attachment ${t.name}`,
26
+ className: "grid h-10 w-10 shrink-0 place-items-center rounded-sm border bg-muted object-cover",
27
+ src: URL.createObjectURL(t)
28
+ }
29
+ ),
30
+ /* @__PURE__ */ e.jsx("span", { className: "w-full truncate text-muted-foreground", children: t.name })
31
+ ] }),
32
+ r ? /* @__PURE__ */ e.jsx(
33
+ "button",
34
+ {
35
+ className: "absolute -right-2 -top-2 flex h-4 w-4 items-center justify-center rounded-full border bg-background",
36
+ type: "button",
37
+ onClick: r,
38
+ "aria-label": "Remove attachment",
39
+ children: /* @__PURE__ */ e.jsx(l, { className: "h-2.5 w-2.5" })
40
+ }
41
+ ) : null
42
+ ]
43
+ }
44
+ )
45
+ );
46
+ o.displayName = "ImageFilePreview";
47
+ const m = i.forwardRef(
48
+ ({ file: t, onRemove: r }, a) => {
49
+ const [x, f] = i.useState("");
50
+ return w(() => {
51
+ if (typeof window > "u") return;
52
+ const n = new FileReader();
53
+ n.onload = (h) => {
54
+ var c;
55
+ const d = (c = h.target) == null ? void 0 : c.result;
56
+ f(d.slice(0, 50) + (d.length > 50 ? "..." : ""));
57
+ }, n.readAsText(t);
58
+ }, [t]), /* @__PURE__ */ e.jsxs(
59
+ s.div,
60
+ {
61
+ ref: a,
62
+ className: "relative flex max-w-[200px] rounded-md border p-1.5 pr-2 text-xs",
63
+ layout: !0,
64
+ initial: { opacity: 0, y: "100%" },
65
+ animate: { opacity: 1, y: 0 },
66
+ exit: { opacity: 0, y: "100%" },
67
+ children: [
68
+ /* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center space-x-2", children: [
69
+ /* @__PURE__ */ e.jsx("div", { className: "grid h-10 w-10 shrink-0 place-items-center rounded-sm border bg-muted p-0.5", children: /* @__PURE__ */ e.jsx("div", { className: "h-full w-full overflow-hidden text-[6px] leading-none text-muted-foreground", children: x || "Loading..." }) }),
70
+ /* @__PURE__ */ e.jsx("span", { className: "w-full truncate text-muted-foreground", children: t.name })
71
+ ] }),
72
+ r ? /* @__PURE__ */ e.jsx(
73
+ "button",
74
+ {
75
+ className: "absolute -right-2 -top-2 flex h-4 w-4 items-center justify-center rounded-full border bg-background",
76
+ type: "button",
77
+ onClick: r,
78
+ "aria-label": "Remove attachment",
79
+ children: /* @__PURE__ */ e.jsx(l, { className: "h-2.5 w-2.5" })
80
+ }
81
+ ) : null
82
+ ]
83
+ }
84
+ );
85
+ }
86
+ );
87
+ m.displayName = "TextFilePreview";
88
+ const u = i.forwardRef(
89
+ ({ file: t, onRemove: r }, a) => /* @__PURE__ */ e.jsxs(
90
+ s.div,
91
+ {
92
+ ref: a,
93
+ className: "relative flex max-w-[200px] rounded-md border p-1.5 pr-2 text-xs",
94
+ layout: !0,
95
+ initial: { opacity: 0, y: "100%" },
96
+ animate: { opacity: 1, y: 0 },
97
+ exit: { opacity: 0, y: "100%" },
98
+ children: [
99
+ /* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center space-x-2", children: [
100
+ /* @__PURE__ */ e.jsx("div", { className: "grid h-10 w-10 shrink-0 place-items-center rounded-sm border bg-muted", children: /* @__PURE__ */ e.jsx(p, { className: "h-6 w-6 text-foreground" }) }),
101
+ /* @__PURE__ */ e.jsx("span", { className: "w-full truncate text-muted-foreground", children: t.name })
102
+ ] }),
103
+ r ? /* @__PURE__ */ e.jsx(
104
+ "button",
105
+ {
106
+ className: "absolute -right-2 -top-2 flex h-4 w-4 items-center justify-center rounded-full border bg-background",
107
+ type: "button",
108
+ onClick: r,
109
+ "aria-label": "Remove attachment",
110
+ children: /* @__PURE__ */ e.jsx(l, { className: "h-2.5 w-2.5" })
111
+ }
112
+ ) : null
113
+ ]
114
+ }
115
+ )
116
+ );
117
+ u.displayName = "GenericFilePreview";
118
+ export {
119
+ y as FilePreview
120
+ };