@orion-ds/react 4.2.8 → 4.2.9

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 (347) hide show
  1. package/dist/components/Accordion/Accordion.module.css +1 -1
  2. package/dist/components/Card/Card.d.ts.map +1 -1
  3. package/dist/components/Card/Card.module.css +1 -1
  4. package/dist/components/Card/Card.stories.d.ts.map +1 -1
  5. package/dist/components/Card/Card.types.d.ts +2 -0
  6. package/dist/components/Card/Card.types.d.ts.map +1 -1
  7. package/dist/components/CodeEditor/CodeEditor.d.ts.map +1 -1
  8. package/dist/components/CodeEditor/CodeEditor.types.d.ts.map +1 -1
  9. package/dist/components/NavTree/NavTree.d.ts.map +1 -1
  10. package/dist/components/NavTree/NavTree.module.css +1 -1
  11. package/dist/components/NavTree/NavTree.stories.d.ts.map +1 -1
  12. package/dist/components/NavTree/NavTree.types.d.ts +2 -2
  13. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  14. package/dist/components/SearchInput/SearchInput.module.css +1 -1
  15. package/dist/components/SearchInput/SearchInput.stories.d.ts +1 -0
  16. package/dist/components/SearchInput/SearchInput.stories.d.ts.map +1 -1
  17. package/dist/components/SearchInput/SearchInput.types.d.ts +5 -1
  18. package/dist/components/SearchInput/SearchInput.types.d.ts.map +1 -1
  19. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  20. package/dist/components/Tabs/Tabs.module.css +1 -1
  21. package/dist/components/Tabs/Tabs.types.d.ts +6 -0
  22. package/dist/components/Tabs/Tabs.types.d.ts.map +1 -1
  23. package/dist/components/UserMenu/UserMenu.d.ts.map +1 -1
  24. package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.d.ts.map +1 -1
  25. package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.types.d.ts.map +1 -1
  26. package/dist/components/index.d.ts +1 -1
  27. package/dist/components/index.d.ts.map +1 -1
  28. package/dist/examples/LandingPage.example.d.ts.map +1 -1
  29. package/dist/hooks/useTheme.d.ts.map +1 -1
  30. package/dist/index.d.ts +1 -1
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index10.cjs +1 -1
  33. package/dist/index10.mjs +1 -1
  34. package/dist/index100.cjs +1 -1
  35. package/dist/index100.mjs +62 -33
  36. package/dist/index101.cjs +1 -1
  37. package/dist/index101.mjs +16 -24
  38. package/dist/index102.cjs +1 -1
  39. package/dist/index102.mjs +28 -26
  40. package/dist/index103.cjs +1 -1
  41. package/dist/index103.mjs +30 -40
  42. package/dist/index104.cjs +1 -1
  43. package/dist/index104.mjs +40 -53
  44. package/dist/index105.cjs +1 -1
  45. package/dist/index105.mjs +36 -62
  46. package/dist/index106.cjs +1 -1
  47. package/dist/index106.mjs +53 -29
  48. package/dist/index107.cjs +1 -1
  49. package/dist/index107.mjs +46 -20
  50. package/dist/index108.cjs +1 -1
  51. package/dist/index108.mjs +14 -18
  52. package/dist/index109.cjs +1 -1
  53. package/dist/index109.mjs +28 -30
  54. package/dist/index11.cjs +1 -1
  55. package/dist/index11.mjs +1 -1
  56. package/dist/index110.cjs +1 -1
  57. package/dist/index110.mjs +65 -30
  58. package/dist/index111.cjs +1 -1
  59. package/dist/index111.mjs +24 -46
  60. package/dist/index112.cjs +1 -1
  61. package/dist/index112.mjs +35 -52
  62. package/dist/index113.cjs +1 -1
  63. package/dist/index113.mjs +30 -28
  64. package/dist/index114.cjs +1 -1
  65. package/dist/index114.mjs +32 -44
  66. package/dist/index115.cjs +1 -1
  67. package/dist/index115.mjs +57 -12
  68. package/dist/index116.cjs +1 -1
  69. package/dist/index116.mjs +18 -30
  70. package/dist/index117.cjs +1 -1
  71. package/dist/index117.mjs +12 -32
  72. package/dist/index118.cjs +1 -1
  73. package/dist/index118.mjs +64 -33
  74. package/dist/index119.cjs +1 -1
  75. package/dist/index119.mjs +28 -30
  76. package/dist/index12.cjs +1 -1
  77. package/dist/index12.mjs +1 -1
  78. package/dist/index120.cjs +1 -1
  79. package/dist/index120.mjs +32 -35
  80. package/dist/index121.cjs +1 -1
  81. package/dist/index121.mjs +76 -36
  82. package/dist/index122.cjs +1 -1
  83. package/dist/index122.mjs +33 -20
  84. package/dist/index123.cjs +1 -1
  85. package/dist/index123.mjs +40 -14
  86. package/dist/index124.cjs +1 -1
  87. package/dist/index124.mjs +53 -27
  88. package/dist/index125.cjs +1 -1
  89. package/dist/index125.mjs +42 -18
  90. package/dist/index126.cjs +1 -1
  91. package/dist/index126.mjs +19 -37
  92. package/dist/index127.cjs +1 -1
  93. package/dist/index127.mjs +37 -29
  94. package/dist/index128.cjs +1 -1
  95. package/dist/index128.mjs +28 -24
  96. package/dist/index129.cjs +1 -1
  97. package/dist/index129.mjs +36 -28
  98. package/dist/index13.cjs +1 -1
  99. package/dist/index13.mjs +1 -1
  100. package/dist/index130.cjs +1 -1
  101. package/dist/index130.mjs +18 -28
  102. package/dist/index131.cjs +1 -1
  103. package/dist/index131.mjs +18 -28
  104. package/dist/index132.cjs +1 -1
  105. package/dist/index132.mjs +234 -42
  106. package/dist/index133.cjs +1 -1
  107. package/dist/index133.mjs +34 -53
  108. package/dist/index134.cjs +1 -1
  109. package/dist/index134.mjs +44 -37
  110. package/dist/index135.cjs +1 -1
  111. package/dist/index135.mjs +170 -50
  112. package/dist/index136.cjs +1 -1
  113. package/dist/index136.mjs +186 -19
  114. package/dist/index137.cjs +1 -1
  115. package/dist/index137.mjs +27 -153
  116. package/dist/index138.cjs +1 -1
  117. package/dist/index138.mjs +88 -216
  118. package/dist/index139.cjs +1 -1
  119. package/dist/index139.mjs +53 -29
  120. package/dist/index14.cjs +1 -1
  121. package/dist/index14.mjs +1 -1
  122. package/dist/index140.cjs +1 -1
  123. package/dist/index140.mjs +66 -42
  124. package/dist/index141.cjs +1 -1
  125. package/dist/index141.mjs +124 -44
  126. package/dist/index142.cjs +1 -1
  127. package/dist/index142.mjs +108 -16
  128. package/dist/index143.cjs +1 -1
  129. package/dist/index143.mjs +111 -46
  130. package/dist/index144.cjs +1 -1
  131. package/dist/index144.mjs +122 -64
  132. package/dist/index145.cjs +1 -1
  133. package/dist/index145.mjs +214 -30
  134. package/dist/index146.cjs +1 -1
  135. package/dist/index146.mjs +41 -39
  136. package/dist/index147.cjs +1 -1
  137. package/dist/index147.mjs +27 -32
  138. package/dist/index149.cjs +1 -1
  139. package/dist/index149.mjs +46 -62
  140. package/dist/index15.cjs +1 -1
  141. package/dist/index15.mjs +1 -1
  142. package/dist/index150.cjs +1 -1
  143. package/dist/index150.mjs +24 -42
  144. package/dist/index151.cjs +1 -1
  145. package/dist/index151.mjs +24 -24
  146. package/dist/index152.cjs +1 -1
  147. package/dist/index152.mjs +20 -40
  148. package/dist/index153.cjs +1 -1
  149. package/dist/index153.mjs +24 -18
  150. package/dist/index154.cjs +1 -1
  151. package/dist/index154.mjs +28 -76
  152. package/dist/index155.cjs +1 -1
  153. package/dist/index155.mjs +39 -66
  154. package/dist/index156.cjs +1 -1
  155. package/dist/index156.mjs +22 -65
  156. package/dist/index157.cjs +1 -1
  157. package/dist/index157.mjs +63 -39
  158. package/dist/index158.cjs +1 -1
  159. package/dist/index158.mjs +12 -234
  160. package/dist/index159.cjs +1 -1
  161. package/dist/index159.mjs +34 -34
  162. package/dist/index16.cjs +1 -1
  163. package/dist/index16.mjs +73 -69
  164. package/dist/index160.cjs +1 -1
  165. package/dist/index160.mjs +21 -44
  166. package/dist/index161.cjs +1 -1
  167. package/dist/index161.mjs +42 -170
  168. package/dist/index162.cjs +1 -1
  169. package/dist/index162.mjs +21 -186
  170. package/dist/index163.cjs +1 -1
  171. package/dist/index163.mjs +29 -29
  172. package/dist/index164.cjs +1 -1
  173. package/dist/index164.mjs +44 -90
  174. package/dist/index165.cjs +1 -1
  175. package/dist/index165.mjs +63 -53
  176. package/dist/index166.cjs +1 -1
  177. package/dist/index166.mjs +28 -66
  178. package/dist/index167.cjs +1 -1
  179. package/dist/index167.mjs +20 -124
  180. package/dist/index168.cjs +1 -1
  181. package/dist/index168.mjs +67 -108
  182. package/dist/index169.cjs +1 -1
  183. package/dist/index169.mjs +30 -111
  184. package/dist/index17.cjs +1 -1
  185. package/dist/index17.mjs +1 -1
  186. package/dist/index170.cjs +1 -1
  187. package/dist/index170.mjs +24 -122
  188. package/dist/index171.cjs +1 -1
  189. package/dist/index171.mjs +44 -214
  190. package/dist/index172.cjs +1 -1
  191. package/dist/index172.mjs +46 -106
  192. package/dist/index173.cjs +1 -1
  193. package/dist/index173.mjs +28 -22
  194. package/dist/index174.cjs +1 -1
  195. package/dist/index174.mjs +106 -18
  196. package/dist/index175.cjs +1 -1
  197. package/dist/index175.mjs +52 -64
  198. package/dist/index176.cjs +1 -1
  199. package/dist/index176.mjs +45 -18
  200. package/dist/index177.cjs +1 -1
  201. package/dist/index177.mjs +36 -55
  202. package/dist/index178.cjs +1 -1
  203. package/dist/index178.mjs +55 -12
  204. package/dist/index179.cjs +1 -1
  205. package/dist/index179.mjs +50 -38
  206. package/dist/index18.cjs +1 -1
  207. package/dist/index18.mjs +1 -1
  208. package/dist/index180.cjs +1 -1
  209. package/dist/index180.mjs +29 -25
  210. package/dist/index181.cjs +1 -1
  211. package/dist/index181.mjs +52 -45
  212. package/dist/index185.cjs +1 -1
  213. package/dist/index185.mjs +1 -1
  214. package/dist/index19.cjs +1 -1
  215. package/dist/index19.mjs +2 -2
  216. package/dist/index20.cjs +1 -1
  217. package/dist/index20.mjs +14 -14
  218. package/dist/index21.cjs +1 -1
  219. package/dist/index21.mjs +1 -1
  220. package/dist/index22.cjs +1 -1
  221. package/dist/index22.mjs +1 -1
  222. package/dist/index23.cjs +1 -1
  223. package/dist/index23.mjs +56 -36
  224. package/dist/index24.cjs +1 -1
  225. package/dist/index24.mjs +1 -1
  226. package/dist/index25.cjs +1 -1
  227. package/dist/index25.mjs +1 -1
  228. package/dist/index26.cjs +1 -1
  229. package/dist/index26.mjs +1 -1
  230. package/dist/index27.cjs +1 -1
  231. package/dist/index27.mjs +1 -1
  232. package/dist/index28.cjs +1 -1
  233. package/dist/index28.mjs +1 -1
  234. package/dist/index30.cjs +1 -1
  235. package/dist/index30.mjs +1 -1
  236. package/dist/index31.cjs +1 -1
  237. package/dist/index31.mjs +1 -1
  238. package/dist/index32.cjs +1 -1
  239. package/dist/index32.mjs +1 -1
  240. package/dist/index33.cjs +1 -1
  241. package/dist/index33.mjs +1 -1
  242. package/dist/index34.cjs +1 -1
  243. package/dist/index34.mjs +1 -1
  244. package/dist/index35.cjs +1 -1
  245. package/dist/index35.mjs +1 -1
  246. package/dist/index36.cjs +1 -1
  247. package/dist/index36.mjs +1 -1
  248. package/dist/index37.cjs +1 -1
  249. package/dist/index37.mjs +1 -1
  250. package/dist/index38.cjs +1 -1
  251. package/dist/index38.mjs +1 -1
  252. package/dist/index39.cjs +1 -1
  253. package/dist/index39.mjs +1 -1
  254. package/dist/index40.cjs +1 -1
  255. package/dist/index40.mjs +1 -1
  256. package/dist/index42.cjs +1 -1
  257. package/dist/index42.mjs +1 -1
  258. package/dist/index43.cjs +1 -1
  259. package/dist/index43.mjs +1 -1
  260. package/dist/index44.cjs +1 -1
  261. package/dist/index44.mjs +1 -1
  262. package/dist/index46.cjs +1 -1
  263. package/dist/index46.mjs +1 -1
  264. package/dist/index47.cjs +1 -1
  265. package/dist/index47.mjs +1 -1
  266. package/dist/index48.mjs +95 -31
  267. package/dist/index49.cjs +1 -1
  268. package/dist/index49.mjs +1 -1
  269. package/dist/index5.cjs +1 -1
  270. package/dist/index5.mjs +1 -1
  271. package/dist/index50.cjs +1 -1
  272. package/dist/index50.mjs +1 -1
  273. package/dist/index51.cjs +1 -1
  274. package/dist/index51.mjs +1 -1
  275. package/dist/index52.cjs +1 -1
  276. package/dist/index52.mjs +1 -1
  277. package/dist/index53.cjs +1 -1
  278. package/dist/index53.mjs +82 -78
  279. package/dist/index54.cjs +1 -1
  280. package/dist/index54.mjs +1 -1
  281. package/dist/index55.cjs +1 -1
  282. package/dist/index55.mjs +1 -1
  283. package/dist/index56.cjs +1 -1
  284. package/dist/index56.mjs +1 -1
  285. package/dist/index57.cjs +1 -1
  286. package/dist/index57.mjs +1 -1
  287. package/dist/index58.cjs +1 -1
  288. package/dist/index58.mjs +1 -1
  289. package/dist/index59.cjs +1 -1
  290. package/dist/index59.mjs +1 -1
  291. package/dist/index6.cjs +1 -1
  292. package/dist/index6.mjs +1 -1
  293. package/dist/index61.cjs +1 -1
  294. package/dist/index61.mjs +1 -1
  295. package/dist/index62.cjs +1 -1
  296. package/dist/index62.mjs +42 -39
  297. package/dist/index64.cjs +1 -1
  298. package/dist/index64.mjs +1 -1
  299. package/dist/index65.cjs +1 -1
  300. package/dist/index65.mjs +1 -1
  301. package/dist/index66.cjs +1 -1
  302. package/dist/index66.mjs +1 -1
  303. package/dist/index67.cjs +1 -1
  304. package/dist/index67.mjs +1 -1
  305. package/dist/index68.cjs +1 -1
  306. package/dist/index68.mjs +1 -1
  307. package/dist/index69.cjs +1 -1
  308. package/dist/index69.mjs +1 -1
  309. package/dist/index7.cjs +1 -1
  310. package/dist/index7.mjs +1 -1
  311. package/dist/index70.cjs +1 -1
  312. package/dist/index70.mjs +1 -1
  313. package/dist/index71.cjs +1 -1
  314. package/dist/index71.mjs +1 -1
  315. package/dist/index72.cjs +1 -1
  316. package/dist/index72.mjs +17 -15
  317. package/dist/index73.cjs +1 -1
  318. package/dist/index73.mjs +1 -1
  319. package/dist/index76.cjs +1 -1
  320. package/dist/index76.mjs +1 -1
  321. package/dist/index77.cjs +1 -1
  322. package/dist/index77.mjs +1 -1
  323. package/dist/index78.cjs +1 -1
  324. package/dist/index78.mjs +1 -1
  325. package/dist/index79.cjs +1 -1
  326. package/dist/index79.mjs +1 -1
  327. package/dist/index8.cjs +1 -1
  328. package/dist/index8.mjs +1 -1
  329. package/dist/index80.cjs +1 -1
  330. package/dist/index80.mjs +1 -1
  331. package/dist/index81.cjs +1 -1
  332. package/dist/index81.mjs +21 -3
  333. package/dist/index82.cjs +1 -1
  334. package/dist/index82.mjs +2 -2
  335. package/dist/index9.cjs +1 -1
  336. package/dist/index9.mjs +1 -1
  337. package/dist/index94.mjs +3 -1
  338. package/dist/index97.cjs +1 -1
  339. package/dist/index97.mjs +154 -24
  340. package/dist/index98.cjs +1 -1
  341. package/dist/index98.mjs +218 -46
  342. package/dist/index99.cjs +1 -1
  343. package/dist/index99.mjs +30 -55
  344. package/dist/styles.css +6 -5
  345. package/dist/theme.css +1 -0
  346. package/dist/tokens/brands.d.ts.map +1 -1
  347. package/package.json +4 -4
