@orion-ds/react 4.6.6 → 4.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/dist/index110.cjs +1 -1
  2. package/dist/index110.mjs +1 -1
  3. package/dist/index111.cjs +1 -1
  4. package/dist/index111.mjs +4 -4
  5. package/dist/index112.cjs +1 -1
  6. package/dist/index112.mjs +2 -2
  7. package/dist/index113.cjs +1 -1
  8. package/dist/index113.mjs +4 -4
  9. package/dist/index115.cjs +1 -1
  10. package/dist/index115.mjs +1 -1
  11. package/dist/index116.cjs +1 -1
  12. package/dist/index116.mjs +1 -1
  13. package/dist/index117.cjs +1 -1
  14. package/dist/index117.mjs +1 -1
  15. package/dist/index118.cjs +1 -1
  16. package/dist/index118.mjs +1 -1
  17. package/dist/index119.cjs +1 -1
  18. package/dist/index119.mjs +1 -1
  19. package/dist/index120.cjs +1 -1
  20. package/dist/index120.mjs +2 -2
  21. package/dist/index121.cjs +1 -1
  22. package/dist/index121.mjs +1 -1
  23. package/dist/index122.cjs +1 -1
  24. package/dist/index122.mjs +1 -1
  25. package/dist/index123.cjs +1 -1
  26. package/dist/index123.mjs +1 -1
  27. package/dist/index124.cjs +1 -1
  28. package/dist/index124.mjs +3 -3
  29. package/dist/index125.cjs +1 -1
  30. package/dist/index125.mjs +1 -1
  31. package/dist/index126.cjs +1 -1
  32. package/dist/index126.mjs +2 -2
  33. package/dist/index127.cjs +1 -1
  34. package/dist/index127.mjs +2 -2
  35. package/dist/index128.cjs +1 -1
  36. package/dist/index128.mjs +1 -1
  37. package/dist/index129.cjs +1 -1
  38. package/dist/index129.mjs +1 -1
  39. package/dist/index130.cjs +1 -1
  40. package/dist/index130.mjs +1 -1
  41. package/dist/index131.cjs +1 -1
  42. package/dist/index131.mjs +1 -1
  43. package/dist/index132.cjs +1 -1
  44. package/dist/index132.mjs +3 -3
  45. package/dist/index133.cjs +1 -1
  46. package/dist/index133.mjs +4 -4
  47. package/dist/index134.cjs +1 -1
  48. package/dist/index134.mjs +1 -1
  49. package/dist/index135.cjs +1 -1
  50. package/dist/index135.mjs +1 -1
  51. package/dist/index136.cjs +1 -1
  52. package/dist/index136.mjs +2 -2
  53. package/dist/index137.cjs +1 -1
  54. package/dist/index137.mjs +3 -3
  55. package/dist/index139.cjs +1 -1
  56. package/dist/index139.mjs +3 -3
  57. package/dist/index140.cjs +1 -1
  58. package/dist/index140.mjs +1 -1
  59. package/dist/index141.cjs +1 -1
  60. package/dist/index141.mjs +2 -2
  61. package/dist/index142.cjs +1 -1
  62. package/dist/index142.mjs +1 -1
  63. package/dist/index143.cjs +1 -1
  64. package/dist/index143.mjs +2 -2
  65. package/dist/index144.cjs +1 -1
  66. package/dist/index144.mjs +2 -2
  67. package/dist/index145.cjs +1 -1
  68. package/dist/index145.mjs +1 -1
  69. package/dist/index147.cjs +1 -1
  70. package/dist/index147.mjs +37 -41
  71. package/dist/index148.cjs +1 -1
  72. package/dist/index148.mjs +28 -14
  73. package/dist/index149.cjs +1 -1
  74. package/dist/index149.mjs +20 -62
  75. package/dist/index150.cjs +1 -1
  76. package/dist/index150.mjs +18 -38
  77. package/dist/index151.cjs +1 -1
  78. package/dist/index151.mjs +28 -46
  79. package/dist/index152.cjs +1 -1
  80. package/dist/index152.mjs +234 -24
  81. package/dist/index153.cjs +1 -1
  82. package/dist/index153.mjs +34 -31
  83. package/dist/index154.cjs +1 -1
  84. package/dist/index154.mjs +44 -37
  85. package/dist/index155.cjs +1 -1
  86. package/dist/index155.mjs +170 -52
  87. package/dist/index156.cjs +1 -1
  88. package/dist/index156.mjs +186 -13
  89. package/dist/index157.cjs +1 -1
  90. package/dist/index157.mjs +29 -28
  91. package/dist/index158.cjs +1 -1
  92. package/dist/index158.mjs +90 -30
  93. package/dist/index159.cjs +1 -1
  94. package/dist/index159.mjs +53 -66
  95. package/dist/index160.cjs +1 -1
  96. package/dist/index160.mjs +66 -40
  97. package/dist/index161.cjs +1 -1
  98. package/dist/index161.mjs +124 -44
  99. package/dist/index162.cjs +1 -1
  100. package/dist/index162.mjs +108 -16
  101. package/dist/index163.cjs +1 -1
  102. package/dist/index163.mjs +111 -42
  103. package/dist/index164.cjs +1 -1
  104. package/dist/index164.mjs +122 -24
  105. package/dist/index165.cjs +1 -1
  106. package/dist/index165.mjs +214 -18
  107. package/dist/index166.cjs +1 -1
  108. package/dist/index166.mjs +62 -57
  109. package/dist/index167.cjs +1 -1
  110. package/dist/index167.mjs +30 -30
  111. package/dist/index168.cjs +1 -1
  112. package/dist/index168.mjs +12 -20
  113. package/dist/index169.cjs +1 -1
  114. package/dist/index169.mjs +35 -50
  115. package/dist/index17.cjs +1 -1
  116. package/dist/index17.mjs +1 -1
  117. package/dist/index170.cjs +1 -1
  118. package/dist/index170.mjs +20 -35
  119. package/dist/index171.cjs +1 -1
  120. package/dist/index171.mjs +20 -20
  121. package/dist/index172.cjs +1 -1
  122. package/dist/index172.mjs +42 -54
  123. package/dist/index173.cjs +1 -1
  124. package/dist/index173.mjs +32 -36
  125. package/dist/index174.cjs +1 -1
  126. package/dist/index174.mjs +31 -23
  127. package/dist/index175.cjs +1 -1
  128. package/dist/index175.mjs +16 -22
  129. package/dist/index176.cjs +1 -1
  130. package/dist/index176.mjs +57 -46
  131. package/dist/index177.cjs +1 -1
  132. package/dist/index177.mjs +18 -20
  133. package/dist/index178.cjs +1 -1
  134. package/dist/index178.mjs +30 -64
  135. package/dist/index179.cjs +1 -1
  136. package/dist/index179.mjs +12 -106
  137. package/dist/index18.cjs +1 -1
  138. package/dist/index18.mjs +1 -1
  139. package/dist/index181.cjs +1 -1
  140. package/dist/index181.mjs +24 -46
  141. package/dist/index182.cjs +1 -1
  142. package/dist/index182.mjs +46 -28
  143. package/dist/index183.cjs +1 -1
  144. package/dist/index183.mjs +24 -32
  145. package/dist/index184.cjs +1 -1
  146. package/dist/index184.mjs +76 -26
  147. package/dist/index185.cjs +1 -1
  148. package/dist/index185.mjs +26 -26
  149. package/dist/index186.cjs +1 -1
  150. package/dist/index186.mjs +14 -67
  151. package/dist/index187.cjs +1 -1
  152. package/dist/index187.mjs +28 -55
  153. package/dist/index188.cjs +1 -1
  154. package/dist/index188.mjs +22 -54
  155. package/dist/index189.cjs +1 -1
  156. package/dist/index189.mjs +26 -62
  157. package/dist/index19.cjs +1 -1
  158. package/dist/index19.mjs +1 -1
  159. package/dist/index190.cjs +1 -1
  160. package/dist/index190.mjs +38 -17
  161. package/dist/index191.cjs +1 -1
  162. package/dist/index191.mjs +47 -69
  163. package/dist/index192.cjs +1 -1
  164. package/dist/index192.mjs +34 -56
  165. package/dist/index193.cjs +1 -1
  166. package/dist/index193.mjs +24 -30
  167. package/dist/index194.cjs +1 -1
  168. package/dist/index194.mjs +40 -33
  169. package/dist/index195.cjs +1 -1
  170. package/dist/index195.mjs +28 -32
  171. package/dist/index196.cjs +1 -1
  172. package/dist/index196.mjs +40 -103
  173. package/dist/index197.cjs +1 -1
  174. package/dist/index197.mjs +30 -58
  175. package/dist/index198.cjs +1 -1
  176. package/dist/index198.mjs +42 -42
  177. package/dist/index199.cjs +1 -1
  178. package/dist/index199.mjs +54 -30
  179. package/dist/index20.cjs +1 -1
  180. package/dist/index20.mjs +1 -1
  181. package/dist/index200.cjs +1 -1
  182. package/dist/index200.mjs +40 -36
  183. package/dist/index201.cjs +1 -1
  184. package/dist/index201.mjs +26 -26
  185. package/dist/index202.cjs +1 -1
  186. package/dist/index202.mjs +27 -64
  187. package/dist/index203.cjs +1 -1
  188. package/dist/index203.mjs +33 -37
  189. package/dist/index204.cjs +1 -1
  190. package/dist/index204.mjs +44 -26
  191. package/dist/index205.cjs +1 -1
  192. package/dist/index205.mjs +65 -27
  193. package/dist/index206.cjs +1 -1
  194. package/dist/index206.mjs +44 -18
  195. package/dist/index207.cjs +1 -1
  196. package/dist/index207.mjs +52 -33
  197. package/dist/index208.cjs +1 -1
  198. package/dist/index208.mjs +30 -28
  199. package/dist/index209.cjs +1 -1
  200. package/dist/index209.mjs +33 -12
  201. package/dist/index21.cjs +1 -1
  202. package/dist/index21.mjs +1 -1
  203. package/dist/index210.cjs +1 -1
  204. package/dist/index210.mjs +28 -24
  205. package/dist/index211.cjs +1 -1
  206. package/dist/index211.mjs +45 -28
  207. package/dist/index212.cjs +1 -1
  208. package/dist/index212.mjs +64 -30
  209. package/dist/index213.cjs +1 -1
  210. package/dist/index213.mjs +53 -44
  211. package/dist/index214.cjs +1 -1
  212. package/dist/index214.mjs +50 -70
  213. package/dist/index215.cjs +1 -1
  214. package/dist/index215.mjs +30 -78
  215. package/dist/index216.cjs +1 -1
  216. package/dist/index216.mjs +33 -18
  217. package/dist/index217.cjs +1 -1
  218. package/dist/index217.mjs +67 -76
  219. package/dist/index218.cjs +1 -1
  220. package/dist/index218.mjs +55 -53
  221. package/dist/index219.cjs +1 -1
  222. package/dist/index219.mjs +56 -52
  223. package/dist/index22.cjs +1 -1
  224. package/dist/index22.mjs +1 -1
  225. package/dist/index220.cjs +1 -1
  226. package/dist/index220.mjs +24 -52
  227. package/dist/index221.cjs +1 -1
  228. package/dist/index221.mjs +30 -18
  229. package/dist/index222.cjs +1 -1
  230. package/dist/index222.mjs +69 -43
  231. package/dist/index223.cjs +1 -1
  232. package/dist/index223.mjs +104 -105
  233. package/dist/index224.cjs +1 -1
  234. package/dist/index224.mjs +58 -40
  235. package/dist/index225.cjs +1 -1
  236. package/dist/index225.mjs +17 -28
  237. package/dist/index226.cjs +1 -1
  238. package/dist/index226.mjs +58 -234
  239. package/dist/index227.cjs +1 -1
  240. package/dist/index227.mjs +71 -34
  241. package/dist/index228.cjs +1 -1
  242. package/dist/index228.mjs +19 -44
  243. package/dist/index229.cjs +1 -1
  244. package/dist/index229.mjs +64 -170
  245. package/dist/index23.cjs +1 -1
  246. package/dist/index23.mjs +1 -1
  247. package/dist/index230.cjs +1 -1
  248. package/dist/index230.mjs +21 -186
  249. package/dist/index231.cjs +1 -1
  250. package/dist/index231.mjs +43 -29
  251. package/dist/index232.cjs +1 -1
  252. package/dist/index232.mjs +62 -90
  253. package/dist/index233.cjs +1 -1
  254. package/dist/index233.mjs +19 -53
  255. package/dist/index234.cjs +1 -1
  256. package/dist/index234.mjs +102 -64
  257. package/dist/index235.cjs +1 -1
  258. package/dist/index235.mjs +22 -124
  259. package/dist/index236.cjs +1 -1
  260. package/dist/index236.mjs +42 -108
  261. package/dist/index237.cjs +1 -1
  262. package/dist/index237.mjs +78 -111
  263. package/dist/index238.cjs +1 -1
  264. package/dist/index238.mjs +56 -122
  265. package/dist/index239.cjs +1 -1
  266. package/dist/index239.mjs +52 -214
  267. package/dist/index24.cjs +1 -1
  268. package/dist/index24.mjs +1 -1
  269. package/dist/index240.cjs +1 -1
  270. package/dist/index240.mjs +27 -56
  271. package/dist/index241.cjs +1 -1
  272. package/dist/index241.mjs +38 -20
  273. package/dist/index242.cjs +1 -1
  274. package/dist/index242.mjs +106 -20
  275. package/dist/index243.cjs +1 -1
  276. package/dist/index243.mjs +52 -45
  277. package/dist/index244.cjs +1 -1
  278. package/dist/index244.mjs +44 -117
  279. package/dist/index245.cjs +1 -1
  280. package/dist/index245.mjs +51 -194
  281. package/dist/index246.cjs +1 -1
  282. package/dist/index246.mjs +38 -14
  283. package/dist/index247.cjs +1 -1
  284. package/dist/index247.mjs +34 -34
  285. package/dist/index248.cjs +1 -1
  286. package/dist/index248.mjs +29 -19
  287. package/dist/index249.cjs +1 -1
  288. package/dist/index249.mjs +116 -15
  289. package/dist/index25.cjs +1 -1
  290. package/dist/index25.mjs +1 -1
  291. package/dist/index250.cjs +1 -1
  292. package/dist/index250.mjs +194 -31
  293. package/dist/index253.cjs +1 -1
  294. package/dist/index253.mjs +13 -18
  295. package/dist/index254.cjs +1 -1
  296. package/dist/index254.mjs +18 -36
  297. package/dist/index255.cjs +1 -1
  298. package/dist/index255.mjs +46 -46
  299. package/dist/index256.cjs +1 -1
  300. package/dist/index256.mjs +14 -39
  301. package/dist/index257.cjs +1 -1
  302. package/dist/index257.mjs +29 -14
  303. package/dist/index258.cjs +1 -1
  304. package/dist/index258.mjs +14 -28
  305. package/dist/index259.cjs +1 -1
  306. package/dist/index259.mjs +21 -13
  307. package/dist/index26.cjs +1 -1
  308. package/dist/index26.mjs +1 -1
  309. package/dist/index260.cjs +1 -1
  310. package/dist/index260.mjs +45 -35
  311. package/dist/index261.cjs +1 -1
  312. package/dist/index261.mjs +38 -48
  313. package/dist/index262.cjs +1 -1
  314. package/dist/index262.mjs +14 -38
  315. package/dist/index263.cjs +1 -1
  316. package/dist/index263.mjs +56 -31
  317. package/dist/index264.cjs +1 -1
  318. package/dist/index264.mjs +28 -44
  319. package/dist/index265.cjs +1 -1
  320. package/dist/index265.mjs +16 -45
  321. package/dist/index266.cjs +1 -1
  322. package/dist/index266.mjs +35 -16
  323. package/dist/index267.cjs +1 -1
  324. package/dist/index267.mjs +30 -30
  325. package/dist/index268.cjs +1 -1
  326. package/dist/index268.mjs +38 -22
  327. package/dist/index269.cjs +1 -1
  328. package/dist/index269.mjs +31 -45
  329. package/dist/index27.cjs +1 -1
  330. package/dist/index27.mjs +1 -1
  331. package/dist/index270.cjs +1 -1
  332. package/dist/index270.mjs +12 -40
  333. package/dist/index271.cjs +1 -1
  334. package/dist/index271.mjs +22 -12
  335. package/dist/index272.cjs +1 -1
  336. package/dist/index272.mjs +22 -30
  337. package/dist/index273.cjs +1 -1
  338. package/dist/index273.mjs +40 -49
  339. package/dist/index274.cjs +1 -1
  340. package/dist/index274.mjs +38 -30
  341. package/dist/index275.cjs +1 -1
  342. package/dist/index275.mjs +16 -17
  343. package/dist/index276.cjs +1 -1
  344. package/dist/index276.mjs +30 -22
  345. package/dist/index277.cjs +1 -1
  346. package/dist/index277.mjs +9 -24
  347. package/dist/index278.cjs +1 -1
  348. package/dist/index278.mjs +51 -71
  349. package/dist/index279.cjs +1 -1
  350. package/dist/index279.mjs +25 -174
  351. package/dist/index28.cjs +1 -1
  352. package/dist/index28.mjs +1 -1
  353. package/dist/index280.cjs +1 -1
  354. package/dist/index280.mjs +74 -56
  355. package/dist/index281.cjs +1 -1
  356. package/dist/index281.mjs +174 -29
  357. package/dist/index282.cjs +1 -1
  358. package/dist/index282.mjs +56 -40
  359. package/dist/index283.cjs +1 -1
  360. package/dist/index283.mjs +28 -40
  361. package/dist/index284.cjs +1 -1
  362. package/dist/index284.mjs +41 -112
  363. package/dist/index285.cjs +1 -1
  364. package/dist/index285.mjs +40 -12
  365. package/dist/index286.cjs +1 -1
  366. package/dist/index286.mjs +112 -39
  367. package/dist/index287.cjs +1 -1
  368. package/dist/index287.mjs +12 -26
  369. package/dist/index288.cjs +1 -1
  370. package/dist/index288.mjs +38 -46
  371. package/dist/index289.cjs +1 -1
  372. package/dist/index289.mjs +26 -9
  373. package/dist/index29.cjs +1 -1
  374. package/dist/index29.mjs +1 -1
  375. package/dist/index290.cjs +1 -1
  376. package/dist/index290.mjs +46 -54
  377. package/dist/index30.cjs +1 -1
  378. package/dist/index30.mjs +1 -1
  379. package/dist/index31.cjs +1 -1
  380. package/dist/index31.mjs +2 -2
  381. package/dist/index32.cjs +1 -1
  382. package/dist/index32.mjs +14 -14
  383. package/dist/index33.cjs +1 -1
  384. package/dist/index33.mjs +1 -1
  385. package/dist/index34.cjs +1 -1
  386. package/dist/index34.mjs +1 -1
  387. package/dist/index35.cjs +1 -1
  388. package/dist/index35.mjs +1 -1
  389. package/dist/index36.cjs +1 -1
  390. package/dist/index36.mjs +1 -1
  391. package/dist/index37.cjs +1 -1
  392. package/dist/index37.mjs +1 -1
  393. package/dist/index38.cjs +1 -1
  394. package/dist/index38.mjs +1 -1
  395. package/dist/index39.cjs +1 -1
  396. package/dist/index39.mjs +1 -1
  397. package/dist/index40.cjs +1 -1
  398. package/dist/index40.mjs +1 -1
  399. package/dist/index42.cjs +1 -1
  400. package/dist/index42.mjs +1 -1
  401. package/dist/index43.cjs +1 -1
  402. package/dist/index43.mjs +1 -1
  403. package/dist/index44.cjs +1 -1
  404. package/dist/index44.mjs +1 -1
  405. package/dist/index45.cjs +1 -1
  406. package/dist/index45.mjs +1 -1
  407. package/dist/index46.cjs +1 -1
  408. package/dist/index46.mjs +1 -1
  409. package/dist/index47.cjs +1 -1
  410. package/dist/index47.mjs +1 -1
  411. package/dist/index48.cjs +1 -1
  412. package/dist/index48.mjs +1 -1
  413. package/dist/index49.cjs +1 -1
  414. package/dist/index49.mjs +1 -1
  415. package/dist/index50.cjs +1 -1
  416. package/dist/index50.mjs +1 -1
  417. package/dist/index51.cjs +1 -1
  418. package/dist/index51.mjs +1 -1
  419. package/dist/index52.cjs +1 -1
  420. package/dist/index52.mjs +1 -1
  421. package/dist/index54.cjs +1 -1
  422. package/dist/index54.mjs +1 -1
  423. package/dist/index55.cjs +1 -1
  424. package/dist/index55.mjs +1 -1
  425. package/dist/index56.cjs +1 -1
  426. package/dist/index56.mjs +1 -1
  427. package/dist/index58.cjs +1 -1
  428. package/dist/index58.mjs +1 -1
  429. package/dist/index59.cjs +1 -1
  430. package/dist/index59.mjs +1 -1
  431. package/dist/index61.cjs +1 -1
  432. package/dist/index61.mjs +1 -1
  433. package/dist/index62.cjs +1 -1
  434. package/dist/index62.mjs +1 -1
  435. package/dist/index63.cjs +1 -1
  436. package/dist/index63.mjs +1 -1
  437. package/dist/index64.cjs +1 -1
  438. package/dist/index64.mjs +1 -1
  439. package/dist/index65.cjs +1 -1
  440. package/dist/index65.mjs +1 -1
  441. package/dist/index66.cjs +1 -1
  442. package/dist/index66.mjs +1 -1
  443. package/dist/index67.cjs +1 -1
  444. package/dist/index67.mjs +1 -1
  445. package/dist/index68.cjs +1 -1
  446. package/dist/index68.mjs +1 -1
  447. package/dist/index69.cjs +1 -1
  448. package/dist/index69.mjs +1 -1
  449. package/dist/index70.cjs +1 -1
  450. package/dist/index70.mjs +1 -1
  451. package/dist/index71.cjs +1 -1
  452. package/dist/index71.mjs +1 -1
  453. package/dist/index72.cjs +1 -1
  454. package/dist/index72.mjs +1 -1
  455. package/dist/index73.cjs +1 -1
  456. package/dist/index73.mjs +1 -1
  457. package/dist/index74.cjs +1 -1
  458. package/dist/index74.mjs +1 -1
  459. package/dist/index75.cjs +1 -1
  460. package/dist/index75.mjs +1 -1
  461. package/dist/index76.cjs +1 -1
  462. package/dist/index76.mjs +1 -1
  463. package/dist/index77.cjs +1 -1
  464. package/dist/index77.mjs +1 -1
  465. package/dist/index78.cjs +1 -1
  466. package/dist/index78.mjs +1 -1
  467. package/dist/index79.cjs +1 -1
  468. package/dist/index79.mjs +1 -1
  469. package/dist/index80.cjs +1 -1
  470. package/dist/index80.mjs +1 -1
  471. package/dist/index81.cjs +1 -1
  472. package/dist/index81.mjs +1 -1
  473. package/dist/index82.cjs +1 -1
  474. package/dist/index82.mjs +1 -1
  475. package/dist/index83.cjs +1 -1
  476. package/dist/index83.mjs +1 -1
  477. package/dist/index84.cjs +1 -1
  478. package/dist/index84.mjs +1 -1
  479. package/dist/index85.cjs +1 -1
  480. package/dist/index85.mjs +1 -1
  481. package/dist/index86.cjs +1 -1
  482. package/dist/index86.mjs +1 -1
  483. package/dist/index89.cjs +1 -1
  484. package/dist/index89.mjs +1 -1
  485. package/dist/index90.cjs +1 -1
  486. package/dist/index90.mjs +1 -1
  487. package/dist/index91.cjs +1 -1
  488. package/dist/index91.mjs +1 -1
  489. package/dist/index93.cjs +1 -1
  490. package/dist/index93.mjs +1 -1
  491. package/dist/index94.cjs +1 -1
  492. package/dist/index94.mjs +1 -1
  493. package/package.json +1 -1
