@orion-ds/react 4.2.3 → 4.2.4

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 +30 -20
  74. package/dist/index101.cjs +1 -1
  75. package/dist/index101.mjs +40 -42
  76. package/dist/index102.cjs +1 -1
  77. package/dist/index102.mjs +44 -60
  78. package/dist/index103.cjs +1 -1
  79. package/dist/index103.mjs +24 -30
  80. package/dist/index104.cjs +1 -1
  81. package/dist/index104.mjs +12 -36
  82. package/dist/index105.cjs +1 -1
  83. package/dist/index105.mjs +44 -30
  84. package/dist/index106.cjs +1 -1
  85. package/dist/index106.mjs +22 -45
  86. package/dist/index107.cjs +1 -1
  87. package/dist/index107.mjs +38 -18
  88. package/dist/index108.cjs +1 -1
  89. package/dist/index108.mjs +14 -30
  90. package/dist/index109.cjs +1 -1
  91. package/dist/index109.mjs +18 -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 +27 -45
  96. package/dist/index111.cjs +1 -1
  97. package/dist/index111.mjs +30 -24
  98. package/dist/index112.cjs +1 -1
  99. package/dist/index112.mjs +52 -46
  100. package/dist/index113.cjs +1 -1
  101. package/dist/index113.mjs +37 -43
  102. package/dist/index114.cjs +1 -1
  103. package/dist/index114.mjs +28 -18
  104. package/dist/index115.cjs +1 -1
  105. package/dist/index115.mjs +40 -22
  106. package/dist/index116.cjs +1 -1
  107. package/dist/index116.mjs +46 -33
  108. package/dist/index117.cjs +1 -1
  109. package/dist/index117.mjs +28 -20
  110. package/dist/index118.cjs +1 -1
  111. package/dist/index118.mjs +22 -32
  112. package/dist/index119.cjs +1 -1
  113. package/dist/index119.mjs +28 -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 +62 -20
  118. package/dist/index121.cjs +1 -1
  119. package/dist/index121.mjs +32 -18
  120. package/dist/index122.cjs +1 -1
  121. package/dist/index122.mjs +45 -32
  122. package/dist/index123.cjs +1 -1
  123. package/dist/index123.mjs +28 -30
  124. package/dist/index124.cjs +1 -1
  125. package/dist/index124.mjs +33 -24
  126. package/dist/index125.cjs +1 -1
  127. package/dist/index125.mjs +38 -28
  128. package/dist/index126.cjs +1 -1
  129. package/dist/index126.mjs +32 -38
  130. package/dist/index127.cjs +1 -1
  131. package/dist/index127.mjs +42 -38
  132. package/dist/index128.cjs +1 -1
  133. package/dist/index128.mjs +40 -40
  134. package/dist/index129.cjs +1 -1
  135. package/dist/index129.mjs +30 -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 +62 -36
  140. package/dist/index131.cjs +1 -1
  141. package/dist/index131.mjs +106 -44
  142. package/dist/index132.cjs +1 -1
  143. package/dist/index132.mjs +57 -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 +30 -22
  148. package/dist/index135.cjs +1 -1
  149. package/dist/index135.mjs +18 -28
  150. package/dist/index136.cjs +1 -1
  151. package/dist/index136.mjs +52 -55
  152. package/dist/index137.cjs +1 -1
  153. package/dist/index137.mjs +30 -56
  154. package/dist/index138.cjs +1 -1
  155. package/dist/index138.mjs +28 -33
  156. package/dist/index139.cjs +1 -1
  157. package/dist/index139.mjs +42 -46
  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 +19 -37
  162. package/dist/index141.cjs +1 -1
  163. package/dist/index141.mjs +44 -28
  164. package/dist/index142.cjs +1 -1
  165. package/dist/index142.mjs +65 -67
  166. package/dist/index143.cjs +1 -1
  167. package/dist/index143.mjs +20 -52
  168. package/dist/index144.cjs +1 -1
  169. package/dist/index144.mjs +33 -62
  170. package/dist/index145.cjs +1 -1
  171. package/dist/index145.mjs +76 -234
  172. package/dist/index146.cjs +1 -1
  173. package/dist/index146.mjs +65 -34
  174. package/dist/index147.cjs +1 -1
  175. package/dist/index147.mjs +65 -44
  176. package/dist/index148.cjs +1 -1
  177. package/dist/index148.mjs +18 -170
  178. package/dist/index149.cjs +1 -1
  179. package/dist/index149.mjs +21 -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 +57 -29
  184. package/dist/index151.cjs +1 -1
  185. package/dist/index151.mjs +24 -90
  186. package/dist/index152.cjs +1 -1
  187. package/dist/index152.mjs +54 -53
  188. package/dist/index153.cjs +1 -1
  189. package/dist/index153.mjs +26 -66
  190. package/dist/index154.cjs +1 -1
  191. package/dist/index154.mjs +27 -124
  192. package/dist/index155.cjs +1 -1
  193. package/dist/index155.mjs +46 -108
  194. package/dist/index156.cjs +1 -1
  195. package/dist/index156.mjs +42 -111
  196. package/dist/index157.cjs +1 -1
  197. package/dist/index157.mjs +30 -122
  198. package/dist/index158.cjs +1 -1
  199. package/dist/index158.mjs +55 -214
  200. package/dist/index159.cjs +1 -1
  201. package/dist/index159.mjs +16 -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 +12 -57
  206. package/dist/index161.cjs +1 -1
  207. package/dist/index161.mjs +50 -27
  208. package/dist/index162.cjs +1 -1
  209. package/dist/index162.mjs +20 -28
  210. package/dist/index163.cjs +1 -1
  211. package/dist/index163.mjs +33 -18
  212. package/dist/index164.cjs +1 -1
  213. package/dist/index164.mjs +36 -24
  214. package/dist/index165.cjs +1 -1
  215. package/dist/index165.mjs +67 -50
  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 +16 -31
  220. package/dist/index168.cjs +1 -1
  221. package/dist/index168.mjs +234 -30
  222. package/dist/index169.cjs +1 -1
  223. package/dist/index169.mjs +34 -43
  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 +44 -13
  228. package/dist/index171.cjs +1 -1
  229. package/dist/index171.mjs +170 -44
  230. package/dist/index172.cjs +1 -1
  231. package/dist/index172.mjs +186 -41
  232. package/dist/index173.cjs +1 -1
  233. package/dist/index173.mjs +29 -29
  234. package/dist/index174.cjs +1 -1
  235. package/dist/index174.mjs +90 -76
  236. package/dist/index175.cjs +1 -1
  237. package/dist/index175.mjs +53 -107
  238. package/dist/index176.cjs +1 -1
  239. package/dist/index176.mjs +66 -26
  240. package/dist/index177.cjs +1 -1
  241. package/dist/index177.mjs +124 -30
  242. package/dist/index178.cjs +1 -1
  243. package/dist/index178.mjs +108 -12
  244. package/dist/index179.cjs +1 -1
  245. package/dist/index179.mjs +111 -18
  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 +122 -53
  250. package/dist/index181.cjs +1 -1
  251. package/dist/index181.mjs +214 -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 +36 -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 +141 -1
  382. package/package.json +1 -1
  383. package/dist/react.css +0 -1