package/dist/index135.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="_navbar_8ho3g_8",e="_solid_8ho3g_23",s="_transparent_8ho3g_27",n="_glass_8ho3g_31",t="_schemeLight_8ho3g_40",_="_schemeDark_8ho3g_46",g="_brand_8ho3g_56",c="_link_8ho3g_60",l="_active_8ho3g_69",a="_toggleLine_8ho3g_74",i="_bordered_8ho3g_101",h="_sticky_8ho3g_109",r="_sm_8ho3g_118",d="_md_8ho3g_122",p="_lg_8ho3g_126",m="_nav_8ho3g_8",b="_actions_8ho3g_207",v="_toggle_8ho3g_74",k="_toggleIcon_8ho3g_241",O="_toggleOpen_8ho3g_260",D="_collapse_8ho3g_277",L="_collapseOpen_8ho3g_281",u="_slideDown_8ho3g_1",y="_collapseActions_8ho3g_317",w={navbar:o,solid:e,transparent:s,glass:n,schemeLight:t,schemeDark:_,brand:g,link:c,active:l,toggleLine:a,bordered:i,sticky:h,sm:r,md:d,lg:p,nav:m,actions:b,toggle:v,toggleIcon:k,toggleOpen:O,collapse:D,collapseOpen:L,slideDown:u,collapseActions:y};exports.actions=b;exports.active=l;exports.bordered=i;exports.brand=g;exports.collapse=D;exports.collapseActions=y;exports.collapseOpen=L;exports.default=w;exports.glass=n;exports.lg=p;exports.link=c;exports.md=d;exports.nav=m;exports.navbar=o;exports.schemeDark=_;exports.schemeLight=t;exports.slideDown=u;exports.sm=r;exports.solid=e;exports.sticky=h;exports.toggle=v;exports.toggleIcon=k;exports.toggleLine=a;exports.toggleOpen=O;exports.transparent=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),t=require("lucide-react"),p=require("./index139.cjs"),y=require("./index144.cjs"),e=require("./index132.cjs"),R=a=>a?new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}).format(a):"",S=a=>{switch(a){case"sending":return s.jsx(t.Clock,{size:12});case"sent":return s.jsx(t.Check,{size:12});case"error":return s.jsx(t.AlertCircle,{size:12});default:return null}},b=({role:a,content:u,timestamp:m,status:i,attachments:d,avatar:C,showAvatar:N,actions:c,isStreaming:k,onImageClick:f,onRetry:g,reaction:l,onReaction:o,children:j,className:h,...x})=>{const r=a==="user",A=a==="system",v=a==="assistant",B=N??!1;return A?s.jsx("div",{className:[e.default.message,h].filter(Boolean).join(" "),role:"listitem",...x,children:s.jsx("div",{className:e.default.messageContent,children:s.jsx("div",{className:e.default.messageBubbleSystem,children:j||u})})}):s.jsxs("div",{className:[e.default.message,r&&e.default.messageUser,v&&e.default.messageAssistant,h].filter(Boolean).join(" "),role:"listitem",...x,children:[B&&s.jsx("div",{className:[e.default.messageAvatar,r?e.default.messageAvatarUser:e.default.messageAvatarAssistant].filter(Boolean).join(" "),"aria-hidden":"true",children:C||(r?s.jsx(t.User,{size:18}):s.jsx(t.Bot,{size:18}))}),s.jsxs("div",{className:e.default.messageContent,children:[s.jsxs("div",{className:[e.default.messageBubble,r?e.default.messageBubbleUser:e.default.messageBubbleAssistant].filter(Boolean).join(" "),children:[j||s.jsx(p.ChatMarkdown,{content:u,className:r?e.default.markdownUser:void 0}),k&&s.jsx("span",{className:e.default.streamingCursor})]}),d&&d.length>0&&s.jsx("div",{className:e.default.messageAttachments,children:d.map(n=>s.jsx(y.ChatAttachment,{attachment:n,onClick:n.type==="image"&&f?()=>f(n):void 0},n.id))}),s.jsxs("div",{className:e.default.messageFooter,children:[m&&s.jsx("span",{className:e.default.messageTimestamp,children:R(m)}),i&&s.jsxs("span",{className:[e.default.messageStatus,i==="error"&&e.default.messageStatusError].filter(Boolean).join(" "),children:[S(i),i==="error"&&"Failed to send"]}),i==="error"&&g&&s.jsxs("button",{className:e.default.messageRetry,onClick:g,"aria-label":"Retry sending message",children:[s.jsx(t.RotateCcw,{size:12}),"Retry"]}),c&&s.jsx("div",{className:e.default.messageActions,children:c}),v&&o&&s.jsxs("div",{className:[e.default.messageReactions,l&&e.default.messageReactionsVisible].filter(Boolean).join(" "),children:[s.jsx("button",{className:[e.default.messageReactionButton,l==="like"&&e.default.messageReactionActive].filter(Boolean).join(" "),onClick:()=>o("like"),"aria-label":"Like this response","aria-pressed":l==="like",children:s.jsx(t.ThumbsUp,{size:14})}),s.jsx("button",{className:[e.default.messageReactionButton,l==="dislike"&&e.default.messageReactionActive].filter(Boolean).join(" "),onClick:()=>o("dislike"),"aria-label":"Dislike this response","aria-pressed":l==="dislike",children:s.jsx(t.ThumbsDown,{size:14})})]})]})]})]})};b.displayName="ChatMessage";exports.ChatMessage=b;
package/dist/index135.mjs CHANGED
@@ -1,53 +1,173 @@
1
- const o = "_navbar_8ho3g_8", _ = "_solid_8ho3g_23", s = "_transparent_8ho3g_27", n = "_glass_8ho3g_31", t = "_schemeLight_8ho3g_40", e = "_schemeDark_8ho3g_46", g = "_brand_8ho3g_56", c = "_link_8ho3g_60", l = "_active_8ho3g_69", a = "_toggleLine_8ho3g_74", h = "_bordered_8ho3g_101", i = "_sticky_8ho3g_109", r = "_sm_8ho3g_118", d = "_md_8ho3g_122", p = "_lg_8ho3g_126", m = "_nav_8ho3g_8", b = "_actions_8ho3g_207", k = "_toggle_8ho3g_74", v = "_toggleIcon_8ho3g_241", D = "_toggleOpen_8ho3g_260", L = "_collapse_8ho3g_277", O = "_collapseOpen_8ho3g_281", y = "_slideDown_8ho3g_1", w = "_collapseActions_8ho3g_317", A = {
2
- navbar: o,
3
- solid: _,
4
- transparent: s,
5
- glass: n,
6
- schemeLight: t,
7
- schemeDark: e,
8
- brand: g,
9
- link: c,
10
- active: l,
11
- toggleLine: a,
12
- bordered: h,
13
- sticky: i,
14
- sm: r,
15
- md: d,
16
- lg: p,
17
- nav: m,
18
- actions: b,
19
- toggle: k,
20
- toggleIcon: v,
21
- toggleOpen: D,
22
- collapse: L,
23
- collapseOpen: O,
24
- slideDown: y,
25
- collapseActions: w
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 "./index139.mjs";
4
+ import { ChatAttachment as D } from "./index144.mjs";
5
+ import e from "./index132.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
+ );
26
169
  };
