@orion-ds/react 4.2.3 → 4.2.5

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 (383) hide show
  1. package/dist/components/Accordion/Accordion.module.css +1 -0
  2. package/dist/components/ActivityFeed/ActivityFeed.module.css +1 -0
  3. package/dist/components/AgentCard/AgentCard.module.css +1 -0
  4. package/dist/components/Alert/Alert.module.css +1 -0
  5. package/dist/components/AlertDialog/AlertDialog.module.css +1 -0
  6. package/dist/components/Avatar/Avatar.module.css +1 -0
  7. package/dist/components/Badge/Badge.module.css +1 -0
  8. package/dist/components/Banner/Banner.module.css +1 -0
  9. package/dist/components/Breadcrumb/Breadcrumb.module.css +1 -0
  10. package/dist/components/Button/Button.module.css +1 -0
  11. package/dist/components/Calendar/Calendar.module.css +1 -0
  12. package/dist/components/Card/Card.module.css +1 -0
  13. package/dist/components/Carousel/Carousel.module.css +1 -0
  14. package/dist/components/Chart/Chart.module.css +1 -0
  15. package/dist/components/Chat/Chat.module.css +1 -0
  16. package/dist/components/Checkbox/Checkbox.module.css +1 -0
  17. package/dist/components/Chip/Chip.module.css +1 -0
  18. package/dist/components/CodeEditor/CodeEditor.module.css +1 -0
  19. package/dist/components/Collapsible/Collapsible.module.css +1 -0
  20. package/dist/components/CollapsibleFolder/CollapsibleFolder.module.css +1 -0
  21. package/dist/components/Combobox/Combobox.module.css +1 -0
  22. package/dist/components/Command/Command.module.css +1 -0
  23. package/dist/components/CommandBar/CommandBar.module.css +1 -0
  24. package/dist/components/DataTable/DataTable.module.css +1 -0
  25. package/dist/components/DatePicker/DatePicker.module.css +1 -0
  26. package/dist/components/DetailPanel/DetailPanel.module.css +1 -0
  27. package/dist/components/Divider/Divider.module.css +1 -0
  28. package/dist/components/Drawer/Drawer.module.css +1 -0
  29. package/dist/components/Dropdown/Dropdown.module.css +1 -0
  30. package/dist/components/EmptyState/EmptyState.module.css +1 -0
  31. package/dist/components/ErrorBoundary/ErrorBoundary.module.css +1 -0
  32. package/dist/components/Field/Field.module.css +1 -0
  33. package/dist/components/FileUploader/FileUploader.module.css +1 -0
  34. package/dist/components/FilterBar/FilterBar.module.css +1 -0
  35. package/dist/components/FormSection/FormSection.module.css +1 -0
  36. package/dist/components/Icon/Icon.module.css +1 -0
  37. package/dist/components/IconGallery/IconGallery.module.css +1 -0
  38. package/dist/components/InputOTP/InputOTP.module.css +1 -0
  39. package/dist/components/KanbanBoard/KanbanBoard.module.css +1 -0
  40. package/dist/components/Link/Link.module.css +1 -0
  41. package/dist/components/List/List.module.css +1 -0
  42. package/dist/components/MetricCards/MetricCards.module.css +1 -0
  43. package/dist/components/Modal/Modal.module.css +1 -0
  44. package/dist/components/NavTree/NavTree.module.css +1 -0
  45. package/dist/components/Navbar/Navbar.module.css +1 -0
  46. package/dist/components/NotificationCenter/NotificationCenter.module.css +1 -0
  47. package/dist/components/PageHeader/PageHeader.module.css +1 -0
  48. package/dist/components/Pagination/Pagination.module.css +1 -0
  49. package/dist/components/Popover/Popover.module.css +1 -0
  50. package/dist/components/ProgressBar/ProgressBar.module.css +1 -0
  51. package/dist/components/QuickActions/QuickActions.module.css +1 -0
  52. package/dist/components/Radio/Radio.module.css +1 -0
  53. package/dist/components/SearchInput/SearchInput.module.css +1 -0
  54. package/dist/components/Select/Select.module.css +1 -0
  55. package/dist/components/Sidebar/Sidebar.module.css +1 -0
  56. package/dist/components/Skeleton/Skeleton.module.css +1 -0
  57. package/dist/components/Slider/Slider.module.css +1 -0
  58. package/dist/components/Spinner/Spinner.module.css +1 -0
  59. package/dist/components/Stepper/Stepper.module.css +1 -0
  60. package/dist/components/Switch/Switch.module.css +1 -0
  61. package/dist/components/Table/Table.module.css +1 -0
  62. package/dist/components/Tabs/Tabs.module.css +1 -0
  63. package/dist/components/Textarea/Textarea.module.css +1 -0
  64. package/dist/components/Toast/Toast.module.css +1 -0
  65. package/dist/components/Toggle/Toggle.module.css +1 -0
  66. package/dist/components/ToggleGroup/ToggleGroup.module.css +1 -0
  67. package/dist/components/Tooltip/Tooltip.module.css +1 -0
  68. package/dist/components/UserMenu/UserMenu.module.css +1 -0
  69. package/dist/components/WorkspaceSwitcher/WorkspaceSwitcher.module.css +1 -0
  70. package/dist/index10.cjs +1 -1
  71. package/dist/index10.mjs +1 -1
  72. package/dist/index100.cjs +1 -1
  73. package/dist/index100.mjs +24 -20
  74. package/dist/index101.cjs +1 -1
  75. package/dist/index101.mjs +44 -42
  76. package/dist/index102.cjs +1 -1
  77. package/dist/index102.mjs +30 -62
  78. package/dist/index103.cjs +1 -1
  79. package/dist/index103.mjs +28 -30
  80. package/dist/index104.cjs +1 -1
  81. package/dist/index104.mjs +15 -35
  82. package/dist/index105.cjs +1 -1
  83. package/dist/index105.mjs +64 -30
  84. package/dist/index106.cjs +1 -1
  85. package/dist/index106.mjs +52 -45
  86. package/dist/index107.cjs +1 -1
  87. package/dist/index107.mjs +42 -18
  88. package/dist/index108.cjs +1 -1
  89. package/dist/index108.mjs +28 -28
  90. package/dist/index109.cjs +1 -1
  91. package/dist/index109.mjs +24 -14
  92. package/dist/index11.cjs +1 -1
  93. package/dist/index11.mjs +1 -1
  94. package/dist/index110.cjs +1 -1
  95. package/dist/index110.mjs +28 -46
  96. package/dist/index111.cjs +1 -1
  97. package/dist/index111.mjs +18 -24
  98. package/dist/index112.cjs +1 -1
  99. package/dist/index112.mjs +14 -46
  100. package/dist/index113.cjs +1 -1
  101. package/dist/index113.mjs +50 -42
  102. package/dist/index114.cjs +1 -1
  103. package/dist/index114.mjs +53 -18
  104. package/dist/index115.cjs +1 -1
  105. package/dist/index115.mjs +62 -22
  106. package/dist/index116.cjs +1 -1
  107. package/dist/index116.mjs +32 -32
  108. package/dist/index117.cjs +1 -1
  109. package/dist/index117.mjs +30 -20
  110. package/dist/index118.cjs +1 -1
  111. package/dist/index118.mjs +18 -32
  112. package/dist/index119.cjs +1 -1
  113. package/dist/index119.mjs +56 -52
  114. package/dist/index12.cjs +1 -1
  115. package/dist/index12.mjs +1 -1
  116. package/dist/index120.cjs +1 -1
  117. package/dist/index120.mjs +38 -20
  118. package/dist/index121.cjs +1 -1
  119. package/dist/index121.mjs +20 -18
  120. package/dist/index122.cjs +1 -1
  121. package/dist/index122.mjs +40 -32
  122. package/dist/index123.cjs +1 -1
  123. package/dist/index123.mjs +76 -30
  124. package/dist/index124.cjs +1 -1
  125. package/dist/index124.mjs +52 -24
  126. package/dist/index125.cjs +1 -1
  127. package/dist/index125.mjs +30 -28
  128. package/dist/index126.cjs +1 -1
  129. package/dist/index126.mjs +63 -36
  130. package/dist/index127.cjs +1 -1
  131. package/dist/index127.mjs +30 -38
  132. package/dist/index128.cjs +1 -1
  133. package/dist/index128.mjs +32 -40
  134. package/dist/index129.cjs +1 -1
  135. package/dist/index129.mjs +45 -40
  136. package/dist/index13.cjs +1 -1
  137. package/dist/index13.mjs +1 -1
  138. package/dist/index130.cjs +1 -1
  139. package/dist/index130.mjs +41 -35
  140. package/dist/index131.cjs +1 -1
  141. package/dist/index131.mjs +28 -44
  142. package/dist/index132.cjs +1 -1
  143. package/dist/index132.mjs +30 -16
  144. package/dist/index133.cjs +1 -1
  145. package/dist/index133.mjs +24 -28
  146. package/dist/index134.cjs +1 -1
  147. package/dist/index134.mjs +11 -21
  148. package/dist/index135.cjs +1 -1
  149. package/dist/index135.mjs +234 -28
  150. package/dist/index136.cjs +1 -1
  151. package/dist/index136.mjs +34 -56
  152. package/dist/index137.cjs +1 -1
  153. package/dist/index137.mjs +44 -57
  154. package/dist/index138.cjs +1 -1
  155. package/dist/index138.mjs +170 -33
  156. package/dist/index139.cjs +1 -1
  157. package/dist/index139.mjs +186 -47
  158. package/dist/index14.cjs +1 -1
  159. package/dist/index14.mjs +1 -1
  160. package/dist/index140.cjs +1 -1
  161. package/dist/index140.mjs +28 -36
  162. package/dist/index141.cjs +1 -1
  163. package/dist/index141.mjs +90 -28
  164. package/dist/index142.cjs +1 -1
  165. package/dist/index142.mjs +53 -68
  166. package/dist/index143.cjs +1 -1
  167. package/dist/index143.mjs +66 -52
  168. package/dist/index144.cjs +1 -1
  169. package/dist/index144.mjs +124 -62
  170. package/dist/index145.cjs +1 -1
  171. package/dist/index145.mjs +108 -234
  172. package/dist/index146.cjs +1 -1
  173. package/dist/index146.mjs +111 -33
  174. package/dist/index147.cjs +1 -1
  175. package/dist/index147.mjs +120 -41
  176. package/dist/index148.cjs +1 -1
  177. package/dist/index148.mjs +199 -155
  178. package/dist/index149.cjs +1 -1
  179. package/dist/index149.mjs +23 -186
  180. package/dist/index15.cjs +1 -1
  181. package/dist/index15.mjs +1 -1
  182. package/dist/index150.cjs +1 -1
  183. package/dist/index150.mjs +37 -29
  184. package/dist/index151.cjs +1 -1
  185. package/dist/index151.mjs +12 -90
  186. package/dist/index152.cjs +1 -1
  187. package/dist/index152.mjs +29 -53
  188. package/dist/index153.cjs +1 -1
  189. package/dist/index153.mjs +46 -66
  190. package/dist/index154.cjs +1 -1
  191. package/dist/index154.mjs +38 -124
  192. package/dist/index155.cjs +1 -1
  193. package/dist/index155.mjs +36 -108
  194. package/dist/index156.cjs +1 -1
  195. package/dist/index156.mjs +18 -111
  196. package/dist/index157.cjs +1 -1
  197. package/dist/index157.mjs +62 -122
  198. package/dist/index158.cjs +1 -1
  199. package/dist/index158.mjs +18 -214
  200. package/dist/index159.cjs +1 -1
  201. package/dist/index159.mjs +67 -64
  202. package/dist/index16.cjs +1 -1
  203. package/dist/index16.mjs +1 -1
  204. package/dist/index160.cjs +1 -1
  205. package/dist/index160.mjs +20 -57
  206. package/dist/index161.cjs +1 -1
  207. package/dist/index161.mjs +106 -27
  208. package/dist/index162.cjs +1 -1
  209. package/dist/index162.mjs +33 -28
  210. package/dist/index163.cjs +1 -1
  211. package/dist/index163.mjs +28 -18
  212. package/dist/index164.cjs +1 -1
  213. package/dist/index164.mjs +18 -24
  214. package/dist/index165.cjs +1 -1
  215. package/dist/index165.mjs +37 -51
  216. package/dist/index166.cjs +1 -1
  217. package/dist/index166.mjs +28 -64
  218. package/dist/index167.cjs +1 -1
  219. package/dist/index167.mjs +46 -33
  220. package/dist/index168.cjs +1 -1
  221. package/dist/index168.mjs +22 -30
  222. package/dist/index169.cjs +1 -1
  223. package/dist/index169.mjs +40 -42
  224. package/dist/index17.cjs +1 -1
  225. package/dist/index17.mjs +1 -1
  226. package/dist/index170.cjs +1 -1
  227. package/dist/index170.mjs +20 -12
  228. package/dist/index171.cjs +1 -1
  229. package/dist/index171.mjs +42 -44
  230. package/dist/index172.cjs +1 -1
  231. package/dist/index172.mjs +64 -40
  232. package/dist/index173.cjs +1 -1
  233. package/dist/index173.mjs +55 -28
  234. package/dist/index174.cjs +1 -1
  235. package/dist/index174.mjs +26 -76
  236. package/dist/index175.cjs +1 -1
  237. package/dist/index175.mjs +44 -106
  238. package/dist/index176.cjs +1 -1
  239. package/dist/index176.mjs +28 -26
  240. package/dist/index177.cjs +1 -1
  241. package/dist/index177.mjs +32 -29
  242. package/dist/index178.cjs +1 -1
  243. package/dist/index178.mjs +32 -12
  244. package/dist/index179.cjs +1 -1
  245. package/dist/index179.mjs +44 -16
  246. package/dist/index18.cjs +1 -1
  247. package/dist/index18.mjs +1 -1
  248. package/dist/index180.cjs +1 -1
  249. package/dist/index180.mjs +55 -51
  250. package/dist/index181.cjs +1 -1
  251. package/dist/index181.mjs +27 -65
  252. package/dist/index185.cjs +1 -1
  253. package/dist/index185.mjs +1 -1
  254. package/dist/index19.cjs +1 -1
  255. package/dist/index19.mjs +2 -2
  256. package/dist/index20.cjs +1 -1
  257. package/dist/index20.mjs +14 -14
  258. package/dist/index21.cjs +1 -1
  259. package/dist/index21.mjs +1 -1
  260. package/dist/index22.cjs +1 -1
  261. package/dist/index22.mjs +1 -1
  262. package/dist/index23.cjs +1 -1
  263. package/dist/index23.mjs +1 -1
  264. package/dist/index24.cjs +1 -1
  265. package/dist/index24.mjs +1 -1
  266. package/dist/index25.cjs +1 -1
  267. package/dist/index25.mjs +1 -1
  268. package/dist/index26.cjs +1 -1
  269. package/dist/index26.mjs +1 -1
  270. package/dist/index27.cjs +1 -1
  271. package/dist/index27.mjs +1 -1
  272. package/dist/index28.cjs +1 -1
  273. package/dist/index28.mjs +1 -1
  274. package/dist/index30.cjs +1 -1
  275. package/dist/index30.mjs +1 -1
  276. package/dist/index31.cjs +1 -1
  277. package/dist/index31.mjs +1 -1
  278. package/dist/index32.cjs +1 -1
  279. package/dist/index32.mjs +1 -1
  280. package/dist/index33.cjs +1 -1
  281. package/dist/index33.mjs +1 -1
  282. package/dist/index34.cjs +1 -1
  283. package/dist/index34.mjs +1 -1
  284. package/dist/index35.cjs +1 -1
  285. package/dist/index35.mjs +1 -1
  286. package/dist/index36.cjs +1 -1
  287. package/dist/index36.mjs +1 -1
  288. package/dist/index37.cjs +1 -1
  289. package/dist/index37.mjs +1 -1
  290. package/dist/index38.cjs +1 -1
  291. package/dist/index38.mjs +1 -1
  292. package/dist/index39.cjs +1 -1
  293. package/dist/index39.mjs +1 -1
  294. package/dist/index40.cjs +1 -1
  295. package/dist/index40.mjs +1 -1
  296. package/dist/index42.cjs +1 -1
  297. package/dist/index42.mjs +1 -1
  298. package/dist/index43.cjs +1 -1
  299. package/dist/index43.mjs +1 -1
  300. package/dist/index44.cjs +1 -1
  301. package/dist/index44.mjs +1 -1
  302. package/dist/index46.cjs +1 -1
  303. package/dist/index46.mjs +1 -1
  304. package/dist/index47.cjs +1 -1
  305. package/dist/index47.mjs +1 -1
  306. package/dist/index49.cjs +1 -1
  307. package/dist/index49.mjs +1 -1
  308. package/dist/index5.cjs +1 -1
  309. package/dist/index5.mjs +1 -1
  310. package/dist/index50.cjs +1 -1
  311. package/dist/index50.mjs +1 -1
  312. package/dist/index51.cjs +1 -1
  313. package/dist/index51.mjs +1 -1
  314. package/dist/index52.cjs +1 -1
  315. package/dist/index52.mjs +1 -1
  316. package/dist/index53.cjs +1 -1
  317. package/dist/index53.mjs +1 -1
  318. package/dist/index54.cjs +1 -1
  319. package/dist/index54.mjs +1 -1
  320. package/dist/index55.cjs +1 -1
  321. package/dist/index55.mjs +1 -1
  322. package/dist/index56.cjs +1 -1
  323. package/dist/index56.mjs +1 -1
  324. package/dist/index57.cjs +1 -1
  325. package/dist/index57.mjs +1 -1
  326. package/dist/index58.cjs +1 -1
  327. package/dist/index58.mjs +1 -1
  328. package/dist/index59.cjs +1 -1
  329. package/dist/index59.mjs +1 -1
  330. package/dist/index6.cjs +1 -1
  331. package/dist/index6.mjs +1 -1
  332. package/dist/index60.cjs +1 -1
  333. package/dist/index60.mjs +1 -1
  334. package/dist/index61.cjs +1 -1
  335. package/dist/index61.mjs +1 -1
  336. package/dist/index62.cjs +1 -1
  337. package/dist/index62.mjs +1 -1
  338. package/dist/index64.cjs +1 -1
  339. package/dist/index64.mjs +1 -1
  340. package/dist/index65.cjs +1 -1
  341. package/dist/index65.mjs +1 -1
  342. package/dist/index66.cjs +1 -1
  343. package/dist/index66.mjs +1 -1
  344. package/dist/index67.cjs +1 -1
  345. package/dist/index67.mjs +1 -1
  346. package/dist/index68.cjs +1 -1
  347. package/dist/index68.mjs +1 -1
  348. package/dist/index69.cjs +1 -1
  349. package/dist/index69.mjs +1 -1
  350. package/dist/index7.cjs +1 -1
  351. package/dist/index7.mjs +1 -1
  352. package/dist/index70.cjs +1 -1
  353. package/dist/index70.mjs +1 -1
  354. package/dist/index71.cjs +1 -1
  355. package/dist/index71.mjs +1 -1
  356. package/dist/index72.cjs +1 -1
  357. package/dist/index72.mjs +1 -1
  358. package/dist/index73.cjs +1 -1
  359. package/dist/index73.mjs +1 -1
  360. package/dist/index76.cjs +1 -1
  361. package/dist/index76.mjs +1 -1
  362. package/dist/index77.cjs +1 -1
  363. package/dist/index77.mjs +1 -1
  364. package/dist/index78.cjs +1 -1
  365. package/dist/index78.mjs +1 -1
  366. package/dist/index79.cjs +1 -1
  367. package/dist/index79.mjs +1 -1
  368. package/dist/index8.cjs +1 -1
  369. package/dist/index8.mjs +1 -1
  370. package/dist/index80.cjs +1 -1
  371. package/dist/index80.mjs +1 -1
  372. package/dist/index81.cjs +1 -1
  373. package/dist/index81.mjs +1 -1
  374. package/dist/index9.cjs +1 -1
  375. package/dist/index9.mjs +1 -1
  376. package/dist/index99.cjs +1 -1
  377. package/dist/index99.mjs +40 -28
  378. package/dist/sections/Container/Container.module.css +1 -0
  379. package/dist/sections/Section/Section.module.css +1 -0
  380. package/dist/styles/marker.css +1 -0
  381. package/dist/styles.css +159 -1
  382. package/package.json +1 -1
  383. package/dist/react.css +0 -1