package/dist/index236.mjs CHANGED
@@ -1,111 +1,45 @@
1
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
- import { X as t, Square as b, Send as C, Mic as j } from "lucide-react";
3
- import { useVoiceRecorder as S } from "./index106.mjs";
4
- import { formatTime as k } from "./index289.mjs";
5
- import e from "./index226.mjs";
6
- const z = ({
7
- onRecordingComplete: d,
8
- onCancel: v,
9
- maxDuration: m = 300,
10
- className: a,
11
- ...n
12
- }) => {
13
- const {
14
- isRecording: o,
15
- duration: R,
16
- audioBlob: i,
17
- error: s,
18
- startRecording: h,
19
- stopRecording: u,
20
- cancelRecording: N,
21
- reset: l,
22
- isSupported: f
23
- } = S({
24
- maxDuration: m,
25
- onRecordingComplete: d,
26
- onError: (g) => console.error("Recording error:", g)
27
- }), p = () => {
28
- o ? u() : i ? (d?.(i), l()) : h();
29
- }, B = () => {
30
- N(), v?.();
31
- };
32
- return f ? s ? /* @__PURE__ */ c(
33
- "div",
34
- {
35
- className: [e.voiceRecorder, a].filter(Boolean).join(" "),
36
- ...n,
37
- children: [
38
- /* @__PURE__ */ r("div", { className: e.voiceRecorderInfo, children: /* @__PURE__ */ r(
39
- "span",
40
- {
41
- className: [
42
- e.voiceRecorderLabel,
43
- e.voiceRecorderError
44
- ].join(" "),
45
- children: s
46
- }
47
- ) }),
48
- /* @__PURE__ */ r(
49
- "button",
50
- {
51
- className: e.inputButton,
52
- onClick: l,
53
- "aria-label": "Try again",
54
- children: /* @__PURE__ */ r(t, { size: 20 })
55
- }
56
- )
57
- ]
58
- }
59
- ) : /* @__PURE__ */ c(
60
- "div",
61
- {
62
- className: [e.voiceRecorder, a].filter(Boolean).join(" "),
63
- ...n,
64
- children: [
65
- /* @__PURE__ */ r(
66
- "button",
67
- {
68
- className: [
69
- e.voiceRecorderButton,
70
- !o && !i && e.voiceRecorderButtonIdle
71
- ].filter(Boolean).join(" "),
72
- onClick: p,
73
- "aria-label": o ? "Stop recording" : i ? "Send recording" : "Start recording",
74
- children: o ? /* @__PURE__ */ r(b, { size: 20 }) : i ? /* @__PURE__ */ r(C, { size: 20 }) : /* @__PURE__ */ r(j, { size: 20 })
75
- }
76
- ),
77
- /* @__PURE__ */ c("div", { className: e.voiceRecorderInfo, children: [
78
- /* @__PURE__ */ r("span", { className: e.voiceRecorderDuration, children: k(R) }),
79
- /* @__PURE__ */ r("span", { className: e.voiceRecorderLabel, children: o ? "Recording..." : i ? "Recording ready" : "Click to record" })
80
- ] }),
81
- o && /* @__PURE__ */ c("div", { className: e.voiceRecorderWaveform, children: [
82
- /* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
83
- /* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
84
- /* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
85
- /* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
86
- /* @__PURE__ */ r("div", { className: e.voiceRecorderBar })
87
- ] }),
88
- (o || i) && /* @__PURE__ */ r("div", { className: e.voiceRecorderActions, children: /* @__PURE__ */ r(
89
- "button",
90
- {
91
- className: e.inputButton,
92
- onClick: B,
93
- "aria-label": "Cancel recording",
94
- children: /* @__PURE__ */ r(t, { size: 20 })
95
- }
96
- ) })
97
- ]
98
- }
99
- ) : /* @__PURE__ */ r(
100
- "div",
101
- {
102
- className: [e.voiceRecorder, a].filter(Boolean).join(" "),
103
- ...n,
104
- children: /* @__PURE__ */ r("div", { className: e.voiceRecorderInfo, children: /* @__PURE__ */ r("span", { className: e.voiceRecorderLabel, children: "Voice recording is not supported in this browser" }) })
105
- }
106
- );
1
+ const t = "_root_1tv2v_3", e = "_header_1tv2v_20", n = "_title_1tv2v_26", s = "_unsavedBadge_1tv2v_33", o = "_container_1tv2v_42", _ = "_sidebar_1tv2v_63", v = "_sidebarContent_1tv2v_78", c = "_navItem_1tv2v_84", a = "_navItemActive_1tv2v_100", i = "_navItemLabel_1tv2v_106", r = "_navItemDescription_1tv2v_112", d = "_content_1tv2v_123", m = "_errorMessage_1tv2v_130", I = "_successMessage_1tv2v_142", l = "_sectionCard_1tv2v_154", p = "_sectionTitle_1tv2v_158", b = "_sectionDescription_1tv2v_165", g = "_sectionBody_1tv2v_171", u = "_emptyState_1tv2v_184", y = "_actions_1tv2v_193", B = {
2
+ root: t,
3
+ header: e,
4
+ title: n,
5
+ unsavedBadge: s,
6
+ container: o,
7
+ sidebar: _,
8
+ sidebarContent: v,
9
+ navItem: c,
10
+ navItemActive: a,
11
+ navItemLabel: i,
12
+ navItemDescription: r,
13
+ content: d,
14
+ errorMessage: m,
15
+ successMessage: I,
16
+ sectionCard: l,
17
+ sectionTitle: p,
18
+ sectionDescription: b,
19
+ sectionBody: g,
20
+ emptyState: u,
21
+ actions: y
107
22
  };
108
- z.displayName = "ChatVoiceRecorder";
109
23
  export {
110
- z as ChatVoiceRecorder
24
+ y as actions,
25
+ o as container,
26
+ d as content,
27
+ B as default,
28
+ u as emptyState,
29
+ m as errorMessage,
30
+ e as header,
31
+ c as navItem,
32
+ a as navItemActive,
33
+ r as navItemDescription,
34
+ i as navItemLabel,
35
+ t as root,
36
+ g as sectionBody,
37
+ l as sectionCard,
38
+ b as sectionDescription,
39
+ p as sectionTitle,
40
+ _ as sidebar,
41
+ v as sidebarContent,
42
+ I as successMessage,
43
+ n as title,
44
+ s as unsavedBadge
111
45
  };
package/dist/index237.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("react"),R=require("lucide-react"),h=require("./index289.cjs"),o=require("./index226.cjs"),g=({onFilesSelected:f,accept:i=["*/*"],multiple:C=!0,maxSize:s=10*1024*1024,children:v,className:D,...k})=>{const[m,u]=t.useState(!1),c=t.useRef(null),d=t.useCallback(e=>{if(!e||e.length===0)return;const r=[];Array.from(e).forEach(l=>{if(s&&l.size>s){console.warn(`File ${l.name} exceeds max size of ${h.formatFileSize(s)}`);return}const F=i.includes("*/*"),q=i.flatMap(n=>(n.endsWith("/*"),n));if(!(F||q.some(n=>{if(n.endsWith("/*")){const N=n.split("/")[0];return l.type.startsWith(`${N}/`)}return l.type===n||l.name.endsWith(n)}))){console.warn(`File ${l.name} type not accepted`);return}r.push(l)}),r.length>0&&f?.(r)},[i,s,f]),b=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!0)},[]),j=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!1)},[]),y=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!1);const{files:r}=e.dataTransfer;d(r)},[d]),x=t.useCallback(e=>{d(e.target.files),c.current&&(c.current.value="")},[d]),p=t.useCallback(()=>{c.current?.click()},[]),U=t.useCallback(e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),p())},[p]);return a.jsxs("div",{className:[o.default.fileUpload,m&&o.default.fileUploadDragging,D].filter(Boolean).join(" "),onDragOver:b,onDragLeave:j,onDrop:y,onClick:p,onKeyDown:U,role:"button",tabIndex:0,"aria-label":"Upload files",...k,children:[a.jsx("input",{ref:c,type:"file",accept:i.join(","),multiple:C,onChange:x,style:{display:"none"},"aria-hidden":"true"}),v||a.jsxs(a.Fragment,{children:[a.jsx("div",{className:o.default.fileUploadIcon,children:a.jsx(R.Upload,{size:32})}),a.jsxs("div",{className:o.default.fileUploadText,children:[a.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),a.jsxs("div",{className:o.default.fileUploadHint,children:["Max file size: ",h.formatFileSize(s)]})]})]})};g.displayName="ChatFileUpload";exports.ChatFileUpload=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_root_nzwdx_3",a="_sidebar_nzwdx_11",e="_sidebarTitle_nzwdx_26",s="_participantsList_nzwdx_35",n="_participant_nzwdx_35",i="_participantActive_nzwdx_54",_="_participantAvatar_nzwdx_59",r="_participantInfo_nzwdx_66",p="_participantName_nzwdx_71",o="_participantStatus_nzwdx_80",c="_statusonline_nzwdx_86",u="_statusaway_nzwdx_90",d="_statusoffline_nzwdx_94",m="_mainArea_nzwdx_98",g="_header_nzwdx_105",w="_title_nzwdx_114",x="_errorBadge_nzwdx_121",z="_messagesContainer_nzwdx_130",l="_emptyState_nzwdx_139",y="_emptyStateIcon_nzwdx_149",S="_emptyStateTitle_nzwdx_153",b="_emptyStateText_nzwdx_160",T="_messageWrapper_nzwdx_166",A="_messageuser_nzwdx_172",f="_messageassistant_nzwdx_176",B="_messageBubble_nzwdx_180",I="_messageContent_nzwdx_199",v="_messageTime_nzwdx_205",C="_messageStatus_nzwdx_212",h="_statussending_nzwdx_217",G="_statussent_nzwdx_221",L="_statuserror_nzwdx_225",N="_typingIndicator_nzwdx_229",W="_typing_nzwdx_229",M="_inputArea_nzwdx_265",j="_inputGroup_nzwdx_271",O="_input_nzwdx_265",P="_actionButton_nzwdx_306",k={root:t,sidebar:a,sidebarTitle:e,participantsList:s,participant:n,participantActive:i,participantAvatar:_,participantInfo:r,participantName:p,participantStatus:o,statusonline:c,statusaway:u,statusoffline:d,mainArea:m,header:g,title:w,errorBadge:x,messagesContainer:z,emptyState:l,emptyStateIcon:y,emptyStateTitle:S,emptyStateText:b,messageWrapper:T,messageuser:A,messageassistant:f,messageBubble:B,messageContent:I,messageTime:v,messageStatus:C,statussending:h,statussent:G,statuserror:L,typingIndicator:N,typing:W,inputArea:M,inputGroup:j,input:O,actionButton:P};exports.actionButton=P;exports.default=k;exports.emptyState=l;exports.emptyStateIcon=y;exports.emptyStateText=b;exports.emptyStateTitle=S;exports.errorBadge=x;exports.header=g;exports.input=O;exports.inputArea=M;exports.inputGroup=j;exports.mainArea=m;exports.messageBubble=B;exports.messageContent=I;exports.messageStatus=C;exports.messageTime=v;exports.messageWrapper=T;exports.messageassistant=f;exports.messagesContainer=z;exports.messageuser=A;exports.participant=n;exports.participantActive=i;exports.participantAvatar=_;exports.participantInfo=r;exports.participantName=p;exports.participantStatus=o;exports.participantsList=s;exports.root=t;exports.sidebar=a;exports.sidebarTitle=e;exports.statusaway=u;exports.statuserror=L;exports.statusoffline=d;exports.statusonline=c;exports.statussending=h;exports.statussent=G;exports.title=w;exports.typing=W;exports.typingIndicator=N;
package/dist/index237.mjs CHANGED
@@ -1,114 +1,81 @@
1
- import { jsxs as d, jsx as p, Fragment as A } from "react/jsx-runtime";
2
- import { useState as I, useRef as W, useCallback as a } from "react";
3
- import { Upload as $ } from "lucide-react";
4
- import { formatFileSize as g } from "./index289.mjs";
5
- import l from "./index226.mjs";
6
- const P = ({
7
- onFilesSelected: h,
8
- accept: s = ["*/*"],
9
- multiple: m = !0,
10
- maxSize: r = 10 * 1024 * 1024,
11
- // 10MB default
12
- children: D,
13
- className: v,
14
- ...y
15
- }) => {
16
- const [U, f] = I(!1), i = W(null), c = a(
17
- (e) => {
18
- if (!e || e.length === 0) return;
19
- const o = [];
20
- Array.from(e).forEach((t) => {
21
- if (r && t.size > r) {
22
- console.warn(
23
- `File ${t.name} exceeds max size of ${g(r)}`
24
- );
25
- return;
26
- }
27
- const j = s.includes("*/*"), w = s.flatMap((n) => (n.endsWith("/*"), n));
28
- if (!(j || w.some((n) => {
29
- if (n.endsWith("/*")) {
30
- const x = n.split("/")[0];
31
- return t.type.startsWith(`${x}/`);
32
- }
33
- return t.type === n || t.name.endsWith(n);
34
- }))) {
35
- console.warn(`File ${t.name} type not accepted`);
36
- return;
37
- }
38
- o.push(t);
39
- }), o.length > 0 && h?.(o);
40
- },
41
- [s, r, h]
42
- ), C = a((e) => {
43
- e.preventDefault(), e.stopPropagation(), f(!0);
44
- }, []), k = a((e) => {
45
- e.preventDefault(), e.stopPropagation(), f(!1);
46
- }, []), F = a(
47
- (e) => {
48
- e.preventDefault(), e.stopPropagation(), f(!1);
49
- const { files: o } = e.dataTransfer;
50
- c(o);
51
- },
52
- [c]
53
- ), N = a(
54
- (e) => {
55
- c(e.target.files), i.current && (i.current.value = "");
56
- },
57
- [c]
58
- ), u = a(() => {
59
- i.current?.click();
60
- }, []), b = a(
61
- (e) => {
62
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), u());
63
- },
64
- [u]
65
- );
66
- return /* @__PURE__ */ d(
67
- "div",
68
- {
69
- className: [
70
- l.fileUpload,
71
- U && l.fileUploadDragging,
72
- v
73
- ].filter(Boolean).join(" "),
74
- onDragOver: C,
75
- onDragLeave: k,
76
- onDrop: F,
77
- onClick: u,
78
- onKeyDown: b,
79
- role: "button",
80
- tabIndex: 0,
81
- "aria-label": "Upload files",
82
- ...y,
83
- children: [
84
- /* @__PURE__ */ p(
85
- "input",
86
- {
87
- ref: i,
88
- type: "file",
89
- accept: s.join(","),
90
- multiple: m,
91
- onChange: N,
92
- style: { display: "none" },
93
- "aria-hidden": "true"
94
- }
95
- ),
96
- D || /* @__PURE__ */ d(A, { children: [
97
- /* @__PURE__ */ p("div", { className: l.fileUploadIcon, children: /* @__PURE__ */ p($, { size: 32 }) }),
98
- /* @__PURE__ */ d("div", { className: l.fileUploadText, children: [
99
- /* @__PURE__ */ p("strong", { children: "Click to upload" }),
100
- " or drag and drop"
101
- ] }),
102
- /* @__PURE__ */ d("div", { className: l.fileUploadHint, children: [
103
- "Max file size: ",
104
- g(r)
105
- ] })
106
- ] })
107
- ]
108
- }
109
- );
1
+ const t = "_root_nzwdx_3", s = "_sidebar_nzwdx_11", n = "_sidebarTitle_nzwdx_26", a = "_participantsList_nzwdx_35", e = "_participant_nzwdx_35", _ = "_participantActive_nzwdx_54", i = "_participantAvatar_nzwdx_59", o = "_participantInfo_nzwdx_66", p = "_participantName_nzwdx_71", r = "_participantStatus_nzwdx_80", c = "_statusonline_nzwdx_86", d = "_statusaway_nzwdx_90", u = "_statusoffline_nzwdx_94", m = "_mainArea_nzwdx_98", x = "_header_nzwdx_105", w = "_title_nzwdx_114", z = "_errorBadge_nzwdx_121", g = "_messagesContainer_nzwdx_130", y = "_emptyState_nzwdx_139", l = "_emptyStateIcon_nzwdx_149", S = "_emptyStateTitle_nzwdx_153", b = "_emptyStateText_nzwdx_160", A = "_messageWrapper_nzwdx_166", T = "_messageuser_nzwdx_172", f = "_messageassistant_nzwdx_176", B = "_messageBubble_nzwdx_180", I = "_messageContent_nzwdx_199", v = "_messageTime_nzwdx_205", C = "_messageStatus_nzwdx_212", h = "_statussending_nzwdx_217", G = "_statussent_nzwdx_221", L = "_statuserror_nzwdx_225", N = "_typingIndicator_nzwdx_229", W = "_typing_nzwdx_229", j = "_inputArea_nzwdx_265", k = "_inputGroup_nzwdx_271", q = "_input_nzwdx_265", D = "_actionButton_nzwdx_306", E = {
2
+ root: t,
3
+ sidebar: s,
4
+ sidebarTitle: n,
5
+ participantsList: a,
6
+ participant: e,
7
+ participantActive: _,
8
+ participantAvatar: i,
9
+ participantInfo: o,
10
+ participantName: p,
11
+ participantStatus: r,
12
+ statusonline: c,
13
+ statusaway: d,
14
+ statusoffline: u,
15
+ mainArea: m,
16
+ header: x,
17
+ title: w,
18
+ errorBadge: z,
19
+ messagesContainer: g,
20
+ emptyState: y,
21
+ emptyStateIcon: l,
22
+ emptyStateTitle: S,
23
+ emptyStateText: b,
24
+ messageWrapper: A,
25
+ messageuser: T,
26
+ messageassistant: f,
27
+ messageBubble: B,
28
+ messageContent: I,
29
+ messageTime: v,
30
+ messageStatus: C,
31
+ statussending: h,
32
+ statussent: G,
33
+ statuserror: L,
34
+ typingIndicator: N,
35
+ typing: W,
36
+ inputArea: j,
37
+ inputGroup: k,
38
+ input: q,
39
+ actionButton: D
110
40
  };
