@orion-ds/react 4.8.0 → 4.9.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 (503) 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/index114.cjs +1 -1
  10. package/dist/index114.mjs +1 -1
  11. package/dist/index115.cjs +1 -1
  12. package/dist/index115.mjs +1 -1
  13. package/dist/index116.cjs +1 -1
  14. package/dist/index116.mjs +1 -1
  15. package/dist/index117.cjs +1 -1
  16. package/dist/index117.mjs +1 -1
  17. package/dist/index118.cjs +1 -1
  18. package/dist/index118.mjs +1 -1
  19. package/dist/index119.cjs +1 -1
  20. package/dist/index119.mjs +1 -1
  21. package/dist/index120.cjs +1 -1
  22. package/dist/index120.mjs +2 -2
  23. package/dist/index121.cjs +1 -1
  24. package/dist/index121.mjs +1 -1
  25. package/dist/index122.cjs +1 -1
  26. package/dist/index122.mjs +1 -1
  27. package/dist/index123.cjs +1 -1
  28. package/dist/index123.mjs +1 -1
  29. package/dist/index124.cjs +1 -1
  30. package/dist/index124.mjs +3 -3
  31. package/dist/index125.cjs +1 -1
  32. package/dist/index125.mjs +1 -1
  33. package/dist/index126.cjs +1 -1
  34. package/dist/index126.mjs +2 -2
  35. package/dist/index127.cjs +1 -1
  36. package/dist/index127.mjs +2 -2
  37. package/dist/index128.cjs +1 -1
  38. package/dist/index128.mjs +1 -1
  39. package/dist/index129.cjs +1 -1
  40. package/dist/index129.mjs +1 -1
  41. package/dist/index130.cjs +1 -1
  42. package/dist/index130.mjs +1 -1
  43. package/dist/index131.cjs +1 -1
  44. package/dist/index131.mjs +1 -1
  45. package/dist/index132.cjs +1 -1
  46. package/dist/index132.mjs +3 -3
  47. package/dist/index133.cjs +1 -1
  48. package/dist/index133.mjs +4 -4
  49. package/dist/index134.cjs +1 -1
  50. package/dist/index134.mjs +1 -1
  51. package/dist/index135.cjs +1 -1
  52. package/dist/index135.mjs +1 -1
  53. package/dist/index136.cjs +1 -1
  54. package/dist/index136.mjs +2 -2
  55. package/dist/index137.cjs +1 -1
  56. package/dist/index137.mjs +3 -3
  57. package/dist/index138.cjs +1 -1
  58. package/dist/index138.mjs +1 -1
  59. package/dist/index139.cjs +1 -1
  60. package/dist/index139.mjs +3 -3
  61. package/dist/index140.cjs +1 -1
  62. package/dist/index140.mjs +1 -1
  63. package/dist/index141.cjs +1 -1
  64. package/dist/index141.mjs +2 -2
  65. package/dist/index142.cjs +1 -1
  66. package/dist/index142.mjs +1 -1
  67. package/dist/index144.cjs +1 -1
  68. package/dist/index144.mjs +2 -2
  69. package/dist/index145.cjs +1 -1
  70. package/dist/index145.mjs +1 -1
  71. package/dist/index146.cjs +1 -1
  72. package/dist/index146.mjs +36 -18
  73. package/dist/index147.cjs +1 -1
  74. package/dist/index147.mjs +21 -37
  75. package/dist/index148.cjs +1 -1
  76. package/dist/index148.mjs +12 -28
  77. package/dist/index149.cjs +1 -1
  78. package/dist/index149.mjs +17 -19
  79. package/dist/index150.cjs +1 -1
  80. package/dist/index150.mjs +30 -18
  81. package/dist/index151.cjs +1 -1
  82. package/dist/index151.mjs +36 -26
  83. package/dist/index152.cjs +1 -1
  84. package/dist/index152.mjs +24 -234
  85. package/dist/index153.cjs +1 -1
  86. package/dist/index153.mjs +36 -34
  87. package/dist/index154.cjs +1 -1
  88. package/dist/index154.mjs +36 -43
  89. package/dist/index155.cjs +1 -1
  90. package/dist/index155.mjs +28 -170
  91. package/dist/index156.cjs +1 -1
  92. package/dist/index156.mjs +41 -186
  93. package/dist/index157.cjs +1 -1
  94. package/dist/index157.mjs +19 -29
  95. package/dist/index158.cjs +1 -1
  96. package/dist/index158.mjs +14 -90
  97. package/dist/index159.cjs +1 -1
  98. package/dist/index159.mjs +31 -53
  99. package/dist/index160.cjs +1 -1
  100. package/dist/index160.mjs +18 -66
  101. package/dist/index161.cjs +1 -1
  102. package/dist/index161.mjs +30 -124
  103. package/dist/index162.cjs +1 -1
  104. package/dist/index162.mjs +52 -108
  105. package/dist/index163.cjs +1 -1
  106. package/dist/index163.mjs +52 -111
  107. package/dist/index164.cjs +1 -1
  108. package/dist/index164.mjs +28 -122
  109. package/dist/index165.cjs +1 -1
  110. package/dist/index165.mjs +46 -214
  111. package/dist/index166.cjs +1 -1
  112. package/dist/index166.mjs +50 -62
  113. package/dist/index167.cjs +1 -1
  114. package/dist/index167.mjs +26 -30
  115. package/dist/index168.cjs +1 -1
  116. package/dist/index168.mjs +18 -12
  117. package/dist/index169.cjs +1 -1
  118. package/dist/index169.mjs +38 -33
  119. package/dist/index17.cjs +1 -1
  120. package/dist/index17.mjs +1 -1
  121. package/dist/index170.cjs +1 -1
  122. package/dist/index170.mjs +30 -20
  123. package/dist/index171.cjs +1 -1
  124. package/dist/index171.mjs +57 -20
  125. package/dist/index172.cjs +1 -1
  126. package/dist/index172.mjs +58 -40
  127. package/dist/index173.cjs +1 -1
  128. package/dist/index173.mjs +20 -36
  129. package/dist/index174.cjs +1 -1
  130. package/dist/index174.mjs +16 -32
  131. package/dist/index175.cjs +1 -1
  132. package/dist/index175.mjs +40 -16
  133. package/dist/index176.cjs +1 -1
  134. package/dist/index176.mjs +18 -57
  135. package/dist/index177.cjs +1 -1
  136. package/dist/index177.mjs +62 -18
  137. package/dist/index178.cjs +1 -1
  138. package/dist/index178.mjs +17 -30
  139. package/dist/index179.cjs +1 -1
  140. package/dist/index179.mjs +103 -12
  141. package/dist/index18.cjs +1 -1
  142. package/dist/index18.mjs +1 -1
  143. package/dist/index180.cjs +1 -1
  144. package/dist/index180.mjs +70 -18
  145. package/dist/index181.cjs +1 -1
  146. package/dist/index181.mjs +20 -24
  147. package/dist/index182.cjs +1 -1
  148. package/dist/index182.mjs +44 -46
  149. package/dist/index183.cjs +1 -1
  150. package/dist/index183.mjs +22 -24
  151. package/dist/index184.cjs +1 -1
  152. package/dist/index184.mjs +56 -76
  153. package/dist/index185.cjs +1 -1
  154. package/dist/index185.mjs +54 -28
  155. package/dist/index186.cjs +1 -1
  156. package/dist/index186.mjs +28 -14
  157. package/dist/index187.cjs +1 -1
  158. package/dist/index187.mjs +69 -29
  159. package/dist/index188.cjs +1 -1
  160. package/dist/index188.mjs +42 -22
  161. package/dist/index189.cjs +1 -1
  162. package/dist/index189.mjs +105 -27
  163. package/dist/index19.cjs +1 -1
  164. package/dist/index19.mjs +1 -1
  165. package/dist/index190.cjs +1 -1
  166. package/dist/index190.mjs +40 -38
  167. package/dist/index191.cjs +1 -1
  168. package/dist/index191.mjs +46 -46
  169. package/dist/index192.cjs +1 -1
  170. package/dist/index192.mjs +24 -36
  171. package/dist/index193.cjs +1 -1
  172. package/dist/index193.mjs +27 -24
  173. package/dist/index194.cjs +1 -1
  174. package/dist/index194.mjs +26 -38
  175. package/dist/index195.cjs +1 -1
  176. package/dist/index195.mjs +33 -28
  177. package/dist/index196.cjs +1 -1
  178. package/dist/index196.mjs +44 -40
  179. package/dist/index197.cjs +1 -1
  180. package/dist/index197.mjs +27 -29
  181. package/dist/index198.cjs +1 -1
  182. package/dist/index198.mjs +30 -42
  183. package/dist/index199.cjs +1 -1
  184. package/dist/index199.mjs +32 -54
  185. package/dist/index20.cjs +1 -1
  186. package/dist/index20.mjs +1 -1
  187. package/dist/index200.cjs +1 -1
  188. package/dist/index200.mjs +24 -40
  189. package/dist/index201.cjs +1 -1
  190. package/dist/index201.mjs +28 -28
  191. package/dist/index202.cjs +1 -1
  192. package/dist/index202.mjs +12 -27
  193. package/dist/index203.cjs +1 -1
  194. package/dist/index203.mjs +22 -32
  195. package/dist/index204.cjs +1 -1
  196. package/dist/index204.mjs +66 -45
  197. package/dist/index205.cjs +1 -1
  198. package/dist/index205.mjs +27 -65
  199. package/dist/index206.cjs +1 -1
  200. package/dist/index206.mjs +52 -44
  201. package/dist/index207.cjs +1 -1
  202. package/dist/index207.mjs +24 -52
  203. package/dist/index208.cjs +1 -1
  204. package/dist/index208.mjs +58 -30
  205. package/dist/index209.cjs +1 -1
  206. package/dist/index209.mjs +28 -33
  207. package/dist/index21.cjs +1 -1
  208. package/dist/index21.mjs +1 -1
  209. package/dist/index210.cjs +1 -1
  210. package/dist/index210.mjs +64 -28
  211. package/dist/index211.cjs +1 -1
  212. package/dist/index211.mjs +58 -45
  213. package/dist/index212.cjs +1 -1
  214. package/dist/index212.mjs +20 -64
  215. package/dist/index213.cjs +1 -1
  216. package/dist/index213.mjs +78 -53
  217. package/dist/index214.cjs +1 -1
  218. package/dist/index214.mjs +45 -50
  219. package/dist/index215.cjs +1 -1
  220. package/dist/index215.mjs +106 -30
  221. package/dist/index216.cjs +1 -1
  222. package/dist/index216.mjs +64 -33
  223. package/dist/index217.cjs +1 -1
  224. package/dist/index217.mjs +32 -67
  225. package/dist/index218.cjs +1 -1
  226. package/dist/index218.mjs +36 -55
  227. package/dist/index219.cjs +1 -1
  228. package/dist/index219.mjs +56 -56
  229. package/dist/index22.cjs +1 -1
  230. package/dist/index22.mjs +1 -1
  231. package/dist/index220.cjs +1 -1
  232. package/dist/index220.mjs +234 -24
  233. package/dist/index221.cjs +1 -1
  234. package/dist/index221.mjs +34 -31
  235. package/dist/index222.cjs +1 -1
  236. package/dist/index222.mjs +35 -60
  237. package/dist/index223.cjs +1 -1
  238. package/dist/index223.mjs +166 -99
  239. package/dist/index224.cjs +1 -1
  240. package/dist/index224.mjs +186 -59
  241. package/dist/index225.cjs +1 -1
  242. package/dist/index225.mjs +29 -18
  243. package/dist/index226.cjs +1 -1
  244. package/dist/index226.mjs +90 -58
  245. package/dist/index227.cjs +1 -1
  246. package/dist/index227.mjs +53 -71
  247. package/dist/index228.cjs +1 -1
  248. package/dist/index228.mjs +66 -18
  249. package/dist/index229.cjs +1 -1
  250. package/dist/index229.mjs +124 -64
  251. package/dist/index23.cjs +1 -1
  252. package/dist/index23.mjs +1 -1
  253. package/dist/index230.cjs +1 -1
  254. package/dist/index230.mjs +108 -20
  255. package/dist/index231.cjs +1 -1
  256. package/dist/index231.mjs +111 -42
  257. package/dist/index232.cjs +1 -1
  258. package/dist/index232.mjs +122 -62
  259. package/dist/index233.cjs +1 -1
  260. package/dist/index233.mjs +214 -18
  261. package/dist/index234.cjs +1 -1
  262. package/dist/index234.mjs +47 -105
  263. package/dist/index235.cjs +1 -1
  264. package/dist/index235.mjs +55 -22
  265. package/dist/index236.cjs +1 -1
  266. package/dist/index236.mjs +40 -40
  267. package/dist/index237.cjs +1 -1
  268. package/dist/index237.mjs +30 -78
  269. package/dist/index238.cjs +1 -1
  270. package/dist/index238.mjs +42 -56
  271. package/dist/index239.cjs +1 -1
  272. package/dist/index239.mjs +65 -52
  273. package/dist/index24.cjs +1 -1
  274. package/dist/index24.mjs +1 -1
  275. package/dist/index240.cjs +1 -1
  276. package/dist/index240.mjs +18 -27
  277. package/dist/index241.cjs +1 -1
  278. package/dist/index241.mjs +33 -40
  279. package/dist/index242.cjs +1 -1
  280. package/dist/index242.mjs +53 -106
  281. package/dist/index243.cjs +1 -1
  282. package/dist/index243.mjs +76 -52
  283. package/dist/index244.cjs +1 -1
  284. package/dist/index244.mjs +14 -45
  285. package/dist/index245.cjs +1 -1
  286. package/dist/index245.mjs +28 -50
  287. package/dist/index246.cjs +1 -1
  288. package/dist/index246.mjs +10 -36
  289. package/dist/index247.cjs +1 -1
  290. package/dist/index247.mjs +22 -34
  291. package/dist/index248.cjs +1 -1
  292. package/dist/index248.mjs +50 -30
  293. package/dist/index249.cjs +1 -1
  294. package/dist/index249.mjs +19 -116
  295. package/dist/index25.cjs +1 -1
  296. package/dist/index25.mjs +1 -1
  297. package/dist/index250.cjs +1 -1
  298. package/dist/index250.mjs +47 -194
  299. package/dist/index251.cjs +1 -1
  300. package/dist/index251.mjs +14 -44
  301. package/dist/index252.cjs +1 -1
  302. package/dist/index252.mjs +28 -22
  303. package/dist/index253.cjs +1 -1
  304. package/dist/index253.mjs +22 -17
  305. package/dist/index254.cjs +1 -1
  306. package/dist/index254.mjs +32 -18
  307. package/dist/index255.cjs +1 -1
  308. package/dist/index255.mjs +44 -46
  309. package/dist/index256.cjs +1 -1
  310. package/dist/index256.mjs +45 -14
  311. package/dist/index257.cjs +1 -1
  312. package/dist/index257.mjs +38 -26
  313. package/dist/index258.cjs +1 -1
  314. package/dist/index258.mjs +117 -14
  315. package/dist/index259.cjs +1 -1
  316. package/dist/index259.mjs +194 -23
  317. package/dist/index26.cjs +1 -1
  318. package/dist/index26.mjs +1 -1
  319. package/dist/index260.cjs +1 -1
  320. package/dist/index260.mjs +39 -45
  321. package/dist/index261.cjs +1 -1
  322. package/dist/index261.mjs +10 -36
  323. package/dist/index262.cjs +1 -1
  324. package/dist/index262.mjs +16 -15
  325. package/dist/index263.cjs +1 -1
  326. package/dist/index263.mjs +35 -56
  327. package/dist/index264.cjs +1 -1
  328. package/dist/index264.mjs +56 -31
  329. package/dist/index265.cjs +1 -1
  330. package/dist/index265.mjs +31 -16
  331. package/dist/index266.cjs +1 -1
  332. package/dist/index266.mjs +44 -34
  333. package/dist/index267.cjs +1 -1
  334. package/dist/index267.mjs +22 -32
  335. package/dist/index268.cjs +1 -1
  336. package/dist/index268.mjs +36 -36
  337. package/dist/index269.cjs +1 -1
  338. package/dist/index269.mjs +34 -30
  339. package/dist/index27.cjs +1 -1
  340. package/dist/index27.mjs +1 -1
  341. package/dist/index270.cjs +1 -1
  342. package/dist/index270.mjs +18 -8
  343. package/dist/index271.cjs +1 -1
  344. package/dist/index271.mjs +30 -22
  345. package/dist/index272.cjs +1 -1
  346. package/dist/index272.mjs +47 -23
  347. package/dist/index273.cjs +1 -1
  348. package/dist/index273.mjs +39 -47
  349. package/dist/index274.cjs +1 -1
  350. package/dist/index274.mjs +17 -38
  351. package/dist/index277.cjs +1 -1
  352. package/dist/index277.mjs +24 -9
  353. package/dist/index278.cjs +1 -1
  354. package/dist/index278.mjs +71 -51
  355. package/dist/index279.cjs +1 -1
  356. package/dist/index279.mjs +174 -25
  357. package/dist/index28.cjs +1 -1
  358. package/dist/index28.mjs +1 -1
  359. package/dist/index280.cjs +1 -1
  360. package/dist/index280.mjs +56 -74
  361. package/dist/index281.cjs +1 -1
  362. package/dist/index281.mjs +29 -174
  363. package/dist/index282.cjs +1 -1
  364. package/dist/index282.mjs +40 -56
  365. package/dist/index283.cjs +1 -1
  366. package/dist/index283.mjs +40 -28
  367. package/dist/index284.cjs +1 -1
  368. package/dist/index284.mjs +112 -41
  369. package/dist/index285.cjs +1 -1
  370. package/dist/index285.mjs +12 -40
  371. package/dist/index286.cjs +1 -1
  372. package/dist/index286.mjs +39 -112
  373. package/dist/index287.cjs +1 -1
  374. package/dist/index287.mjs +26 -12
  375. package/dist/index288.cjs +1 -1
  376. package/dist/index288.mjs +46 -38
  377. package/dist/index289.cjs +1 -1
  378. package/dist/index289.mjs +9 -26
  379. package/dist/index29.cjs +1 -1
  380. package/dist/index29.mjs +1 -1
  381. package/dist/index290.cjs +1 -1
  382. package/dist/index290.mjs +54 -46
  383. package/dist/index30.cjs +1 -1
  384. package/dist/index30.mjs +1 -1
  385. package/dist/index31.cjs +1 -1
  386. package/dist/index31.mjs +2 -2
  387. package/dist/index32.cjs +1 -1
  388. package/dist/index32.mjs +14 -14
  389. package/dist/index33.cjs +1 -1
  390. package/dist/index33.mjs +1 -1
  391. package/dist/index34.cjs +1 -1
  392. package/dist/index34.mjs +1 -1
  393. package/dist/index35.cjs +1 -1
  394. package/dist/index35.mjs +1 -1
  395. package/dist/index36.cjs +1 -1
  396. package/dist/index36.mjs +1 -1
  397. package/dist/index37.cjs +1 -1
  398. package/dist/index37.mjs +1 -1
  399. package/dist/index38.cjs +1 -1
  400. package/dist/index38.mjs +1 -1
  401. package/dist/index39.cjs +1 -1
  402. package/dist/index39.mjs +1 -1
  403. package/dist/index40.cjs +1 -1
  404. package/dist/index40.mjs +1 -1
  405. package/dist/index41.cjs +1 -1
  406. package/dist/index41.mjs +1 -1
  407. package/dist/index42.cjs +1 -1
  408. package/dist/index42.mjs +1 -1
  409. package/dist/index43.cjs +1 -1
  410. package/dist/index43.mjs +1 -1
  411. package/dist/index44.cjs +1 -1
  412. package/dist/index44.mjs +1 -1
  413. package/dist/index45.cjs +1 -1
  414. package/dist/index45.mjs +1 -1
  415. package/dist/index46.cjs +1 -1
  416. package/dist/index46.mjs +1 -1
  417. package/dist/index47.cjs +1 -1
  418. package/dist/index47.mjs +1 -1
  419. package/dist/index48.cjs +1 -1
  420. package/dist/index48.mjs +1 -1
  421. package/dist/index49.cjs +1 -1
  422. package/dist/index49.mjs +1 -1
  423. package/dist/index50.cjs +1 -1
  424. package/dist/index50.mjs +1 -1
  425. package/dist/index51.cjs +1 -1
  426. package/dist/index51.mjs +1 -1
  427. package/dist/index52.cjs +1 -1
  428. package/dist/index52.mjs +1 -1
  429. package/dist/index54.cjs +1 -1
  430. package/dist/index54.mjs +1 -1
  431. package/dist/index55.cjs +1 -1
  432. package/dist/index55.mjs +1 -1
  433. package/dist/index56.cjs +1 -1
  434. package/dist/index56.mjs +1 -1
  435. package/dist/index58.cjs +1 -1
  436. package/dist/index58.mjs +1 -1
  437. package/dist/index59.cjs +1 -1
  438. package/dist/index59.mjs +1 -1
  439. package/dist/index61.cjs +1 -1
  440. package/dist/index61.mjs +1 -1
  441. package/dist/index62.cjs +1 -1
  442. package/dist/index62.mjs +1 -1
  443. package/dist/index63.cjs +1 -1
  444. package/dist/index63.mjs +1 -1
  445. package/dist/index64.cjs +1 -1
  446. package/dist/index64.mjs +1 -1
  447. package/dist/index65.cjs +1 -1
  448. package/dist/index65.mjs +1 -1
  449. package/dist/index66.cjs +1 -1
  450. package/dist/index66.mjs +1 -1
  451. package/dist/index67.cjs +1 -1
  452. package/dist/index67.mjs +1 -1
  453. package/dist/index68.cjs +1 -1
  454. package/dist/index68.mjs +1 -1
  455. package/dist/index69.cjs +1 -1
  456. package/dist/index69.mjs +1 -1
  457. package/dist/index70.cjs +1 -1
  458. package/dist/index70.mjs +1 -1
  459. package/dist/index71.cjs +1 -1
  460. package/dist/index71.mjs +1 -1
  461. package/dist/index72.cjs +1 -1
  462. package/dist/index72.mjs +1 -1
  463. package/dist/index73.cjs +1 -1
  464. package/dist/index73.mjs +1 -1
  465. package/dist/index74.cjs +1 -1
  466. package/dist/index74.mjs +1 -1
  467. package/dist/index75.cjs +1 -1
  468. package/dist/index75.mjs +1 -1
  469. package/dist/index76.cjs +1 -1
  470. package/dist/index76.mjs +1 -1
  471. package/dist/index77.cjs +1 -1
  472. package/dist/index77.mjs +1 -1
  473. package/dist/index78.cjs +1 -1
  474. package/dist/index78.mjs +1 -1
  475. package/dist/index79.cjs +1 -1
  476. package/dist/index79.mjs +1 -1
  477. package/dist/index80.cjs +1 -1
  478. package/dist/index80.mjs +1 -1
  479. package/dist/index81.cjs +1 -1
  480. package/dist/index81.mjs +1 -1
  481. package/dist/index82.cjs +1 -1
  482. package/dist/index82.mjs +1 -1
  483. package/dist/index83.cjs +1 -1
  484. package/dist/index83.mjs +1 -1
  485. package/dist/index84.cjs +1 -1
  486. package/dist/index84.mjs +1 -1
  487. package/dist/index85.cjs +1 -1
  488. package/dist/index85.mjs +1 -1
  489. package/dist/index86.cjs +1 -1
  490. package/dist/index86.mjs +1 -1
  491. package/dist/index89.cjs +1 -1
  492. package/dist/index89.mjs +1 -1
  493. package/dist/index90.cjs +1 -1
  494. package/dist/index90.mjs +1 -1
  495. package/dist/index91.cjs +1 -1
  496. package/dist/index91.mjs +1 -1
  497. package/dist/index92.cjs +1 -1
  498. package/dist/index92.mjs +1 -1
  499. package/dist/index93.cjs +1 -1
  500. package/dist/index93.mjs +1 -1
  501. package/dist/index94.cjs +1 -1
  502. package/dist/index94.mjs +1 -1
  503. package/package.json +1 -1