package/dist/index179.mjs CHANGED
@@ -1,21 +1,49 @@
1
- const t = "_container_1tqko_8", o = "_tooltip_1tqko_21", _ = "_tooltipFadeIn_1tqko_1", n = "_arrow_1tqko_49", r = "_top_1tqko_62", c = "_bottom_1tqko_78", e = "_left_1tqko_94", i = "_right_1tqko_110", s = {
1
+ const t = "_container_ys2b2_9", s = "_toast_ys2b2_64", e = "_slideIn_ys2b2_1", _ = "_exiting_ys2b2_77", n = "_slideOut_ys2b2_1", o = "_slideInLeft_ys2b2_1", i = "_slideOutLeft_ys2b2_1", c = "_slideInCenter_ys2b2_1", b = "_slideOutCenter_ys2b2_1", l = "_info_ys2b2_173", r = "_icon_ys2b2_173", y = "_success_ys2b2_177", d = "_warning_ys2b2_181", a = "_error_ys2b2_185", u = "_content_ys2b2_199", f = "_title_ys2b2_204", g = "_message_ys2b2_212", m = "_action_ys2b2_223", I = "_closeButton_ys2b2_246", O = {
2
2
  container: t,
3
- tooltip: o,
4
- tooltipFadeIn: _,
5
- arrow: n,
6
- top: r,
7
- bottom: c,
8
- left: e,
9
- right: i
3
+ "top-left": "_top-left_ys2b2_25",
4
+ "top-center": "_top-center_ys2b2_30",
5
+ "top-right": "_top-right_ys2b2_36",
6
+ "bottom-left": "_bottom-left_ys2b2_41",
7
+ "bottom-center": "_bottom-center_ys2b2_47",
8
+ "bottom-right": "_bottom-right_ys2b2_54",
9
+ toast: s,
10
+ slideIn: e,
11
+ exiting: _,
12
+ slideOut: n,
13
+ slideInLeft: o,
14
+ slideOutLeft: i,
15
+ slideInCenter: c,
16
+ slideOutCenter: b,
17
+ info: l,
18
+ icon: r,
19
+ success: y,
20
+ warning: d,
21
+ error: a,
22
+ content: u,
23
+ title: f,
24
+ message: g,
25
+ action: m,
26
+ closeButton: I
10
27
  };
11
28
  export {
12
- n as arrow,
13
- c as bottom,
29
+ m as action,
30
+ I as closeButton,
14
31
  t as container,
15
- s as default,
16
- e as left,
17
- i as right,
18
- o as tooltip,
19
- _ as tooltipFadeIn,
20
- r as top
32
+ u as content,
33
+ O as default,
34
+ a as error,
35
+ _ as exiting,
36
+ r as icon,
37
+ l as info,
38
+ g as message,
39
+ e as slideIn,
40
+ c as slideInCenter,
41
+ o as slideInLeft,
42
+ n as slideOut,
43
+ b as slideOutCenter,
44
+ i as slideOutLeft,
45
+ y as success,
46
+ f as title,
47
+ s as toast,
48
+ d as warning
21
49
  };
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("./index160.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("./index180.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 "./index160.mjs";
2
+ import e from "./index180.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.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_formSection_fr6de_8",o="_divider_fr6de_13",n="_disabled_fr6de_19",r="_header_fr6de_28",_="_collapsible_fr6de_41",t="_collapsed_fr6de_54",d="_headerContent_fr6de_58",l="_headerText_fr6de_64",c="_icon_fr6de_69",i="_title_fr6de_81",s="_description_fr6de_90",a="_collapseIcon_fr6de_98",p="_iconCollapsed_fr6de_104",f="_content_fr6de_112",u="_fields_fr6de_118",g="_actionsWrapper_fr6de_124",b="_group_fr6de_134",h="_groupLabel_fr6de_140",m="_groupFields_fr6de_147",v="_groupHelp_fr6de_164",C="_actions_fr6de_124",S={formSection:e,divider:o,disabled:n,header:r,collapsible:_,collapsed:t,headerContent:d,headerText:l,icon:c,title:i,description:s,collapseIcon:a,iconCollapsed:p,content:f,fields:u,actionsWrapper:g,group:b,groupLabel:h,groupFields:m,"columns-1":"_columns-1_fr6de_152","columns-2":"_columns-2_fr6de_156","columns-3":"_columns-3_fr6de_160",groupHelp:v,actions:C,"align-start":"_align-start_fr6de_182","align-center":"_align-center_fr6de_186","align-end":"_align-end_fr6de_190","align-between":"_align-between_fr6de_194","variant-card":"_variant-card_fr6de_202","variant-inline":"_variant-inline_fr6de_221"};exports.actions=C;exports.actionsWrapper=g;exports.collapseIcon=a;exports.collapsed=t;exports.collapsible=_;exports.content=f;exports.default=S;exports.description=s;exports.disabled=n;exports.divider=o;exports.fields=u;exports.formSection=e;exports.group=b;exports.groupFields=m;exports.groupHelp=v;exports.groupLabel=h;exports.header=r;exports.headerContent=d;exports.headerText=l;exports.icon=c;exports.iconCollapsed=p;exports.title=i;
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/index180.mjs CHANGED
@@ -1,56 +1,60 @@
1
- const e = "_formSection_fr6de_8", _ = "_divider_fr6de_13", n = "_disabled_fr6de_19", o = "_header_fr6de_28", r = "_collapsible_fr6de_41", d = "_collapsed_fr6de_54", t = "_headerContent_fr6de_58", c = "_headerText_fr6de_64", l = "_icon_fr6de_69", s = "_title_fr6de_81", a = "_description_fr6de_90", i = "_collapseIcon_fr6de_98", f = "_iconCollapsed_fr6de_104", p = "_content_fr6de_112", g = "_fields_fr6de_118", u = "_actionsWrapper_fr6de_124", b = "_group_fr6de_134", h = "_groupLabel_fr6de_140", m = "_groupFields_fr6de_147", v = "_groupHelp_fr6de_164", C = "_actions_fr6de_124", x = {
2
- formSection: e,
3
- divider: _,
4
- disabled: n,
5
- header: o,
6
- collapsible: r,
7
- collapsed: d,
8
- headerContent: t,
9
- headerText: c,
10
- icon: l,
11
- title: s,
12
- description: a,
13
- collapseIcon: i,
14
- iconCollapsed: f,
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",
15
21
  content: p,
16
- fields: g,
17
- actionsWrapper: u,
18
- group: b,
19
- groupLabel: h,
20
- groupFields: m,
21
- "columns-1": "_columns-1_fr6de_152",
22
- "columns-2": "_columns-2_fr6de_156",
23
- "columns-3": "_columns-3_fr6de_160",
24
- groupHelp: v,
25
- actions: C,
26
- "align-start": "_align-start_fr6de_182",
27
- "align-center": "_align-center_fr6de_186",
28
- "align-end": "_align-end_fr6de_190",
29
- "align-between": "_align-between_fr6de_194",
30
- "variant-card": "_variant-card_fr6de_202",
31
- "variant-inline": "_variant-inline_fr6de_221"
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
32
34
  };
33
35
  export {
34
- C as actions,
35
- u as actionsWrapper,
36
- i as collapseIcon,
37
- d as collapsed,
38
- r as collapsible,
36
+ y as action,
37
+ s as card,
38
+ k as cardDescription,
39
+ w as cardHighlighted,
40
+ v as cardTitle,
41
+ a as carousel,
39
42
  p as content,
40
- x as default,
41
- a as description,
42
- n as disabled,
43
- _ as divider,
44
- g as fields,
45
- e as formSection,
46
- b as group,
47
- m as groupFields,
48
- v as groupHelp,
49
- h as groupLabel,
50
- o as header,
51
- t as headerContent,
52
- c as headerText,
53
- l as icon,
54
- f as iconCollapsed,
55
- s as title
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
56
60
  };
package/dist/index181.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.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n="_link_1ch8i_9",i="_subtle_1ch8i_38",c="_brand_1ch8i_46",o="_sm_1ch8i_58",_="_md_1ch8i_63",t="_lg_1ch8i_68",e="_underline_1ch8i_77",r="_icon_1ch8i_92",l="_iconRight_1ch8i_124",s="_iconExternal_1ch8i_129",d="_iconArrow_1ch8i_134",h="_iconArrowLeft_1ch8i_139",u={link:n,default:"_default_1ch8i_30",subtle:i,brand:c,sm:o,md:_,lg:t,underline:e,icon:r,iconRight:l,iconExternal:s,iconArrow:d,iconArrowLeft:h};exports.brand=c;exports.default=u;exports.icon=r;exports.iconArrow=d;exports.iconArrowLeft=h;exports.iconExternal=s;exports.iconRight=l;exports.lg=t;exports.link=n;exports.md=_;exports.sm=o;exports.subtle=i;exports.underline=e;
package/dist/index181.mjs CHANGED
@@ -1,68 +1,30 @@
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
1
+ const n = "_link_1ch8i_9", c = "_subtle_1ch8i_38", _ = "_brand_1ch8i_46", i = "_sm_1ch8i_58", o = "_md_1ch8i_63", t = "_lg_1ch8i_68", r = "_underline_1ch8i_77", s = "_icon_1ch8i_92", e = "_iconRight_1ch8i_124", l = "_iconExternal_1ch8i_129", h = "_iconArrow_1ch8i_134", d = "_iconArrowLeft_1ch8i_139", a = {
2
+ link: n,
3
+ default: "_default_1ch8i_30",
4
+ subtle: c,
5
+ brand: _,
6
+ sm: i,
7
+ md: o,
8
+ lg: t,
9
+ underline: r,
10
+ icon: s,
11
+ iconRight: e,
12
+ iconExternal: l,
13
+ iconArrow: h,
14
+ iconArrowLeft: d
36
15
  };
37
16
  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
17
+ _ as brand,
18
+ a as default,
19
+ s as icon,
20
+ h as iconArrow,
21
+ d as iconArrowLeft,
22
+ l as iconExternal,
23
+ e as iconRight,
24
+ t as lg,
25
+ n as link,
26
+ o as md,
27
+ i as sm,
28
+ c as subtle,
29
+ r as underline
68
30
  };
package/dist/index185.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("react"),b=require("lucide-react"),i=require("./index145.cjs"),l=({src:s,alt:d="Image",isOpen:a,onClose:t,className:f,...m})=>{const u=n.useRef(null),r=n.useRef(null),c=n.useCallback(e=>{if(e.key==="Escape"){t();return}e.key==="Tab"&&(e.preventDefault(),u.current?.focus())},[t]),g=e=>{e.target===e.currentTarget&&t()};return n.useEffect(()=>(a&&(r.current=document.activeElement,document.addEventListener("keydown",c),document.body.style.overflow="hidden",requestAnimationFrame(()=>{u.current?.focus()})),()=>{document.removeEventListener("keydown",c),document.body.style.overflow="",r.current&&typeof r.current.focus=="function"&&r.current.focus()}),[a,c]),a?o.jsxs("div",{className:[i.default.lightbox,f].filter(Boolean).join(" "),onClick:g,role:"dialog","aria-modal":"true","aria-label":"Image viewer",...m,children:[o.jsx("button",{ref:u,className:i.default.lightboxClose,onClick:t,"aria-label":"Close image viewer",children:o.jsx(b.X,{size:24})}),o.jsx("img",{src:s,alt:d,className:i.default.lightboxImage})]}):null};l.displayName="ChatLightbox";exports.ChatLightbox=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),n=require("react"),b=require("lucide-react"),i=require("./index135.cjs"),l=({src:s,alt:d="Image",isOpen:a,onClose:t,className:f,...m})=>{const u=n.useRef(null),r=n.useRef(null),c=n.useCallback(e=>{if(e.key==="Escape"){t();return}e.key==="Tab"&&(e.preventDefault(),u.current?.focus())},[t]),g=e=>{e.target===e.currentTarget&&t()};return n.useEffect(()=>(a&&(r.current=document.activeElement,document.addEventListener("keydown",c),document.body.style.overflow="hidden",requestAnimationFrame(()=>{u.current?.focus()})),()=>{document.removeEventListener("keydown",c),document.body.style.overflow="",r.current&&typeof r.current.focus=="function"&&r.current.focus()}),[a,c]),a?o.jsxs("div",{className:[i.default.lightbox,f].filter(Boolean).join(" "),onClick:g,role:"dialog","aria-modal":"true","aria-label":"Image viewer",...m,children:[o.jsx("button",{ref:u,className:i.default.lightboxClose,onClick:t,"aria-label":"Close image viewer",children:o.jsx(b.X,{size:24})}),o.jsx("img",{src:s,alt:d,className:i.default.lightboxImage})]}):null};l.displayName="ChatLightbox";exports.ChatLightbox=l;
package/dist/index185.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as g, jsx as i } from "react/jsx-runtime";
2
2
  import { useRef as c, useCallback as b, useEffect as h } from "react";