package/dist/index146.mjs CHANGED
@@ -1,36 +1,67 @@
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 })
23
- }
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";
1
+ const r = "_userMenu_3rj9n_8", e = "_userMenuFullWidth_3rj9n_14", n = "_trigger_3rj9n_19", t = "_triggerCompact_3rj9n_44", o = "_avatar_3rj9n_48", _ = "_avatarImage_3rj9n_61", a = "_avatarInitials_3rj9n_67", i = "_statusIndicator_3rj9n_75", s = "_triggerInfo_3rj9n_85", d = "_triggerName_3rj9n_95", c = "_triggerRole_3rj9n_106", g = "_chevron_3rj9n_116", m = "_chevronOpen_3rj9n_123", j = "_dropdown_3rj9n_131", h = "_dropdownOpen_3rj9n_147", p = "_dropdownStart_3rj9n_153", l = "_header_3rj9n_162", u = "_headerAvatar_3rj9n_170", v = "_headerInfo_3rj9n_186", I = "_headerName_3rj9n_193", w = "_headerEmail_3rj9n_201", f = "_section_3rj9n_215", b = "_sectionLabel_3rj9n_219", D = "_divider_3rj9n_229", M = "_item_3rj9n_239", N = "_itemIcon_3rj9n_260", O = "_itemDanger_3rj9n_268", S = "_itemDisabled_3rj9n_276", A = "_dropdownTop_3rj9n_290", B = "_itemShortcut_3rj9n_301", C = "_itemBadge_3rj9n_310", E = {
2
+ userMenu: r,
3
+ userMenuFullWidth: e,
4
+ trigger: n,
5
+ triggerCompact: t,
6
+ avatar: o,
7
+ avatarImage: _,
8
+ avatarInitials: a,
9
+ statusIndicator: i,
10
+ triggerInfo: s,
11
+ triggerName: d,
12
+ triggerRole: c,
13
+ chevron: g,
14
+ chevronOpen: m,
15
+ dropdown: j,
16
+ dropdownOpen: h,
17
+ dropdownStart: p,
18
+ header: l,
19
+ headerAvatar: u,
20
+ headerInfo: v,
21
+ headerName: I,
22
+ headerEmail: w,
23
+ section: f,
24
+ sectionLabel: b,
25
+ divider: D,
26
+ item: M,
27
+ itemIcon: N,
28
+ itemDanger: O,
29
+ itemDisabled: S,
30
+ dropdownTop: A,
31
+ itemShortcut: B,
32
+ itemBadge: C
33
+ };
34
34
  export {
35
- o as ChatHeader
35
+ o as avatar,
36
+ _ as avatarImage,
37
+ a as avatarInitials,
38
+ g as chevron,
39
+ m as chevronOpen,
40
+ E as default,
41
+ D as divider,
42
+ j as dropdown,
43
+ h as dropdownOpen,
44
+ p as dropdownStart,
45
+ A as dropdownTop,
46
+ l as header,
47
+ u as headerAvatar,
48
+ w as headerEmail,
49
+ v as headerInfo,
50
+ I as headerName,
51
+ M as item,
52
+ C as itemBadge,
53
+ O as itemDanger,
54
+ S as itemDisabled,
55
+ N as itemIcon,
56
+ B as itemShortcut,
57
+ f as section,
58
+ b as sectionLabel,
59
+ i as statusIndicator,
60
+ n as trigger,
61
+ t as triggerCompact,
62
+ s as triggerInfo,
63
+ d as triggerName,
64
+ c as triggerRole,
65
+ r as userMenu,
66
+ e as userMenuFullWidth
36
67
  };
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.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_fileUploader_elcmy_8",o="_dropzone_elcmy_18",l="_dropzoneDragging_elcmy_40",r="_dropzoneDisabled_elcmy_45",n="_dropzoneError_elcmy_55",t="_input_elcmy_59",i="_dropzoneContent_elcmy_63",c="_dropzoneIcon_elcmy_71",_="_dropzonePlaceholder_elcmy_82",s="_dropzoneHints_elcmy_90",p="_dropzoneHint_elcmy_90",f="_helperText_elcmy_107",a="_helperTextError_elcmy_113",d="_fileList_elcmy_121",m="_fileItem_elcmy_130",z="_fileIcon_elcmy_139",y="_filePreview_elcmy_152",u="_fileInfo_elcmy_158",S="_fileName_elcmy_166",g="_fileSize_elcmy_176",I="_fileStatus_elcmy_182",h="_progressBar_elcmy_188",E="_progressFill_elcmy_196",v="_fileStatusIcon_elcmy_202",P="_spin_elcmy_1",T="_fileStatusSuccess_elcmy_207",x="_fileStatusError_elcmy_211",D="_fileRemove_elcmy_221",H="_minimal_elcmy_246",b="_card_elcmy_258",w="_compact_elcmy_273",B={fileUploader:e,dropzone:o,dropzoneDragging:l,dropzoneDisabled:r,dropzoneError:n,input:t,dropzoneContent:i,dropzoneIcon:c,dropzonePlaceholder:_,dropzoneHints:s,dropzoneHint:p,helperText:f,helperTextError:a,fileList:d,fileItem:m,fileIcon:z,filePreview:y,fileInfo:u,fileName:S,fileSize:g,fileStatus:I,progressBar:h,progressFill:E,fileStatusIcon:v,spin:P,fileStatusSuccess:T,fileStatusError:x,fileRemove:D,minimal:H,card:b,compact:w};exports.card=b;exports.compact=w;exports.default=B;exports.dropzone=o;exports.dropzoneContent=i;exports.dropzoneDisabled=r;exports.dropzoneDragging=l;exports.dropzoneError=n;exports.dropzoneHint=p;exports.dropzoneHints=s;exports.dropzoneIcon=c;exports.dropzonePlaceholder=_;exports.fileIcon=z;exports.fileInfo=u;exports.fileItem=m;exports.fileList=d;exports.fileName=S;exports.filePreview=y;exports.fileRemove=D;exports.fileSize=g;exports.fileStatus=I;exports.fileStatusError=x;exports.fileStatusIcon=v;exports.fileStatusSuccess=T;exports.fileUploader=e;exports.helperText=f;exports.helperTextError=a;exports.input=t;exports.minimal=H;exports.progressBar=h;exports.progressFill=E;exports.spin=P;
package/dist/index147.mjs CHANGED
@@ -1,46 +1,67 @@
1
- import { jsxs as p, jsx as s } from "react/jsx-runtime";
2
- import { forwardRef as f } from "react";
3
- import { ArrowDown as u } from "lucide-react";
4
- import { useAutoScroll as g } from "./index84.mjs";
5
- import e from "./index145.mjs";
6
- import { Button as h } from "./index14.mjs";
7
- const B = f(
8
- ({ children: r, autoScroll: a = !0, className: l, ...i }, o) => {
9
- const { scrollRef: m, isAtBottom: n, scrollToBottom: c } = g({
10
- enabled: a
11
- });
12
- return /* @__PURE__ */ p(
13
- "div",
14
- {
15
- ref: (t) => {
16
- m.current = t, typeof o == "function" ? o(t) : o && (o.current = t);
17
- },
18
- className: [e.messages, l].filter(Boolean).join(" "),
19
- role: "log",
20
- "aria-live": "polite",
21
- "aria-label": "Chat messages",
22
- "aria-relevant": "additions",
23
- ...i,
24
- children: [
25
- /* @__PURE__ */ s("div", { className: e.messagesInner, children: r }),
26
- !n && /* @__PURE__ */ s("div", { className: e.scrollToBottomWrapper, children: /* @__PURE__ */ s(
27
- h,
28
- {
29
- variant: "secondary",
30
- size: "sm",
31
- iconOnly: !0,
32
- icon: /* @__PURE__ */ s(u, { size: 18 }),
33
- onClick: c,
34
- "aria-label": "Scroll to latest messages",
35
- className: e.scrollToBottomButton
36
- }
37
- ) })
38
- ]
39
- }
40
- );
41
- }
42
- );
43
- B.displayName = "ChatMessages";
1
+ const e = "_fileUploader_elcmy_8", o = "_dropzone_elcmy_18", l = "_dropzoneDragging_elcmy_40", n = "_dropzoneDisabled_elcmy_45", _ = "_dropzoneError_elcmy_55", r = "_input_elcmy_59", c = "_dropzoneContent_elcmy_63", t = "_dropzoneIcon_elcmy_71", s = "_dropzonePlaceholder_elcmy_82", i = "_dropzoneHints_elcmy_90", p = "_dropzoneHint_elcmy_90", m = "_helperText_elcmy_107", f = "_helperTextError_elcmy_113", a = "_fileList_elcmy_121", d = "_fileItem_elcmy_130", y = "_fileIcon_elcmy_139", z = "_filePreview_elcmy_152", u = "_fileInfo_elcmy_158", S = "_fileName_elcmy_166", g = "_fileSize_elcmy_176", I = "_fileStatus_elcmy_182", h = "_progressBar_elcmy_188", E = "_progressFill_elcmy_196", x = "_fileStatusIcon_elcmy_202", v = "_spin_elcmy_1", D = "_fileStatusSuccess_elcmy_207", H = "_fileStatusError_elcmy_211", P = "_fileRemove_elcmy_221", T = "_minimal_elcmy_246", b = "_card_elcmy_258", w = "_compact_elcmy_273", B = {
2
+ fileUploader: e,
3
+ dropzone: o,
4
+ dropzoneDragging: l,
5
+ dropzoneDisabled: n,
6
+ dropzoneError: _,
7
+ input: r,
8
+ dropzoneContent: c,
9
+ dropzoneIcon: t,
10
+ dropzonePlaceholder: s,
11
+ dropzoneHints: i,
12
+ dropzoneHint: p,
13
+ helperText: m,
14
+ helperTextError: f,
15
+ fileList: a,
16
+ fileItem: d,
17
+ fileIcon: y,
18
+ filePreview: z,
19
+ fileInfo: u,
20
+ fileName: S,
21
+ fileSize: g,
22
+ fileStatus: I,
23
+ progressBar: h,
24
+ progressFill: E,
25
+ fileStatusIcon: x,
26
+ spin: v,
27
+ fileStatusSuccess: D,
28
+ fileStatusError: H,
29
+ fileRemove: P,
30
+ minimal: T,
31
+ card: b,
32
+ compact: w
33
+ };
44
34
  export {
45
- B as ChatMessages
35
+ b as card,
36
+ w as compact,
37
+ B as default,
38
+ o as dropzone,
39
+ c as dropzoneContent,
40
+ n as dropzoneDisabled,
41
+ l as dropzoneDragging,
42
+ _ as dropzoneError,
43
+ p as dropzoneHint,
44
+ i as dropzoneHints,
45
+ t as dropzoneIcon,
46
+ s as dropzonePlaceholder,
47
+ y as fileIcon,
48
+ u as fileInfo,
49
+ d as fileItem,
50
+ a as fileList,
51
+ S as fileName,
52
+ z as filePreview,
53
+ P as fileRemove,
54
+ g as fileSize,
55
+ I as fileStatus,
56
+ H as fileStatusError,
57
+ x as fileStatusIcon,
58
+ D as fileStatusSuccess,
59
+ e as fileUploader,
60
+ m as helperText,
61
+ f as helperTextError,
62
+ r as input,
63
+ T as minimal,
64
+ h as progressBar,
65
+ E as progressFill,
66
+ v as spin
46
67
  };
