@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/index143.mjs CHANGED
@@ -1,55 +1,69 @@
1
- const r = "_filterBar_ldmr2_8", o = "_compact_ldmr2_19", e = "_searchWrapper_ldmr2_28", c = "_searchIcon_ldmr2_34", t = "_searchInput_ldmr2_41", _ = "_filters_ldmr2_69", n = "_filterWrapper_ldmr2_75", l = "_filterTrigger_ldmr2_79", d = "_filterActive_ldmr2_100", p = "_chevron_ldmr2_106", s = "_chevronOpen_ldmr2_110", i = "_dropdown_ldmr2_118", m = "_dropdownItem_ldmr2_133", a = "_dropdownItemSelected_ldmr2_154", h = "_checkbox_ldmr2_159", w = "_optionCount_ldmr2_177", f = "_dropdownFooter_ldmr2_183", v = "_dropdownCancel_ldmr2_192", I = "_dropdownApply_ldmr2_193", u = "_activeFilters_ldmr2_227", A = "_chip_ldmr2_237", b = "_chipLabel_ldmr2_250", g = "_chipRemove_ldmr2_257", C = "_clearAll_ldmr2_276", F = "_count_ldmr2_296", W = {
2
- filterBar: r,
3
- compact: o,
4
- searchWrapper: e,
5
- searchIcon: c,
6
- searchInput: t,
7
- filters: _,
8
- filterWrapper: n,
9
- filterTrigger: l,
10
- filterActive: d,
11
- chevron: p,
12
- chevronOpen: s,
13
- dropdown: i,
14
- dropdownItem: m,
15
- dropdownItemSelected: a,
16
- checkbox: h,
17
- optionCount: w,
18
- dropdownFooter: f,
19
- dropdownCancel: v,
20
- dropdownApply: I,
21
- activeFilters: u,
22
- chip: A,
23
- chipLabel: b,
24
- chipRemove: g,
25
- clearAll: C,
26
- count: F
1
+ import { jsxs as f, jsx as e, Fragment as u } from "react/jsx-runtime";
2
+ import { useState as g } from "react";
3
+ import { ImageOff as P } from "lucide-react";
4
+ import a from "./index135.mjs";
5
+ import { ChatLightbox as y } from "./index185.mjs";
6
+ const x = ({
7
+ src: i,
8
+ alt: r = "Image attachment",
9
+ thumbnail: h,
10
+ onClick: o,
11
+ enableLightbox: n = !0,
12
+ className: m,
13
+ ...s
14
+ }) => {
15
+ const [d, l] = g(!1), [p, v] = g(!1), c = () => {
16
+ o ? o() : n && l(!0);
17
+ }, I = (t) => {
18
+ (t.key === "Enter" || t.key === " ") && (t.preventDefault(), c());
19
+ }, w = () => {
20
+ v(!0);
21
+ };
22
+ return p ? /* @__PURE__ */ f(
23
+ "div",
24
+ {
25
+ className: [a.imagePreview, a.attachmentPreview, m].filter(Boolean).join(" "),
26
+ ...s,
27
+ children: [
28
+ /* @__PURE__ */ e("div", { className: a.attachmentPreviewIcon, children: /* @__PURE__ */ e(P, { size: 20 }) }),
29
+ /* @__PURE__ */ e("span", { className: a.attachmentPreviewName, children: "Image failed to load" })
30
+ ]
31
+ }
32
+ ) : /* @__PURE__ */ f(u, { children: [
33
+ /* @__PURE__ */ e(
34
+ "div",
35
+ {
36
+ className: [a.imagePreview, m].filter(Boolean).join(" "),
37
+ onClick: c,
38
+ onKeyDown: I,
39
+ role: "button",
40
+ tabIndex: 0,
41
+ "aria-label": r,
42
+ ...s,
43
+ children: /* @__PURE__ */ e(
44
+ "img",
45
+ {
46
+ src: h || i,
47
+ alt: r,
48
+ className: a.imagePreviewImg,
49
+ onError: w,
50
+ loading: "lazy"
51
+ }
52
+ )
53
+ }
54
+ ),
55
+ n && /* @__PURE__ */ e(
56
+ y,
57
+ {
58
+ src: i,
59
+ alt: r,
60
+ isOpen: d,
61
+ onClose: () => l(!1)
62
+ }
63
+ )
64
+ ] });
27
65
  };
66
+ x.displayName = "ChatImagePreview";
28
67
  export {
29
- u as activeFilters,
30
- h as checkbox,
31
- p as chevron,
32
- s as chevronOpen,
33
- A as chip,
34
- b as chipLabel,
35
- g as chipRemove,
36
- C as clearAll,
37
- o as compact,
38
- F as count,
39
- W as default,
40
- i as dropdown,
41
- I as dropdownApply,
42
- v as dropdownCancel,
43
- f as dropdownFooter,
44
- m as dropdownItem,
45
- a as dropdownItemSelected,
46
- d as filterActive,
47
- r as filterBar,
48
- l as filterTrigger,
49
- n as filterWrapper,
50
- _ as filters,
51
- w as optionCount,
52
- c as searchIcon,
53
- t as searchInput,
54
- e as searchWrapper
68
+ x as ChatImagePreview
55
69
  };
package/dist/index144.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_navTree_6iya4_12",o="_header_6iya4_29",n="_footer_6iya4_36",t="_treeContent_6iya4_47",i="_section_6iya4_76",s="_sectionHeader_6iya4_81",d="_sectionHeaderNode_6iya4_100",c="_sectionChevron_6iya4_105",_="_sectionChevronOpen_6iya4_117",a="_sectionTitle_6iya4_122",r="_sectionTitleNode_6iya4_136",y="_sectionBody_6iya4_148",l="_sectionActions_6iya4_154",v="_node_6iya4_182",h="_nodeRow_6iya4_187",C="_nodeRowActive_6iya4_208",p="_nodeLabel_6iya4_216",O="_nodeChevron_6iya4_222",T="_nodeChevronOpen_6iya4_238",A="_nodeChevronHidden_6iya4_243",B="_nodeActions_6iya4_277",H="_nodeChildren_6iya4_311",N="_nodeNested_6iya4_321",g="_iconSlot_6iya4_330",w="_slotIcon_6iya4_341",R="_slotChevron_6iya4_352",u="_slotChevronOpen_6iya4_364",b="_sectionBadge_6iya4_403",f="_nodeBadge_6iya4_418",S="_empty_6iya4_435",m={navTree:e,header:o,footer:n,treeContent:t,section:i,sectionHeader:s,sectionHeaderNode:d,sectionChevron:c,sectionChevronOpen:_,sectionTitle:a,sectionTitleNode:r,sectionBody:y,sectionActions:l,node:v,nodeRow:h,nodeRowActive:C,nodeLabel:p,nodeChevron:O,nodeChevronOpen:T,nodeChevronHidden:A,nodeActions:B,nodeChildren:H,nodeNested:N,iconSlot:g,slotIcon:w,slotChevron:R,slotChevronOpen:u,sectionBadge:b,nodeBadge:f,empty:S};exports.default=m;exports.empty=S;exports.footer=n;exports.header=o;exports.iconSlot=g;exports.navTree=e;exports.node=v;exports.nodeActions=B;exports.nodeBadge=f;exports.nodeChevron=O;exports.nodeChevronHidden=A;exports.nodeChevronOpen=T;exports.nodeChildren=H;exports.nodeLabel=p;exports.nodeNested=N;exports.nodeRow=h;exports.nodeRowActive=C;exports.section=i;exports.sectionActions=l;exports.sectionBadge=b;exports.sectionBody=y;exports.sectionChevron=c;exports.sectionChevronOpen=_;exports.sectionHeader=s;exports.sectionHeaderNode=d;exports.sectionTitle=a;exports.sectionTitleNode=r;exports.slotChevron=R;exports.slotChevronOpen=u;exports.slotIcon=w;exports.treeContent=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("react"),P=require("lucide-react"),m=require("./index184.cjs"),l=require("./index135.cjs"),p=({src:k,duration:T,title:h,className:b,...x})=>{const[o,f]=r.useState(!1),[s,d]=r.useState(0),[a,g]=r.useState(T||0),n=r.useRef(null),j=r.useCallback(()=>{const e=n.current;e&&!isNaN(e.duration)&&isFinite(e.duration)&&g(e.duration)},[]),v=r.useCallback(()=>{const e=n.current;e&&d(e.currentTime)},[]),C=r.useCallback(()=>{f(!1),d(0)},[]),w=r.useCallback(()=>{const e=n.current;e&&(o?e.pause():e.play().catch(()=>{f(!1)}),f(!o))},[o]),N=r.useCallback(e=>{const c=n.current;if(!c||!a)return;const u=e.currentTarget.getBoundingClientRect(),y=(e.clientX-u.left)/u.width*a;c.currentTime=y,d(y)},[a]),A=r.useCallback(e=>{const c=n.current;if(!c||!a)return;const u=5;let i=s;switch(e.key){case"ArrowRight":case"ArrowUp":e.preventDefault(),i=Math.min(s+u,a);break;case"ArrowLeft":case"ArrowDown":e.preventDefault(),i=Math.max(s-u,0);break;case"Home":e.preventDefault(),i=0;break;case"End":e.preventDefault(),i=a;break;default:return}c.currentTime=i,d(i)},[s,a]),D=a>0?s/a*100:0;return r.useEffect(()=>()=>{const e=n.current;e&&e.pause()},[]),t.jsxs("div",{className:[l.default.audioPlayer,b].filter(Boolean).join(" "),...x,children:[t.jsx("audio",{ref:n,src:k,onLoadedMetadata:j,onTimeUpdate:v,onEnded:C,preload:"metadata"}),t.jsx("button",{className:l.default.audioPlayerButton,onClick:w,"aria-label":o?"Pause":"Play",children:o?t.jsx(P.Pause,{size:16}):t.jsx(P.Play,{size:16})}),t.jsxs("div",{className:l.default.audioPlayerProgress,children:[h&&t.jsx("span",{className:l.default.attachmentPreviewName,children:h}),t.jsx("div",{className:l.default.audioPlayerTrack,onClick:N,onKeyDown:A,role:"slider","aria-label":"Audio progress","aria-valuemin":0,"aria-valuemax":a,"aria-valuenow":s,"aria-valuetext":`${m.formatTime(s)} of ${m.formatTime(a)}`,tabIndex:0,children:t.jsx("div",{className:l.default.audioPlayerFill,style:{width:`${D}%`}})}),t.jsxs("div",{className:l.default.audioPlayerTime,children:[t.jsx("span",{children:m.formatTime(s)}),t.jsx("span",{children:m.formatTime(a)})]})]})]})};p.displayName="ChatAudioPlayer";exports.ChatAudioPlayer=p;
package/dist/index144.mjs CHANGED
@@ -1,65 +1,127 @@
1
- const e = "_navTree_6iya4_12", o = "_header_6iya4_29", n = "_footer_6iya4_36", t = "_treeContent_6iya4_47", _ = "_section_6iya4_76", i = "_sectionHeader_6iya4_81", s = "_sectionHeaderNode_6iya4_100", c = "_sectionChevron_6iya4_105", d = "_sectionChevronOpen_6iya4_117", a = "_sectionTitle_6iya4_122", r = "_sectionTitleNode_6iya4_136", y = "_sectionBody_6iya4_148", h = "_sectionActions_6iya4_154", v = "_node_6iya4_182", C = "_nodeRow_6iya4_187", l = "_nodeRowActive_6iya4_208", p = "_nodeLabel_6iya4_216", A = "_nodeChevron_6iya4_222", B = "_nodeChevronOpen_6iya4_238", H = "_nodeChevronHidden_6iya4_243", N = "_nodeActions_6iya4_277", O = "_nodeChildren_6iya4_311", T = "_nodeNested_6iya4_321", g = "_iconSlot_6iya4_330", w = "_slotIcon_6iya4_341", R = "_slotChevron_6iya4_352", f = "_slotChevronOpen_6iya4_364", b = "_sectionBadge_6iya4_403", m = "_nodeBadge_6iya4_418", I = "_empty_6iya4_435", L = {
2
- navTree: e,
3
- header: o,
4
- footer: n,
5
- treeContent: t,
6
- section: _,
7
- sectionHeader: i,
8
- sectionHeaderNode: s,
9
- sectionChevron: c,
10
- sectionChevronOpen: d,
11
- sectionTitle: a,
12
- sectionTitleNode: r,
13
- sectionBody: y,
14
- sectionActions: h,
15
- node: v,
16
- nodeRow: C,
17
- nodeRowActive: l,
18
- nodeLabel: p,
19
- nodeChevron: A,
20
- nodeChevronOpen: B,
21
- nodeChevronHidden: H,
22
- nodeActions: N,
23
- nodeChildren: O,
24
- nodeNested: T,
25
- iconSlot: g,
26
- slotIcon: w,
27
- slotChevron: R,
28
- slotChevronOpen: f,
29
- sectionBadge: b,
30
- nodeBadge: m,
31
- empty: I
1
+ import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
+ import { useState as h, useRef as M, useCallback as s, useEffect as R } from "react";
3
+ import { Pause as j, Play as B } from "lucide-react";
4
+ import { formatTime as m } from "./index184.mjs";
5
+ import o from "./index135.mjs";
6
+ const L = ({
7
+ src: g,
8
+ duration: v,
9
+ title: y,
10
+ className: w,
11
+ ...T
12
+ }) => {
13
+ const [c, f] = h(!1), [t, u] = h(0), [a, k] = h(v || 0), n = M(null), N = s(() => {
14
+ const e = n.current;
15
+ e && !isNaN(e.duration) && isFinite(e.duration) && k(e.duration);
16
+ }, []), b = s(() => {
17
+ const e = n.current;
18
+ e && u(e.currentTime);
19
+ }, []), C = s(() => {
20
+ f(!1), u(0);
21
+ }, []), D = s(() => {
22
+ const e = n.current;
23
+ e && (c ? e.pause() : e.play().catch(() => {
24
+ f(!1);
25
+ }), f(!c));
26
+ }, [c]), x = s(
27
+ (e) => {
28
+ const l = n.current;
29
+ if (!l || !a) return;
30
+ const d = e.currentTarget.getBoundingClientRect(), P = (e.clientX - d.left) / d.width * a;
31
+ l.currentTime = P, u(P);
32
+ },
33
+ [a]
34
+ ), A = s(
35
+ (e) => {
36
+ const l = n.current;
37
+ if (!l || !a) return;
38
+ const d = 5;
39
+ let i = t;
40
+ switch (e.key) {
41
+ case "ArrowRight":
42
+ case "ArrowUp":
43
+ e.preventDefault(), i = Math.min(t + d, a);
44
+ break;
45
+ case "ArrowLeft":
46
+ case "ArrowDown":
47
+ e.preventDefault(), i = Math.max(t - d, 0);
48
+ break;
49
+ case "Home":
50
+ e.preventDefault(), i = 0;
51
+ break;
52
+ case "End":
53
+ e.preventDefault(), i = a;
54
+ break;
55
+ default:
56
+ return;
57
+ }
58
+ l.currentTime = i, u(i);
59
+ },
60
+ [t, a]
61
+ ), E = a > 0 ? t / a * 100 : 0;
62
+ return R(() => () => {
63
+ const e = n.current;
64
+ e && e.pause();
65
+ }, []), /* @__PURE__ */ p(
66
+ "div",
67
+ {
68
+ className: [o.audioPlayer, w].filter(Boolean).join(" "),
69
+ ...T,
70
+ children: [
71
+ /* @__PURE__ */ r(
72
+ "audio",
73
+ {
74
+ ref: n,
75
+ src: g,
76
+ onLoadedMetadata: N,
77
+ onTimeUpdate: b,
78
+ onEnded: C,
79
+ preload: "metadata"
80
+ }
81
+ ),
82
+ /* @__PURE__ */ r(
83
+ "button",
84
+ {
85
+ className: o.audioPlayerButton,
86
+ onClick: D,
87
+ "aria-label": c ? "Pause" : "Play",
88
+ children: c ? /* @__PURE__ */ r(j, { size: 16 }) : /* @__PURE__ */ r(B, { size: 16 })
89
+ }
90
+ ),
91
+ /* @__PURE__ */ p("div", { className: o.audioPlayerProgress, children: [
92
+ y && /* @__PURE__ */ r("span", { className: o.attachmentPreviewName, children: y }),
93
+ /* @__PURE__ */ r(
94
+ "div",
95
+ {
96
+ className: o.audioPlayerTrack,
97
+ onClick: x,
98
+ onKeyDown: A,
99
+ role: "slider",
100
+ "aria-label": "Audio progress",
101
+ "aria-valuemin": 0,
102
+ "aria-valuemax": a,
103
+ "aria-valuenow": t,
104
+ "aria-valuetext": `${m(t)} of ${m(a)}`,
105
+ tabIndex: 0,
106
+ children: /* @__PURE__ */ r(
107
+ "div",
108
+ {
109
+ className: o.audioPlayerFill,
110
+ style: { width: `${E}%` }
111
+ }
112
+ )
113
+ }
114
+ ),
115
+ /* @__PURE__ */ p("div", { className: o.audioPlayerTime, children: [
116
+ /* @__PURE__ */ r("span", { children: m(t) }),
117
+ /* @__PURE__ */ r("span", { children: m(a) })
118
+ ] })
119
+ ] })
120
+ ]
121
+ }
122
+ );
32
123
  };
124
+ L.displayName = "ChatAudioPlayer";
33
125
  export {
34
- L as default,
35
- I as empty,
36
- n as footer,
37
- o as header,
38
- g as iconSlot,
39
- e as navTree,
40
- v as node,
41
- N as nodeActions,
42
- m as nodeBadge,
43
- A as nodeChevron,
44
- H as nodeChevronHidden,
45
- B as nodeChevronOpen,
46
- O as nodeChildren,
47
- p as nodeLabel,
48
- T as nodeNested,
49
- C as nodeRow,
50
- l as nodeRowActive,
51
- _ as section,
52
- h as sectionActions,
53
- b as sectionBadge,
54
- y as sectionBody,
55
- c as sectionChevron,
56
- d as sectionChevronOpen,
57
- i as sectionHeader,
58
- s as sectionHeaderNode,
59
- a as sectionTitle,
60
- r as sectionTitleNode,
61
- R as slotChevron,
62
- f as slotChevronOpen,
63
- w as slotIcon,
64
- t as treeContent
126
+ L as ChatAudioPlayer
65
127
  };
package/dist/index145.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_chat_ytosv_12",t="_header_ytosv_28",s="_headerAvatar_ytosv_38",o="_headerContent_ytosv_42",a="_headerTitle_ytosv_47",r="_headerSubtitle_ytosv_55",n="_headerActions_ytosv_62",i="_messages_ytosv_73",c="_messagesInner_ytosv_86",_="_message_ytosv_73",d="_messageUser_ytosv_124",m="_messageAssistant_ytosv_128",v="_messageContent_ytosv_129",l="_messageAvatar_ytosv_144",g="_messageAvatarUser_ytosv_158",b="_messageAvatarAssistant_ytosv_163",y="_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",S="_streamingCursor_ytosv_259",C="_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",M="_codeBlockLanguage_ytosv_512",z="_codeBlockCopy_ytosv_519",G="_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",re="_voiceRecorderDuration_ytosv_818",ne="_voiceRecorderLabel_ytosv_824",ie="_voiceRecorderWaveform_ytosv_829",ce="_voiceRecorderBar_ytosv_836",_e="_voiceRecorderActions_ytosv_866",de="_fileUpload_ytosv_872",me="_fileUploadDragging_ytosv_890",ve="_fileUploadIcon_ytosv_895",le="_fileUploadText_ytosv_900",ge="_fileUploadHint_ytosv_906",be="_attachmentPreview_ytosv_913",ye="_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",Se="_sidebarNewButton_ytosv_1055",Ce="_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",Me="_sidebarOpen_ytosv_1211",ze="_scrollToBottomWrapper_ytosv_1273",Ge="_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",rt="_messageReactionButton_ytosv_1434",nt="_messageReactionActive_ytosv_1454",it="_messageReactionsVisible_ytosv_1460",ct={chat:e,header:t,headerAvatar:s,headerContent:o,headerTitle:a,headerSubtitle:r,headerActions:n,messages:i,messagesInner:c,message:_,messageUser:d,messageAssistant:m,messageContent:v,messageAvatar:l,messageAvatarUser:g,messageAvatarAssistant:b,messageBubble:y,messageBubbleUser:u,messageBubbleAssistant:p,messageBubbleSystem:h,messageAttachments:B,messageFooter:I,messageTimestamp:A,messageStatus:P,messageStatusError:R,messageActions:w,streamingCursor:S,thinkingBubble:C,thinkingSpinner:k,inputContainer:f,inputWrapper:T,inputBox:U,inputActions:x,inputTextarea:D,inputButton:W,inputButtonPrimary:E,pendingAttachments:H,pendingAttachment:F,pendingAttachmentRemove:L,codeBlock:N,codeBlockHeader:O,codeBlockLanguage:M,codeBlockCopy:z,codeBlockCopied:G,codeBlockContent:V,markdown:j,markdownUser:q,imagePreview:J,imagePreviewImg:K,audioPlayer:Q,audioPlayerButton:X,audioPlayerProgress:Y,audioPlayerTrack:Z,audioPlayerFill:$,audioPlayerTime:ee,voiceRecorder:te,voiceRecorderButton:se,voiceRecorderButtonIdle:oe,voiceRecorderInfo:ae,voiceRecorderDuration:re,voiceRecorderLabel:ne,voiceRecorderWaveform:ie,voiceRecorderBar:ce,voiceRecorderActions:_e,fileUpload:de,fileUploadDragging:me,fileUploadIcon:ve,fileUploadText:le,fileUploadHint:ge,attachmentPreview:be,attachmentPreviewIcon:ye,attachmentPreviewInfo:ue,attachmentPreviewName:pe,attachmentPreviewMeta:he,attachmentPreviewRemove:Be,lightbox:Ie,lightboxImage:Ae,lightboxClose:Pe,sidebar:Re,sidebarHeader:we,sidebarNewButton:Se,sidebarSearch:Ce,sidebarSearchInput:ke,sidebarList:fe,sidebarItem:Te,sidebarItemActive:Ue,sidebarItemContent:xe,sidebarItemTitle:De,sidebarItemPreview:We,sidebarItemDelete:Ee,sidebarFooter:He,sidebarEmpty:Fe,sidebarEmptyIcon:Le,sidebarGroupHeader:Ne,sidebarCollapsed:Oe,sidebarOpen:Me,scrollToBottomWrapper:ze,scrollToBottomButton:Ge,inputSpinner:Ve,pendingAttachmentSize:je,voiceRecorderError:qe,headerAvatarDefault:Je,sidebarOverlay:Ke,sidebarNewButtonInner:Qe,sidebarCloseButton:Xe,sidebarSearchWrapper:Ye,sidebarSearchIcon:Ze,sidebarSearchInputWithIcon:$e,sidebarItemIcon:et,sidebarItemDate:tt,sidebarItemDeleteConfirm:st,messageRetry:ot,messageReactions:at,messageReactionButton:rt,messageReactionActive:nt,messageReactionsVisible:it};exports.attachmentPreview=be;exports.attachmentPreviewIcon=ye;exports.attachmentPreviewInfo=ue;exports.attachmentPreviewMeta=he;exports.attachmentPreviewName=pe;exports.attachmentPreviewRemove=Be;exports.audioPlayer=Q;exports.audioPlayerButton=X;exports.audioPlayerFill=$;exports.audioPlayerProgress=Y;exports.audioPlayerTime=ee;exports.audioPlayerTrack=Z;exports.chat=e;exports.codeBlock=N;exports.codeBlockContent=V;exports.codeBlockCopied=G;exports.codeBlockCopy=z;exports.codeBlockHeader=O;exports.codeBlockLanguage=M;exports.default=ct;exports.fileUpload=de;exports.fileUploadDragging=me;exports.fileUploadHint=ge;exports.fileUploadIcon=ve;exports.fileUploadText=le;exports.header=t;exports.headerActions=n;exports.headerAvatar=s;exports.headerAvatarDefault=Je;exports.headerContent=o;exports.headerSubtitle=r;exports.headerTitle=a;exports.imagePreview=J;exports.imagePreviewImg=K;exports.inputActions=x;exports.inputBox=U;exports.inputButton=W;exports.inputButtonPrimary=E;exports.inputContainer=f;exports.inputSpinner=Ve;exports.inputTextarea=D;exports.inputWrapper=T;exports.lightbox=Ie;exports.lightboxClose=Pe;exports.lightboxImage=Ae;exports.markdown=j;exports.markdownUser=q;exports.message=_;exports.messageActions=w;exports.messageAssistant=m;exports.messageAttachments=B;exports.messageAvatar=l;exports.messageAvatarAssistant=b;exports.messageAvatarUser=g;exports.messageBubble=y;exports.messageBubbleAssistant=p;exports.messageBubbleSystem=h;exports.messageBubbleUser=u;exports.messageContent=v;exports.messageFooter=I;exports.messageReactionActive=nt;exports.messageReactionButton=rt;exports.messageReactions=at;exports.messageReactionsVisible=it;exports.messageRetry=ot;exports.messageStatus=P;exports.messageStatusError=R;exports.messageTimestamp=A;exports.messageUser=d;exports.messages=i;exports.messagesInner=c;exports.pendingAttachment=F;exports.pendingAttachmentRemove=L;exports.pendingAttachmentSize=je;exports.pendingAttachments=H;exports.scrollToBottomButton=Ge;exports.scrollToBottomWrapper=ze;exports.sidebar=Re;exports.sidebarCloseButton=Xe;exports.sidebarCollapsed=Oe;exports.sidebarEmpty=Fe;exports.sidebarEmptyIcon=Le;exports.sidebarFooter=He;exports.sidebarGroupHeader=Ne;exports.sidebarHeader=we;exports.sidebarItem=Te;exports.sidebarItemActive=Ue;exports.sidebarItemContent=xe;exports.sidebarItemDate=tt;exports.sidebarItemDelete=Ee;exports.sidebarItemDeleteConfirm=st;exports.sidebarItemIcon=et;exports.sidebarItemPreview=We;exports.sidebarItemTitle=De;exports.sidebarList=fe;exports.sidebarNewButton=Se;exports.sidebarNewButtonInner=Qe;exports.sidebarOpen=Me;exports.sidebarOverlay=Ke;exports.sidebarSearch=Ce;exports.sidebarSearchIcon=Ze;exports.sidebarSearchInput=ke;exports.sidebarSearchInputWithIcon=$e;exports.sidebarSearchWrapper=Ye;exports.streamingCursor=S;exports.thinkingBubble=C;exports.thinkingSpinner=k;exports.voiceRecorder=te;exports.voiceRecorderActions=_e;exports.voiceRecorderBar=ce;exports.voiceRecorderButton=se;exports.voiceRecorderButtonIdle=oe;exports.voiceRecorderDuration=re;exports.voiceRecorderError=qe;exports.voiceRecorderInfo=ae;exports.voiceRecorderLabel=ne;exports.voiceRecorderWaveform=ie;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("lucide-react"),g=require("./index95.cjs"),b=require("./index184.cjs"),r=require("./index135.cjs"),t=({onRecordingComplete:s,onCancel:u,maxDuration:f=300,className:a,...d})=>{const{isRecording:o,duration:v,audioBlob:c,error:l,startRecording:R,stopRecording:j,cancelRecording:x,reset:n,isSupported:m}=g.useVoiceRecorder({maxDuration:f,onRecordingComplete:s,onError:B=>console.error("Recording error:",B)}),h=()=>{o?j():c?(s?.(c),n()):R()},N=()=>{x(),u?.()};return m?l?e.jsxs("div",{className:[r.default.voiceRecorder,a].filter(Boolean).join(" "),...d,children:[e.jsx("div",{className:r.default.voiceRecorderInfo,children:e.jsx("span",{className:[r.default.voiceRecorderLabel,r.default.voiceRecorderError].join(" "),children:l})}),e.jsx("button",{className:r.default.inputButton,onClick:n,"aria-label":"Try again",children:e.jsx(i.X,{size:20})})]}):e.jsxs("div",{className:[r.default.voiceRecorder,a].filter(Boolean).join(" "),...d,children:[e.jsx("button",{className:[r.default.voiceRecorderButton,!o&&!c&&r.default.voiceRecorderButtonIdle].filter(Boolean).join(" "),onClick:h,"aria-label":o?"Stop recording":c?"Send recording":"Start recording",children:o?e.jsx(i.Square,{size:20}):c?e.jsx(i.Send,{size:20}):e.jsx(i.Mic,{size:20})}),e.jsxs("div",{className:r.default.voiceRecorderInfo,children:[e.jsx("span",{className:r.default.voiceRecorderDuration,children:b.formatTime(v)}),e.jsx("span",{className:r.default.voiceRecorderLabel,children:o?"Recording...":c?"Recording ready":"Click to record"})]}),o&&e.jsxs("div",{className:r.default.voiceRecorderWaveform,children:[e.jsx("div",{className:r.default.voiceRecorderBar}),e.jsx("div",{className:r.default.voiceRecorderBar}),e.jsx("div",{className:r.default.voiceRecorderBar}),e.jsx("div",{className:r.default.voiceRecorderBar}),e.jsx("div",{className:r.default.voiceRecorderBar})]}),(o||c)&&e.jsx("div",{className:r.default.voiceRecorderActions,children:e.jsx("button",{className:r.default.inputButton,onClick:N,"aria-label":"Cancel recording",children:e.jsx(i.X,{size:20})})})]}):e.jsx("div",{className:[r.default.voiceRecorder,a].filter(Boolean).join(" "),...d,children:e.jsx("div",{className:r.default.voiceRecorderInfo,children:e.jsx("span",{className:r.default.voiceRecorderLabel,children:"Voice recording is not supported in this browser"})})})};t.displayName="ChatVoiceRecorder";exports.ChatVoiceRecorder=t;