@orion-ds/react 4.2.4 → 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 (348) 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 -30
  33. package/dist/index101.cjs +1 -1
  34. package/dist/index101.mjs +24 -40
  35. package/dist/index102.cjs +1 -1
  36. package/dist/index102.mjs +28 -46
  37. package/dist/index103.cjs +1 -1
  38. package/dist/index103.mjs +40 -24
  39. package/dist/index104.cjs +1 -1
  40. package/dist/index104.mjs +53 -12
  41. package/dist/index105.cjs +1 -1
  42. package/dist/index105.mjs +62 -44
  43. package/dist/index106.cjs +1 -1
  44. package/dist/index106.mjs +28 -20
  45. package/dist/index107.cjs +1 -1
  46. package/dist/index107.mjs +20 -38
  47. package/dist/index108.cjs +1 -1
  48. package/dist/index108.mjs +18 -14
  49. package/dist/index109.cjs +1 -1
  50. package/dist/index109.mjs +30 -18
  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 +30 -28
  55. package/dist/index111.cjs +1 -1
  56. package/dist/index111.mjs +44 -28
  57. package/dist/index113.cjs +1 -1
  58. package/dist/index113.mjs +29 -37
  59. package/dist/index114.cjs +1 -1
  60. package/dist/index114.mjs +44 -28
  61. package/dist/index115.cjs +1 -1
  62. package/dist/index115.mjs +12 -40
  63. package/dist/index116.cjs +1 -1
  64. package/dist/index116.mjs +30 -46
  65. package/dist/index117.cjs +1 -1
  66. package/dist/index117.mjs +32 -28
  67. package/dist/index118.cjs +1 -1
  68. package/dist/index118.mjs +33 -22
  69. package/dist/index119.cjs +1 -1
  70. package/dist/index119.mjs +28 -26
  71. package/dist/index120.cjs +1 -1
  72. package/dist/index120.mjs +35 -62
  73. package/dist/index121.cjs +1 -1
  74. package/dist/index121.mjs +35 -31
  75. package/dist/index122.cjs +1 -1
  76. package/dist/index122.mjs +20 -45
  77. package/dist/index123.cjs +1 -1
  78. package/dist/index123.mjs +14 -28
  79. package/dist/index124.cjs +1 -1
  80. package/dist/index124.mjs +27 -33
  81. package/dist/index125.cjs +1 -1
  82. package/dist/index125.mjs +18 -38
  83. package/dist/index126.cjs +1 -1
  84. package/dist/index126.mjs +37 -33
  85. package/dist/index127.cjs +1 -1
  86. package/dist/index127.mjs +28 -42
  87. package/dist/index128.cjs +1 -1
  88. package/dist/index128.mjs +24 -40
  89. package/dist/index129.cjs +1 -1
  90. package/dist/index129.mjs +27 -29
  91. package/dist/index13.cjs +1 -1
  92. package/dist/index13.mjs +1 -1
  93. package/dist/index130.cjs +1 -1
  94. package/dist/index130.mjs +26 -60
  95. package/dist/index131.cjs +1 -1
  96. package/dist/index131.mjs +28 -106
  97. package/dist/index132.cjs +1 -1
  98. package/dist/index132.mjs +42 -57
  99. package/dist/index133.cjs +1 -1
  100. package/dist/index133.mjs +52 -24
  101. package/dist/index134.cjs +1 -1
  102. package/dist/index134.mjs +36 -30
  103. package/dist/index135.cjs +1 -1
  104. package/dist/index135.mjs +50 -18
  105. package/dist/index136.cjs +1 -1
  106. package/dist/index136.mjs +18 -52
  107. package/dist/index137.cjs +1 -1
  108. package/dist/index137.mjs +154 -30
  109. package/dist/index138.cjs +1 -1
  110. package/dist/index138.mjs +218 -28
  111. package/dist/index139.cjs +1 -1
  112. package/dist/index139.mjs +28 -42
  113. package/dist/index14.cjs +1 -1
  114. package/dist/index14.mjs +1 -1
  115. package/dist/index140.cjs +1 -1
  116. package/dist/index140.mjs +42 -18
  117. package/dist/index141.cjs +1 -1
  118. package/dist/index141.mjs +44 -44
  119. package/dist/index142.cjs +1 -1
  120. package/dist/index142.mjs +16 -65
  121. package/dist/index143.cjs +1 -1
  122. package/dist/index143.mjs +46 -20
  123. package/dist/index144.cjs +1 -1
  124. package/dist/index144.mjs +64 -33
  125. package/dist/index145.cjs +1 -1
  126. package/dist/index145.mjs +30 -76
  127. package/dist/index146.cjs +1 -1
  128. package/dist/index146.mjs +40 -64
  129. package/dist/index147.cjs +1 -1
  130. package/dist/index147.mjs +32 -64
  131. package/dist/index148.cjs +1 -1
  132. package/dist/index148.mjs +56 -18
  133. package/dist/index149.cjs +1 -1
  134. package/dist/index149.mjs +62 -20
  135. package/dist/index15.cjs +1 -1
  136. package/dist/index15.mjs +1 -1
  137. package/dist/index150.cjs +1 -1
  138. package/dist/index150.mjs +42 -56
  139. package/dist/index152.cjs +1 -1
  140. package/dist/index152.mjs +38 -51
  141. package/dist/index153.cjs +1 -1
  142. package/dist/index153.mjs +18 -24
  143. package/dist/index154.cjs +1 -1
  144. package/dist/index154.mjs +76 -27
  145. package/dist/index155.cjs +1 -1
  146. package/dist/index155.mjs +67 -46
  147. package/dist/index156.cjs +1 -1
  148. package/dist/index156.mjs +65 -42
  149. package/dist/index157.cjs +1 -1
  150. package/dist/index157.mjs +36 -26
  151. package/dist/index158.cjs +1 -1
  152. package/dist/index158.mjs +234 -55
  153. package/dist/index159.cjs +1 -1
  154. package/dist/index159.mjs +34 -17
  155. package/dist/index16.cjs +1 -1
  156. package/dist/index16.mjs +1 -1
  157. package/dist/index160.cjs +1 -1
  158. package/dist/index160.mjs +44 -13
  159. package/dist/index161.cjs +1 -1
  160. package/dist/index161.mjs +170 -50
  161. package/dist/index162.cjs +1 -1
  162. package/dist/index162.mjs +186 -21
  163. package/dist/index163.cjs +1 -1
  164. package/dist/index163.mjs +29 -34
  165. package/dist/index164.cjs +1 -1
  166. package/dist/index164.mjs +90 -36
  167. package/dist/index165.cjs +1 -1
  168. package/dist/index165.mjs +53 -68
  169. package/dist/index166.cjs +1 -1
  170. package/dist/index166.mjs +66 -28
  171. package/dist/index167.cjs +1 -1
  172. package/dist/index167.mjs +124 -18
  173. package/dist/index168.cjs +1 -1
  174. package/dist/index168.mjs +108 -234
  175. package/dist/index169.cjs +1 -1
  176. package/dist/index169.mjs +111 -33
  177. package/dist/index17.cjs +1 -1
  178. package/dist/index17.mjs +1 -1
  179. package/dist/index170.cjs +1 -1
  180. package/dist/index170.mjs +120 -41
  181. package/dist/index171.cjs +1 -1
  182. package/dist/index171.mjs +199 -155
  183. package/dist/index172.cjs +1 -1
  184. package/dist/index172.mjs +107 -186
  185. package/dist/index173.cjs +1 -1
  186. package/dist/index173.mjs +23 -29
  187. package/dist/index174.cjs +1 -1
  188. package/dist/index174.mjs +18 -90
  189. package/dist/index175.cjs +1 -1
  190. package/dist/index175.mjs +65 -53
  191. package/dist/index176.cjs +1 -1
  192. package/dist/index176.mjs +18 -66
  193. package/dist/index177.cjs +1 -1
  194. package/dist/index177.mjs +57 -124
  195. package/dist/index178.cjs +1 -1
  196. package/dist/index178.mjs +12 -108
  197. package/dist/index179.cjs +1 -1
  198. package/dist/index179.mjs +38 -111
  199. package/dist/index18.cjs +1 -1
  200. package/dist/index18.mjs +1 -1
  201. package/dist/index180.cjs +1 -1
  202. package/dist/index180.mjs +26 -122
  203. package/dist/index181.cjs +1 -1
  204. package/dist/index181.mjs +45 -214
  205. package/dist/index182.cjs +1 -1
  206. package/dist/index182.mjs +17 -17
  207. package/dist/index183.cjs +1 -1
  208. package/dist/index183.mjs +17 -17
  209. package/dist/index185.cjs +1 -1
  210. package/dist/index185.mjs +1 -1
  211. package/dist/index19.cjs +1 -1
  212. package/dist/index19.mjs +2 -2
  213. package/dist/index20.cjs +1 -1
  214. package/dist/index20.mjs +14 -14
  215. package/dist/index21.cjs +1 -1
  216. package/dist/index21.mjs +1 -1
  217. package/dist/index22.cjs +1 -1
  218. package/dist/index22.mjs +1 -1
  219. package/dist/index23.cjs +1 -1
  220. package/dist/index23.mjs +1 -1
  221. package/dist/index24.cjs +1 -1
  222. package/dist/index24.mjs +1 -1
  223. package/dist/index25.cjs +1 -1
  224. package/dist/index25.mjs +2 -2
  225. package/dist/index26.cjs +1 -1
  226. package/dist/index26.mjs +1 -1
  227. package/dist/index27.cjs +1 -1
  228. package/dist/index27.mjs +1 -1
  229. package/dist/index28.cjs +1 -1
  230. package/dist/index28.mjs +1 -1
  231. package/dist/index29.cjs +1 -1
  232. package/dist/index29.mjs +1 -1
  233. package/dist/index3.cjs +1 -1
  234. package/dist/index3.mjs +2 -2
  235. package/dist/index30.cjs +1 -1
  236. package/dist/index30.mjs +1 -1
  237. package/dist/index31.cjs +1 -1
  238. package/dist/index31.mjs +1 -1
  239. package/dist/index32.cjs +1 -1
  240. package/dist/index32.mjs +1 -1
  241. package/dist/index33.cjs +1 -1
  242. package/dist/index33.mjs +1 -1
  243. package/dist/index34.cjs +1 -1
  244. package/dist/index34.mjs +1 -1
  245. package/dist/index35.cjs +1 -1
  246. package/dist/index35.mjs +1 -1
  247. package/dist/index36.cjs +1 -1
  248. package/dist/index36.mjs +1 -1
  249. package/dist/index37.cjs +1 -1
  250. package/dist/index37.mjs +1 -1
  251. package/dist/index38.cjs +1 -1
  252. package/dist/index38.mjs +1 -1
  253. package/dist/index39.cjs +1 -1
  254. package/dist/index39.mjs +1 -1
  255. package/dist/index40.cjs +1 -1
  256. package/dist/index40.mjs +1 -1
  257. package/dist/index42.cjs +1 -1
  258. package/dist/index42.mjs +1 -1
  259. package/dist/index43.cjs +1 -1
  260. package/dist/index43.mjs +1 -1
  261. package/dist/index44.cjs +1 -1
  262. package/dist/index44.mjs +1 -1
  263. package/dist/index46.cjs +1 -1
  264. package/dist/index46.mjs +1 -1
  265. package/dist/index47.cjs +1 -1
  266. package/dist/index47.mjs +1 -1
  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 +1 -1
  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/index60.cjs +1 -1
  294. package/dist/index60.mjs +1 -1
  295. package/dist/index61.cjs +1 -1
  296. package/dist/index61.mjs +1 -1
  297. package/dist/index62.cjs +1 -1
  298. package/dist/index62.mjs +1 -1
  299. package/dist/index63.cjs +1 -1
  300. package/dist/index63.mjs +1 -1
  301. package/dist/index64.cjs +1 -1
  302. package/dist/index64.mjs +1 -1
  303. package/dist/index65.cjs +1 -1
  304. package/dist/index65.mjs +1 -1
  305. package/dist/index66.cjs +1 -1
  306. package/dist/index66.mjs +1 -1
  307. package/dist/index67.cjs +1 -1
  308. package/dist/index67.mjs +1 -1
  309. package/dist/index68.cjs +1 -1
  310. package/dist/index68.mjs +1 -1
  311. package/dist/index7.cjs +1 -1
  312. package/dist/index7.mjs +1 -1
  313. package/dist/index70.cjs +1 -1
  314. package/dist/index70.mjs +1 -1
  315. package/dist/index71.cjs +1 -1
  316. package/dist/index71.mjs +1 -1
  317. package/dist/index72.cjs +1 -1
  318. package/dist/index72.mjs +1 -1
  319. package/dist/index73.cjs +1 -1
  320. package/dist/index73.mjs +1 -1
  321. package/dist/index74.cjs +1 -1
  322. package/dist/index74.mjs +2 -2
  323. package/dist/index76.cjs +1 -1
  324. package/dist/index76.mjs +1 -1
  325. package/dist/index77.cjs +1 -1
  326. package/dist/index77.mjs +1 -1
  327. package/dist/index78.cjs +1 -1
  328. package/dist/index78.mjs +1 -1
  329. package/dist/index79.cjs +1 -1
  330. package/dist/index79.mjs +1 -1
  331. package/dist/index8.cjs +1 -1
  332. package/dist/index8.mjs +31 -30
  333. package/dist/index80.cjs +1 -1
  334. package/dist/index80.mjs +1 -1
  335. package/dist/index81.cjs +1 -1
  336. package/dist/index81.mjs +1 -1
  337. package/dist/index82.cjs +1 -1
  338. package/dist/index82.mjs +2 -2
  339. package/dist/index9.cjs +1 -1
  340. package/dist/index9.mjs +1 -1
  341. package/dist/index97.cjs +1 -1
  342. package/dist/index97.mjs +24 -154
  343. package/dist/index98.cjs +1 -1
  344. package/dist/index98.mjs +46 -218
  345. package/dist/index99.cjs +1 -1
  346. package/dist/index99.mjs +55 -36
  347. package/dist/styles.css +27 -9
  348. package/package.json +1 -1
