@brightlocal/ui-components 3.2.0 → 3.4.0

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 (434) hide show
  1. package/AI_USAGE.md +10 -0
  2. package/README.md +3 -1
  3. package/component-meta.json +1458 -380
  4. package/deprecations.json +44 -0
  5. package/dist/_virtual/_rolldown/runtime.cjs +1 -0
  6. package/dist/accordion.cjs +1 -1
  7. package/dist/accordion.js +73 -102
  8. package/dist/alert-dialog.cjs +1 -1
  9. package/dist/alert-dialog.d.ts +6 -4
  10. package/dist/alert-dialog.d.ts.map +1 -1
  11. package/dist/alert-dialog.js +85 -133
  12. package/dist/alert.cjs +1 -1
  13. package/dist/alert.d.ts +4 -4
  14. package/dist/alert.d.ts.map +1 -1
  15. package/dist/alert.js +106 -168
  16. package/dist/aspect-ratio.cjs +1 -1
  17. package/dist/aspect-ratio.js +13 -16
  18. package/dist/avatar.cjs +1 -1
  19. package/dist/avatar.js +30 -45
  20. package/dist/badge.cjs +1 -1
  21. package/dist/badge.d.ts +23 -1
  22. package/dist/badge.d.ts.map +1 -1
  23. package/dist/badge.js +90 -91
  24. package/dist/banner.cjs +1 -1
  25. package/dist/banner.js +102 -148
  26. package/dist/blocks/empty-state.cjs +1 -1
  27. package/dist/blocks/empty-state.d.ts +20 -3
  28. package/dist/blocks/empty-state.d.ts.map +1 -1
  29. package/dist/blocks/empty-state.js +73 -140
  30. package/dist/blocks/input-list.cjs +2 -2
  31. package/dist/blocks/input-list.d.ts +2 -2
  32. package/dist/blocks/input-list.d.ts.map +1 -1
  33. package/dist/blocks/input-list.js +138 -178
  34. package/dist/blocks/progress-state.cjs +1 -1
  35. package/dist/blocks/progress-state.js +223 -347
  36. package/dist/blocks/sidebar.cjs +1 -1
  37. package/dist/blocks/sidebar.d.ts +11 -6
  38. package/dist/blocks/sidebar.d.ts.map +1 -1
  39. package/dist/blocks/sidebar.js +763 -1092
  40. package/dist/brand-illustration-motif.cjs +1 -1
  41. package/dist/brand-illustration-motif.js +40 -61
  42. package/dist/breadcrumb.cjs +1 -1
  43. package/dist/breadcrumb.js +62 -102
  44. package/dist/button-group.cjs +1 -1
  45. package/dist/button-group.js +23 -31
  46. package/dist/button.cjs +1 -1
  47. package/dist/button.d.ts +4 -2
  48. package/dist/button.d.ts.map +1 -1
  49. package/dist/button.js +149 -189
  50. package/dist/calendar.cjs +1 -1
  51. package/dist/calendar.d.ts +87 -3
  52. package/dist/calendar.d.ts.map +1 -1
  53. package/dist/calendar.js +116 -173
  54. package/dist/callout.cjs +1 -1
  55. package/dist/callout.js +73 -96
  56. package/dist/card.cjs +1 -1
  57. package/dist/card.d.ts +10 -4
  58. package/dist/card.d.ts.map +1 -1
  59. package/dist/card.js +233 -316
  60. package/dist/carousel.cjs +1 -1
  61. package/dist/carousel.d.ts +3 -3
  62. package/dist/carousel.d.ts.map +1 -1
  63. package/dist/carousel.js +174 -268
  64. package/dist/centred-layout.cjs +1 -1
  65. package/dist/centred-layout.js +27 -48
  66. package/dist/chart-empty.cjs +1 -1
  67. package/dist/chart-empty.js +18 -27
  68. package/dist/chart.cjs +7 -7
  69. package/dist/chart.d.ts +23 -13
  70. package/dist/chart.d.ts.map +1 -1
  71. package/dist/chart.js +445 -651
  72. package/dist/checkbox.cjs +1 -1
  73. package/dist/checkbox.js +36 -69
  74. package/dist/chip.cjs +1 -1
  75. package/dist/chip.js +116 -173
  76. package/dist/collapsible.cjs +1 -1
  77. package/dist/collapsible.d.ts.map +1 -1
  78. package/dist/collapsible.js +35 -41
  79. package/dist/combobox.cjs +3 -3
  80. package/dist/combobox.d.ts +14 -4
  81. package/dist/combobox.d.ts.map +1 -1
  82. package/dist/combobox.js +439 -638
  83. package/dist/command.cjs +1 -1
  84. package/dist/command.d.ts.map +1 -1
  85. package/dist/command.js +273 -420
  86. package/dist/context-menu.cjs +1 -1
  87. package/dist/context-menu.d.ts +5 -5
  88. package/dist/context-menu.d.ts.map +1 -1
  89. package/dist/context-menu.js +121 -191
  90. package/dist/data-table.cjs +1 -1
  91. package/dist/data-table.d.ts +280 -129
  92. package/dist/data-table.d.ts.map +1 -1
  93. package/dist/data-table.js +687 -948
  94. package/dist/date-picker.cjs +1 -1
  95. package/dist/date-picker.d.ts +15 -4
  96. package/dist/date-picker.d.ts.map +1 -1
  97. package/dist/date-picker.js +156 -231
  98. package/dist/delta.cjs +1 -0
  99. package/dist/delta.d.ts +79 -0
  100. package/dist/delta.d.ts.map +1 -0
  101. package/dist/delta.js +62 -0
  102. package/dist/description-list.cjs +1 -0
  103. package/dist/description-list.d.ts +142 -0
  104. package/dist/description-list.d.ts.map +1 -0
  105. package/dist/description-list.js +173 -0
  106. package/dist/description.cjs +1 -1
  107. package/dist/description.js +11 -20
  108. package/dist/dialog.cjs +1 -1
  109. package/dist/dialog.d.ts +1 -1
  110. package/dist/dialog.d.ts.map +1 -1
  111. package/dist/dialog.js +76 -116
  112. package/dist/drawer.cjs +1 -1
  113. package/dist/drawer.d.ts +11 -11
  114. package/dist/drawer.d.ts.map +1 -1
  115. package/dist/drawer.js +76 -134
  116. package/dist/dropdown-menu.cjs +1 -1
  117. package/dist/dropdown-menu.d.ts +6 -6
  118. package/dist/dropdown-menu.d.ts.map +1 -1
  119. package/dist/dropdown-menu.js +179 -300
  120. package/dist/field.cjs +1 -1
  121. package/dist/field.d.ts +9 -9
  122. package/dist/field.d.ts.map +1 -1
  123. package/dist/field.js +166 -286
  124. package/dist/global-layout.cjs +1 -1
  125. package/dist/global-layout.js +203 -342
  126. package/dist/grid.cjs +1 -1
  127. package/dist/grid.js +16 -29
  128. package/dist/header.cjs +1 -1
  129. package/dist/header.js +21 -38
  130. package/dist/height-transition.cjs +1 -1
  131. package/dist/height-transition.js +38 -55
  132. package/dist/hooks/use-breakpoint.cjs +1 -1
  133. package/dist/hooks/use-breakpoint.js +9 -9
  134. package/dist/hooks/use-debounce.cjs +1 -1
  135. package/dist/hooks/use-debounce.js +12 -11
  136. package/dist/hooks/use-delayed-pending.cjs +1 -1
  137. package/dist/hooks/use-delayed-pending.js +8 -9
  138. package/dist/hooks/use-filter-search-params.cjs +1 -0
  139. package/dist/hooks/use-filter-search-params.d.ts +93 -0
  140. package/dist/hooks/use-filter-search-params.d.ts.map +1 -0
  141. package/dist/hooks/use-filter-search-params.js +122 -0
  142. package/dist/hooks/use-mobile.cjs +1 -1
  143. package/dist/hooks/use-mobile.js +6 -6
  144. package/dist/hooks/use-overlay-pointer-lock.cjs +1 -1
  145. package/dist/hooks/use-overlay-pointer-lock.js +8 -9
  146. package/dist/hooks/use-prefers-reduced-motion.cjs +1 -1
  147. package/dist/hooks/use-prefers-reduced-motion.js +5 -8
  148. package/dist/hover-card.cjs +1 -1
  149. package/dist/hover-card.d.ts +1 -1
  150. package/dist/hover-card.d.ts.map +1 -1
  151. package/dist/hover-card.js +30 -62
  152. package/dist/index.cjs +1 -1
  153. package/dist/index.d.ts +7 -0
  154. package/dist/index.d.ts.map +1 -1
  155. package/dist/index.js +658 -614
  156. package/dist/info-tooltip.cjs +1 -1
  157. package/dist/info-tooltip.js +22 -36
  158. package/dist/input-chip.cjs +1 -1
  159. package/dist/input-chip.d.ts +32 -3
  160. package/dist/input-chip.d.ts.map +1 -1
  161. package/dist/input-chip.js +181 -230
  162. package/dist/input-group.cjs +1 -1
  163. package/dist/input-group.js +174 -221
  164. package/dist/input-otp.cjs +1 -1
  165. package/dist/input-otp.d.ts +3 -3
  166. package/dist/input-otp.d.ts.map +1 -1
  167. package/dist/input-otp.js +102 -146
  168. package/dist/input-password.cjs +1 -1
  169. package/dist/input-password.d.ts +12 -16
  170. package/dist/input-password.d.ts.map +1 -1
  171. package/dist/input-password.js +139 -171
  172. package/dist/input.cjs +1 -1
  173. package/dist/input.d.ts.map +1 -1
  174. package/dist/input.js +51 -73
  175. package/dist/label.cjs +1 -1
  176. package/dist/label.js +20 -38
  177. package/dist/lib/block-illustration.cjs +1 -1
  178. package/dist/lib/block-illustration.d.ts +1 -1
  179. package/dist/lib/block-illustration.d.ts.map +1 -1
  180. package/dist/lib/block-illustration.js +16 -18
  181. package/dist/lib/compose-event-handlers.cjs +1 -0
  182. package/dist/lib/compose-event-handlers.d.ts +9 -0
  183. package/dist/lib/compose-event-handlers.d.ts.map +1 -0
  184. package/dist/lib/compose-event-handlers.js +8 -0
  185. package/dist/lib/download-file.cjs +1 -0
  186. package/dist/lib/download-file.d.ts +14 -0
  187. package/dist/lib/download-file.d.ts.map +1 -0
  188. package/dist/lib/download-file.js +40 -0
  189. package/dist/lib/empty-canvas.cjs +1 -1
  190. package/dist/lib/empty-canvas.js +28 -56
  191. package/dist/lib/empty-chip.cjs +1 -1
  192. package/dist/lib/empty-chip.d.ts +14 -3
  193. package/dist/lib/empty-chip.d.ts.map +1 -1
  194. package/dist/lib/empty-chip.js +15 -11
  195. package/dist/lib/field-aria.cjs +1 -0
  196. package/dist/lib/field-aria.d.ts +34 -0
  197. package/dist/lib/field-aria.d.ts.map +1 -0
  198. package/dist/lib/field-aria.js +52 -0
  199. package/dist/lib/image-file-info.cjs +1 -0
  200. package/dist/lib/image-file-info.d.ts +25 -0
  201. package/dist/lib/image-file-info.d.ts.map +1 -0
  202. package/dist/lib/image-file-info.js +67 -0
  203. package/dist/lib/media-viewer-content.cjs +1 -0
  204. package/dist/lib/media-viewer-content.d.ts +102 -0
  205. package/dist/lib/media-viewer-content.d.ts.map +1 -0
  206. package/dist/lib/media-viewer-content.js +650 -0
  207. package/dist/lib/media-viewer-internal.cjs +1 -0
  208. package/dist/lib/media-viewer-internal.d.ts +98 -0
  209. package/dist/lib/media-viewer-internal.d.ts.map +1 -0
  210. package/dist/lib/media-viewer-internal.js +61 -0
  211. package/dist/lib/media-viewer-motion.cjs +1 -0
  212. package/dist/lib/media-viewer-motion.d.ts +40 -0
  213. package/dist/lib/media-viewer-motion.d.ts.map +1 -0
  214. package/dist/lib/media-viewer-motion.js +37 -0
  215. package/dist/lib/motion.cjs +1 -1
  216. package/dist/lib/motion.d.ts +8 -0
  217. package/dist/lib/motion.d.ts.map +1 -1
  218. package/dist/lib/motion.js +14 -8
  219. package/dist/lib/optical-center.cjs +1 -1
  220. package/dist/lib/optical-center.d.ts +1 -1
  221. package/dist/lib/optical-center.d.ts.map +1 -1
  222. package/dist/lib/optical-center.js +12 -5
  223. package/dist/lib/spring-settle.cjs +1 -1
  224. package/dist/lib/spring-settle.js +1 -1
  225. package/dist/lib/table-internal.cjs +1 -0
  226. package/dist/lib/table-internal.d.ts +62 -0
  227. package/dist/lib/table-internal.d.ts.map +1 -0
  228. package/dist/lib/table-internal.js +18 -0
  229. package/dist/lib/use-controllable.cjs +1 -0
  230. package/dist/lib/use-controllable.d.ts +12 -0
  231. package/dist/lib/use-controllable.d.ts.map +1 -0
  232. package/dist/lib/use-controllable.js +15 -0
  233. package/dist/lib/use-dev-warning.cjs +1 -1
  234. package/dist/lib/utils.cjs +1 -1
  235. package/dist/lib/utils.js +26 -33
  236. package/dist/link.cjs +1 -1
  237. package/dist/link.d.ts +1 -1
  238. package/dist/link.js +78 -124
  239. package/dist/list.cjs +1 -1
  240. package/dist/list.d.ts +224 -39
  241. package/dist/list.d.ts.map +1 -1
  242. package/dist/list.js +323 -171
  243. package/dist/loading.cjs +1 -1
  244. package/dist/loading.js +124 -151
  245. package/dist/logo-mark.cjs +1 -0
  246. package/dist/logo-mark.d.ts +79 -0
  247. package/dist/logo-mark.d.ts.map +1 -0
  248. package/dist/logo-mark.js +219 -0
  249. package/dist/logo.cjs +1 -1
  250. package/dist/logo.d.ts +1 -1
  251. package/dist/logo.d.ts.map +1 -1
  252. package/dist/logo.js +51 -87
  253. package/dist/map.cjs +1 -1
  254. package/dist/map.d.ts.map +1 -1
  255. package/dist/map.js +390 -586
  256. package/dist/media-empty.cjs +1 -1
  257. package/dist/media-empty.js +27 -42
  258. package/dist/media-viewer.cjs +1 -0
  259. package/dist/media-viewer.d.ts +224 -0
  260. package/dist/media-viewer.d.ts.map +1 -0
  261. package/dist/media-viewer.js +295 -0
  262. package/dist/menubar.cjs +1 -1
  263. package/dist/menubar.d.ts +14 -14
  264. package/dist/menubar.d.ts.map +1 -1
  265. package/dist/menubar.js +130 -267
  266. package/dist/multi-select-filter.cjs +1 -1
  267. package/dist/multi-select-filter.d.ts +9 -1
  268. package/dist/multi-select-filter.d.ts.map +1 -1
  269. package/dist/multi-select-filter.js +357 -446
  270. package/dist/navigation-menu.cjs +1 -1
  271. package/dist/navigation-menu.js +108 -172
  272. package/dist/pagination.cjs +1 -1
  273. package/dist/pagination.d.ts +36 -12
  274. package/dist/pagination.d.ts.map +1 -1
  275. package/dist/pagination.js +208 -281
  276. package/dist/popover.cjs +1 -1
  277. package/dist/popover.d.ts +1 -1
  278. package/dist/popover.d.ts.map +1 -1
  279. package/dist/popover.js +34 -45
  280. package/dist/progress.cjs +1 -1
  281. package/dist/progress.d.ts +17 -2
  282. package/dist/progress.d.ts.map +1 -1
  283. package/dist/progress.js +116 -162
  284. package/dist/radio-group.cjs +1 -1
  285. package/dist/radio-group.js +90 -146
  286. package/dist/rating.cjs +1 -1
  287. package/dist/rating.d.ts +80 -13
  288. package/dist/rating.d.ts.map +1 -1
  289. package/dist/rating.js +70 -65
  290. package/dist/relative-date.cjs +1 -1
  291. package/dist/relative-date.d.ts.map +1 -1
  292. package/dist/relative-date.js +73 -89
  293. package/dist/resizable.cjs +1 -1
  294. package/dist/resizable.d.ts +39 -23
  295. package/dist/resizable.d.ts.map +1 -1
  296. package/dist/resizable.js +42 -44
  297. package/dist/result-count.cjs +1 -0
  298. package/dist/result-count.d.ts +110 -0
  299. package/dist/result-count.d.ts.map +1 -0
  300. package/dist/result-count.js +49 -0
  301. package/dist/route-progress.cjs +1 -1
  302. package/dist/route-progress.js +59 -102
  303. package/dist/scroll-area.cjs +1 -1
  304. package/dist/scroll-area.d.ts +9 -1
  305. package/dist/scroll-area.d.ts.map +1 -1
  306. package/dist/scroll-area.js +44 -79
  307. package/dist/select.cjs +2 -2
  308. package/dist/select.d.ts +10 -10
  309. package/dist/select.d.ts.map +1 -1
  310. package/dist/select.js +118 -238
  311. package/dist/separator.cjs +1 -1
  312. package/dist/separator.js +90 -78
  313. package/dist/sheet.cjs +1 -1
  314. package/dist/sheet.d.ts +8 -5
  315. package/dist/sheet.d.ts.map +1 -1
  316. package/dist/sheet.js +250 -317
  317. package/dist/single-select-filter.cjs +1 -1
  318. package/dist/single-select-filter.d.ts +32 -0
  319. package/dist/single-select-filter.d.ts.map +1 -1
  320. package/dist/single-select-filter.js +201 -203
  321. package/dist/skeleton.cjs +1 -1
  322. package/dist/skeleton.js +24 -38
  323. package/dist/slider.cjs +1 -1
  324. package/dist/slider.js +51 -81
  325. package/dist/sonner.cjs +1 -1
  326. package/dist/sonner.d.ts +1 -1
  327. package/dist/sonner.d.ts.map +1 -1
  328. package/dist/sonner.js +101 -125
  329. package/dist/spinner.cjs +1 -1
  330. package/dist/spinner.js +22 -31
  331. package/dist/split-layout.cjs +1 -1
  332. package/dist/split-layout.js +52 -101
  333. package/dist/status.cjs +1 -0
  334. package/dist/status.d.ts +51 -0
  335. package/dist/status.d.ts.map +1 -0
  336. package/dist/status.js +60 -0
  337. package/dist/stepper.cjs +1 -1
  338. package/dist/stepper.js +184 -316
  339. package/dist/switch.cjs +1 -1
  340. package/dist/switch.js +17 -32
  341. package/dist/table.cjs +1 -1
  342. package/dist/table.d.ts +103 -30
  343. package/dist/table.d.ts.map +1 -1
  344. package/dist/table.js +170 -209
  345. package/dist/tabs.cjs +1 -1
  346. package/dist/tabs.d.ts.map +1 -1
  347. package/dist/tabs.js +102 -147
  348. package/dist/text-reveal-motion.cjs +1 -1
  349. package/dist/text-reveal-motion.js +307 -363
  350. package/dist/textarea.cjs +1 -1
  351. package/dist/textarea.d.ts.map +1 -1
  352. package/dist/textarea.js +22 -35
  353. package/dist/toggle-group.cjs +1 -1
  354. package/dist/toggle-group.js +43 -62
  355. package/dist/toggle.cjs +1 -1
  356. package/dist/toggle.js +34 -46
  357. package/dist/tooltip.cjs +1 -1
  358. package/dist/tooltip.d.ts +2 -2
  359. package/dist/tooltip.d.ts.map +1 -1
  360. package/dist/tooltip.js +157 -249
  361. package/dist/typography-heading.cjs +1 -1
  362. package/dist/typography-heading.js +25 -61
  363. package/dist/typography-text.cjs +1 -1
  364. package/dist/typography-text.js +27 -57
  365. package/dist/typography.cjs +1 -1
  366. package/dist/typography.js +132 -340
  367. package/package.json +47 -47
  368. package/src/blocks/empty-state.tsx +34 -18
  369. package/src/blocks/input-list.tsx +14 -9
  370. package/src/blocks/sidebar.tsx +86 -31
  371. package/src/components/accordion.tsx +1 -1
  372. package/src/components/alert-dialog.tsx +4 -2
  373. package/src/components/badge.tsx +127 -15
  374. package/src/components/breadcrumb.tsx +1 -1
  375. package/src/components/button.tsx +8 -6
  376. package/src/components/calendar.tsx +155 -9
  377. package/src/components/card.tsx +63 -10
  378. package/src/components/carousel.tsx +4 -1
  379. package/src/components/chart.tsx +151 -17
  380. package/src/components/checkbox.tsx +1 -1
  381. package/src/components/collapsible.tsx +4 -1
  382. package/src/components/combobox.tsx +40 -7
  383. package/src/components/command.tsx +9 -10
  384. package/src/components/context-menu.tsx +4 -4
  385. package/src/components/data-table.tsx +619 -237
  386. package/src/components/date-picker.tsx +31 -4
  387. package/src/components/delta.tsx +217 -0
  388. package/src/components/description-list.tsx +445 -0
  389. package/src/components/drawer.tsx +5 -5
  390. package/src/components/dropdown-menu.tsx +4 -4
  391. package/src/components/field.tsx +36 -15
  392. package/src/components/global-layout.tsx +1 -1
  393. package/src/components/input-chip.tsx +51 -7
  394. package/src/components/input-group.tsx +1 -1
  395. package/src/components/input-password.tsx +15 -19
  396. package/src/components/input.tsx +10 -1
  397. package/src/components/list.tsx +695 -72
  398. package/src/components/logo-mark.tsx +345 -0
  399. package/src/components/map.tsx +18 -20
  400. package/src/components/media-viewer.tsx +908 -0
  401. package/src/components/multi-select-filter.tsx +255 -121
  402. package/src/components/navigation-menu.tsx +2 -2
  403. package/src/components/pagination.tsx +86 -26
  404. package/src/components/progress.tsx +91 -23
  405. package/src/components/rating.tsx +200 -74
  406. package/src/components/relative-date.tsx +19 -11
  407. package/src/components/resizable.tsx +86 -33
  408. package/src/components/result-count.tsx +253 -0
  409. package/src/components/scroll-area.tsx +31 -5
  410. package/src/components/select.tsx +2 -2
  411. package/src/components/sheet.tsx +14 -4
  412. package/src/components/single-select-filter.tsx +136 -41
  413. package/src/components/slider.tsx +2 -2
  414. package/src/components/status.tsx +162 -0
  415. package/src/components/switch.tsx +1 -1
  416. package/src/components/table.tsx +278 -106
  417. package/src/components/tabs.tsx +1 -0
  418. package/src/components/textarea.tsx +20 -2
  419. package/src/components/toggle.tsx +2 -2
  420. package/src/components/tooltip.tsx +11 -20
  421. package/src/hooks/use-filter-search-params.ts +302 -0
  422. package/src/index.ts +7 -0
  423. package/src/lib/compose-event-handlers.ts +14 -0
  424. package/src/lib/download-file.ts +61 -0
  425. package/src/lib/empty-chip.tsx +52 -0
  426. package/src/lib/field-aria.tsx +97 -0
  427. package/src/lib/image-file-info.ts +102 -0
  428. package/src/lib/media-viewer-content.tsx +1587 -0
  429. package/src/lib/media-viewer-internal.tsx +191 -0
  430. package/src/lib/media-viewer-motion.ts +120 -0
  431. package/src/lib/motion.ts +9 -0
  432. package/src/lib/table-internal.ts +74 -0
  433. package/src/lib/use-controllable.ts +43 -0
  434. package/src/lib/empty-chip.ts +0 -24
