@orion-ds/react 4.2.5 → 4.2.8

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 (356) hide show
  1. package/dist/components/Alert/Alert.d.ts.map +1 -1
  2. package/dist/components/Alert/Alert.module.css +1 -1
  3. package/dist/components/Alert/Alert.stories.d.ts +2 -1
  4. package/dist/components/Alert/Alert.stories.d.ts.map +1 -1
  5. package/dist/components/Alert/Alert.types.d.ts +1 -1
  6. package/dist/components/Alert/Alert.types.d.ts.map +1 -1
  7. package/dist/components/Badge/Badge.module.css +1 -1
  8. package/dist/components/Badge/Badge.stories.d.ts +2 -2
  9. package/dist/components/Badge/Badge.stories.d.ts.map +1 -1
  10. package/dist/components/Badge/Badge.types.d.ts +2 -2
  11. package/dist/components/Badge/Badge.types.d.ts.map +1 -1
  12. package/dist/components/Button/Button.module.css +1 -1
  13. package/dist/components/Card/Card.module.css +1 -1
  14. package/dist/components/Card/Card.stories.d.ts +1 -1
  15. package/dist/components/Card/Card.stories.d.ts.map +1 -1
  16. package/dist/components/Card/Card.types.d.ts +1 -1
  17. package/dist/components/Card/Card.types.d.ts.map +1 -1
  18. package/dist/components/Chip/Chip.module.css +1 -1
  19. package/dist/components/Chip/Chip.stories.d.ts +1 -1
  20. package/dist/components/Chip/Chip.stories.d.ts.map +1 -1
  21. package/dist/components/Chip/Chip.types.d.ts +1 -1
  22. package/dist/components/Chip/Chip.types.d.ts.map +1 -1
  23. package/dist/components/Field/Field.module.css +1 -1
  24. package/dist/components/Field/Field.stories.d.ts +5 -0
  25. package/dist/components/Field/Field.stories.d.ts.map +1 -1
  26. package/dist/components/SearchInput/SearchInput.module.css +1 -1
  27. package/dist/components/Select/Select.module.css +1 -1
  28. package/dist/components/Textarea/Textarea.module.css +1 -1
  29. package/dist/index10.cjs +1 -1
  30. package/dist/index10.mjs +1 -1
  31. package/dist/index100.cjs +1 -1
  32. package/dist/index100.mjs +33 -24
  33. package/dist/index101.cjs +1 -1
  34. package/dist/index101.mjs +23 -43
  35. package/dist/index102.cjs +1 -1
  36. package/dist/index102.mjs +28 -30
  37. package/dist/index103.cjs +1 -1
  38. package/dist/index103.mjs +40 -28
  39. package/dist/index104.cjs +1 -1
  40. package/dist/index104.mjs +53 -16
  41. package/dist/index105.cjs +1 -1
  42. package/dist/index105.mjs +62 -64
  43. package/dist/index106.cjs +1 -1
  44. package/dist/index106.mjs +30 -52
  45. package/dist/index107.cjs +1 -1
  46. package/dist/index107.mjs +20 -42
  47. package/dist/index108.cjs +1 -1
  48. package/dist/index108.mjs +18 -30
  49. package/dist/index109.cjs +1 -1
  50. package/dist/index109.mjs +30 -24
  51. package/dist/index11.cjs +1 -1
  52. package/dist/index11.mjs +1 -1
  53. package/dist/index110.cjs +1 -1
  54. package/dist/index110.mjs +29 -27
  55. package/dist/index111.cjs +1 -1
  56. package/dist/index111.mjs +46 -18
  57. package/dist/index112.cjs +1 -1
  58. package/dist/index112.mjs +52 -14
  59. package/dist/index113.cjs +1 -1
  60. package/dist/index113.mjs +28 -50
  61. package/dist/index114.cjs +1 -1
  62. package/dist/index114.mjs +44 -53
  63. package/dist/index115.cjs +1 -1
  64. package/dist/index115.mjs +12 -62
  65. package/dist/index116.cjs +1 -1
  66. package/dist/index116.mjs +30 -33
  67. package/dist/index117.cjs +1 -1
  68. package/dist/index117.mjs +32 -30
  69. package/dist/index118.cjs +1 -1
  70. package/dist/index118.mjs +33 -18
  71. package/dist/index119.cjs +1 -1
  72. package/dist/index119.mjs +30 -56
  73. package/dist/index12.cjs +1 -1
  74. package/dist/index12.mjs +1 -1
  75. package/dist/index120.cjs +1 -1
  76. package/dist/index120.mjs +35 -38
  77. package/dist/index121.cjs +1 -1
  78. package/dist/index121.mjs +36 -20
  79. package/dist/index122.cjs +1 -1
  80. package/dist/index122.mjs +20 -40
  81. package/dist/index123.cjs +1 -1
  82. package/dist/index123.mjs +14 -76
  83. package/dist/index124.cjs +1 -1
  84. package/dist/index124.mjs +27 -52
  85. package/dist/index125.cjs +1 -1
  86. package/dist/index125.mjs +16 -28
  87. package/dist/index126.cjs +1 -1
  88. package/dist/index126.mjs +37 -66
  89. package/dist/index127.cjs +1 -1
  90. package/dist/index127.mjs +28 -30
  91. package/dist/index128.cjs +1 -1
  92. package/dist/index128.mjs +24 -32
  93. package/dist/index129.cjs +1 -1
  94. package/dist/index129.mjs +28 -45
  95. package/dist/index13.cjs +1 -1
  96. package/dist/index13.mjs +1 -1
  97. package/dist/index130.cjs +1 -1
  98. package/dist/index130.mjs +28 -42
  99. package/dist/index131.cjs +1 -1
  100. package/dist/index131.mjs +28 -28
  101. package/dist/index132.cjs +1 -1
  102. package/dist/index132.mjs +42 -30
  103. package/dist/index133.cjs +1 -1
  104. package/dist/index133.mjs +52 -24
  105. package/dist/index134.cjs +1 -1
  106. package/dist/index134.mjs +36 -12
  107. package/dist/index135.cjs +1 -1
  108. package/dist/index135.mjs +50 -234
  109. package/dist/index136.cjs +1 -1
  110. package/dist/index136.mjs +19 -34
  111. package/dist/index137.cjs +1 -1
  112. package/dist/index137.mjs +153 -42
  113. package/dist/index138.cjs +1 -1
  114. package/dist/index138.mjs +216 -168
  115. package/dist/index139.cjs +1 -1
  116. package/dist/index139.mjs +29 -186
  117. package/dist/index14.cjs +1 -1
  118. package/dist/index14.mjs +1 -1
  119. package/dist/index140.cjs +1 -1
  120. package/dist/index140.mjs +43 -29
  121. package/dist/index141.cjs +1 -1
  122. package/dist/index141.mjs +44 -90
  123. package/dist/index142.cjs +1 -1
  124. package/dist/index142.mjs +17 -53
  125. package/dist/index143.cjs +1 -1
  126. package/dist/index143.mjs +46 -66
  127. package/dist/index144.cjs +1 -1
  128. package/dist/index144.mjs +64 -124
  129. package/dist/index145.cjs +1 -1
  130. package/dist/index145.mjs +30 -108
  131. package/dist/index146.cjs +1 -1
  132. package/dist/index146.mjs +40 -111
  133. package/dist/index147.cjs +1 -1
  134. package/dist/index147.mjs +32 -122
  135. package/dist/index148.cjs +1 -1
  136. package/dist/index148.mjs +56 -214
  137. package/dist/index149.cjs +1 -1
  138. package/dist/index149.mjs +62 -22
  139. package/dist/index15.cjs +1 -1
  140. package/dist/index15.mjs +1 -1
  141. package/dist/index150.cjs +1 -1
  142. package/dist/index150.mjs +42 -36
  143. package/dist/index151.cjs +1 -1
  144. package/dist/index151.mjs +24 -12
  145. package/dist/index152.cjs +1 -1
  146. package/dist/index152.mjs +40 -28
  147. package/dist/index153.cjs +1 -1
  148. package/dist/index153.mjs +20 -46
  149. package/dist/index154.cjs +1 -1
  150. package/dist/index154.mjs +76 -38
  151. package/dist/index155.cjs +1 -1
  152. package/dist/index155.mjs +67 -36
  153. package/dist/index156.cjs +1 -1
  154. package/dist/index156.mjs +65 -18
  155. package/dist/index157.cjs +1 -1
  156. package/dist/index157.mjs +40 -62
  157. package/dist/index158.cjs +1 -1
  158. package/dist/index158.mjs +234 -18
  159. package/dist/index159.cjs +1 -1
  160. package/dist/index159.mjs +34 -68
  161. package/dist/index16.cjs +1 -1
  162. package/dist/index16.mjs +1 -1
  163. package/dist/index160.cjs +1 -1
  164. package/dist/index160.mjs +44 -21
  165. package/dist/index161.cjs +1 -1
  166. package/dist/index161.mjs +170 -106
  167. package/dist/index162.cjs +1 -1
  168. package/dist/index162.mjs +186 -34
  169. package/dist/index163.cjs +1 -1
  170. package/dist/index163.mjs +29 -29
  171. package/dist/index164.cjs +1 -1
  172. package/dist/index164.mjs +90 -18
  173. package/dist/index165.cjs +1 -1
  174. package/dist/index165.mjs +52 -36
  175. package/dist/index166.cjs +1 -1
  176. package/dist/index166.mjs +66 -28
  177. package/dist/index167.cjs +1 -1
  178. package/dist/index167.mjs +124 -46
  179. package/dist/index168.cjs +1 -1
  180. package/dist/index168.mjs +108 -22
  181. package/dist/index169.cjs +1 -1
  182. package/dist/index169.mjs +111 -40
  183. package/dist/index17.cjs +1 -1
  184. package/dist/index17.mjs +1 -1
  185. package/dist/index170.cjs +1 -1
  186. package/dist/index170.mjs +122 -20
  187. package/dist/index171.cjs +1 -1
  188. package/dist/index171.mjs +214 -42
  189. package/dist/index172.cjs +1 -1
  190. package/dist/index172.mjs +106 -64
  191. package/dist/index173.cjs +1 -1
  192. package/dist/index173.mjs +22 -55
  193. package/dist/index174.cjs +1 -1
  194. package/dist/index174.mjs +16 -24
  195. package/dist/index175.cjs +1 -1
  196. package/dist/index175.mjs +64 -44
  197. package/dist/index176.cjs +1 -1
  198. package/dist/index176.mjs +18 -28
  199. package/dist/index177.cjs +1 -1
  200. package/dist/index177.mjs +57 -33
  201. package/dist/index178.cjs +1 -1
  202. package/dist/index178.mjs +12 -32
  203. package/dist/index179.cjs +1 -1
  204. package/dist/index179.mjs +38 -46
  205. package/dist/index18.cjs +1 -1
  206. package/dist/index18.mjs +1 -1
  207. package/dist/index180.cjs +1 -1
  208. package/dist/index180.mjs +26 -57
  209. package/dist/index181.cjs +1 -1
  210. package/dist/index181.mjs +45 -27
  211. package/dist/index182.cjs +1 -1
  212. package/dist/index182.mjs +17 -17
  213. package/dist/index183.cjs +1 -1
  214. package/dist/index183.mjs +17 -17
  215. package/dist/index185.cjs +1 -1
  216. package/dist/index185.mjs +1 -1
  217. package/dist/index19.cjs +1 -1
  218. package/dist/index19.mjs +2 -2
  219. package/dist/index20.cjs +1 -1
  220. package/dist/index20.mjs +14 -14
  221. package/dist/index21.cjs +1 -1
  222. package/dist/index21.mjs +1 -1
  223. package/dist/index22.cjs +1 -1
  224. package/dist/index22.mjs +1 -1
  225. package/dist/index23.cjs +1 -1
  226. package/dist/index23.mjs +1 -1
  227. package/dist/index24.cjs +1 -1
  228. package/dist/index24.mjs +1 -1
  229. package/dist/index25.cjs +1 -1
  230. package/dist/index25.mjs +2 -2
  231. package/dist/index26.cjs +1 -1
  232. package/dist/index26.mjs +1 -1
  233. package/dist/index27.cjs +1 -1
  234. package/dist/index27.mjs +1 -1
  235. package/dist/index28.cjs +1 -1
  236. package/dist/index28.mjs +1 -1
  237. package/dist/index29.cjs +1 -1
  238. package/dist/index29.mjs +1 -1
  239. package/dist/index3.cjs +1 -1
  240. package/dist/index3.mjs +2 -2
  241. package/dist/index30.cjs +1 -1
  242. package/dist/index30.mjs +1 -1
  243. package/dist/index31.cjs +1 -1
  244. package/dist/index31.mjs +1 -1
  245. package/dist/index32.cjs +1 -1
  246. package/dist/index32.mjs +1 -1
  247. package/dist/index33.cjs +1 -1
  248. package/dist/index33.mjs +1 -1
  249. package/dist/index34.cjs +1 -1
  250. package/dist/index34.mjs +1 -1
  251. package/dist/index35.cjs +1 -1
  252. package/dist/index35.mjs +1 -1
  253. package/dist/index36.cjs +1 -1
  254. package/dist/index36.mjs +1 -1
  255. package/dist/index37.cjs +1 -1
  256. package/dist/index37.mjs +1 -1
  257. package/dist/index38.cjs +1 -1
  258. package/dist/index38.mjs +1 -1
  259. package/dist/index39.cjs +1 -1
  260. package/dist/index39.mjs +1 -1
  261. package/dist/index40.cjs +1 -1
  262. package/dist/index40.mjs +1 -1
  263. package/dist/index42.cjs +1 -1
  264. package/dist/index42.mjs +1 -1
  265. package/dist/index43.cjs +1 -1
  266. package/dist/index43.mjs +1 -1
  267. package/dist/index44.cjs +1 -1
  268. package/dist/index44.mjs +1 -1
  269. package/dist/index46.cjs +1 -1
  270. package/dist/index46.mjs +1 -1
  271. package/dist/index47.cjs +1 -1
  272. package/dist/index47.mjs +1 -1
  273. package/dist/index49.cjs +1 -1
  274. package/dist/index49.mjs +1 -1
  275. package/dist/index5.cjs +1 -1
  276. package/dist/index5.mjs +1 -1
  277. package/dist/index50.cjs +1 -1
  278. package/dist/index50.mjs +1 -1
  279. package/dist/index51.cjs +1 -1
  280. package/dist/index51.mjs +1 -1
  281. package/dist/index52.cjs +1 -1
  282. package/dist/index52.mjs +1 -1
  283. package/dist/index53.cjs +1 -1
  284. package/dist/index53.mjs +1 -1
  285. package/dist/index54.cjs +1 -1
  286. package/dist/index54.mjs +1 -1
  287. package/dist/index55.cjs +1 -1
  288. package/dist/index55.mjs +1 -1
  289. package/dist/index56.cjs +1 -1
  290. package/dist/index56.mjs +1 -1
  291. package/dist/index57.cjs +1 -1
  292. package/dist/index57.mjs +1 -1
  293. package/dist/index58.cjs +1 -1
  294. package/dist/index58.mjs +1 -1
  295. package/dist/index59.cjs +1 -1
  296. package/dist/index59.mjs +1 -1
  297. package/dist/index6.cjs +1 -1
  298. package/dist/index6.mjs +1 -1
  299. package/dist/index60.cjs +1 -1
  300. package/dist/index60.mjs +1 -1
  301. package/dist/index61.cjs +1 -1
  302. package/dist/index61.mjs +1 -1
  303. package/dist/index62.cjs +1 -1
  304. package/dist/index62.mjs +1 -1
  305. package/dist/index63.cjs +1 -1
  306. package/dist/index63.mjs +1 -1
  307. package/dist/index64.cjs +1 -1
  308. package/dist/index64.mjs +1 -1
  309. package/dist/index65.cjs +1 -1
  310. package/dist/index65.mjs +1 -1
  311. package/dist/index66.cjs +1 -1
  312. package/dist/index66.mjs +1 -1
  313. package/dist/index67.cjs +1 -1
  314. package/dist/index67.mjs +1 -1
  315. package/dist/index68.cjs +1 -1
  316. package/dist/index68.mjs +1 -1
  317. package/dist/index69.cjs +1 -1
  318. package/dist/index69.mjs +1 -1
  319. package/dist/index7.cjs +1 -1
  320. package/dist/index7.mjs +1 -1
  321. package/dist/index70.cjs +1 -1
  322. package/dist/index70.mjs +1 -1
  323. package/dist/index71.cjs +1 -1
  324. package/dist/index71.mjs +1 -1
  325. package/dist/index72.cjs +1 -1
  326. package/dist/index72.mjs +1 -1
  327. package/dist/index73.cjs +1 -1
  328. package/dist/index73.mjs +1 -1
  329. package/dist/index74.cjs +1 -1
  330. package/dist/index74.mjs +2 -2
  331. package/dist/index76.cjs +1 -1
  332. package/dist/index76.mjs +1 -1
  333. package/dist/index77.cjs +1 -1
  334. package/dist/index77.mjs +1 -1
  335. package/dist/index78.cjs +1 -1
  336. package/dist/index78.mjs +1 -1
  337. package/dist/index79.cjs +1 -1
  338. package/dist/index79.mjs +1 -1
  339. package/dist/index8.cjs +1 -1
  340. package/dist/index8.mjs +31 -30
  341. package/dist/index80.cjs +1 -1
  342. package/dist/index80.mjs +1 -1
  343. package/dist/index81.cjs +1 -1
  344. package/dist/index81.mjs +1 -1
  345. package/dist/index82.cjs +1 -1
  346. package/dist/index82.mjs +2 -2
  347. package/dist/index9.cjs +1 -1
  348. package/dist/index9.mjs +1 -1
  349. package/dist/index97.cjs +1 -1
  350. package/dist/index97.mjs +24 -154
  351. package/dist/index98.cjs +1 -1
  352. package/dist/index98.mjs +46 -218
  353. package/dist/index99.cjs +1 -1
  354. package/dist/index99.mjs +55 -40
  355. package/dist/styles.css +9 -9
  356. package/package.json +1 -1
