@orion-ds/react 4.2.10 → 4.2.11

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 (315) hide show
  1. package/dist/components/Button/Button.d.ts.map +1 -1
  2. package/dist/components/Button/Button.types.d.ts +12 -0
  3. package/dist/components/Button/Button.types.d.ts.map +1 -1
  4. package/dist/components/FormSection/FormSection.d.ts.map +1 -1
  5. package/dist/components/FormSection/FormSection.types.d.ts +3 -2
  6. package/dist/components/FormSection/FormSection.types.d.ts.map +1 -1
  7. package/dist/index10.cjs +1 -1
  8. package/dist/index10.mjs +1 -1
  9. package/dist/index100.cjs +1 -1
  10. package/dist/index100.mjs +14 -46
  11. package/dist/index101.cjs +1 -1
  12. package/dist/index101.mjs +28 -30
  13. package/dist/index102.cjs +1 -1
  14. package/dist/index102.mjs +27 -28
  15. package/dist/index103.cjs +1 -1
  16. package/dist/index103.mjs +28 -52
  17. package/dist/index104.cjs +1 -1
  18. package/dist/index104.mjs +20 -33
  19. package/dist/index105.cjs +1 -1
  20. package/dist/index105.mjs +46 -44
  21. package/dist/index106.cjs +1 -1
  22. package/dist/index106.mjs +54 -52
  23. package/dist/index108.cjs +1 -1
  24. package/dist/index108.mjs +32 -36
  25. package/dist/index109.cjs +1 -1
  26. package/dist/index109.mjs +64 -40
  27. package/dist/index11.cjs +1 -1
  28. package/dist/index11.mjs +1 -1
  29. package/dist/index110.cjs +1 -1
  30. package/dist/index110.mjs +24 -30
  31. package/dist/index111.cjs +1 -1
  32. package/dist/index111.mjs +52 -30
  33. package/dist/index112.cjs +1 -1
  34. package/dist/index112.mjs +37 -31
  35. package/dist/index113.cjs +1 -1
  36. package/dist/index113.mjs +27 -21
  37. package/dist/index114.cjs +1 -1
  38. package/dist/index114.mjs +43 -17
  39. package/dist/index115.cjs +1 -1
  40. package/dist/index115.mjs +28 -12
  41. package/dist/index116.cjs +1 -1
  42. package/dist/index116.mjs +36 -62
  43. package/dist/index117.cjs +1 -1
  44. package/dist/index117.mjs +28 -57
  45. package/dist/index118.cjs +1 -1
  46. package/dist/index118.mjs +22 -42
  47. package/dist/index119.cjs +1 -1
  48. package/dist/index119.mjs +42 -28
  49. package/dist/index12.cjs +1 -1
  50. package/dist/index12.mjs +1 -1
  51. package/dist/index120.cjs +1 -1
  52. package/dist/index120.mjs +40 -24
  53. package/dist/index121.cjs +1 -1
  54. package/dist/index121.mjs +28 -18
  55. package/dist/index122.cjs +1 -1
  56. package/dist/index122.mjs +52 -32
  57. package/dist/index123.cjs +1 -1
  58. package/dist/index123.mjs +32 -46
  59. package/dist/index124.cjs +1 -1
  60. package/dist/index124.mjs +62 -28
  61. package/dist/index125.cjs +1 -1
  62. package/dist/index125.mjs +35 -20
  63. package/dist/index126.cjs +1 -1
  64. package/dist/index126.mjs +30 -14
  65. package/dist/index127.cjs +1 -1
  66. package/dist/index127.mjs +20 -16
  67. package/dist/index128.cjs +1 -1
  68. package/dist/index128.mjs +46 -20
  69. package/dist/index129.cjs +1 -1
  70. package/dist/index129.mjs +53 -28
  71. package/dist/index13.cjs +1 -1
  72. package/dist/index13.mjs +1 -1
  73. package/dist/index130.cjs +1 -1
  74. package/dist/index130.mjs +64 -36
  75. package/dist/index131.cjs +1 -1
  76. package/dist/index131.mjs +44 -50
  77. package/dist/index132.cjs +1 -1
  78. package/dist/index132.mjs +41 -29
  79. package/dist/index134.cjs +1 -1
  80. package/dist/index134.mjs +13 -37
  81. package/dist/index135.cjs +1 -1
  82. package/dist/index135.mjs +20 -28
  83. package/dist/index136.cjs +1 -1
  84. package/dist/index136.mjs +24 -26
  85. package/dist/index137.cjs +1 -1
  86. package/dist/index137.mjs +16 -18
  87. package/dist/index138.cjs +1 -1
  88. package/dist/index138.mjs +50 -38
  89. package/dist/index139.cjs +1 -1
  90. package/dist/index139.mjs +40 -24
  91. package/dist/index14.cjs +1 -1
  92. package/dist/index14.mjs +33 -32
  93. package/dist/index140.cjs +1 -1
  94. package/dist/index140.mjs +42 -35
  95. package/dist/index141.cjs +1 -1
  96. package/dist/index141.mjs +18 -234
  97. package/dist/index142.cjs +1 -1
  98. package/dist/index142.mjs +56 -34
  99. package/dist/index143.cjs +1 -1
  100. package/dist/index143.mjs +66 -44
  101. package/dist/index144.cjs +1 -1
  102. package/dist/index144.mjs +33 -170
  103. package/dist/index145.cjs +1 -1
  104. package/dist/index145.mjs +19 -186
  105. package/dist/index146.cjs +1 -1
  106. package/dist/index146.mjs +68 -29
  107. package/dist/index147.cjs +1 -1
  108. package/dist/index147.mjs +56 -90
  109. package/dist/index148.cjs +1 -1
  110. package/dist/index148.mjs +19 -53
  111. package/dist/index149.cjs +1 -1
  112. package/dist/index149.mjs +62 -66
  113. package/dist/index15.cjs +1 -1
  114. package/dist/index15.mjs +1 -1
  115. package/dist/index150.cjs +1 -1
  116. package/dist/index150.mjs +76 -124
  117. package/dist/index151.cjs +1 -1
  118. package/dist/index151.mjs +24 -108
  119. package/dist/index152.cjs +1 -1
  120. package/dist/index152.mjs +32 -111
  121. package/dist/index153.cjs +1 -1
  122. package/dist/index153.mjs +30 -122
  123. package/dist/index154.cjs +1 -1
  124. package/dist/index154.mjs +30 -214
  125. package/dist/index155.cjs +1 -1
  126. package/dist/index155.mjs +106 -18
  127. package/dist/index156.cjs +1 -1
  128. package/dist/index156.mjs +41 -63
  129. package/dist/index157.cjs +1 -1
  130. package/dist/index157.mjs +234 -55
  131. package/dist/index158.cjs +1 -1
  132. package/dist/index158.mjs +34 -21
  133. package/dist/index159.cjs +1 -1
  134. package/dist/index159.mjs +44 -33
  135. package/dist/index16.cjs +1 -1
  136. package/dist/index16.mjs +1 -1
  137. package/dist/index160.cjs +1 -1
  138. package/dist/index160.mjs +170 -56
  139. package/dist/index161.cjs +1 -1
  140. package/dist/index161.mjs +186 -29
  141. package/dist/index162.cjs +1 -1
  142. package/dist/index162.mjs +29 -25
  143. package/dist/index163.cjs +1 -1
  144. package/dist/index163.mjs +90 -52
  145. package/dist/index164.cjs +1 -1
  146. package/dist/index164.mjs +53 -66
  147. package/dist/index165.cjs +1 -1
  148. package/dist/index165.mjs +66 -62
  149. package/dist/index166.cjs +1 -1
  150. package/dist/index166.mjs +124 -106
  151. package/dist/index167.cjs +1 -1
  152. package/dist/index167.mjs +108 -45
  153. package/dist/index168.cjs +1 -1
  154. package/dist/index168.mjs +111 -20
  155. package/dist/index169.cjs +1 -1
  156. package/dist/index169.mjs +122 -30
  157. package/dist/index17.cjs +1 -1
  158. package/dist/index17.mjs +1 -1
  159. package/dist/index170.cjs +1 -1
  160. package/dist/index170.mjs +214 -27
  161. package/dist/index171.cjs +1 -1
  162. package/dist/index171.mjs +33 -46
  163. package/dist/index172.cjs +1 -1
  164. package/dist/index172.mjs +26 -24
  165. package/dist/index173.cjs +1 -1
  166. package/dist/index173.mjs +20 -12
  167. package/dist/index174.cjs +1 -1
  168. package/dist/index174.mjs +46 -33
  169. package/dist/index175.cjs +1 -1
  170. package/dist/index175.mjs +28 -42
  171. package/dist/index176.cjs +1 -1
  172. package/dist/index176.mjs +57 -64
  173. package/dist/index177.cjs +1 -1
  174. package/dist/index177.mjs +24 -53
  175. package/dist/index178.cjs +1 -1
  176. package/dist/index178.mjs +12 -76
  177. package/dist/index179.cjs +1 -1
  178. package/dist/index179.mjs +18 -42
  179. package/dist/index18.cjs +1 -1
  180. package/dist/index18.mjs +1 -1
  181. package/dist/index180.cjs +1 -1
  182. package/dist/index180.mjs +38 -64
  183. package/dist/index181.cjs +1 -1
  184. package/dist/index181.mjs +30 -44
  185. package/dist/index185.cjs +1 -1
  186. package/dist/index185.mjs +1 -1
  187. package/dist/index19.cjs +1 -1
  188. package/dist/index19.mjs +2 -2
  189. package/dist/index20.cjs +1 -1
  190. package/dist/index20.mjs +14 -14
  191. package/dist/index21.cjs +1 -1
  192. package/dist/index21.mjs +1 -1
  193. package/dist/index22.cjs +1 -1
  194. package/dist/index22.mjs +1 -1
  195. package/dist/index23.cjs +1 -1
  196. package/dist/index23.mjs +1 -1
  197. package/dist/index24.cjs +1 -1
  198. package/dist/index24.mjs +1 -1
  199. package/dist/index25.cjs +1 -1
  200. package/dist/index25.mjs +1 -1
  201. package/dist/index26.cjs +1 -1
  202. package/dist/index26.mjs +1 -1
  203. package/dist/index27.cjs +1 -1
  204. package/dist/index27.mjs +1 -1
  205. package/dist/index28.cjs +1 -1
  206. package/dist/index28.mjs +1 -1
  207. package/dist/index30.cjs +1 -1
  208. package/dist/index30.mjs +1 -1
  209. package/dist/index31.cjs +1 -1
  210. package/dist/index31.mjs +1 -1
  211. package/dist/index32.cjs +1 -1
  212. package/dist/index32.mjs +1 -1
  213. package/dist/index33.cjs +1 -1
  214. package/dist/index33.mjs +1 -1
  215. package/dist/index34.cjs +1 -1
  216. package/dist/index34.mjs +1 -1
  217. package/dist/index35.cjs +1 -1
  218. package/dist/index35.mjs +1 -1
  219. package/dist/index36.cjs +1 -1
  220. package/dist/index36.mjs +1 -1
  221. package/dist/index37.cjs +1 -1
  222. package/dist/index37.mjs +1 -1
  223. package/dist/index38.cjs +1 -1
  224. package/dist/index38.mjs +1 -1
  225. package/dist/index39.cjs +1 -1
  226. package/dist/index39.mjs +1 -1
  227. package/dist/index40.cjs +1 -1
  228. package/dist/index40.mjs +1 -1
  229. package/dist/index42.cjs +1 -1
  230. package/dist/index42.mjs +36 -36
  231. package/dist/index43.cjs +1 -1
  232. package/dist/index43.mjs +1 -1
  233. package/dist/index44.cjs +1 -1
  234. package/dist/index44.mjs +1 -1
  235. package/dist/index46.cjs +1 -1
  236. package/dist/index46.mjs +1 -1
  237. package/dist/index47.cjs +1 -1
  238. package/dist/index47.mjs +1 -1
  239. package/dist/index49.cjs +1 -1
  240. package/dist/index49.mjs +1 -1
  241. package/dist/index5.cjs +1 -1
  242. package/dist/index5.mjs +1 -1
  243. package/dist/index50.cjs +1 -1
  244. package/dist/index50.mjs +1 -1
  245. package/dist/index51.cjs +1 -1
  246. package/dist/index51.mjs +1 -1
  247. package/dist/index53.cjs +1 -1
  248. package/dist/index53.mjs +1 -1
  249. package/dist/index54.cjs +1 -1
  250. package/dist/index54.mjs +1 -1
  251. package/dist/index55.cjs +1 -1
  252. package/dist/index55.mjs +1 -1
  253. package/dist/index56.cjs +1 -1
  254. package/dist/index56.mjs +1 -1
  255. package/dist/index57.cjs +1 -1
  256. package/dist/index57.mjs +1 -1
  257. package/dist/index58.cjs +1 -1
  258. package/dist/index58.mjs +1 -1
  259. package/dist/index59.cjs +1 -1
  260. package/dist/index59.mjs +1 -1
  261. package/dist/index6.cjs +1 -1
  262. package/dist/index6.mjs +1 -1
  263. package/dist/index60.cjs +1 -1
  264. package/dist/index60.mjs +1 -1
  265. package/dist/index61.cjs +1 -1
  266. package/dist/index61.mjs +1 -1
  267. package/dist/index62.cjs +1 -1
  268. package/dist/index62.mjs +1 -1
  269. package/dist/index64.cjs +1 -1
  270. package/dist/index64.mjs +1 -1
  271. package/dist/index65.cjs +1 -1
  272. package/dist/index65.mjs +1 -1
  273. package/dist/index66.cjs +1 -1
  274. package/dist/index66.mjs +1 -1
  275. package/dist/index67.cjs +1 -1
  276. package/dist/index67.mjs +1 -1
  277. package/dist/index68.cjs +1 -1
  278. package/dist/index68.mjs +1 -1
  279. package/dist/index69.cjs +1 -1
  280. package/dist/index69.mjs +1 -1
  281. package/dist/index7.cjs +1 -1
  282. package/dist/index7.mjs +1 -1
  283. package/dist/index70.cjs +1 -1
  284. package/dist/index70.mjs +1 -1
  285. package/dist/index71.cjs +1 -1
  286. package/dist/index71.mjs +1 -1
  287. package/dist/index72.cjs +1 -1
  288. package/dist/index72.mjs +1 -1
  289. package/dist/index73.cjs +1 -1
  290. package/dist/index73.mjs +1 -1
  291. package/dist/index76.cjs +1 -1
  292. package/dist/index76.mjs +1 -1
  293. package/dist/index77.cjs +1 -1
  294. package/dist/index77.mjs +1 -1
  295. package/dist/index78.cjs +1 -1
  296. package/dist/index78.mjs +1 -1
  297. package/dist/index79.cjs +1 -1
  298. package/dist/index79.mjs +1 -1
  299. package/dist/index8.cjs +1 -1
  300. package/dist/index8.mjs +1 -1
  301. package/dist/index80.cjs +1 -1
  302. package/dist/index80.mjs +1 -1
  303. package/dist/index81.cjs +1 -1
  304. package/dist/index81.mjs +1 -1
  305. package/dist/index82.cjs +1 -1
  306. package/dist/index82.mjs +2 -2
  307. package/dist/index9.cjs +1 -1
  308. package/dist/index9.mjs +1 -1
  309. package/dist/index97.cjs +1 -1
  310. package/dist/index97.mjs +30 -154
  311. package/dist/index98.cjs +1 -1
  312. package/dist/index98.mjs +138 -202
  313. package/dist/index99.cjs +1 -1
  314. package/dist/index99.mjs +218 -36
  315. package/package.json +1 -1