111
- P.displayName = "ChatFileUpload";
112
41
  export {
113
- P as ChatFileUpload
42
+ D as actionButton,
43
+ E as default,
44
+ y as emptyState,
45
+ l as emptyStateIcon,
46
+ b as emptyStateText,
47
+ S as emptyStateTitle,
48
+ z as errorBadge,
49
+ x as header,
50
+ q as input,
51
+ j as inputArea,
52
+ k as inputGroup,
53
+ m as mainArea,
54
+ B as messageBubble,
55
+ I as messageContent,
56
+ C as messageStatus,
57
+ v as messageTime,
58
+ A as messageWrapper,
59
+ f as messageassistant,
60
+ g as messagesContainer,
61
+ T as messageuser,
62
+ e as participant,
63
+ _ as participantActive,
64
+ i as participantAvatar,
65
+ o as participantInfo,
66
+ p as participantName,
67
+ r as participantStatus,
68
+ a as participantsList,
69
+ t as root,
70
+ s as sidebar,
71
+ n as sidebarTitle,
72
+ d as statusaway,
73
+ L as statuserror,
74
+ u as statusoffline,
75
+ c as statusonline,
76
+ h as statussending,
77
+ G as statussent,
78
+ w as title,
79
+ W as typing,
80
+ N as typingIndicator
114
81
  };