package/dist/index155.mjs CHANGED
@@ -1,173 +1,31 @@
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 "./index159.mjs";
4
- import { ChatAttachment as D } from "./index164.mjs";
5
- import e from "./index152.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_faue8_8", o = "_tooltip_faue8_17", e = "_tooltipLabel_faue8_27", l = "_tooltipItems_faue8_35", _ = "_tooltipItem_faue8_35", i = "_tooltipDot_faue8_47", n = "_tooltipLine_faue8_54", a = "_tooltipDashed_faue8_60", p = "_tooltipName_faue8_67", s = "_tooltipValue_faue8_71", c = "_legend_faue8_82", u = "_legendItem_faue8_92", f = "_legendDot_faue8_99", d = {
2
+ container: t,
3
+ tooltip: o,
4
+ tooltipLabel: e,
5
+ tooltipItems: l,
6
+ tooltipItem: _,
7
+ tooltipDot: i,
8
+ tooltipLine: n,
9
+ tooltipDashed: a,
10
+ tooltipName: p,
11
+ tooltipValue: s,
12
+ legend: c,
13
+ legendItem: u,
14
+ legendDot: f
169
15
  };
170
- E.displayName = "ChatMessage";
171
16
  export {
172
- E as ChatMessage
17
+ t as container,
18
+ d as default,
19
+ c as legend,
20
+ f as legendDot,
21
+ u as legendItem,
22
+ o as tooltip,
23
+ a as tooltipDashed,
24
+ i as tooltipDot,
25
+ _ as tooltipItem,
26
+ l as tooltipItems,
27
+ e as tooltipLabel,
28
+ n as tooltipLine,
29
+ p as tooltipName,
30
+ s as tooltipValue
173
31
  };
