@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/index139.mjs CHANGED
@@ -1,49 +1,188 @@
1
- const t = "_container_ys2b2_9", s = "_toast_ys2b2_64", e = "_slideIn_ys2b2_1", _ = "_exiting_ys2b2_77", n = "_slideOut_ys2b2_1", o = "_slideInLeft_ys2b2_1", i = "_slideOutLeft_ys2b2_1", c = "_slideInCenter_ys2b2_1", b = "_slideOutCenter_ys2b2_1", l = "_info_ys2b2_173", r = "_icon_ys2b2_173", y = "_success_ys2b2_177", d = "_warning_ys2b2_181", a = "_error_ys2b2_185", u = "_content_ys2b2_199", f = "_title_ys2b2_204", g = "_message_ys2b2_212", m = "_action_ys2b2_223", I = "_closeButton_ys2b2_246", O = {
2
- container: t,
3
- "top-left": "_top-left_ys2b2_25",
4
- "top-center": "_top-center_ys2b2_30",
5
- "top-right": "_top-right_ys2b2_36",
6
- "bottom-left": "_bottom-left_ys2b2_41",
7
- "bottom-center": "_bottom-center_ys2b2_47",
8
- "bottom-right": "_bottom-right_ys2b2_54",
9
- toast: s,
10
- slideIn: e,
11
- exiting: _,
12
- slideOut: n,
13
- slideInLeft: o,
14
- slideOutLeft: i,
15
- slideInCenter: c,
16
- slideOutCenter: b,
17
- info: l,
18
- icon: r,
19
- success: y,
20
- warning: d,
21
- error: a,
22
- content: u,
23
- title: f,
24
- message: g,
25
- action: m,
26
- closeButton: I
27
- };
1
+ import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
+ import { forwardRef as E, useState as O, useRef as X, useCallback as r } from "react";
3
+ import { X as _, Paperclip as q, Mic as G, Send as H, Image as J, File as Q } from "lucide-react";
4
+ import { useChatInput as Y } from "./index85.mjs";
5
+ import { ChatVoiceRecorder as Z } from "./index145.mjs";
6
+ import { formatFileSize as L } from "./index184.mjs";
7
+ import n from "./index135.mjs";
8
+ const ee = (p) => p.type.startsWith("image/") ? /* @__PURE__ */ t(J, { size: 14 }) : /* @__PURE__ */ t(Q, { size: 14 }), te = E(
9
+ ({
10
+ onSend: p,
11
+ placeholder: S = "Type a message...",
12
+ allowAttachments: R = !0,
13
+ allowVoiceRecording: z = !0,
14
+ allowAudioUpload: ne = !0,
15
+ disabled: s = !1,
16
+ maxLength: f,
17
+ acceptedFileTypes: w = [
18
+ "image/*",
19
+ "audio/*",
20
+ ".pdf",
21
+ ".doc",
22
+ ".docx",
23
+ ".txt"
24
+ ],
25
+ isLoading: i = !1,
26
+ pendingAttachments: x,
27
+ onRemoveAttachment: B,
28
+ className: j,
29
+ ...k
30
+ }, o) => {
31
+ const [g, h] = O(!1), m = X(null), {
32
+ value: v,
33
+ setValue: D,
34
+ attachments: F,
35
+ addAttachments: l,
36
+ removeAttachment: I,
37
+ handleSubmit: A,
38
+ handleKeyDown: V,
39
+ textareaRef: b,
40
+ isEmpty: P
41
+ } = Y({
42
+ maxLength: f,
43
+ onSend: p,
44
+ disabled: s || i
45
+ }), u = x || F, M = B || I, W = r(
46
+ (e) => {
47
+ b.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
48
+ },
49
+ [o, b]
50
+ ), K = r(
51
+ (e) => {
52
+ const a = e.target.files;
53
+ a && a.length > 0 && l(Array.from(a)), m.current && (m.current.value = "");
54
+ },
55
+ [l]
56
+ ), T = r(
57
+ (e) => {
58
+ const a = e.clipboardData.items, d = [];
59
+ for (const C of a)
60
+ if (C.type.startsWith("image/")) {
61
+ const N = C.getAsFile();
62
+ N && d.push(N);
63
+ }
64
+ d.length > 0 && (e.preventDefault(), l(d));
65
+ },
66
+ [l]
67
+ ), U = r(
68
+ (e) => {
69
+ const a = Object.assign(e, {
70
+ name: `voice-${Date.now()}.webm`,
71
+ lastModified: Date.now()
72
+ });
73
+ l([a]), h(!1);
74
+ },
75
+ [l]
76
+ ), $ = r(() => {
77
+ s || i || A();
78
+ }, [s, i, A]), y = !P || u.length > 0;
79
+ return /* @__PURE__ */ t(
80
+ "div",
81
+ {
82
+ className: [n.inputContainer, j].filter(Boolean).join(" "),
83
+ children: /* @__PURE__ */ c("div", { className: n.inputWrapper, children: [
84
+ u.length > 0 && /* @__PURE__ */ t("div", { className: n.pendingAttachments, children: u.map((e, a) => /* @__PURE__ */ c("div", { className: n.pendingAttachment, children: [
85
+ ee(e),
86
+ /* @__PURE__ */ t("span", { children: e.name }),
87
+ /* @__PURE__ */ c("span", { className: n.pendingAttachmentSize, children: [
88
+ "(",
89
+ L(e.size),
90
+ ")"
91
+ ] }),
92
+ /* @__PURE__ */ t(
93
+ "button",
94
+ {
95
+ className: n.pendingAttachmentRemove,
96
+ onClick: () => M(a),
97
+ "aria-label": `Remove ${e.name}`,
98
+ children: /* @__PURE__ */ t(_, { size: 14 })
99
+ }
100
+ )
101
+ ] }, a)) }),
102
+ g && /* @__PURE__ */ t(
103
+ Z,
104
+ {
105
+ onRecordingComplete: U,
106
+ onCancel: () => h(!1)
107
+ }
108
+ ),
109
+ !g && /* @__PURE__ */ c("div", { className: n.inputBox, children: [
110
+ R && /* @__PURE__ */ c("div", { className: n.inputActions, children: [
111
+ /* @__PURE__ */ t(
112
+ "input",
113
+ {
114
+ ref: m,
115
+ type: "file",
116
+ accept: w.join(","),
117
+ multiple: !0,
118
+ onChange: K,
119
+ style: { display: "none" },
120
+ "aria-hidden": "true"
121
+ }
122
+ ),
123
+ /* @__PURE__ */ t(
124
+ "button",
125
+ {
126
+ className: n.inputButton,
127
+ onClick: () => m.current?.click(),
128
+ disabled: s || i,
129
+ "aria-label": "Attach file",
130
+ title: "Attach file",
131
+ children: /* @__PURE__ */ t(q, { size: 20 })
132
+ }
133
+ )
134
+ ] }),
135
+ /* @__PURE__ */ t(
136
+ "textarea",
137
+ {
138
+ ref: W,
139
+ className: n.inputTextarea,
140
+ value: v,
141
+ onChange: (e) => D(e.target.value),
142
+ onKeyDown: V,
143
+ onPaste: T,
144
+ placeholder: S,
145
+ disabled: s || i,
146
+ maxLength: f,
147
+ rows: 1,
148
+ "aria-label": "Message input",
149
+ ...k
150
+ }
151
+ ),
152
+ /* @__PURE__ */ c("div", { className: n.inputActions, children: [
153
+ z && !v && u.length === 0 && /* @__PURE__ */ t(
154
+ "button",
155
+ {
156
+ className: n.inputButton,
157
+ onClick: () => h(!0),
158
+ disabled: s || i,
159
+ "aria-label": "Record voice message",
160
+ title: "Record voice message",
161
+ children: /* @__PURE__ */ t(G, { size: 20 })
162
+ }
163
+ ),
164
+ /* @__PURE__ */ t(
165
+ "button",
166
+ {
167
+ className: [
168
+ n.inputButton,
169
+ y && n.inputButtonPrimary
170
+ ].filter(Boolean).join(" "),
171
+ onClick: $,
172
+ disabled: s || i || !y,
173
+ "aria-label": "Send message",
174
+ title: "Send message",
175
+ children: i ? /* @__PURE__ */ t("span", { className: n.inputSpinner }) : /* @__PURE__ */ t(H, { size: 20 })
176
+ }
177
+ )
178
+ ] })
179
+ ] })
180
+ ] })
181
+ }
182
+ );
183
+ }
184
+ );
185
+ te.displayName = "ChatInput";
28
186
  export {
29
- m as action,
30
- I as closeButton,
31
- t as container,
32
- u as content,
33
- O as default,
34
- a as error,
35
- _ as exiting,
36
- r as icon,
37
- l as info,
38
- g as message,
39
- e as slideIn,
40
- c as slideInCenter,
41
- o as slideInLeft,
42
- n as slideOut,
43
- b as slideOutCenter,
44
- i as slideOutLeft,
45
- y as success,
46
- f as title,
47
- s as toast,
48
- d as warning
187
+ te as ChatInput
49
188
  };
