@chatsdk-dev/ui 0.1.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (562) hide show
  1. package/dist/atoms/accordion.d.ts +4 -4
  2. package/dist/atoms/accordion.d.ts.map +1 -1
  3. package/dist/atoms/alert-dialog.d.ts +22 -14
  4. package/dist/atoms/alert-dialog.d.ts.map +1 -1
  5. package/dist/atoms/alert-dialog.js +13 -8
  6. package/dist/atoms/alert.d.ts +4 -4
  7. package/dist/atoms/alert.d.ts.map +1 -1
  8. package/dist/atoms/attachment.d.ts +24 -0
  9. package/dist/atoms/attachment.d.ts.map +1 -0
  10. package/dist/atoms/attachment.js +76 -0
  11. package/dist/atoms/avatar.d.ts +6 -6
  12. package/dist/atoms/avatar.d.ts.map +1 -1
  13. package/dist/atoms/badge.d.ts +1 -1
  14. package/dist/atoms/bubble.d.ts +17 -0
  15. package/dist/atoms/bubble.d.ts.map +1 -0
  16. package/dist/atoms/bubble.js +59 -0
  17. package/dist/atoms/button-group.d.ts +2 -2
  18. package/dist/atoms/button-group.d.ts.map +1 -1
  19. package/dist/atoms/button-loader.d.ts +2 -2
  20. package/dist/atoms/button-loader.d.ts.map +1 -1
  21. package/dist/atoms/button.d.ts +2 -2
  22. package/dist/atoms/button.d.ts.map +1 -1
  23. package/dist/atoms/button.js +2 -1
  24. package/dist/atoms/card.d.ts +7 -7
  25. package/dist/atoms/card.d.ts.map +1 -1
  26. package/dist/atoms/carousel.d.ts +5 -5
  27. package/dist/atoms/carousel.d.ts.map +1 -1
  28. package/dist/atoms/carousel.js +1 -0
  29. package/dist/atoms/collapsible.d.ts +3 -3
  30. package/dist/atoms/collapsible.d.ts.map +1 -1
  31. package/dist/atoms/command.d.ts +9 -9
  32. package/dist/atoms/command.d.ts.map +1 -1
  33. package/dist/atoms/container.d.ts +1 -1
  34. package/dist/atoms/container.d.ts.map +1 -1
  35. package/dist/atoms/dialog.d.ts +10 -10
  36. package/dist/atoms/dialog.d.ts.map +1 -1
  37. package/dist/atoms/dialog.js +4 -2
  38. package/dist/atoms/dots-loader.d.ts +1 -1
  39. package/dist/atoms/dots-loader.d.ts.map +1 -1
  40. package/dist/atoms/drawer.d.ts +10 -10
  41. package/dist/atoms/drawer.d.ts.map +1 -1
  42. package/dist/atoms/drawer.js +6 -4
  43. package/dist/atoms/dropdown-menu.d.ts +15 -15
  44. package/dist/atoms/dropdown-menu.d.ts.map +1 -1
  45. package/dist/atoms/dropdown-menu.js +8 -5
  46. package/dist/atoms/empty.d.ts +6 -6
  47. package/dist/atoms/empty.d.ts.map +1 -1
  48. package/dist/atoms/field.d.ts +10 -10
  49. package/dist/atoms/field.d.ts.map +1 -1
  50. package/dist/atoms/form.d.ts +6 -6
  51. package/dist/atoms/form.d.ts.map +1 -1
  52. package/dist/atoms/form.js +4 -2
  53. package/dist/atoms/header.d.ts +1 -1
  54. package/dist/atoms/header.d.ts.map +1 -1
  55. package/dist/atoms/hover-card.d.ts +3 -3
  56. package/dist/atoms/hover-card.d.ts.map +1 -1
  57. package/dist/atoms/hover-card.js +3 -1
  58. package/dist/atoms/input-group.d.ts +7 -7
  59. package/dist/atoms/input-group.d.ts.map +1 -1
  60. package/dist/atoms/input.d.ts +1 -1
  61. package/dist/atoms/input.d.ts.map +1 -1
  62. package/dist/atoms/input.js +1 -1
  63. package/dist/atoms/label.d.ts +1 -1
  64. package/dist/atoms/label.d.ts.map +1 -1
  65. package/dist/atoms/logo.d.ts +1 -1
  66. package/dist/atoms/logo.d.ts.map +1 -1
  67. package/dist/atoms/marker.d.ts +11 -0
  68. package/dist/atoms/marker.d.ts.map +1 -0
  69. package/dist/atoms/marker.js +34 -0
  70. package/dist/atoms/message-scroller.d.ts +11 -0
  71. package/dist/atoms/message-scroller.d.ts.map +1 -0
  72. package/dist/atoms/message-scroller.js +25 -0
  73. package/dist/atoms/message.d.ts +11 -0
  74. package/dist/atoms/message.d.ts.map +1 -0
  75. package/dist/atoms/message.js +21 -0
  76. package/dist/atoms/number-flow.d.ts +1 -1
  77. package/dist/atoms/number-flow.d.ts.map +1 -1
  78. package/dist/atoms/popover.d.ts +6 -6
  79. package/dist/atoms/popover.d.ts.map +1 -1
  80. package/dist/atoms/popover.js +3 -1
  81. package/dist/atoms/progress.d.ts +5 -5
  82. package/dist/atoms/progress.d.ts.map +1 -1
  83. package/dist/atoms/radio-group.d.ts +2 -2
  84. package/dist/atoms/radio-group.d.ts.map +1 -1
  85. package/dist/atoms/scroll-area.d.ts +2 -2
  86. package/dist/atoms/scroll-area.d.ts.map +1 -1
  87. package/dist/atoms/select.d.ts +9 -9
  88. package/dist/atoms/select.d.ts.map +1 -1
  89. package/dist/atoms/select.js +5 -3
  90. package/dist/atoms/separator.d.ts +1 -1
  91. package/dist/atoms/separator.d.ts.map +1 -1
  92. package/dist/atoms/sheet.d.ts +8 -8
  93. package/dist/atoms/sheet.d.ts.map +1 -1
  94. package/dist/atoms/sheet.js +5 -3
  95. package/dist/atoms/sidebar.d.ts +19 -19
  96. package/dist/atoms/sidebar.d.ts.map +1 -1
  97. package/dist/atoms/sidebar.js +1 -1
  98. package/dist/atoms/skeleton.d.ts +1 -1
  99. package/dist/atoms/skeleton.d.ts.map +1 -1
  100. package/dist/atoms/spinner.d.ts +1 -1
  101. package/dist/atoms/spinner.d.ts.map +1 -1
  102. package/dist/atoms/switch.d.ts +1 -1
  103. package/dist/atoms/switch.d.ts.map +1 -1
  104. package/dist/atoms/table.d.ts +8 -8
  105. package/dist/atoms/table.d.ts.map +1 -1
  106. package/dist/atoms/table.js +1 -1
  107. package/dist/atoms/tabs.d.ts +8 -5
  108. package/dist/atoms/tabs.d.ts.map +1 -1
  109. package/dist/atoms/tabs.js +10 -6
  110. package/dist/atoms/textarea.d.ts +1 -1
  111. package/dist/atoms/textarea.d.ts.map +1 -1
  112. package/dist/atoms/toggle.d.ts +2 -2
  113. package/dist/atoms/toggle.d.ts.map +1 -1
  114. package/dist/atoms/toggle.js +1 -0
  115. package/dist/atoms/tooltip.d.ts +7 -5
  116. package/dist/atoms/tooltip.d.ts.map +1 -1
  117. package/dist/atoms/tooltip.js +6 -4
  118. package/dist/atoms/typography/h1.d.ts +1 -1
  119. package/dist/atoms/typography/h1.d.ts.map +1 -1
  120. package/dist/atoms/typography/paragraph.d.ts +1 -1
  121. package/dist/atoms/typography/paragraph.d.ts.map +1 -1
  122. package/dist/hooks/use-breakpoint.d.ts.map +1 -1
  123. package/dist/hooks/use-breakpoint.js +1 -0
  124. package/dist/hooks/use-controllable-state.js +1 -1
  125. package/dist/hooks/use-copy-to-clipboard.d.ts +9 -1
  126. package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -1
  127. package/dist/hooks/use-copy-to-clipboard.js +9 -6
  128. package/dist/index.css +1693 -996
  129. package/dist/lib/portal-container.d.ts +12 -0
  130. package/dist/lib/portal-container.d.ts.map +1 -0
  131. package/dist/lib/portal-container.js +15 -0
  132. package/dist/lib/utils.d.ts +8 -0
  133. package/dist/lib/utils.d.ts.map +1 -1
  134. package/dist/lib/utils.js +27 -0
  135. package/dist/molecules/ai/action.d.ts +7 -0
  136. package/dist/molecules/ai/action.d.ts.map +1 -0
  137. package/dist/molecules/ai/action.js +13 -0
  138. package/dist/molecules/ai/agent.d.ts +7 -7
  139. package/dist/molecules/ai/agent.d.ts.map +1 -1
  140. package/dist/molecules/ai/artifact.d.ts +8 -8
  141. package/dist/molecules/ai/artifact.d.ts.map +1 -1
  142. package/dist/molecules/ai/artifact.js +2 -2
  143. package/dist/molecules/ai/audio-player.d.ts +11 -11
  144. package/dist/molecules/ai/audio-player.d.ts.map +1 -1
  145. package/dist/molecules/ai/audio-player.js +1 -3
  146. package/dist/molecules/ai/canvas.d.ts +1 -2
  147. package/dist/molecules/ai/canvas.d.ts.map +1 -1
  148. package/dist/molecules/ai/canvas.js +0 -1
  149. package/dist/molecules/ai/chain-of-thought.d.ts +7 -7
  150. package/dist/molecules/ai/chain-of-thought.d.ts.map +1 -1
  151. package/dist/molecules/ai/checkpoint.d.ts +3 -3
  152. package/dist/molecules/ai/checkpoint.d.ts.map +1 -1
  153. package/dist/molecules/ai/code-block.d.ts +13 -13
  154. package/dist/molecules/ai/code-block.d.ts.map +1 -1
  155. package/dist/molecules/ai/commit.d.ts +22 -22
  156. package/dist/molecules/ai/commit.d.ts.map +1 -1
  157. package/dist/molecules/ai/confirmation.d.ts +4 -12
  158. package/dist/molecules/ai/confirmation.d.ts.map +1 -1
  159. package/dist/molecules/ai/context.d.ts +10 -10
  160. package/dist/molecules/ai/context.d.ts.map +1 -1
  161. package/dist/molecules/ai/controls.d.ts +1 -1
  162. package/dist/molecules/ai/controls.d.ts.map +1 -1
  163. package/dist/molecules/ai/edge.d.ts +2 -2
  164. package/dist/molecules/ai/environment-variables.d.ts +11 -11
  165. package/dist/molecules/ai/environment-variables.d.ts.map +1 -1
  166. package/dist/molecules/ai/file-tree.d.ts +6 -6
  167. package/dist/molecules/ai/file-tree.d.ts.map +1 -1
  168. package/dist/molecules/ai/image.d.ts +1 -1
  169. package/dist/molecules/ai/image.d.ts.map +1 -1
  170. package/dist/molecules/ai/inline-citation.d.ts +14 -14
  171. package/dist/molecules/ai/inline-citation.d.ts.map +1 -1
  172. package/dist/molecules/ai/jsx-preview.d.ts +3 -3
  173. package/dist/molecules/ai/jsx-preview.d.ts.map +1 -1
  174. package/dist/molecules/ai/loader.d.ts +1 -1
  175. package/dist/molecules/ai/loader.d.ts.map +1 -1
  176. package/dist/molecules/ai/mic-selector.d.ts +9 -9
  177. package/dist/molecules/ai/mic-selector.d.ts.map +1 -1
  178. package/dist/molecules/ai/model-selector.d.ts +14 -14
  179. package/dist/molecules/ai/model-selector.d.ts.map +1 -1
  180. package/dist/molecules/ai/node.d.ts +7 -7
  181. package/dist/molecules/ai/node.d.ts.map +1 -1
  182. package/dist/molecules/ai/open-in-chat.d.ts +12 -12
  183. package/dist/molecules/ai/open-in-chat.d.ts.map +1 -1
  184. package/dist/molecules/ai/package-info.d.ts +9 -9
  185. package/dist/molecules/ai/package-info.d.ts.map +1 -1
  186. package/dist/molecules/ai/panel.d.ts +1 -1
  187. package/dist/molecules/ai/panel.d.ts.map +1 -1
  188. package/dist/molecules/ai/persona.d.ts.map +1 -1
  189. package/dist/molecules/ai/plan.d.ts +8 -8
  190. package/dist/molecules/ai/plan.d.ts.map +1 -1
  191. package/dist/molecules/ai/plan.js +3 -4
  192. package/dist/molecules/ai/prompt-input.d.ts +35 -35
  193. package/dist/molecules/ai/prompt-input.d.ts.map +1 -1
  194. package/dist/molecules/ai/prompt-input.js +5 -15
  195. package/dist/molecules/ai/queue.d.ts +15 -15
  196. package/dist/molecules/ai/queue.d.ts.map +1 -1
  197. package/dist/molecules/ai/reasoning.d.ts +3 -3
  198. package/dist/molecules/ai/reasoning.d.ts.map +1 -1
  199. package/dist/molecules/ai/reasoning.js +7 -34
  200. package/dist/molecules/ai/response.d.ts +3 -4
  201. package/dist/molecules/ai/response.d.ts.map +1 -1
  202. package/dist/molecules/ai/response.js +10 -14
  203. package/dist/molecules/ai/sandbox.d.ts +8 -8
  204. package/dist/molecules/ai/sandbox.d.ts.map +1 -1
  205. package/dist/molecules/ai/sandbox.js +1 -1
  206. package/dist/molecules/ai/schema-display.d.ts +13 -13
  207. package/dist/molecules/ai/schema-display.d.ts.map +1 -1
  208. package/dist/molecules/ai/snippet.d.ts +5 -5
  209. package/dist/molecules/ai/snippet.d.ts.map +1 -1
  210. package/dist/molecules/ai/sources.d.ts +6 -5
  211. package/dist/molecules/ai/sources.d.ts.map +1 -1
  212. package/dist/molecules/ai/sources.js +2 -2
  213. package/dist/molecules/ai/speech-input.d.ts +1 -1
  214. package/dist/molecules/ai/speech-input.d.ts.map +1 -1
  215. package/dist/molecules/ai/stack-trace.d.ts +10 -10
  216. package/dist/molecules/ai/stack-trace.d.ts.map +1 -1
  217. package/dist/molecules/ai/stack-trace.js +1 -1
  218. package/dist/molecules/ai/suggestion.d.ts +2 -2
  219. package/dist/molecules/ai/suggestion.d.ts.map +1 -1
  220. package/dist/molecules/ai/task.d.ts +5 -5
  221. package/dist/molecules/ai/task.d.ts.map +1 -1
  222. package/dist/molecules/ai/terminal.d.ts +8 -8
  223. package/dist/molecules/ai/terminal.d.ts.map +1 -1
  224. package/dist/molecules/ai/test-results.d.ts +17 -17
  225. package/dist/molecules/ai/test-results.d.ts.map +1 -1
  226. package/dist/molecules/ai/tool.d.ts +21 -8
  227. package/dist/molecules/ai/tool.d.ts.map +1 -1
  228. package/dist/molecules/ai/tool.js +15 -11
  229. package/dist/molecules/ai/toolbar.d.ts +1 -1
  230. package/dist/molecules/ai/toolbar.d.ts.map +1 -1
  231. package/dist/molecules/ai/transcription.d.ts +2 -2
  232. package/dist/molecules/ai/transcription.d.ts.map +1 -1
  233. package/dist/molecules/ai/voice-selector.d.ts +19 -19
  234. package/dist/molecules/ai/voice-selector.d.ts.map +1 -1
  235. package/dist/molecules/ai/web-preview.d.ts +6 -6
  236. package/dist/molecules/ai/web-preview.d.ts.map +1 -1
  237. package/dist/molecules/ai/web-preview.js +2 -2
  238. package/package.json +27 -27
  239. package/dist/components/accordion.d.ts +0 -7
  240. package/dist/components/accordion.d.ts.map +0 -1
  241. package/dist/components/accordion.js +0 -18
  242. package/dist/components/alert-dialog.d.ts +0 -19
  243. package/dist/components/alert-dialog.d.ts.map +0 -1
  244. package/dist/components/alert-dialog.js +0 -42
  245. package/dist/components/alert.d.ts +0 -11
  246. package/dist/components/alert.d.ts.map +0 -1
  247. package/dist/components/alert.js +0 -27
  248. package/dist/components/avatar.d.ts +0 -12
  249. package/dist/components/avatar.d.ts.map +0 -1
  250. package/dist/components/avatar.js +0 -23
  251. package/dist/components/badge.d.ts +0 -8
  252. package/dist/components/badge.d.ts.map +0 -1
  253. package/dist/components/badge.js +0 -44
  254. package/dist/components/button-group.d.ts +0 -11
  255. package/dist/components/button-group.d.ts.map +0 -1
  256. package/dist/components/button-group.js +0 -36
  257. package/dist/components/button-loader.d.ts +0 -9
  258. package/dist/components/button-loader.d.ts.map +0 -1
  259. package/dist/components/button-loader.js +0 -10
  260. package/dist/components/button.d.ts +0 -9
  261. package/dist/components/button.d.ts.map +0 -1
  262. package/dist/components/button.js +0 -32
  263. package/dist/components/card.d.ts +0 -12
  264. package/dist/components/card.d.ts.map +0 -1
  265. package/dist/components/card.js +0 -25
  266. package/dist/components/carousel.d.ts +0 -29
  267. package/dist/components/carousel.d.ts.map +0 -1
  268. package/dist/components/carousel.js +0 -91
  269. package/dist/components/collapsible.d.ts +0 -6
  270. package/dist/components/collapsible.d.ts.map +0 -1
  271. package/dist/components/collapsible.js +0 -13
  272. package/dist/components/command.d.ts +0 -20
  273. package/dist/components/command.d.ts.map +0 -1
  274. package/dist/components/command.js +0 -35
  275. package/dist/components/container.d.ts +0 -8
  276. package/dist/components/container.d.ts.map +0 -1
  277. package/dist/components/container.js +0 -5
  278. package/dist/components/dialog.d.ts +0 -19
  279. package/dist/components/dialog.d.ts.map +0 -1
  280. package/dist/components/dialog.js +0 -38
  281. package/dist/components/dots-loader.d.ts +0 -15
  282. package/dist/components/dots-loader.d.ts.map +0 -1
  283. package/dist/components/dots-loader.js +0 -21
  284. package/dist/components/drawer.d.ts +0 -14
  285. package/dist/components/drawer.d.ts.map +0 -1
  286. package/dist/components/drawer.js +0 -35
  287. package/dist/components/dropdown-menu.d.ts +0 -26
  288. package/dist/components/dropdown-menu.d.ts.map +0 -1
  289. package/dist/components/dropdown-menu.js +0 -51
  290. package/dist/components/empty.d.ts +0 -12
  291. package/dist/components/empty.d.ts.map +0 -1
  292. package/dist/components/empty.js +0 -33
  293. package/dist/components/field.d.ts +0 -25
  294. package/dist/components/field.d.ts.map +0 -1
  295. package/dist/components/field.js +0 -68
  296. package/dist/components/form.d.ts +0 -23
  297. package/dist/components/form.d.ts.map +0 -1
  298. package/dist/components/form.js +0 -68
  299. package/dist/components/header.d.ts +0 -6
  300. package/dist/components/header.d.ts.map +0 -1
  301. package/dist/components/header.js +0 -6
  302. package/dist/components/hover-card.d.ts +0 -6
  303. package/dist/components/hover-card.d.ts.map +0 -1
  304. package/dist/components/hover-card.js +0 -14
  305. package/dist/components/index.d.ts +0 -5
  306. package/dist/components/index.d.ts.map +0 -1
  307. package/dist/components/index.js +0 -5
  308. package/dist/components/input-group.d.ts +0 -19
  309. package/dist/components/input-group.d.ts.map +0 -1
  310. package/dist/components/input-group.js +0 -57
  311. package/dist/components/input.d.ts +0 -7
  312. package/dist/components/input.d.ts.map +0 -1
  313. package/dist/components/input.js +0 -6
  314. package/dist/components/label.d.ts +0 -3
  315. package/dist/components/label.d.ts.map +0 -1
  316. package/dist/components/label.js +0 -7
  317. package/dist/components/logo.d.ts +0 -7
  318. package/dist/components/logo.d.ts.map +0 -1
  319. package/dist/components/logo.js +0 -6
  320. package/dist/components/number-flow.d.ts +0 -3
  321. package/dist/components/number-flow.d.ts.map +0 -1
  322. package/dist/components/number-flow.js +0 -6
  323. package/dist/components/popover.d.ts +0 -10
  324. package/dist/components/popover.d.ts.map +0 -1
  325. package/dist/components/popover.js +0 -23
  326. package/dist/components/progress.d.ts +0 -8
  327. package/dist/components/progress.d.ts.map +0 -1
  328. package/dist/components/progress.js +0 -20
  329. package/dist/components/radio-group.d.ts +0 -6
  330. package/dist/components/radio-group.d.ts.map +0 -1
  331. package/dist/components/radio-group.js +0 -13
  332. package/dist/components/responsive-alert-dialog.d.ts +0 -16
  333. package/dist/components/responsive-alert-dialog.d.ts.map +0 -1
  334. package/dist/components/responsive-alert-dialog.js +0 -20
  335. package/dist/components/responsive-dialog.d.ts +0 -11
  336. package/dist/components/responsive-dialog.d.ts.map +0 -1
  337. package/dist/components/responsive-dialog.js +0 -21
  338. package/dist/components/scroll-area.d.ts +0 -5
  339. package/dist/components/scroll-area.d.ts.map +0 -1
  340. package/dist/components/scroll-area.js +0 -11
  341. package/dist/components/select.d.ts +0 -17
  342. package/dist/components/select.d.ts.map +0 -1
  343. package/dist/components/select.js +0 -34
  344. package/dist/components/separator.d.ts +0 -3
  345. package/dist/components/separator.d.ts.map +0 -1
  346. package/dist/components/separator.js +0 -7
  347. package/dist/components/sheet.d.ts +0 -15
  348. package/dist/components/sheet.d.ts.map +0 -1
  349. package/dist/components/sheet.js +0 -37
  350. package/dist/components/sidebar.d.ts +0 -65
  351. package/dist/components/sidebar.d.ts.map +0 -1
  352. package/dist/components/sidebar.js +0 -258
  353. package/dist/components/skeleton.d.ts +0 -2
  354. package/dist/components/skeleton.d.ts.map +0 -1
  355. package/dist/components/skeleton.js +0 -5
  356. package/dist/components/spinner.d.ts +0 -3
  357. package/dist/components/spinner.d.ts.map +0 -1
  358. package/dist/components/spinner.js +0 -7
  359. package/dist/components/switch.d.ts +0 -5
  360. package/dist/components/switch.d.ts.map +0 -1
  361. package/dist/components/switch.js +0 -7
  362. package/dist/components/table.d.ts +0 -13
  363. package/dist/components/table.d.ts.map +0 -1
  364. package/dist/components/table.js +0 -28
  365. package/dist/components/tabs.d.ts +0 -12
  366. package/dist/components/tabs.d.ts.map +0 -1
  367. package/dist/components/tabs.js +0 -32
  368. package/dist/components/textarea.d.ts +0 -3
  369. package/dist/components/textarea.d.ts.map +0 -1
  370. package/dist/components/textarea.js +0 -5
  371. package/dist/components/toggle.d.ts +0 -9
  372. package/dist/components/toggle.d.ts.map +0 -1
  373. package/dist/components/toggle.js +0 -26
  374. package/dist/components/tooltip.d.ts +0 -7
  375. package/dist/components/tooltip.d.ts.map +0 -1
  376. package/dist/components/tooltip.js +0 -17
  377. package/dist/components/typography/h1.d.ts +0 -10
  378. package/dist/components/typography/h1.d.ts.map +0 -1
  379. package/dist/components/typography/h1.js +0 -6
  380. package/dist/components/typography/paragraph.d.ts +0 -6
  381. package/dist/components/typography/paragraph.d.ts.map +0 -1
  382. package/dist/components/typography/paragraph.js +0 -6
  383. package/dist/components/typography/text.d.ts +0 -14
  384. package/dist/components/typography/text.d.ts.map +0 -1
  385. package/dist/components/typography/text.js +0 -41
  386. package/dist/molecules/actions.d.ts +0 -10
  387. package/dist/molecules/actions.d.ts.map +0 -1
  388. package/dist/molecules/actions.js +0 -13
  389. package/dist/molecules/agent.d.ts +0 -27
  390. package/dist/molecules/agent.d.ts.map +0 -1
  391. package/dist/molecules/agent.js +0 -27
  392. package/dist/molecules/ai/actions.d.ts +0 -10
  393. package/dist/molecules/ai/actions.d.ts.map +0 -1
  394. package/dist/molecules/ai/actions.js +0 -13
  395. package/dist/molecules/ai/attachments.d.ts +0 -55
  396. package/dist/molecules/ai/attachments.d.ts.map +0 -1
  397. package/dist/molecules/ai/attachments.js +0 -125
  398. package/dist/molecules/ai/conversation.d.ts +0 -24
  399. package/dist/molecules/ai/conversation.d.ts.map +0 -1
  400. package/dist/molecules/ai/conversation.js +0 -41
  401. package/dist/molecules/ai/message.d.ts +0 -38
  402. package/dist/molecules/ai/message.d.ts.map +0 -1
  403. package/dist/molecules/ai/message.js +0 -92
  404. package/dist/molecules/ai/shimmer.d.ts +0 -10
  405. package/dist/molecules/ai/shimmer.d.ts.map +0 -1
  406. package/dist/molecules/ai/shimmer.js +0 -28
  407. package/dist/molecules/artifact.d.ts +0 -24
  408. package/dist/molecules/artifact.d.ts.map +0 -1
  409. package/dist/molecules/artifact.js +0 -20
  410. package/dist/molecules/attachments.d.ts +0 -55
  411. package/dist/molecules/attachments.d.ts.map +0 -1
  412. package/dist/molecules/attachments.js +0 -125
  413. package/dist/molecules/audio-player.d.ts +0 -30
  414. package/dist/molecules/audio-player.d.ts.map +0 -1
  415. package/dist/molecules/audio-player.js +0 -43
  416. package/dist/molecules/canvas.d.ts +0 -9
  417. package/dist/molecules/canvas.d.ts.map +0 -1
  418. package/dist/molecules/canvas.js +0 -5
  419. package/dist/molecules/chain-of-thought.d.ts +0 -30
  420. package/dist/molecules/chain-of-thought.d.ts.map +0 -1
  421. package/dist/molecules/chain-of-thought.js +0 -49
  422. package/dist/molecules/chat-message.d.ts +0 -10
  423. package/dist/molecules/chat-message.d.ts.map +0 -1
  424. package/dist/molecules/chat-message.js +0 -53
  425. package/dist/molecules/checkpoint.d.ts +0 -12
  426. package/dist/molecules/checkpoint.d.ts.map +0 -1
  427. package/dist/molecules/checkpoint.js +0 -10
  428. package/dist/molecules/code-block.d.ts +0 -46
  429. package/dist/molecules/code-block.d.ts.map +0 -1
  430. package/dist/molecules/code-block.js +0 -216
  431. package/dist/molecules/commit.d.ts +0 -65
  432. package/dist/molecules/commit.d.ts.map +0 -1
  433. package/dist/molecules/commit.js +0 -95
  434. package/dist/molecules/confirmation.d.ts +0 -50
  435. package/dist/molecules/confirmation.d.ts.map +0 -1
  436. package/dist/molecules/confirmation.js +0 -61
  437. package/dist/molecules/connection.d.ts +0 -3
  438. package/dist/molecules/connection.d.ts.map +0 -1
  439. package/dist/molecules/connection.js +0 -3
  440. package/dist/molecules/context.d.ts +0 -33
  441. package/dist/molecules/context.d.ts.map +0 -1
  442. package/dist/molecules/context.js +0 -164
  443. package/dist/molecules/controls.d.ts +0 -5
  444. package/dist/molecules/controls.d.ts.map +0 -1
  445. package/dist/molecules/controls.js +0 -5
  446. package/dist/molecules/conversation.d.ts +0 -24
  447. package/dist/molecules/conversation.d.ts.map +0 -1
  448. package/dist/molecules/conversation.js +0 -41
  449. package/dist/molecules/edge.d.ts +0 -6
  450. package/dist/molecules/edge.d.ts.map +0 -1
  451. package/dist/molecules/edge.js +0 -87
  452. package/dist/molecules/environment-variables.d.ts +0 -39
  453. package/dist/molecules/environment-variables.d.ts.map +0 -1
  454. package/dist/molecules/environment-variables.js +0 -87
  455. package/dist/molecules/file-tree.d.ts +0 -27
  456. package/dist/molecules/file-tree.d.ts.map +0 -1
  457. package/dist/molecules/file-tree.js +0 -71
  458. package/dist/molecules/image.d.ts +0 -7
  459. package/dist/molecules/image.d.ts.map +0 -1
  460. package/dist/molecules/image.js +0 -3
  461. package/dist/molecules/inline-citation.d.ts +0 -39
  462. package/dist/molecules/inline-citation.d.ts.map +0 -1
  463. package/dist/molecules/inline-citation.js +0 -68
  464. package/dist/molecules/jsx-preview.d.ts +0 -30
  465. package/dist/molecules/jsx-preview.d.ts.map +0 -1
  466. package/dist/molecules/jsx-preview.js +0 -167
  467. package/dist/molecules/loader.d.ts +0 -6
  468. package/dist/molecules/loader.d.ts.map +0 -1
  469. package/dist/molecules/loader.js +0 -4
  470. package/dist/molecules/message.d.ts +0 -38
  471. package/dist/molecules/message.d.ts.map +0 -1
  472. package/dist/molecules/message.js +0 -92
  473. package/dist/molecules/mic-selector.d.ts +0 -46
  474. package/dist/molecules/mic-selector.d.ts.map +0 -1
  475. package/dist/molecules/mic-selector.js +0 -184
  476. package/dist/molecules/model-selector.d.ts +0 -36
  477. package/dist/molecules/model-selector.d.ts.map +0 -1
  478. package/dist/molecules/model-selector.js +0 -18
  479. package/dist/molecules/node.d.ts +0 -22
  480. package/dist/molecules/node.d.ts.map +0 -1
  481. package/dist/molecules/node.js +0 -11
  482. package/dist/molecules/open-in-chat.d.ts +0 -29
  483. package/dist/molecules/open-in-chat.d.ts.map +0 -1
  484. package/dist/molecules/open-in-chat.js +0 -100
  485. package/dist/molecules/package-info.d.ts +0 -30
  486. package/dist/molecules/package-info.d.ts.map +0 -1
  487. package/dist/molecules/package-info.js +0 -50
  488. package/dist/molecules/panel.d.ts +0 -6
  489. package/dist/molecules/panel.d.ts.map +0 -1
  490. package/dist/molecules/panel.js +0 -4
  491. package/dist/molecules/persona.d.ts +0 -49
  492. package/dist/molecules/persona.d.ts.map +0 -1
  493. package/dist/molecules/persona.js +0 -189
  494. package/dist/molecules/plan.d.ts +0 -26
  495. package/dist/molecules/plan.d.ts.map +0 -1
  496. package/dist/molecules/plan.js +0 -34
  497. package/dist/molecules/prompt-input.d.ts +0 -149
  498. package/dist/molecules/prompt-input.d.ts.map +0 -1
  499. package/dist/molecules/prompt-input.js +0 -702
  500. package/dist/molecules/queue.d.ts +0 -62
  501. package/dist/molecules/queue.d.ts.map +0 -1
  502. package/dist/molecules/queue.js +0 -28
  503. package/dist/molecules/reasoning.d.ts +0 -27
  504. package/dist/molecules/reasoning.d.ts.map +0 -1
  505. package/dist/molecules/reasoning.js +0 -95
  506. package/dist/molecules/response.d.ts +0 -6
  507. package/dist/molecules/response.d.ts.map +0 -1
  508. package/dist/molecules/response.js +0 -18
  509. package/dist/molecules/responsive-alert-dialog.d.ts +0 -16
  510. package/dist/molecules/responsive-alert-dialog.d.ts.map +0 -1
  511. package/dist/molecules/responsive-alert-dialog.js +0 -20
  512. package/dist/molecules/responsive-dialog.d.ts +0 -11
  513. package/dist/molecules/responsive-dialog.d.ts.map +0 -1
  514. package/dist/molecules/responsive-dialog.js +0 -21
  515. package/dist/molecules/sandbox.d.ts +0 -25
  516. package/dist/molecules/sandbox.d.ts.map +0 -1
  517. package/dist/molecules/sandbox.js +0 -15
  518. package/dist/molecules/schema-display.d.ts +0 -56
  519. package/dist/molecules/schema-display.d.ts.map +0 -1
  520. package/dist/molecules/schema-display.js +0 -73
  521. package/dist/molecules/shimmer.d.ts +0 -10
  522. package/dist/molecules/shimmer.d.ts.map +0 -1
  523. package/dist/molecules/shimmer.js +0 -28
  524. package/dist/molecules/snippet.d.ts +0 -19
  525. package/dist/molecules/snippet.d.ts.map +0 -1
  526. package/dist/molecules/snippet.js +0 -46
  527. package/dist/molecules/sources.d.ts +0 -13
  528. package/dist/molecules/sources.d.ts.map +0 -1
  529. package/dist/molecules/sources.js +0 -9
  530. package/dist/molecules/speech-input.d.ts +0 -55
  531. package/dist/molecules/speech-input.d.ts.map +0 -1
  532. package/dist/molecules/speech-input.js +0 -187
  533. package/dist/molecules/stack-trace.d.ts +0 -38
  534. package/dist/molecules/stack-trace.d.ts.map +0 -1
  535. package/dist/molecules/stack-trace.js +0 -194
  536. package/dist/molecules/suggestion.d.ts +0 -11
  537. package/dist/molecules/suggestion.d.ts.map +0 -1
  538. package/dist/molecules/suggestion.js +0 -13
  539. package/dist/molecules/task.d.ts +0 -15
  540. package/dist/molecules/task.d.ts.map +0 -1
  541. package/dist/molecules/task.js +0 -10
  542. package/dist/molecules/terminal.d.ts +0 -28
  543. package/dist/molecules/terminal.d.ts.map +0 -1
  544. package/dist/molecules/terminal.js +0 -68
  545. package/dist/molecules/test-results.d.ts +0 -59
  546. package/dist/molecules/test-results.d.ts.map +0 -1
  547. package/dist/molecules/test-results.js +0 -97
  548. package/dist/molecules/tool.d.ts +0 -32
  549. package/dist/molecules/tool.d.ts.map +0 -1
  550. package/dist/molecules/tool.js +0 -49
  551. package/dist/molecules/toolbar.d.ts +0 -6
  552. package/dist/molecules/toolbar.d.ts.map +0 -1
  553. package/dist/molecules/toolbar.js +0 -4
  554. package/dist/molecules/transcription.d.ts +0 -17
  555. package/dist/molecules/transcription.d.ts.map +0 -1
  556. package/dist/molecules/transcription.js +0 -36
  557. package/dist/molecules/voice-selector.d.ts +0 -64
  558. package/dist/molecules/voice-selector.d.ts.map +0 -1
  559. package/dist/molecules/voice-selector.js +0 -224
  560. package/dist/molecules/web-preview.d.ts +0 -35
  561. package/dist/molecules/web-preview.d.ts.map +0 -1
  562. package/dist/molecules/web-preview.js +0 -65