package/dist/index148.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),t=require("lucide-react"),p=require("./index152.cjs"),y=require("./index157.cjs"),e=require("./index145.cjs"),R=a=>a?new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}).format(a):"",S=a=>{switch(a){case"sending":return s.jsx(t.Clock,{size:12});case"sent":return s.jsx(t.Check,{size:12});case"error":return s.jsx(t.AlertCircle,{size:12});default:return null}},b=({role:a,content:u,timestamp:m,status:i,attachments:d,avatar:C,showAvatar:N,actions:c,isStreaming:k,onImageClick:f,onRetry:g,reaction:l,onReaction:o,children:j,className:h,...x})=>{const r=a==="user",A=a==="system",v=a==="assistant",B=N??!1;return A?s.jsx("div",{className:[e.default.message,h].filter(Boolean).join(" "),role:"listitem",...x,children:s.jsx("div",{className:e.default.messageContent,children:s.jsx("div",{className:e.default.messageBubbleSystem,children:j||u})})}):s.jsxs("div",{className:[e.default.message,r&&e.default.messageUser,v&&e.default.messageAssistant,h].filter(Boolean).join(" "),role:"listitem",...x,children:[B&&s.jsx("div",{className:[e.default.messageAvatar,r?e.default.messageAvatarUser:e.default.messageAvatarAssistant].filter(Boolean).join(" "),"aria-hidden":"true",children:C||(r?s.jsx(t.User,{size:18}):s.jsx(t.Bot,{size:18}))}),s.jsxs("div",{className:e.default.messageContent,children:[s.jsxs("div",{className:[e.default.messageBubble,r?e.default.messageBubbleUser:e.default.messageBubbleAssistant].filter(Boolean).join(" "),children:[j||s.jsx(p.ChatMarkdown,{content:u,className:r?e.default.markdownUser:void 0}),k&&s.jsx("span",{className:e.default.streamingCursor})]}),d&&d.length>0&&s.jsx("div",{className:e.default.messageAttachments,children:d.map(n=>s.jsx(y.ChatAttachment,{attachment:n,onClick:n.type==="image"&&f?()=>f(n):void 0},n.id))}),s.jsxs("div",{className:e.default.messageFooter,children:[m&&s.jsx("span",{className:e.default.messageTimestamp,children:R(m)}),i&&s.jsxs("span",{className:[e.default.messageStatus,i==="error"&&e.default.messageStatusError].filter(Boolean).join(" "),children:[S(i),i==="error"&&"Failed to send"]}),i==="error"&&g&&s.jsxs("button",{className:e.default.messageRetry,onClick:g,"aria-label":"Retry sending message",children:[s.jsx(t.RotateCcw,{size:12}),"Retry"]}),c&&s.jsx("div",{className:e.default.messageActions,children:c}),v&&o&&s.jsxs("div",{className:[e.default.messageReactions,l&&e.default.messageReactionsVisible].filter(Boolean).join(" "),children:[s.jsx("button",{className:[e.default.messageReactionButton,l==="like"&&e.default.messageReactionActive].filter(Boolean).join(" "),onClick:()=>o("like"),"aria-label":"Like this response","aria-pressed":l==="like",children:s.jsx(t.ThumbsUp,{size:14})}),s.jsx("button",{className:[e.default.messageReactionButton,l==="dislike"&&e.default.messageReactionActive].filter(Boolean).join(" "),onClick:()=>o("dislike"),"aria-label":"Dislike this response","aria-pressed":l==="dislike",children:s.jsx(t.ThumbsDown,{size:14})})]})]})]})]})};b.displayName="ChatMessage";exports.ChatMessage=b;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_container_1eh9k_8",e="_tabList_1eh9k_15",a="_fullWidth_1eh9k_31",n="_tab_1eh9k_15",_="_active_1eh9k_89",i="_icon_1eh9k_99",c="_badge_1eh9k_106",o="_panel_1eh9k_126",l={container:t,tabList:e,fullWidth:a,tab:n,active:_,icon:i,badge:c,panel:o};exports.active=_;exports.badge=c;exports.container=t;exports.default=l;exports.fullWidth=a;exports.icon=i;exports.panel=o;exports.tab=n;exports.tabList=e;
package/dist/index148.mjs CHANGED
@@ -1,173 +1,21 @@
1
- import { jsx as s, jsxs as i } from "react/jsx-runtime";
2
- import { User as j, Bot as y, RotateCcw as z, ThumbsUp as U, ThumbsDown as w, AlertCircle as R, Check as S, Clock as T } from "lucide-react";
3
- import { ChatMarkdown as x } from "./index152.mjs";
4
- import { ChatAttachment as D } from "./index157.mjs";
5
- import e from "./index145.mjs";
6
- const F = (a) => a ? new Intl.DateTimeFormat("en-US", {
7
- hour: "numeric",
8
- minute: "2-digit",
9
- hour12: !0
10
- }).format(a) : "", M = (a) => {
11
- switch (a) {
12
- case "sending":
13
- return /* @__PURE__ */ s(T, { size: 12 });
14
- case "sent":
15
- return /* @__PURE__ */ s(S, { size: 12 });
16
- case "error":
17
- return /* @__PURE__ */ s(R, { size: 12 });
18
- default:
19
- return null;
20
- }
21
- }, E = ({
22
- role: a,
23
- content: c,
24
- timestamp: d,
25
- status: r,
26
- attachments: o,
27
- avatar: b,
28
- showAvatar: k,
29
- actions: g,
30
- isStreaming: B,
31
- onImageClick: u,
32
- onRetry: h,
33
- reaction: l,
34
- onReaction: m,
35
- children: f,
36
- className: v,
37
- ...p
38
- }) => {
39
- const t = a === "user", A = a === "system", N = a === "assistant", C = k ?? !1;
40
- return A ? /* @__PURE__ */ s(
41
- "div",
42
- {
43
- className: [e.message, v].filter(Boolean).join(" "),
44
- role: "listitem",
45
- ...p,
46
- children: /* @__PURE__ */ s("div", { className: e.messageContent, children: /* @__PURE__ */ s("div", { className: e.messageBubbleSystem, children: f || c }) })
47
- }
48
- ) : /* @__PURE__ */ i(
49
- "div",
50
- {
51
- className: [
52
- e.message,
53
- t && e.messageUser,
54
- N && e.messageAssistant,
55
- v
56
- ].filter(Boolean).join(" "),
57
- role: "listitem",
58
- ...p,
59
- children: [
60
- C && /* @__PURE__ */ s(
61
- "div",
62
- {
63
- className: [
64
- e.messageAvatar,
65
- t ? e.messageAvatarUser : e.messageAvatarAssistant
66
- ].filter(Boolean).join(" "),
67
- "aria-hidden": "true",
68
- children: b || (t ? /* @__PURE__ */ s(j, { size: 18 }) : /* @__PURE__ */ s(y, { size: 18 }))
69
- }
70
- ),
71
- /* @__PURE__ */ i("div", { className: e.messageContent, children: [
72
- /* @__PURE__ */ i(
73
- "div",
74
- {
75
- className: [
76
- e.messageBubble,
77
- t ? e.messageBubbleUser : e.messageBubbleAssistant
78
- ].filter(Boolean).join(" "),
79
- children: [
80
- f || /* @__PURE__ */ s(
81
- x,
82
- {
83
- content: c,
84
- className: t ? e.markdownUser : void 0
85
- }
86
- ),
87
- B && /* @__PURE__ */ s("span", { className: e.streamingCursor })
88
- ]
89
- }
90
- ),
91
- o && o.length > 0 && /* @__PURE__ */ s("div", { className: e.messageAttachments, children: o.map((n) => /* @__PURE__ */ s(
92
- D,
93
- {
94
- attachment: n,
95
- onClick: n.type === "image" && u ? () => u(n) : void 0
96
- },
97
- n.id
98
- )) }),
99
- /* @__PURE__ */ i("div", { className: e.messageFooter, children: [
100
- d && /* @__PURE__ */ s("span", { className: e.messageTimestamp, children: F(d) }),
101
- r && /* @__PURE__ */ i(
102
- "span",
103
- {
104
- className: [
105
- e.messageStatus,
106
- r === "error" && e.messageStatusError
107
- ].filter(Boolean).join(" "),
108
- children: [
109
- M(r),
110
- r === "error" && "Failed to send"
111
- ]
112
- }
113
- ),
114
- r === "error" && h && /* @__PURE__ */ i(
115
- "button",
116
- {
117
- className: e.messageRetry,
118
- onClick: h,
119
- "aria-label": "Retry sending message",
120
- children: [
121
- /* @__PURE__ */ s(z, { size: 12 }),
122
- "Retry"
123
- ]
124
- }
125
- ),
126
- g && /* @__PURE__ */ s("div", { className: e.messageActions, children: g }),
127
- N && m && /* @__PURE__ */ i(
128
- "div",
129
- {
130
- className: [
131
- e.messageReactions,
132
- l && e.messageReactionsVisible
133
- ].filter(Boolean).join(" "),
134
- children: [
135
- /* @__PURE__ */ s(
136
- "button",
137
- {
138
- className: [
139
- e.messageReactionButton,
140
- l === "like" && e.messageReactionActive
141
- ].filter(Boolean).join(" "),
142
- onClick: () => m("like"),
143
- "aria-label": "Like this response",
144
- "aria-pressed": l === "like",
145
- children: /* @__PURE__ */ s(U, { size: 14 })
146
- }
147
- ),
148
- /* @__PURE__ */ s(
149
- "button",
150
- {
151
- className: [
152
- e.messageReactionButton,
153
- l === "dislike" && e.messageReactionActive
154
- ].filter(Boolean).join(" "),
155
- onClick: () => m("dislike"),
156
- "aria-label": "Dislike this response",
157
- "aria-pressed": l === "dislike",
158
- children: /* @__PURE__ */ s(w, { size: 14 })
159
- }
160
- )
161
- ]
162
- }
163
- )
164
- ] })
165
- ] })
166
- ]
167
- }
168
- );
1
+ const t = "_container_1eh9k_8", _ = "_tabList_1eh9k_15", e = "_fullWidth_1eh9k_31", n = "_tab_1eh9k_15", a = "_active_1eh9k_89", c = "_icon_1eh9k_99", o = "_badge_1eh9k_106", i = "_panel_1eh9k_126", s = {
2
+ container: t,
3
+ tabList: _,
4
+ fullWidth: e,
5
+ tab: n,
6
+ active: a,
7
+ icon: c,
8
+ badge: o,
9
+ panel: i
169
10
  };
170
- E.displayName = "ChatMessage";
171
11
  export {
172
- E as ChatMessage
12
+ a as active,
13
+ o as badge,
14
+ t as container,
15
+ s as default,
16
+ e as fullWidth,
17
+ c as icon,
18
+ i as panel,
19
+ n as tab,
20
+ _ as tabList
173
21
  };
package/dist/index149.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),o=require("lucide-react"),_=require("./index85.cjs"),$=require("./index155.cjs"),E=require("./index184.cjs"),a=require("./index145.cjs"),X=m=>m.type.startsWith("image/")?e.jsx(o.Image,{size:14}):e.jsx(o.File,{size:14}),y=l.forwardRef(({onSend:m,placeholder:R="Type a message...",allowAttachments:N=!0,allowVoiceRecording:S=!0,allowAudioUpload:G=!0,disabled:i=!1,maxLength:f,acceptedFileTypes:k=["image/*","audio/*",".pdf",".doc",".docx",".txt"],isLoading:s=!1,pendingAttachments:z,onRemoveAttachment:I,className:q,...w},r)=>{const[j,h]=l.useState(!1),u=l.useRef(null),{value:x,setValue:B,attachments:D,addAttachments:c,removeAttachment:F,handleSubmit:g,handleKeyDown:V,textareaRef:C,isEmpty:P}=_.useChatInput({maxLength:f,onSend:m,disabled:i||s}),d=z||D,M=I||F,T=l.useCallback(t=>{C.current=t,typeof r=="function"?r(t):r&&(r.current=t)},[r,C]),W=l.useCallback(t=>{const n=t.target.files;n&&n.length>0&&c(Array.from(n)),u.current&&(u.current.value="")},[c]),K=l.useCallback(t=>{const n=t.clipboardData.items,p=[];for(const v of n)if(v.type.startsWith("image/")){const A=v.getAsFile();A&&p.push(A)}p.length>0&&(t.preventDefault(),c(p))},[c]),O=l.useCallback(t=>{const n=Object.assign(t,{name:`voice-${Date.now()}.webm`,lastModified:Date.now()});c([n]),h(!1)},[c]),U=l.useCallback(()=>{i||s||g()},[i,s,g]),b=!P||d.length>0;return e.jsx("div",{className:[a.default.inputContainer,q].filter(Boolean).join(" "),children:e.jsxs("div",{className:a.default.inputWrapper,children:[d.length>0&&e.jsx("div",{className:a.default.pendingAttachments,children:d.map((t,n)=>e.jsxs("div",{className:a.default.pendingAttachment,children:[X(t),e.jsx("span",{children:t.name}),e.jsxs("span",{className:a.default.pendingAttachmentSize,children:["(",E.formatFileSize(t.size),")"]}),e.jsx("button",{className:a.default.pendingAttachmentRemove,onClick:()=>M(n),"aria-label":`Remove ${t.name}`,children:e.jsx(o.X,{size:14})})]},n))}),j&&e.jsx($.ChatVoiceRecorder,{onRecordingComplete:O,onCancel:()=>h(!1)}),!j&&e.jsxs("div",{className:a.default.inputBox,children:[N&&e.jsxs("div",{className:a.default.inputActions,children:[e.jsx("input",{ref:u,type:"file",accept:k.join(","),multiple:!0,onChange:W,style:{display:"none"},"aria-hidden":"true"}),e.jsx("button",{className:a.default.inputButton,onClick:()=>u.current?.click(),disabled:i||s,"aria-label":"Attach file",title:"Attach file",children:e.jsx(o.Paperclip,{size:20})})]}),e.jsx("textarea",{ref:T,className:a.default.inputTextarea,value:x,onChange:t=>B(t.target.value),onKeyDown:V,onPaste:K,placeholder:R,disabled:i||s,maxLength:f,rows:1,"aria-label":"Message input",...w}),e.jsxs("div",{className:a.default.inputActions,children:[S&&!x&&d.length===0&&e.jsx("button",{className:a.default.inputButton,onClick:()=>h(!0),disabled:i||s,"aria-label":"Record voice message",title:"Record voice message",children:e.jsx(o.Mic,{size:20})}),e.jsx("button",{className:[a.default.inputButton,b&&a.default.inputButtonPrimary].filter(Boolean).join(" "),onClick:U,disabled:i||s||!b,"aria-label":"Send message",title:"Send message",children:s?e.jsx("span",{className:a.default.inputSpinner}):e.jsx(o.Send,{size:20})})]})]})]})})});y.displayName="ChatInput";exports.ChatInput=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_skeleton_1gy8f_9",n="_text_1gy8f_18",t="_circular_1gy8f_24",_="_rectangular_1gy8f_28",s="_rounded_1gy8f_32",l="_pulse_1gy8f_40",o="_wave_1gy8f_44",r="_none_1gy8f_65",c="_lines_1gy8f_92",u={skeleton:e,text:n,circular:t,rectangular:_,rounded:s,pulse:l,wave:o,none:r,lines:c};exports.circular=t;exports.default=u;exports.lines=c;exports.none=r;exports.pulse=l;exports.rectangular=_;exports.rounded=s;exports.skeleton=e;exports.text=n;exports.wave=o;
package/dist/index149.mjs CHANGED
@@ -1,188 +1,23 @@
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 "./index155.mjs";
6
- import { formatFileSize as L } from "./index184.mjs";
7
- import n from "./index145.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";
1
+ const e = "_skeleton_1gy8f_9", n = "_text_1gy8f_18", _ = "_circular_1gy8f_24", t = "_rectangular_1gy8f_28", s = "_rounded_1gy8f_32", o = "_pulse_1gy8f_40", c = "_wave_1gy8f_44", l = "_none_1gy8f_65", r = "_lines_1gy8f_92", a = {
2
+ skeleton: e,
3
+ text: n,
4
+ circular: _,
5
+ rectangular: t,
6
+ rounded: s,
7
+ pulse: o,
8
+ wave: c,
9
+ none: l,
10
+ lines: r
11
+ };
186
12
  export {
187
- te as ChatInput
13
+ _ as circular,
14
+ a as default,
15
+ r as lines,
16
+ l as none,
17
+ o as pulse,
18
+ t as rectangular,
19
+ s as rounded,
20
+ e as skeleton,
21
+ n as text,
22
+ c as wave
188
23
  };