package/dist/link.js CHANGED
@@ -1,137 +1,91 @@
1
- import { jsxs as s, jsx as d } from "react/jsx-runtime";
2
1
  import * as h from "react";
3
2
  import { ExternalLink as b } from "@brightlocal/icons";
3
+ import { cn as i } from "@brightlocal/ui-components/lib/utils";
4
+ import { jsx as s, jsxs as d } from "react/jsx-runtime";
4
5
  import { Slot as y, Slottable as S } from "@radix-ui/react-slot";
5
6
  import { cva as w } from "class-variance-authority";
6
7
  import { ButtonVariants as L } from "@brightlocal/ui-components/button";
7
- import { cn as n } from "@brightlocal/ui-components/lib/utils";
8
- const _ = /* @__PURE__ */ new Set([
8
+ var _ = /* @__PURE__ */ new Set([
9
9
  "aria-disabled:opacity-50",
10
10
  "aria-invalid:ring-destructive/20",
11
11
  "dark:aria-invalid:ring-destructive/40",
12
12
  "aria-invalid:border-destructive",
13
13
  "data-[state=open]:bg-accent"
14
- ]), e = (i) => n(
15
- L({ variant: i, size: "default" }).split(/\s+/).filter((t) => t && !_.has(t)).join(" "),
16
- "no-underline"
17
- ), j = w(
18
- // No shared base: the button-styled variants carry the Button base classes,
19
- // and a base here would be silently overridden by them in tailwind-merge
20
- // (last wins). Each variant is self-contained.
21
- "",
22
- {
23
- variants: {
24
- variant: {
25
- // Inline text link (default) — the original Link styling.
26
- // `gap-2` (spacing/2) matches the Button icon–text gap.
27
- inline: [
28
- "inline-flex",
29
- "items-center",
30
- "gap-2",
31
- "cursor-pointer",
32
- "outline-none",
33
- "rounded-sm",
34
- // Color tokens (light mode: #2563EB, dark mode: #3B82F6)
35
- "text-link",
36
- "dark:text-link-dark",
37
- // States
38
- "no-underline",
39
- "hover:underline",
40
- "hover:underline-offset-4",
41
- "active:text-link/80",
42
- "visited:text-link-visited",
43
- "visited:dark:text-link-visited-dark",
44
- // Transitions
45
- "transition-[text-decoration,text-decoration-color,text-underline-offset,color]",
46
- "duration-fast",
47
- "ease-out",
48
- // Focus state
49
- "focus-visible:shadow-default"
50
- ],
51
- // Inline link that reads as part of the surrounding sentence: no
52
- // link colour of its own — `color: inherit` picks up whatever the
53
- // parent text sets (muted body copy, alert foregrounds, ...).
54
- // Because colour no longer distinguishes the link from the text
55
- // around it, the underline is the only affordance and is therefore
56
- // persistent (WCAG 1.4.1) — hover feedback comes from the underline
57
- // strengthening, not from a colour change. Deliberately no `visited:`
58
- // styling: a purple visited colour would break the "part of the
59
- // sentence" goal. Plain `inline` display (not `inline-flex`) so the
60
- // link wraps naturally across lines inside a paragraph.
61
- inherit: [
62
- "inline",
63
- "cursor-pointer",
64
- "outline-none",
65
- "rounded-sm",
66
- "text-inherit",
67
- // Persistent underline; softened until hovered
68
- "underline",
69
- "underline-offset-4",
70
- "decoration-current/60",
71
- "hover:decoration-current",
72
- // External icon sits in the text flow with the label
73
- "[&_svg]:ml-1",
74
- "[&_svg]:inline",
75
- "[&_svg]:align-text-bottom",
76
- // Transitions
77
- "transition-[text-decoration-color]",
78
- "duration-fast",
79
- "ease-out",
80
- // Focus state
81
- "focus-visible:shadow-default"
82
- ],
83
- // Button-styled, brand CTA (matches Button `primary`).
84
- primary: e("primary"),
85
- // Button-styled, filled (maps to Button `secondary`).
86
- filled: e("secondary"),
87
- // Button-styled, bordered (matches Button `outline`). Button's outline
88
- // declares no text color (buttons default sensibly; anchors inherit
89
- // ambient/link colors), so links must pin `text-foreground` explicitly.
90
- outline: n(e("outline"), "text-foreground"),
91
- // Button-styled, transparent (matches Button `ghost`).
92
- ghost: e("ghost"),
93
- // Icon-only, circular. Mirrors `ghost` in a fixed 36px square
94
- // footprint — the same `size-9 p-0` Button applies to icon-only
95
- // buttons. Requires an `aria-label` since there is no text content.
96
- icon: n(e("ghost"), "size-9 p-0")
97
- }
98
- },
99
- defaultVariants: {
100
- variant: "inline"
101
- }
102
- }
103
- ), V = h.forwardRef(
104
- ({
105
- className: i,
106
- variant: t = "inline",
107
- dataHook: c,
108
- trackingEl: u,
109
- trackingLabel: f,
110
- asChild: k = !1,
111
- external: r = !1,
112
- showExternalIcon: m = !0,
113
- children: o,
114
- ...p
115
- }, v) => {
116
- const x = r ? { target: "_blank", rel: "noopener noreferrer" } : {}, g = t === "inline" ? "link-default" : `link-${t}`, a = {
117
- ref: v,
118
- className: n(j({ variant: t }), i),
119
- "data-hook": c,
120
- "data-slot": "link",
121
- "data-tracking-el": u || g,
122
- "data-tracking-label": f,
123
- ...x,
124
- ...p
125
- }, l = r && m && /* @__PURE__ */ d(b, { "aria-hidden": "true", "data-slot": "external-icon" });
126
- return k ? /* @__PURE__ */ s(y, { ...a, children: [
127
- /* @__PURE__ */ d(S, { children: o }),
128
- l
129
- ] }) : /* @__PURE__ */ s("a", { ...a, children: [
130
- o,
131
- l
132
- ] });
133
- }
134
- );
14
+ ]), e = (n) => i(L({
15
+ variant: n,
16
+ size: "default"
17
+ }).split(/\s+/).filter((t) => t && !_.has(t)).join(" "), "no-underline"), j = w("", {
18
+ variants: { variant: {
19
+ inline: [
20
+ "inline-flex",
21
+ "items-center",
22
+ "gap-2",
23
+ "cursor-pointer",
24
+ "outline-none",
25
+ "rounded-sm",
26
+ "text-link",
27
+ "dark:text-link-dark",
28
+ "no-underline",
29
+ "hover:underline",
30
+ "hover:underline-offset-4",
31
+ "active:text-link/80",
32
+ "visited:text-link-visited",
33
+ "visited:dark:text-link-visited-dark",
34
+ "transition-[text-decoration,text-decoration-color,text-underline-offset,color]",
35
+ "duration-fast",
36
+ "ease-out",
37
+ "focus-visible:shadow-default"
38
+ ],
39
+ inherit: [
40
+ "inline",
41
+ "cursor-pointer",
42
+ "outline-none",
43
+ "rounded-sm",
44
+ "text-inherit",
45
+ "underline",
46
+ "underline-offset-4",
47
+ "decoration-current/60",
48
+ "hover:decoration-current",
49
+ "[&_svg]:ml-1",
50
+ "[&_svg]:inline",
51
+ "[&_svg]:align-text-bottom",
52
+ "transition-[text-decoration-color]",
53
+ "duration-fast",
54
+ "ease-out",
55
+ "focus-visible:shadow-default"
56
+ ],
57
+ primary: e("primary"),
58
+ filled: e("secondary"),
59
+ outline: i(e("outline"), "text-foreground"),
60
+ ghost: e("ghost"),
61
+ icon: i(e("ghost"), "size-9 p-0")
62
+ } },
63
+ defaultVariants: { variant: "inline" }
64
+ }), V = h.forwardRef(({ className: n, variant: t = "inline", dataHook: u, trackingEl: c, trackingLabel: f, asChild: v = !1, external: r = !1, showExternalIcon: k = !0, children: a, ...m }, p) => {
65
+ const x = r ? {
66
+ target: "_blank",
67
+ rel: "noopener noreferrer"
68
+ } : {}, g = t === "inline" ? "link-default" : `link-${t}`, o = {
69
+ ref: p,
70
+ className: i(j({ variant: t }), n),
71
+ "data-hook": u,
72
+ "data-slot": "link",
73
+ "data-tracking-el": c || g,
74
+ "data-tracking-label": f,
75
+ ...x,
76
+ ...m
77
+ }, l = r && k && /* @__PURE__ */ s(b, {
78
+ "aria-hidden": "true",
79
+ "data-slot": "external-icon"
80
+ });
81
+ return v ? /* @__PURE__ */ d(y, {
82
+ ...o,
83
+ children: [/* @__PURE__ */ s(S, { children: a }), l]
84
+ }) : /* @__PURE__ */ d("a", {
85
+ ...o,
86
+ children: [a, l]
87
+ });
88
+ });
135
89
  V.displayName = "Link";