package/dist/index156.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("./index96.cjs"),$=require("./index162.cjs"),E=require("./index277.cjs"),a=require("./index152.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 n="_button_g3h5h_9",o="_primary_g3h5h_49",s="_secondary_g3h5h_63",t="_secondaryInverse_g3h5h_100",_="_ghost_g3h5h_118",e="_ghostInverse_g3h5h_133",h="_danger_g3h5h_147",g="_inverse_g3h5h_166",i="_sm_g3h5h_193",c="_md_g3h5h_200",r="_lg_g3h5h_207",d="_fullWidth_g3h5h_219",l="_iconOnly_g3h5h_224",a="_loading_g3h5h_242",y="_spinner_g3h5h_247",u="_spin_g3h5h_247",v="_loadingContent_g3h5h_325",m="_icon_g3h5h_224",p="_iconRight_g3h5h_423",I={button:n,primary:o,secondary:s,secondaryInverse:t,ghost:_,ghostInverse:e,danger:h,inverse:g,sm:i,md:c,lg:r,fullWidth:d,iconOnly:l,loading:a,spinner:y,spin:u,loadingContent:v,icon:m,iconRight:p};exports.button=n;exports.danger=h;exports.default=I;exports.fullWidth=d;exports.ghost=_;exports.ghostInverse=e;exports.icon=m;exports.iconOnly=l;exports.iconRight=p;exports.inverse=g;exports.lg=r;exports.loading=a;exports.loadingContent=v;exports.md=c;exports.primary=o;exports.secondary=s;exports.secondaryInverse=t;exports.sm=i;exports.spin=u;exports.spinner=y;
package/dist/index156.mjs CHANGED
@@ -1,188 +1,43 @@
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 "./index96.mjs";
5
- import { ChatVoiceRecorder as Z } from "./index162.mjs";
6
- import { formatFileSize as L } from "./index277.mjs";
7
- import n from "./index152.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 n = "_button_g3h5h_9", _ = "_primary_g3h5h_49", o = "_secondary_g3h5h_63", s = "_secondaryInverse_g3h5h_100", h = "_ghost_g3h5h_118", t = "_ghostInverse_g3h5h_133", g = "_danger_g3h5h_147", e = "_inverse_g3h5h_166", c = "_sm_g3h5h_193", i = "_md_g3h5h_200", r = "_lg_g3h5h_207", d = "_fullWidth_g3h5h_219", a = "_iconOnly_g3h5h_224", l = "_loading_g3h5h_242", y = "_spinner_g3h5h_247", p = "_spin_g3h5h_247", m = "_loadingContent_g3h5h_325", v = "_icon_g3h5h_224", u = "_iconRight_g3h5h_423", I = {
2
+ button: n,
3
+ primary: _,
4
+ secondary: o,
5
+ secondaryInverse: s,
6
+ ghost: h,
7
+ ghostInverse: t,
8
+ danger: g,
9
+ inverse: e,
10
+ sm: c,
11
+ md: i,
12
+ lg: r,
13
+ fullWidth: d,
14
+ iconOnly: a,
15
+ loading: l,
16
+ spinner: y,
17
+ spin: p,
18
+ loadingContent: m,
19
+ icon: v,
20
+ iconRight: u
21
+ };
186
22
  export {
187
- te as ChatInput
23
+ n as button,
24
+ g as danger,
25
+ I as default,
26
+ d as fullWidth,
27
+ h as ghost,
28
+ t as ghostInverse,
29
+ v as icon,
30
+ a as iconOnly,
31
+ u as iconRight,
32
+ e as inverse,
33
+ r as lg,
34
+ l as loading,
35
+ m as loadingContent,
36
+ i as md,
37
+ _ as primary,
38
+ o as secondary,
39
+ s as secondaryInverse,
40
+ c as sm,
41
+ p as spin,
42
+ y as spinner
188
43
  };