170
+ E.displayName = "ChatMessage";
27
171
  export {
28
- b as actions,
29
- l as active,
30
- h as bordered,
31
- g as brand,
32
- L as collapse,
33
- w as collapseActions,
34
- O as collapseOpen,
35
- A as default,
36
- n as glass,
37
- p as lg,
38
- c as link,
39
- d as md,
40
- m as nav,
41
- o as navbar,
42
- e as schemeDark,
43
- t as schemeLight,
44
- y as slideDown,
45
- r as sm,
46
- _ as solid,
47
- i as sticky,
48
- k as toggle,
49
- v as toggleIcon,
50
- a as toggleLine,
51
- D as toggleOpen,
52
- s as transparent
172
+ E as ChatMessage
53
173
  };
package/dist/index136.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_container_1tqko_8",o="_tooltip_1tqko_21",e="_tooltipFadeIn_1tqko_1",_="_arrow_1tqko_49",n="_top_1tqko_62",r="_bottom_1tqko_78",i="_left_1tqko_94",l="_right_1tqko_110",a={container:t,tooltip:o,tooltipFadeIn:e,arrow:_,top:n,bottom:r,left:i,right:l};exports.arrow=_;exports.bottom=r;exports.container=t;exports.default=a;exports.left=i;exports.right=l;exports.tooltip=o;exports.tooltipFadeIn=e;exports.top=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),o=require("lucide-react"),_=require("./index85.cjs"),$=require("./index142.cjs"),E=require("./index184.cjs"),a=require("./index132.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;
package/dist/index136.mjs CHANGED
@@ -1,21 +1,188 @@
1
- const t = "_container_1tqko_8", o = "_tooltip_1tqko_21", _ = "_tooltipFadeIn_1tqko_1", n = "_arrow_1tqko_49", r = "_top_1tqko_62", c = "_bottom_1tqko_78", e = "_left_1tqko_94", i = "_right_1tqko_110", s = {
2
- container: t,
3
- tooltip: o,
4
- tooltipFadeIn: _,
5
- arrow: n,
6
- top: r,
7
- bottom: c,
8
- left: e,
9
- right: i
10
- };
1
+ import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
+ import { forwardRef as E, useState as O, useRef as X, useCallback as r } from "react";
3
+ import { X as _, Paperclip as q, Mic as G, Send as H, Image as J, File as Q } from "lucide-react";
4
+ import { useChatInput as Y } from "./index85.mjs";
5
+ import { ChatVoiceRecorder as Z } from "./index142.mjs";
6
+ import { formatFileSize as L } from "./index184.mjs";
7
+ import n from "./index132.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";
11
186
  export {
12
- n as arrow,
13
- c as bottom,
14
- t as container,
15
- s as default,
16
- e as left,
17
- i as right,
18
- o as tooltip,
19
- _ as tooltipFadeIn,
20
- r as top
187
+ te as ChatInput
21
188
  };