package/dist/index163.mjs CHANGED
@@ -1,55 +1,93 @@
1
- const r = "_filterBar_ldmr2_8", o = "_compact_ldmr2_19", e = "_searchWrapper_ldmr2_28", c = "_searchIcon_ldmr2_34", t = "_searchInput_ldmr2_41", _ = "_filters_ldmr2_69", n = "_filterWrapper_ldmr2_75", l = "_filterTrigger_ldmr2_79", d = "_filterActive_ldmr2_100", p = "_chevron_ldmr2_106", s = "_chevronOpen_ldmr2_110", i = "_dropdown_ldmr2_118", m = "_dropdownItem_ldmr2_133", a = "_dropdownItemSelected_ldmr2_154", h = "_checkbox_ldmr2_159", w = "_optionCount_ldmr2_177", f = "_dropdownFooter_ldmr2_183", v = "_dropdownCancel_ldmr2_192", I = "_dropdownApply_ldmr2_193", u = "_activeFilters_ldmr2_227", A = "_chip_ldmr2_237", b = "_chipLabel_ldmr2_250", g = "_chipRemove_ldmr2_257", C = "_clearAll_ldmr2_276", F = "_count_ldmr2_296", W = {
2
- filterBar: r,
3
- compact: o,
4
- searchWrapper: e,
5
- searchIcon: c,
6
- searchInput: t,
7
- filters: _,
8
- filterWrapper: n,
9
- filterTrigger: l,
10
- filterActive: d,
11
- chevron: p,
12
- chevronOpen: s,
13
- dropdown: i,
14
- dropdownItem: m,
15
- dropdownItemSelected: a,
16
- checkbox: h,
17
- optionCount: w,
18
- dropdownFooter: f,
19
- dropdownCancel: v,
20
- dropdownApply: I,
21
- activeFilters: u,
22
- chip: A,
23
- chipLabel: b,
24
- chipRemove: g,
25
- clearAll: C,
26
- count: F
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 "./index157.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
+ );
27
89
  };