package/dist/index157.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),e=require("./index152.cjs"),s=({label:t="Generating response",className:i,...n})=>a.jsx("div",{className:[e.default.message,e.default.messageAssistant,i].filter(Boolean).join(" "),role:"status","aria-live":"polite","aria-label":t,...n,children:a.jsx("div",{className:e.default.messageContent,children:a.jsx("div",{className:[e.default.messageBubble,e.default.messageBubbleAssistant,e.default.thinkingBubble].join(" "),children:a.jsx("span",{className:e.default.thinkingSpinner})})})});s.displayName="ChatTypingIndicator";exports.ChatTypingIndicator=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_wrapper_mndyh_7",t="_trigger_mndyh_13",r="_triggerIcon_mndyh_19",o="_placeholder_mndyh_24",p="_popover_mndyh_29",n="_popoverContent_mndyh_38",s="_presets_mndyh_43",_="_presetButton_mndyh_51",c={wrapper:e,trigger:t,triggerIcon:r,placeholder:o,popover:p,popoverContent:n,presets:s,presetButton:_};exports.default=c;exports.placeholder=o;exports.popover=p;exports.popoverContent=n;exports.presetButton=_;exports.presets=s;exports.trigger=t;exports.triggerIcon=r;exports.wrapper=e;
package/dist/index157.mjs CHANGED
@@ -1,31 +1,21 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import e from "./index152.mjs";
3
- const t = ({
4
- label: a = "Generating response",
5
- className: i,
6
- ...n
7
- }) => /* @__PURE__ */ s(
8
- "div",
9
- {
10
- className: [e.message, e.messageAssistant, i].filter(Boolean).join(" "),
11
- role: "status",
12
- "aria-live": "polite",
13
- "aria-label": a,
14
- ...n,
15
- children: /* @__PURE__ */ s("div", { className: e.messageContent, children: /* @__PURE__ */ s(
16
- "div",
17
- {
18
- className: [
19
- e.messageBubble,
20
- e.messageBubbleAssistant,
21
- e.thinkingBubble
22
- ].join(" "),
23
- children: /* @__PURE__ */ s("span", { className: e.thinkingSpinner })
24
- }
25
- ) })
26
- }
27
- );
28
- t.displayName = "ChatTypingIndicator";
1
+ const e = "_wrapper_mndyh_7", t = "_trigger_mndyh_13", o = "_triggerIcon_mndyh_19", r = "_placeholder_mndyh_24", n = "_popover_mndyh_29", p = "_popoverContent_mndyh_38", _ = "_presets_mndyh_43", s = "_presetButton_mndyh_51", c = {
2
+ wrapper: e,
3
+ trigger: t,
4
+ triggerIcon: o,
5
+ placeholder: r,
6
+ popover: n,
7
+ popoverContent: p,
8
+ presets: _,
9
+ presetButton: s
10
+ };
29
11
  export {
30
- t as ChatTypingIndicator
12
+ c as default,
13
+ r as placeholder,
14
+ n as popover,
15
+ p as popoverContent,
16
+ s as presetButton,
17
+ _ as presets,
18
+ t as trigger,
19
+ o as triggerIcon,
20
+ e as wrapper
31
21
  };