package/dist/index140.mjs CHANGED
@@ -1,31 +1,45 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import e from "./index135.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 o = "_container_1pxo1_8", e = "_overlay_1pxo1_19", _ = "_fadeIn_1pxo1_1", t = "_panel_1pxo1_39", n = "_slideInRight_1pxo1_1", s = "_slideInLeft_1pxo1_1", i = "_header_1pxo1_101", p = "_headerContent_1pxo1_111", l = "_title_1pxo1_116", c = "_subtitle_1pxo1_125", d = "_headerActions_1pxo1_133", a = "_closeButton_1pxo1_140", x = "_body_1pxo1_170", r = "_footer_1pxo1_180", h = "_loading_1pxo1_195", f = "_spinner_1pxo1_202", g = "_spin_1pxo1_202", I = {
2
+ container: o,
3
+ overlay: e,
4
+ fadeIn: _,
5
+ panel: t,
6
+ "position-right": "_position-right_1pxo1_50",
7
+ slideInRight: n,
8
+ "position-left": "_position-left_1pxo1_56",
9
+ slideInLeft: s,
10
+ "size-sm": "_size-sm_1pxo1_81",
11
+ "size-md": "_size-md_1pxo1_85",
12
+ "size-lg": "_size-lg_1pxo1_89",
13
+ "size-xl": "_size-xl_1pxo1_93",
14
+ header: i,
15
+ headerContent: p,
16
+ title: l,
17
+ subtitle: c,
18
+ headerActions: d,
19
+ closeButton: a,
20
+ body: x,
21
+ footer: r,
22
+ loading: h,
23
+ spinner: f,
24
+ spin: g
25
+ };
29
26
  export {
30
- t as ChatTypingIndicator
27
+ x as body,
28
+ a as closeButton,
29
+ o as container,
30
+ I as default,
31
+ _ as fadeIn,
32
+ r as footer,
33
+ i as header,
34
+ d as headerActions,
35
+ p as headerContent,
36
+ h as loading,
37
+ e as overlay,
38
+ t as panel,
39
+ s as slideInLeft,
40
+ n as slideInRight,
41
+ g as spin,
42
+ f as spinner,
43
+ c as subtitle,
44
+ l as title
31
45
  };
