@orion-ds/react 4.2.3 → 4.2.5

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 (383) hide show
  1. package/dist/components/Accordion/Accordion.module.css +1 -0
  2. package/dist/components/ActivityFeed/ActivityFeed.module.css +1 -0
  3. package/dist/components/AgentCard/AgentCard.module.css +1 -0
  4. package/dist/components/Alert/Alert.module.css +1 -0
  5. package/dist/components/AlertDialog/AlertDialog.module.css +1 -0
  6. package/dist/components/Avatar/Avatar.module.css +1 -0
  7. package/dist/components/Badge/Badge.module.css +1 -0
  8. package/dist/components/Banner/Banner.module.css +1 -0
  9. package/dist/components/Breadcrumb/Breadcrumb.module.css +1 -0
  10. package/dist/components/Button/Button.module.css +1 -0
  11. package/dist/components/Calendar/Calendar.module.css +1 -0
  12. package/dist/components/Card/Card.module.css +1 -0
  13. package/dist/components/Carousel/Carousel.module.css +1 -0
  14. package/dist/components/Chart/Chart.module.css +1 -0
  15. package/dist/components/Chat/Chat.module.css +1 -0
  16. package/dist/components/Checkbox/Checkbox.module.css +1 -0
  17. package/dist/components/Chip/Chip.module.css +1 -0
  18. package/dist/components/CodeEditor/CodeEditor.module.css +1 -0
  19. package/dist/components/Collapsible/Collapsible.module.css +1 -0
  20. package/dist/components/CollapsibleFolder/CollapsibleFolder.module.css +1 -0
  21. package/dist/components/Combobox/Combobox.module.css +1 -0
  22. package/dist/components/Command/Command.module.css +1 -0
  23. package/dist/components/CommandBar/CommandBar.module.css +1 -0
  24. package/dist/components/DataTable/DataTable.module.css +1 -0
  25. package/dist/components/DatePicker/DatePicker.module.css +1 -0
  26. package/dist/components/DetailPanel/DetailPanel.module.css +1 -0
  27. package/dist/components/Divider/Divider.module.css +1 -0
  28. package/dist/components/Drawer/Drawer.module.css +1 -0
  29. package/dist/components/Dropdown/Dropdown.module.css +1 -0
  30. package/dist/components/EmptyState/EmptyState.module.css +1 -0
  31. package/dist/components/ErrorBoundary/ErrorBoundary.module.css +1 -0
  32. package/dist/components/Field/Field.module.css +1 -0
  33. package/dist/components/FileUploader/FileUploader.module.css +1 -0
  34. package/dist/components/FilterBar/FilterBar.module.css +1 -0
  35. package/dist/components/FormSection/FormSection.module.css +1 -0
  36. package/dist/components/Icon/Icon.module.css +1 -0
  37. package/dist/components/IconGallery/IconGallery.module.css +1 -0
  38. package/dist/components/InputOTP/InputOTP.module.css +1 -0
  39. package/dist/components/KanbanBoard/KanbanBoard.module.css +1 -0
  40. package/dist/components/Link/Link.module.css +1 -0
  41. package/dist/components/List/List.module.css +1 -0
  42. package/dist/components/MetricCards/MetricCards.module.css +1 -0
  43. package/dist/components/Modal/Modal.module.css +1 -0
  44. package/dist/components/NavTree/NavTree.module.css +1 -0
  45. package/dist/components/Navbar/Navbar.module.css +1 -0
  46. package/dist/components/NotificationCenter/NotificationCenter.module.css +1 -0
  47. package/dist/components/PageHeader/PageHeader.module.css +1 -0
  48. package/dist/components/Pagination/Pagination.module.css +1 -0
  49. package/dist/components/Popover/Popover.module.css +1 -0
  50. package/dist/components/ProgressBar/ProgressBar.module.css +1 -0
  51. package/dist/components/QuickActions/QuickActions.module.css +1 -0
  52. package/dist/components/Radio/Radio.module.css +1 -0
  53. package/dist/components/SearchInput/SearchInput.module.css +1 -0
  54. package/dist/components/Select/Select.module.css +1 -0
  55. package/dist/components/Sidebar/Sidebar.module.css +1 -0
  56. package/dist/components/Skeleton/Skeleton.module.css +1 -0
  57. package/dist/components/Slider/Slider.module.css +1 -0
  58. package/dist/components/Spinner/Spinner.module.css +1 -0
  59. package/dist/components/Stepper/Stepper.module.css +1 -0
  60. package/dist/components/Switch/Switch.module.css +1 -0
  61. package/dist/components/Table/Table.module.css +1 -0
  62. package/dist/components/Tabs/Tabs.module.css +1 -0
  63. package/dist/components/Textarea/Textarea.module.css +1 -0
  64. package/dist/components/Toast/Toast.module.css +1 -0
  65. package/dist/components/Toggle/Toggle.module.css +1 -0
  66. package/dist/components/ToggleGroup/ToggleGroup.module.css +1 -0
  67. package/dist/components/Tooltip/Tooltip.module.css +1 -0
  68. package/dist/components/UserMenu/UserMenu.module.css +1 -0
  69. package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.module.css +1 -0
  70. package/dist/index10.cjs +1 -1
  71. package/dist/index10.mjs +1 -1
  72. package/dist/index100.cjs +1 -1
  73. package/dist/index100.mjs +24 -20
  74. package/dist/index101.cjs +1 -1
  75. package/dist/index101.mjs +44 -42
  76. package/dist/index102.cjs +1 -1
  77. package/dist/index102.mjs +30 -62
  78. package/dist/index103.cjs +1 -1
  79. package/dist/index103.mjs +28 -30
  80. package/dist/index104.cjs +1 -1
  81. package/dist/index104.mjs +15 -35
  82. package/dist/index105.cjs +1 -1
  83. package/dist/index105.mjs +64 -30
  84. package/dist/index106.cjs +1 -1
  85. package/dist/index106.mjs +52 -45
  86. package/dist/index107.cjs +1 -1
  87. package/dist/index107.mjs +42 -18
  88. package/dist/index108.cjs +1 -1
  89. package/dist/index108.mjs +28 -28
  90. package/dist/index109.cjs +1 -1
  91. package/dist/index109.mjs +24 -14
  92. package/dist/index11.cjs +1 -1
  93. package/dist/index11.mjs +1 -1
  94. package/dist/index110.cjs +1 -1
  95. package/dist/index110.mjs +28 -46
  96. package/dist/index111.cjs +1 -1
  97. package/dist/index111.mjs +18 -24
  98. package/dist/index112.cjs +1 -1
  99. package/dist/index112.mjs +14 -46
  100. package/dist/index113.cjs +1 -1
  101. package/dist/index113.mjs +50 -42
  102. package/dist/index114.cjs +1 -1
  103. package/dist/index114.mjs +53 -18
  104. package/dist/index115.cjs +1 -1
  105. package/dist/index115.mjs +62 -22
  106. package/dist/index116.cjs +1 -1
  107. package/dist/index116.mjs +32 -32
  108. package/dist/index117.cjs +1 -1
  109. package/dist/index117.mjs +30 -20
  110. package/dist/index118.cjs +1 -1
  111. package/dist/index118.mjs +18 -32
  112. package/dist/index119.cjs +1 -1
  113. package/dist/index119.mjs +56 -52
  114. package/dist/index12.cjs +1 -1
  115. package/dist/index12.mjs +1 -1
  116. package/dist/index120.cjs +1 -1
  117. package/dist/index120.mjs +38 -20
  118. package/dist/index121.cjs +1 -1
  119. package/dist/index121.mjs +20 -18
  120. package/dist/index122.cjs +1 -1
  121. package/dist/index122.mjs +40 -32
  122. package/dist/index123.cjs +1 -1
  123. package/dist/index123.mjs +76 -30
  124. package/dist/index124.cjs +1 -1
  125. package/dist/index124.mjs +52 -24
  126. package/dist/index125.cjs +1 -1
  127. package/dist/index125.mjs +30 -28
  128. package/dist/index126.cjs +1 -1
  129. package/dist/index126.mjs +63 -36
  130. package/dist/index127.cjs +1 -1
  131. package/dist/index127.mjs +30 -38
  132. package/dist/index128.cjs +1 -1
  133. package/dist/index128.mjs +32 -40
  134. package/dist/index129.cjs +1 -1
  135. package/dist/index129.mjs +45 -40
  136. package/dist/index13.cjs +1 -1
  137. package/dist/index13.mjs +1 -1
  138. package/dist/index130.cjs +1 -1
  139. package/dist/index130.mjs +41 -35
  140. package/dist/index131.cjs +1 -1
  141. package/dist/index131.mjs +28 -44
  142. package/dist/index132.cjs +1 -1
  143. package/dist/index132.mjs +30 -16
  144. package/dist/index133.cjs +1 -1
  145. package/dist/index133.mjs +24 -28
  146. package/dist/index134.cjs +1 -1
  147. package/dist/index134.mjs +11 -21
  148. package/dist/index135.cjs +1 -1
  149. package/dist/index135.mjs +234 -28
  150. package/dist/index136.cjs +1 -1
  151. package/dist/index136.mjs +34 -56
  152. package/dist/index137.cjs +1 -1
  153. package/dist/index137.mjs +44 -57
  154. package/dist/index138.cjs +1 -1
  155. package/dist/index138.mjs +170 -33
  156. package/dist/index139.cjs +1 -1
  157. package/dist/index139.mjs +186 -47
  158. package/dist/index14.cjs +1 -1
  159. package/dist/index14.mjs +1 -1
  160. package/dist/index140.cjs +1 -1
  161. package/dist/index140.mjs +28 -36
  162. package/dist/index141.cjs +1 -1
  163. package/dist/index141.mjs +90 -28
  164. package/dist/index142.cjs +1 -1
  165. package/dist/index142.mjs +53 -68
  166. package/dist/index143.cjs +1 -1
  167. package/dist/index143.mjs +66 -52
  168. package/dist/index144.cjs +1 -1
  169. package/dist/index144.mjs +124 -62
  170. package/dist/index145.cjs +1 -1
  171. package/dist/index145.mjs +108 -234
  172. package/dist/index146.cjs +1 -1
  173. package/dist/index146.mjs +111 -33
  174. package/dist/index147.cjs +1 -1
  175. package/dist/index147.mjs +120 -41
  176. package/dist/index148.cjs +1 -1
  177. package/dist/index148.mjs +199 -155
  178. package/dist/index149.cjs +1 -1
  179. package/dist/index149.mjs +23 -186
  180. package/dist/index15.cjs +1 -1
  181. package/dist/index15.mjs +1 -1
  182. package/dist/index150.cjs +1 -1
  183. package/dist/index150.mjs +37 -29
  184. package/dist/index151.cjs +1 -1
  185. package/dist/index151.mjs +12 -90
  186. package/dist/index152.cjs +1 -1
  187. package/dist/index152.mjs +29 -53
  188. package/dist/index153.cjs +1 -1
  189. package/dist/index153.mjs +46 -66
  190. package/dist/index154.cjs +1 -1
  191. package/dist/index154.mjs +38 -124
  192. package/dist/index155.cjs +1 -1
  193. package/dist/index155.mjs +36 -108
  194. package/dist/index156.cjs +1 -1
  195. package/dist/index156.mjs +18 -111
  196. package/dist/index157.cjs +1 -1
  197. package/dist/index157.mjs +62 -122
  198. package/dist/index158.cjs +1 -1
  199. package/dist/index158.mjs +18 -214
  200. package/dist/index159.cjs +1 -1
  201. package/dist/index159.mjs +67 -64
  202. package/dist/index16.cjs +1 -1
  203. package/dist/index16.mjs +1 -1
  204. package/dist/index160.cjs +1 -1
  205. package/dist/index160.mjs +20 -57
  206. package/dist/index161.cjs +1 -1
  207. package/dist/index161.mjs +106 -27
  208. package/dist/index162.cjs +1 -1
  209. package/dist/index162.mjs +33 -28
  210. package/dist/index163.cjs +1 -1
  211. package/dist/index163.mjs +28 -18
  212. package/dist/index164.cjs +1 -1
  213. package/dist/index164.mjs +18 -24
  214. package/dist/index165.cjs +1 -1
  215. package/dist/index165.mjs +37 -51
  216. package/dist/index166.cjs +1 -1
  217. package/dist/index166.mjs +28 -64
  218. package/dist/index167.cjs +1 -1
  219. package/dist/index167.mjs +46 -33
  220. package/dist/index168.cjs +1 -1
  221. package/dist/index168.mjs +22 -30
  222. package/dist/index169.cjs +1 -1
  223. package/dist/index169.mjs +40 -42
  224. package/dist/index17.cjs +1 -1
  225. package/dist/index17.mjs +1 -1
  226. package/dist/index170.cjs +1 -1
  227. package/dist/index170.mjs +20 -12
  228. package/dist/index171.cjs +1 -1
  229. package/dist/index171.mjs +42 -44
  230. package/dist/index172.cjs +1 -1
  231. package/dist/index172.mjs +64 -40
  232. package/dist/index173.cjs +1 -1
  233. package/dist/index173.mjs +55 -28
  234. package/dist/index174.cjs +1 -1
  235. package/dist/index174.mjs +26 -76
  236. package/dist/index175.cjs +1 -1
  237. package/dist/index175.mjs +44 -106
  238. package/dist/index176.cjs +1 -1
  239. package/dist/index176.mjs +28 -26
  240. package/dist/index177.cjs +1 -1
  241. package/dist/index177.mjs +32 -29
  242. package/dist/index178.cjs +1 -1
  243. package/dist/index178.mjs +32 -12
  244. package/dist/index179.cjs +1 -1
  245. package/dist/index179.mjs +44 -16
  246. package/dist/index18.cjs +1 -1
  247. package/dist/index18.mjs +1 -1
  248. package/dist/index180.cjs +1 -1
  249. package/dist/index180.mjs +55 -51
  250. package/dist/index181.cjs +1 -1
  251. package/dist/index181.mjs +27 -65
  252. package/dist/index185.cjs +1 -1
  253. package/dist/index185.mjs +1 -1
  254. package/dist/index19.cjs +1 -1
  255. package/dist/index19.mjs +2 -2
  256. package/dist/index20.cjs +1 -1
  257. package/dist/index20.mjs +14 -14
  258. package/dist/index21.cjs +1 -1
  259. package/dist/index21.mjs +1 -1
  260. package/dist/index22.cjs +1 -1
  261. package/dist/index22.mjs +1 -1
  262. package/dist/index23.cjs +1 -1
  263. package/dist/index23.mjs +1 -1
  264. package/dist/index24.cjs +1 -1
  265. package/dist/index24.mjs +1 -1
  266. package/dist/index25.cjs +1 -1
  267. package/dist/index25.mjs +1 -1
  268. package/dist/index26.cjs +1 -1
  269. package/dist/index26.mjs +1 -1
  270. package/dist/index27.cjs +1 -1
  271. package/dist/index27.mjs +1 -1
  272. package/dist/index28.cjs +1 -1
  273. package/dist/index28.mjs +1 -1
  274. package/dist/index30.cjs +1 -1
  275. package/dist/index30.mjs +1 -1
  276. package/dist/index31.cjs +1 -1
  277. package/dist/index31.mjs +1 -1
  278. package/dist/index32.cjs +1 -1
  279. package/dist/index32.mjs +1 -1
  280. package/dist/index33.cjs +1 -1
  281. package/dist/index33.mjs +1 -1
  282. package/dist/index34.cjs +1 -1
  283. package/dist/index34.mjs +1 -1
  284. package/dist/index35.cjs +1 -1
  285. package/dist/index35.mjs +1 -1
  286. package/dist/index36.cjs +1 -1
  287. package/dist/index36.mjs +1 -1
  288. package/dist/index37.cjs +1 -1
  289. package/dist/index37.mjs +1 -1
  290. package/dist/index38.cjs +1 -1
  291. package/dist/index38.mjs +1 -1
  292. package/dist/index39.cjs +1 -1
  293. package/dist/index39.mjs +1 -1
  294. package/dist/index40.cjs +1 -1
  295. package/dist/index40.mjs +1 -1
  296. package/dist/index42.cjs +1 -1
  297. package/dist/index42.mjs +1 -1
  298. package/dist/index43.cjs +1 -1
  299. package/dist/index43.mjs +1 -1
  300. package/dist/index44.cjs +1 -1
  301. package/dist/index44.mjs +1 -1
  302. package/dist/index46.cjs +1 -1
  303. package/dist/index46.mjs +1 -1
  304. package/dist/index47.cjs +1 -1
  305. package/dist/index47.mjs +1 -1
  306. package/dist/index49.cjs +1 -1
  307. package/dist/index49.mjs +1 -1
  308. package/dist/index5.cjs +1 -1
  309. package/dist/index5.mjs +1 -1
  310. package/dist/index50.cjs +1 -1
  311. package/dist/index50.mjs +1 -1
  312. package/dist/index51.cjs +1 -1
  313. package/dist/index51.mjs +1 -1
  314. package/dist/index52.cjs +1 -1
  315. package/dist/index52.mjs +1 -1
  316. package/dist/index53.cjs +1 -1
  317. package/dist/index53.mjs +1 -1
  318. package/dist/index54.cjs +1 -1
  319. package/dist/index54.mjs +1 -1
  320. package/dist/index55.cjs +1 -1
  321. package/dist/index55.mjs +1 -1
  322. package/dist/index56.cjs +1 -1
  323. package/dist/index56.mjs +1 -1
  324. package/dist/index57.cjs +1 -1
  325. package/dist/index57.mjs +1 -1
  326. package/dist/index58.cjs +1 -1
  327. package/dist/index58.mjs +1 -1
  328. package/dist/index59.cjs +1 -1
  329. package/dist/index59.mjs +1 -1
  330. package/dist/index6.cjs +1 -1
  331. package/dist/index6.mjs +1 -1
  332. package/dist/index60.cjs +1 -1
  333. package/dist/index60.mjs +1 -1
  334. package/dist/index61.cjs +1 -1
  335. package/dist/index61.mjs +1 -1
  336. package/dist/index62.cjs +1 -1
  337. package/dist/index62.mjs +1 -1
  338. package/dist/index64.cjs +1 -1
  339. package/dist/index64.mjs +1 -1
  340. package/dist/index65.cjs +1 -1
  341. package/dist/index65.mjs +1 -1
  342. package/dist/index66.cjs +1 -1
  343. package/dist/index66.mjs +1 -1
  344. package/dist/index67.cjs +1 -1
  345. package/dist/index67.mjs +1 -1
  346. package/dist/index68.cjs +1 -1
  347. package/dist/index68.mjs +1 -1
  348. package/dist/index69.cjs +1 -1
  349. package/dist/index69.mjs +1 -1
  350. package/dist/index7.cjs +1 -1
  351. package/dist/index7.mjs +1 -1
  352. package/dist/index70.cjs +1 -1
  353. package/dist/index70.mjs +1 -1
  354. package/dist/index71.cjs +1 -1
  355. package/dist/index71.mjs +1 -1
  356. package/dist/index72.cjs +1 -1
  357. package/dist/index72.mjs +1 -1
  358. package/dist/index73.cjs +1 -1
  359. package/dist/index73.mjs +1 -1
  360. package/dist/index76.cjs +1 -1
  361. package/dist/index76.mjs +1 -1
  362. package/dist/index77.cjs +1 -1
  363. package/dist/index77.mjs +1 -1
  364. package/dist/index78.cjs +1 -1
  365. package/dist/index78.mjs +1 -1
  366. package/dist/index79.cjs +1 -1
  367. package/dist/index79.mjs +1 -1
  368. package/dist/index8.cjs +1 -1
  369. package/dist/index8.mjs +1 -1
  370. package/dist/index80.cjs +1 -1
  371. package/dist/index80.mjs +1 -1
  372. package/dist/index81.cjs +1 -1
  373. package/dist/index81.mjs +1 -1
  374. package/dist/index9.cjs +1 -1
  375. package/dist/index9.mjs +1 -1
  376. package/dist/index99.cjs +1 -1
  377. package/dist/index99.mjs +40 -28
  378. package/dist/sections/Container/Container.module.css +1 -0
  379. package/dist/sections/Section/Section.module.css +1 -0
  380. package/dist/styles/marker.css +1 -0
  381. package/dist/styles.css +159 -1
  382. package/package.json +1 -1
  383. package/dist/react.css +0 -1