3
3
  import { X as y } from "lucide-react";
4
- import l from "./index145.mjs";
4
+ import l from "./index135.mjs";
5
5
  const v = ({
6
6
  src: u,
7
7
  alt: s = "Image",
package/dist/index19.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),p=require("recharts"),R=require("./index140.cjs"),t=require("./index141.cjs"),f=h.createContext({}),j=({config:s,children:o,className:a,style:n,...l})=>{const{resolvedConfig:r,resolvedColorVars:i}=R.useResolvedChartColors(s),d=[t.default.container,a].filter(Boolean).join(" ");return e.jsx(f.Provider,{value:r,children:e.jsx("div",{role:"figure",className:d,style:{...i,...n},...l,children:e.jsx(p.ResponsiveContainer,{width:"100%",height:"100%",children:o})})})};j.displayName="ChartContainer";const v=({active:s,payload:o,label:a,indicator:n="dot",hideLabel:l=!1,hideIndicator:r=!1,labelFormatter:i,formatter:d,className:u})=>{const L=h.useContext(f);if(!s||!o?.length)return null;const b=[t.default.tooltip,u].filter(Boolean).join(" "),g=i?i(String(a)):a,T={dot:t.default.tooltipDot,line:t.default.tooltipLine,dashed:t.default.tooltipDashed}[n];return e.jsxs("div",{className:b,children:[!l&&g&&e.jsx("div",{className:t.default.tooltipLabel,children:g}),e.jsx("div",{className:t.default.tooltipItems,children:o.map(c=>{const C=String(c.dataKey||c.name),m=L[C],q=m?.label||C,I=d?d(c.value,C):String(c.value),x=c.color||m?.color;return e.jsxs("div",{className:t.default.tooltipItem,children:[!r&&e.jsx("span",{className:T,style:{backgroundColor:x,borderColor:x}}),e.jsx("span",{className:t.default.tooltipName,children:q}),e.jsx("span",{className:t.default.tooltipValue,children:I})]},C)})})]})};v.displayName="ChartTooltipContent";const N=({payload:s,className:o})=>{const a=h.useContext(f);if(!s?.length)return null;const n=[t.default.legend,o].filter(Boolean).join(" ");return e.jsx("div",{className:n,children:s.map(l=>{const r=l.dataKey||l.value,i=a[r],d=i?.label||r,u=l.color||i?.color;return e.jsxs("div",{className:t.default.legendItem,children:[e.jsx("span",{className:t.default.legendDot,style:{backgroundColor:u}}),e.jsx("span",{children:d})]},r)})})};N.displayName="ChartLegendContent";const y=({id:s,color:o,startOpacity:a=.4,endOpacity:n=.05})=>e.jsxs("linearGradient",{id:s,x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"5%",stopColor:o,stopOpacity:a}),e.jsx("stop",{offset:"95%",stopColor:o,stopOpacity:n})]});y.displayName="ChartGradient";const S=p.Tooltip,G=p.Legend;exports.ChartContainer=j;exports.ChartGradient=y;exports.ChartLegend=G;exports.ChartLegendContent=N;exports.ChartTooltip=S;exports.ChartTooltipContent=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),h=require("react"),p=require("recharts"),R=require("./index165.cjs"),t=require("./index166.cjs"),f=h.createContext({}),j=({config:s,children:o,className:a,style:n,...l})=>{const{resolvedConfig:r,resolvedColorVars:i}=R.useResolvedChartColors(s),d=[t.default.container,a].filter(Boolean).join(" ");return e.jsx(f.Provider,{value:r,children:e.jsx("div",{role:"figure",className:d,style:{...i,...n},...l,children:e.jsx(p.ResponsiveContainer,{width:"100%",height:"100%",children:o})})})};j.displayName="ChartContainer";const v=({active:s,payload:o,label:a,indicator:n="dot",hideLabel:l=!1,hideIndicator:r=!1,labelFormatter:i,formatter:d,className:u})=>{const L=h.useContext(f);if(!s||!o?.length)return null;const b=[t.default.tooltip,u].filter(Boolean).join(" "),g=i?i(String(a)):a,T={dot:t.default.tooltipDot,line:t.default.tooltipLine,dashed:t.default.tooltipDashed}[n];return e.jsxs("div",{className:b,children:[!l&&g&&e.jsx("div",{className:t.default.tooltipLabel,children:g}),e.jsx("div",{className:t.default.tooltipItems,children:o.map(c=>{const C=String(c.dataKey||c.name),m=L[C],q=m?.label||C,I=d?d(c.value,C):String(c.value),x=c.color||m?.color;return e.jsxs("div",{className:t.default.tooltipItem,children:[!r&&e.jsx("span",{className:T,style:{backgroundColor:x,borderColor:x}}),e.jsx("span",{className:t.default.tooltipName,children:q}),e.jsx("span",{className:t.default.tooltipValue,children:I})]},C)})})]})};v.displayName="ChartTooltipContent";const N=({payload:s,className:o})=>{const a=h.useContext(f);if(!s?.length)return null;const n=[t.default.legend,o].filter(Boolean).join(" ");return e.jsx("div",{className:n,children:s.map(l=>{const r=l.dataKey||l.value,i=a[r],d=i?.label||r,u=l.color||i?.color;return e.jsxs("div",{className:t.default.legendItem,children:[e.jsx("span",{className:t.default.legendDot,style:{backgroundColor:u}}),e.jsx("span",{children:d})]},r)})})};N.displayName="ChartLegendContent";const y=({id:s,color:o,startOpacity:a=.4,endOpacity:n=.05})=>e.jsxs("linearGradient",{id:s,x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"5%",stopColor:o,stopOpacity:a}),e.jsx("stop",{offset:"95%",stopColor:o,stopOpacity:n})]});y.displayName="ChartGradient";const S=p.Tooltip,G=p.Legend;exports.ChartContainer=j;exports.ChartGradient=y;exports.ChartLegend=G;exports.ChartLegendContent=N;exports.ChartTooltip=S;exports.ChartTooltipContent=v;
package/dist/index19.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as t, jsxs as C } from "react/jsx-runtime";
2
2
  import { useContext as v, createContext as j } from "react";