package/dist/index137.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={theme:"light",semantic:{surface:{base:"{color.neutral.0}",subtle:"{color.neutral.50}",layer:"{color.neutral.100}",primary:"{color.neutral.100}",secondary:"{color.neutral.50}",glass:"color-mix(in srgb, {color.neutral.0} 70%, transparent)",sunken:"color-mix(in srgb, {color.neutral.0} 40%, transparent)",overlay:"color-mix(in srgb, {color.neutral.1000} 50%, transparent)"},text:{primary:"{color.neutral.900}",secondary:"{color.neutral.500}",tertiary:"{color.neutral.400}",inverse:"{color.neutral.0}",brand:"{color.brand.500}","on-brand":{primary:"{color.neutral.0}",secondary:"color-mix(in srgb, {color.neutral.0} 90%, transparent)",tertiary:"color-mix(in srgb, {color.neutral.0} 70%, transparent)"}},border:{subtle:"{color.neutral.200}",strong:"{color.neutral.300}",interactive:"{color.brand.500}"},interactive:{primary:{default:"{color.brand.500}",hover:"{color.brand.700}",text:"{color.neutral.0}"},secondary:{default:"{color.neutral.100}",hover:"{color.neutral.200}",text:"{color.neutral.900}"},ghost:{hover:"color-mix(in srgb, {color.neutral.1000} 5%, transparent)"}},status:{error:"{color.error.500}",success:"{color.success.500}",warning:"{color.warning.500}",info:"{color.info.500}"},soft:{brand:"color-mix(in srgb, {color.brand.500} 10%, transparent)","brand-hover":"color-mix(in srgb, {color.brand.500} 20%, transparent)",success:"color-mix(in srgb, {color.success.500} 10%, transparent)",error:"color-mix(in srgb, {color.error.500} 10%, transparent)",warning:"color-mix(in srgb, {color.warning.500} 10%, transparent)",info:"color-mix(in srgb, {color.info.500} 10%, transparent)"},focus:{ring:"0 0 0 3px color-mix(in srgb, {color.brand.500} 40%, transparent)"},gradient:{start:"{color.brand.400}",end:"{color.brand.600}"},chart:{1:"{color.brand.500}",2:"{color.brand.300}",3:"{color.brand.700}",4:"{color.success.500}",5:"{color.warning.500}"}}},o={theme:"dark",semantic:{surface:{base:"{color.neutral.900}",subtle:"{color.neutral.950}",layer:"{color.neutral.900}",primary:"{color.neutral.900}",secondary:"{color.neutral.900}",glass:"color-mix(in srgb, {color.neutral.950} 60%, transparent)",sunken:"color-mix(in srgb, {color.neutral.950} 40%, transparent)",overlay:"color-mix(in srgb, {color.neutral.1000} 70%, transparent)"},text:{primary:"{color.neutral.50}",secondary:"{color.neutral.400}",tertiary:"{color.neutral.600}",inverse:"{color.neutral.950}",brand:"{color.brand.400}","on-brand":{primary:"{color.neutral.0}",secondary:"color-mix(in srgb, {color.neutral.0} 90%, transparent)",tertiary:"color-mix(in srgb, {color.neutral.0} 70%, transparent)"}},border:{subtle:"{color.neutral.800}",strong:"{color.neutral.700}",interactive:"{color.brand.500}"},interactive:{primary:{default:"{color.brand.500}",hover:"{color.brand.400}",text:"{color.neutral.900}"},secondary:{default:"{color.neutral.800}",hover:"{color.neutral.700}",text:"{color.neutral.50}"},ghost:{hover:"color-mix(in srgb, {color.neutral.0} 10%, transparent)"}},status:{error:"{color.error.500}",success:"{color.success.500}",warning:"{color.warning.500}",info:"{color.info.500}"},soft:{brand:"color-mix(in srgb, {color.brand.500} 15%, transparent)","brand-hover":"color-mix(in srgb, {color.brand.500} 25%, transparent)",success:"color-mix(in srgb, {color.success.500} 15%, transparent)",error:"color-mix(in srgb, {color.error.500} 15%, transparent)",warning:"color-mix(in srgb, {color.warning.500} 15%, transparent)",info:"color-mix(in srgb, {color.info.500} 15%, transparent)"},focus:{ring:"0 0 0 3px color-mix(in srgb, {color.brand.500} 50%, transparent)"},gradient:{start:"{color.brand.400}",end:"{color.brand.600}"},chart:{1:"{color.brand.400}",2:"{color.brand.200}",3:"{color.brand.600}",4:"{color.success.500}",5:"{color.warning.500}"}}},n={light:r,dark:o};exports.darkTheme=o;exports.lightTheme=r;exports.themes=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),e=require("./index132.cjs"),s=({label:t="Generating response",className:i,...n})=>a.jsx("div",{className:[e.default.message,e.default.messageAssistant,i].filter(Boolean).join(" "),role:"status","aria-live":"polite","aria-label":t,...n,children:a.jsx("div",{className:e.default.messageContent,children:a.jsx("div",{className:[e.default.messageBubble,e.default.messageBubbleAssistant,e.default.thinkingBubble].join(" "),children:a.jsx("span",{className:e.default.thinkingSpinner})})})});s.displayName="ChatTypingIndicator";exports.ChatTypingIndicator=s;
package/dist/index137.mjs CHANGED
@@ -1,157 +1,31 @@
1
- const r = {
2
- theme: "light",
3
- semantic: {
4
- surface: {
5
- base: "{color.neutral.0}",
6
- subtle: "{color.neutral.50}",
7
- layer: "{color.neutral.100}",
8
- primary: "{color.neutral.100}",
9
- secondary: "{color.neutral.50}",
10
- glass: "color-mix(in srgb, {color.neutral.0} 70%, transparent)",
11
- sunken: "color-mix(in srgb, {color.neutral.0} 40%, transparent)",
12
- overlay: "color-mix(in srgb, {color.neutral.1000} 50%, transparent)"
13
- },
14
- text: {
15
- primary: "{color.neutral.900}",
16
- secondary: "{color.neutral.500}",
17
- tertiary: "{color.neutral.400}",
18
- inverse: "{color.neutral.0}",
19
- brand: "{color.brand.500}",
20
- "on-brand": {
21
- primary: "{color.neutral.0}",
22
- secondary: "color-mix(in srgb, {color.neutral.0} 90%, transparent)",
23
- tertiary: "color-mix(in srgb, {color.neutral.0} 70%, transparent)"
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import e from "./index132.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
24
  }
25
- },
26
- border: {
27
- subtle: "{color.neutral.200}",
28
- strong: "{color.neutral.300}",
29
- interactive: "{color.brand.500}"
30
- },
31
- interactive: {
32
- primary: {
33
- default: "{color.brand.500}",
34
- hover: "{color.brand.700}",
35
- text: "{color.neutral.0}"
36
- },
37
- secondary: {
38
- default: "{color.neutral.100}",
39
- hover: "{color.neutral.200}",
40
- text: "{color.neutral.900}"
41
- },
42
- ghost: {
43
- hover: "color-mix(in srgb, {color.neutral.1000} 5%, transparent)"
44
- }
45
- },
46
- status: {
47
- error: "{color.error.500}",
48
- success: "{color.success.500}",
49
- warning: "{color.warning.500}",
50
- info: "{color.info.500}"
51
- },
52
- soft: {
53
- brand: "color-mix(in srgb, {color.brand.500} 10%, transparent)",
54
- "brand-hover": "color-mix(in srgb, {color.brand.500} 20%, transparent)",
55
- success: "color-mix(in srgb, {color.success.500} 10%, transparent)",
56
- error: "color-mix(in srgb, {color.error.500} 10%, transparent)",
57
- warning: "color-mix(in srgb, {color.warning.500} 10%, transparent)",
58
- info: "color-mix(in srgb, {color.info.500} 10%, transparent)"
59
- },
60
- focus: {
61
- ring: "0 0 0 3px color-mix(in srgb, {color.brand.500} 40%, transparent)"
62
- },
63
- gradient: {
64
- start: "{color.brand.400}",
65
- end: "{color.brand.600}"
66
- },
67
- chart: {
68
- 1: "{color.brand.500}",
69
- 2: "{color.brand.300}",
70
- 3: "{color.brand.700}",
71
- 4: "{color.success.500}",
72
- 5: "{color.warning.500}"
73
- }
25
+ ) })
74
26
  }