136
90
  export {
137
91
  V as Link
package/dist/list.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),k=require("react"),h=require("@radix-ui/react-slot"),R=require("class-variance-authority"),r=require("@brightlocal/ui-components/lib/utils"),v=require("@brightlocal/ui-components/skeleton");function w(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const i=w(k),d=R.cva(["flex","items-center","gap-4","rounded-lg","py-2","pr-2","pl-4","transition-colors","duration-fast","ease-out"],{variants:{variant:{default:[],filled:["bg-muted"],outline:["bg-background","border","border-border"],loading:["p-0"]}},defaultVariants:{variant:"filled"}}),c=i.forwardRef(({className:e,dataHook:a,trackingEl:t,trackingLabel:o,...n},l)=>s.jsx("ul",{ref:l,className:r.cn("flex flex-col gap-2",e),"data-hook":a,"data-slot":"list","data-tracking-el":t,"data-tracking-label":o,...n}));c.displayName="List";const m=i.forwardRef(({asChild:e=!1,className:a,variant:t,dataHook:o,trackingEl:n,trackingLabel:l,children:I,...y},N)=>{const j=e?h.Slot:"li";return s.jsx(j,{ref:N,className:r.cn(d({variant:t}),a),"data-hook":o,"data-slot":"item","data-tracking-el":n,"data-tracking-label":l,...y,children:t==="loading"?s.jsx(v.Skeleton,{className:"h-13 w-full rounded-lg"}):I})});m.displayName="Item";const f=i.forwardRef(({className:e,...a},t)=>s.jsx("div",{ref:t,className:r.cn("shrink-0",e),"data-slot":"item-media",...a}));f.displayName="ItemMedia";const u=i.forwardRef(({className:e,...a},t)=>s.jsx("div",{ref:t,className:r.cn("flex flex-1 flex-col gap-1",e),"data-slot":"item-content",...a}));u.displayName="ItemContent";const p=i.forwardRef(({className:e,...a},t)=>s.jsx("div",{ref:t,className:r.cn("text-foreground text-body",e),"data-slot":"item-title",...a}));p.displayName="ItemTitle";const g=i.forwardRef(({className:e,...a},t)=>s.jsx("div",{ref:t,className:r.cn("text-body-sm text-muted-foreground",e),"data-slot":"item-description",...a}));g.displayName="ItemDescription";const x=i.forwardRef(({className:e,...a},t)=>s.jsx("div",{ref:t,className:r.cn("text-muted-foreground flex size-9 shrink-0 items-center justify-center rounded-full",e),"data-slot":"item-actions",...a}));x.displayName="ItemActions";const b=i.forwardRef(({className:e,dataHook:a,...t},o)=>s.jsx("li",{ref:o,className:r.cn("text-muted-foreground text-label-sm flex items-center pt-4 pr-2 pb-1 pl-4 first:pt-2",e),"data-hook":a,"data-slot":"item-subheader",...t}));b.displayName="ItemSubheader";exports.Item=m;exports.ItemActions=x;exports.ItemContent=u;exports.ItemDescription=g;exports.ItemMedia=f;exports.ItemSubheader=b;exports.ItemTitle=p;exports.List=c;exports.itemVariants=d;
1
+ "use client";const G=require("./_virtual/_rolldown/runtime.cjs");let s=require("react");s=G.__toESM(s,1);let J=require("@brightlocal/icons"),d=require("@brightlocal/ui-components/lib/utils"),n=require("react/jsx-runtime"),h=require("@radix-ui/react-slot"),L=require("class-variance-authority"),g=require("@brightlocal/ui-components/tooltip"),Q=require("@brightlocal/ui-components/skeleton");var I=(0,L.cva)(["group/item","flex","gap-4","rounded-lg","py-2","pr-2","pl-4","transition-colors","duration-fast","ease-out","has-[>[data-slot=item-button]]:p-0","has-[>[data-slot=item-link]]:p-0"],{variants:{variant:{default:[],filled:["bg-muted"],outline:["bg-background","border","border-border"],loading:["p-0"]},align:{center:["items-center"],start:["items-start"]}},defaultVariants:{variant:"filled",align:"center"}}),T=(0,L.cva)(["flex","flex-col"],{variants:{inset:{true:["-mr-2","-ml-4"],false:[]},divided:{true:["gap-0","[&>[data-slot=item]]:rounded-none","[&>[data-slot=item]+[data-slot=item]]:border-t","[&>[data-slot=item]+[data-slot=item]]:border-border"],false:["gap-2"]}},defaultVariants:{inset:!1,divided:!1}}),V=s.forwardRef(({className:t,dataHook:e,trackingEl:a,trackingLabel:r,inset:i,divided:o,...l},c)=>(0,n.jsx)("ul",{ref:c,className:(0,d.cn)(T({inset:i,divided:o}),t),"data-divided":o?"":void 0,"data-hook":e,"data-slot":"list","data-tracking-el":a,"data-tracking-label":r,...l}));V.displayName="List";var x=s.forwardRef(({asChild:t=!1,className:e,variant:a,align:r,dataHook:i,trackingEl:o,trackingLabel:l,children:c,...m},p)=>(0,n.jsx)(t?h.Slot:"li",{ref:p,className:(0,d.cn)(I({variant:a,align:r}),e),"data-align":r??"center","data-hook":i,"data-slot":"item","data-tracking-el":o,"data-tracking-label":l,...m,children:a==="loading"?(0,n.jsx)(Q.Skeleton,{className:"h-13 w-full rounded-lg"}):c}));x.displayName="ListItem";var E=(0,L.cva)(["shrink-0"],{variants:{variant:{default:[],icon:["inline-flex","size-10","items-center","justify-center","rounded-lg","border","border-border","bg-background"],image:["size-10","overflow-hidden","rounded-lg","[&_img]:size-full","[&_img]:object-cover"]}},defaultVariants:{variant:"default"}}),k=s.forwardRef(({className:t,variant:e,...a},r)=>(0,n.jsx)("div",{ref:r,className:(0,d.cn)(E({variant:e}),t),"data-slot":"item-media","data-variant":e??"default",...a}));k.displayName="ListItemMedia";var w=s.forwardRef(({className:t,...e},a)=>(0,n.jsx)("div",{ref:a,className:(0,d.cn)("flex min-w-0 flex-1 flex-col gap-1",t),"data-slot":"item-content",...e}));w.displayName="ListItemContent";var U='[data-slot="item-button"], [data-slot="item-link"]';function X(t,e){const[a,r]=s.useState(!1);return s.useEffect(()=>{if(!e||!t)return;const i=()=>r(t.scrollHeight>t.clientHeight+1||t.scrollWidth>t.clientWidth+1),o=new ResizeObserver(i);o.observe(t);const l=new MutationObserver(i);return l.observe(t,{characterData:!0,childList:!0,subtree:!0}),()=>{o.disconnect(),l.disconnect()}},[e,t]),e&&t!==null&&a}function Y(t,e){const[a,r]=s.useState(null),i=e?t?.closest(U)??null:null;return s.useEffect(()=>{if(!i)return;const o=()=>r(i===document.activeElement&&i.matches(":focus-visible")?i:null),l=()=>r(null);return o(),i.addEventListener("focus",o),i.addEventListener("blur",l),()=>{i.removeEventListener("focus",o),i.removeEventListener("blur",l)}},[i]),i!==null&&a===i}var N=s.forwardRef(({asChild:t=!1,truncate:e=!1,partSlot:a,tooltipSide:r,className:i,children:o,...l},c)=>{const[m,p]=s.useState(null),z=s.useCallback(u=>{p(u),typeof c=="function"?c(u):c&&(c.current=u)},[c]),v=X(m,e),f=Y(m,v),[P,H]=s.useState(!1),[W,b]=s.useState(!1),[K,$]=s.useState(f);f!==K&&($(f),f&&b(!1));const C=(0,n.jsx)(t?h.Slot:"div",{ref:z,className:(0,d.cn)(e&&"line-clamp-2",i),"data-slot":a,"data-truncated":v?"":void 0,...l,children:o});return v?(0,n.jsxs)(g.Tooltip,{open:!W&&(P||f),onOpenChange:u=>{u&&b(!1),H(u)},children:[(0,n.jsx)(g.TooltipTrigger,{asChild:!0,onPointerDown:u=>{const R=u.currentTarget;u.pointerType==="touch"&&(R.closest("button, a, label")||R.tagName==="LABEL")&&u.preventDefault()},children:C}),(0,n.jsx)(g.TooltipContent,{dataHook:`list-${a}-tooltip`,side:r,sideOffset:4,onEscapeKeyDown:()=>b(!0),children:o})]}):C});N.displayName="TruncatableText";var _=s.forwardRef(({className:t,...e},a)=>(0,n.jsx)(N,{ref:a,className:(0,d.cn)("text-foreground text-body",t),partSlot:"item-title",tooltipSide:"top",...e}));_.displayName="ListItemTitle";var y=s.forwardRef(({className:t,...e},a)=>(0,n.jsx)(N,{ref:a,className:(0,d.cn)("text-body-sm text-muted-foreground",t),partSlot:"item-description",tooltipSide:"bottom",...e}));y.displayName="ListItemDescription";var S=s.forwardRef(({className:t,...e},a)=>(0,n.jsx)("div",{ref:a,className:(0,d.cn)("text-muted-foreground flex min-h-9 min-w-9 shrink-0 items-center justify-center gap-2",t),"data-slot":"item-actions",...e}));S.displayName="ListItemActions";var j=s.forwardRef(({className:t,dataHook:e,...a},r)=>(0,n.jsx)("li",{ref:r,className:(0,d.cn)("text-muted-foreground text-label-sm flex items-center pt-4 pr-2 pb-1 pl-4 first:pt-2",t),"data-hook":e,"data-slot":"item-subheader",...a}));j.displayName="ListSubheader";var D=["flex","w-full","min-w-0","items-center","group-data-[align=start]/item:items-start","gap-4","rounded-[inherit]","py-2","pr-2","pl-4","text-left","cursor-pointer","outline-none","hover:bg-accent","focus-visible:shadow-default","transition-colors","duration-fast","ease-out","disabled:pointer-events-none","disabled:cursor-not-allowed","disabled:opacity-50","aria-disabled:pointer-events-none","aria-disabled:cursor-not-allowed","aria-disabled:opacity-50"];function q(t,e){const a=t.currentTarget.getAttribute("aria-disabled");if(a==="true"||a===""){t.preventDefault(),t.stopPropagation();return}e?.(t)}var M=s.forwardRef(({className:t,type:e="button",dataHook:a,trackingEl:r,trackingLabel:i,onClickCapture:o,...l},c)=>(0,n.jsx)("button",{ref:c,className:(0,d.cn)(D,t),"data-hook":a,"data-slot":"item-button","data-tracking-el":r,"data-tracking-label":i,type:e,onClickCapture:m=>q(m,o),...l}));M.displayName="ListItemButton";var A=s.forwardRef(({className:t,asChild:e=!1,dataHook:a,trackingEl:r,trackingLabel:i,onClickCapture:o,...l},c)=>(0,n.jsx)(e?h.Slot:"a",{ref:c,className:(0,d.cn)(D,t),"data-hook":a,"data-slot":"item-link","data-tracking-el":r,"data-tracking-label":i,onClickCapture:m=>q(m,o),...l}));A.displayName="ListItemLink";var O=s.forwardRef(({className:t,...e},a)=>(0,n.jsx)("span",{ref:a,className:(0,d.cn)("text-muted-foreground text-body-sm max-w-1/2 min-w-0 shrink truncate text-right",t),"data-slot":"item-value",...e}));O.displayName="ListItemValue";var B=s.forwardRef(({className:t,...e},a)=>(0,n.jsx)(J.ChevronRight,{ref:a,"aria-hidden":!0,className:(0,d.cn)("text-muted-foreground shrink-0",t),"data-slot":"item-chevron",...e}));B.displayName="ListItemChevron";var F=s.forwardRef(({className:t,...e},a)=>(0,n.jsx)("li",{ref:a,"aria-hidden":!0,className:(0,d.cn)("bg-border h-px w-full shrink-0",t),"data-slot":"item-separator",...e}));F.displayName="ListSeparator";var Z=x,tt=k,et=w,at=_,st=y,it=S,rt=j,ot=I;exports.Item=Z;exports.ItemActions=it;exports.ItemContent=et;exports.ItemDescription=st;exports.ItemMedia=tt;exports.ItemSubheader=rt;exports.ItemTitle=at;exports.List=V;exports.ListItem=x;exports.ListItemActions=S;exports.ListItemButton=M;exports.ListItemChevron=B;exports.ListItemContent=w;exports.ListItemDescription=y;exports.ListItemLink=A;exports.ListItemMedia=k;exports.ListItemTitle=_;exports.ListItemValue=O;exports.ListSeparator=F;exports.ListSubheader=j;exports.itemVariants=ot;exports.listItemMediaVariants=E;exports.listItemVariants=I;exports.listVariants=T;
package/dist/list.d.ts CHANGED
@@ -1,6 +1,8 @@
1
+ import { ChevronRight } from '@brightlocal/icons';
1
2
  import * as React from "react";
2
- declare const itemVariants: (props?: ({
3
+ declare const listItemVariants: (props?: ({
3
4
  variant?: "default" | "filled" | "outline" | "loading" | null | undefined;
5
+ align?: "start" | "center" | null | undefined;
4
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
5
7
  /**
6
8
  * Props for the List root container.
@@ -11,6 +13,19 @@ export type ListProps = React.ComponentProps<"ul"> & {
11
13
  * Data hook for automated testing (required).
12
14
  */
13
15
  dataHook: string;
16
+ /**
17
+ * Pulls the list out by the row's own inline padding, so the text of plain
18
+ * (`default`) rows lines up with the content edge of the card around it.
19
+ * @default false
20
+ */
21
+ inset?: boolean;
22
+ /**
23
+ * Draws a hairline between rows and drops the gap and the row radius, for
24
+ * plain (`default`) rows such as a drill-down list. For a single break
25
+ * between two groups, use `ListSeparator` instead.
26
+ * @default false
27
+ */
28
+ divided?: boolean;
14
29
  /**
15
30
  * Tracking element identifier for analytics.
16
31
  */
@@ -21,28 +36,32 @@ export type ListProps = React.ComponentProps<"ul"> & {
21
36
  trackingLabel?: string;
22
37
  };
23
38
  /**
24
- * Vertical list container for rendering a collection of Item rows.
39
+ * Vertical list container for rendering a collection of ListItem rows.
25
40
  *
26
41
  * @example
27
42
  * ```tsx
28
43
  * <List dataHook="keywords-list">
29
- * <Item variant="filled" dataHook="item-1">
30
- * <ItemContent>
31
- * <ItemTitle>Keyword</ItemTitle>
32
- * </ItemContent>
33
- * <ItemActions>
44
+ * <ListItem variant="filled" dataHook="item-1">
45
+ * <ListItemContent>
46
+ * <ListItemTitle>Keyword</ListItemTitle>
47
+ * </ListItemContent>
48
+ * <ListItemActions>
34
49
  * <Button variant="ghost" size="icon" dataHook="remove"><XIcon /></Button>
35
- * </ItemActions>
36
- * </Item>
50
+ * </ListItemActions>
51
+ * </ListItem>
37
52
  * </List>
38
53
  * ```
39
54
  */
55
+ declare const listVariants: (props?: ({
56
+ inset?: boolean | null | undefined;
57
+ divided?: boolean | null | undefined;
58
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
40
59
  declare const List: React.ForwardRefExoticComponent<Omit<ListProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
41
60
  /**
42
- * Props for an individual Item row within a List.
61
+ * Props for an individual ListItem row within a List.
43
62
  * Extends native `<li>` props with CVA variant styling and optional testing/analytics attributes.
44
63
  */
45
- export type ItemProps = React.ComponentProps<"li"> & {
64
+ export type ListItemProps = React.ComponentProps<"li"> & {
46
65
  /**
47
66
  * Render as the child element instead of `<li>`.
48
67
  * Useful when the item is wrapped by another element (e.g. `<motion.li>`).
@@ -57,6 +76,13 @@ export type ItemProps = React.ComponentProps<"li"> & {
57
76
  * @default "filled"
58
77
  */
59
78
  variant?: "default" | "filled" | "outline" | "loading";
79
+ /**
80
+ * Cross-axis alignment of the row's children (media, content, actions).
81
+ * Use `"start"` when ListItemMedia (icon, avatar, step number) should pin to the
82
+ * first line of multi-line content instead of centering vertically.
83
+ * @default "center"
84
+ */
85
+ align?: "center" | "start";
60
86
  /**
61
87
  * Data hook for automated testing.
62
88
  */
@@ -72,42 +98,79 @@ export type ItemProps = React.ComponentProps<"li"> & {
72
98
  };
73
99
  /**
74
100
  * Row component within a List. Supports `default`, `filled`, `outline`, and `loading` variants.
75
- * Compose with ItemMedia, ItemContent, ItemTitle, ItemDescription, and ItemActions.
101
+ * Compose with ListItemMedia, ListItemContent, ListItemTitle, ListItemDescription, and ListItemActions.
76
102
  */
77
- declare const Item: React.ForwardRefExoticComponent<Omit<ItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
78
- /** Props for the ItemMedia sub-component — optional left-side media slot. */
79
- export type ItemMediaProps = React.ComponentProps<"div">;
103
+ declare const ListItem: React.ForwardRefExoticComponent<Omit<ListItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
104
+ declare const listItemMediaVariants: (props?: ({
105
+ variant?: "default" | "image" | "icon" | null | undefined;
106
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
107
+ /** Props for the ListItemMedia sub-component — optional left-side media slot. */
108
+ export type ListItemMediaProps = React.ComponentProps<"div"> & {
109
+ /**
110
+ * How the media is framed.
111
+ * - `default` — the icon or avatar as it is
112
+ * - `icon` — a 40px bordered tile, for brand logos and icons
113
+ * - `image` — a 40px rounded crop, for thumbnails
114
+ * @default "default"
115
+ */
116
+ variant?: "default" | "icon" | "image";
117
+ };
80
118
  /**
81
- * Optional left-side media slot for icons or avatars.
119
+ * Optional left-side media slot for icons, avatars, logo tiles or thumbnails.
82
120
  */
83
- declare const ItemMedia: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
84
- /** Props for the ItemContent sub-component — flexible content area within an Item. */
85
- export type ItemContentProps = React.ComponentProps<"div">;
121
+ declare const ListItemMedia: React.ForwardRefExoticComponent<Omit<ListItemMediaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
122
+ /** Props for the ListItemContent sub-component — flexible content area within an ListItem. */
123
+ export type ListItemContentProps = React.ComponentProps<"div">;
86
124
  /**
87
125
  * Flexible content area that grows to fill available space.
88
- * Place ItemTitle and ItemDescription inside.
126
+ * Place ListItemTitle and ListItemDescription inside.
89
127
  */
90
- declare const ItemContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
91
- /** Props for the ItemTitle sub-component — primary text label within an Item. */
92
- export type ItemTitleProps = React.ComponentProps<"div">;
128
+ declare const ListItemContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
129
+ /** Props for the ListItemTitle sub-component — primary text label within a ListItem. */
130
+ export type ListItemTitleProps = React.ComponentProps<"div"> & {
131
+ /**
132
+ * Render as the child element, e.g. a `<label>` that names the row's Switch.
133
+ * Works together with `truncate`.
134
+ */
135
+ asChild?: boolean;
136
+ /**
137
+ * Wrap the title to at most two lines and clamp the rest with an ellipsis.
138
+ * When it is clamped, hovering it (or focusing the row's ListItemButton /
139
+ * ListItemLink) shows the full title in a Tooltip. Two lines that fit get
140
+ * no tooltip.
141
+ * @default false
142
+ */
143
+ truncate?: boolean;
144
+ };
93
145
  /**
94
- * Primary text label within an Item.
146
+ * Primary text label within a ListItem.
95
147
  */
96
- declare const ItemTitle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
97
- /** Props for the ItemDescription sub-component — supporting text beneath ItemTitle. */
98
- export type ItemDescriptionProps = React.ComponentProps<"div">;
148
+ declare const ListItemTitle: React.ForwardRefExoticComponent<Omit<ListItemTitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
149
+ /** Props for the ListItemDescription sub-component — supporting text beneath ListItemTitle. */
150
+ export type ListItemDescriptionProps = React.ComponentProps<"div"> & {
151
+ /**
152
+ * Wrap the description to at most two lines and clamp the rest with an
153
+ * ellipsis. When it is clamped, hovering it (or focusing the row's
154
+ * ListItemButton / ListItemLink) shows the full text in a Tooltip. Two lines
155
+ * that fit get no tooltip.
156
+ * @default false
157
+ */
158
+ truncate?: boolean;
159
+ };
99
160
  /**
100
- * Supporting description text beneath ItemTitle.
161
+ * Supporting description text beneath ListItemTitle.
101
162
  */
102
- declare const ItemDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
103
- /** Props for the ItemActions sub-component — right-side slot for action controls. */
104
- export type ItemActionsProps = React.ComponentProps<"div">;
163
+ declare const ListItemDescription: React.ForwardRefExoticComponent<Omit<ListItemDescriptionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
164
+ /** Props for the ListItemActions sub-component — right-side slot for action controls. */
165
+ export type ListItemActionsProps = React.ComponentProps<"div">;
105
166
  /**
106
- * Right-side slot for action controls such as remove buttons.
167
+ * Right-side slot for trailing content: an icon button, a menu, a Switch, a
168
+ * Badge or Status, a text Button, or several of them side by side. It is at
169
+ * least 36px square, so a single icon button keeps its place.
107
170
  */
108
- declare const ItemActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
109
- /** Props for the ItemSubheader sub-component — section heading within a List. */
110
- export type ItemSubheaderProps = React.ComponentProps<"li"> & {
171
+ declare const ListItemActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
172
+ /** Props for the ListSubheader sub-component — section heading within a List. */
173
+ export type ListSubheaderProps = React.ComponentProps<"li"> & {
111
174
  /**
112
175
  * Data hook for automated testing.
113
176
  */
@@ -120,11 +183,133 @@ export type ItemSubheaderProps = React.ComponentProps<"li"> & {
120
183
  * @example
121
184
  * ```tsx
122
185
  * <List dataHook="actions-list">
123
- * <ItemSubheader>Suggestions</ItemSubheader>
124
- * <Item variant="default" dataHook="item-1">...</Item>
186
+ * <ListSubheader>Suggestions</ListSubheader>
187
+ * <ListItem variant="default" dataHook="item-1">...</ListItem>
125
188
  * </List>
126
189
  * ```
127
190
  */
128
- declare const ItemSubheader: React.ForwardRefExoticComponent<Omit<ItemSubheaderProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
129
- export { List, Item, ItemMedia, ItemContent, ItemTitle, ItemDescription, ItemActions, ItemSubheader, itemVariants, };
191
+ declare const ListSubheader: React.ForwardRefExoticComponent<Omit<ListSubheaderProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
192
+ /** Props for ListItemButton — a row that runs an action (opens a sheet, a drill-down level). */
193
+ export type ListItemButtonProps = React.ComponentProps<"button"> & {
194
+ /**
195
+ * Data hook for automated testing.
196
+ */
197
+ dataHook?: string;
198
+ /**
199
+ * Tracking element identifier for analytics.
200
+ */
201
+ trackingEl?: string;
202
+ /**
203
+ * Tracking label for analytics context.
204
+ */
205
+ trackingLabel?: string;
206
+ };
207
+ /**
208
+ * Makes the whole row a button. Place it as the only child of an ListItem and put
209
+ * the row's parts (ListItemMedia, ListItemContent, ListItemValue, ListItemChevron) inside it.
210
+ *
211
+ * @example
212
+ * ```tsx
213
+ * <ListItem variant="default" dataHook="location">
214
+ * <ListItemButton dataHook="location-row" onClick={open}>
215
+ * <ListItemContent><ListItemTitle>Location</ListItemTitle></ListItemContent>
216
+ * <ListItemValue>London, UK</ListItemValue>
217
+ * <ListItemChevron />
218
+ * </ListItemButton>
219
+ * </ListItem>
220
+ * ```
221
+ */
222
+ declare const ListItemButton: React.ForwardRefExoticComponent<Omit<ListItemButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
223
+ /** Props for ListItemLink — a row that navigates. */
224
+ export type ListItemLinkProps = React.ComponentProps<"a"> & {
225
+ /**
226
+ * Render as the child element, e.g. a router `<Link>`.
227
+ */
228
+ asChild?: boolean;
229
+ /**
230
+ * Data hook for automated testing.
231
+ */
232
+ dataHook?: string;
233
+ /**
234
+ * Tracking element identifier for analytics.
235
+ */
236
+ trackingEl?: string;
237
+ /**
238
+ * Tracking label for analytics context.
239
+ */
240
+ trackingLabel?: string;
241
+ };
242
+ /**
243
+ * Makes the whole row a link. Place it as the only child of an ListItem; use
244
+ * `asChild` to render a router link.
245
+ *
246
+ * @example
247
+ * ```tsx
248
+ * <ListItem variant="outline" dataHook="billing">
249
+ * <ListItemLink asChild dataHook="billing-link">
250
+ * <NextLink href="/settings/billing">
251
+ * <ListItemContent><ListItemTitle>Billing</ListItemTitle></ListItemContent>
252
+ * <ListItemChevron />
253
+ * </NextLink>
254
+ * </ListItemLink>
255
+ * </ListItem>
256
+ * ```
257
+ */
258
+ declare const ListItemLink: React.ForwardRefExoticComponent<Omit<ListItemLinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
259
+ /** Props for ListItemValue — the current value shown at the end of a drill-down row. */
260
+ export type ListItemValueProps = React.ComponentProps<"span">;
261
+ /**
262
+ * The row's current value, before the chevron: muted, right-aligned, and cut
263
+ * off with an ellipsis past half the row so the title always keeps its room.
264
+ */
265
+ declare const ListItemValue: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
266
+ /** Props for ListItemChevron — the trailing arrow of a row that opens something. */
267
+ export type ListItemChevronProps = React.ComponentProps<typeof ChevronRight>;
268
+ /**
269
+ * Trailing chevron for a row that navigates or drills down. Decorative: the
270
+ * row's button or link carries the meaning.
271
+ */
272
+ declare const ListItemChevron: React.ForwardRefExoticComponent<Omit<import('@brightlocal/icons').WrappedLucideProps & React.RefAttributes<SVGSVGElement>, "ref"> & React.RefAttributes<SVGSVGElement>>;
273
+ /** Props for ListSeparator — a hairline between two rows or groups. */
274
+ export type ListSeparatorProps = React.ComponentProps<"li">;
275
+ /**
276
+ * A hairline between rows. Hidden from assistive tech so the list's item
277
+ * count stays the number of rows. For a line between every row, use
278
+ * `<List divided>` instead.
279
+ */
280
+ declare const ListSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
281
+ /** @deprecated Use `ListItem`. Removed in 4.0. */
282
+ declare const Item: React.ForwardRefExoticComponent<Omit<ListItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
283
+ /** @deprecated Use `ListItemMedia`. Removed in 4.0. */
284
+ declare const ItemMedia: React.ForwardRefExoticComponent<Omit<ListItemMediaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
285
+ /** @deprecated Use `ListItemContent`. Removed in 4.0. */
286
+ declare const ItemContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
287
+ /** @deprecated Use `ListItemTitle`. Removed in 4.0. */
288
+ declare const ItemTitle: React.ForwardRefExoticComponent<Omit<ListItemTitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
289
+ /** @deprecated Use `ListItemDescription`. Removed in 4.0. */
290
+ declare const ItemDescription: React.ForwardRefExoticComponent<Omit<ListItemDescriptionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
291
+ /** @deprecated Use `ListItemActions`. Removed in 4.0. */
292
+ declare const ItemActions: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
293
+ /** @deprecated Use `ListSubheader`. Removed in 4.0. */
294
+ declare const ItemSubheader: React.ForwardRefExoticComponent<Omit<ListSubheaderProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
295
+ /** @deprecated Use `listItemVariants`. Removed in 4.0. */
296
+ declare const itemVariants: (props?: ({
297
+ variant?: "default" | "filled" | "outline" | "loading" | null | undefined;
298
+ align?: "start" | "center" | null | undefined;
299
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
300
+ /** @deprecated Use `ListItemProps`. Removed in 4.0. */
301
+ export type ItemProps = ListItemProps;
302
+ /** @deprecated Use `ListItemMediaProps`. Removed in 4.0. */
303
+ export type ItemMediaProps = ListItemMediaProps;
304
+ /** @deprecated Use `ListItemContentProps`. Removed in 4.0. */
305
+ export type ItemContentProps = ListItemContentProps;
306
+ /** @deprecated Use `ListItemTitleProps`. Removed in 4.0. */
307
+ export type ItemTitleProps = ListItemTitleProps;
308
+ /** @deprecated Use `ListItemDescriptionProps`. Removed in 4.0. */
309
+ export type ItemDescriptionProps = ListItemDescriptionProps;
310
+ /** @deprecated Use `ListItemActionsProps`. Removed in 4.0. */
311
+ export type ItemActionsProps = ListItemActionsProps;
312
+ /** @deprecated Use `ListSubheaderProps`. Removed in 4.0. */
313
+ export type ItemSubheaderProps = ListSubheaderProps;
314
+ export { List, ListItem, ListItemButton, ListItemLink, ListItemMedia, ListItemContent, ListItemTitle, ListItemDescription, ListItemValue, ListItemChevron, ListItemActions, ListSubheader, ListSeparator, listVariants, listItemVariants, listItemMediaVariants, Item, ItemMedia, ItemContent, ItemTitle, ItemDescription, ItemActions, ItemSubheader, itemVariants, };
130
315
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/components/list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,QA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