3
3
  import { Legend as I, Tooltip as K, ResponsiveContainer as T } from "recharts";
4
- import { useResolvedChartColors as B } from "./index140.mjs";
5
- import o from "./index141.mjs";
4
+ import { useResolvedChartColors as B } from "./index165.mjs";
5
+ import o from "./index166.mjs";
6
6
  const h = j({}), D = ({
7
7
  config: n,
8
8
  children: e,
package/dist/index20.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("./index145.cjs"),d=require("./index146.cjs"),h=require("./index147.cjs"),n=require("./index148.cjs"),C=require("./index149.cjs"),c=require("./index150.cjs"),l=require("./index151.cjs"),u=require("./index152.cjs"),p=require("./index153.cjs"),m=require("./index154.cjs"),y=require("./index155.cjs"),g=require("./index156.cjs"),M=require("./index157.cjs"),q=require("./index158.cjs"),a=({children:t,className:r,...i})=>o.jsx("div",{className:[s.default.chat,r].filter(Boolean).join(" "),role:"region","aria-label":"Chat interface",...i,children:t});a.displayName="Chat";const e=a;e.Header=d.ChatHeader;e.Messages=h.ChatMessages;e.Message=n.ChatMessage;e.Input=C.ChatInput;e.TypingIndicator=c.ChatTypingIndicator;e.CodeBlock=l.ChatCodeBlock;e.Markdown=u.ChatMarkdown;e.ImagePreview=p.ChatImagePreview;e.AudioPlayer=m.ChatAudioPlayer;e.VoiceRecorder=y.ChatVoiceRecorder;e.FileUpload=g.ChatFileUpload;e.Attachment=M.ChatAttachment;e.Sidebar=q.ChatSidebar;e.Header.displayName="Chat.Header";e.Messages.displayName="Chat.Messages";e.Message.displayName="Chat.Message";e.Input.displayName="Chat.Input";e.TypingIndicator.displayName="Chat.TypingIndicator";e.CodeBlock.displayName="Chat.CodeBlock";e.Markdown.displayName="Chat.Markdown";e.ImagePreview.displayName="Chat.ImagePreview";e.AudioPlayer.displayName="Chat.AudioPlayer";e.VoiceRecorder.displayName="Chat.VoiceRecorder";e.FileUpload.displayName="Chat.FileUpload";e.Attachment.displayName="Chat.Attachment";e.Sidebar.displayName="Chat.Sidebar";exports.Chat=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),s=require("./index135.cjs"),d=require("./index136.cjs"),h=require("./index137.cjs"),n=require("./index138.cjs"),C=require("./index139.cjs"),c=require("./index140.cjs"),l=require("./index141.cjs"),u=require("./index142.cjs"),p=require("./index143.cjs"),m=require("./index144.cjs"),y=require("./index145.cjs"),g=require("./index146.cjs"),M=require("./index147.cjs"),q=require("./index148.cjs"),a=({children:t,className:r,...i})=>o.jsx("div",{className:[s.default.chat,r].filter(Boolean).join(" "),role:"region","aria-label":"Chat interface",...i,children:t});a.displayName="Chat";const e=a;e.Header=d.ChatHeader;e.Messages=h.ChatMessages;e.Message=n.ChatMessage;e.Input=C.ChatInput;e.TypingIndicator=c.ChatTypingIndicator;e.CodeBlock=l.ChatCodeBlock;e.Markdown=u.ChatMarkdown;e.ImagePreview=p.ChatImagePreview;e.AudioPlayer=m.ChatAudioPlayer;e.VoiceRecorder=y.ChatVoiceRecorder;e.FileUpload=g.ChatFileUpload;e.Attachment=M.ChatAttachment;e.Sidebar=q.ChatSidebar;e.Header.displayName="Chat.Header";e.Messages.displayName="Chat.Messages";e.Message.displayName="Chat.Message";e.Input.displayName="Chat.Input";e.TypingIndicator.displayName="Chat.TypingIndicator";e.CodeBlock.displayName="Chat.CodeBlock";e.Markdown.displayName="Chat.Markdown";e.ImagePreview.displayName="Chat.ImagePreview";e.AudioPlayer.displayName="Chat.AudioPlayer";e.VoiceRecorder.displayName="Chat.VoiceRecorder";e.FileUpload.displayName="Chat.FileUpload";e.Attachment.displayName="Chat.Attachment";e.Sidebar.displayName="Chat.Sidebar";exports.Chat=e;
package/dist/index20.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import m from "./index145.mjs";
3
- import { ChatHeader as d } from "./index146.mjs";
4
- import { ChatMessages as p } from "./index147.mjs";
5
- import { ChatMessage as s } from "./index148.mjs";
6
- import { ChatInput as l } from "./index149.mjs";
7
- import { ChatTypingIndicator as h } from "./index150.mjs";
8
- import { ChatCodeBlock as C } from "./index151.mjs";
9
- import { ChatMarkdown as n } from "./index152.mjs";
10
- import { ChatImagePreview as c } from "./index153.mjs";
11
- import { ChatAudioPlayer as y } from "./index154.mjs";
12
- import { ChatVoiceRecorder as f } from "./index155.mjs";
13
- import { ChatFileUpload as g } from "./index156.mjs";
14
- import { ChatAttachment as N } from "./index157.mjs";
15
- import { ChatSidebar as I } from "./index158.mjs";
2
+ import m from "./index135.mjs";
3
+ import { ChatHeader as d } from "./index136.mjs";
4
+ import { ChatMessages as p } from "./index137.mjs";
5
+ import { ChatMessage as s } from "./index138.mjs";
6
+ import { ChatInput as l } from "./index139.mjs";
7
+ import { ChatTypingIndicator as h } from "./index140.mjs";
8
+ import { ChatCodeBlock as C } from "./index141.mjs";
9
+ import { ChatMarkdown as n } from "./index142.mjs";
10
+ import { ChatImagePreview as c } from "./index143.mjs";
11
+ import { ChatAudioPlayer as y } from "./index144.mjs";
12
+ import { ChatVoiceRecorder as f } from "./index145.mjs";
13
+ import { ChatFileUpload as g } from "./index146.mjs";
14
+ import { ChatAttachment as N } from "./index147.mjs";
15
+ import { ChatSidebar as I } from "./index148.mjs";
16
16
  const e = ({ children: t, className: o, ...r }) => /* @__PURE__ */ i(
17
17
  "div",
18
18
  {
package/dist/index21.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),u=require("lucide-react"),s=require("./index108.cjs"),m=t.forwardRef(({label:i,helperText:n,error:a,size:j="md",indeterminate:r=!1,className:k,id:N,disabled:h,required:o,checked:v,"aria-label":f,"aria-describedby":p,...C},y)=>{const R=t.useId(),l=N||`checkbox-${R}`,x=`${l}-error`,b=`${l}-helper`,g=t.useRef(null),d=y||g;t.useEffect(()=>{d.current&&(d.current.indeterminate=r)},[r,d]);const c=[];a&&c.push(x),n&&!a&&c.push(b),p&&c.push(p);const I=c.length>0?c.join(" "):void 0;!(i||f)&&process.env.NODE_ENV==="development"&&console.warn("Checkbox: Missing accessible name. Provide either a `label` prop or `aria-label` for screen reader users.");const q=r?"mixed":void 0,M=[s.default.container,s.default[j],a&&s.default.error,h&&s.default.disabled,k].filter(Boolean).join(" ");return e.jsxs("div",{className:M,children:[e.jsx("input",{ref:d,type:"checkbox",id:l,className:s.default.input,disabled:h,required:o,checked:v,"aria-required":o||void 0,"aria-invalid":a?"true":"false","aria-checked":q,"aria-describedby":I,"aria-label":i?void 0:f,...C}),e.jsxs("label",{htmlFor:l,className:s.default.labelWrapper,children:[e.jsx("span",{className:s.default.checkbox,"aria-hidden":"true",children:e.jsx("span",{className:s.default.checkmark,children:r?e.jsx(u.Minus,{strokeWidth:3}):e.jsx(u.Check,{strokeWidth:3})})}),i&&e.jsxs("span",{className:s.default.label,children:[i,o&&e.jsx("span",{className:s.default.required,"aria-hidden":"true",children:"*"})]})]}),n&&!a&&e.jsx("p",{id:b,className:s.default.helperText,children:n}),a&&e.jsxs("p",{id:x,className:s.default.errorMessage,role:"alert","aria-live":"assertive",children:[e.jsx(u.AlertCircle,{size:14,"aria-hidden":"true"}),e.jsx("span",{children:a})]})]})});m.displayName="Checkbox";exports.Checkbox=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),u=require("lucide-react"),s=require("./index127.cjs"),m=t.forwardRef(({label:i,helperText:n,error:a,size:j="md",indeterminate:r=!1,className:k,id:N,disabled:h,required:o,checked:v,"aria-label":f,"aria-describedby":p,...C},y)=>{const R=t.useId(),l=N||`checkbox-${R}`,x=`${l}-error`,b=`${l}-helper`,g=t.useRef(null),d=y||g;t.useEffect(()=>{d.current&&(d.current.indeterminate=r)},[r,d]);const c=[];a&&c.push(x),n&&!a&&c.push(b),p&&c.push(p);const I=c.length>0?c.join(" "):void 0;!(i||f)&&process.env.NODE_ENV==="development"&&console.warn("Checkbox: Missing accessible name. Provide either a `label` prop or `aria-label` for screen reader users.");const q=r?"mixed":void 0,M=[s.default.container,s.default[j],a&&s.default.error,h&&s.default.disabled,k].filter(Boolean).join(" ");return e.jsxs("div",{className:M,children:[e.jsx("input",{ref:d,type:"checkbox",id:l,className:s.default.input,disabled:h,required:o,checked:v,"aria-required":o||void 0,"aria-invalid":a?"true":"false","aria-checked":q,"aria-describedby":I,"aria-label":i?void 0:f,...C}),e.jsxs("label",{htmlFor:l,className:s.default.labelWrapper,children:[e.jsx("span",{className:s.default.checkbox,"aria-hidden":"true",children:e.jsx("span",{className:s.default.checkmark,children:r?e.jsx(u.Minus,{strokeWidth:3}):e.jsx(u.Check,{strokeWidth:3})})}),i&&e.jsxs("span",{className:s.default.label,children:[i,o&&e.jsx("span",{className:s.default.required,"aria-hidden":"true",children:"*"})]})]}),n&&!a&&e.jsx("p",{id:b,className:s.default.helperText,children:n}),a&&e.jsxs("p",{id:x,className:s.default.errorMessage,role:"alert","aria-live":"assertive",children:[e.jsx(u.AlertCircle,{size:14,"aria-hidden":"true"}),e.jsx("span",{children:a})]})]})});m.displayName="Checkbox";exports.Checkbox=m;
package/dist/index21.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsxs as l, jsx as s } from "react/jsx-runtime";
2
2
  import { forwardRef as A, useId as B, useRef as E, useEffect as M } from "react";