package/dist/index176.mjs CHANGED
@@ -1,69 +1,21 @@
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 "./index168.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 = "_emptyState_6m57l_8", _ = "_sm_6m57l_21", s = "_icon_6m57l_24", o = "_title_6m57l_28", c = "_description_6m57l_32", n = "_actions_6m57l_37", m = "_md_6m57l_43", l = "_lg_6m57l_63", e = {
2
+ emptyState: t,
3
+ sm: _,
4
+ icon: s,
5
+ title: o,
6
+ description: c,
7
+ actions: n,
8
+ md: m,
9
+ lg: l
65
10
  };
66
- x.displayName = "ChatImagePreview";
67
11
  export {
68
- x as ChatImagePreview
12
+ n as actions,
13
+ e as default,
14
+ c as description,
15
+ t as emptyState,
16
+ s as icon,
17
+ l as lg,
18
+ m as md,
19
+ _ as sm,
20
+ o as title
69
21
  };
package/dist/index177.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("./index168.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 a="_carousel_1ch8a_9",t="_track_1ch8a_19",c="_trackEdge_1ch8a_33",_="_trackContainer_1ch8a_42",e="_peek_1ch8a_48",o="_gapSm_1ch8a_54",n="_gapMd_1ch8a_58",r="_gapLg_1ch8a_62",i="_navigation_1ch8a_70",g="_navButton_1ch8a_77",h="_card_1ch8a_107",d="_imageWrapper_1ch8a_138",s="_overlay_1ch8a_153",p="_content_1ch8a_176",l="_eyebrow_1ch8a_187",v="_cardTitle_1ch8a_196",k="_cardDescription_1ch8a_205",u="_action_1ch8a_213",y="_pagination_1ch8a_297",m="_dot_1ch8a_304",A="_dotActive_1ch8a_321",b="_highlightActive_1ch8a_331",M="_cardHighlighted_1ch8a_335",S={carousel:a,track:t,trackEdge:c,trackContainer:_,peek:e,gapSm:o,gapMd:n,gapLg:r,navigation:i,navButton:g,card:h,"aspect-16-9":"_aspect-16-9_1ch8a_118","aspect-4-3":"_aspect-4-3_1ch8a_122","aspect-1-1":"_aspect-1-1_1ch8a_126","aspect-3-4":"_aspect-3-4_1ch8a_130",imageWrapper:d,overlay:s,"overlay-gradient":"_overlay-gradient_1ch8a_159","overlay-dark":"_overlay-dark_1ch8a_168",content:p,eyebrow:l,cardTitle:v,cardDescription:k,action:u,"variant-editorial":"_variant-editorial_1ch8a_221","variant-product":"_variant-product_1ch8a_233","variant-gallery":"_variant-gallery_1ch8a_280",pagination:y,dot:m,dotActive:A,highlightActive:b,cardHighlighted:M};exports.action=u;exports.card=h;exports.cardDescription=k;exports.cardHighlighted=M;exports.cardTitle=v;exports.carousel=a;exports.content=p;exports.default=S;exports.dot=m;exports.dotActive=A;exports.eyebrow=l;exports.gapLg=r;exports.gapMd=n;exports.gapSm=o;exports.highlightActive=b;exports.imageWrapper=d;exports.navButton=g;exports.navigation=i;exports.overlay=s;exports.pagination=y;exports.peek=e;exports.track=t;exports.trackContainer=_;exports.trackEdge=c;
package/dist/index177.mjs CHANGED
@@ -1,127 +1,60 @@
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 "./index168.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 a = "_carousel_1ch8a_9", c = "_track_1ch8a_19", t = "_trackEdge_1ch8a_33", _ = "_trackContainer_1ch8a_42", e = "_peek_1ch8a_48", o = "_gapSm_1ch8a_54", n = "_gapMd_1ch8a_58", r = "_gapLg_1ch8a_62", i = "_navigation_1ch8a_70", h = "_navButton_1ch8a_77", s = "_card_1ch8a_107", g = "_imageWrapper_1ch8a_138", d = "_overlay_1ch8a_153", p = "_content_1ch8a_176", l = "_eyebrow_1ch8a_187", v = "_cardTitle_1ch8a_196", k = "_cardDescription_1ch8a_205", y = "_action_1ch8a_213", u = "_pagination_1ch8a_297", m = "_dot_1ch8a_304", A = "_dotActive_1ch8a_321", b = "_highlightActive_1ch8a_331", w = "_cardHighlighted_1ch8a_335", B = {
2
+ carousel: a,
3
+ track: c,
4
+ trackEdge: t,
5
+ trackContainer: _,
6
+ peek: e,
7
+ gapSm: o,
8
+ gapMd: n,
9
+ gapLg: r,
10
+ navigation: i,
11
+ navButton: h,
12
+ card: s,
13
+ "aspect-16-9": "_aspect-16-9_1ch8a_118",
14
+ "aspect-4-3": "_aspect-4-3_1ch8a_122",
15
+ "aspect-1-1": "_aspect-1-1_1ch8a_126",
16
+ "aspect-3-4": "_aspect-3-4_1ch8a_130",
17
+ imageWrapper: g,
18
+ overlay: d,
19
+ "overlay-gradient": "_overlay-gradient_1ch8a_159",
20
+ "overlay-dark": "_overlay-dark_1ch8a_168",
21
+ content: p,
22
+ eyebrow: l,
23
+ cardTitle: v,
24
+ cardDescription: k,
25
+ action: y,
26
+ "variant-editorial": "_variant-editorial_1ch8a_221",
27
+ "variant-product": "_variant-product_1ch8a_233",
28
+ "variant-gallery": "_variant-gallery_1ch8a_280",
29
+ pagination: u,
30
+ dot: m,
31
+ dotActive: A,
32
+ highlightActive: b,
33
+ cardHighlighted: w
123
34
  };