package/dist/index141.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("./index135.cjs"),k=require("./index75.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="_container_8sbpj_13",r="_disabled_8sbpj_19",o="_label_8sbpj_27",t="_labelText_8sbpj_43",s="_optional_8sbpj_47",_="_required_8sbpj_53",n="_textarea_8sbpj_63",a="_error_8sbpj_135",i="_sm_8sbpj_153",l="_md_8sbpj_159",c="_lg_8sbpj_165",b="_resizeNone_8sbpj_175",p="_resizeVertical_8sbpj_179",u="_resizeHorizontal_8sbpj_183",j="_resizeBoth_8sbpj_187",d="_footer_8sbpj_195",z="_helperText_8sbpj_202",g="_errorMessage_8sbpj_222",x="_counter_8sbpj_237",m="_counterWarning_8sbpj_247",T="_counterError_8sbpj_251",h={container:e,disabled:r,label:o,labelText:t,optional:s,required:_,textarea:n,error:a,sm:i,md:l,lg:c,resizeNone:b,resizeVertical:p,resizeHorizontal:u,resizeBoth:j,footer:d,helperText:z,errorMessage:g,counter:x,counterWarning:m,counterError:T};exports.container=e;exports.counter=x;exports.counterError=T;exports.counterWarning=m;exports.default=h;exports.disabled=r;exports.error=a;exports.errorMessage=g;exports.footer=d;exports.helperText=z;exports.label=o;exports.labelText=t;exports.lg=c;exports.md=l;exports.optional=s;exports.required=_;exports.resizeBoth=j;exports.resizeHorizontal=u;exports.resizeNone=b;exports.resizeVertical=p;exports.sm=i;exports.textarea=n;
package/dist/index141.mjs CHANGED
@@ -1,93 +1,47 @@
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 "./index135.mjs";
7
- import { useThemeContext as L } from "./index75.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 e = "_container_8sbpj_13", r = "_disabled_8sbpj_19", s = "_label_8sbpj_27", o = "_labelText_8sbpj_43", t = "_optional_8sbpj_47", _ = "_required_8sbpj_53", n = "_textarea_8sbpj_63", c = "_error_8sbpj_135", a = "_sm_8sbpj_153", i = "_md_8sbpj_159", l = "_lg_8sbpj_165", b = "_resizeNone_8sbpj_175", p = "_resizeVertical_8sbpj_179", j = "_resizeHorizontal_8sbpj_183", z = "_resizeBoth_8sbpj_187", d = "_footer_8sbpj_195", u = "_helperText_8sbpj_202", x = "_errorMessage_8sbpj_222", g = "_counter_8sbpj_237", h = "_counterWarning_8sbpj_247", m = "_counterError_8sbpj_251", T = {
2
+ container: e,
3
+ disabled: r,
4
+ label: s,
5
+ labelText: o,
6
+ optional: t,
7
+ required: _,
8
+ textarea: n,
9
+ error: c,
10
+ sm: a,
11
+ md: i,
12
+ lg: l,
13
+ resizeNone: b,
14
+ resizeVertical: p,
15
+ resizeHorizontal: j,
16
+ resizeBoth: z,
17
+ footer: d,
18
+ helperText: u,
19
+ errorMessage: x,
20
+ counter: g,
21
+ counterWarning: h,
22
+ counterError: m
89
23
  };