package/dist/index145.mjs CHANGED
@@ -1,237 +1,111 @@
1
- const e = "_chat_ytosv_12", t = "_header_ytosv_28", s = "_headerAvatar_ytosv_38", o = "_headerContent_ytosv_42", a = "_headerTitle_ytosv_47", n = "_headerSubtitle_ytosv_55", r = "_headerActions_ytosv_62", _ = "_messages_ytosv_73", i = "_messagesInner_ytosv_86", c = "_message_ytosv_73", d = "_messageUser_ytosv_124", v = "_messageAssistant_ytosv_128", m = "_messageContent_ytosv_129", y = "_messageAvatar_ytosv_144", l = "_messageAvatarUser_ytosv_158", g = "_messageAvatarAssistant_ytosv_163", b = "_messageBubble_ytosv_176", u = "_messageBubbleUser_ytosv_183", p = "_messageBubbleAssistant_ytosv_191", h = "_messageBubbleSystem_ytosv_198", B = "_messageAttachments_ytosv_207", I = "_messageFooter_ytosv_218", A = "_messageTimestamp_ytosv_229", P = "_messageStatus_ytosv_234", R = "_messageStatusError_ytosv_242", w = "_messageActions_ytosv_246", C = "_streamingCursor_ytosv_259", S = "_thinkingBubble_ytosv_288", k = "_thinkingSpinner_ytosv_296", f = "_inputContainer_ytosv_341", T = "_inputWrapper_ytosv_356", U = "_inputBox_ytosv_365", x = "_inputActions_ytosv_382", D = "_inputTextarea_ytosv_389", W = "_inputButton_ytosv_413", E = "_inputButtonPrimary_ytosv_438", H = "_pendingAttachments_ytosv_450", F = "_pendingAttachment_ytosv_450", L = "_pendingAttachmentRemove_ytosv_471", N = "_codeBlock_ytosv_495", O = "_codeBlockHeader_ytosv_503", z = "_codeBlockLanguage_ytosv_512", G = "_codeBlockCopy_ytosv_519", M = "_codeBlockCopied_ytosv_538", V = "_codeBlockContent_ytosv_542", j = "_markdown_ytosv_554", q = "_markdownUser_ytosv_684", J = "_imagePreview_ytosv_698", K = "_imagePreviewImg_ytosv_710", Q = "_audioPlayer_ytosv_721", X = "_audioPlayerButton_ytosv_731", Y = "_audioPlayerProgress_ytosv_750", Z = "_audioPlayerTrack_ytosv_757", $ = "_audioPlayerFill_ytosv_764", ee = "_audioPlayerTime_ytosv_770", te = "_voiceRecorder_ytosv_779", se = "_voiceRecorderButton_ytosv_788", oe = "_voiceRecorderButtonIdle_ytosv_807", ae = "_voiceRecorderInfo_ytosv_811", ne = "_voiceRecorderDuration_ytosv_818", re = "_voiceRecorderLabel_ytosv_824", _e = "_voiceRecorderWaveform_ytosv_829", ie = "_voiceRecorderBar_ytosv_836", ce = "_voiceRecorderActions_ytosv_866", de = "_fileUpload_ytosv_872", ve = "_fileUploadDragging_ytosv_890", me = "_fileUploadIcon_ytosv_895", ye = "_fileUploadText_ytosv_900", le = "_fileUploadHint_ytosv_906", ge = "_attachmentPreview_ytosv_913", be = "_attachmentPreviewIcon_ytosv_929", ue = "_attachmentPreviewInfo_ytosv_940", pe = "_attachmentPreviewName_ytosv_945", he = "_attachmentPreviewMeta_ytosv_953", Be = "_attachmentPreviewRemove_ytosv_958", Ie = "_lightbox_ytosv_982", Ae = "_lightboxImage_ytosv_1003", Pe = "_lightboxClose_ytosv_1010", Re = "_sidebar_ytosv_1036", we = "_sidebarHeader_ytosv_1047", Ce = "_sidebarNewButton_ytosv_1055", Se = "_sidebarSearch_ytosv_1059", ke = "_sidebarSearchInput_ytosv_1063", fe = "_sidebarList_ytosv_1083", Te = "_sidebarItem_ytosv_1089", Ue = "_sidebarItemActive_ytosv_1107", xe = "_sidebarItemContent_ytosv_1111", De = "_sidebarItemTitle_ytosv_1119", We = "_sidebarItemPreview_ytosv_1130", Ee = "_sidebarItemDelete_ytosv_1140", He = "_sidebarFooter_ytosv_1166", Fe = "_sidebarEmpty_ytosv_1171", Le = "_sidebarEmptyIcon_ytosv_1181", Ne = "_sidebarGroupHeader_ytosv_1186", Oe = "_sidebarCollapsed_ytosv_1201", ze = "_sidebarOpen_ytosv_1211", Ge = "_scrollToBottomWrapper_ytosv_1273", Me = "_scrollToBottomButton_ytosv_1282", Ve = "_inputSpinner_ytosv_1297", je = "_pendingAttachmentSize_ytosv_1311", qe = "_voiceRecorderError_ytosv_1319", Je = "_headerAvatarDefault_ytosv_1327", Ke = "_sidebarOverlay_ytosv_1336", Qe = "_sidebarNewButtonInner_ytosv_1344", Xe = "_sidebarCloseButton_ytosv_1352", Ye = "_sidebarSearchWrapper_ytosv_1356", Ze = "_sidebarSearchIcon_ytosv_1360", $e = "_sidebarSearchInputWithIcon_ytosv_1369", et = "_sidebarItemIcon_ytosv_1373", tt = "_sidebarItemDate_ytosv_1379", st = "_sidebarItemDeleteConfirm_ytosv_1388", ot = "_messageRetry_ytosv_1398", at = "_messageReactions_ytosv_1422", nt = "_messageReactionButton_ytosv_1434", rt = "_messageReactionActive_ytosv_1454", _t = "_messageReactionsVisible_ytosv_1460", it = {
2
- chat: e,
3
- header: t,
4
- headerAvatar: s,
5
- headerContent: o,
6
- headerTitle: a,
7
- headerSubtitle: n,
8
- headerActions: r,
9
- messages: _,
10
- messagesInner: i,
11
- message: c,
12
- messageUser: d,
13
- messageAssistant: v,
14
- messageContent: m,
15
- messageAvatar: y,
16
- messageAvatarUser: l,
17
- messageAvatarAssistant: g,
18
- messageBubble: b,
19
- messageBubbleUser: u,
20
- messageBubbleAssistant: p,
21
- messageBubbleSystem: h,
22
- messageAttachments: B,
23
- messageFooter: I,
24
- messageTimestamp: A,
25
- messageStatus: P,
26
- messageStatusError: R,
27
- messageActions: w,
28
- streamingCursor: C,
29
- thinkingBubble: S,
30
- thinkingSpinner: k,
31
- inputContainer: f,
32
- inputWrapper: T,
33
- inputBox: U,
34
- inputActions: x,
35
- inputTextarea: D,
36
- inputButton: W,
37
- inputButtonPrimary: E,
38
- pendingAttachments: H,
39
- pendingAttachment: F,
40
- pendingAttachmentRemove: L,
41
- codeBlock: N,
42
- codeBlockHeader: O,
43
- codeBlockLanguage: z,
44
- codeBlockCopy: G,
45
- codeBlockCopied: M,
46
- codeBlockContent: V,
47
- markdown: j,
48
- markdownUser: q,
49
- imagePreview: J,
50
- imagePreviewImg: K,
51
- audioPlayer: Q,
52
- audioPlayerButton: X,
53
- audioPlayerProgress: Y,
54
- audioPlayerTrack: Z,
55
- audioPlayerFill: $,
56
- audioPlayerTime: ee,
57
- voiceRecorder: te,
58
- voiceRecorderButton: se,
59
- voiceRecorderButtonIdle: oe,
60
- voiceRecorderInfo: ae,
61
- voiceRecorderDuration: ne,
62
- voiceRecorderLabel: re,
63
- voiceRecorderWaveform: _e,
64
- voiceRecorderBar: ie,
65
- voiceRecorderActions: ce,
66
- fileUpload: de,
67
- fileUploadDragging: ve,
68
- fileUploadIcon: me,
69
- fileUploadText: ye,
70
- fileUploadHint: le,
71
- attachmentPreview: ge,
72
- attachmentPreviewIcon: be,
73
- attachmentPreviewInfo: ue,
74
- attachmentPreviewName: pe,
75
- attachmentPreviewMeta: he,
76
- attachmentPreviewRemove: Be,
77
- lightbox: Ie,
78
- lightboxImage: Ae,
79
- lightboxClose: Pe,
80
- sidebar: Re,
81
- sidebarHeader: we,
82
- sidebarNewButton: Ce,
83
- sidebarSearch: Se,
84
- sidebarSearchInput: ke,
85
- sidebarList: fe,
86
- sidebarItem: Te,
87
- sidebarItemActive: Ue,
88
- sidebarItemContent: xe,
89
- sidebarItemTitle: De,
90
- sidebarItemPreview: We,
91
- sidebarItemDelete: Ee,
92
- sidebarFooter: He,
93
- sidebarEmpty: Fe,
94
- sidebarEmptyIcon: Le,
95
- sidebarGroupHeader: Ne,
96
- sidebarCollapsed: Oe,
97
- sidebarOpen: ze,
98
- scrollToBottomWrapper: Ge,
99
- scrollToBottomButton: Me,
100
- inputSpinner: Ve,
101
- pendingAttachmentSize: je,
102
- voiceRecorderError: qe,
103
- headerAvatarDefault: Je,
104
- sidebarOverlay: Ke,
105
- sidebarNewButtonInner: Qe,
106
- sidebarCloseButton: Xe,
107
- sidebarSearchWrapper: Ye,
108
- sidebarSearchIcon: Ze,
109
- sidebarSearchInputWithIcon: $e,
110
- sidebarItemIcon: et,
111
- sidebarItemDate: tt,
112
- sidebarItemDeleteConfirm: st,
113
- messageRetry: ot,
114
- messageReactions: at,
115
- messageReactionButton: nt,
116
- messageReactionActive: rt,
117
- messageReactionsVisible: _t
1
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
+ import { X as t, Square as b, Send as C, Mic as j } from "lucide-react";
3
+ import { useVoiceRecorder as S } from "./index95.mjs";
4
+ import { formatTime as k } from "./index184.mjs";
5
+ import e from "./index135.mjs";
6
+ const z = ({
7
+ onRecordingComplete: d,
8
+ onCancel: v,
9
+ maxDuration: m = 300,
10
+ className: a,
11
+ ...n
12
+ }) => {
13
+ const {
14
+ isRecording: o,
15
+ duration: R,
16
+ audioBlob: i,
17
+ error: s,
18
+ startRecording: h,
19
+ stopRecording: u,
20
+ cancelRecording: N,
21
+ reset: l,
22
+ isSupported: f
23
+ } = S({
24
+ maxDuration: m,
25
+ onRecordingComplete: d,
26
+ onError: (g) => console.error("Recording error:", g)
27
+ }), p = () => {
28
+ o ? u() : i ? (d?.(i), l()) : h();
29
+ }, B = () => {
30
+ N(), v?.();
31
+ };
32
+ return f ? s ? /* @__PURE__ */ c(
33
+ "div",
34
+ {
35
+ className: [e.voiceRecorder, a].filter(Boolean).join(" "),
36
+ ...n,
37
+ children: [
38
+ /* @__PURE__ */ r("div", { className: e.voiceRecorderInfo, children: /* @__PURE__ */ r(
39
+ "span",
40
+ {
41
+ className: [
42
+ e.voiceRecorderLabel,
43
+ e.voiceRecorderError
44
+ ].join(" "),
45
+ children: s
46
+ }
47
+ ) }),
48
+ /* @__PURE__ */ r(
49
+ "button",
50
+ {
51
+ className: e.inputButton,
52
+ onClick: l,
53
+ "aria-label": "Try again",
54
+ children: /* @__PURE__ */ r(t, { size: 20 })
55
+ }
56
+ )
57
+ ]
58
+ }
59
+ ) : /* @__PURE__ */ c(
60
+ "div",
61
+ {
62
+ className: [e.voiceRecorder, a].filter(Boolean).join(" "),
63
+ ...n,
64
+ children: [
65
+ /* @__PURE__ */ r(
66
+ "button",
67
+ {
68
+ className: [
69
+ e.voiceRecorderButton,
70
+ !o && !i && e.voiceRecorderButtonIdle
71
+ ].filter(Boolean).join(" "),
72
+ onClick: p,
73
+ "aria-label": o ? "Stop recording" : i ? "Send recording" : "Start recording",
74
+ children: o ? /* @__PURE__ */ r(b, { size: 20 }) : i ? /* @__PURE__ */ r(C, { size: 20 }) : /* @__PURE__ */ r(j, { size: 20 })
75
+ }
76
+ ),
77
+ /* @__PURE__ */ c("div", { className: e.voiceRecorderInfo, children: [
78
+ /* @__PURE__ */ r("span", { className: e.voiceRecorderDuration, children: k(R) }),
79
+ /* @__PURE__ */ r("span", { className: e.voiceRecorderLabel, children: o ? "Recording..." : i ? "Recording ready" : "Click to record" })
80
+ ] }),
81
+ o && /* @__PURE__ */ c("div", { className: e.voiceRecorderWaveform, children: [
82
+ /* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
83
+ /* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
84
+ /* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
85
+ /* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
86
+ /* @__PURE__ */ r("div", { className: e.voiceRecorderBar })
87
+ ] }),
88
+ (o || i) && /* @__PURE__ */ r("div", { className: e.voiceRecorderActions, children: /* @__PURE__ */ r(
89
+ "button",
90
+ {
91
+ className: e.inputButton,
92
+ onClick: B,
93
+ "aria-label": "Cancel recording",
94
+ children: /* @__PURE__ */ r(t, { size: 20 })
95
+ }
96
+ ) })
97
+ ]
98
+ }
99
+ ) : /* @__PURE__ */ r(
100
+ "div",
101
+ {
102
+ className: [e.voiceRecorder, a].filter(Boolean).join(" "),
103
+ ...n,
104
+ children: /* @__PURE__ */ r("div", { className: e.voiceRecorderInfo, children: /* @__PURE__ */ r("span", { className: e.voiceRecorderLabel, children: "Voice recording is not supported in this browser" }) })
105
+ }
106
+ );
118
107
  };
108
+ z.displayName = "ChatVoiceRecorder";
119
109
  export {
120
- ge as attachmentPreview,
121
- be as attachmentPreviewIcon,
122
- ue as attachmentPreviewInfo,
123
- he as attachmentPreviewMeta,
124
- pe as attachmentPreviewName,
125
- Be as attachmentPreviewRemove,
126
- Q as audioPlayer,
127
- X as audioPlayerButton,
128
- $ as audioPlayerFill,
129
- Y as audioPlayerProgress,
130
- ee as audioPlayerTime,
131
- Z as audioPlayerTrack,
132
- e as chat,
133
- N as codeBlock,
134
- V as codeBlockContent,
135
- M as codeBlockCopied,
136
- G as codeBlockCopy,
137
- O as codeBlockHeader,
138
- z as codeBlockLanguage,
139
- it as default,
140
- de as fileUpload,
141
- ve as fileUploadDragging,
142
- le as fileUploadHint,
143
- me as fileUploadIcon,
144
- ye as fileUploadText,
145
- t as header,
146
- r as headerActions,
147
- s as headerAvatar,
148
- Je as headerAvatarDefault,
149
- o as headerContent,
150
- n as headerSubtitle,
151
- a as headerTitle,
152
- J as imagePreview,
153
- K as imagePreviewImg,
154
- x as inputActions,
155
- U as inputBox,
156
- W as inputButton,
157
- E as inputButtonPrimary,
158
- f as inputContainer,
159
- Ve as inputSpinner,
160
- D as inputTextarea,
161
- T as inputWrapper,
162
- Ie as lightbox,
163
- Pe as lightboxClose,
164
- Ae as lightboxImage,
165
- j as markdown,
166
- q as markdownUser,
167
- c as message,
168
- w as messageActions,
169
- v as messageAssistant,
170
- B as messageAttachments,
171
- y as messageAvatar,
172
- g as messageAvatarAssistant,
173
- l as messageAvatarUser,
174
- b as messageBubble,
175
- p as messageBubbleAssistant,
176
- h as messageBubbleSystem,
177
- u as messageBubbleUser,
178
- m as messageContent,
179
- I as messageFooter,
180
- rt as messageReactionActive,
181
- nt as messageReactionButton,
182
- at as messageReactions,
183
- _t as messageReactionsVisible,
184
- ot as messageRetry,
185
- P as messageStatus,
186
- R as messageStatusError,
187
- A as messageTimestamp,
188
- d as messageUser,
189
- _ as messages,
190
- i as messagesInner,
191
- F as pendingAttachment,
192
- L as pendingAttachmentRemove,
193
- je as pendingAttachmentSize,
194
- H as pendingAttachments,
195
- Me as scrollToBottomButton,
196
- Ge as scrollToBottomWrapper,
197
- Re as sidebar,
198
- Xe as sidebarCloseButton,
199
- Oe as sidebarCollapsed,
200
- Fe as sidebarEmpty,
201
- Le as sidebarEmptyIcon,
202
- He as sidebarFooter,
203
- Ne as sidebarGroupHeader,
204
- we as sidebarHeader,
205
- Te as sidebarItem,
206
- Ue as sidebarItemActive,
207
- xe as sidebarItemContent,
208
- tt as sidebarItemDate,
209
- Ee as sidebarItemDelete,
210
- st as sidebarItemDeleteConfirm,
211
- et as sidebarItemIcon,
212
- We as sidebarItemPreview,
213
- De as sidebarItemTitle,
214
- fe as sidebarList,
215
- Ce as sidebarNewButton,
216
- Qe as sidebarNewButtonInner,
217
- ze as sidebarOpen,
218
- Ke as sidebarOverlay,
219
- Se as sidebarSearch,
220
- Ze as sidebarSearchIcon,
221
- ke as sidebarSearchInput,
222
- $e as sidebarSearchInputWithIcon,
223
- Ye as sidebarSearchWrapper,
224
- C as streamingCursor,
225
- S as thinkingBubble,
226
- k as thinkingSpinner,
227
- te as voiceRecorder,
228
- ce as voiceRecorderActions,
229
- ie as voiceRecorderBar,
230
- se as voiceRecorderButton,
231
- oe as voiceRecorderButtonIdle,
232
- ne as voiceRecorderDuration,
233
- qe as voiceRecorderError,
234
- ae as voiceRecorderInfo,
235
- re as voiceRecorderLabel,
236
- _e as voiceRecorderWaveform
110
+ z as ChatVoiceRecorder
237
111
  };
package/dist/index146.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("lucide-react"),a=require("./index145.cjs"),d=({title:r="AI Assistant",subtitle:s,avatar:l,actions:t,children:i,className:n,...c})=>e.jsxs("div",{className:[a.default.header,n].filter(Boolean).join(" "),...c,children:[e.jsx("div",{className:a.default.headerAvatar,children:l||e.jsx("div",{className:[a.default.messageAvatar,a.default.headerAvatarDefault].filter(Boolean).join(" "),children:e.jsx(h.Bot,{size:20})})}),e.jsx("div",{className:a.default.headerContent,children:i||e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:a.default.headerTitle,children:r}),s&&e.jsx("p",{className:a.default.headerSubtitle,children:s})]})}),t&&e.jsx("div",{className:a.default.headerActions,children:t})]});d.displayName="ChatHeader";exports.ChatHeader=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("react"),R=require("lucide-react"),h=require("./index184.cjs"),o=require("./index135.cjs"),g=({onFilesSelected:f,accept:i=["*/*"],multiple:C=!0,maxSize:s=10*1024*1024,children:v,className:D,...k})=>{const[m,u]=t.useState(!1),c=t.useRef(null),d=t.useCallback(e=>{if(!e||e.length===0)return;const r=[];Array.from(e).forEach(l=>{if(s&&l.size>s){console.warn(`File ${l.name} exceeds max size of ${h.formatFileSize(s)}`);return}const F=i.includes("*/*"),q=i.flatMap(n=>(n.endsWith("/*"),n));if(!(F||q.some(n=>{if(n.endsWith("/*")){const N=n.split("/")[0];return l.type.startsWith(`${N}/`)}return l.type===n||l.name.endsWith(n)}))){console.warn(`File ${l.name} type not accepted`);return}r.push(l)}),r.length>0&&f?.(r)},[i,s,f]),b=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!0)},[]),j=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!1)},[]),y=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!1);const{files:r}=e.dataTransfer;d(r)},[d]),x=t.useCallback(e=>{d(e.target.files),c.current&&(c.current.value="")},[d]),p=t.useCallback(()=>{c.current?.click()},[]),U=t.useCallback(e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),p())},[p]);return a.jsxs("div",{className:[o.default.fileUpload,m&&o.default.fileUploadDragging,D].filter(Boolean).join(" "),onDragOver:b,onDragLeave:j,onDrop:y,onClick:p,onKeyDown:U,role:"button",tabIndex:0,"aria-label":"Upload files",...k,children:[a.jsx("input",{ref:c,type:"file",accept:i.join(","),multiple:C,onChange:x,style:{display:"none"},"aria-hidden":"true"}),v||a.jsxs(a.Fragment,{children:[a.jsx("div",{className:o.default.fileUploadIcon,children:a.jsx(R.Upload,{size:32})}),a.jsxs("div",{className:o.default.fileUploadText,children:[a.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),a.jsxs("div",{className:o.default.fileUploadHint,children:["Max file size: ",h.formatFileSize(s)]})]})]})};g.displayName="ChatFileUpload";exports.ChatFileUpload=g;
package/dist/index146.mjs CHANGED
@@ -1,36 +1,114 @@
1
- import { jsxs as i, jsx as a, Fragment as c } from "react/jsx-runtime";
2
- import { Bot as m } from "lucide-react";
3
- import e from "./index145.mjs";
4
- const o = ({
5
- title: d = "AI Assistant",
6
- subtitle: r,
7
- avatar: l,
8
- actions: s,
9
- children: t,
10
- className: h,
11
- ...n
12
- }) => /* @__PURE__ */ i(
13
- "div",
14
- {
15
- className: [e.header, h].filter(Boolean).join(" "),
16
- ...n,
17
- children: [
18
- /* @__PURE__ */ a("div", { className: e.headerAvatar, children: l || /* @__PURE__ */ a(
19
- "div",
20
- {
21
- className: [e.messageAvatar, e.headerAvatarDefault].filter(Boolean).join(" "),
22
- children: /* @__PURE__ */ a(m, { size: 20 })
1
+ import { jsxs as d, jsx as p, Fragment as A } from "react/jsx-runtime";
2
+ import { useState as I, useRef as W, useCallback as a } from "react";
3
+ import { Upload as $ } from "lucide-react";
4
+ import { formatFileSize as g } from "./index184.mjs";
5
+ import l from "./index135.mjs";
6
+ const P = ({
7
+ onFilesSelected: h,
8
+ accept: s = ["*/*"],
9
+ multiple: m = !0,
10
+ maxSize: r = 10 * 1024 * 1024,
11
+ // 10MB default
12
+ children: D,
13
+ className: v,
14
+ ...y
15
+ }) => {
16
+ const [U, f] = I(!1), i = W(null), c = a(
17
+ (e) => {
18
+ if (!e || e.length === 0) return;
19
+ const o = [];
20
+ Array.from(e).forEach((t) => {
21
+ if (r && t.size > r) {
22
+ console.warn(
23
+ `File ${t.name} exceeds max size of ${g(r)}`
24
+ );
25
+ return;
23
26
  }
24
- ) }),
25
- /* @__PURE__ */ a("div", { className: e.headerContent, children: t || /* @__PURE__ */ i(c, { children: [
26
- /* @__PURE__ */ a("h2", { className: e.headerTitle, children: d }),
27
- r && /* @__PURE__ */ a("p", { className: e.headerSubtitle, children: r })
28
- ] }) }),
29
- s && /* @__PURE__ */ a("div", { className: e.headerActions, children: s })
30
- ]
31
- }
32
- );
33
- o.displayName = "ChatHeader";
27
+ const j = s.includes("*/*"), w = s.flatMap((n) => (n.endsWith("/*"), n));
28
+ if (!(j || w.some((n) => {
29
+ if (n.endsWith("/*")) {
30
+ const x = n.split("/")[0];
31
+ return t.type.startsWith(`${x}/`);
32
+ }
33
+ return t.type === n || t.name.endsWith(n);
34
+ }))) {
35
+ console.warn(`File ${t.name} type not accepted`);
36
+ return;
37
+ }
38
+ o.push(t);
39
+ }), o.length > 0 && h?.(o);
40
+ },
41
+ [s, r, h]
42
+ ), C = a((e) => {
43
+ e.preventDefault(), e.stopPropagation(), f(!0);
44
+ }, []), k = a((e) => {
45
+ e.preventDefault(), e.stopPropagation(), f(!1);
46
+ }, []), F = a(
47
+ (e) => {
48
+ e.preventDefault(), e.stopPropagation(), f(!1);
49
+ const { files: o } = e.dataTransfer;
50
+ c(o);
51
+ },
52
+ [c]
53
+ ), N = a(
54
+ (e) => {
55
+ c(e.target.files), i.current && (i.current.value = "");
56
+ },
57
+ [c]
58
+ ), u = a(() => {
59
+ i.current?.click();
60
+ }, []), b = a(
61
+ (e) => {
62
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), u());
63
+ },
64
+ [u]
65
+ );
66
+ return /* @__PURE__ */ d(
67
+ "div",
68
+ {
69
+ className: [
70
+ l.fileUpload,
71
+ U && l.fileUploadDragging,
72
+ v
73
+ ].filter(Boolean).join(" "),
74
+ onDragOver: C,
75
+ onDragLeave: k,
76
+ onDrop: F,
77
+ onClick: u,
78
+ onKeyDown: b,
79
+ role: "button",
80
+ tabIndex: 0,
81
+ "aria-label": "Upload files",
82
+ ...y,
83
+ children: [
84
+ /* @__PURE__ */ p(
85
+ "input",
86
+ {
87
+ ref: i,
88
+ type: "file",
89
+ accept: s.join(","),
90
+ multiple: m,
91
+ onChange: N,
92
+ style: { display: "none" },
93
+ "aria-hidden": "true"
94
+ }
95
+ ),
96
+ D || /* @__PURE__ */ d(A, { children: [
97
+ /* @__PURE__ */ p("div", { className: l.fileUploadIcon, children: /* @__PURE__ */ p($, { size: 32 }) }),
98
+ /* @__PURE__ */ d("div", { className: l.fileUploadText, children: [
99
+ /* @__PURE__ */ p("strong", { children: "Click to upload" }),
100
+ " or drag and drop"
101
+ ] }),
102
+ /* @__PURE__ */ d("div", { className: l.fileUploadHint, children: [
103
+ "Max file size: ",
104
+ g(r)
105
+ ] })
106
+ ] })
107
+ ]
108
+ }
109
+ );
110
+ };
111
+ P.displayName = "ChatFileUpload";
34
112
  export {
35
- o as ChatHeader
113
+ P as ChatFileUpload
36
114
  };