124
- L.displayName = "ChatAudioPlayer";
125
35
  export {
126
- L as ChatAudioPlayer
36
+ y as action,
37
+ s as card,
38
+ k as cardDescription,
39
+ w as cardHighlighted,
40
+ v as cardTitle,
41
+ a as carousel,
42
+ p as content,
43
+ B as default,
44
+ m as dot,
45
+ A as dotActive,
46
+ l as eyebrow,
47
+ r as gapLg,
48
+ n as gapMd,
49
+ o as gapSm,
50
+ b as highlightActive,
51
+ g as imageWrapper,
52
+ h as navButton,
53
+ i as navigation,
54
+ d as overlay,
55
+ u as pagination,
56
+ e as peek,
57
+ c as track,
58
+ _ as trackContainer,
59
+ t as trackEdge
127
60
  };
package/dist/index178.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("lucide-react"),g=require("./index95.cjs"),b=require("./index184.cjs"),r=require("./index168.cjs"),t=({onRecordingComplete:s,onCancel:u,maxDuration:f=300,className:a,...d})=>{const{isRecording:o,duration:v,audioBlob:c,error:l,startRecording:R,stopRecording:j,cancelRecording:x,reset:n,isSupported:m}=g.useVoiceRecorder({maxDuration:f,onRecordingComplete:s,onError:B=>console.error("Recording error:",B)}),h=()=>{o?j():c?(s?.(c),n()):R()},N=()=>{x(),u?.()};return m?l?e.jsxs("div",{className:[r.default.voiceRecorder,a].filter(Boolean).join(" "),...d,children:[e.jsx("div",{className:r.default.voiceRecorderInfo,children:e.jsx("span",{className:[r.default.voiceRecorderLabel,r.default.voiceRecorderError].join(" "),children:l})}),e.jsx("button",{className:r.default.inputButton,onClick:n,"aria-label":"Try again",children:e.jsx(i.X,{size:20})})]}):e.jsxs("div",{className:[r.default.voiceRecorder,a].filter(Boolean).join(" "),...d,children:[e.jsx("button",{className:[r.default.voiceRecorderButton,!o&&!c&&r.default.voiceRecorderButtonIdle].filter(Boolean).join(" "),onClick:h,"aria-label":o?"Stop recording":c?"Send recording":"Start recording",children:o?e.jsx(i.Square,{size:20}):c?e.jsx(i.Send,{size:20}):e.jsx(i.Mic,{size:20})}),e.jsxs("div",{className:r.default.voiceRecorderInfo,children:[e.jsx("span",{className:r.default.voiceRecorderDuration,children:b.formatTime(v)}),e.jsx("span",{className:r.default.voiceRecorderLabel,children:o?"Recording...":c?"Recording ready":"Click to record"})]}),o&&e.jsxs("div",{className:r.default.voiceRecorderWaveform,children:[e.jsx("div",{className:r.default.voiceRecorderBar}),e.jsx("div",{className:r.default.voiceRecorderBar}),e.jsx("div",{className:r.default.voiceRecorderBar}),e.jsx("div",{className:r.default.voiceRecorderBar}),e.jsx("div",{className:r.default.voiceRecorderBar})]}),(o||c)&&e.jsx("div",{className:r.default.voiceRecorderActions,children:e.jsx("button",{className:r.default.inputButton,onClick:N,"aria-label":"Cancel recording",children:e.jsx(i.X,{size:20})})})]}):e.jsx("div",{className:[r.default.voiceRecorder,a].filter(Boolean).join(" "),...d,children:e.jsx("div",{className:r.default.voiceRecorderInfo,children:e.jsx("span",{className:r.default.voiceRecorderLabel,children:"Voice recording is not supported in this browser"})})})};t.displayName="ChatVoiceRecorder";exports.ChatVoiceRecorder=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_errorBoundary_hux00_1",t="_icon_hux00_14",o="_title_hux00_19",r="_message_hux00_27",s="_resetButton_hux00_35",n={errorBoundary:e,icon:t,title:o,message:r,resetButton:s};exports.default=n;exports.errorBoundary=e;exports.icon=t;exports.message=r;exports.resetButton=s;exports.title=o;
package/dist/index178.mjs CHANGED
@@ -1,111 +1,15 @@
1
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
- import { X as t, Square as b, Send as C, Mic as j } from "lucide-react";
3
- import { useVoiceRecorder as S } from "./index95.mjs";
4
- import { formatTime as k } from "./index184.mjs";
5
- import e from "./index168.mjs";
6
- const z = ({
7
- onRecordingComplete: d,
8
- onCancel: v,
9
- maxDuration: m = 300,
10
- className: a,
11
- ...n
12
- }) => {
13
- const {
14
- isRecording: o,
15
- duration: R,
16
- audioBlob: i,
17
- error: s,
18
- startRecording: h,
19
- stopRecording: u,
20
- cancelRecording: N,
21
- reset: l,
22
- isSupported: f
23
- } = S({
24
- maxDuration: m,
25
- onRecordingComplete: d,
26
- onError: (g) => console.error("Recording error:", g)
27
- }), p = () => {
28
- o ? u() : i ? (d?.(i), l()) : h();
29
- }, B = () => {
30
- N(), v?.();
31
- };
32
- return f ? s ? /* @__PURE__ */ c(
33
- "div",
34
- {
35
- className: [e.voiceRecorder, a].filter(Boolean).join(" "),
36
- ...n,
37
- children: [
38
- /* @__PURE__ */ r("div", { className: e.voiceRecorderInfo, children: /* @__PURE__ */ r(
39
- "span",
40
- {
41
- className: [
42
- e.voiceRecorderLabel,
43
- e.voiceRecorderError
44
- ].join(" "),
45
- children: s
46
- }
47
- ) }),
48
- /* @__PURE__ */ r(
49
- "button",
50
- {
51
- className: e.inputButton,
52
- onClick: l,
53
- "aria-label": "Try again",
54
- children: /* @__PURE__ */ r(t, { size: 20 })
55
- }
56
- )
57
- ]
58
- }
59
- ) : /* @__PURE__ */ c(
60
- "div",
61
- {
62
- className: [e.voiceRecorder, a].filter(Boolean).join(" "),
63
- ...n,
64
- children: [
65
- /* @__PURE__ */ r(
66
- "button",
67
- {
68
- className: [
69
- e.voiceRecorderButton,
70
- !o && !i && e.voiceRecorderButtonIdle
71
- ].filter(Boolean).join(" "),
72
- onClick: p,
73
- "aria-label": o ? "Stop recording" : i ? "Send recording" : "Start recording",
74
- children: o ? /* @__PURE__ */ r(b, { size: 20 }) : i ? /* @__PURE__ */ r(C, { size: 20 }) : /* @__PURE__ */ r(j, { size: 20 })
75
- }
76
- ),
77
- /* @__PURE__ */ c("div", { className: e.voiceRecorderInfo, children: [
78
- /* @__PURE__ */ r("span", { className: e.voiceRecorderDuration, children: k(R) }),
79
- /* @__PURE__ */ r("span", { className: e.voiceRecorderLabel, children: o ? "Recording..." : i ? "Recording ready" : "Click to record" })
80
- ] }),
81
- o && /* @__PURE__ */ c("div", { className: e.voiceRecorderWaveform, children: [
82
- /* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
83
- /* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
84
- /* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
85
- /* @__PURE__ */ r("div", { className: e.voiceRecorderBar }),
86
- /* @__PURE__ */ r("div", { className: e.voiceRecorderBar })
87
- ] }),
88
- (o || i) && /* @__PURE__ */ r("div", { className: e.voiceRecorderActions, children: /* @__PURE__ */ r(
89
- "button",
90
- {
91
- className: e.inputButton,
92
- onClick: B,
93
- "aria-label": "Cancel recording",
94
- children: /* @__PURE__ */ r(t, { size: 20 })
95
- }
96
- ) })
97
- ]
98
- }
99
- ) : /* @__PURE__ */ r(
100
- "div",
101
- {
102
- className: [e.voiceRecorder, a].filter(Boolean).join(" "),
103
- ...n,
104
- children: /* @__PURE__ */ r("div", { className: e.voiceRecorderInfo, children: /* @__PURE__ */ r("span", { className: e.voiceRecorderLabel, children: "Voice recording is not supported in this browser" }) })
105
- }
106
- );
1
+ const t = "_errorBoundary_hux00_1", e = "_icon_hux00_14", o = "_title_hux00_19", s = "_message_hux00_27", r = "_resetButton_hux00_35", n = {
2
+ errorBoundary: t,
3
+ icon: e,
4
+ title: o,
5
+ message: s,
6
+ resetButton: r
107
7
  };
108
- z.displayName = "ChatVoiceRecorder";
109
8
  export {
110
- z as ChatVoiceRecorder
9
+ n as default,
10
+ t as errorBoundary,
11
+ e as icon,
12
+ s as message,
13
+ r as resetButton,
14
+ o as title
111
15
  };
package/dist/index179.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("react"),R=require("lucide-react"),h=require("./index184.cjs"),o=require("./index168.cjs"),g=({onFilesSelected:f,accept:i=["*/*"],multiple:C=!0,maxSize:s=10*1024*1024,children:v,className:D,...k})=>{const[m,u]=t.useState(!1),c=t.useRef(null),d=t.useCallback(e=>{if(!e||e.length===0)return;const r=[];Array.from(e).forEach(l=>{if(s&&l.size>s){console.warn(`File ${l.name} exceeds max size of ${h.formatFileSize(s)}`);return}const F=i.includes("*/*"),q=i.flatMap(n=>(n.endsWith("/*"),n));if(!(F||q.some(n=>{if(n.endsWith("/*")){const N=n.split("/")[0];return l.type.startsWith(`${N}/`)}return l.type===n||l.name.endsWith(n)}))){console.warn(`File ${l.name} type not accepted`);return}r.push(l)}),r.length>0&&f?.(r)},[i,s,f]),b=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!0)},[]),j=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!1)},[]),y=t.useCallback(e=>{e.preventDefault(),e.stopPropagation(),u(!1);const{files:r}=e.dataTransfer;d(r)},[d]),x=t.useCallback(e=>{d(e.target.files),c.current&&(c.current.value="")},[d]),p=t.useCallback(()=>{c.current?.click()},[]),U=t.useCallback(e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),p())},[p]);return a.jsxs("div",{className:[o.default.fileUpload,m&&o.default.fileUploadDragging,D].filter(Boolean).join(" "),onDragOver:b,onDragLeave:j,onDrop:y,onClick:p,onKeyDown:U,role:"button",tabIndex:0,"aria-label":"Upload files",...k,children:[a.jsx("input",{ref:c,type:"file",accept:i.join(","),multiple:C,onChange:x,style:{display:"none"},"aria-hidden":"true"}),v||a.jsxs(a.Fragment,{children:[a.jsx("div",{className:o.default.fileUploadIcon,children:a.jsx(R.Upload,{size:32})}),a.jsxs("div",{className:o.default.fileUploadText,children:[a.jsx("strong",{children:"Click to upload"})," or drag and drop"]}),a.jsxs("div",{className:o.default.fileUploadHint,children:["Max file size: ",h.formatFileSize(s)]})]})]})};g.displayName="ChatFileUpload";exports.ChatFileUpload=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_folder_6iy6s_8",t="_dropTarget_6iy6s_21",o="_dropCompleted_6iy6s_30",n="_header_6iy6s_36",r="_trigger_6iy6s_44",_="_chevron_6iy6s_69",s="_expanded_6iy6s_75",i="_title_6iy6s_84",d="_badge_6iy6s_94",p="_actions_6iy6s_99",a="_content_6iy6s_106",c="_grid_6iy6s_112",y="_badgeLabel_6iy6s_131",g="_sortDropdown_6iy6s_136",l="_emptyState_6iy6s_147",m="_emptyText_6iy6s_152",b="_insertionLine_6iy6s_160",T="_emptyDropZone_6iy6s_182",h={folder:e,dropTarget:t,dropCompleted:o,header:n,trigger:r,chevron:_,expanded:s,title:i,badge:d,actions:p,content:a,grid:c,badgeLabel:y,sortDropdown:g,emptyState:l,emptyText:m,insertionLine:b,emptyDropZone:T};exports.actions=p;exports.badge=d;exports.badgeLabel=y;exports.chevron=_;exports.content=a;exports.default=h;exports.dropCompleted=o;exports.dropTarget=t;exports.emptyDropZone=T;exports.emptyState=l;exports.emptyText=m;exports.expanded=s;exports.folder=e;exports.grid=c;exports.header=n;exports.insertionLine=b;exports.sortDropdown=g;exports.title=i;exports.trigger=r;
package/dist/index179.mjs CHANGED
@@ -1,114 +1,41 @@
1
- import { jsxs as d, jsx as p, Fragment as A } from "react/jsx-runtime";
2
- import { useState as I, useRef as W, useCallback as a } from "react";
3
- import { Upload as $ } from "lucide-react";
4
- import { formatFileSize as g } from "./index184.mjs";
5
- import l from "./index168.mjs";
6
- const P = ({
7
- onFilesSelected: h,
8
- accept: s = ["*/*"],
9
- multiple: m = !0,
10
- maxSize: r = 10 * 1024 * 1024,
11
- // 10MB default
12
- children: D,
13
- className: v,
14
- ...y
15
- }) => {
16
- const [U, f] = I(!1), i = W(null), c = a(
17
- (e) => {
18
- if (!e || e.length === 0) return;
19
- const o = [];
20
- Array.from(e).forEach((t) => {
21
- if (r && t.size > r) {
22
- console.warn(
23
- `File ${t.name} exceeds max size of ${g(r)}`
24
- );
25
- return;
26
- }
27
- const j = s.includes("*/*"), w = s.flatMap((n) => (n.endsWith("/*"), n));
28
- if (!(j || w.some((n) => {
29
- if (n.endsWith("/*")) {
30
- const x = n.split("/")[0];
31
- return t.type.startsWith(`${x}/`);
32
- }
33
- return t.type === n || t.name.endsWith(n);
34
- }))) {
35
- console.warn(`File ${t.name} type not accepted`);
36
- return;
37
- }
38
- o.push(t);
39
- }), o.length > 0 && h?.(o);
40
- },
41
- [s, r, h]
42
- ), C = a((e) => {
43
- e.preventDefault(), e.stopPropagation(), f(!0);
44
- }, []), k = a((e) => {
45
- e.preventDefault(), e.stopPropagation(), f(!1);
46
- }, []), F = a(
47
- (e) => {
48
- e.preventDefault(), e.stopPropagation(), f(!1);
49
- const { files: o } = e.dataTransfer;
50
- c(o);
51
- },
52
- [c]
53
- ), N = a(
54
- (e) => {
55
- c(e.target.files), i.current && (i.current.value = "");
56
- },
57
- [c]
58
- ), u = a(() => {
59
- i.current?.click();
60
- }, []), b = a(
61
- (e) => {
62
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), u());
63
- },
64
- [u]
65
- );
66
- return /* @__PURE__ */ d(
67
- "div",
68
- {
69
- className: [
70
- l.fileUpload,
71
- U && l.fileUploadDragging,
72
- v
73
- ].filter(Boolean).join(" "),
74
- onDragOver: C,
75
- onDragLeave: k,
76
- onDrop: F,
77
- onClick: u,
78
- onKeyDown: b,
79
- role: "button",
80
- tabIndex: 0,
81
- "aria-label": "Upload files",
82
- ...y,
83
- children: [
84
- /* @__PURE__ */ p(
85
- "input",
86
- {
87
- ref: i,
88
- type: "file",
89
- accept: s.join(","),
90
- multiple: m,
91
- onChange: N,
92
- style: { display: "none" },
93
- "aria-hidden": "true"
94
- }
95
- ),
96
- D || /* @__PURE__ */ d(A, { children: [
97
- /* @__PURE__ */ p("div", { className: l.fileUploadIcon, children: /* @__PURE__ */ p($, { size: 32 }) }),
98
- /* @__PURE__ */ d("div", { className: l.fileUploadText, children: [
99
- /* @__PURE__ */ p("strong", { children: "Click to upload" }),
100
- " or drag and drop"
101
- ] }),
102
- /* @__PURE__ */ d("div", { className: l.fileUploadHint, children: [
103
- "Max file size: ",
104
- g(r)
105
- ] })
106
- ] })
107
- ]
108
- }
109
- );
1
+ const e = "_folder_6iy6s_8", t = "_dropTarget_6iy6s_21", o = "_dropCompleted_6iy6s_30", _ = "_header_6iy6s_36", n = "_trigger_6iy6s_44", s = "_chevron_6iy6s_69", r = "_expanded_6iy6s_75", i = "_title_6iy6s_84", d = "_badge_6iy6s_94", c = "_actions_6iy6s_99", p = "_content_6iy6s_106", y = "_grid_6iy6s_112", a = "_badgeLabel_6iy6s_131", g = "_sortDropdown_6iy6s_136", l = "_emptyState_6iy6s_147", m = "_emptyText_6iy6s_152", b = "_insertionLine_6iy6s_160", x = "_emptyDropZone_6iy6s_182", h = {
2
+ folder: e,
3
+ dropTarget: t,
4
+ dropCompleted: o,
5
+ header: _,
6
+ trigger: n,
7
+ chevron: s,
8
+ expanded: r,
9
+ title: i,
10
+ badge: d,
11
+ actions: c,
12
+ content: p,
13
+ grid: y,
14
+ badgeLabel: a,
15
+ sortDropdown: g,
16
+ emptyState: l,
17
+ emptyText: m,
18
+ insertionLine: b,
19
+ emptyDropZone: x
110
20
  };