90
+ w.displayName = "ChatCodeBlock";
28
91
  export {
29
- u as activeFilters,
30
- h as checkbox,
31
- p as chevron,
32
- s as chevronOpen,
33
- A as chip,
34
- b as chipLabel,
35
- g as chipRemove,
36
- C as clearAll,
37
- o as compact,
38
- F as count,
39
- W as default,
40
- i as dropdown,
41
- I as dropdownApply,
42
- v as dropdownCancel,
43
- f as dropdownFooter,
44
- m as dropdownItem,
45
- a as dropdownItemSelected,
46
- d as filterActive,
47
- r as filterBar,
48
- l as filterTrigger,
49
- n as filterWrapper,
50
- _ as filters,
51
- w as optionCount,
52
- c as searchIcon,
53
- t as searchInput,
54
- e as searchWrapper
92
+ w as ChatCodeBlock
55
93
  };
package/dist/index164.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_activityFeed_njpju_8",e="_filters_njpju_18",n="_list_njpju_30",a="_empty_njpju_35",o="_item_njpju_47",c="_itemCompact_njpju_58",_="_iconColumn_njpju_67",s="_iconWrapper_njpju_74",i="_connector_njpju_111",j="_content_njpju_120",p="_header_njpju_128",r="_actor_njpju_138",l="_avatar_njpju_145",u="_actorName_njpju_153",m="_title_njpju_164",d="_time_njpju_170",k="_description_njpju_178",y="_metadata_njpju_188",V="_metadataItem_njpju_194",C="_metadataKey_njpju_201",v="_metadataValue_njpju_205",f="_actions_njpju_209",I="_compact_njpju_219",T="_skeleton_njpju_251",b="_skeletonIcon_njpju_257",g="_pulse_njpju_1",h="_skeletonContent_njpju_265",D="_skeletonTitle_njpju_272",F="_skeletonDesc_njpju_280",K={activityFeed:t,filters:e,list:n,empty:a,item:o,itemCompact:c,iconColumn:_,iconWrapper:s,"iconVariant-success":"_iconVariant-success_njpju_86","iconVariant-warning":"_iconVariant-warning_njpju_91","iconVariant-error":"_iconVariant-error_njpju_96","iconVariant-info":"_iconVariant-info_njpju_101","iconVariant-brand":"_iconVariant-brand_njpju_106",connector:i,content:j,header:p,actor:r,avatar:l,actorName:u,title:m,time:d,description:k,metadata:y,metadataItem:V,metadataKey:C,metadataValue:v,actions:f,compact:I,skeleton:T,skeletonIcon:b,pulse:g,skeletonContent:h,skeletonTitle:D,skeletonDesc:F};exports.actions=f;exports.activityFeed=t;exports.actor=r;exports.actorName=u;exports.avatar=l;exports.compact=I;exports.connector=i;exports.content=j;exports.default=K;exports.description=k;exports.empty=a;exports.filters=e;exports.header=p;exports.iconColumn=_;exports.iconWrapper=s;exports.item=o;exports.itemCompact=c;exports.list=n;exports.metadata=y;exports.metadataItem=V;exports.metadataKey=C;exports.metadataValue=v;exports.pulse=g;exports.skeleton=T;exports.skeletonContent=h;exports.skeletonDesc=F;exports.skeletonIcon=b;exports.skeletonTitle=D;exports.time=d;exports.title=m;
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("./index163.cjs"),g=require("./index157.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;
package/dist/index164.mjs CHANGED
@@ -1,68 +1,55 @@
1
- const t = "_activityFeed_njpju_8", n = "_filters_njpju_18", e = "_list_njpju_30", o = "_empty_njpju_35", _ = "_item_njpju_47", a = "_itemCompact_njpju_58", c = "_iconColumn_njpju_67", s = "_iconWrapper_njpju_74", j = "_connector_njpju_111", i = "_content_njpju_120", p = "_header_njpju_128", r = "_actor_njpju_138", u = "_avatar_njpju_145", m = "_actorName_njpju_153", l = "_title_njpju_164", d = "_time_njpju_170", k = "_description_njpju_178", V = "_metadata_njpju_188", y = "_metadataItem_njpju_194", C = "_metadataKey_njpju_201", f = "_metadataValue_njpju_205", v = "_actions_njpju_209", I = "_compact_njpju_219", h = "_skeleton_njpju_251", D = "_skeletonIcon_njpju_257", F = "_pulse_njpju_1", K = "_skeletonContent_njpju_265", N = "_skeletonTitle_njpju_272", T = "_skeletonDesc_njpju_280", W = {
2
- activityFeed: t,
3
- filters: n,
4
- list: e,
5
- empty: o,
6
- item: _,
7
- itemCompact: a,
8
- iconColumn: c,
9
- iconWrapper: s,
10
- "iconVariant-success": "_iconVariant-success_njpju_86",
11
- "iconVariant-warning": "_iconVariant-warning_njpju_91",
12
- "iconVariant-error": "_iconVariant-error_njpju_96",
13
- "iconVariant-info": "_iconVariant-info_njpju_101",
14
- "iconVariant-brand": "_iconVariant-brand_njpju_106",
15
- connector: j,
16
- content: i,
17
- header: p,
18
- actor: r,
19
- avatar: u,
20
- actorName: m,
21
- title: l,
22
- time: d,
23
- description: k,
24
- metadata: V,
25
- metadataItem: y,
26
- metadataKey: C,
27
- metadataValue: f,
28
- actions: v,
29
- compact: I,
30
- skeleton: h,
31
- skeletonIcon: D,
32
- pulse: F,
33
- skeletonContent: K,
34
- skeletonTitle: N,
35
- skeletonDesc: T
36
- };
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 "./index163.mjs";
5
+ import g from "./index157.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";
37
53
  export {
38
- v as actions,
39
- t as activityFeed,
40
- r as actor,
41
- m as actorName,
42
- u as avatar,
43
- I as compact,
44
- j as connector,
45
- i as content,
46
- W as default,
47
- k as description,
48
- o as empty,
49
- n as filters,
50
- p as header,
51
- c as iconColumn,
52
- s as iconWrapper,
53
- _ as item,
54
- a as itemCompact,
55
- e as list,
56
- V as metadata,
57
- y as metadataItem,
58
- C as metadataKey,
59
- f as metadataValue,
60
- F as pulse,
61
- h as skeleton,
62
- K as skeletonContent,
63
- T as skeletonDesc,
64
- D as skeletonIcon,
65
- N as skeletonTitle,
66
- d as time,
67
- l as title
54
+ f as ChatMarkdown
68
55
  };
package/dist/index165.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_navTree_jffsm_12",o="_header_jffsm_29",n="_footer_jffsm_36",t="_treeContent_jffsm_47",s="_section_jffsm_76",d="_sectionHeader_jffsm_81",c="_sectionHeaderNode_jffsm_101",_="_sectionChevron_jffsm_106",i="_sectionChevronOpen_jffsm_118",f="_sectionTitle_jffsm_123",r="_sectionTitleNode_jffsm_137",l="_sectionBody_jffsm_149",v="_sectionActions_jffsm_155",h="_node_jffsm_183",C="_nodeRow_jffsm_188",m="_nodeRowActive_jffsm_209",a="_nodeLabel_jffsm_217",j="_nodeChevron_jffsm_223",p="_nodeChevronOpen_jffsm_239",O="_nodeChevronHidden_jffsm_244",T="_nodeActions_jffsm_278",A="_nodeChildren_jffsm_316",B="_nodeNested_jffsm_326",H="_iconSlot_jffsm_335",N="_slotIcon_jffsm_346",g="_slotChevron_jffsm_357",y="_slotChevronOpen_jffsm_371",w="_sectionBadge_jffsm_410",R="_nodeBadge_jffsm_425",u="_empty_jffsm_442",b={navTree:e,header:o,footer:n,treeContent:t,section:s,sectionHeader:d,sectionHeaderNode:c,sectionChevron:_,sectionChevronOpen:i,sectionTitle:f,sectionTitleNode:r,sectionBody:l,sectionActions:v,node:h,nodeRow:C,nodeRowActive:m,nodeLabel:a,nodeChevron:j,nodeChevronOpen:p,nodeChevronHidden:O,nodeActions:T,nodeChildren:A,nodeNested:B,iconSlot:H,slotIcon:N,slotChevron:g,slotChevronOpen:y,sectionBadge:w,nodeBadge:R,empty:u};exports.default=b;exports.empty=u;exports.footer=n;exports.header=o;exports.iconSlot=H;exports.navTree=e;exports.node=h;exports.nodeActions=T;exports.nodeBadge=R;exports.nodeChevron=j;exports.nodeChevronHidden=O;exports.nodeChevronOpen=p;exports.nodeChildren=A;exports.nodeLabel=a;exports.nodeNested=B;exports.nodeRow=C;exports.nodeRowActive=m;exports.section=s;exports.sectionActions=v;exports.sectionBadge=w;exports.sectionBody=l;exports.sectionChevron=_;exports.sectionChevronOpen=i;exports.sectionHeader=d;exports.sectionHeaderNode=c;exports.sectionTitle=f;exports.sectionTitleNode=r;exports.slotChevron=g;exports.slotChevronOpen=y;exports.slotIcon=N;exports.treeContent=t;
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("./index157.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;
package/dist/index165.mjs CHANGED
@@ -1,65 +1,69 @@
1
- const e = "_navTree_jffsm_12", o = "_header_jffsm_29", n = "_footer_jffsm_36", s = "_treeContent_jffsm_47", t = "_section_jffsm_76", _ = "_sectionHeader_jffsm_81", c = "_sectionHeaderNode_jffsm_101", d = "_sectionChevron_jffsm_106", f = "_sectionChevronOpen_jffsm_118", i = "_sectionTitle_jffsm_123", r = "_sectionTitleNode_jffsm_137", m = "_sectionBody_jffsm_149", j = "_sectionActions_jffsm_155", h = "_node_jffsm_183", v = "_nodeRow_jffsm_188", C = "_nodeRowActive_jffsm_209", l = "_nodeLabel_jffsm_217", a = "_nodeChevron_jffsm_223", p = "_nodeChevronOpen_jffsm_239", A = "_nodeChevronHidden_jffsm_244", B = "_nodeActions_jffsm_278", H = "_nodeChildren_jffsm_316", N = "_nodeNested_jffsm_326", O = "_iconSlot_jffsm_335", T = "_slotIcon_jffsm_346", y = "_slotChevron_jffsm_357", g = "_slotChevronOpen_jffsm_371", w = "_sectionBadge_jffsm_410", R = "_nodeBadge_jffsm_425", b = "_empty_jffsm_442", I = {
2
- navTree: e,
3
- header: o,
4
- footer: n,
5
- treeContent: s,
6
- section: t,
7
- sectionHeader: _,
8
- sectionHeaderNode: c,
9
- sectionChevron: d,
10
- sectionChevronOpen: f,
11
- sectionTitle: i,
12
- sectionTitleNode: r,
13
- sectionBody: m,
14
- sectionActions: j,
15
- node: h,
16
- nodeRow: v,
17
- nodeRowActive: C,
18
- nodeLabel: l,
19
- nodeChevron: a,
20
- nodeChevronOpen: p,
21
- nodeChevronHidden: A,
22
- nodeActions: B,
23
- nodeChildren: H,
24
- nodeNested: N,
25
- iconSlot: O,
26
- slotIcon: T,
27
- slotChevron: y,
28
- slotChevronOpen: g,
29
- sectionBadge: w,
30
- nodeBadge: R,
31
- empty: b
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 "./index157.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
+ ] });
32
65
  };