package/dist/index147.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),g=require("react"),f=require("lucide-react"),h=require("./index84.cjs"),t=require("./index145.cjs"),j=require("./index14.cjs"),a=g.forwardRef(({children:l,autoScroll:r=!0,className:i,...n},s)=>{const{scrollRef:c,isAtBottom:u,scrollToBottom:m}=h.useAutoScroll({enabled:r}),d=o=>{c.current=o,typeof s=="function"?s(o):s&&(s.current=o)};return e.jsxs("div",{ref:d,className:[t.default.messages,i].filter(Boolean).join(" "),role:"log","aria-live":"polite","aria-label":"Chat messages","aria-relevant":"additions",...n,children:[e.jsx("div",{className:t.default.messagesInner,children:l}),!u&&e.jsx("div",{className:t.default.scrollToBottomWrapper,children:e.jsx(j.Button,{variant:"secondary",size:"sm",iconOnly:!0,icon:e.jsx(f.ArrowDown,{size:18}),onClick:m,"aria-label":"Scroll to latest messages",className:t.default.scrollToBottomButton})})]})});a.displayName="ChatMessages";exports.ChatMessages=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("lucide-react"),p=require("./index143.cjs"),P=require("./index144.cjs"),b=require("./index141.cjs"),C=require("./index184.cjs"),t=require("./index135.cjs"),w=d=>{switch(d){case"image":return e.jsx(a.Image,{size:18});case"audio":return e.jsx(a.Music,{size:18});case"code":return e.jsx(a.Code,{size:18});default:return e.jsx(a.FileText,{size:18})}},v=({attachment:d,removable:h=!1,onRemove:i,onClick:n,className:c,...o})=>{const{type:m,name:s,url:l,content:j,language:f,size:x,duration:u,thumbnail:g}=d;switch(m){case"image":if(l)return e.jsxs("div",{className:c,style:{position:"relative"},...o,children:[e.jsx(p.ChatImagePreview,{src:l,alt:s,thumbnail:g,onClick:n}),h&&i&&e.jsx("button",{className:t.default.attachmentPreviewRemove,onClick:r=>{r.stopPropagation(),i()},"aria-label":`Remove ${s}`,style:{position:"absolute",top:4,right:4,background:"var(--surface-base)"},children:e.jsx(a.X,{size:14})})]});break;case"audio":if(l)return e.jsxs("div",{className:c,style:{position:"relative"},...o,children:[e.jsx(P.ChatAudioPlayer,{src:l,duration:u,title:s}),h&&i&&e.jsx("button",{className:t.default.attachmentPreviewRemove,onClick:r=>{r.stopPropagation(),i()},"aria-label":`Remove ${s}`,children:e.jsx(a.X,{size:14})})]});break;case"code":if(j)return e.jsx(b.ChatCodeBlock,{code:j,language:f,className:c,...o});break}return e.jsxs("div",{className:[t.default.attachmentPreview,c].filter(Boolean).join(" "),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,...o,children:[e.jsx("div",{className:t.default.attachmentPreviewIcon,children:w(m)}),e.jsxs("div",{className:t.default.attachmentPreviewInfo,children:[e.jsx("span",{className:t.default.attachmentPreviewName,children:s}),x&&e.jsxs("span",{className:t.default.attachmentPreviewMeta,children:[C.formatFileSize(x),u&&` · ${Math.floor(u/60)}:${(u%60).toString().padStart(2,"0")}`]})]}),h&&i&&e.jsx("button",{className:t.default.attachmentPreviewRemove,onClick:r=>{r.stopPropagation(),i()},"aria-label":`Remove ${s}`,children:e.jsx(a.X,{size:14})})]})};v.displayName="ChatAttachment";exports.ChatAttachment=v;