111
- P.displayName = "ChatFileUpload";
112
21
  export {
113
- P as ChatFileUpload
22
+ c as actions,
23
+ d as badge,
24
+ a as badgeLabel,
25
+ s as chevron,
26
+ p as content,
27
+ h as default,
28
+ o as dropCompleted,
29
+ t as dropTarget,
30
+ x as emptyDropZone,
31
+ l as emptyState,
32
+ m as emptyText,
33
+ r as expanded,
34
+ e as folder,
35
+ y as grid,
36
+ _ as header,
37
+ b as insertionLine,
38
+ g as sortDropdown,
39
+ i as title,
40
+ n as trigger
114
41
  };
package/dist/index18.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),e=require("./index132.cjs"),d=({item:i,aspectRatio:c="16/9",variant:n="editorial",className:o,style:u,...m})=>{const{image:f,eyebrow:l,title:j,description:s,action:r,overlay:t="gradient"}=i,p=[e.default.card,e.default[`variant-${n}`],e.default[`aspect-${c.replace("/","-")}`],o].filter(Boolean).join(" ");return a.jsxs("article",{className:p,style:u,...m,children:[a.jsx("div",{className:e.default.imageWrapper,children:f}),t!=="none"&&a.jsx("div",{className:`${e.default.overlay} ${e.default[`overlay-${t}`]}`}),a.jsxs("div",{className:e.default.content,children:[l&&a.jsx("span",{className:e.default.eyebrow,children:l}),a.jsx("h3",{className:e.default.cardTitle,children:j}),s&&a.jsx("p",{className:e.default.cardDescription,children:s}),r&&a.jsx("div",{className:e.default.action,children:r})]})]})};d.displayName="CarouselCard";exports.CarouselCard=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),e=require("./index177.cjs"),d=({item:i,aspectRatio:c="16/9",variant:n="editorial",className:o,style:u,...m})=>{const{image:f,eyebrow:l,title:j,description:s,action:r,overlay:t="gradient"}=i,p=[e.default.card,e.default[`variant-${n}`],e.default[`aspect-${c.replace("/","-")}`],o].filter(Boolean).join(" ");return a.jsxs("article",{className:p,style:u,...m,children:[a.jsx("div",{className:e.default.imageWrapper,children:f}),t!=="none"&&a.jsx("div",{className:`${e.default.overlay} ${e.default[`overlay-${t}`]}`}),a.jsxs("div",{className:e.default.content,children:[l&&a.jsx("span",{className:e.default.eyebrow,children:l}),a.jsx("h3",{className:e.default.cardTitle,children:j}),s&&a.jsx("p",{className:e.default.cardDescription,children:s}),r&&a.jsx("div",{className:e.default.action,children:r})]})]})};d.displayName="CarouselCard";exports.CarouselCard=d;
package/dist/index18.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsxs as l, jsx as a } from "react/jsx-runtime";
2
- import e from "./index132.mjs";
2
+ import e from "./index177.mjs";
3
3
  const y = ({
4
4
  item: o,
5
5
  aspectRatio: n = "16/9",
package/dist/index180.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("lucide-react"),p=require("./index176.cjs"),P=require("./index177.cjs"),b=require("./index174.cjs"),C=require("./index184.cjs"),t=require("./index168.cjs"),w=d=>{switch(d){case"image":return e.jsx(a.Image,{size:18});case"audio":return e.jsx(a.Music,{size:18});case"code":return e.jsx(a.Code,{size:18});default:return e.jsx(a.FileText,{size:18})}},v=({attachment:d,removable:h=!1,onRemove:i,onClick:n,className:c,...o})=>{const{type:m,name:s,url:l,content:j,language:f,size:x,duration:u,thumbnail:g}=d;switch(m){case"image":if(l)return e.jsxs("div",{className:c,style:{position:"relative"},...o,children:[e.jsx(p.ChatImagePreview,{src:l,alt:s,thumbnail:g,onClick:n}),h&&i&&e.jsx("button",{className:t.default.attachmentPreviewRemove,onClick:r=>{r.stopPropagation(),i()},"aria-label":`Remove ${s}`,style:{position:"absolute",top:4,right:4,background:"var(--surface-base)"},children:e.jsx(a.X,{size:14})})]});break;case"audio":if(l)return e.jsxs("div",{className:c,style:{position:"relative"},...o,children:[e.jsx(P.ChatAudioPlayer,{src:l,duration:u,title:s}),h&&i&&e.jsx("button",{className:t.default.attachmentPreviewRemove,onClick:r=>{r.stopPropagation(),i()},"aria-label":`Remove ${s}`,children:e.jsx(a.X,{size:14})})]});break;case"code":if(j)return e.jsx(b.ChatCodeBlock,{code:j,language:f,className:c,...o});break}return e.jsxs("div",{className:[t.default.attachmentPreview,c].filter(Boolean).join(" "),onClick:n,role:n?"button":void 0,tabIndex:n?0:void 0,...o,children:[e.jsx("div",{className:t.default.attachmentPreviewIcon,children:w(m)}),e.jsxs("div",{className:t.default.attachmentPreviewInfo,children:[e.jsx("span",{className:t.default.attachmentPreviewName,children:s}),x&&e.jsxs("span",{className:t.default.attachmentPreviewMeta,children:[C.formatFileSize(x),u&&` · ${Math.floor(u/60)}:${(u%60).toString().padStart(2,"0")}`]})]}),h&&i&&e.jsx("button",{className:t.default.attachmentPreviewRemove,onClick:r=>{r.stopPropagation(),i()},"aria-label":`Remove ${s}`,children:e.jsx(a.X,{size:14})})]})};v.displayName="ChatAttachment";exports.ChatAttachment=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_trigger_9nsdr_9",r="_menu_9nsdr_14",s="_visible_9nsdr_31",t="_group_9nsdr_45",n="_groupLabel_9nsdr_49",o="_separator_9nsdr_59",_="_item_9nsdr_69",a="_disabled_9nsdr_82",d="_danger_9nsdr_98",i="_icon_9nsdr_111",l="_label_9nsdr_122",c="_shortcut_9nsdr_126",u={trigger:e,menu:r,visible:s,group:t,groupLabel:n,separator:o,item:_,disabled:a,danger:d,icon:i,label:l,shortcut:c};exports.danger=d;exports.default=u;exports.disabled=a;exports.group=t;exports.groupLabel=n;exports.icon=i;exports.item=_;exports.label=l;exports.menu=r;exports.separator=o;exports.shortcut=c;exports.trigger=e;exports.visible=s;