66
+ x.displayName = "ChatImagePreview";
33
67
  export {
34
- I as default,
35
- b as empty,
36
- n as footer,
37
- o as header,
38
- O as iconSlot,
39
- e as navTree,
40
- h as node,
41
- B as nodeActions,
42
- R as nodeBadge,
43
- a as nodeChevron,
44
- A as nodeChevronHidden,
45
- p as nodeChevronOpen,
46
- H as nodeChildren,
47
- l as nodeLabel,
48
- N as nodeNested,
49
- v as nodeRow,
50
- C as nodeRowActive,
51
- t as section,
52
- j as sectionActions,
53
- w as sectionBadge,
54
- m as sectionBody,
55
- d as sectionChevron,
56
- f as sectionChevronOpen,
57
- _ as sectionHeader,
58
- c as sectionHeaderNode,
59
- i as sectionTitle,
60
- r as sectionTitleNode,
61
- y as slotChevron,
62
- g as slotChevronOpen,
63
- T as slotIcon,
64
- s as treeContent
68
+ x as ChatImagePreview
65
69
  };
package/dist/index166.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n="_dataTable_ncnxg_8",t="_toolbar_ncnxg_21",o="_toolbarLeft_ncnxg_31",e="_toolbarRight_ncnxg_38",c="_searchWrapper_ncnxg_46",a="_searchIcon_ncnxg_52",_="_searchInput_ncnxg_59",i="_bulkActions_ncnxg_84",s="_selectedCount_ncnxg_90",g="_bulkAction_ncnxg_84",r="_bulkActionDanger_ncnxg_123",l="_tableContainer_ncnxg_132",p="_table_ncnxg_132",x="_thead_ncnxg_149",b="_stickyHeader_ncnxg_153",u="_th_ncnxg_149",d="_thContent_ncnxg_172",h="_sortable_ncnxg_178",y="_sortIcon_ncnxg_188",I="_sortIconInactive_ncnxg_192",m="_tbody_ncnxg_197",k="_tr_ncnxg_201",M="_hoverable_ncnxg_210",C="_trSelected_ncnxg_214",S="_striped_ncnxg_222",T="_td_ncnxg_226",A="_checkboxCell_ncnxg_233",D="_checkbox_ncnxg_233",v="_actionsCell_ncnxg_248",f="_actionMenu_ncnxg_273",O="_actionMenuTrigger_ncnxg_277",P="_actionMenuDropdown_ncnxg_298",w="_actionMenuItem_ncnxg_311",z="_actionMenuItemDanger_ncnxg_332",B="_pagination_ncnxg_344",H="_paginationInfo_ncnxg_354",L="_paginationText_ncnxg_360",R="_pageSizeSelect_ncnxg_366",W="_paginationControls_ncnxg_377",j="_paginationButton_ncnxg_383",q="_paginationPages_ncnxg_409",E="_emptyState_ncnxg_421",F="_emptyIcon_ncnxg_430",G="_emptyTitle_ncnxg_435",J="_emptyDescription_ncnxg_443",K="_emptyAction_ncnxg_451",N="_loadingOverlay_ncnxg_459",Q="_spinner_ncnxg_466",U="_spin_ncnxg_466",V="_compact_ncnxg_485",X="_hideOnMobile_ncnxg_503",Y={dataTable:n,toolbar:t,toolbarLeft:o,toolbarRight:e,searchWrapper:c,searchIcon:a,searchInput:_,bulkActions:i,selectedCount:s,bulkAction:g,bulkActionDanger:r,tableContainer:l,table:p,thead:x,stickyHeader:b,th:u,thContent:d,sortable:h,sortIcon:y,sortIconInactive:I,tbody:m,tr:k,hoverable:M,trSelected:C,striped:S,td:T,checkboxCell:A,checkbox:D,actionsCell:v,"sticky-left":"_sticky-left_ncnxg_255","sticky-right":"_sticky-right_ncnxg_262",actionMenu:f,actionMenuTrigger:O,actionMenuDropdown:P,actionMenuItem:w,actionMenuItemDanger:z,pagination:B,paginationInfo:H,paginationText:L,pageSizeSelect:R,paginationControls:W,paginationButton:j,paginationPages:q,emptyState:E,emptyIcon:F,emptyTitle:G,emptyDescription:J,emptyAction:K,loadingOverlay:N,spinner:Q,spin:U,compact:V,hideOnMobile:X};exports.actionMenu=f;exports.actionMenuDropdown=P;exports.actionMenuItem=w;exports.actionMenuItemDanger=z;exports.actionMenuTrigger=O;exports.actionsCell=v;exports.bulkAction=g;exports.bulkActionDanger=r;exports.bulkActions=i;exports.checkbox=D;exports.checkboxCell=A;exports.compact=V;exports.dataTable=n;exports.default=Y;exports.emptyAction=K;exports.emptyDescription=J;exports.emptyIcon=F;exports.emptyState=E;exports.emptyTitle=G;exports.hideOnMobile=X;exports.hoverable=M;exports.loadingOverlay=N;exports.pageSizeSelect=R;exports.pagination=B;exports.paginationButton=j;exports.paginationControls=W;exports.paginationInfo=H;exports.paginationPages=q;exports.paginationText=L;exports.searchIcon=a;exports.searchInput=_;exports.searchWrapper=c;exports.selectedCount=s;exports.sortIcon=y;exports.sortIconInactive=I;exports.sortable=h;exports.spin=U;exports.spinner=Q;exports.stickyHeader=b;exports.striped=S;exports.table=p;exports.tableContainer=l;exports.tbody=m;exports.td=T;exports.th=u;exports.thContent=d;exports.thead=x;exports.toolbar=t;exports.toolbarLeft=o;exports.toolbarRight=e;exports.tr=k;exports.trSelected=C;
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("./index157.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;