package/dist/index158.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),f=require("react-syntax-highlighter"),d=require("react-syntax-highlighter/dist/esm/styles/prism"),u=require("lucide-react"),o=require("./index152.cjs"),k=require("./index88.cjs"),b=t=>t?{js:"javascript",ts:"typescript",jsx:"jsx",tsx:"tsx",py:"python",rb:"ruby",sh:"bash",shell:"bash",yml:"yaml",md:"markdown"}[t.toLowerCase()]||t.toLowerCase():"text",h=({code:t,language:s,showLineNumbers:m=!1,showCopyButton:p=!0,maxHeight:y="400px",className:C,...x})=>{const[a,r]=n.useState(!1);let c="dark";try{c=k.useThemeContext().theme}catch{}const g=n.useCallback(async()=>{try{await navigator.clipboard.writeText(t),r(!0),setTimeout(()=>r(!1),2e3)}catch(l){console.error("Failed to copy code:",l)}},[t]),i=b(s),j=c==="light"?d.oneLight:d.oneDark;return e.jsxs("div",{className:[o.default.codeBlock,C].filter(Boolean).join(" "),...x,children:[e.jsxs("div",{className:o.default.codeBlockHeader,children:[e.jsx("span",{className:o.default.codeBlockLanguage,children:i}),p&&e.jsx("button",{className:[o.default.codeBlockCopy,a&&o.default.codeBlockCopied].filter(Boolean).join(" "),onClick:g,"aria-label":a?"Copied!":"Copy code",children:a?e.jsxs(e.Fragment,{children:[e.jsx(u.Check,{size:14}),"Copied!"]}):e.jsxs(e.Fragment,{children:[e.jsx(u.Copy,{size:14}),"Copy"]})})]}),e.jsx("div",{className:o.default.codeBlockContent,style:{maxHeight:y},children:e.jsx(f.Prism,{language:i,style:j,showLineNumbers:m,customStyle:{margin:0,padding:0,background:"transparent",fontSize:"inherit",lineHeight:"inherit"},codeTagProps:{style:{fontFamily:"var(--font-mono)"}},children:t})})]})};h.displayName="ChatCodeBlock";exports.ChatCodeBlock=h;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_toggle_1lj29_3",l="_pressed_1lj29_38",s="_outline_1lj29_49",t="_sm_1lj29_67",o="_md_1lj29_75",_="_lg_1lj29_83",g={toggle:e,pressed:l,outline:s,sm:t,md:o,lg:_};exports.default=g;exports.lg=_;exports.md=o;exports.outline=s;exports.pressed=l;exports.sm=t;exports.toggle=e;
package/dist/index158.mjs CHANGED
@@ -1,93 +1,17 @@
1
- import { jsxs as r, jsx as o, Fragment as d } from "react/jsx-runtime";
2
- import { useState as g, useCallback as k } from "react";
3
- import { Prism as x } from "react-syntax-highlighter";
4
- import { oneLight as B, oneDark as b } from "react-syntax-highlighter/dist/esm/styles/prism";
5
- import { Check as j, Copy as v } from "lucide-react";
6
- import t from "./index152.mjs";
7
- import { useThemeContext as L } from "./index88.mjs";
8
- const N = (e) => e ? {
9
- js: "javascript",
10
- ts: "typescript",
11
- jsx: "jsx",
12
- tsx: "tsx",
13
- py: "python",
14
- rb: "ruby",
15
- sh: "bash",
16
- shell: "bash",
17
- yml: "yaml",
18
- md: "markdown"
19
- }[e.toLowerCase()] || e.toLowerCase() : "text", w = ({
20
- code: e,
21
- language: s,
22
- showLineNumbers: m = !1,
23
- showCopyButton: p = !0,
24
- maxHeight: h = "400px",
25
- className: y,
26
- ...C
27
- }) => {
28
- const [a, i] = g(!1);
29
- let l = "dark";
30
- try {
31
- l = L().theme;
32
- } catch {
33
- }
34
- const u = k(async () => {
35
- try {
36
- await navigator.clipboard.writeText(e), i(!0), setTimeout(() => i(!1), 2e3);
37
- } catch (n) {
38
- console.error("Failed to copy code:", n);
39
- }
40
- }, [e]), c = N(s), f = l === "light" ? B : b;
41
- return /* @__PURE__ */ r(
42
- "div",
43
- {
44
- className: [t.codeBlock, y].filter(Boolean).join(" "),
45
- ...C,
46
- children: [
47
- /* @__PURE__ */ r("div", { className: t.codeBlockHeader, children: [
48
- /* @__PURE__ */ o("span", { className: t.codeBlockLanguage, children: c }),
49
- p && /* @__PURE__ */ o(
50
- "button",
51
- {
52
- className: [t.codeBlockCopy, a && t.codeBlockCopied].filter(Boolean).join(" "),
53
- onClick: u,
54
- "aria-label": a ? "Copied!" : "Copy code",
55
- children: a ? /* @__PURE__ */ r(d, { children: [
56
- /* @__PURE__ */ o(j, { size: 14 }),
57
- "Copied!"
58
- ] }) : /* @__PURE__ */ r(d, { children: [
59
- /* @__PURE__ */ o(v, { size: 14 }),
60
- "Copy"
61
- ] })
62
- }
63
- )
64
- ] }),
65
- /* @__PURE__ */ o("div", { className: t.codeBlockContent, style: { maxHeight: h }, children: /* @__PURE__ */ o(
66
- x,
67
- {
68
- language: c,
69
- style: f,
70
- showLineNumbers: m,
71
- customStyle: {
72
- margin: 0,
73
- padding: 0,
74
- background: "transparent",
75
- fontSize: "inherit",
76
- lineHeight: "inherit"
77
- },
78
- codeTagProps: {
79
- style: {
80
- fontFamily: "var(--font-mono)"
81
- }
82
- },
83
- children: e
84
- }
85
- ) })
86
- ]
87
- }
88
- );
1
+ const s = "_toggle_1lj29_3", _ = "_pressed_1lj29_38", l = "_outline_1lj29_49", t = "_sm_1lj29_67", e = "_md_1lj29_75", o = "_lg_1lj29_83", n = {
2
+ toggle: s,
3
+ pressed: _,
4
+ outline: l,
5
+ sm: t,
6
+ md: e,
7
+ lg: o
89
8
  };
90
- w.displayName = "ChatCodeBlock";
91
9
  export {
92
- w as ChatCodeBlock
10
+ n as default,
11
+ o as lg,
12
+ e as md,
13
+ l as outline,
14
+ _ as pressed,
15
+ t as sm,
16
+ s as toggle
93
17
  };
package/dist/index159.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),d=require("react-markdown"),u=require("remark-gfm"),m=require("./index158.cjs"),g=require("./index152.cjs"),o=({content:s,className:c,...i})=>r.jsx("div",{className:[g.default.markdown,c].filter(Boolean).join(" "),...i,children:r.jsx(d,{remarkPlugins:[u],components:{code({className:e,children:t,...a}){const n=/language-(\w+)/.exec(e||"");if(!n)return r.jsx("code",{className:e,...a,children:t});const l=String(t).replace(/\n$/,"");return r.jsx(m.ChatCodeBlock,{code:l,language:n[1]})},pre({children:e}){return r.jsx(r.Fragment,{children:e})},a({href:e,children:t,...a}){const n=e?.startsWith("http");return r.jsx("a",{href:e,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0,...a,children:t})}},children:s})});o.displayName="ChatMarkdown";exports.ChatMarkdown=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_selectContainer_fwlz9_10",l="_fullWidth_fwlz9_16",r="_label_fwlz9_21",o="_optional_fwlz9_31",t="_selectWrapper_fwlz9_38",s="_select_fwlz9_10",_="_error_fwlz9_113",c="_placeholder_fwlz9_128",n="_sm_fwlz9_133",a="_md_fwlz9_139",p="_lg_fwlz9_145",f="_helperText_fwlz9_152",d="_errorMessage_fwlz9_159",i="_errorIcon_fwlz9_168",w={selectContainer:e,fullWidth:l,label:r,optional:o,selectWrapper:t,select:s,error:_,placeholder:c,sm:n,md:a,lg:p,helperText:f,errorMessage:d,errorIcon:i};exports.default=w;exports.error=_;exports.errorIcon=i;exports.errorMessage=d;exports.fullWidth=l;exports.helperText=f;exports.label=r;exports.lg=p;exports.md=a;exports.optional=o;exports.placeholder=c;exports.select=s;exports.selectContainer=e;exports.selectWrapper=t;exports.sm=n;