package/dist/index14.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),$=require("react"),e=require("./index128.cjs"),C=d=>d.replace(/-([a-z])/g,r=>r[1]?.toUpperCase()||""),o=$.forwardRef(({variant:d="primary",size:r="md",isLoading:t=!1,fullWidth:i=!1,icon:s,iconRight:u,iconOnly:l=!1,className:c,children:f,disabled:m,type:p="button",...h},j)=>{const N=e.default[C(d)],b=[e.default.button,N,e.default[r],i&&e.default.fullWidth,l&&e.default.iconOnly,t&&e.default.loading,c].filter(Boolean).join(" "),x=m||t,n=t?e.default.loadingContent:void 0;return a.jsxs("button",{ref:j,type:p,className:b,disabled:x,...h,children:[t&&a.jsx("span",{className:e.default.spinner,"aria-hidden":"true"}),s&&!l&&a.jsx("span",{className:`${e.default.icon} ${n||""}`,"aria-hidden":"true",children:s}),l&&s?a.jsx("span",{className:`${e.default.icon} ${n||""}`,"aria-hidden":"true",children:s}):a.jsx("span",{className:n,children:f}),u&&!l&&a.jsx("span",{className:`${e.default.icon} ${e.default.iconRight} ${n||""}`,"aria-hidden":"true",children:u})]})});o.displayName="Button";exports.Button=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),$=require("react"),e=require("./index99.cjs"),C=d=>d.replace(/-([a-z])/g,r=>r[1]?.toUpperCase()||""),o=$.forwardRef(({variant:d="primary",size:r="md",isLoading:t=!1,fullWidth:i=!1,icon:s,iconRight:u,iconOnly:l=!1,className:c,children:f,disabled:m,type:p="button",...h},j)=>{const N=e.default[C(d)],b=[e.default.button,N,e.default[r],i&&e.default.fullWidth,l&&e.default.iconOnly,t&&e.default.loading,c].filter(Boolean).join(" "),x=m||t,n=t?e.default.loadingContent:void 0;return a.jsxs("button",{ref:j,type:p,className:b,disabled:x,...h,children:[t&&a.jsx("span",{className:e.default.spinner,"aria-hidden":"true"}),s&&!l&&a.jsx("span",{className:`${e.default.icon} ${n||""}`,"aria-hidden":"true",children:s}),l&&s?a.jsx("span",{className:`${e.default.icon} ${n||""}`,"aria-hidden":"true",children:s}):a.jsx("span",{className:n,children:f}),u&&!l&&a.jsx("span",{className:`${e.default.icon} ${e.default.iconRight} ${n||""}`,"aria-hidden":"true",children:u})]})});o.displayName="Button";exports.Button=o;
package/dist/index14.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as b, jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as j } from "react";
3
- import a from "./index128.mjs";
3
+ import a from "./index99.mjs";
4
4
  const x = (l) => l.replace(/-([a-z])/g, (o) => o[1]?.toUpperCase() || ""), B = j(
5
5
  ({
6
6
  variant: l = "primary",
package/dist/index140.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react");function d(e){return e.match(/^var\(\s*(--[^),]+)\s*(?:,\s*.*)?\)$/)?.[1]??null}function i(e){if(typeof window>"u")return e;const t=d(e);return t&&getComputedStyle(document.documentElement).getPropertyValue(t).trim()||e}function c(e){const t={},r={};for(const[n,o]of Object.entries(e)){const s=i(o.color);t[n]={...o,color:s},r[`--color-${n}`]=s}return{resolvedConfig:t,resolvedColorVars:r}}function l(e){const[t,r]=u.useState(()=>c(e));return u.useEffect(()=>{r(c(e))},[e]),u.useEffect(()=>{if(typeof window>"u")return;const n=document.documentElement,o=new MutationObserver(s=>{for(const a of s)if(a.type==="attributes"&&(a.attributeName==="data-theme"||a.attributeName==="data-brand")){r(c(e));break}});return o.observe(n,{attributes:!0,attributeFilter:["data-theme","data-brand"]}),()=>o.disconnect()},[e]),t}exports.useResolvedChartColors=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),e=require("./index135.cjs"),s=({label:t="Generating response",className:i,...n})=>a.jsx("div",{className:[e.default.message,e.default.messageAssistant,i].filter(Boolean).join(" "),role:"status","aria-live":"polite","aria-label":t,...n,children:a.jsx("div",{className:e.default.messageContent,children:a.jsx("div",{className:[e.default.messageBubble,e.default.messageBubbleAssistant,e.default.thinkingBubble].join(" "),children:a.jsx("span",{className:e.default.thinkingSpinner})})})});s.displayName="ChatTypingIndicator";exports.ChatTypingIndicator=s;
package/dist/index140.mjs CHANGED
@@ -1,39 +1,31 @@
1
- import { useState as d, useEffect as c } from "react";
2
- function i(t) {
3
- return t.match(/^var\(\s*(--[^),]+)\s*(?:,\s*.*)?\)$/)?.[1] ?? null;
4
- }
5
- function m(t) {
6
- if (typeof window > "u") return t;
7
- const e = i(t);
8
- return e && getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
9
- }
10
- function u(t) {
11
- const e = {}, r = {};
12
- for (const [n, o] of Object.entries(t)) {
13
- const s = m(o.color);
14
- e[n] = { ...o, color: s }, r[`--color-${n}`] = s;
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import e from "./index135.mjs";
3
+ const t = ({
4
+ label: a = "Generating response",
5
+ className: i,
6
+ ...n
7
+ }) => /* @__PURE__ */ s(
8
+ "div",
9
+ {
10
+ className: [e.message, e.messageAssistant, i].filter(Boolean).join(" "),
11
+ role: "status",
12
+ "aria-live": "polite",
13
+ "aria-label": a,
14
+ ...n,
15
+ children: /* @__PURE__ */ s("div", { className: e.messageContent, children: /* @__PURE__ */ s(
16
+ "div",
17
+ {
18
+ className: [
19
+ e.messageBubble,
20
+ e.messageBubbleAssistant,
21
+ e.thinkingBubble
22
+ ].join(" "),
23
+ children: /* @__PURE__ */ s("span", { className: e.thinkingSpinner })
24
+ }
25
+ ) })
15
26
  }
16
- return { resolvedConfig: e, resolvedColorVars: r };
17
- }
18
- function f(t) {
19
- const [e, r] = d(() => u(t));
20
- return c(() => {
21
- r(u(t));
22
- }, [t]), c(() => {
23
- if (typeof window > "u") return;
24
- const n = document.documentElement, o = new MutationObserver((s) => {
25
- for (const a of s)
26
- if (a.type === "attributes" && (a.attributeName === "data-theme" || a.attributeName === "data-brand")) {
27
- r(u(t));
28
- break;
29
- }
30
- });
31
- return o.observe(n, {
32
- attributes: !0,
33
- attributeFilter: ["data-theme", "data-brand"]
34
- }), () => o.disconnect();
35
- }, [t]), e;
36
- }
27
+ );
28
+ t.displayName = "ChatTypingIndicator";
37
29
  export {
38
- f as useResolvedChartColors
30
+ t as ChatTypingIndicator
39
31
  };
package/dist/index141.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_container_faue8_8",o="_tooltip_faue8_17",e="_tooltipLabel_faue8_27",l="_tooltipItems_faue8_35",i="_tooltipItem_faue8_35",_="_tooltipDot_faue8_47",n="_tooltipLine_faue8_54",a="_tooltipDashed_faue8_60",p="_tooltipName_faue8_67",s="_tooltipValue_faue8_71",u="_legend_faue8_82",c="_legendItem_faue8_92",d="_legendDot_faue8_99",m={container:t,tooltip:o,tooltipLabel:e,tooltipItems:l,tooltipItem:i,tooltipDot:_,tooltipLine:n,tooltipDashed:a,tooltipName:p,tooltipValue:s,legend:u,legendItem:c,legendDot:d};exports.container=t;exports.default=m;exports.legend=u;exports.legendDot=d;exports.legendItem=c;exports.tooltip=o;exports.tooltipDashed=a;exports.tooltipDot=_;exports.tooltipItem=i;exports.tooltipItems=l;exports.tooltipLabel=e;exports.tooltipLine=n;exports.tooltipName=p;exports.tooltipValue=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),f=require("react-syntax-highlighter"),d=require("react-syntax-highlighter/dist/esm/styles/prism"),u=require("lucide-react"),o=require("./index135.cjs"),k=require("./index75.cjs"),b=t=>t?{js:"javascript",ts:"typescript",jsx:"jsx",tsx:"tsx",py:"python",rb:"ruby",sh:"bash",shell:"bash",yml:"yaml",md:"markdown"}[t.toLowerCase()]||t.toLowerCase():"text",h=({code:t,language:s,showLineNumbers:m=!1,showCopyButton:p=!0,maxHeight:y="400px",className:C,...x})=>{const[a,r]=n.useState(!1);let c="dark";try{c=k.useThemeContext().theme}catch{}const g=n.useCallback(async()=>{try{await navigator.clipboard.writeText(t),r(!0),setTimeout(()=>r(!1),2e3)}catch(l){console.error("Failed to copy code:",l)}},[t]),i=b(s),j=c==="light"?d.oneLight:d.oneDark;return e.jsxs("div",{className:[o.default.codeBlock,C].filter(Boolean).join(" "),...x,children:[e.jsxs("div",{className:o.default.codeBlockHeader,children:[e.jsx("span",{className:o.default.codeBlockLanguage,children:i}),p&&e.jsx("button",{className:[o.default.codeBlockCopy,a&&o.default.codeBlockCopied].filter(Boolean).join(" "),onClick:g,"aria-label":a?"Copied!":"Copy code",children:a?e.jsxs(e.Fragment,{children:[e.jsx(u.Check,{size:14}),"Copied!"]}):e.jsxs(e.Fragment,{children:[e.jsx(u.Copy,{size:14}),"Copy"]})})]}),e.jsx("div",{className:o.default.codeBlockContent,style:{maxHeight:y},children:e.jsx(f.Prism,{language:i,style:j,showLineNumbers:m,customStyle:{margin:0,padding:0,background:"transparent",fontSize:"inherit",lineHeight:"inherit"},codeTagProps:{style:{fontFamily:"var(--font-mono)"}},children:t})})]})};h.displayName="ChatCodeBlock";exports.ChatCodeBlock=h;
package/dist/index141.mjs CHANGED
@@ -1,31 +1,93 @@
1
- const t = "_container_faue8_8", o = "_tooltip_faue8_17", e = "_tooltipLabel_faue8_27", l = "_tooltipItems_faue8_35", _ = "_tooltipItem_faue8_35", i = "_tooltipDot_faue8_47", n = "_tooltipLine_faue8_54", a = "_tooltipDashed_faue8_60", p = "_tooltipName_faue8_67", s = "_tooltipValue_faue8_71", c = "_legend_faue8_82", u = "_legendItem_faue8_92", f = "_legendDot_faue8_99", d = {
2
- container: t,
3
- tooltip: o,
4
- tooltipLabel: e,
5
- tooltipItems: l,
6
- tooltipItem: _,
7
- tooltipDot: i,
8
- tooltipLine: n,
9
- tooltipDashed: a,
10
- tooltipName: p,
11
- tooltipValue: s,
12
- legend: c,
13
- legendItem: u,
14
- legendDot: f
1
+ import { jsxs as r, jsx as o, Fragment as d } from "react/jsx-runtime";
2
+ import { useState as g, useCallback as k } from "react";
3
+ import { Prism as x } from "react-syntax-highlighter";
4
+ import { oneLight as B, oneDark as b } from "react-syntax-highlighter/dist/esm/styles/prism";
5
+ import { Check as j, Copy as v } from "lucide-react";
6
+ import t from "./index135.mjs";
7
+ import { useThemeContext as L } from "./index75.mjs";
8
+ const N = (e) => e ? {
9
+ js: "javascript",
10
+ ts: "typescript",
11
+ jsx: "jsx",
12
+ tsx: "tsx",
13
+ py: "python",
14
+ rb: "ruby",
15
+ sh: "bash",
16
+ shell: "bash",
17
+ yml: "yaml",
18
+ md: "markdown"
19
+ }[e.toLowerCase()] || e.toLowerCase() : "text", w = ({
20
+ code: e,
21
+ language: s,
22
+ showLineNumbers: m = !1,
23
+ showCopyButton: p = !0,
24
+ maxHeight: h = "400px",
25
+ className: y,
26
+ ...C
27
+ }) => {
28
+ const [a, i] = g(!1);
29
+ let l = "dark";
30
+ try {
31
+ l = L().theme;
32
+ } catch {
33
+ }
34
+ const u = k(async () => {
35
+ try {
36
+ await navigator.clipboard.writeText(e), i(!0), setTimeout(() => i(!1), 2e3);
37
+ } catch (n) {
38
+ console.error("Failed to copy code:", n);
39
+ }
40
+ }, [e]), c = N(s), f = l === "light" ? B : b;
41
+ return /* @__PURE__ */ r(
42
+ "div",
43
+ {
44
+ className: [t.codeBlock, y].filter(Boolean).join(" "),
45
+ ...C,
46
+ children: [
47
+ /* @__PURE__ */ r("div", { className: t.codeBlockHeader, children: [
48
+ /* @__PURE__ */ o("span", { className: t.codeBlockLanguage, children: c }),
49
+ p && /* @__PURE__ */ o(
50
+ "button",
51
+ {
52
+ className: [t.codeBlockCopy, a && t.codeBlockCopied].filter(Boolean).join(" "),
53
+ onClick: u,
54
+ "aria-label": a ? "Copied!" : "Copy code",
55
+ children: a ? /* @__PURE__ */ r(d, { children: [
56
+ /* @__PURE__ */ o(j, { size: 14 }),
57
+ "Copied!"
58
+ ] }) : /* @__PURE__ */ r(d, { children: [
59
+ /* @__PURE__ */ o(v, { size: 14 }),
60
+ "Copy"
61
+ ] })
62
+ }
63
+ )
64
+ ] }),
65
+ /* @__PURE__ */ o("div", { className: t.codeBlockContent, style: { maxHeight: h }, children: /* @__PURE__ */ o(
66
+ x,
67
+ {
68
+ language: c,
69
+ style: f,
70
+ showLineNumbers: m,
71
+ customStyle: {
72
+ margin: 0,
73
+ padding: 0,
74
+ background: "transparent",
75
+ fontSize: "inherit",
76
+ lineHeight: "inherit"
77
+ },
78
+ codeTagProps: {
79
+ style: {
80
+ fontFamily: "var(--font-mono)"
81
+ }
82
+ },
83
+ children: e
84
+ }
85
+ ) })
86
+ ]
87
+ }
88
+ );
15
89
  };
90
+ w.displayName = "ChatCodeBlock";
16
91
  export {
17
- t as container,
18
- d as default,
19
- c as legend,
20
- f as legendDot,
21
- u as legendItem,
22
- o as tooltip,
23
- a as tooltipDashed,
24
- i as tooltipDot,
25
- _ as tooltipItem,
26
- l as tooltipItems,
27
- e as tooltipLabel,
28
- n as tooltipLine,
29
- p as tooltipName,
30
- s as tooltipValue
92
+ w as ChatCodeBlock
31
93
  };
package/dist/index142.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_notificationCenter_1i45p_8",t="_header_1i45p_23",i="_headerTitle_1i45p_31",o="_badge_1i45p_41",n="_headerActions_1i45p_52",_="_headerAction_1i45p_52",c="_content_1i45p_76",r="_group_1i45p_80",a="_groupTitle_1i45p_84",s="_item_1i45p_99",m="_itemClickable_1i45p_113",p="_itemRead_1i45p_122",d="_itemLeft_1i45p_126",l="_itemAvatar_1i45p_130",A="_itemIcon_1i45p_137",f="_itemContent_1i45p_171",g="_itemHeader_1i45p_176",u="_itemTitle_1i45p_182",T="_unreadDot_1i45p_189",h="_itemMessage_1i45p_197",C="_itemTime_1i45p_209",b="_itemActions_1i45p_217",y="_itemAction_1i45p_217",v="_empty_1i45p_252",M="_loading_1i45p_271",P="_spinner_1i45p_278",k="_spin_1i45p_278",D="_footer_1i45p_297",H="_footerAction_1i45p_306",I="_footerActionPrimary_1i45p_321",L={notificationCenter:e,header:t,headerTitle:i,badge:o,headerActions:n,headerAction:_,content:c,group:r,groupTitle:a,item:s,itemClickable:m,itemRead:p,itemLeft:d,itemAvatar:l,itemIcon:A,"icon-info":"_icon-info_1i45p_146","icon-success":"_icon-success_1i45p_151","icon-warning":"_icon-warning_1i45p_156","icon-error":"_icon-error_1i45p_161","icon-default":"_icon-default_1i45p_166",itemContent:f,itemHeader:g,itemTitle:u,unreadDot:T,itemMessage:h,itemTime:C,itemActions:b,itemAction:y,empty:v,loading:M,spinner:P,spin:k,footer:D,footerAction:H,footerActionPrimary:I};exports.badge=o;exports.content=c;exports.default=L;exports.empty=v;exports.footer=D;exports.footerAction=H;exports.footerActionPrimary=I;exports.group=r;exports.groupTitle=a;exports.header=t;exports.headerAction=_;exports.headerActions=n;exports.headerTitle=i;exports.item=s;exports.itemAction=y;exports.itemActions=b;exports.itemAvatar=l;exports.itemClickable=m;exports.itemContent=f;exports.itemHeader=g;exports.itemIcon=A;exports.itemLeft=d;exports.itemMessage=h;exports.itemRead=p;exports.itemTime=C;exports.itemTitle=u;exports.loading=M;exports.notificationCenter=e;exports.spin=k;exports.spinner=P;exports.unreadDot=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),d=require("react-markdown"),u=require("remark-gfm"),m=require("./index141.cjs"),g=require("./index135.cjs"),o=({content:s,className:c,...i})=>r.jsx("div",{className:[g.default.markdown,c].filter(Boolean).join(" "),...i,children:r.jsx(d,{remarkPlugins:[u],components:{code({className:e,children:t,...a}){const n=/language-(\w+)/.exec(e||"");if(!n)return r.jsx("code",{className:e,...a,children:t});const l=String(t).replace(/\n$/,"");return r.jsx(m.ChatCodeBlock,{code:l,language:n[1]})},pre({children:e}){return r.jsx(r.Fragment,{children:e})},a({href:e,children:t,...a}){const n=e?.startsWith("http");return r.jsx("a",{href:e,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0,...a,children:t})}},children:s})});o.displayName="ChatMarkdown";exports.ChatMarkdown=o;
package/dist/index142.mjs CHANGED
@@ -1,70 +1,55 @@
1
- const t = "_notificationCenter_1i45p_8", i = "_header_1i45p_23", e = "_headerTitle_1i45p_31", o = "_badge_1i45p_41", _ = "_headerActions_1i45p_52", n = "_headerAction_1i45p_52", c = "_content_1i45p_76", s = "_group_1i45p_80", r = "_groupTitle_1i45p_84", a = "_item_1i45p_99", p = "_itemClickable_1i45p_113", m = "_itemRead_1i45p_122", d = "_itemLeft_1i45p_126", l = "_itemAvatar_1i45p_130", A = "_itemIcon_1i45p_137", f = "_itemContent_1i45p_171", g = "_itemHeader_1i45p_176", u = "_itemTitle_1i45p_182", h = "_unreadDot_1i45p_189", T = "_itemMessage_1i45p_197", C = "_itemTime_1i45p_209", y = "_itemActions_1i45p_217", b = "_itemAction_1i45p_217", k = "_empty_1i45p_252", v = "_loading_1i45p_271", D = "_spinner_1i45p_278", H = "_spin_1i45p_278", I = "_footer_1i45p_297", L = "_footerAction_1i45p_306", M = "_footerActionPrimary_1i45p_321", P = {
2
- notificationCenter: t,
3
- header: i,
4
- headerTitle: e,
5
- badge: o,
6
- headerActions: _,
7
- headerAction: n,
8
- content: c,
9
- group: s,
10
- groupTitle: r,
11
- item: a,
12
- itemClickable: p,
13
- itemRead: m,
14
- itemLeft: d,
15
- itemAvatar: l,
16
- itemIcon: A,
17
- "icon-info": "_icon-info_1i45p_146",
18
- "icon-success": "_icon-success_1i45p_151",
19
- "icon-warning": "_icon-warning_1i45p_156",
20
- "icon-error": "_icon-error_1i45p_161",
21
- "icon-default": "_icon-default_1i45p_166",
22
- itemContent: f,
23
- itemHeader: g,
24
- itemTitle: u,
25
- unreadDot: h,
26
- itemMessage: T,
27
- itemTime: C,
28
- itemActions: y,
29
- itemAction: b,
30
- empty: k,
31
- loading: v,
32
- spinner: D,
33
- spin: H,
34
- footer: I,
35
- footerAction: L,
36
- footerActionPrimary: M
37
- };
1
+ import { jsx as e, Fragment as c } from "react/jsx-runtime";
2
+ import l from "react-markdown";
3
+ import d from "remark-gfm";
4
+ import { ChatCodeBlock as p } from "./index141.mjs";
5
+ import g from "./index135.mjs";
6
+ const f = ({
7
+ content: a,
8
+ className: i,
9
+ ...m
10
+ }) => /* @__PURE__ */ e(
11
+ "div",
12
+ {
13
+ className: [g.markdown, i].filter(Boolean).join(" "),
14
+ ...m,
15
+ children: /* @__PURE__ */ e(
16
+ l,
17
+ {
18
+ remarkPlugins: [d],
19
+ components: {
20
+ // Custom code block rendering
21
+ code({ className: r, children: o, ...t }) {
22
+ const n = /language-(\w+)/.exec(r || "");
23
+ if (!n)
24
+ return /* @__PURE__ */ e("code", { className: r, ...t, children: o });
25
+ const s = String(o).replace(/\n$/, "");
26
+ return /* @__PURE__ */ e(p, { code: s, language: n[1] });
27
+ },
28
+ // Custom pre rendering (remove wrapper for code blocks)
29
+ pre({ children: r }) {
30
+ return /* @__PURE__ */ e(c, { children: r });
31
+ },
32
+ // Custom link rendering (open in new tab)
33
+ a({ href: r, children: o, ...t }) {
34
+ const n = r?.startsWith("http");
35
+ return /* @__PURE__ */ e(
36
+ "a",
37
+ {
38
+ href: r,
39
+ target: n ? "_blank" : void 0,
40
+ rel: n ? "noopener noreferrer" : void 0,
41
+ ...t,
42
+ children: o
43
+ }
44
+ );
45
+ }
46
+ },
47
+ children: a
48
+ }
49
+ )
50
+ }
51
+ );
52
+ f.displayName = "ChatMarkdown";
38
53
  export {
39
- o as badge,
40
- c as content,
41
- P as default,
42
- k as empty,
43
- I as footer,
44
- L as footerAction,
45
- M as footerActionPrimary,
46
- s as group,
47
- r as groupTitle,
48
- i as header,
49
- n as headerAction,
50
- _ as headerActions,
51
- e as headerTitle,
52
- a as item,
53
- b as itemAction,
54
- y as itemActions,
55
- l as itemAvatar,
56
- p as itemClickable,
57
- f as itemContent,
58
- g as itemHeader,
59
- A as itemIcon,
60
- d as itemLeft,
61
- T as itemMessage,
62
- m as itemRead,
63
- C as itemTime,
64
- u as itemTitle,
65
- v as loading,
66
- t as notificationCenter,
67
- H as spin,
68
- D as spinner,
69
- h as unreadDot
54
+ f as ChatMarkdown
70
55
  };
package/dist/index143.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r="_filterBar_ldmr2_8",e="_compact_ldmr2_19",o="_searchWrapper_ldmr2_28",c="_searchIcon_ldmr2_34",t="_searchInput_ldmr2_41",n="_filters_ldmr2_69",l="_filterWrapper_ldmr2_75",d="_filterTrigger_ldmr2_79",p="_filterActive_ldmr2_100",_="_chevron_ldmr2_106",i="_chevronOpen_ldmr2_110",s="_dropdown_ldmr2_118",a="_dropdownItem_ldmr2_133",m="_dropdownItemSelected_ldmr2_154",h="_checkbox_ldmr2_159",w="_optionCount_ldmr2_177",f="_dropdownFooter_ldmr2_183",v="_dropdownCancel_ldmr2_192",u="_dropdownApply_ldmr2_193",I="_activeFilters_ldmr2_227",A="_chip_ldmr2_237",b="_chipLabel_ldmr2_250",g="_chipRemove_ldmr2_257",C="_clearAll_ldmr2_276",F="_count_ldmr2_296",W={filterBar:r,compact:e,searchWrapper:o,searchIcon:c,searchInput:t,filters:n,filterWrapper:l,filterTrigger:d,filterActive:p,chevron:_,chevronOpen:i,dropdown:s,dropdownItem:a,dropdownItemSelected:m,checkbox:h,optionCount:w,dropdownFooter:f,dropdownCancel:v,dropdownApply:u,activeFilters:I,chip:A,chipLabel:b,chipRemove:g,clearAll:C,count:F};exports.activeFilters=I;exports.checkbox=h;exports.chevron=_;exports.chevronOpen=i;exports.chip=A;exports.chipLabel=b;exports.chipRemove=g;exports.clearAll=C;exports.compact=e;exports.count=F;exports.default=W;exports.dropdown=s;exports.dropdownApply=u;exports.dropdownCancel=v;exports.dropdownFooter=f;exports.dropdownItem=a;exports.dropdownItemSelected=m;exports.filterActive=p;exports.filterBar=r;exports.filterTrigger=d;exports.filterWrapper=l;exports.filters=n;exports.optionCount=w;exports.searchIcon=c;exports.searchInput=t;exports.searchWrapper=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("react"),I=require("lucide-react"),a=require("./index135.cjs"),w=require("./index185.cjs"),u=({src:i,alt:t="Image attachment",thumbnail:g,onClick:n,enableLightbox:s=!0,className:o,...l})=>{const[h,c]=d.useState(!1),[f,v]=d.useState(!1),m=()=>{n?n():s&&c(!0)},x=r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),m())},j=()=>{v(!0)};return f?e.jsxs("div",{className:[a.default.imagePreview,a.default.attachmentPreview,o].filter(Boolean).join(" "),...l,children:[e.jsx("div",{className:a.default.attachmentPreviewIcon,children:e.jsx(I.ImageOff,{size:20})}),e.jsx("span",{className:a.default.attachmentPreviewName,children:"Image failed to load"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:[a.default.imagePreview,o].filter(Boolean).join(" "),onClick:m,onKeyDown:x,role:"button",tabIndex:0,"aria-label":t,...l,children:e.jsx("img",{src:g||i,alt:t,className:a.default.imagePreviewImg,onError:j,loading:"lazy"})}),s&&e.jsx(w.ChatLightbox,{src:i,alt:t,isOpen:h,onClose:()=>c(!1)})]})};u.displayName="ChatImagePreview";exports.ChatImagePreview=u;