90
- w.displayName = "ChatCodeBlock";
91
24
  export {
92
- w as ChatCodeBlock
25
+ e as container,
26
+ g as counter,
27
+ m as counterError,
28
+ h as counterWarning,
29
+ T as default,
30
+ r as disabled,
31
+ c as error,
32
+ x as errorMessage,
33
+ d as footer,
34
+ u as helperText,
35
+ s as label,
36
+ o as labelText,
37
+ l as lg,
38
+ i as md,
39
+ t as optional,
40
+ _ as required,
41
+ z as resizeBoth,
42
+ j as resizeHorizontal,
43
+ b as resizeNone,
44
+ p as resizeVertical,
45
+ a as sm,
46
+ n as textarea
93
47
  };
package/dist/index142.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("./index141.cjs"),g=require("./index135.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="_group_1ugc0_3",t="_item_1ugc0_10",s="_itemPressed_1ugc0_60",_="_outline_1ugc0_71",u="_sm_1ugc0_98",o="_md_1ugc0_105",c="_lg_1ugc0_112",g={group:e,item:t,itemPressed:s,outline:_,sm:u,md:o,lg:c};exports.default=g;exports.group=e;exports.item=t;exports.itemPressed=s;exports.lg=c;exports.md=o;exports.outline=_;exports.sm=u;
package/dist/index142.mjs CHANGED
@@ -1,55 +1,19 @@
1
- import { jsx as e, Fragment as c } from "react/jsx-runtime";
2
- import l from "react-markdown";
3
- import d from "remark-gfm";
4
- import { ChatCodeBlock as p } from "./index141.mjs";
5
- import g from "./index135.mjs";
6
- const f = ({
7
- content: a,
8
- className: i,
9
- ...m
10
- }) => /* @__PURE__ */ e(
11
- "div",
12
- {
13
- className: [g.markdown, i].filter(Boolean).join(" "),
14
- ...m,
15
- children: /* @__PURE__ */ e(
16
- l,
17
- {
18
- remarkPlugins: [d],
19
- components: {
20
- // Custom code block rendering
21
- code({ className: r, children: o, ...t }) {
22
- const n = /language-(\w+)/.exec(r || "");
23
- if (!n)
24
- return /* @__PURE__ */ e("code", { className: r, ...t, children: o });
25
- const s = String(o).replace(/\n$/, "");
26
- return /* @__PURE__ */ e(p, { code: s, language: n[1] });
27
- },
28
- // Custom pre rendering (remove wrapper for code blocks)
29
- pre({ children: r }) {
30
- return /* @__PURE__ */ e(c, { children: r });
31
- },
32
- // Custom link rendering (open in new tab)
33
- a({ href: r, children: o, ...t }) {
34
- const n = r?.startsWith("http");
35
- return /* @__PURE__ */ e(
36
- "a",
37
- {
38
- href: r,
39
- target: n ? "_blank" : void 0,
40
- rel: n ? "noopener noreferrer" : void 0,
41
- ...t,
42
- children: o
43
- }
44
- );
45
- }
46
- },
47
- children: a
48
- }
49
- )
50
- }
51
- );
52
- f.displayName = "ChatMarkdown";
1
+ const _ = "_group_1ugc0_3", s = "_item_1ugc0_10", t = "_itemPressed_1ugc0_60", e = "_outline_1ugc0_71", c = "_sm_1ugc0_98", o = "_md_1ugc0_105", u = "_lg_1ugc0_112", g = {
2
+ group: _,
3
+ item: s,
4
+ itemPressed: t,
5
+ outline: e,
6
+ sm: c,
7
+ md: o,
8
+ lg: u
9
+ };
53
10
  export {
54
- f as ChatMarkdown
11
+ g as default,
12
+ _ as group,
13
+ s as item,
14
+ t as itemPressed,
15
+ u as lg,
16
+ o as md,
17
+ e as outline,
18
+ c as sm
55
19
  };
package/dist/index143.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("react"),I=require("lucide-react"),a=require("./index135.cjs"),w=require("./index185.cjs"),u=({src:i,alt:t="Image attachment",thumbnail:g,onClick:n,enableLightbox:s=!0,className:o,...l})=>{const[h,c]=d.useState(!1),[f,v]=d.useState(!1),m=()=>{n?n():s&&c(!0)},x=r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),m())},j=()=>{v(!0)};return f?e.jsxs("div",{className:[a.default.imagePreview,a.default.attachmentPreview,o].filter(Boolean).join(" "),...l,children:[e.jsx("div",{className:a.default.attachmentPreviewIcon,children:e.jsx(I.ImageOff,{size:20})}),e.jsx("span",{className:a.default.attachmentPreviewName,children:"Image failed to load"})]}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:[a.default.imagePreview,o].filter(Boolean).join(" "),onClick:m,onKeyDown:x,role:"button",tabIndex:0,"aria-label":t,...l,children:e.jsx("img",{src:g||i,alt:t,className:a.default.imagePreviewImg,onError:j,loading:"lazy"})}),s&&e.jsx(w.ChatLightbox,{src:i,alt:t,isOpen:h,onClose:()=>c(!1)})]})};u.displayName="ChatImagePreview";exports.ChatImagePreview=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_container_1xu4i_8",e="_borderless_1xu4i_17",_="_table_1xu4i_23",o="_caption_1xu4i_32",i="_thead_1xu4i_44",n="_th_1xu4i_44",r="_alignCenter_1xu4i_59",s="_alignRight_1xu4i_63",c="_sortable_1xu4i_68",a="_sortIndicator_1xu4i_84",l="_active_1xu4i_91",d="_tbody_1xu4i_99",b="_tr_1xu4i_103",u="_td_1xu4i_113",x="_hoverable_1xu4i_131",g="_clickable_1xu4i_136",h="_striped_1xu4i_148",m="_bordered_1xu4i_160",p="_sm_1xu4i_178",v="_md_1xu4i_188",y="_lg_1xu4i_198",k="_empty_1xu4i_212",C={container:t,borderless:e,table:_,caption:o,thead:i,th:n,alignCenter:r,alignRight:s,sortable:c,sortIndicator:a,active:l,tbody:d,tr:b,td:u,hoverable:x,clickable:g,striped:h,bordered:m,sm:p,md:v,lg:y,empty:k};exports.active=l;exports.alignCenter=r;exports.alignRight=s;exports.bordered=m;exports.borderless=e;exports.caption=o;exports.clickable=g;exports.container=t;exports.default=C;exports.empty=k;exports.hoverable=x;exports.lg=y;exports.md=v;exports.sm=p;exports.sortIndicator=a;exports.sortable=c;exports.striped=h;exports.table=_;exports.tbody=d;exports.td=u;exports.th=n;exports.thead=i;exports.tr=b;
package/dist/index143.mjs CHANGED
@@ -1,69 +1,49 @@
1
- import { jsxs as f, jsx as e, Fragment as u } from "react/jsx-runtime";
2
- import { useState as g } from "react";
3
- import { ImageOff as P } from "lucide-react";
4
- import a from "./index135.mjs";
5
- import { ChatLightbox as y } from "./index185.mjs";
6
- const x = ({
7
- src: i,
8
- alt: r = "Image attachment",
9
- thumbnail: h,
10
- onClick: o,
11
- enableLightbox: n = !0,
12
- className: m,
13
- ...s
14
- }) => {
15
- const [d, l] = g(!1), [p, v] = g(!1), c = () => {
16
- o ? o() : n && l(!0);
17
- }, I = (t) => {
18
- (t.key === "Enter" || t.key === " ") && (t.preventDefault(), c());
19
- }, w = () => {
20
- v(!0);
21
- };
22
- return p ? /* @__PURE__ */ f(
23
- "div",
24
- {
25
- className: [a.imagePreview, a.attachmentPreview, m].filter(Boolean).join(" "),
26
- ...s,
27
- children: [
28
- /* @__PURE__ */ e("div", { className: a.attachmentPreviewIcon, children: /* @__PURE__ */ e(P, { size: 20 }) }),
29
- /* @__PURE__ */ e("span", { className: a.attachmentPreviewName, children: "Image failed to load" })
30
- ]
31
- }
32
- ) : /* @__PURE__ */ f(u, { children: [
33
- /* @__PURE__ */ e(
34
- "div",
35
- {
36
- className: [a.imagePreview, m].filter(Boolean).join(" "),
37
- onClick: c,
38
- onKeyDown: I,
39
- role: "button",
40
- tabIndex: 0,
41
- "aria-label": r,
42
- ...s,
43
- children: /* @__PURE__ */ e(
44
- "img",
45
- {
46
- src: h || i,
47
- alt: r,
48
- className: a.imagePreviewImg,
49
- onError: w,
50
- loading: "lazy"
51
- }
52
- )
53
- }
54
- ),
55
- n && /* @__PURE__ */ e(
56
- y,
57
- {
58
- src: i,
59
- alt: r,
60
- isOpen: d,
61
- onClose: () => l(!1)
62
- }
63
- )
64
- ] });
1
+ const t = "_container_1xu4i_8", _ = "_borderless_1xu4i_17", e = "_table_1xu4i_23", o = "_caption_1xu4i_32", i = "_thead_1xu4i_44", n = "_th_1xu4i_44", s = "_alignCenter_1xu4i_59", c = "_alignRight_1xu4i_63", r = "_sortable_1xu4i_68", a = "_sortIndicator_1xu4i_84", l = "_active_1xu4i_91", d = "_tbody_1xu4i_99", u = "_tr_1xu4i_103", x = "_td_1xu4i_113", b = "_hoverable_1xu4i_131", g = "_clickable_1xu4i_136", h = "_striped_1xu4i_148", p = "_bordered_1xu4i_160", m = "_sm_1xu4i_178", y = "_md_1xu4i_188", v = "_lg_1xu4i_198", k = "_empty_1xu4i_212", C = {
2
+ container: t,
3
+ borderless: _,
4
+ table: e,
5
+ caption: o,
6
+ thead: i,
7
+ th: n,
8
+ alignCenter: s,
9
+ alignRight: c,
10
+ sortable: r,
11
+ sortIndicator: a,
12
+ active: l,
13
+ tbody: d,
14
+ tr: u,
15
+ td: x,
16
+ hoverable: b,
17
+ clickable: g,
18
+ striped: h,
19
+ bordered: p,
20
+ sm: m,
21
+ md: y,
22
+ lg: v,
23
+ empty: k
65
24
  };
66
- x.displayName = "ChatImagePreview";
67
25
  export {
68
- x as ChatImagePreview
26
+ l as active,
27
+ s as alignCenter,
28
+ c as alignRight,
29
+ p as bordered,
30
+ _ as borderless,
31
+ o as caption,
32
+ g as clickable,
33
+ t as container,
34
+ C as default,
35
+ k as empty,
36
+ b as hoverable,
37
+ v as lg,
38
+ y as md,
39
+ m as sm,
40
+ a as sortIndicator,
41
+ r as sortable,
42
+ h as striped,
43
+ e as table,
44
+ d as tbody,
45
+ x as td,
46
+ n as th,
47
+ i as thead,
48
+ u as tr
69
49
  };
package/dist/index144.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("react"),P=require("lucide-react"),m=require("./index184.cjs"),l=require("./index135.cjs"),p=({src:k,duration:T,title:h,className:b,...x})=>{const[o,f]=r.useState(!1),[s,d]=r.useState(0),[a,g]=r.useState(T||0),n=r.useRef(null),j=r.useCallback(()=>{const e=n.current;e&&!isNaN(e.duration)&&isFinite(e.duration)&&g(e.duration)},[]),v=r.useCallback(()=>{const e=n.current;e&&d(e.currentTime)},[]),C=r.useCallback(()=>{f(!1),d(0)},[]),w=r.useCallback(()=>{const e=n.current;e&&(o?e.pause():e.play().catch(()=>{f(!1)}),f(!o))},[o]),N=r.useCallback(e=>{const c=n.current;if(!c||!a)return;const u=e.currentTarget.getBoundingClientRect(),y=(e.clientX-u.left)/u.width*a;c.currentTime=y,d(y)},[a]),A=r.useCallback(e=>{const c=n.current;if(!c||!a)return;const u=5;let i=s;switch(e.key){case"ArrowRight":case"ArrowUp":e.preventDefault(),i=Math.min(s+u,a);break;case"ArrowLeft":case"ArrowDown":e.preventDefault(),i=Math.max(s-u,0);break;case"Home":e.preventDefault(),i=0;break;case"End":e.preventDefault(),i=a;break;default:return}c.currentTime=i,d(i)},[s,a]),D=a>0?s/a*100:0;return r.useEffect(()=>()=>{const e=n.current;e&&e.pause()},[]),t.jsxs("div",{className:[l.default.audioPlayer,b].filter(Boolean).join(" "),...x,children:[t.jsx("audio",{ref:n,src:k,onLoadedMetadata:j,onTimeUpdate:v,onEnded:C,preload:"metadata"}),t.jsx("button",{className:l.default.audioPlayerButton,onClick:w,"aria-label":o?"Pause":"Play",children:o?t.jsx(P.Pause,{size:16}):t.jsx(P.Play,{size:16})}),t.jsxs("div",{className:l.default.audioPlayerProgress,children:[h&&t.jsx("span",{className:l.default.attachmentPreviewName,children:h}),t.jsx("div",{className:l.default.audioPlayerTrack,onClick:N,onKeyDown:A,role:"slider","aria-label":"Audio progress","aria-valuemin":0,"aria-valuemax":a,"aria-valuenow":s,"aria-valuetext":`${m.formatTime(s)} of ${m.formatTime(a)}`,tabIndex:0,children:t.jsx("div",{className:l.default.audioPlayerFill,style:{width:`${D}%`}})}),t.jsxs("div",{className:l.default.audioPlayerTime,children:[t.jsx("span",{children:m.formatTime(s)}),t.jsx("span",{children:m.formatTime(a)})]})]})]})};p.displayName="ChatAudioPlayer";exports.ChatAudioPlayer=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_userMenu_3rj9n_8",r="_userMenuFullWidth_3rj9n_14",t="_trigger_3rj9n_19",n="_triggerCompact_3rj9n_44",a="_avatar_3rj9n_48",o="_avatarImage_3rj9n_61",_="_avatarInitials_3rj9n_67",i="_statusIndicator_3rj9n_75",d="_triggerInfo_3rj9n_85",s="_triggerName_3rj9n_95",c="_triggerRole_3rj9n_106",g="_chevron_3rj9n_116",m="_chevronOpen_3rj9n_123",h="_dropdown_3rj9n_131",l="_dropdownOpen_3rj9n_147",u="_dropdownStart_3rj9n_153",p="_header_3rj9n_162",j="_headerAvatar_3rj9n_170",v="_headerInfo_3rj9n_186",I="_headerName_3rj9n_193",w="_headerEmail_3rj9n_201",b="_section_3rj9n_215",f="_sectionLabel_3rj9n_219",M="_divider_3rj9n_229",S="_item_3rj9n_239",O="_itemIcon_3rj9n_260",D="_itemDanger_3rj9n_268",N="_itemDisabled_3rj9n_276",T="_dropdownTop_3rj9n_290",A="_itemShortcut_3rj9n_301",B="_itemBadge_3rj9n_310",C={userMenu:e,userMenuFullWidth:r,trigger:t,triggerCompact:n,avatar:a,avatarImage:o,avatarInitials:_,statusIndicator:i,triggerInfo:d,triggerName:s,triggerRole:c,chevron:g,chevronOpen:m,dropdown:h,dropdownOpen:l,dropdownStart:u,header:p,headerAvatar:j,headerInfo:v,headerName:I,headerEmail:w,section:b,sectionLabel:f,divider:M,item:S,itemIcon:O,itemDanger:D,itemDisabled:N,dropdownTop:T,itemShortcut:A,itemBadge:B};exports.avatar=a;exports.avatarImage=o;exports.avatarInitials=_;exports.chevron=g;exports.chevronOpen=m;exports.default=C;exports.divider=M;exports.dropdown=h;exports.dropdownOpen=l;exports.dropdownStart=u;exports.dropdownTop=T;exports.header=p;exports.headerAvatar=j;exports.headerEmail=w;exports.headerInfo=v;exports.headerName=I;exports.item=S;exports.itemBadge=B;exports.itemDanger=D;exports.itemDisabled=N;exports.itemIcon=O;exports.itemShortcut=A;exports.section=b;exports.sectionLabel=f;exports.statusIndicator=i;exports.trigger=t;exports.triggerCompact=n;exports.triggerInfo=d;exports.triggerName=s;exports.triggerRole=c;exports.userMenu=e;exports.userMenuFullWidth=r;
package/dist/index144.mjs CHANGED
@@ -1,127 +1,67 @@
1
- import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
- import { useState as h, useRef as M, useCallback as s, useEffect as R } from "react";
3
- import { Pause as j, Play as B } from "lucide-react";
4
- import { formatTime as m } from "./index184.mjs";
5
- import o from "./index135.mjs";
6
- const L = ({
7
- src: g,
8
- duration: v,
9
- title: y,
10
- className: w,
11
- ...T
12
- }) => {
13
- const [c, f] = h(!1), [t, u] = h(0), [a, k] = h(v || 0), n = M(null), N = s(() => {
14
- const e = n.current;
15
- e && !isNaN(e.duration) && isFinite(e.duration) && k(e.duration);
16
- }, []), b = s(() => {
17
- const e = n.current;
18
- e && u(e.currentTime);
19
- }, []), C = s(() => {
20
- f(!1), u(0);
21
- }, []), D = s(() => {
22
- const e = n.current;
23
- e && (c ? e.pause() : e.play().catch(() => {
24
- f(!1);
25
- }), f(!c));
26
- }, [c]), x = s(
27
- (e) => {
28
- const l = n.current;
29
- if (!l || !a) return;
30
- const d = e.currentTarget.getBoundingClientRect(), P = (e.clientX - d.left) / d.width * a;
31
- l.currentTime = P, u(P);
32
- },
33
- [a]
34
- ), A = s(
35
- (e) => {
36
- const l = n.current;
37
- if (!l || !a) return;
38
- const d = 5;
39
- let i = t;
40
- switch (e.key) {
41
- case "ArrowRight":
42
- case "ArrowUp":
43
- e.preventDefault(), i = Math.min(t + d, a);
44
- break;
45
- case "ArrowLeft":
46
- case "ArrowDown":
47
- e.preventDefault(), i = Math.max(t - d, 0);
48
- break;
49
- case "Home":
50
- e.preventDefault(), i = 0;
51
- break;
52
- case "End":
53
- e.preventDefault(), i = a;
54
- break;
55
- default:
56
- return;
57
- }
58
- l.currentTime = i, u(i);
59
- },
60
- [t, a]
61
- ), E = a > 0 ? t / a * 100 : 0;
62
- return R(() => () => {
63
- const e = n.current;
64
- e && e.pause();
65
- }, []), /* @__PURE__ */ p(
66
- "div",
67
- {
68
- className: [o.audioPlayer, w].filter(Boolean).join(" "),
69
- ...T,
70
- children: [
71
- /* @__PURE__ */ r(
72
- "audio",
73
- {
74
- ref: n,
75
- src: g,
76
- onLoadedMetadata: N,
77
- onTimeUpdate: b,
78
- onEnded: C,
79
- preload: "metadata"
80
- }
81
- ),
82
- /* @__PURE__ */ r(
83
- "button",
84
- {
85
- className: o.audioPlayerButton,
86
- onClick: D,
87
- "aria-label": c ? "Pause" : "Play",
88
- children: c ? /* @__PURE__ */ r(j, { size: 16 }) : /* @__PURE__ */ r(B, { size: 16 })
89
- }
90
- ),
91
- /* @__PURE__ */ p("div", { className: o.audioPlayerProgress, children: [
92
- y && /* @__PURE__ */ r("span", { className: o.attachmentPreviewName, children: y }),
93
- /* @__PURE__ */ r(
94
- "div",
95
- {
96
- className: o.audioPlayerTrack,
97
- onClick: x,
98
- onKeyDown: A,
99
- role: "slider",
100
- "aria-label": "Audio progress",
101
- "aria-valuemin": 0,
102
- "aria-valuemax": a,
103
- "aria-valuenow": t,
104
- "aria-valuetext": `${m(t)} of ${m(a)}`,
105
- tabIndex: 0,
106
- children: /* @__PURE__ */ r(
107
- "div",
108
- {
109
- className: o.audioPlayerFill,
110
- style: { width: `${E}%` }
111
- }
112
- )
113
- }
114
- ),
115
- /* @__PURE__ */ p("div", { className: o.audioPlayerTime, children: [
116
- /* @__PURE__ */ r("span", { children: m(t) }),
117
- /* @__PURE__ */ r("span", { children: m(a) })
118
- ] })
119
- ] })
120
- ]
121
- }
122
- );
1
+ const r = "_userMenu_3rj9n_8", e = "_userMenuFullWidth_3rj9n_14", n = "_trigger_3rj9n_19", t = "_triggerCompact_3rj9n_44", o = "_avatar_3rj9n_48", _ = "_avatarImage_3rj9n_61", a = "_avatarInitials_3rj9n_67", i = "_statusIndicator_3rj9n_75", s = "_triggerInfo_3rj9n_85", d = "_triggerName_3rj9n_95", c = "_triggerRole_3rj9n_106", g = "_chevron_3rj9n_116", m = "_chevronOpen_3rj9n_123", j = "_dropdown_3rj9n_131", h = "_dropdownOpen_3rj9n_147", p = "_dropdownStart_3rj9n_153", l = "_header_3rj9n_162", u = "_headerAvatar_3rj9n_170", v = "_headerInfo_3rj9n_186", I = "_headerName_3rj9n_193", w = "_headerEmail_3rj9n_201", f = "_section_3rj9n_215", b = "_sectionLabel_3rj9n_219", D = "_divider_3rj9n_229", M = "_item_3rj9n_239", N = "_itemIcon_3rj9n_260", O = "_itemDanger_3rj9n_268", S = "_itemDisabled_3rj9n_276", A = "_dropdownTop_3rj9n_290", B = "_itemShortcut_3rj9n_301", C = "_itemBadge_3rj9n_310", E = {
2
+ userMenu: r,
3
+ userMenuFullWidth: e,
4
+ trigger: n,
5
+ triggerCompact: t,
6
+ avatar: o,
7
+ avatarImage: _,
8
+ avatarInitials: a,
9
+ statusIndicator: i,
10
+ triggerInfo: s,
11
+ triggerName: d,
12
+ triggerRole: c,
13
+ chevron: g,
14
+ chevronOpen: m,
15
+ dropdown: j,
16
+ dropdownOpen: h,
17
+ dropdownStart: p,
18
+ header: l,
19
+ headerAvatar: u,
20
+ headerInfo: v,
21
+ headerName: I,
22
+ headerEmail: w,
23
+ section: f,
24
+ sectionLabel: b,
25
+ divider: D,
26
+ item: M,
27
+ itemIcon: N,
28
+ itemDanger: O,
29
+ itemDisabled: S,
30
+ dropdownTop: A,
31
+ itemShortcut: B,
32
+ itemBadge: C
123
33
  };
124
- L.displayName = "ChatAudioPlayer";
125
34
  export {
126
- L as ChatAudioPlayer
35
+ o as avatar,
36
+ _ as avatarImage,
37
+ a as avatarInitials,
38
+ g as chevron,
39
+ m as chevronOpen,
40
+ E as default,
41
+ D as divider,
42
+ j as dropdown,
43
+ h as dropdownOpen,
44
+ p as dropdownStart,
45
+ A as dropdownTop,
46
+ l as header,
47
+ u as headerAvatar,
48
+ w as headerEmail,
49
+ v as headerInfo,
50
+ I as headerName,
51
+ M as item,
52
+ C as itemBadge,
53
+ O as itemDanger,
54
+ S as itemDisabled,
55
+ N as itemIcon,
56
+ B as itemShortcut,
57
+ f as section,
58
+ b as sectionLabel,
59
+ i as statusIndicator,
60
+ n as trigger,
61
+ t as triggerCompact,
62
+ s as triggerInfo,
63
+ d as triggerName,
64
+ c as triggerRole,
65
+ r as userMenu,
66
+ e as userMenuFullWidth
127
67
  };