@@ -1,35 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Drawer as DrawerPrimitive } from "vaul";
4
- import { cn } from "@chatsdk-dev/ui/lib/utils";
5
- function Drawer({ ...props }) {
6
- return _jsx(DrawerPrimitive.Root, { "data-slot": "drawer", ...props });
7
- }
8
- function DrawerTrigger({ ...props }) {
9
- return _jsx(DrawerPrimitive.Trigger, { "data-slot": "drawer-trigger", ...props });
10
- }
11
- function DrawerPortal({ ...props }) {
12
- return _jsx(DrawerPrimitive.Portal, { "data-slot": "drawer-portal", ...props });
13
- }
14
- function DrawerClose({ ...props }) {
15
- return _jsx(DrawerPrimitive.Close, { "data-slot": "drawer-close", ...props });
16
- }
17
- function DrawerOverlay({ className, ...props }) {
18
- return (_jsx(DrawerPrimitive.Overlay, { "data-slot": "drawer-overlay", className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", className), ...props }));
19
- }
20
- function DrawerContent({ className, children, ...props }) {
21
- return (_jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [_jsx(DrawerOverlay, {}), _jsxs(DrawerPrimitive.Content, { "data-slot": "drawer-content", className: cn("bg-background flex h-auto flex-col text-sm 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-xl data-[vaul-drawer-direction=bottom]:border-t 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]:rounded-r-xl data-[vaul-drawer-direction=left]:border-r 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]:rounded-l-xl data-[vaul-drawer-direction=right]:border-l 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-xl data-[vaul-drawer-direction=top]:border-b data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm group/drawer-content fixed z-50", className), ...props, children: [_jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-1 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block bg-muted mx-auto hidden shrink-0 group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), children] })] }));
22
- }
23
- function DrawerHeader({ className, ...props }) {
24
- return (_jsx("div", { "data-slot": "drawer-header", className: cn("gap-0.5 p-6 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-left flex flex-col", className), ...props }));
25
- }
26
- function DrawerFooter({ className, ...props }) {
27
- return (_jsx("div", { "data-slot": "drawer-footer", className: cn("gap-2 p-4 mt-auto flex flex-col", className), ...props }));
28
- }
29
- function DrawerTitle({ className, ...props }) {
30
- return (_jsx(DrawerPrimitive.Title, { "data-slot": "drawer-title", className: cn("text-foreground text-base font-medium", className), ...props }));
31
- }
32
- function DrawerDescription({ className, ...props }) {
33
- return (_jsx(DrawerPrimitive.Description, { "data-slot": "drawer-description", className: cn("text-muted-foreground text-sm", className), ...props }));
34
- }
35
- export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
@@ -1,26 +0,0 @@
1
- import { Menu as MenuPrimitive } from "@base-ui/react/menu";
2
- import * as React from "react";
3
- declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
4
- declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
5
- declare function DropdownMenuTrigger({ ...props }: MenuPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
6
- declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react/jsx-runtime").JSX.Element;
7
- declare function DropdownMenuGroup({ ...props }: MenuPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
8
- declare function DropdownMenuLabel({ className, inset, ...props }: MenuPrimitive.GroupLabel.Props & {
9
- inset?: boolean;
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare function DropdownMenuItem({ className, inset, variant, ...props }: MenuPrimitive.Item.Props & {
12
- inset?: boolean;
13
- variant?: "default" | "destructive";
14
- }): import("react/jsx-runtime").JSX.Element;
15
- declare function DropdownMenuSub({ ...props }: MenuPrimitive.SubmenuRoot.Props): import("react/jsx-runtime").JSX.Element;
16
- declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: MenuPrimitive.SubmenuTrigger.Props & {
17
- inset?: boolean;
18
- }): import("react/jsx-runtime").JSX.Element;
19
- declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: React.ComponentProps<typeof DropdownMenuContent>): import("react/jsx-runtime").JSX.Element;
20
- declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: MenuPrimitive.CheckboxItem.Props): import("react/jsx-runtime").JSX.Element;
21
- declare function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props): import("react/jsx-runtime").JSX.Element;
22
- declare function DropdownMenuRadioItem({ className, children, ...props }: MenuPrimitive.RadioItem.Props): import("react/jsx-runtime").JSX.Element;
23
- declare function DropdownMenuSeparator({ className, ...props }: MenuPrimitive.Separator.Props): import("react/jsx-runtime").JSX.Element;
24
- declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
25
- export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
26
- //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,IAAI,CAAC,KAAK,2CAE3D;AAED,iBAAS,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,2CAEnE;AAED,iBAAS,mBAAmB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,OAAO,CAAC,KAAK,2CAErE;AAED,iBAAS,mBAAmB,CAAC,EAC3B,KAAe,EACf,WAAe,EACf,IAAe,EACf,UAAc,EACd,SAAS,EACT,GAAG,KAAK,EACT,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,GAC1B,IAAI,CACF,aAAa,CAAC,UAAU,CAAC,KAAK,EAC9B,OAAO,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,CAChD,2CAqBF;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,2CAEjE;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,aAAa,CAAC,UAAU,CAAC,KAAK,GAAG;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,2CAYA;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,KAAK,EACL,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,aAAa,CAAC,IAAI,CAAC,KAAK,GAAG;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACrC,2CAaA;AAED,iBAAS,eAAe,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,WAAW,CAAC,KAAK,2CAErE;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,aAAa,CAAC,cAAc,CAAC,KAAK,GAAG;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,2CAeA;AAED,iBAAS,sBAAsB,CAAC,EAC9B,KAAe,EACf,WAAgB,EAChB,IAAc,EACd,UAAc,EACd,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,2CAelD;AAED,iBAAS,wBAAwB,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,aAAa,CAAC,YAAY,CAAC,KAAK,2CAsBlC;AAED,iBAAS,sBAAsB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,CAAC,UAAU,CAAC,KAAK,2CAO3E;AAED,iBAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,aAAa,CAAC,SAAS,CAAC,KAAK,2CAqB/B;AAED,iBAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,aAAa,CAAC,SAAS,CAAC,KAAK,2CAQ/B;AAED,iBAAS,oBAAoB,CAAC,EAC5B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAW9B;AAED,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,GACpB,CAAC"}
@@ -1,51 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Menu as MenuPrimitive } from "@base-ui/react/menu";
4
- import { cn } from "@chatsdk-dev/ui/lib/utils";
5
- import { CheckIcon, ChevronRightIcon } from "lucide-react";
6
- function DropdownMenu({ ...props }) {
7
- return _jsx(MenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
8
- }
9
- function DropdownMenuPortal({ ...props }) {
10
- return _jsx(MenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
11
- }
12
- function DropdownMenuTrigger({ ...props }) {
13
- return _jsx(MenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
14
- }
15
- function DropdownMenuContent({ align = "start", alignOffset = 0, side = "bottom", sideOffset = 4, className, ...props }) {
16
- return (_jsx(MenuPrimitive.Portal, { children: _jsx(MenuPrimitive.Positioner, { className: "isolate z-50 outline-none", align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, children: _jsx(MenuPrimitive.Popup, { "data-slot": "dropdown-menu-content", className: cn("bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-sm p-1 shadow-md ring-1 duration-100 z-50 max-h-(--available-height) origin-(--transform-origin) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden", className), ...props }) }) }));
17
- }
18
- function DropdownMenuGroup({ ...props }) {
19
- return _jsx(MenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
20
- }
21
- function DropdownMenuLabel({ className, inset, ...props }) {
22
- return (_jsx(MenuPrimitive.GroupLabel, { "data-slot": "dropdown-menu-label", "data-inset": inset, className: cn("text-muted-foreground px-1.5 py-1 text-xs font-medium data-[inset]:pl-8", className), ...props }));
23
- }
24
- function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
25
- return (_jsx(MenuPrimitive.Item, { "data-slot": "dropdown-menu-item", "data-inset": inset, "data-variant": variant, className: cn("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 not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-sm px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-4 group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), ...props }));
26
- }
27
- function DropdownMenuSub({ ...props }) {
28
- return _jsx(MenuPrimitive.SubmenuRoot, { "data-slot": "dropdown-menu-sub", ...props });
29
- }
30
- function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
31
- return (_jsxs(MenuPrimitive.SubmenuTrigger, { "data-slot": "dropdown-menu-sub-trigger", "data-inset": inset, className: cn("focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-sm px-1.5 py-1 text-sm [&_svg:not([class*='size-'])]:size-4 flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), ...props, children: [children, _jsx(ChevronRightIcon, { className: "ml-auto" })] }));
32
- }
33
- function DropdownMenuSubContent({ align = "start", alignOffset = -3, side = "right", sideOffset = 0, className, ...props }) {
34
- return (_jsx(DropdownMenuContent, { "data-slot": "dropdown-menu-sub-content", className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-sm p-1 shadow-lg ring-1 duration-100 w-auto", className), align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, ...props }));
35
- }
36
- function DropdownMenuCheckboxItem({ className, children, checked, ...props }) {
37
- return (_jsxs(MenuPrimitive.CheckboxItem, { "data-slot": "dropdown-menu-checkbox-item", className: cn("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-sm py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), checked: checked, ...props, children: [_jsx("span", { className: "pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none", "data-slot": "dropdown-menu-checkbox-item-indicator", children: _jsx(MenuPrimitive.CheckboxItemIndicator, { children: _jsx(CheckIcon, {}) }) }), children] }));
38
- }
39
- function DropdownMenuRadioGroup({ ...props }) {
40
- return (_jsx(MenuPrimitive.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props }));
41
- }
42
- function DropdownMenuRadioItem({ className, children, ...props }) {
43
- return (_jsxs(MenuPrimitive.RadioItem, { "data-slot": "dropdown-menu-radio-item", className: cn("focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-1.5 rounded-sm py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", className), ...props, children: [_jsx("span", { className: "pointer-events-none absolute right-2 flex items-center justify-center pointer-events-none", "data-slot": "dropdown-menu-radio-item-indicator", children: _jsx(MenuPrimitive.RadioItemIndicator, { children: _jsx(CheckIcon, {}) }) }), children] }));
44
- }
45
- function DropdownMenuSeparator({ className, ...props }) {
46
- return (_jsx(MenuPrimitive.Separator, { "data-slot": "dropdown-menu-separator", className: cn("bg-border -mx-1 my-1 h-px", className), ...props }));
47
- }
48
- function DropdownMenuShortcut({ className, ...props }) {
49
- return (_jsx("span", { "data-slot": "dropdown-menu-shortcut", className: cn("text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest", className), ...props }));
50
- }
51
- export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
@@ -1,12 +0,0 @@
1
- import { type VariantProps } from "class-variance-authority";
2
- declare function Empty({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
3
- declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
4
- declare const emptyMediaVariants: (props?: ({
5
- variant?: "default" | "icon" | null | undefined;
6
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): import("react/jsx-runtime").JSX.Element;
8
- declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
- declare function EmptyDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
10
- declare function EmptyContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
11
- export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia, };
12
- //# sourceMappingURL=empty.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../src/components/empty.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWlE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,QAAA,MAAM,kBAAkB;;8EAavB,CAAC;AAEF,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,2CASvE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQvE;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAW3E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWzE;AAED,OAAO,EACL,KAAK,EACL,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,UAAU,GACX,CAAC"}
@@ -1,33 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cva } from "class-variance-authority";
3
- import { cn } from "@chatsdk-dev/ui/lib/utils";
4
- function Empty({ className, ...props }) {
5
- return (_jsx("div", { "data-slot": "empty", className: cn("gap-4 rounded-lg border-dashed p-12 flex w-full min-w-0 flex-1 flex-col items-center justify-center text-center text-balance", className), ...props }));
6
- }
7
- function EmptyHeader({ className, ...props }) {
8
- return (_jsx("div", { "data-slot": "empty-header", className: cn("gap-2 flex max-w-sm flex-col items-center", className), ...props }));
9
- }
10
- const emptyMediaVariants = cva("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
11
- variants: {
12
- variant: {
13
- default: "bg-transparent",
14
- icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6",
15
- },
16
- },
17
- defaultVariants: {
18
- variant: "default",
19
- },
20
- });
21
- function EmptyMedia({ className, variant = "default", ...props }) {
22
- return (_jsx("div", { "data-slot": "empty-icon", "data-variant": variant, className: cn(emptyMediaVariants({ variant, className })), ...props }));
23
- }
24
- function EmptyTitle({ className, ...props }) {
25
- return (_jsx("div", { "data-slot": "empty-title", className: cn("text-lg font-medium tracking-tight", className), ...props }));
26
- }
27
- function EmptyDescription({ className, ...props }) {
28
- return (_jsx("div", { "data-slot": "empty-description", className: cn("text-sm/relaxed text-muted-foreground [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", className), ...props }));
29
- }
30
- function EmptyContent({ className, ...props }) {
31
- return (_jsx("div", { "data-slot": "empty-content", className: cn("gap-4 text-sm flex w-full max-w-sm min-w-0 flex-col items-center text-balance", className), ...props }));
32
- }
33
- export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia, };
@@ -1,25 +0,0 @@
1
- import { type VariantProps } from "class-variance-authority";
2
- import { Label } from "@chatsdk-dev/ui/components/label";
3
- declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): import("react/jsx-runtime").JSX.Element;
4
- declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
5
- variant?: "legend" | "label";
6
- }): import("react/jsx-runtime").JSX.Element;
7
- declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
- declare const fieldVariants: (props?: ({
9
- orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
10
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
- declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): import("react/jsx-runtime").JSX.Element;
12
- declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
13
- declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): import("react/jsx-runtime").JSX.Element;
14
- declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
15
- declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
16
- declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
17
- children?: React.ReactNode;
18
- }): import("react/jsx-runtime").JSX.Element;
19
- declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
20
- errors?: Array<{
21
- message?: string;
22
- } | undefined>;
23
- }): import("react/jsx-runtime").JSX.Element | null;
24
- export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
25
- //# sourceMappingURL=field.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../src/components/field.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAGzD,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,2CAW1E;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,OAAkB,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;CAAE,2CAYnE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,QAAA,MAAM,aAAa;;8EAgBlB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,WAAwB,EACxB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,2CAUlE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWzE;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,2CAYpC;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAa3E;AAED,iBAAS,cAAc,CAAC,EACtB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,2CAsBA;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,CAAC;CAClD,kDA0CA;AAED,OAAO,EACL,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,WAAW,EACX,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,UAAU,GACX,CAAC"}
@@ -1,68 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useMemo } from "react";
4
- import { cva } from "class-variance-authority";
5
- import { cn } from "@chatsdk-dev/ui/lib/utils";
6
- import { Label } from "@chatsdk-dev/ui/components/label";
7
- import { Separator } from "@chatsdk-dev/ui/components/separator";
8
- function FieldSet({ className, ...props }) {
9
- return (_jsx("fieldset", { "data-slot": "field-set", className: cn("gap-4 has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3 flex flex-col", className), ...props }));
10
- }
11
- function FieldLegend({ className, variant = "legend", ...props }) {
12
- return (_jsx("legend", { "data-slot": "field-legend", "data-variant": variant, className: cn("mb-1.5 font-medium data-[variant=label]:text-sm data-[variant=legend]:text-base", className), ...props }));
13
- }
14
- function FieldGroup({ className, ...props }) {
15
- return (_jsx("div", { "data-slot": "field-group", className: cn("gap-5 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4 group/field-group @container/field-group flex w-full flex-col", className), ...props }));
16
- }
17
- const fieldVariants = cva("data-[invalid=true]:text-destructive gap-2 group/field flex w-full", {
18
- variants: {
19
- orientation: {
20
- vertical: "flex-col [&>*]:w-full [&>.sr-only]:w-auto",
21
- horizontal: "flex-row items-center [&>[data-slot=field-label]]:flex-auto has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
22
- responsive: "flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto @md/field-group:[&>[data-slot=field-label]]:flex-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
23
- },
24
- },
25
- defaultVariants: {
26
- orientation: "vertical",
27
- },
28
- });
29
- function Field({ className, orientation = "vertical", ...props }) {
30
- return (_jsx("div", { role: "group", "data-slot": "field", "data-orientation": orientation, className: cn(fieldVariants({ orientation }), className), ...props }));
31
- }
32
- function FieldContent({ className, ...props }) {
33
- return (_jsx("div", { "data-slot": "field-content", className: cn("gap-0.5 group/field-content flex flex-1 flex-col leading-snug", className), ...props }));
34
- }
35
- function FieldLabel({ className, ...props }) {
36
- return (_jsx(Label, { "data-slot": "field-label", className: cn("has-data-checked:bg-primary/5 has-data-checked:border-primary dark:has-data-checked:bg-primary/10 gap-2 group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-2.5 group/field-label peer/field-label flex w-fit leading-snug", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", className), ...props }));
37
- }
38
- function FieldTitle({ className, ...props }) {
39
- return (_jsx("div", { "data-slot": "field-label", className: cn("gap-2 text-sm font-medium group-data-[disabled=true]/field:opacity-50 flex w-fit items-center leading-snug", className), ...props }));
40
- }
41
- function FieldDescription({ className, ...props }) {
42
- return (_jsx("p", { "data-slot": "field-description", className: cn("text-muted-foreground text-left text-sm [[data-variant=legend]+&]:-mt-1.5 leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance", "last:mt-0 nth-last-2:-mt-1", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", className), ...props }));
43
- }
44
- function FieldSeparator({ children, className, ...props }) {
45
- return (_jsxs("div", { "data-slot": "field-separator", "data-content": !!children, className: cn("-my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2 relative", className), ...props, children: [_jsx(Separator, { className: "absolute inset-0 top-1/2" }), children && (_jsx("span", { className: "text-muted-foreground px-2 bg-background relative mx-auto block w-fit", "data-slot": "field-separator-content", children: children }))] }));
46
- }
47
- function FieldError({ className, children, errors, ...props }) {
48
- const content = useMemo(() => {
49
- if (children) {
50
- return children;
51
- }
52
- if (!errors?.length) {
53
- return null;
54
- }
55
- const uniqueErrors = [
56
- ...new Map(errors.map((error) => [error?.message, error])).values(),
57
- ];
58
- if (uniqueErrors?.length == 1) {
59
- return uniqueErrors[0]?.message;
60
- }
61
- return (_jsx("ul", { className: "ml-4 flex list-disc flex-col gap-1", children: uniqueErrors.map((error, index) => error?.message && _jsx("li", { children: error.message }, index)) }));
62
- }, [children, errors]);
63
- if (!content) {
64
- return null;
65
- }
66
- return (_jsx("div", { role: "alert", "data-slot": "field-error", className: cn("text-destructive text-sm font-normal", className), ...props, children: content }));
67
- }
68
- export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
@@ -1,23 +0,0 @@
1
- import { useRender } from "@base-ui/react/use-render";
2
- import * as React from "react";
3
- import { FormProvider, type ControllerProps, type FieldPath, type FieldValues } from "react-hook-form";
4
- declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
5
- declare const useFormField: () => {
6
- invalid: boolean;
7
- isDirty: boolean;
8
- isTouched: boolean;
9
- isValidating: boolean;
10
- error?: import("react-hook-form").FieldError;
11
- id: string;
12
- name: string;
13
- formItemId: string;
14
- formDescriptionId: string;
15
- formMessageId: string;
16
- };
17
- declare function FormItem({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
18
- declare function FormLabel({ className, ...props }: React.ComponentProps<"label">): import("react/jsx-runtime").JSX.Element;
19
- declare function FormControl({ render, ...props }: useRender.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
20
- declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
21
- declare function FormMessage({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element | null;
22
- export { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormProvider, useFormField, };
23
- //# sourceMappingURL=form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/components/form.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,YAAY,EAGZ,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AAgBzB,QAAA,MAAM,SAAS,GACb,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC/D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,4CAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAUF,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAYrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAYxE;AAED,iBAAS,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,0EAmBzE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAW1E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,kDAkBtE;AAED,OAAO,EACL,WAAW,EACX,eAAe,EACf,SAAS,EACT,QAAQ,EACR,SAAS,EACT,WAAW,EACX,YAAY,EACZ,YAAY,GACb,CAAC"}
@@ -1,68 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { mergeProps } from "@base-ui/react/merge-props";
4
- import { useRender } from "@base-ui/react/use-render";
5
- import * as React from "react";
6
- import { Controller, FormProvider, useFormContext, useFormState, } from "react-hook-form";
7
- import { Label } from "@chatsdk-dev/ui/components/label";
8
- import { cn } from "@chatsdk-dev/ui/lib/utils";
9
- const FormFieldContext = React.createContext({});
10
- const FormField = ({ ...props }) => {
11
- return (_jsx(FormFieldContext.Provider, { value: { name: props.name }, children: _jsx(Controller, { ...props }) }));
12
- };
13
- const useFormField = () => {
14
- const fieldContext = React.useContext(FormFieldContext);
15
- const itemContext = React.useContext(FormItemContext);
16
- const { getFieldState } = useFormContext();
17
- const formState = useFormState({ name: fieldContext.name });
18
- const fieldState = getFieldState(fieldContext.name, formState);
19
- if (!fieldContext) {
20
- throw new Error("useFormField should be used within <FormField>");
21
- }
22
- const { id } = itemContext;
23
- return {
24
- id,
25
- name: fieldContext.name,
26
- formItemId: `${id}-form-item`,
27
- formDescriptionId: `${id}-form-item-description`,
28
- formMessageId: `${id}-form-item-message`,
29
- ...fieldState,
30
- };
31
- };
32
- const FormItemContext = React.createContext({});
33
- function FormItem({ className, ...props }) {
34
- const id = React.useId();
35
- return (_jsx(FormItemContext.Provider, { value: { id }, children: _jsx("div", { "data-slot": "form-item", className: cn("grid gap-2", className), ...props }) }));
36
- }
37
- function FormLabel({ className, ...props }) {
38
- const { error, formItemId } = useFormField();
39
- return (_jsx(Label, { "data-slot": "form-label", "data-error": !!error, className: cn("data-[error=true]:text-destructive", className), htmlFor: formItemId, ...props }));
40
- }
41
- function FormControl({ render, ...props }) {
42
- const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
43
- return useRender({
44
- defaultTagName: "div",
45
- render,
46
- props: mergeProps({
47
- "data-slot": "form-control",
48
- id: formItemId,
49
- "aria-describedby": !error
50
- ? `${formDescriptionId}`
51
- : `${formDescriptionId} ${formMessageId}`,
52
- "aria-invalid": !!error,
53
- }, props),
54
- });
55
- }
56
- function FormDescription({ className, ...props }) {
57
- const { formDescriptionId } = useFormField();
58
- return (_jsx("p", { "data-slot": "form-description", id: formDescriptionId, className: cn("text-muted-foreground text-sm", className), ...props }));
59
- }
60
- function FormMessage({ className, ...props }) {
61
- const { error, formMessageId } = useFormField();
62
- const body = error ? String(error?.message ?? "") : props.children;
63
- if (!body) {
64
- return null;
65
- }
66
- return (_jsx("p", { "data-slot": "form-message", id: formMessageId, className: cn("text-destructive text-xs", className), ...props, children: body }));
67
- }
68
- export { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormProvider, useFormField, };
@@ -1,6 +0,0 @@
1
- export interface HeaderProps {
2
- className?: string;
3
- children?: React.ReactNode;
4
- }
5
- export declare function Header({ className, children }: HeaderProps): import("react/jsx-runtime").JSX.Element;
6
- //# sourceMappingURL=header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../src/components/header.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,WAAW,2CAW1D"}
@@ -1,6 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { cn } from "../lib/utils";
4
- export function Header({ className, children }) {
5
- return (_jsx("header", { className: cn(`h-16 top-0 inset-x-0 z-50 transition-all duration-200 ease-in-out`, className), children: children }));
6
- }
@@ -1,6 +0,0 @@
1
- import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
2
- declare function HoverCard({ ...props }: PreviewCardPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
3
- declare function HoverCardTrigger({ ...props }: PreviewCardPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
4
- declare function HoverCardContent({ className, side, sideOffset, align, alignOffset, ...props }: PreviewCardPrimitive.Popup.Props & Pick<PreviewCardPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react/jsx-runtime").JSX.Element;
5
- export { HoverCard, HoverCardTrigger, HoverCardContent };
6
- //# sourceMappingURL=hover-card.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hover-card.d.ts","sourceRoot":"","sources":["../../src/components/hover-card.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAIlF,iBAAS,SAAS,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,CAAC,IAAI,CAAC,KAAK,2CAE/D;AAED,iBAAS,gBAAgB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,CAAC,OAAO,CAAC,KAAK,2CAIzE;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,IAAe,EACf,UAAc,EACd,KAAgB,EAChB,WAAe,EACf,GAAG,KAAK,EACT,EAAE,oBAAoB,CAAC,KAAK,CAAC,KAAK,GACjC,IAAI,CACF,oBAAoB,CAAC,UAAU,CAAC,KAAK,EACrC,OAAO,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,CAChD,2CAqBF;AAED,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,14 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { PreviewCard as PreviewCardPrimitive } from "@base-ui/react/preview-card";
4
- import { cn } from "@chatsdk-dev/ui/lib/utils";
5
- function HoverCard({ ...props }) {
6
- return _jsx(PreviewCardPrimitive.Root, { "data-slot": "hover-card", ...props });
7
- }
8
- function HoverCardTrigger({ ...props }) {
9
- return (_jsx(PreviewCardPrimitive.Trigger, { "data-slot": "hover-card-trigger", ...props }));
10
- }
11
- function HoverCardContent({ className, side = "bottom", sideOffset = 4, align = "center", alignOffset = 4, ...props }) {
12
- return (_jsx(PreviewCardPrimitive.Portal, { "data-slot": "hover-card-portal", children: _jsx(PreviewCardPrimitive.Positioner, { align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, className: "isolate z-50", children: _jsx(PreviewCardPrimitive.Popup, { "data-slot": "hover-card-content", className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-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 ring-foreground/10 bg-popover text-popover-foreground w-64 rounded-lg p-2.5 text-sm shadow-md ring-1 duration-100 z-50 origin-(--transform-origin) outline-hidden", className), ...props }) }) }));
13
- }
14
- export { HoverCard, HoverCardTrigger, HoverCardContent };
@@ -1,5 +0,0 @@
1
- export { Button, buttonVariants } from "./button";
2
- export type { ButtonProps } from "./button";
3
- export * from "./textarea";
4
- export { cn } from "../lib/utils";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAClD,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,cAAc,YAAY,CAAC;AAG3B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC"}
@@ -1,5 +0,0 @@
1
- // Export all components
2
- export { Button, buttonVariants } from "./button";
3
- export * from "./textarea";
4
- // Export utilities
5
- export { cn } from "../lib/utils";
@@ -1,19 +0,0 @@
1
- import * as React from "react";
2
- import { type VariantProps } from "class-variance-authority";
3
- import { Button } from "@chatsdk-dev/ui/components/button";
4
- declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
5
- declare const inputGroupAddonVariants: (props?: ({
6
- align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
7
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
- declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
9
- declare const inputGroupButtonVariants: (props?: ({
10
- size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
11
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
- declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
13
- type?: "button" | "submit" | "reset";
14
- }): import("react/jsx-runtime").JSX.Element;
15
- declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
16
- declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
17
- declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
18
- export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
19
- //# sourceMappingURL=input-group.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["../../src/components/input-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAI3D,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAYvE;AAED,QAAA,MAAM,uBAAuB;;8EAmB5B,CAAC;AAEF,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,KAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,2CAgB5E;AAED,QAAA,MAAM,wBAAwB;;8EAgB7B,CAAC;AAEF,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,IAAe,EACf,OAAiB,EACjB,IAAW,EACX,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,GAC3D,YAAY,CAAC,OAAO,wBAAwB,CAAC,GAAG;IAC9C,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;CACtC,2CAUF;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAU5E;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAW/B;AAED,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,2CAWlC;AAED,OAAO,EACL,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,GACnB,CAAC"}
@@ -1,57 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { cva } from "class-variance-authority";
4
- import { cn } from "@chatsdk-dev/ui/lib/utils";
5
- import { Button } from "@chatsdk-dev/ui/components/button";
6
- import { Input } from "@chatsdk-dev/ui/components/input";
7
- import { Textarea } from "@chatsdk-dev/ui/components/textarea";
8
- function InputGroup({ className, ...props }) {
9
- return (_jsx("div", { "data-slot": "input-group", role: "group", className: cn("border-input dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 h-9 rounded-sm border shadow-xs transition-[color,box-shadow] has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot][aria-invalid=true]]:ring-[3px] has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 [[data-slot=combobox-content]_&]:focus-within:border-inherit [[data-slot=combobox-content]_&]:focus-within:ring-0 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto", className), ...props }));
10
- }
11
- const inputGroupAddonVariants = cva("text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4 flex cursor-text items-center justify-center select-none", {
12
- variants: {
13
- align: {
14
- "inline-start": "pl-2 has-[>button]:ml-[-0.25rem] has-[>kbd]:ml-[-0.15rem] order-first",
15
- "inline-end": "pr-2 has-[>button]:mr-[-0.25rem] has-[>kbd]:mr-[-0.15rem] order-last",
16
- "block-start": "px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start",
17
- "block-end": "px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start",
18
- },
19
- },
20
- defaultVariants: {
21
- align: "inline-start",
22
- },
23
- });
24
- function InputGroupAddon({ className, align = "inline-start", ...props }) {
25
- return (_jsx("div", { role: "group", "data-slot": "input-group-addon", "data-align": align, className: cn(inputGroupAddonVariants({ align }), className), onClick: (e) => {
26
- if (e.target.closest("button")) {
27
- return;
28
- }
29
- e.currentTarget.parentElement?.querySelector("input")?.focus();
30
- }, ...props }));
31
- }
32
- const inputGroupButtonVariants = cva("gap-2 text-sm shadow-none flex items-center", {
33
- variants: {
34
- size: {
35
- xs: "h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-1.5 [&>svg:not([class*='size-'])]:size-3.5",
36
- sm: "",
37
- "icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
38
- "icon-sm": "size-8 p-0 has-[>svg]:p-0",
39
- },
40
- },
41
- defaultVariants: {
42
- size: "xs",
43
- },
44
- });
45
- function InputGroupButton({ className, type = "button", variant = "ghost", size = "xs", ...props }) {
46
- return (_jsx(Button, { type: type, "data-size": size, variant: variant, className: cn(inputGroupButtonVariants({ size }), className), ...props }));
47
- }
48
- function InputGroupText({ className, ...props }) {
49
- return (_jsx("span", { className: cn("text-muted-foreground gap-2 text-sm [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none", className), ...props }));
50
- }
51
- function InputGroupInput({ className, ...props }) {
52
- return (_jsx(Input, { "data-slot": "input-group-control", className: cn("rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1", className), ...props }));
53
- }
54
- function InputGroupTextarea({ className, ...props }) {
55
- return (_jsx(Textarea, { "data-slot": "input-group-control", className: cn("rounded-none border-0 bg-transparent py-2 shadow-none ring-0 focus-visible:ring-0 aria-invalid:ring-0 dark:bg-transparent flex-1 resize-none", className), ...props }));
56
- }
57
- export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- type InputProps = Omit<React.ComponentProps<"input">, "value"> & {
3
- value?: React.ComponentProps<"input">["value"] | null;
4
- };
5
- export declare function Input({ className, type, value, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
7
- //# sourceMappingURL=input.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/components/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,KAAK,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,GAAG;IAE/D,KAAK,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;CACvD,CAAC;AAEF,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,2CAarE"}
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Input as InputPrimitive } from "@base-ui/react/input";
3
- import { cn } from "@chatsdk-dev/ui/lib/utils";
4
- export function Input({ className, type, value, ...props }) {
5
- return (_jsx(InputPrimitive, { type: type, "data-slot": "input", className: cn("dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 h-9 rounded-sm border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] file:h-7 file:text-sm file:font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] md:text-sm file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50", className), value: value || "", ...props }));
6
- }
@@ -1,3 +0,0 @@
1
- import * as React from "react";
2
- export declare function Label({ className, ...props }: React.ComponentProps<"label">): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=label.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/components/label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAY3E"}
@@ -1,7 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { cn } from "@chatsdk-dev/ui/lib/utils";
4
- import { textVariants } from "@chatsdk-dev/ui/components/typography/text";
5
- export function Label({ className, ...props }) {
6
- return (_jsx("label", { "data-slot": "label", className: cn("gap-2 group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed", textVariants({ variant: "small", color: "default" }), className), ...props }));
7
- }
@@ -1,7 +0,0 @@
1
- export interface LogoProps {
2
- label?: string;
3
- logoSrc?: string;
4
- className?: string;
5
- }
6
- export declare function Logo({ label, logoSrc, className }: LogoProps): import("react/jsx-runtime").JSX.Element;
7
- //# sourceMappingURL=logo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/components/logo.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,SAAS,2CAW5D"}
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from "../lib/utils";
3
- import { H1 } from "./typography/h1";
4
- export function Logo({ label, logoSrc, className }) {
5
- return (_jsxs("div", { className: cn("flex items-center gap-1", className), children: [logoSrc && _jsx("img", { width: 23, height: 23, src: logoSrc, alt: "logo" }), label && (_jsx(H1, { variant: "h2", className: "font-heading whitespace-nowrap", children: label }))] }));
6
- }