3
3
  import { Minus as W, Check as $, AlertCircle as w } from "lucide-react";
4
- import e from "./index108.mjs";
4
+ import e from "./index127.mjs";
5
5
  const z = A(
6
6
  ({
7
7
  label: i,
package/dist/index22.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),w=require("react"),e=require("./index116.cjs"),u=w.forwardRef(({variant:c="default",size:d="md",icon:i,clickable:f=!1,onClick:s,onRemove:l,disabled:a=!1,selected:o=!1,children:h,className:p,...v},m)=>{const r=f||!!s,j=[e.default.chip,e.default[c],e.default[d],r&&e.default.clickable,o&&e.default.selected,a&&e.default.disabled,p].filter(Boolean).join(" "),k=()=>{!a&&s&&s()},x=t=>{t.stopPropagation(),!a&&l&&l()},y=t=>{a||((t.key==="Enter"||t.key===" ")&&(t.preventDefault(),s?.()),(t.key==="Backspace"||t.key==="Delete")&&(t.preventDefault(),l?.()))};return n.jsxs("div",{ref:m,className:j,role:r?"button":void 0,tabIndex:r&&!a?0:void 0,"aria-disabled":a,"aria-pressed":o,onClick:r?k:void 0,onKeyDown:r?y:void 0,...v,children:[i&&n.jsx("span",{className:e.default.icon,"aria-hidden":"true",children:i}),n.jsx("span",{className:e.default.label,children:h}),l&&n.jsx("button",{type:"button",className:e.default.removeButton,onClick:x,disabled:a,"aria-label":"Remove",children:n.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M10.5 3.5L3.5 10.5M3.5 3.5l7 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});u.displayName="Chip";exports.Chip=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),w=require("react"),e=require("./index177.cjs"),u=w.forwardRef(({variant:c="default",size:d="md",icon:i,clickable:f=!1,onClick:s,onRemove:l,disabled:a=!1,selected:o=!1,children:h,className:p,...v},m)=>{const r=f||!!s,j=[e.default.chip,e.default[c],e.default[d],r&&e.default.clickable,o&&e.default.selected,a&&e.default.disabled,p].filter(Boolean).join(" "),k=()=>{!a&&s&&s()},x=t=>{t.stopPropagation(),!a&&l&&l()},y=t=>{a||((t.key==="Enter"||t.key===" ")&&(t.preventDefault(),s?.()),(t.key==="Backspace"||t.key==="Delete")&&(t.preventDefault(),l?.()))};return n.jsxs("div",{ref:m,className:j,role:r?"button":void 0,tabIndex:r&&!a?0:void 0,"aria-disabled":a,"aria-pressed":o,onClick:r?k:void 0,onKeyDown:r?y:void 0,...v,children:[i&&n.jsx("span",{className:e.default.icon,"aria-hidden":"true",children:i}),n.jsx("span",{className:e.default.label,children:h}),l&&n.jsx("button",{type:"button",className:e.default.removeButton,onClick:x,disabled:a,"aria-label":"Remove",children:n.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M10.5 3.5L3.5 10.5M3.5 3.5l7 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})});u.displayName="Chip";exports.Chip=u;
package/dist/index22.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs as y, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as x } from "react";
3
- import e from "./index116.mjs";
3
+ import e from "./index177.mjs";
4
4
  const D = x(
5
5
  ({
6
6
  variant: c = "default",
package/dist/index23.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),i=require("react"),_=require("react-syntax-highlighter"),$=require("react-syntax-highlighter/dist/esm/styles/prism"),l=require("./index117.cjs"),z=require("./index75.cjs");try{const r=require("refractor/all");r.default&&r.default.registered&&r.default.registered("markdown")&&!r.default.languages.markdown?.["quoted-string"]&&r.default.languages.insertBefore("markdown","bold",{"quoted-string":{pattern:/"(?:\\.|[^"\\])*"/,greedy:!0,alias:"string"}})}catch{}const A=i.forwardRef(({value:r="",onChange:g,language:j,readOnly:T=!1,showLineNumbers:k=!0,placeholder:C,minRows:m=10,className:B,"aria-label":S,...R},D)=>{const p=i.useRef(null),x=i.useRef(null),v=i.useRef(null),E=i.useRef(null),K=i.useRef(null),u=i.useRef(null),h=D||K,[y,F]=i.useState(0),[d,O]=i.useState([]);let q="dark";try{q=z.useThemeContext().theme}catch{}const P=q==="light"?$.oneLight:$.oneDark,L=Math.max(r.split(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),i=require("react"),_=require("react-syntax-highlighter"),$=require("react-syntax-highlighter/dist/esm/styles/prism"),l=require("./index170.cjs"),z=require("./index75.cjs");try{const r=require("refractor/all");r.default&&r.default.registered&&r.default.registered("markdown")&&!r.default.languages.markdown?.["quoted-string"]&&r.default.languages.insertBefore("markdown","bold",{"quoted-string":{pattern:/"(?:\\.|[^"\\])*"/,greedy:!0,alias:"string"}})}catch{}const A=i.forwardRef(({value:r="",onChange:g,language:j,readOnly:T=!1,showLineNumbers:k=!0,placeholder:C,minRows:m=10,className:B,"aria-label":S,...R},D)=>{const p=i.useRef(null),x=i.useRef(null),v=i.useRef(null),E=i.useRef(null),K=i.useRef(null),u=i.useRef(null),h=D||K,[y,F]=i.useState(0),[d,O]=i.useState([]);let q="dark";try{q=z.useThemeContext().theme}catch{}const P=q==="light"?$.oneLight:$.oneDark,L=Math.max(r.split(`
2
2
  `).length,m);i.useEffect(()=>{if(u.current&&h.current){const{start:e,end:t}=u.current;h.current.setSelectionRange(e,t),u.current=null}}),i.useEffect(()=>{const e=v.current,t=E.current;if(!e||!t)return;const n=()=>{const o=t.clientWidth;if(o<=0)return;e.style.width=`${o}px`;const a=r.split(`
3
3
  `),f=Math.max(a.length,m),b=[];for(let N=0;N<f;N++){const V=a[N]??"";e.textContent=V||" ",b.push(e.scrollHeight)}O(b)};n();const c=new ResizeObserver(n);return c.observe(t),()=>c.disconnect()},[r,m]),i.useEffect(()=>{const e=n=>{const c=n.target;p.current&&(p.current.scrollTop=c.scrollTop),x.current&&(x.current.scrollTop=c.scrollTop,x.current.scrollLeft=c.scrollLeft)},t=h?.current;if(t)return t.addEventListener("scroll",e),()=>{t.removeEventListener("scroll",e)}},[h]);const w=e=>{const t=e.value.substring(0,e.selectionStart);F(t.split(`
4
4
  `).length-1)},H=e=>{if(e.key==="Tab"){e.preventDefault();const t=e.currentTarget,n=t.selectionStart,c=t.selectionEnd,o=" ";if(n===c){const a=r.substring(0,n)+o+r.substring(c);u.current={start:n+o.length,end:n+o.length},g?.(a)}else if(e.shiftKey){const a=r.lastIndexOf(`
package/dist/index23.mjs CHANGED
@@ -2,7 +2,7 @@ import { jsxs as k, jsx as l } from "react/jsx-runtime";
2
2
  import { forwardRef as U, useRef as g, useState as K, useEffect as T } from "react";
3
3
  import { Prism as W } from "react-syntax-highlighter";
4
4
  import { oneLight as _, oneDark as I } from "react-syntax-highlighter/dist/esm/styles/prism";
5
- import i from "./index117.mjs";
5
+ import i from "./index170.mjs";
6
6
  import { useThemeContext as G } from "./index75.mjs";
7
7
  try {
8
8
  const r = require("refractor/all");
package/dist/index24.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),e=require("react"),p=require("./index170.cjs"),x=e.createContext(null);function j(){const t=e.useContext(x);if(!t)throw new Error("Collapsible.Trigger/Content must be used within a Collapsible");return t}const I=e.forwardRef(({asChild:t,className:d,children:l,onClick:n,...u},s)=>{const{open:a,disabled:r,toggle:i,contentId:b,triggerId:c}=j(),o=e.useCallback(g=>{i(),n?.(g)},[i,n]);if(t&&e.isValidElement(l))return e.cloneElement(l,{id:c,"aria-expanded":a,"aria-controls":b,disabled:r,onClick:o});const f=[p.default.trigger,d].filter(Boolean).join(" ");return C.jsx("button",{ref:s,id:c,type:"button",className:f,"aria-expanded":a,"aria-controls":b,disabled:r,onClick:o,...u,children:l})});I.displayName="Collapsible.Trigger";const N=e.forwardRef(({forceMount:t,className:d,children:l,...n},u)=>{const{open:s,triggerId:a,contentId:r}=j();if(!t&&!s)return null;const i=[p.default.content,s&&p.default.contentOpen,d].filter(Boolean).join(" ");return C.jsx("div",{ref:u,id:r,role:"region","aria-labelledby":a,className:i,...n,children:C.jsx("div",{className:p.default.contentInner,children:l})})});N.displayName="Collapsible.Content";const v=e.forwardRef(({open:t,defaultOpen:d=!1,onOpenChange:l,disabled:n=!1,className:u,children:s,...a},r)=>{const[i,b]=e.useState(d),c=t!==void 0,o=c?t:i,f=e.useId(),g=e.useId(),y=e.useCallback(()=>{if(n)return;const m=!o;c||b(m),l?.(m)},[o,c,n,l]),w=[p.default.collapsible,u].filter(Boolean).join(" "),R={open:o,disabled:n,toggle:y,contentId:f,triggerId:g};return C.jsx(x.Provider,{value:R,children:C.jsx("div",{ref:r,className:w,"data-state":o?"open":"closed",...a,children:s})})});v.displayName="Collapsible";const O=Object.assign(v,{Trigger:I,Content:N});exports.Collapsible=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),e=require("react"),p=require("./index151.cjs"),x=e.createContext(null);function j(){const t=e.useContext(x);if(!t)throw new Error("Collapsible.Trigger/Content must be used within a Collapsible");return t}const I=e.forwardRef(({asChild:t,className:d,children:l,onClick:n,...u},s)=>{const{open:a,disabled:r,toggle:i,contentId:b,triggerId:c}=j(),o=e.useCallback(g=>{i(),n?.(g)},[i,n]);if(t&&e.isValidElement(l))return e.cloneElement(l,{id:c,"aria-expanded":a,"aria-controls":b,disabled:r,onClick:o});const f=[p.default.trigger,d].filter(Boolean).join(" ");return C.jsx("button",{ref:s,id:c,type:"button",className:f,"aria-expanded":a,"aria-controls":b,disabled:r,onClick:o,...u,children:l})});I.displayName="Collapsible.Trigger";const N=e.forwardRef(({forceMount:t,className:d,children:l,...n},u)=>{const{open:s,triggerId:a,contentId:r}=j();if(!t&&!s)return null;const i=[p.default.content,s&&p.default.contentOpen,d].filter(Boolean).join(" ");return C.jsx("div",{ref:u,id:r,role:"region","aria-labelledby":a,className:i,...n,children:C.jsx("div",{className:p.default.contentInner,children:l})})});N.displayName="Collapsible.Content";const v=e.forwardRef(({open:t,defaultOpen:d=!1,onOpenChange:l,disabled:n=!1,className:u,children:s,...a},r)=>{const[i,b]=e.useState(d),c=t!==void 0,o=c?t:i,f=e.useId(),g=e.useId(),y=e.useCallback(()=>{if(n)return;const m=!o;c||b(m),l?.(m)},[o,c,n,l]),w=[p.default.collapsible,u].filter(Boolean).join(" "),R={open:o,disabled:n,toggle:y,contentId:f,triggerId:g};return C.jsx(x.Provider,{value:R,children:C.jsx("div",{ref:r,className:w,"data-state":o?"open":"closed",...a,children:s})})});v.displayName="Collapsible";const O=Object.assign(v,{Trigger:I,Content:N});exports.Collapsible=O;
package/dist/index24.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx as C } from "react/jsx-runtime";
2
2
  import { forwardRef as m, useState as B, useId as x, useCallback as I, isValidElement as E, cloneElement as h, createContext as R, useContext as P } from "react";
3
- import p from "./index170.mjs";
3
+ import p from "./index151.mjs";
4
4
  const N = R(null);
5
5
  function v() {
6
6
  const e = P(N);
package/dist/index25.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),le=require("@dnd-kit/core"),g=require("lucide-react"),a=require("./index127.cjs"),h=require("./index24.cjs"),ne=require("./index11.cjs"),F=require("./index35.cjs"),R=require("./index14.cjs");function w(E){const{id:u,title:B,itemCount:x,items:r,renderItem:z,itemLabel:O="Item",itemLabelPlural:k="Items",emptyText:A="No items in this folder",sortLabel:v="Sort",defaultExpanded:$=!0,sortOptions:i,selectedSort:M,onSortChange:P,onDrop:D,onFolderEdit:b,onFolderDelete:j,onFolderInvite:N,isDropTarget:Y=!1,isDropCompleted:H=!1,onDragEnter:Z,onDragLeaveFolder:C,className:_,...G}=E,[f,J]=o.useState($),[m,d]=o.useState(null),[T,p]=o.useState(!1),I=o.useRef(null),{setNodeRef:K}=le.useDroppable({id:u}),Q=t=>{if(t.preventDefault(),t.dataTransfer.dropEffect="move",T||(p(!0),Z?.()),!f||r.length===0){d(0);return}const l=I.current;if(!l)return;const n=Array.from(l.querySelectorAll("[data-item-id]")),ae=t.clientY;let S=n.length;for(let c=0;c<n.length;c++){const y=n[c];if(!y)continue;const q=y.getBoundingClientRect();if(ae<q.top+q.height/2){S=c;break}}d(S)},U=t=>{t.currentTarget.contains(t.relatedTarget)||(p(!1),d(null),C?.())},V=t=>{t.preventDefault();const l=t.dataTransfer.getData("text/plain")||t.dataTransfer.getData("itemId");if(l&&D){const n=m??r.length;D(l,u,n)}p(!1),d(null),C?.()},W=(t,l)=>{t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",l)},X=i?.map(t=>({id:t.value,label:t.label,onClick:()=>P?.(t.value)})),L=[...b?[{id:"rename",label:"Rename",onClick:b}]:[],...N?[{id:"invite",label:"Invite participants",onClick:N}]:[],...j?[{id:"delete",label:"Delete folder",danger:!0,onClick:j}]:[]],s=Y||T,ee=[a.default.folder,s&&a.default.dropTarget,H&&a.default.dropCompleted,_].filter(Boolean).join(" "),te=x===1?O:k;return e.jsx("div",{ref:K,className:ee,"data-folder-id":u,"data-drop-active":s,onDragOver:Q,onDragLeave:U,onDrop:V,...G,children:e.jsxs(h.Collapsible,{open:f,onOpenChange:J,children:[e.jsxs("div",{className:a.default.header,children:[e.jsxs(h.Collapsible.Trigger,{className:a.default.trigger,children:[e.jsx(g.ChevronDown,{size:20,className:`${a.default.chevron} ${f?a.default.expanded:""}`}),e.jsx("h2",{className:a.default.title,children:B}),e.jsxs(ne.Badge,{variant:"neutral",className:a.default.badge,children:[x,e.jsxs("span",{className:a.default.badgeLabel,children:[" ",te]})]})]}),e.jsxs("div",{className:a.default.actions,children:[i&&i.length>0&&e.jsx("div",{className:a.default.sortDropdown,children:e.jsx(F.Dropdown,{trigger:e.jsx(R.Button,{variant:"ghost",size:"sm",iconRight:e.jsx(g.ChevronDown,{size:16}),"aria-label":`Sort by ${v}`,children:i.find(t=>t.value===M)?.label||v}),items:X,placement:"bottom-end"})}),L.length>0&&e.jsx(F.Dropdown,{trigger:e.jsx(R.Button,{variant:"ghost",size:"sm",iconOnly:!0,icon:e.jsx(g.MoreHorizontal,{size:20}),"aria-label":"Folder actions"}),items:L,placement:"bottom-end"})]})]}),e.jsx(h.Collapsible.Content,{children:e.jsx("div",{className:a.default.content,children:r.length===0?s?e.jsx("div",{className:a.default.emptyDropZone,children:e.jsx("div",{className:a.default.insertionLine,role:"presentation"})}):e.jsx("div",{className:a.default.emptyState,children:e.jsx("p",{className:a.default.emptyText,children:A})}):e.jsxs("div",{className:a.default.grid,ref:I,children:[r.map((t,l)=>e.jsxs(o.Fragment,{children:[s&&m===l&&e.jsx("div",{className:a.default.insertionLine,role:"presentation"}),e.jsx("div",{"data-item-id":t.id,draggable:t.draggable,onDragStart:n=>W(n,t.id),children:z(t,l)})]},t.id)),s&&m===r.length&&e.jsx("div",{className:a.default.insertionLine,role:"presentation"})]})})})]})})}w.displayName="CollapsibleFolder";exports.CollapsibleFolder=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),le=require("@dnd-kit/core"),g=require("lucide-react"),a=require("./index120.cjs"),h=require("./index24.cjs"),ne=require("./index11.cjs"),F=require("./index35.cjs"),R=require("./index14.cjs");function w(E){const{id:u,title:B,itemCount:x,items:r,renderItem:z,itemLabel:O="Item",itemLabelPlural:k="Items",emptyText:A="No items in this folder",sortLabel:v="Sort",defaultExpanded:$=!0,sortOptions:i,selectedSort:M,onSortChange:P,onDrop:D,onFolderEdit:b,onFolderDelete:j,onFolderInvite:N,isDropTarget:Y=!1,isDropCompleted:H=!1,onDragEnter:Z,onDragLeaveFolder:C,className:_,...G}=E,[f,J]=o.useState($),[m,d]=o.useState(null),[T,p]=o.useState(!1),I=o.useRef(null),{setNodeRef:K}=le.useDroppable({id:u}),Q=t=>{if(t.preventDefault(),t.dataTransfer.dropEffect="move",T||(p(!0),Z?.()),!f||r.length===0){d(0);return}const l=I.current;if(!l)return;const n=Array.from(l.querySelectorAll("[data-item-id]")),ae=t.clientY;let S=n.length;for(let c=0;c<n.length;c++){const y=n[c];if(!y)continue;const q=y.getBoundingClientRect();if(ae<q.top+q.height/2){S=c;break}}d(S)},U=t=>{t.currentTarget.contains(t.relatedTarget)||(p(!1),d(null),C?.())},V=t=>{t.preventDefault();const l=t.dataTransfer.getData("text/plain")||t.dataTransfer.getData("itemId");if(l&&D){const n=m??r.length;D(l,u,n)}p(!1),d(null),C?.()},W=(t,l)=>{t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",l)},X=i?.map(t=>({id:t.value,label:t.label,onClick:()=>P?.(t.value)})),L=[...b?[{id:"rename",label:"Rename",onClick:b}]:[],...N?[{id:"invite",label:"Invite participants",onClick:N}]:[],...j?[{id:"delete",label:"Delete folder",danger:!0,onClick:j}]:[]],s=Y||T,ee=[a.default.folder,s&&a.default.dropTarget,H&&a.default.dropCompleted,_].filter(Boolean).join(" "),te=x===1?O:k;return e.jsx("div",{ref:K,className:ee,"data-folder-id":u,"data-drop-active":s,onDragOver:Q,onDragLeave:U,onDrop:V,...G,children:e.jsxs(h.Collapsible,{open:f,onOpenChange:J,children:[e.jsxs("div",{className:a.default.header,children:[e.jsxs(h.Collapsible.Trigger,{className:a.default.trigger,children:[e.jsx(g.ChevronDown,{size:20,className:`${a.default.chevron} ${f?a.default.expanded:""}`}),e.jsx("h2",{className:a.default.title,children:B}),e.jsxs(ne.Badge,{variant:"neutral",className:a.default.badge,children:[x,e.jsxs("span",{className:a.default.badgeLabel,children:[" ",te]})]})]}),e.jsxs("div",{className:a.default.actions,children:[i&&i.length>0&&e.jsx("div",{className:a.default.sortDropdown,children:e.jsx(F.Dropdown,{trigger:e.jsx(R.Button,{variant:"ghost",size:"sm",iconRight:e.jsx(g.ChevronDown,{size:16}),"aria-label":`Sort by ${v}`,children:i.find(t=>t.value===M)?.label||v}),items:X,placement:"bottom-end"})}),L.length>0&&e.jsx(F.Dropdown,{trigger:e.jsx(R.Button,{variant:"ghost",size:"sm",iconOnly:!0,icon:e.jsx(g.MoreHorizontal,{size:20}),"aria-label":"Folder actions"}),items:L,placement:"bottom-end"})]})]}),e.jsx(h.Collapsible.Content,{children:e.jsx("div",{className:a.default.content,children:r.length===0?s?e.jsx("div",{className:a.default.emptyDropZone,children:e.jsx("div",{className:a.default.insertionLine,role:"presentation"})}):e.jsx("div",{className:a.default.emptyState,children:e.jsx("p",{className:a.default.emptyText,children:A})}):e.jsxs("div",{className:a.default.grid,ref:I,children:[r.map((t,l)=>e.jsxs(o.Fragment,{children:[s&&m===l&&e.jsx("div",{className:a.default.insertionLine,role:"presentation"}),e.jsx("div",{"data-item-id":t.id,draggable:t.draggable,onDragStart:n=>W(n,t.id),children:z(t,l)})]},t.id)),s&&m===r.length&&e.jsx("div",{className:a.default.insertionLine,role:"presentation"})]})})})]})})}w.displayName="CollapsibleFolder";exports.CollapsibleFolder=w;
package/dist/index25.mjs CHANGED
@@ -2,7 +2,7 @@ import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
2
  import re, { useState as h, useRef as ne } from "react";
3
3
  import { useDroppable as le } from "@dnd-kit/core";
4
4
  import { ChevronDown as R, MoreHorizontal as oe } from "lucide-react";
5
- import t from "./index127.mjs";
5
+ import t from "./index120.mjs";
6
6
  import { Collapsible as v } from "./index24.mjs";
7
7
  import { Badge as ie } from "./index11.mjs";
8
8
  import { Dropdown as z } from "./index35.mjs";
package/dist/index26.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),l=require("react"),oe=require("react-dom"),R=require("lucide-react"),t=require("./index102.cjs"),de=(u,i)=>{const c=i.toLowerCase().trim();return c?u.label.toLowerCase().includes(c)||u.value.toLowerCase().includes(c)||(u.description?.toLowerCase().includes(c)??!1):!0},X=l.forwardRef(({options:u,value:i,onChange:c,onInputChange:P,size:D="md",label:S,helperText:z,error:g,loading:K=!1,clearable:U=!0,allowFreeInput:f=!1,filterFn:B=de,openOnFocus:I=!0,minChars:C=0,emptyText:Y="No results found",renderOption:T,maxHeight:_=300,fullWidth:G=!1,placeholder:V,disabled:w,className:J,id:Q,onFocus:A,onBlur:H,onKeyDown:W,...Z},k)=>{const F=l.useId(),$=Q||F,q=`${$}-listbox`,v=l.useRef(null),N=l.useRef(null),b=l.useRef(null),[r,h]=l.useState(!1),[E,o]=l.useState(""),[d,j]=l.useState(-1),[M,ee]=l.useState({top:0,left:0,width:0}),a=l.useMemo(()=>u.find(e=>e.value===i)??null,[u,i]);l.useEffect(()=>{a?o(a.label):f||o("")},[a,f]);const p=l.useMemo(()=>E.length<C?[]:u.filter(e=>B(e,E)),[u,E,C,B]),x=l.useCallback(()=>{if(!v.current)return;const e=v.current.getBoundingClientRect();ee({top:e.bottom+window.scrollY+4,left:e.left+window.scrollX,width:e.width})},[]);l.useEffect(()=>{if(r)return x(),window.addEventListener("resize",x),window.addEventListener("scroll",x,!0),()=>{window.removeEventListener("resize",x),window.removeEventListener("scroll",x,!0)}},[r,x]),l.useEffect(()=>{if(!r)return;const e=n=>{const m=n.target;v.current&&!v.current.contains(m)&&b.current&&!b.current.contains(m)&&(h(!1),!f&&!i?o(""):a&&o(a.label))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[r,f,i,a]);const te=l.useCallback(e=>{const n=e.target.value;o(n),j(-1),P?.(n),!r&&n.length>=C&&h(!0),a&&n!==a.label&&!f&&c?.(null,null)},[r,C,P,a,f,c]),se=l.useCallback(e=>{I&&!w&&h(!0),A?.(e)},[I,w,A]),le=l.useCallback(e=>{setTimeout(()=>{b.current?.contains(document.activeElement)||(h(!1),!f&&!i?o(""):a&&o(a.label))},200),H?.(e)},[f,i,a,H]),O=l.useCallback(e=>{e.disabled||(c?.(e.value,e),o(e.label),h(!1),j(-1),N.current?.focus())},[c]),ne=l.useCallback(e=>{e.stopPropagation(),c?.(null,null),o(""),N.current?.focus()},[c]),ae=l.useCallback(e=>{switch(e.key){case"ArrowDown":e.preventDefault(),r?j(n=>Math.min(n+1,p.length-1)):h(!0);break;case"ArrowUp":e.preventDefault(),j(n=>Math.max(n-1,0));break;case"Enter":e.preventDefault(),r&&d>=0&&p[d]&&O(p[d]);break;case"Escape":e.preventDefault(),h(!1),o(a?a.label:"");break;case"Tab":h(!1);break}W?.(e)},[r,d,p,O,a,W]);l.useEffect(()=>{d>=0&&b.current&&b.current.querySelectorAll('[role="option"]')[d]?.scrollIntoView({block:"nearest"})},[d]);const re=[t.default.container,t.default[D],G&&t.default.fullWidth,w&&t.default.disabled,g&&t.default.error,J].filter(Boolean).join(" "),L=D==="sm"?14:D==="lg"?20:16,ie=(e,n)=>{const m=e.value===i,y=n===d;return T?T(e,m,y):s.jsxs(s.Fragment,{children:[e.icon&&s.jsx("span",{className:t.default.optionIcon,"aria-hidden":"true",children:e.icon}),s.jsxs("div",{className:t.default.optionContent,children:[s.jsx("span",{className:t.default.optionLabel,children:e.label}),e.description&&s.jsx("span",{className:t.default.optionDescription,children:e.description})]}),m&&s.jsx(R.Check,{size:L,className:t.default.checkIcon,"aria-hidden":"true"})]})},ce=s.jsx("div",{ref:b,className:`${t.default.dropdown} ${r&&t.default.visible}`,style:{top:M.top,left:M.left,width:M.width,maxHeight:_},role:"listbox",id:q,"aria-label":S||V,children:K?s.jsxs("div",{className:t.default.loading,children:[s.jsx(R.Loader2,{size:L,className:t.default.spinner}),s.jsx("span",{children:"Loading..."})]}):p.length===0?s.jsx("div",{className:t.default.empty,children:Y}):p.map((e,n)=>{const m=n===d,y=e.value===i;return s.jsx("div",{className:[t.default.option,m&&t.default.highlighted,y&&t.default.selected,e.disabled&&t.default.disabled].filter(Boolean).join(" "),role:"option","aria-selected":y,"aria-disabled":e.disabled,onClick:()=>O(e),onMouseEnter:()=>j(n),children:ie(e,n)},e.value)})});return s.jsxs("div",{className:re,children:[S&&s.jsx("label",{htmlFor:$,className:t.default.label,children:S}),s.jsxs("div",{ref:v,className:t.default.inputWrapper,onClick:()=>N.current?.focus(),children:[s.jsx("input",{...Z,ref:e=>{typeof k=="function"?k(e):k&&(k.current=e),N.current=e},id:$,type:"text",className:t.default.input,value:E,onChange:te,onFocus:se,onBlur:le,onKeyDown:ae,disabled:w,placeholder:V,role:"combobox","aria-expanded":r,"aria-haspopup":"listbox","aria-controls":q,"aria-autocomplete":"list","aria-activedescendant":d>=0?`${q}-option-${d}`:void 0}),s.jsxs("div",{className:t.default.actions,children:[U&&i&&!w&&s.jsx("button",{type:"button",className:t.default.clearButton,onClick:ne,"aria-label":"Clear selection",tabIndex:-1,children:s.jsx(R.X,{size:L})}),s.jsx("span",{className:`${t.default.chevron} ${r?t.default.open:""}`,"aria-hidden":"true",children:s.jsx(R.ChevronDown,{size:L})})]})]}),(z||g)&&s.jsx("span",{className:g?t.default.errorText:t.default.helperText,children:g||z}),r&&oe.createPortal(ce,document.body)]})});X.displayName="Combobox";exports.Combobox=X;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),l=require("react"),oe=require("react-dom"),R=require("lucide-react"),t=require("./index115.cjs"),de=(u,i)=>{const c=i.toLowerCase().trim();return c?u.label.toLowerCase().includes(c)||u.value.toLowerCase().includes(c)||(u.description?.toLowerCase().includes(c)??!1):!0},X=l.forwardRef(({options:u,value:i,onChange:c,onInputChange:P,size:D="md",label:S,helperText:z,error:g,loading:K=!1,clearable:U=!0,allowFreeInput:f=!1,filterFn:B=de,openOnFocus:I=!0,minChars:C=0,emptyText:Y="No results found",renderOption:T,maxHeight:_=300,fullWidth:G=!1,placeholder:V,disabled:w,className:J,id:Q,onFocus:A,onBlur:H,onKeyDown:W,...Z},k)=>{const F=l.useId(),$=Q||F,q=`${$}-listbox`,v=l.useRef(null),N=l.useRef(null),b=l.useRef(null),[r,h]=l.useState(!1),[E,o]=l.useState(""),[d,j]=l.useState(-1),[M,ee]=l.useState({top:0,left:0,width:0}),a=l.useMemo(()=>u.find(e=>e.value===i)??null,[u,i]);l.useEffect(()=>{a?o(a.label):f||o("")},[a,f]);const p=l.useMemo(()=>E.length<C?[]:u.filter(e=>B(e,E)),[u,E,C,B]),x=l.useCallback(()=>{if(!v.current)return;const e=v.current.getBoundingClientRect();ee({top:e.bottom+window.scrollY+4,left:e.left+window.scrollX,width:e.width})},[]);l.useEffect(()=>{if(r)return x(),window.addEventListener("resize",x),window.addEventListener("scroll",x,!0),()=>{window.removeEventListener("resize",x),window.removeEventListener("scroll",x,!0)}},[r,x]),l.useEffect(()=>{if(!r)return;const e=n=>{const m=n.target;v.current&&!v.current.contains(m)&&b.current&&!b.current.contains(m)&&(h(!1),!f&&!i?o(""):a&&o(a.label))};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[r,f,i,a]);const te=l.useCallback(e=>{const n=e.target.value;o(n),j(-1),P?.(n),!r&&n.length>=C&&h(!0),a&&n!==a.label&&!f&&c?.(null,null)},[r,C,P,a,f,c]),se=l.useCallback(e=>{I&&!w&&h(!0),A?.(e)},[I,w,A]),le=l.useCallback(e=>{setTimeout(()=>{b.current?.contains(document.activeElement)||(h(!1),!f&&!i?o(""):a&&o(a.label))},200),H?.(e)},[f,i,a,H]),O=l.useCallback(e=>{e.disabled||(c?.(e.value,e),o(e.label),h(!1),j(-1),N.current?.focus())},[c]),ne=l.useCallback(e=>{e.stopPropagation(),c?.(null,null),o(""),N.current?.focus()},[c]),ae=l.useCallback(e=>{switch(e.key){case"ArrowDown":e.preventDefault(),r?j(n=>Math.min(n+1,p.length-1)):h(!0);break;case"ArrowUp":e.preventDefault(),j(n=>Math.max(n-1,0));break;case"Enter":e.preventDefault(),r&&d>=0&&p[d]&&O(p[d]);break;case"Escape":e.preventDefault(),h(!1),o(a?a.label:"");break;case"Tab":h(!1);break}W?.(e)},[r,d,p,O,a,W]);l.useEffect(()=>{d>=0&&b.current&&b.current.querySelectorAll('[role="option"]')[d]?.scrollIntoView({block:"nearest"})},[d]);const re=[t.default.container,t.default[D],G&&t.default.fullWidth,w&&t.default.disabled,g&&t.default.error,J].filter(Boolean).join(" "),L=D==="sm"?14:D==="lg"?20:16,ie=(e,n)=>{const m=e.value===i,y=n===d;return T?T(e,m,y):s.jsxs(s.Fragment,{children:[e.icon&&s.jsx("span",{className:t.default.optionIcon,"aria-hidden":"true",children:e.icon}),s.jsxs("div",{className:t.default.optionContent,children:[s.jsx("span",{className:t.default.optionLabel,children:e.label}),e.description&&s.jsx("span",{className:t.default.optionDescription,children:e.description})]}),m&&s.jsx(R.Check,{size:L,className:t.default.checkIcon,"aria-hidden":"true"})]})},ce=s.jsx("div",{ref:b,className:`${t.default.dropdown} ${r&&t.default.visible}`,style:{top:M.top,left:M.left,width:M.width,maxHeight:_},role:"listbox",id:q,"aria-label":S||V,children:K?s.jsxs("div",{className:t.default.loading,children:[s.jsx(R.Loader2,{size:L,className:t.default.spinner}),s.jsx("span",{children:"Loading..."})]}):p.length===0?s.jsx("div",{className:t.default.empty,children:Y}):p.map((e,n)=>{const m=n===d,y=e.value===i;return s.jsx("div",{className:[t.default.option,m&&t.default.highlighted,y&&t.default.selected,e.disabled&&t.default.disabled].filter(Boolean).join(" "),role:"option","aria-selected":y,"aria-disabled":e.disabled,onClick:()=>O(e),onMouseEnter:()=>j(n),children:ie(e,n)},e.value)})});return s.jsxs("div",{className:re,children:[S&&s.jsx("label",{htmlFor:$,className:t.default.label,children:S}),s.jsxs("div",{ref:v,className:t.default.inputWrapper,onClick:()=>N.current?.focus(),children:[s.jsx("input",{...Z,ref:e=>{typeof k=="function"?k(e):k&&(k.current=e),N.current=e},id:$,type:"text",className:t.default.input,value:E,onChange:te,onFocus:se,onBlur:le,onKeyDown:ae,disabled:w,placeholder:V,role:"combobox","aria-expanded":r,"aria-haspopup":"listbox","aria-controls":q,"aria-autocomplete":"list","aria-activedescendant":d>=0?`${q}-option-${d}`:void 0}),s.jsxs("div",{className:t.default.actions,children:[U&&i&&!w&&s.jsx("button",{type:"button",className:t.default.clearButton,onClick:ne,"aria-label":"Clear selection",tabIndex:-1,children:s.jsx(R.X,{size:L})}),s.jsx("span",{className:`${t.default.chevron} ${r?t.default.open:""}`,"aria-hidden":"true",children:s.jsx(R.ChevronDown,{size:L})})]})]}),(z||g)&&s.jsx("span",{className:g?t.default.errorText:t.default.helperText,children:g||z}),r&&oe.createPortal(ce,document.body)]})});X.displayName="Combobox";exports.Combobox=X;
package/dist/index26.mjs CHANGED
@@ -2,7 +2,7 @@ import { jsx as s, jsxs as v, Fragment as fe } from "react/jsx-runtime";
2
2
  import { forwardRef as me, useId as he, useRef as M, useState as R, useMemo as Y, useEffect as z, useCallback as h } from "react";
3
3
  import { createPortal as pe } from "react-dom";
4
4
  import { Loader2 as be, X as we, ChevronDown as ve, Check as ge } from "lucide-react";
5
- import t from "./index102.mjs";
5
+ import t from "./index115.mjs";
6
6
  const Ne = (d, l) => {
7
7
  const o = l.toLowerCase().trim();
8
8
  return o ? d.label.toLowerCase().includes(o) || d.value.toLowerCase().includes(o) || (d.description?.toLowerCase().includes(o) ?? !1) : !0;