package/dist/index238.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("lucide-react"),p=require("./index234.cjs"),P=require("./index235.cjs"),b=require("./index232.cjs"),C=require("./index289.cjs"),t=require("./index226.cjs"),w=d=>{switch(d){case"image":return e.jsx(a.Image,{size:18});case"audio":return e.jsx(a.Music,{size:18});case"code":return e.jsx(a.Code,{size:18});default:return e.jsx(a.FileText,{size:18})}},v=({attachment:d,removable:h=!1,onRemove:i,onClick:n,className:c,...o})=>{const{type:m,name:s,url:l,content:j,language:f,size:x,duration:u,thumbnail:g}=d;switch(m){case"image":if(l)return e.jsxs("div",{className:c,style:{position:"relative"},...o,children:[e.jsx(p.ChatImagePreview,{src:l,alt:s,thumbnail:g,onClick:n}),h&&i&&e.jsx("button",{className:t.default.attachmentPreviewRemove,onClick:r=>{r.stopPropagation(),i()},"aria-label":`Remove ${s}`,style:{position:"absolute",top:4,right:4,background:"var(--surface-base)"},children:e.jsx(a.X,{size:14})})]});break;case"audio":if(l)return e.jsxs("div",{className:c,style:{position:"relative"},...o,children:[e.jsx(P.ChatAudioPlayer,{src:l,duration:u,title:s}),h&&i&&e.jsx("button",{className:t.default.attachmentPreviewRemove,onClick:r=>{r.stopPropagation(),i()},"aria-label":`Remove ${s}`,children:e.jsx(a.X,{size:14})})]});break;case"code":if(j)return e.jsx(b.ChatCodeBlock,{code:j,language:f,className:c,...o});break}return e.jsxs("div",{className:[t.default.attachmentPreview,c].filter(Boolean).join(" "),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,...o,children:[e.jsx("div",{className:t.default.attachmentPreviewIcon,children:w(m)}),e.jsxs("div",{className:t.default.attachmentPreviewInfo,children:[e.jsx("span",{className:t.default.attachmentPreviewName,children:s}),x&&e.jsxs("span",{className:t.default.attachmentPreviewMeta,children:[C.formatFileSize(x),u&&` · ${Math.floor(u/60)}:${(u%60).toString().padStart(2,"0")}`]})]}),h&&i&&e.jsx("button",{className:t.default.attachmentPreviewRemove,onClick:r=>{r.stopPropagation(),i()},"aria-label":`Remove ${s}`,children:e.jsx(a.X,{size:14})})]})};v.displayName="ChatAttachment";exports.ChatAttachment=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i="_quickActions_1iws7_8",o="_fixed_1iws7_12",n="_fabTrigger_1iws7_54",t="_fabTriggerIcon_1iws7_81",c="_fabTriggerIconRotate_1iws7_88",e="_fabActions_1iws7_92",_="_open_1iws7_103",a="_fabAction_1iws7_92",s="_fabActionIcon_1iws7_136",r="_fabActionLabel_1iws7_144",b="_bar_1iws7_154",A="_barAction_1iws7_165",u="_barActionIcon_1iws7_183",f="_barActionLabel_1iws7_191",g="_menuTrigger_1iws7_208",m="_menu_1iws7_208",w="_menuSlide_1iws7_1",l="_menuAction_1iws7_250",p="_menuActionIcon_1iws7_269",I="_menuActionLabel_1iws7_278",d="_actionDisabled_1iws7_301",T="_shortcut_1iws7_311",L={quickActions:i,fixed:o,"position-bottom-right":"_position-bottom-right_1iws7_17","position-bottom-left":"_position-bottom-left_1iws7_22","position-bottom-center":"_position-bottom-center_1iws7_27","position-top-right":"_position-top-right_1iws7_33","position-top-left":"_position-top-left_1iws7_38","variant-fab":"_variant-fab_1iws7_47",fabTrigger:n,fabTriggerIcon:t,fabTriggerIconRotate:c,fabActions:e,open:_,fabAction:a,fabActionIcon:s,fabActionLabel:r,"variant-bar":"_variant-bar_1iws7_154",bar:b,barAction:A,barActionIcon:u,barActionLabel:f,"variant-menu":"_variant-menu_1iws7_201",menuTrigger:g,menu:m,menuSlide:w,menuAction:l,menuActionIcon:p,menuActionLabel:I,"action-primary":"_action-primary_1iws7_289","action-danger":"_action-danger_1iws7_293",actionDisabled:d,shortcut:T};exports.actionDisabled=d;exports.bar=b;exports.barAction=A;exports.barActionIcon=u;exports.barActionLabel=f;exports.default=L;exports.fabAction=a;exports.fabActionIcon=s;exports.fabActionLabel=r;exports.fabActions=e;exports.fabTrigger=n;exports.fabTriggerIcon=t;exports.fabTriggerIconRotate=c;exports.fixed=o;exports.menu=m;exports.menuAction=l;exports.menuActionIcon=p;exports.menuActionLabel=I;exports.menuSlide=w;exports.menuTrigger=g;exports.open=_;exports.quickActions=i;exports.shortcut=T;
package/dist/index238.mjs CHANGED
@@ -1,125 +1,59 @@
1
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
- import { X as u, FileText as P, Code as w, Music as z, Image as y } from "lucide-react";
3
- import { ChatImagePreview as C } from "./index234.mjs";
4
- import { ChatAudioPlayer as N } from "./index235.mjs";
5
- import { ChatCodeBlock as I } from "./index232.mjs";
6
- import { formatFileSize as k } from "./index289.mjs";
7
- import t from "./index226.mjs";
8
- const x = (d) => {
9
- switch (d) {
10
- case "image":
11
- return /* @__PURE__ */ e(y, { size: 18 });
12
- case "audio":
13
- return /* @__PURE__ */ e(z, { size: 18 });
14
- case "code":
15
- return /* @__PURE__ */ e(w, { size: 18 });
16
- default:
17
- return /* @__PURE__ */ e(P, { size: 18 });
18
- }
19
- }, $ = ({
20
- attachment: d,
21
- removable: h = !1,
22
- onRemove: a,
23
- onClick: n,
24
- className: s,
25
- ...c
26
- }) => {
27
- const { type: p, name: i, url: l, content: v, language: b, size: f, duration: m, thumbnail: g } = d;
28
- switch (p) {
29
- case "image":
30
- if (l)
31
- return /* @__PURE__ */ o("div", { className: s, style: { position: "relative" }, ...c, children: [
32
- /* @__PURE__ */ e(
33
- C,
34
- {
35
- src: l,
36
- alt: i,
37
- thumbnail: g,
38
- onClick: n
39
- }
40
- ),
41
- h && a && /* @__PURE__ */ e(
42
- "button",
43
- {
44
- className: t.attachmentPreviewRemove,
45
- onClick: (r) => {
46
- r.stopPropagation(), a();
47
- },
48
- "aria-label": `Remove ${i}`,
49
- style: {
50
- position: "absolute",
51
- top: 4,
52
- right: 4,
53
- background: "var(--surface-base)"
54
- },
55
- children: /* @__PURE__ */ e(u, { size: 14 })
56
- }
57
- )
58
- ] });
59
- break;
60
- case "audio":
61
- if (l)
62
- return /* @__PURE__ */ o("div", { className: s, style: { position: "relative" }, ...c, children: [
63
- /* @__PURE__ */ e(N, { src: l, duration: m, title: i }),
64
- h && a && /* @__PURE__ */ e(
65
- "button",
66
- {
67
- className: t.attachmentPreviewRemove,
68
- onClick: (r) => {
69
- r.stopPropagation(), a();
70
- },
71
- "aria-label": `Remove ${i}`,
72
- children: /* @__PURE__ */ e(u, { size: 14 })
73
- }
74
- )
75
- ] });
76
- break;
77
- case "code":
78
- if (v)
79
- return /* @__PURE__ */ e(
80
- I,
81
- {
82
- code: v,
83
- language: b,
84
- className: s,
85
- ...c
86
- }
87
- );
88
- break;
89
- }
90
- return /* @__PURE__ */ o(
91
- "div",
92
- {
93
- className: [t.attachmentPreview, s].filter(Boolean).join(" "),
94
- onClick: n,
95
- role: n ? "button" : void 0,
96
- tabIndex: n ? 0 : void 0,
97
- ...c,
98
- children: [
99
- /* @__PURE__ */ e("div", { className: t.attachmentPreviewIcon, children: x(p) }),
100
- /* @__PURE__ */ o("div", { className: t.attachmentPreviewInfo, children: [
101
- /* @__PURE__ */ e("span", { className: t.attachmentPreviewName, children: i }),
102
- f && /* @__PURE__ */ o("span", { className: t.attachmentPreviewMeta, children: [
103
- k(f),
104
- m && ` · ${Math.floor(m / 60)}:${(m % 60).toString().padStart(2, "0")}`
105
- ] })
106
- ] }),
107
- h && a && /* @__PURE__ */ e(
108
- "button",
109
- {
110
- className: t.attachmentPreviewRemove,
111
- onClick: (r) => {
112
- r.stopPropagation(), a();
113
- },
114
- "aria-label": `Remove ${i}`,
115
- children: /* @__PURE__ */ e(u, { size: 14 })
116
- }
117
- )
118
- ]
119
- }
120
- );
1
+ const i = "_quickActions_1iws7_8", o = "_fixed_1iws7_12", n = "_fabTrigger_1iws7_54", t = "_fabTriggerIcon_1iws7_81", _ = "_fabTriggerIconRotate_1iws7_88", c = "_fabActions_1iws7_92", s = "_open_1iws7_103", a = "_fabAction_1iws7_92", e = "_fabActionIcon_1iws7_136", r = "_fabActionLabel_1iws7_144", b = "_bar_1iws7_154", A = "_barAction_1iws7_165", w = "_barActionIcon_1iws7_183", f = "_barActionLabel_1iws7_191", g = "_menuTrigger_1iws7_208", m = "_menu_1iws7_208", u = "_menuSlide_1iws7_1", l = "_menuAction_1iws7_250", p = "_menuActionIcon_1iws7_269", I = "_menuActionLabel_1iws7_278", d = "_actionDisabled_1iws7_301", T = "_shortcut_1iws7_311", L = {
2
+ quickActions: i,
3
+ fixed: o,
4
+ "position-bottom-right": "_position-bottom-right_1iws7_17",
5
+ "position-bottom-left": "_position-bottom-left_1iws7_22",
6
+ "position-bottom-center": "_position-bottom-center_1iws7_27",
7
+ "position-top-right": "_position-top-right_1iws7_33",
8
+ "position-top-left": "_position-top-left_1iws7_38",
9
+ "variant-fab": "_variant-fab_1iws7_47",
10
+ fabTrigger: n,
11
+ fabTriggerIcon: t,
12
+ fabTriggerIconRotate: _,
13
+ fabActions: c,
14
+ open: s,
15
+ fabAction: a,
16
+ fabActionIcon: e,
17
+ fabActionLabel: r,
18
+ "variant-bar": "_variant-bar_1iws7_154",
19
+ bar: b,
20
+ barAction: A,
21
+ barActionIcon: w,
22
+ barActionLabel: f,
23
+ "variant-menu": "_variant-menu_1iws7_201",
24
+ menuTrigger: g,
25
+ menu: m,
26
+ menuSlide: u,
27
+ menuAction: l,
28
+ menuActionIcon: p,
29
+ menuActionLabel: I,
30
+ "action-primary": "_action-primary_1iws7_289",
31
+ "action-danger": "_action-danger_1iws7_293",
32
+ actionDisabled: d,
33
+ shortcut: T
121
34
  };
122
- $.displayName = "ChatAttachment";
123
35
  export {
124
- $ as ChatAttachment
36
+ d as actionDisabled,
37
+ b as bar,
38
+ A as barAction,
39
+ w as barActionIcon,
40
+ f as barActionLabel,
41
+ L as default,
42
+ a as fabAction,
43
+ e as fabActionIcon,
44
+ r as fabActionLabel,
45
+ c as fabActions,
46
+ n as fabTrigger,
47
+ t as fabTriggerIcon,
48
+ _ as fabTriggerIconRotate,
49
+ o as fixed,
50
+ m as menu,
51
+ l as menuAction,
52
+ p as menuActionIcon,
53
+ I as menuActionLabel,
54
+ u as menuSlide,
55
+ g as menuTrigger,
56
+ s as open,
57
+ i as quickActions,
58
+ T as shortcut
125
59
  };
package/dist/index239.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("react"),c=require("lucide-react"),t=require("./index226.cjs"),O={today:"Today",yesterday:"Yesterday",previous7:"Previous 7 days",previous30:"Previous 30 days",older:"Older"},y=["today","yesterday","previous7","previous30","older"],C=a=>{const r=new Date,u=(new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime()-new Date(a.getFullYear(),a.getMonth(),a.getDate()).getTime())/(1e3*60*60*24);return u<1?"today":u<2?"yesterday":u<7?"previous7":u<30?"previous30":"older"},P=a=>{const r=C(a);return r==="today"?new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit"}).format(a):r==="yesterday"?"Yesterday":r==="previous7"?new Intl.DateTimeFormat("en-US",{weekday:"short"}).format(a):new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric"}).format(a)},z=a=>{const r=new Map;return y.forEach(n=>r.set(n,[])),a.forEach(n=>{const b=C(n.updatedAt);r.get(b)?.push(n)}),r},S=({conversations:a=[],activeConversationId:r,onSelectConversation:n,onNewConversation:b,onDeleteConversation:u,onSearch:x,header:w,footer:N,collapsed:m=!1,onCollapsedChange:f,className:I,...D})=>{const[h,T]=d.useState(""),[p,j]=d.useState(null),o=d.useRef(void 0);d.useEffect(()=>()=>{o.current&&clearTimeout(o.current)},[]);const g=d.useMemo(()=>{if(!h.trim())return a;const s=h.toLowerCase();return a.filter(l=>l.title.toLowerCase().includes(s)||l.preview?.toLowerCase().includes(s))},[a,h]),v=d.useMemo(()=>z(g),[g]),B=d.useCallback(s=>{const l=s.target.value;T(l),x?.(l)},[x]),k=d.useCallback(s=>{n?.(s),m&&f&&f(!0)},[n,m,f]),F=d.useCallback((s,l)=>{s.stopPropagation(),p===l?(u?.(l),j(null),o.current&&clearTimeout(o.current)):(j(l),o.current&&clearTimeout(o.current),o.current=setTimeout(()=>{j(null)},3e3))},[p,u]),M=y.some(s=>(v.get(s)?.length??0)>0);return e.jsxs(e.Fragment,{children:[!m&&e.jsx("div",{className:t.default.sidebarOverlay,onClick:()=>f?.(!0),"aria-hidden":"true"}),e.jsxs("aside",{className:[t.default.sidebar,m&&t.default.sidebarCollapsed,!m&&t.default.sidebarOpen,I].filter(Boolean).join(" "),...D,children:[e.jsx("div",{className:t.default.sidebarHeader,children:w||e.jsxs(e.Fragment,{children:[e.jsx("button",{className:[t.default.inputButton,t.default.inputButtonPrimary,t.default.sidebarNewButton].filter(Boolean).join(" "),onClick:b,"aria-label":"New conversation",children:e.jsxs("span",{className:t.default.sidebarNewButtonInner,children:[e.jsx(c.Plus,{size:18}),e.jsx("span",{children:"New Chat"})]})}),e.jsx("button",{className:[t.default.inputButton,t.default.sidebarCloseButton].join(" "),onClick:()=>f?.(!0),"aria-label":"Close sidebar",children:e.jsx(c.X,{size:20})})]})}),e.jsx("div",{className:t.default.sidebarSearch,children:e.jsxs("div",{className:t.default.sidebarSearchWrapper,children:[e.jsx(c.Search,{size:16,className:t.default.sidebarSearchIcon}),e.jsx("input",{type:"search",className:[t.default.sidebarSearchInput,t.default.sidebarSearchInputWithIcon].join(" "),placeholder:"Search conversations...",value:h,onChange:B,"aria-label":"Search conversations"})]})}),e.jsx("div",{className:t.default.sidebarList,role:"list","aria-label":"Conversations",children:M?y.map(s=>{const l=v.get(s)??[];return l.length===0?null:e.jsxs("div",{children:[e.jsx("div",{className:t.default.sidebarGroupHeader,children:O[s]}),l.map(i=>e.jsxs("button",{className:[t.default.sidebarItem,i.id===r&&t.default.sidebarItemActive].filter(Boolean).join(" "),onClick:()=>k(i.id),role:"listitem","aria-selected":i.id===r,"aria-label":`Conversation: ${i.title}`,children:[e.jsx(c.MessageSquare,{size:18,className:t.default.sidebarItemIcon}),e.jsxs("div",{className:t.default.sidebarItemContent,children:[e.jsx("span",{className:t.default.sidebarItemTitle,children:i.title}),i.preview&&e.jsx("span",{className:t.default.sidebarItemPreview,children:i.preview})]}),e.jsx("span",{className:t.default.sidebarItemDate,children:P(i.updatedAt)}),u&&e.jsx("button",{className:t.default.sidebarItemDelete,onClick:q=>F(q,i.id),"aria-label":p===i.id?`Confirm delete ${i.title}`:`Delete ${i.title}`,children:p===i.id?e.jsx("span",{className:t.default.sidebarItemDeleteConfirm,children:"Delete?"}):e.jsx(c.Trash2,{size:16})})]},i.id))]},s)}):e.jsxs("div",{className:t.default.sidebarEmpty,children:[e.jsx(c.MessageSquare,{size:32,className:t.default.sidebarEmptyIcon}),e.jsx("p",{children:h?"No conversations found":"No conversations yet"})]})}),N&&e.jsx("div",{className:t.default.sidebarFooter,children:N})]})]})};S.displayName="ChatSidebar";exports.ChatSidebar=S;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_stepper_ayf09_10",e="_list_ayf09_14",o="_horizontal_ayf09_26",_="_item_ayf09_33",c="_step_ayf09_10",n="_indicator_ayf09_70",r="_sm_ayf09_84",l="_md_ayf09_90",s="_lg_ayf09_96",a="_upcoming_ayf09_107",i="_current_ayf09_114",p="_complete_ayf09_122",f="_error_ayf09_129",y="_number_ayf09_139",m="_content_ayf09_147",b="_title_ayf09_158",d="_optional_ayf09_189",u="_description_ayf09_200",g="_errorMessage_ayf09_219",h="_connector_ayf09_228",v="_vertical_ayf09_266",M="_clickable_ayf09_317",k="_disabled_ayf09_343",z="_scrollable_ayf09_428",S={stepper:t,list:e,horizontal:o,item:_,step:c,"label-right":"_label-right_ayf09_61",indicator:n,sm:r,md:l,lg:s,upcoming:a,current:i,complete:p,error:f,number:y,content:m,title:b,optional:d,description:u,errorMessage:g,connector:h,"label-bottom":"_label-bottom_ayf09_256",vertical:v,clickable:M,disabled:k,scrollable:z};exports.clickable=M;exports.complete=p;exports.connector=h;exports.content=m;exports.current=i;exports.default=S;exports.description=u;exports.disabled=k;exports.error=f;exports.errorMessage=g;exports.horizontal=o;exports.indicator=n;exports.item=_;exports.lg=s;exports.list=e;exports.md=l;exports.number=y;exports.optional=d;exports.scrollable=z;exports.sm=r;exports.step=c;exports.stepper=t;exports.title=b;exports.upcoming=a;exports.vertical=v;