75
- }, o = {
76
- theme: "dark",
77
- semantic: {
78
- surface: {
79
- base: "{color.neutral.900}",
80
- subtle: "{color.neutral.950}",
81
- layer: "{color.neutral.900}",
82
- primary: "{color.neutral.900}",
83
- secondary: "{color.neutral.900}",
84
- glass: "color-mix(in srgb, {color.neutral.950} 60%, transparent)",
85
- sunken: "color-mix(in srgb, {color.neutral.950} 40%, transparent)",
86
- overlay: "color-mix(in srgb, {color.neutral.1000} 70%, transparent)"
87
- },
88
- text: {
89
- primary: "{color.neutral.50}",
90
- secondary: "{color.neutral.400}",
91
- tertiary: "{color.neutral.600}",
92
- inverse: "{color.neutral.950}",
93
- brand: "{color.brand.400}",
94
- "on-brand": {
95
- primary: "{color.neutral.0}",
96
- secondary: "color-mix(in srgb, {color.neutral.0} 90%, transparent)",
97
- tertiary: "color-mix(in srgb, {color.neutral.0} 70%, transparent)"
98
- }
99
- },
100
- border: {
101
- subtle: "{color.neutral.800}",
102
- strong: "{color.neutral.700}",
103
- interactive: "{color.brand.500}"
104
- },
105
- interactive: {
106
- primary: {
107
- default: "{color.brand.500}",
108
- hover: "{color.brand.400}",
109
- text: "{color.neutral.900}"
110
- },
111
- secondary: {
112
- default: "{color.neutral.800}",
113
- hover: "{color.neutral.700}",
114
- text: "{color.neutral.50}"
115
- },
116
- ghost: {
117
- hover: "color-mix(in srgb, {color.neutral.0} 10%, transparent)"
118
- }
119
- },
120
- status: {
121
- error: "{color.error.500}",
122
- success: "{color.success.500}",
123
- warning: "{color.warning.500}",
124
- info: "{color.info.500}"
125
- },
126
- soft: {
127
- brand: "color-mix(in srgb, {color.brand.500} 15%, transparent)",
128
- "brand-hover": "color-mix(in srgb, {color.brand.500} 25%, transparent)",
129
- success: "color-mix(in srgb, {color.success.500} 15%, transparent)",
130
- error: "color-mix(in srgb, {color.error.500} 15%, transparent)",
131
- warning: "color-mix(in srgb, {color.warning.500} 15%, transparent)",
132
- info: "color-mix(in srgb, {color.info.500} 15%, transparent)"
133
- },
134
- focus: {
135
- ring: "0 0 0 3px color-mix(in srgb, {color.brand.500} 50%, transparent)"
136
- },
137
- gradient: {
138
- start: "{color.brand.400}",
139
- end: "{color.brand.600}"
140
- },
141
- chart: {
142
- 1: "{color.brand.400}",
143
- 2: "{color.brand.200}",
144
- 3: "{color.brand.600}",
145
- 4: "{color.success.500}",
146
- 5: "{color.warning.500}"
147
- }
148
- }
149
- }, n = {
150
- light: r,
151
- dark: o
152
- };
27
+ );
28
+ t.displayName = "ChatTypingIndicator";
153
29
  export {
154
- o as darkTheme,
155
- r as lightTheme,
156
- n as themes
30
+ t as ChatTypingIndicator
157
31
  };