@brightlocal/ui-components 3.2.0 → 3.3.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 (428) hide show
  1. package/AI_USAGE.md +10 -0
  2. package/README.md +3 -1
  3. package/component-meta.json +1271 -428
  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 +136 -176
  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.cjs +1 -1
  103. package/dist/description.js +11 -20
  104. package/dist/dialog.cjs +1 -1
  105. package/dist/dialog.d.ts +1 -1
  106. package/dist/dialog.d.ts.map +1 -1
  107. package/dist/dialog.js +76 -116
  108. package/dist/drawer.cjs +1 -1
  109. package/dist/drawer.d.ts +11 -11
  110. package/dist/drawer.d.ts.map +1 -1
  111. package/dist/drawer.js +76 -134
  112. package/dist/dropdown-menu.cjs +1 -1
  113. package/dist/dropdown-menu.d.ts +6 -6
  114. package/dist/dropdown-menu.d.ts.map +1 -1
  115. package/dist/dropdown-menu.js +179 -300
  116. package/dist/field.cjs +1 -1
  117. package/dist/field.d.ts +9 -9
  118. package/dist/field.d.ts.map +1 -1
  119. package/dist/field.js +166 -286
  120. package/dist/global-layout.cjs +1 -1
  121. package/dist/global-layout.js +203 -342
  122. package/dist/grid.cjs +1 -1
  123. package/dist/grid.js +16 -29
  124. package/dist/header.cjs +1 -1
  125. package/dist/header.js +21 -38
  126. package/dist/height-transition.cjs +1 -1
  127. package/dist/height-transition.js +38 -55
  128. package/dist/hooks/use-breakpoint.cjs +1 -1
  129. package/dist/hooks/use-breakpoint.js +9 -9
  130. package/dist/hooks/use-debounce.cjs +1 -1
  131. package/dist/hooks/use-debounce.js +12 -11
  132. package/dist/hooks/use-delayed-pending.cjs +1 -1
  133. package/dist/hooks/use-delayed-pending.js +8 -9
  134. package/dist/hooks/use-filter-search-params.cjs +1 -0
  135. package/dist/hooks/use-filter-search-params.d.ts +93 -0
  136. package/dist/hooks/use-filter-search-params.d.ts.map +1 -0
  137. package/dist/hooks/use-filter-search-params.js +122 -0
  138. package/dist/hooks/use-mobile.cjs +1 -1
  139. package/dist/hooks/use-mobile.js +6 -6
  140. package/dist/hooks/use-overlay-pointer-lock.cjs +1 -1
  141. package/dist/hooks/use-overlay-pointer-lock.js +8 -9
  142. package/dist/hooks/use-prefers-reduced-motion.cjs +1 -1
  143. package/dist/hooks/use-prefers-reduced-motion.js +5 -8
  144. package/dist/hover-card.cjs +1 -1
  145. package/dist/hover-card.d.ts +1 -1
  146. package/dist/hover-card.d.ts.map +1 -1
  147. package/dist/hover-card.js +30 -62
  148. package/dist/index.cjs +1 -1
  149. package/dist/index.d.ts +6 -0
  150. package/dist/index.d.ts.map +1 -1
  151. package/dist/index.js +630 -608
  152. package/dist/info-tooltip.cjs +1 -1
  153. package/dist/info-tooltip.js +22 -36
  154. package/dist/input-chip.cjs +1 -1
  155. package/dist/input-chip.d.ts +32 -3
  156. package/dist/input-chip.d.ts.map +1 -1
  157. package/dist/input-chip.js +181 -230
  158. package/dist/input-group.cjs +1 -1
  159. package/dist/input-group.js +174 -221
  160. package/dist/input-otp.cjs +1 -1
  161. package/dist/input-otp.d.ts +3 -3
  162. package/dist/input-otp.d.ts.map +1 -1
  163. package/dist/input-otp.js +102 -146
  164. package/dist/input-password.cjs +1 -1
  165. package/dist/input-password.d.ts +12 -16
  166. package/dist/input-password.d.ts.map +1 -1
  167. package/dist/input-password.js +139 -171
  168. package/dist/input.cjs +1 -1
  169. package/dist/input.d.ts.map +1 -1
  170. package/dist/input.js +51 -73
  171. package/dist/label.cjs +1 -1
  172. package/dist/label.js +20 -38
  173. package/dist/lib/block-illustration.cjs +1 -1
  174. package/dist/lib/block-illustration.d.ts +1 -1
  175. package/dist/lib/block-illustration.d.ts.map +1 -1
  176. package/dist/lib/block-illustration.js +16 -18
  177. package/dist/lib/compose-event-handlers.cjs +1 -0
  178. package/dist/lib/compose-event-handlers.d.ts +9 -0
  179. package/dist/lib/compose-event-handlers.d.ts.map +1 -0
  180. package/dist/lib/compose-event-handlers.js +8 -0
  181. package/dist/lib/download-file.cjs +1 -0
  182. package/dist/lib/download-file.d.ts +14 -0
  183. package/dist/lib/download-file.d.ts.map +1 -0
  184. package/dist/lib/download-file.js +40 -0
  185. package/dist/lib/empty-canvas.cjs +1 -1
  186. package/dist/lib/empty-canvas.js +28 -56
  187. package/dist/lib/empty-chip.cjs +1 -1
  188. package/dist/lib/empty-chip.d.ts +14 -3
  189. package/dist/lib/empty-chip.d.ts.map +1 -1
  190. package/dist/lib/empty-chip.js +15 -11
  191. package/dist/lib/field-aria.cjs +1 -0
  192. package/dist/lib/field-aria.d.ts +34 -0
  193. package/dist/lib/field-aria.d.ts.map +1 -0
  194. package/dist/lib/field-aria.js +52 -0
  195. package/dist/lib/image-file-info.cjs +1 -0
  196. package/dist/lib/image-file-info.d.ts +25 -0
  197. package/dist/lib/image-file-info.d.ts.map +1 -0
  198. package/dist/lib/image-file-info.js +67 -0
  199. package/dist/lib/media-viewer-content.cjs +1 -0
  200. package/dist/lib/media-viewer-content.d.ts +102 -0
  201. package/dist/lib/media-viewer-content.d.ts.map +1 -0
  202. package/dist/lib/media-viewer-content.js +650 -0
  203. package/dist/lib/media-viewer-internal.cjs +1 -0
  204. package/dist/lib/media-viewer-internal.d.ts +98 -0
  205. package/dist/lib/media-viewer-internal.d.ts.map +1 -0
  206. package/dist/lib/media-viewer-internal.js +61 -0
  207. package/dist/lib/media-viewer-motion.cjs +1 -0
  208. package/dist/lib/media-viewer-motion.d.ts +40 -0
  209. package/dist/lib/media-viewer-motion.d.ts.map +1 -0
  210. package/dist/lib/media-viewer-motion.js +37 -0
  211. package/dist/lib/motion.cjs +1 -1
  212. package/dist/lib/motion.d.ts +8 -0
  213. package/dist/lib/motion.d.ts.map +1 -1
  214. package/dist/lib/motion.js +11 -10
  215. package/dist/lib/optical-center.cjs +1 -1
  216. package/dist/lib/optical-center.d.ts +1 -1
  217. package/dist/lib/optical-center.d.ts.map +1 -1
  218. package/dist/lib/optical-center.js +12 -5
  219. package/dist/lib/spring-settle.cjs +1 -1
  220. package/dist/lib/spring-settle.js +1 -1
  221. package/dist/lib/table-internal.cjs +1 -0
  222. package/dist/lib/table-internal.d.ts +62 -0
  223. package/dist/lib/table-internal.d.ts.map +1 -0
  224. package/dist/lib/table-internal.js +18 -0
  225. package/dist/lib/use-controllable.cjs +1 -0
  226. package/dist/lib/use-controllable.d.ts +12 -0
  227. package/dist/lib/use-controllable.d.ts.map +1 -0
  228. package/dist/lib/use-controllable.js +15 -0
  229. package/dist/lib/use-dev-warning.cjs +1 -1
  230. package/dist/lib/utils.cjs +1 -1
  231. package/dist/lib/utils.js +26 -33
  232. package/dist/link.cjs +1 -1
  233. package/dist/link.d.ts +1 -1
  234. package/dist/link.js +78 -124
  235. package/dist/list.cjs +1 -1
  236. package/dist/list.d.ts +8 -0
  237. package/dist/list.d.ts.map +1 -1
  238. package/dist/list.js +94 -156
  239. package/dist/loading.cjs +1 -1
  240. package/dist/loading.js +124 -151
  241. package/dist/logo-mark.cjs +1 -0
  242. package/dist/logo-mark.d.ts +79 -0
  243. package/dist/logo-mark.d.ts.map +1 -0
  244. package/dist/logo-mark.js +219 -0
  245. package/dist/logo.cjs +1 -1
  246. package/dist/logo.d.ts +1 -1
  247. package/dist/logo.d.ts.map +1 -1
  248. package/dist/logo.js +51 -87
  249. package/dist/map.cjs +1 -1
  250. package/dist/map.d.ts.map +1 -1
  251. package/dist/map.js +390 -586
  252. package/dist/media-empty.cjs +1 -1
  253. package/dist/media-empty.js +27 -42
  254. package/dist/media-viewer.cjs +1 -0
  255. package/dist/media-viewer.d.ts +224 -0
  256. package/dist/media-viewer.d.ts.map +1 -0
  257. package/dist/media-viewer.js +295 -0
  258. package/dist/menubar.cjs +1 -1
  259. package/dist/menubar.d.ts +14 -14
  260. package/dist/menubar.d.ts.map +1 -1
  261. package/dist/menubar.js +130 -267
  262. package/dist/multi-select-filter.cjs +1 -1
  263. package/dist/multi-select-filter.d.ts +9 -1
  264. package/dist/multi-select-filter.d.ts.map +1 -1
  265. package/dist/multi-select-filter.js +357 -446
  266. package/dist/navigation-menu.cjs +1 -1
  267. package/dist/navigation-menu.js +108 -172
  268. package/dist/pagination.cjs +1 -1
  269. package/dist/pagination.d.ts +36 -12
  270. package/dist/pagination.d.ts.map +1 -1
  271. package/dist/pagination.js +208 -281
  272. package/dist/popover.cjs +1 -1
  273. package/dist/popover.d.ts +1 -1
  274. package/dist/popover.d.ts.map +1 -1
  275. package/dist/popover.js +34 -45
  276. package/dist/progress.cjs +1 -1
  277. package/dist/progress.d.ts +17 -2
  278. package/dist/progress.d.ts.map +1 -1
  279. package/dist/progress.js +116 -162
  280. package/dist/radio-group.cjs +1 -1
  281. package/dist/radio-group.js +90 -146
  282. package/dist/rating.cjs +1 -1
  283. package/dist/rating.d.ts +80 -13
  284. package/dist/rating.d.ts.map +1 -1
  285. package/dist/rating.js +70 -65
  286. package/dist/relative-date.cjs +1 -1
  287. package/dist/relative-date.d.ts.map +1 -1
  288. package/dist/relative-date.js +73 -89
  289. package/dist/resizable.cjs +1 -1
  290. package/dist/resizable.d.ts +39 -23
  291. package/dist/resizable.d.ts.map +1 -1
  292. package/dist/resizable.js +42 -44
  293. package/dist/result-count.cjs +1 -0
  294. package/dist/result-count.d.ts +110 -0
  295. package/dist/result-count.d.ts.map +1 -0
  296. package/dist/result-count.js +49 -0
  297. package/dist/route-progress.cjs +1 -1
  298. package/dist/route-progress.js +58 -102
  299. package/dist/scroll-area.cjs +1 -1
  300. package/dist/scroll-area.d.ts +9 -1
  301. package/dist/scroll-area.d.ts.map +1 -1
  302. package/dist/scroll-area.js +44 -79
  303. package/dist/select.cjs +2 -2
  304. package/dist/select.d.ts +10 -10
  305. package/dist/select.d.ts.map +1 -1
  306. package/dist/select.js +118 -238
  307. package/dist/separator.cjs +1 -1
  308. package/dist/separator.js +90 -78
  309. package/dist/sheet.cjs +1 -1
  310. package/dist/sheet.d.ts +8 -5
  311. package/dist/sheet.d.ts.map +1 -1
  312. package/dist/sheet.js +250 -317
  313. package/dist/single-select-filter.cjs +1 -1
  314. package/dist/single-select-filter.d.ts +32 -0
  315. package/dist/single-select-filter.d.ts.map +1 -1
  316. package/dist/single-select-filter.js +201 -203
  317. package/dist/skeleton.cjs +1 -1
  318. package/dist/skeleton.js +24 -38
  319. package/dist/slider.cjs +1 -1
  320. package/dist/slider.js +51 -81
  321. package/dist/sonner.cjs +1 -1
  322. package/dist/sonner.d.ts +1 -1
  323. package/dist/sonner.d.ts.map +1 -1
  324. package/dist/sonner.js +101 -125
  325. package/dist/spinner.cjs +1 -1
  326. package/dist/spinner.js +22 -31
  327. package/dist/split-layout.cjs +1 -1
  328. package/dist/split-layout.js +52 -101
  329. package/dist/status.cjs +1 -0
  330. package/dist/status.d.ts +51 -0
  331. package/dist/status.d.ts.map +1 -0
  332. package/dist/status.js +60 -0
  333. package/dist/stepper.cjs +1 -1
  334. package/dist/stepper.js +184 -316
  335. package/dist/switch.cjs +1 -1
  336. package/dist/switch.js +17 -32
  337. package/dist/table.cjs +1 -1
  338. package/dist/table.d.ts +103 -30
  339. package/dist/table.d.ts.map +1 -1
  340. package/dist/table.js +170 -209
  341. package/dist/tabs.cjs +1 -1
  342. package/dist/tabs.d.ts.map +1 -1
  343. package/dist/tabs.js +102 -147
  344. package/dist/text-reveal-motion.cjs +1 -1
  345. package/dist/text-reveal-motion.js +307 -363
  346. package/dist/textarea.cjs +1 -1
  347. package/dist/textarea.d.ts.map +1 -1
  348. package/dist/textarea.js +22 -35
  349. package/dist/toggle-group.cjs +1 -1
  350. package/dist/toggle-group.js +43 -62
  351. package/dist/toggle.cjs +1 -1
  352. package/dist/toggle.js +34 -46
  353. package/dist/tooltip.cjs +1 -1
  354. package/dist/tooltip.d.ts +2 -2
  355. package/dist/tooltip.d.ts.map +1 -1
  356. package/dist/tooltip.js +157 -249
  357. package/dist/typography-heading.cjs +1 -1
  358. package/dist/typography-heading.js +25 -61
  359. package/dist/typography-text.cjs +1 -1
  360. package/dist/typography-text.js +27 -57
  361. package/dist/typography.cjs +1 -1
  362. package/dist/typography.js +132 -340
  363. package/package.json +46 -46
  364. package/src/blocks/empty-state.tsx +34 -18
  365. package/src/blocks/sidebar.tsx +86 -31
  366. package/src/components/accordion.tsx +1 -1
  367. package/src/components/alert-dialog.tsx +4 -2
  368. package/src/components/badge.tsx +127 -15
  369. package/src/components/breadcrumb.tsx +1 -1
  370. package/src/components/button.tsx +8 -6
  371. package/src/components/calendar.tsx +155 -9
  372. package/src/components/card.tsx +63 -10
  373. package/src/components/carousel.tsx +4 -1
  374. package/src/components/chart.tsx +151 -17
  375. package/src/components/checkbox.tsx +1 -1
  376. package/src/components/collapsible.tsx +4 -1
  377. package/src/components/combobox.tsx +40 -7
  378. package/src/components/command.tsx +9 -10
  379. package/src/components/context-menu.tsx +4 -4
  380. package/src/components/data-table.tsx +619 -237
  381. package/src/components/date-picker.tsx +31 -4
  382. package/src/components/delta.tsx +217 -0
  383. package/src/components/drawer.tsx +5 -5
  384. package/src/components/dropdown-menu.tsx +4 -4
  385. package/src/components/field.tsx +36 -15
  386. package/src/components/global-layout.tsx +1 -1
  387. package/src/components/input-chip.tsx +51 -7
  388. package/src/components/input-group.tsx +1 -1
  389. package/src/components/input-password.tsx +15 -19
  390. package/src/components/input.tsx +10 -1
  391. package/src/components/list.tsx +14 -2
  392. package/src/components/logo-mark.tsx +345 -0
  393. package/src/components/map.tsx +18 -20
  394. package/src/components/media-viewer.tsx +908 -0
  395. package/src/components/multi-select-filter.tsx +255 -121
  396. package/src/components/navigation-menu.tsx +2 -2
  397. package/src/components/pagination.tsx +86 -26
  398. package/src/components/progress.tsx +91 -23
  399. package/src/components/rating.tsx +200 -74
  400. package/src/components/relative-date.tsx +19 -11
  401. package/src/components/resizable.tsx +86 -33
  402. package/src/components/result-count.tsx +253 -0
  403. package/src/components/scroll-area.tsx +31 -5
  404. package/src/components/select.tsx +2 -2
  405. package/src/components/sheet.tsx +14 -4
  406. package/src/components/single-select-filter.tsx +136 -41
  407. package/src/components/slider.tsx +2 -2
  408. package/src/components/status.tsx +162 -0
  409. package/src/components/switch.tsx +1 -1
  410. package/src/components/table.tsx +278 -106
  411. package/src/components/tabs.tsx +1 -0
  412. package/src/components/textarea.tsx +20 -2
  413. package/src/components/toggle.tsx +2 -2
  414. package/src/components/tooltip.tsx +11 -20
  415. package/src/hooks/use-filter-search-params.ts +302 -0
  416. package/src/index.ts +6 -0
  417. package/src/lib/compose-event-handlers.ts +14 -0
  418. package/src/lib/download-file.ts +61 -0
  419. package/src/lib/empty-chip.tsx +52 -0
  420. package/src/lib/field-aria.tsx +97 -0
  421. package/src/lib/image-file-info.ts +102 -0
  422. package/src/lib/media-viewer-content.tsx +1587 -0
  423. package/src/lib/media-viewer-internal.tsx +191 -0
  424. package/src/lib/media-viewer-motion.ts +120 -0
  425. package/src/lib/motion.ts +9 -0
  426. package/src/lib/table-internal.ts +74 -0
  427. package/src/lib/use-controllable.ts +43 -0
  428. package/src/lib/empty-chip.ts +0 -24
@@ -1,1020 +1,759 @@
1
- import { jsxs as y, jsx as t, Fragment as N } from "react/jsx-runtime";
2
- import * as g from "react";
3
- import { useReactTable as ge, getExpandedRowModel as pe, getFilteredRowModel as fe, getSortedRowModel as be, getPaginationRowModel as me, getCoreRowModel as he, flexRender as W } from "@tanstack/react-table";
4
- import { useVirtualizer as Se } from "@tanstack/react-virtual";
5
- import { ArrowDown as xe, ArrowUp as ve, ArrowUpDown as we, ChevronRight as Ce, Search as ye } from "@brightlocal/icons";
1
+ "use client";
2
+ import { Button as te } from "./button.js";
3
+ import { Checkbox as ae } from "./checkbox.js";
4
+ import { useControllable as _ } from "./lib/use-controllable.js";
5
+ import { InputGroup as me, InputGroupAddon as he, InputGroupClear as ve, InputGroupInput as Se } from "./input-group.js";
6
+ import { ResultCount as xe } from "./result-count.js";
7
+ import { Pagination as we, PaginationContent as Ce, PaginationEllipsis as ye, PaginationItem as G, PaginationLink as ke, PaginationNext as Te, PaginationPrevious as De, usePagination as Pe } from "./pagination.js";
8
+ import { Skeleton as X } from "./skeleton.js";
9
+ import { Spinner as ne } from "./spinner.js";
10
+ import { EmptyState as Re } from "./blocks/empty-state.js";
11
+ import { TABLE_ROW_MIN_HEIGHT as Ne, scrollRegionProps as oe } from "./lib/table-internal.js";
12
+ import { Table as le, TableBody as re, TableCell as L, TableEmpty as se, TableHead as Ee, TableHeader as Ie, TableRow as B } from "./table.js";
13
+ import { TypographyMuted as Ae } from "./typography.js";
14
+ import * as d from "react";
15
+ import { ArrowDown as ze, ArrowUp as Me, ArrowUpDown as Fe, ChevronRight as Be, Search as $e, SearchX as He } from "@brightlocal/icons";
6
16
  import { cn as h } from "@brightlocal/ui-components/lib/utils";
7
- import { useIsBelowBreakpoint as G } from "@brightlocal/ui-components/hooks/use-breakpoint";
8
- import { Button as q } from "./button.js";
9
- import { Checkbox as J } from "./checkbox.js";
10
- import { InputGroup as ke, InputGroupAddon as Te, InputGroupInput as Pe, InputGroupClear as Re } from "./input-group.js";
11
- import { usePagination as De, Pagination as Ne, PaginationContent as Ee, PaginationItem as F, PaginationPrevious as ze, PaginationNext as Ae, PaginationEllipsis as Ie, PaginationLink as $e } from "./pagination.js";
12
- import { Skeleton as j } from "./skeleton.js";
13
- import { Spinner as K } from "./spinner.js";
14
- import { Table as Q, TableBody as X, TableRow as P, TableCell as R, scrollRegionProps as Y, TableHeader as Me, TableHead as Fe } from "./table.js";
15
- import { TypographyMuted as He } from "./typography.js";
16
- function z(e, a, i) {
17
- const [n, o] = g.useState(a), s = e !== void 0 ? e : n, l = g.useRef(s);
18
- g.useEffect(() => {
19
- l.current = s;
20
- });
21
- const c = e !== void 0, u = g.useCallback(
22
- (r) => {
23
- const d = typeof r == "function" ? r(l.current) : r;
24
- c || o(d), i?.(d);
25
- },
26
- [c, i]
27
- );
28
- return [s, u];
29
- }
30
- function St(e) {
31
- const {
17
+ import { Fragment as $, jsx as t, jsxs as T } from "react/jsx-runtime";
18
+ import { useVirtualizer as _e } from "@tanstack/react-virtual";
19
+ import { flexRender as ie, getCoreRowModel as Le, getExpandedRowModel as Oe, getFilteredRowModel as Ve, getPaginationRowModel as je, getSortedRowModel as Ge, useReactTable as qe } from "@tanstack/react-table";
20
+ import { useIsBelowBreakpoint as Q } from "@brightlocal/ui-components/hooks/use-breakpoint";
21
+ var ce = "sticky left-0 shadow-[inset_-1px_0_0_var(--border)]", We = h(ce, "z-2"), Ue = h(ce, "z-1 bg-(--dt-row-bg,var(--background))");
22
+ function Mt(e) {
23
+ const { columns: a, data: s, enableSorting: o = !0, enableGlobalFiltering: l = !1, enableRowSelection: r = !1, enablePagination: n = !1, pageSize: c = 20, manualSorting: u = !1, manualFiltering: g = !1, manualPagination: i = !1, rowCount: b, pageCount: p, enableExpanding: v = !1, getSubRows: f, getRowCanExpand: m, paginateExpandedRows: k = !1, getRowId: x, pagination: C, onPaginationChange: w, sorting: A, onSortingChange: z, globalFilter: S, onGlobalFilterChange: y, rowSelection: R, onRowSelectionChange: H, expanded: P, onExpandedChange: D } = e, [N, M] = _(C, {
24
+ pageIndex: 0,
25
+ pageSize: c
26
+ }, w), [E, F] = _(A, [], z), [I, W] = _(S, "", y), [O, V] = _(R, {}, H), [U, j] = _(P, {}, D);
27
+ return qe({
28
+ data: s,
32
29
  columns: a,
33
- data: i,
34
- enableSorting: n = !0,
35
- enableGlobalFiltering: o = !1,
36
- enableRowSelection: s = !1,
37
- enablePagination: l = !1,
38
- pageSize: c = 10,
39
- manualSorting: u = !1,
40
- manualFiltering: r = !1,
41
- manualPagination: d = !1,
42
- rowCount: b,
43
- pageCount: f,
44
- enableExpanding: m = !1,
45
- getSubRows: v,
46
- getRowCanExpand: S,
47
- paginateExpandedRows: w = !1,
48
- getRowId: C,
49
- pagination: k,
50
- onPaginationChange: p,
51
- sorting: x,
52
- onSortingChange: D,
53
- globalFilter: E,
54
- onGlobalFilterChange: A,
55
- rowSelection: T,
56
- onRowSelectionChange: B,
57
- expanded: I,
58
- onExpandedChange: $
59
- } = e, [V, M] = z(
60
- k,
61
- { pageIndex: 0, pageSize: c },
62
- p
63
- ), [le, oe] = z(
64
- x,
65
- [],
66
- D
67
- ), [se, ie] = z(
68
- E,
69
- "",
70
- A
71
- ), [re, ce] = z(T, {}, B), [de, ue] = z(
72
- I,
73
- {},
74
- $
75
- );
76
- return ge({
77
- data: i,
78
- columns: a,
79
- getCoreRowModel: he(),
80
- ...C && { getRowId: C },
81
- ...(l || d) && {
82
- onPaginationChange: M
83
- },
84
- ...l && {
85
- ...!d && {
86
- getPaginationRowModel: me()
87
- }
88
- },
89
- ...d && {
30
+ getCoreRowModel: Le(),
31
+ ...x && { getRowId: x },
32
+ ...(n || i) && { onPaginationChange: M },
33
+ ...n && { ...!i && { getPaginationRowModel: je() } },
34
+ ...i && {
90
35
  manualPagination: !0,
91
36
  ...b != null && { rowCount: b },
92
- ...f != null && { pageCount: f }
37
+ ...p != null && { pageCount: p }
93
38
  },
94
- // Always forward the flag — TanStack defaults `enableSorting` to true,
95
- // so omitting it would leave `column.getCanSort()` returning true even
96
- // when the consumer disabled sorting table-wide.
97
- enableSorting: n,
98
- ...n && {
99
- ...!u && {
100
- getSortedRowModel: be()
101
- },
102
- onSortingChange: oe,
39
+ enableSorting: o,
40
+ ...o && {
41
+ ...!u && { getSortedRowModel: Ge() },
42
+ onSortingChange: F,
103
43
  ...u && { manualSorting: !0 }
104
44
  },
105
- ...o && {
106
- ...!r && {
107
- getFilteredRowModel: fe()
108
- },
109
- ...r && { manualFiltering: !0 },
110
- onGlobalFilterChange: ie,
45
+ ...l && {
46
+ ...!g && { getFilteredRowModel: Ve() },
47
+ ...g && { manualFiltering: !0 },
48
+ onGlobalFilterChange: W,
111
49
  globalFilterFn: "includesString"
112
50
  },
113
- // Always forward — TanStack defaults `enableRowSelection` to true, so
114
- // omitting it would leave `row.getCanSelect()` returning true and
115
- // `DataTableSelectRowCheckbox` enabled on tables without selection.
116
- enableRowSelection: s,
117
- // A predicate turns selection on for the table as a whole; individual rows
118
- // opt out through `row.getCanSelect()`, so the state wiring is still needed.
119
- ...s !== !1 && {
120
- onRowSelectionChange: ce
121
- },
122
- // Always forward the flag — TanStack defaults `enableExpanding` to true,
123
- // so omitting it would leave `row.getCanExpand()` returning true and
124
- // `DataTableExpandRowButton` interactive on tables without expanding.
125
- enableExpanding: m,
126
- ...m && {
127
- getExpandedRowModel: pe(),
128
- onExpandedChange: ue,
129
- getSubRows: v,
130
- ...S && { getRowCanExpand: S },
131
- // Forward only with client-side pagination: `paginateExpandedRows:
132
- // false` defers expansion to the pagination row model, so without one
133
- // it would suppress row expansion entirely.
134
- ...l && !d && { paginateExpandedRows: w }
51
+ enableRowSelection: r,
52
+ ...r !== !1 && { onRowSelectionChange: V },
53
+ enableExpanding: v,
54
+ ...v && {
55
+ getExpandedRowModel: Oe(),
56
+ onExpandedChange: j,
57
+ getSubRows: f,
58
+ ...m && { getRowCanExpand: m },
59
+ ...n && !i && { paginateExpandedRows: k }
135
60
  },
136
61
  state: {
137
- pagination: V,
138
- sorting: le,
139
- globalFilter: se,
140
- rowSelection: re,
141
- expanded: de
62
+ pagination: N,
63
+ sorting: E,
64
+ globalFilter: I,
65
+ rowSelection: O,
66
+ expanded: U
142
67
  }
143
68
  });
144
69
  }
145
- const H = g.createContext(!1);
146
- function Be({
147
- table: e,
148
- dataHook: a,
149
- trackingEl: i,
150
- trackingLabel: n,
151
- isLoading: o = !1,
152
- refetching: s = !1,
153
- refetchingLabel: l,
154
- skeletonRowCount: c,
155
- noResultsMessage: u = "No results.",
156
- stickyHeader: r = !1,
157
- className: d,
158
- layout: b,
159
- minWidth: f,
160
- scrollRegionLabel: m,
161
- footer: v,
162
- getRowClassName: S,
163
- renderExpandedContent: w
164
- }) {
165
- const C = e.getVisibleLeafColumns().length, k = c ?? e.getState().pagination.pageSize ?? 10, p = !!f || r || m !== void 0;
166
- return /* @__PURE__ */ y(
167
- "div",
168
- {
169
- className: h(
170
- // `scrollbar` themes the native scrollbar with DS colors — the same
171
- // treatment Command/Combobox lists use for bounded scroll containers.
172
- "border-border scrollbar relative overflow-auto rounded-md border",
173
- p && "focus-visible:shadow-default outline-none",
174
- d
175
- ),
176
- "data-hook": a,
177
- "data-slot": "data-table-view",
178
- "data-tracking-el": i,
179
- "data-tracking-label": n,
180
- ...p ? Y(m) : void 0,
181
- children: [
182
- /* @__PURE__ */ t("div", { "aria-live": "polite", className: "sr-only", role: "status", children: s ? l ?? "Loading results…" : null }),
183
- /* @__PURE__ */ t(H.Provider, { value: s, children: /* @__PURE__ */ y(
184
- Q,
185
- {
186
- "aria-busy": o || s || void 0,
187
- dataHook: `${a}-table`,
188
- layout: b,
189
- minWidth: f,
190
- scrollOwner: "parent",
191
- children: [
192
- /* @__PURE__ */ t(Z, { stickyHeader: r, table: e }),
193
- /* @__PURE__ */ t(X, { children: o ? /* @__PURE__ */ y(N, { children: [
194
- /* @__PURE__ */ t(
195
- te,
196
- {
197
- colCount: C,
198
- rowCount: k
199
- }
200
- ),
201
- /* @__PURE__ */ t(P, { className: "sr-only", children: /* @__PURE__ */ t(R, { colSpan: C, children: /* @__PURE__ */ t("div", { "aria-live": "polite", role: "status", children: "Loading data…" }) }) })
202
- ] }) : /* @__PURE__ */ t(N, { children: e.getRowModel().rows.length > 0 ? e.getRowModel().rows.map((x) => /* @__PURE__ */ t(
203
- ee,
204
- {
205
- columnCount: C,
206
- getRowClassName: S,
207
- renderExpandedContent: w,
208
- row: x
209
- },
210
- x.id
211
- )) : /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(R, { align: "center", colSpan: C, size: "lg", children: /* @__PURE__ */ t("div", { "aria-live": "polite", className: "py-6", role: "status", children: u }) }) }) }) }),
212
- v
213
- ]
214
- }
215
- ) })
216
- ]
70
+ var q = d.createContext(!1);
71
+ function de({ table: e, dataHook: a, title: s, description: o }) {
72
+ const l = e.getState().globalFilter, r = typeof l == "string" ? l.trim() : "", n = (s ?? (r ? 'No results for "{query}"' : "No results")).replace("{query}", r);
73
+ return /* @__PURE__ */ t(Re, {
74
+ dataHook: `${a}-no-results`,
75
+ description: o ?? "Try a different search, or clear the filters.",
76
+ icon: /* @__PURE__ */ t(He, {}),
77
+ title: n
78
+ });
79
+ }
80
+ function Xe(e, a) {
81
+ const [s, o] = d.useState(!1);
82
+ return d.useLayoutEffect(() => {
83
+ const l = e.current, r = l?.querySelector('[data-slot="table"]');
84
+ if (!a || !l || !r) {
85
+ o(!1);
86
+ return;
217
87
  }
218
- );
88
+ const n = () => o(r.offsetWidth > l.clientWidth + 1);
89
+ n();
90
+ const c = new ResizeObserver(n);
91
+ return c.observe(l), c.observe(r), () => c.disconnect();
92
+ }, [e, a]), s;
93
+ }
94
+ function Ye({ table: e, dataHook: a, trackingEl: s, trackingLabel: o, size: l = "default", frame: r = "own", rowDividers: n = !1, isLoading: c = !1, refetching: u = !1, refetchingLabel: g, loadingLabel: i, skeletonRowCount: b, noResultsMessage: p, noResultsTitle: v, noResultsDescription: f, stickyHeader: m = !1, className: k, layout: x, minWidth: C, scrollRegionLabel: w, footer: A, getRowClassName: z, renderExpandedContent: S }, y) {
95
+ const R = e.getVisibleLeafColumns().length, H = b ?? e.getState().pagination.pageSize ?? 20, P = m === "page", D = d.useRef(null);
96
+ d.useImperativeHandle(y, () => D.current, []);
97
+ const N = Xe(D, P), M = !P || N, E = P ? N : !!C || m === !0 || w !== void 0;
98
+ return /* @__PURE__ */ T("div", {
99
+ ref: D,
100
+ className: h("relative", M ? "scrollbar overflow-auto" : "overflow-clip", r === "own" && "border-border rounded-md border", E && "focus-visible:shadow-default outline-none", k),
101
+ "data-frame": r,
102
+ "data-hook": a,
103
+ "data-overflowing": P && N ? "" : void 0,
104
+ "data-slot": "data-table-view",
105
+ "data-sticky-header": m === !1 ? void 0 : P ? "page" : "self",
106
+ "data-tracking-el": s,
107
+ "data-tracking-label": o,
108
+ ...E ? oe(w) : void 0,
109
+ children: [/* @__PURE__ */ t("div", {
110
+ "aria-live": "polite",
111
+ className: "sr-only",
112
+ role: "status",
113
+ children: u ? g ?? "Loading results…" : null
114
+ }), /* @__PURE__ */ t(q.Provider, {
115
+ value: u,
116
+ children: /* @__PURE__ */ T(le, {
117
+ "aria-busy": c || u || void 0,
118
+ dataHook: `${a}-table`,
119
+ frame: r,
120
+ layout: x,
121
+ minWidth: C,
122
+ rowDividers: n,
123
+ scrollOwner: "parent",
124
+ size: l,
125
+ children: [
126
+ /* @__PURE__ */ t(ue, {
127
+ sticky: P ? !N && "page" : m === !0 && "self",
128
+ table: e
129
+ }),
130
+ /* @__PURE__ */ t(re, { children: c ? /* @__PURE__ */ T($, { children: [/* @__PURE__ */ t(fe, {
131
+ colCount: R,
132
+ rowCount: H
133
+ }), /* @__PURE__ */ t(B, {
134
+ className: "sr-only",
135
+ children: /* @__PURE__ */ t(L, {
136
+ colSpan: R,
137
+ children: /* @__PURE__ */ t("div", {
138
+ "aria-live": "polite",
139
+ role: "status",
140
+ children: i ?? "Loading data…"
141
+ })
142
+ })
143
+ })] }) : /* @__PURE__ */ t($, { children: e.getRowModel().rows.length > 0 ? e.getRowModel().rows.map((F) => /* @__PURE__ */ t(ge, {
144
+ columnCount: R,
145
+ getRowClassName: z,
146
+ renderExpandedContent: S,
147
+ row: F
148
+ }, F.id)) : /* @__PURE__ */ t(se, {
149
+ colSpan: R,
150
+ children: p ?? /* @__PURE__ */ t(de, {
151
+ dataHook: a,
152
+ description: f,
153
+ table: e,
154
+ title: v
155
+ })
156
+ }) }) }),
157
+ A
158
+ ]
159
+ })
160
+ })]
161
+ });
219
162
  }
220
- Be.displayName = "DataTable";
221
- const _ = g.createContext(null), L = () => () => {
163
+ var Je = d.forwardRef(Ye);
164
+ Je.displayName = "DataTable";
165
+ var Z = d.createContext(null), Y = () => () => {
222
166
  };
223
- function Ve() {
224
- const [e] = g.useState(() => {
225
- const a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set(), n = (o) => a.get(o) ?? null;
167
+ function Ke() {
168
+ const [e] = d.useState(() => {
169
+ const a = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), o = (l) => a.get(l) ?? null;
226
170
  return {
227
- set: (o, s) => {
228
- const l = n(o);
229
- l === s || l !== null && s !== null && l.displayed === s.displayed && l.live === s.live || (s === null ? a.delete(o) : a.set(o, s), i.forEach((c) => c()));
171
+ set: (l, r) => {
172
+ const n = o(l);
173
+ n === r || n !== null && r !== null && n.displayed === r.displayed && n.live === r.live || (r === null ? a.delete(l) : a.set(l, r), s.forEach((c) => c()));
230
174
  },
231
- get: n,
175
+ get: o,
232
176
  anyHeld: () => {
233
- for (const o of a.values())
234
- if (o.displayed !== o.live)
235
- return !0;
177
+ for (const l of a.values()) if (l.displayed !== l.live) return !0;
236
178
  return !1;
237
179
  },
238
- subscribe: (o) => (i.add(o), () => {
239
- i.delete(o);
180
+ subscribe: (l) => (s.add(l), () => {
181
+ s.delete(l);
240
182
  })
241
183
  };
242
184
  });
243
185
  return e;
244
186
  }
245
- function Z({
246
- table: e,
247
- stickyHeader: a
248
- }) {
249
- const i = Ve();
250
- return /* @__PURE__ */ t(_.Provider, { value: i, children: /* @__PURE__ */ t(Me, { className: h(a && "sticky top-0 z-10"), children: e.getHeaderGroups().map((n) => /* @__PURE__ */ t(P, { children: n.headers.map((o) => /* @__PURE__ */ t(je, { header: o }, o.id)) }, n.id)) }) });
187
+ function ue({ table: e, sticky: a }) {
188
+ const s = Ke();
189
+ return /* @__PURE__ */ t(Z.Provider, {
190
+ value: s,
191
+ children: /* @__PURE__ */ t(Ie, {
192
+ className: h(a === "self" && "sticky top-0 z-10", a === "page" && "sticky top-[var(--content-sticky-top,0px)] z-9"),
193
+ children: e.getHeaderGroups().map((o) => /* @__PURE__ */ t(B, { children: o.headers.map((l) => /* @__PURE__ */ t(Qe, { header: l }, l.id)) }, o.id))
194
+ })
195
+ });
251
196
  }
252
- function je({
253
- header: e
254
- }) {
255
- const a = g.useContext(_), i = g.useSyncExternalStore(
256
- a ? a.subscribe : L,
257
- () => a ? a.get(e.column.id)?.displayed ?? null : null,
258
- // Server render: no header has published yet — fall back to live state.
259
- () => null
260
- ), n = e.column.getCanSort(), o = n ? i ?? e.column.getIsSorted() : !1, s = o === "asc" ? "ascending" : o === "desc" ? "descending" : n ? "none" : void 0, l = e.column.columnDef.meta;
261
- return /* @__PURE__ */ t(
262
- Fe,
263
- {
264
- "aria-sort": s,
265
- colSpan: e.colSpan,
266
- minWidth: l?.minWidth,
267
- width: l?.width,
268
- children: e.isPlaceholder ? null : W(e.column.columnDef.header, e.getContext())
269
- }
270
- );
197
+ function Qe({ header: e }) {
198
+ const a = d.useContext(Z), s = d.useSyncExternalStore(a ? a.subscribe : Y, () => a ? a.get(e.column.id)?.displayed ?? null : null, () => null), o = e.column.getCanSort(), l = o ? s ?? e.column.getIsSorted() : !1, r = l === "asc" ? "ascending" : l === "desc" ? "descending" : o ? "none" : void 0, n = e.column.columnDef.meta;
199
+ return /* @__PURE__ */ t(Ee, {
200
+ "aria-sort": r,
201
+ className: n?.pinned === "left" ? We : void 0,
202
+ colSpan: e.colSpan,
203
+ "data-pinned": n?.pinned === "left" ? "left" : void 0,
204
+ minWidth: n?.minWidth,
205
+ width: n?.width,
206
+ children: e.isPlaceholder ? null : ie(e.column.columnDef.header, e.getContext())
207
+ });
271
208
  }
272
- function ee({
273
- row: e,
274
- columnCount: a,
275
- getRowClassName: i,
276
- renderExpandedContent: n
277
- }) {
278
- const o = e.getCanExpand(), s = e.getIsExpanded(), l = n && o && s ? n(e) : null;
279
- return /* @__PURE__ */ y(N, { children: [
280
- /* @__PURE__ */ t(
281
- P,
282
- {
283
- className: h(
284
- // Rows have no hover of their own — the chevron/action buttons are
285
- // the interactive elements. Ghost buttons (the only bg-transparent
286
- // variant) get bg-secondary on hover because their default
287
- // hover:bg-accent is invisible on bg-muted rows (accent equals
288
- // muted in light mode). Scoped to .bg-transparent so variant
289
- // buttons in cells (primary, destructive, …) keep their own hover.
290
- "[&_[data-slot=button].bg-transparent:hover]:bg-secondary",
291
- // Surfaces are mutually exclusive: an expanded parent shares the
292
- // table head's bg-muted at ANY depth; other expanded-zone rows
293
- // (sub-rows) get the lighter accent wash.
294
- o && s ? "bg-muted" : e.depth > 0 && "bg-accent/50",
295
- i?.(e)
296
- ),
297
- "data-depth": e.depth,
298
- "data-expanded": o ? String(s) : void 0,
299
- "data-state": e.getIsSelected() ? "selected" : void 0,
300
- children: e.getVisibleCells().map((c) => /* @__PURE__ */ t(R, { children: W(c.column.columnDef.cell, c.getContext()) }, c.id))
301
- }
302
- ),
303
- l != null && // No data-depth here: panels are not data rows, and sharing the
304
- // parent's depth would break depth-based selectors and counts.
305
- /* @__PURE__ */ t(
306
- P,
307
- {
308
- className: "bg-accent/50 [&_[data-slot=button].bg-transparent:hover]:bg-secondary",
309
- "data-slot": "data-table-expanded-row",
310
- children: /* @__PURE__ */ t(R, { colSpan: a, children: l })
311
- }
312
- )
313
- ] });
209
+ function ge({ row: e, columnCount: a, getRowClassName: s, renderExpandedContent: o }) {
210
+ const l = e.getCanExpand(), r = e.getIsExpanded(), n = o && l && r ? o(e) : null;
211
+ return /* @__PURE__ */ T($, { children: [/* @__PURE__ */ t(B, {
212
+ className: h("[&_[data-slot=button].bg-transparent:hover]:bg-secondary", l && r ? "bg-muted" : e.depth > 0 && "bg-accent/50", "data-[state=selected]:[--dt-row-bg:var(--muted)]", l && r ? "[--dt-row-bg:var(--muted)]" : e.depth > 0 && "[--dt-row-bg:color-mix(in_oklab,var(--accent)_50%,var(--background))]", s?.(e)),
213
+ "data-depth": e.depth,
214
+ "data-expanded": l ? String(r) : void 0,
215
+ "data-state": e.getIsSelected() ? "selected" : void 0,
216
+ children: e.getVisibleCells().map((c) => {
217
+ const u = c.column.columnDef.meta?.pinned === "left";
218
+ return /* @__PURE__ */ t(L, {
219
+ className: u ? Ue : void 0,
220
+ "data-pinned": u ? "left" : void 0,
221
+ groupStart: c.column.columnDef.meta?.groupStart,
222
+ children: ie(c.column.columnDef.cell, c.getContext())
223
+ }, c.id);
224
+ })
225
+ }), n != null && /* @__PURE__ */ t(B, {
226
+ className: "bg-accent/50 [&_[data-slot=button].bg-transparent:hover]:bg-secondary",
227
+ "data-slot": "data-table-expanded-row",
228
+ children: /* @__PURE__ */ t(L, {
229
+ colSpan: a,
230
+ children: n
231
+ })
232
+ })] });
314
233
  }
315
- function te({
316
- rowCount: e,
317
- colCount: a
318
- }) {
319
- return /* @__PURE__ */ t(N, { children: Array.from({ length: e }).map((i, n) => /* @__PURE__ */ t(P, { children: Array.from({ length: a }).map((o, s) => /* @__PURE__ */ t(R, { children: /* @__PURE__ */ t(j, { className: "h-4 w-full" }) }, `skeleton-${n}-${s}`)) }, `skeleton-${n}`)) });
234
+ function fe({ rowCount: e, colCount: a }) {
235
+ return /* @__PURE__ */ t($, { children: Array.from({ length: e }).map((s, o) => /* @__PURE__ */ t(B, { children: Array.from({ length: a }).map((l, r) => /* @__PURE__ */ t(L, { children: /* @__PURE__ */ t(X, { className: "h-4 w-full" }) }, `skeleton-${o}-${r}`)) }, `skeleton-${o}`)) });
320
236
  }
321
- function Le({
322
- table: e,
323
- dataHook: a,
324
- trackingEl: i,
325
- trackingLabel: n,
326
- isLoading: o = !1,
327
- refetching: s = !1,
328
- refetchingLabel: l,
329
- skeletonRowCount: c,
330
- noResultsMessage: u = "No results.",
331
- stickyHeader: r = !1,
332
- className: d,
333
- layout: b,
334
- minWidth: f,
335
- scrollRegionLabel: m,
336
- footer: v,
337
- getRowClassName: S,
338
- height: w,
339
- estimateSize: C = 48,
340
- overscan: k = 5
341
- }) {
342
- const p = e.getVisibleLeafColumns().length, x = c ?? e.getState().pagination.pageSize ?? 10, D = g.useRef(null), E = e.getRowModel().rows, A = Se({
237
+ function Ze({ table: e, dataHook: a, trackingEl: s, trackingLabel: o, size: l = "default", frame: r = "own", rowDividers: n = !1, isLoading: c = !1, refetching: u = !1, refetchingLabel: g, loadingLabel: i, skeletonRowCount: b, noResultsMessage: p, noResultsTitle: v, noResultsDescription: f, stickyHeader: m = !1, className: k, layout: x, minWidth: C, scrollRegionLabel: w, footer: A, getRowClassName: z, height: S, estimateSize: y, overscan: R = 5 }, H) {
238
+ const P = y ?? Ne[l], D = e.getVisibleLeafColumns().length, N = b ?? e.getState().pagination.pageSize ?? 20, M = d.useRef(null);
239
+ d.useImperativeHandle(H, () => M.current, []);
240
+ const E = e.getRowModel().rows, F = _e({
343
241
  count: E.length,
344
- getScrollElement: () => D.current,
345
- estimateSize: () => C,
346
- overscan: k
347
- }), T = A.getVirtualItems(), B = A.getTotalSize(), I = T.length > 0 ? T[0].start : 0, $ = T.length > 0 ? B - T[T.length - 1].end : 0;
348
- return /* @__PURE__ */ y(
349
- "div",
350
- {
351
- ref: D,
352
- className: h(
353
- // `scrollbar` themes the native scrollbar with DS colors (the
354
- // Command/Combobox treatment for bounded scroll containers).
355
- "border-border scrollbar relative overflow-auto rounded-md border",
356
- // Always a focusable scroll region: virtualization requires a
357
- // bounded viewport (height or a className bound), so this wrapper
358
- // always scrolls vertically and keyboard users need to reach it.
359
- "focus-visible:shadow-default outline-none",
360
- d
361
- ),
362
- "data-hook": a,
363
- "data-slot": "data-table-view",
364
- "data-tracking-el": i,
365
- "data-tracking-label": n,
366
- style: w != null ? { height: w } : void 0,
367
- ...Y(m),
368
- children: [
369
- /* @__PURE__ */ t("div", { "aria-live": "polite", className: "sr-only", role: "status", children: s ? l ?? "Loading results…" : null }),
370
- /* @__PURE__ */ t(H.Provider, { value: s, children: /* @__PURE__ */ y(
371
- Q,
372
- {
373
- "aria-busy": o || s || void 0,
374
- dataHook: `${a}-table`,
375
- layout: b,
376
- minWidth: f,
377
- scrollOwner: "parent",
378
- children: [
379
- /* @__PURE__ */ t(Z, { stickyHeader: r, table: e }),
380
- /* @__PURE__ */ t(X, { children: o ? /* @__PURE__ */ y(N, { children: [
381
- /* @__PURE__ */ t(
382
- te,
383
- {
384
- colCount: p,
385
- rowCount: x
386
- }
387
- ),
388
- /* @__PURE__ */ t(P, { className: "sr-only", children: /* @__PURE__ */ t(R, { colSpan: p, children: /* @__PURE__ */ t("div", { "aria-live": "polite", role: "status", children: "Loading data…" }) }) })
389
- ] }) : E.length > 0 ? /* @__PURE__ */ y(N, { children: [
390
- I > 0 && /* @__PURE__ */ t("tr", { "aria-hidden": "true", children: /* @__PURE__ */ t("td", { colSpan: p, style: { height: I } }) }),
391
- T.map((V) => {
392
- const M = E[V.index];
393
- return /* @__PURE__ */ t(
394
- ee,
395
- {
396
- columnCount: p,
397
- getRowClassName: S,
398
- row: M
399
- },
400
- M.id
401
- );
402
- }),
403
- $ > 0 && /* @__PURE__ */ t("tr", { "aria-hidden": "true", children: /* @__PURE__ */ t(
404
- "td",
405
- {
406
- colSpan: p,
407
- style: { height: $ }
408
- }
409
- ) })
410
- ] }) : /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(R, { align: "center", colSpan: p, size: "lg", children: /* @__PURE__ */ t("div", { "aria-live": "polite", className: "py-6", role: "status", children: u }) }) }) }),
411
- v
412
- ]
413
- }
414
- ) })
415
- ]
416
- }
417
- );
242
+ getScrollElement: () => M.current,
243
+ estimateSize: () => P,
244
+ overscan: R
245
+ }), I = F.getVirtualItems(), W = F.getTotalSize(), O = I.length > 0 ? I[0].start : 0, V = I.length > 0 ? W - I[I.length - 1].end : 0;
246
+ return /* @__PURE__ */ T("div", {
247
+ ref: M,
248
+ className: h("scrollbar relative overflow-auto", r === "own" && "border-border rounded-md border", "focus-visible:shadow-default outline-none", k),
249
+ "data-frame": r,
250
+ "data-hook": a,
251
+ "data-slot": "data-table-view",
252
+ "data-tracking-el": s,
253
+ "data-tracking-label": o,
254
+ style: S != null ? { height: S } : void 0,
255
+ ...oe(w),
256
+ children: [/* @__PURE__ */ t("div", {
257
+ "aria-live": "polite",
258
+ className: "sr-only",
259
+ role: "status",
260
+ children: u ? g ?? "Loading results…" : null
261
+ }), /* @__PURE__ */ t(q.Provider, {
262
+ value: u,
263
+ children: /* @__PURE__ */ T(le, {
264
+ "aria-busy": c || u || void 0,
265
+ dataHook: `${a}-table`,
266
+ frame: r,
267
+ layout: x,
268
+ minWidth: C,
269
+ rowDividers: n,
270
+ scrollOwner: "parent",
271
+ size: l,
272
+ children: [
273
+ /* @__PURE__ */ t(ue, {
274
+ sticky: m && "self",
275
+ table: e
276
+ }),
277
+ /* @__PURE__ */ t(re, { children: c ? /* @__PURE__ */ T($, { children: [/* @__PURE__ */ t(fe, {
278
+ colCount: D,
279
+ rowCount: N
280
+ }), /* @__PURE__ */ t(B, {
281
+ className: "sr-only",
282
+ children: /* @__PURE__ */ t(L, {
283
+ colSpan: D,
284
+ children: /* @__PURE__ */ t("div", {
285
+ "aria-live": "polite",
286
+ role: "status",
287
+ children: i ?? "Loading data…"
288
+ })
289
+ })
290
+ })] }) : E.length > 0 ? /* @__PURE__ */ T($, { children: [
291
+ O > 0 && /* @__PURE__ */ t("tr", {
292
+ "aria-hidden": "true",
293
+ children: /* @__PURE__ */ t("td", {
294
+ colSpan: D,
295
+ style: { height: O }
296
+ })
297
+ }),
298
+ I.map((U) => {
299
+ const j = E[U.index];
300
+ return /* @__PURE__ */ t(ge, {
301
+ columnCount: D,
302
+ getRowClassName: z,
303
+ row: j
304
+ }, j.id);
305
+ }),
306
+ V > 0 && /* @__PURE__ */ t("tr", {
307
+ "aria-hidden": "true",
308
+ children: /* @__PURE__ */ t("td", {
309
+ colSpan: D,
310
+ style: { height: V }
311
+ })
312
+ })
313
+ ] }) : /* @__PURE__ */ t(se, {
314
+ colSpan: D,
315
+ children: p ?? /* @__PURE__ */ t(de, {
316
+ dataHook: a,
317
+ description: f,
318
+ table: e,
319
+ title: v
320
+ })
321
+ }) }),
322
+ A
323
+ ]
324
+ })
325
+ })]
326
+ });
418
327
  }
419
- Le.displayName = "VirtualizedDataTable";
420
- function Oe({
421
- column: e,
422
- title: a,
423
- className: i,
424
- dataHook: n,
425
- trackingEl: o,
426
- trackingLabel: s,
427
- align: l = "left",
428
- getSortLabel: c,
429
- loading: u = !1
430
- }) {
431
- const r = e.getIsSorted(), d = g.useContext(_), b = g.useSyncExternalStore(
432
- d ? d.subscribe : L,
433
- () => d ? d.get(e.id)?.displayed ?? null : null,
434
- () => null
435
- ), [f, m] = g.useState(r);
436
- !d && !u && f !== r && m(r);
437
- const S = u ? d ? b ?? r : f : r, w = S !== r, C = g.useSyncExternalStore(
438
- d ? d.subscribe : L,
439
- () => d ? d.anyHeld() : !1,
440
- () => !1
441
- ), p = u && (w || !(d ? C : w) && r !== !1);
442
- if (g.useLayoutEffect(() => {
443
- if (d)
444
- return d.set(e.id, {
445
- displayed: S,
446
- live: r
328
+ var et = d.forwardRef(Ze);
329
+ et.displayName = "VirtualizedDataTable";
330
+ function tt({ column: e, title: a, className: s, dataHook: o, trackingEl: l, trackingLabel: r, align: n = "left", getSortLabel: c, loading: u = !1 }) {
331
+ const g = e.getIsSorted(), i = d.useContext(Z), b = d.useSyncExternalStore(i ? i.subscribe : Y, () => i ? i.get(e.id)?.displayed ?? null : null, () => null), [p, v] = d.useState(g);
332
+ !i && !u && p !== g && v(g);
333
+ const f = u ? i ? b ?? g : p : g, m = f !== g, k = d.useSyncExternalStore(i ? i.subscribe : Y, () => i ? i.anyHeld() : !1, () => !1), x = u && (m || !(i ? k : m) && g !== !1);
334
+ if (d.useLayoutEffect(() => {
335
+ if (i)
336
+ return i.set(e.id, {
337
+ displayed: f,
338
+ live: g
447
339
  }), () => {
448
- d.set(e.id, null);
340
+ i.set(e.id, null);
449
341
  };
450
- }, [d, e.id, S, r]), !e.getCanSort())
451
- return /* @__PURE__ */ t(
452
- "div",
453
- {
454
- className: h(
455
- "text-muted-foreground text-label text-left font-semibold",
456
- l === "right" && "text-right",
457
- l === "center" && "text-center",
458
- i
459
- ),
460
- "data-hook": n,
461
- "data-slot": "data-table-column-header",
462
- "data-tracking-el": o,
463
- "data-tracking-label": s,
342
+ }, [
343
+ i,
344
+ e.id,
345
+ f,
346
+ g
347
+ ]), !e.getCanSort()) return /* @__PURE__ */ t("div", {
348
+ className: h("text-muted-foreground text-label text-left font-semibold", n === "right" && "text-right", n === "center" && "text-center", s),
349
+ "data-hook": o,
350
+ "data-slot": "data-table-column-header",
351
+ "data-tracking-el": l,
352
+ "data-tracking-label": r,
353
+ children: a
354
+ });
355
+ const C = g === !1 ? e.columnDef.sortDescFirst === !0 : g === "asc", w = c ? c(a, f) : f === "desc" ? `Sort by ${a}, currently descending` : f === "asc" ? `Sort by ${a}, currently ascending` : `Sort by ${a}`;
356
+ return /* @__PURE__ */ t("div", {
357
+ className: h("flex items-center", n === "right" && "justify-end", n === "center" && "justify-center", s),
358
+ "data-slot": "data-table-column-header",
359
+ "data-tracking-el": l,
360
+ "data-tracking-label": r,
361
+ children: /* @__PURE__ */ T(te, {
362
+ "aria-busy": u ? "true" : void 0,
363
+ "aria-label": w,
364
+ className: "text-muted-foreground text-label h-auto p-0 font-semibold",
365
+ dataHook: o || `column-header-${e.id}`,
366
+ size: "sm",
367
+ variant: "ghost",
368
+ onClick: () => {
369
+ u || e.toggleSorting(C);
370
+ },
371
+ children: [/* @__PURE__ */ t("span", {
372
+ "aria-hidden": "true",
464
373
  children: a
465
- }
466
- );
467
- const x = r === !1 ? e.columnDef.sortDescFirst === !0 : r === "asc", D = c ? c(a, S) : S === "desc" ? `Sort by ${a}, currently descending` : S === "asc" ? `Sort by ${a}, currently ascending` : `Sort by ${a}`;
468
- return /* @__PURE__ */ t(
469
- "div",
470
- {
471
- className: h(
472
- "flex items-center",
473
- l === "right" && "justify-end",
474
- l === "center" && "justify-center",
475
- i
476
- ),
477
- "data-slot": "data-table-column-header",
478
- "data-tracking-el": o,
479
- "data-tracking-label": s,
480
- children: /* @__PURE__ */ y(
481
- q,
482
- {
483
- "aria-busy": u ? "true" : void 0,
484
- "aria-label": D,
485
- className: "text-muted-foreground text-label h-auto p-0 font-semibold",
486
- dataHook: n || `column-header-${e.id}`,
487
- size: "sm",
488
- variant: "ghost",
489
- onClick: () => {
490
- u || e.toggleSorting(x);
491
- },
492
- children: [
493
- /* @__PURE__ */ t("span", { "aria-hidden": "true", children: a }),
494
- /* @__PURE__ */ t(
495
- "span",
496
- {
497
- "aria-hidden": "true",
498
- className: "flex size-3 items-center justify-center",
499
- children: p ? /* @__PURE__ */ t(K, { size: "sm" }) : S === "desc" ? /* @__PURE__ */ t(xe, { size: 12 }) : S === "asc" ? /* @__PURE__ */ t(ve, { size: 12 }) : /* @__PURE__ */ t(we, { size: 12 })
500
- }
501
- )
502
- ]
503
- }
504
- )
505
- }
506
- );
374
+ }), /* @__PURE__ */ t("span", {
375
+ "aria-hidden": "true",
376
+ className: "flex size-3 items-center justify-center",
377
+ children: x ? /* @__PURE__ */ t(ne, { size: "sm" }) : f === "desc" ? /* @__PURE__ */ t(ze, { size: 12 }) : f === "asc" ? /* @__PURE__ */ t(Me, { size: 12 }) : /* @__PURE__ */ t(Fe, { size: 12 })
378
+ })]
379
+ })
380
+ });
507
381
  }
508
- Oe.displayName = "DataTableColumnHeader";
509
- function Ge({
510
- table: e,
511
- ariaLabel: a,
512
- placeholder: i,
513
- clearSearchAriaLabel: n,
514
- loading: o = !1,
515
- debounceMs: s,
516
- ...l
517
- }) {
518
- const c = e.getState().globalFilter ?? "", [u, r] = g.useState(c), d = s ?? (e.options.manualFiltering === !0 ? 300 : 0), b = g.useRef(null), f = g.useCallback(() => {
519
- b.current !== null && (clearTimeout(b.current), b.current = null);
382
+ tt.displayName = "DataTableColumnHeader";
383
+ var at = d.forwardRef(function({ table: a, ariaLabel: s, placeholder: o, clearSearchAriaLabel: l, disabled: r = !1, loading: n = !1, debounceMs: c, ...u }, g) {
384
+ const i = a.getState().globalFilter ?? "", [b, p] = d.useState(i), v = c ?? (a.options.manualFiltering === !0 ? 300 : 0), f = d.useRef(null), m = d.useCallback(() => {
385
+ f.current !== null && (clearTimeout(f.current), f.current = null);
520
386
  }, []);
521
- g.useEffect(() => f, [f]);
522
- const m = g.useRef(u);
523
- g.useEffect(() => {
524
- m.current = u;
387
+ d.useEffect(() => m, [m]), d.useEffect(() => {
388
+ r && m();
389
+ }, [r, m]);
390
+ const k = d.useRef(b);
391
+ d.useEffect(() => {
392
+ k.current = b;
525
393
  });
526
- const [v, S] = g.useState({ filter: c, pushed: [] }), w = (p) => {
527
- (e.getState().globalFilter ?? "") !== p && (S((x) => ({
528
- filter: x.filter,
529
- pushed: [...x.pushed, p].slice(-10)
530
- })), e.setGlobalFilter(p));
531
- }, C = (p) => {
532
- f(), d > 0 ? b.current = setTimeout(() => {
533
- b.current = null, m.current === p && w(p);
534
- }, d) : w(p);
394
+ const [x, C] = d.useState({
395
+ filter: i,
396
+ pushed: []
397
+ }), w = (S) => {
398
+ (a.getState().globalFilter ?? "") !== S && (C((y) => ({
399
+ filter: y.filter,
400
+ pushed: [...y.pushed, S].slice(-10)
401
+ })), a.setGlobalFilter(S));
402
+ }, A = (S) => {
403
+ m(), v > 0 ? f.current = setTimeout(() => {
404
+ f.current = null, k.current === S && w(S);
405
+ }, v) : w(S);
535
406
  };
536
- if (c !== v.filter) {
537
- const p = v.pushed.lastIndexOf(c), x = p !== -1;
538
- S({
539
- filter: c,
540
- pushed: x ? v.pushed.slice(p + 1) : v.pushed
541
- }), !x && c !== u && r(c);
407
+ if (i !== x.filter) {
408
+ const S = x.pushed.lastIndexOf(i), y = S !== -1;
409
+ C({
410
+ filter: i,
411
+ pushed: y ? x.pushed.slice(S + 1) : x.pushed
412
+ }), !y && i !== b && p(i);
542
413
  }
543
- const k = () => {
544
- f(), r(""), w("");
414
+ const z = () => {
415
+ m(), p(""), w("");
545
416
  };
546
- return /* @__PURE__ */ y(
547
- ke,
548
- {
549
- "aria-busy": o ? "true" : void 0,
550
- "data-slot": "data-table-search",
551
- ...l,
552
- children: [
553
- /* @__PURE__ */ t(Te, { className: "pl-3", children: o ? /* @__PURE__ */ t(K, { dataHook: `${l.dataHook}-loading` }) : /* @__PURE__ */ t(ye, {}) }),
554
- /* @__PURE__ */ t(
555
- Pe,
556
- {
557
- "aria-label": a ?? "Search table",
558
- placeholder: i ?? "Search...",
559
- type: "text",
560
- value: u,
561
- onChange: (p) => {
562
- const x = p.target.value;
563
- r(x), C(x);
564
- }
565
- }
566
- ),
567
- /* @__PURE__ */ t(
568
- Re,
569
- {
570
- clearSearchAriaLabel: n,
571
- "data-slot": "data-table-search-clear",
572
- dataHook: `${l.dataHook}-clear`,
573
- onClear: d > 0 ? k : void 0
574
- }
575
- )
576
- ]
577
- }
578
- );
579
- }
580
- Ge.displayName = "DataTableSearch";
581
- function _e(e) {
582
- const { pageIndex: a, pageSize: i } = e.getState().pagination, n = e.getRowCount(), o = e.getPageCount(), s = e.getCanPreviousPage(), l = e.getCanNextPage(), c = a + 1, u = n === 0 ? 0 : a * i + 1, r = Math.min(c * i, n), d = g.useCallback(
583
- (v) => e.setPageIndex(v - 1),
584
- [e]
585
- ), b = g.useCallback(() => e.nextPage(), [e]), f = g.useCallback(() => e.previousPage(), [e]), m = g.useCallback(
586
- (v) => e.setPageSize(v),
587
- [e]
588
- );
589
- return g.useMemo(
590
- () => ({
591
- pageIndex: a,
592
- pageSize: i,
593
- totalRows: n,
594
- totalPages: o,
595
- startRow: u,
596
- endRow: r,
597
- currentPage: c,
598
- canPrev: s,
599
- canNext: l,
600
- goToPage: d,
601
- nextPage: b,
602
- previousPage: f,
603
- setPageSize: m
604
- }),
605
- [
606
- a,
607
- i,
608
- n,
609
- o,
610
- u,
611
- r,
612
- c,
613
- s,
614
- l,
615
- d,
616
- b,
617
- f,
618
- m
417
+ return /* @__PURE__ */ T(me, {
418
+ "aria-busy": n ? "true" : void 0,
419
+ "data-slot": "data-table-search",
420
+ ...u,
421
+ children: [
422
+ /* @__PURE__ */ t(he, {
423
+ className: "pl-3",
424
+ children: n ? /* @__PURE__ */ t(ne, { dataHook: `${u.dataHook}-loading` }) : /* @__PURE__ */ t($e, {})
425
+ }),
426
+ /* @__PURE__ */ t(Se, {
427
+ ref: g,
428
+ "aria-label": s ?? "Search table",
429
+ disabled: r,
430
+ placeholder: o ?? "Search...",
431
+ type: "text",
432
+ value: b,
433
+ onChange: (S) => {
434
+ const y = S.target.value;
435
+ p(y), A(y);
436
+ }
437
+ }),
438
+ /* @__PURE__ */ t(ve, {
439
+ clearSearchAriaLabel: l,
440
+ "data-slot": "data-table-search-clear",
441
+ dataHook: `${u.dataHook}-clear`,
442
+ onClear: v > 0 ? z : void 0
443
+ })
619
444
  ]
620
- );
445
+ });
446
+ });
447
+ at.displayName = "DataTableSearch";
448
+ function nt(e) {
449
+ const { pageIndex: a, pageSize: s } = e.getState().pagination, o = e.getRowCount(), l = e.getPageCount(), r = e.getCanPreviousPage(), n = e.getCanNextPage(), c = a + 1, u = o === 0 ? 0 : a * s + 1, g = Math.min(c * s, o), i = d.useCallback((f) => e.setPageIndex(f - 1), [e]), b = d.useCallback(() => e.nextPage(), [e]), p = d.useCallback(() => e.previousPage(), [e]), v = d.useCallback((f) => e.setPageSize(f), [e]);
450
+ return d.useMemo(() => ({
451
+ pageIndex: a,
452
+ pageSize: s,
453
+ totalRows: o,
454
+ totalPages: l,
455
+ startRow: u,
456
+ endRow: g,
457
+ currentPage: c,
458
+ canPrev: r,
459
+ canNext: n,
460
+ goToPage: i,
461
+ nextPage: b,
462
+ previousPage: p,
463
+ setPageSize: v
464
+ }), [
465
+ a,
466
+ s,
467
+ o,
468
+ l,
469
+ u,
470
+ g,
471
+ c,
472
+ r,
473
+ n,
474
+ i,
475
+ b,
476
+ p,
477
+ v
478
+ ]);
621
479
  }
622
- const O = g.createContext(null);
623
- function ae() {
624
- const e = g.useContext(O);
625
- if (!e)
626
- throw new Error(
627
- "DataTablePagination sub-components must be used within <DataTablePagination>"
628
- );
480
+ var J = d.createContext(null);
481
+ function pe() {
482
+ const e = d.useContext(J);
483
+ if (!e) throw new Error("DataTablePagination sub-components must be used within <DataTablePagination>");
629
484
  return e;
630
485
  }
631
- function Ue({
632
- renderText: e,
633
- className: a
634
- }) {
635
- const { info: i } = ae(), n = G("sm"), { startRow: o, endRow: s, totalRows: l, pageIndex: c, pageSize: u } = i;
636
- if (n) return null;
637
- const r = e ? e({ startRow: o, endRow: s, totalRows: l, pageIndex: c, pageSize: u }) : l === 0 ? null : `${o}-${s} of ${l}`;
638
- return r == null ? null : /* @__PURE__ */ t(
639
- "span",
640
- {
641
- className: h(
642
- "text-body-sm text-muted-foreground whitespace-nowrap",
643
- a
644
- ),
486
+ function K({ label: e, labelOne: a, emptyLabel: s, renderText: o, dataHook: l, className: r }) {
487
+ const { info: n, dataHook: c } = pe(), u = Q("sm"), { startRow: g, endRow: i, totalRows: b, pageIndex: p, pageSize: v } = n;
488
+ if (u) return null;
489
+ if (o) {
490
+ const f = o({
491
+ startRow: g,
492
+ endRow: i,
493
+ totalRows: b,
494
+ pageIndex: p,
495
+ pageSize: v
496
+ });
497
+ return f == null ? null : /* @__PURE__ */ t("span", {
498
+ className: h("text-body-sm text-muted-foreground whitespace-nowrap", r),
499
+ "data-hook": l ?? `${c}-row-count`,
645
500
  "data-slot": "data-table-pagination-row-count",
646
- children: r
647
- }
648
- );
501
+ children: f
502
+ });
503
+ }
504
+ return /* @__PURE__ */ t(xe, {
505
+ className: h("whitespace-nowrap", r),
506
+ dataHook: l ?? `${c}-row-count`,
507
+ emptyLabel: s,
508
+ from: g,
509
+ rangeLabel: e,
510
+ rangeLabelOne: a,
511
+ to: i,
512
+ total: b
513
+ });
649
514
  }
650
- Ue.displayName = "DataTablePaginationRowCount";
651
- function ne({
652
- ariaLabel: e = "Table pagination",
653
- dataHook: a,
654
- className: i
655
- }) {
656
- const { info: n } = ae(), o = G("sm"), s = De({
657
- page: n.currentPage,
658
- totalPages: n.totalPages
515
+ K.displayName = "DataTablePaginationRowCount";
516
+ function be({ ariaLabel: e = "Table pagination", dataHook: a, className: s }) {
517
+ const { info: o } = pe(), l = Q("sm"), r = Pe({
518
+ page: o.currentPage,
519
+ totalPages: o.totalPages
520
+ });
521
+ return o.totalPages <= 1 ? null : /* @__PURE__ */ t(we, {
522
+ ariaLabel: e,
523
+ className: h(!l && "mx-0 w-auto justify-end", s),
524
+ dataHook: a ?? "pagination-nav",
525
+ children: /* @__PURE__ */ t(Ce, { children: r.map((n, c) => n === "previous" ? /* @__PURE__ */ t(G, { children: /* @__PURE__ */ t(De, {
526
+ disabled: !o.canPrev,
527
+ onClick: () => o.previousPage()
528
+ }) }, "previous") : n === "next" ? /* @__PURE__ */ t(G, { children: /* @__PURE__ */ t(Te, {
529
+ disabled: !o.canNext,
530
+ onClick: () => o.nextPage()
531
+ }) }, "next") : n === "ellipsis" ? /* @__PURE__ */ t(G, { children: /* @__PURE__ */ t(ye, {}) }, `ellipsis-${c}`) : /* @__PURE__ */ t(G, { children: /* @__PURE__ */ t(ke, {
532
+ isActive: n === o.currentPage,
533
+ page: n,
534
+ onClick: () => o.goToPage(n)
535
+ }) }, n)) })
659
536
  });
660
- return n.totalPages <= 1 ? null : /* @__PURE__ */ t(
661
- Ne,
662
- {
663
- ariaLabel: e,
664
- className: h(!o && "mx-0 w-auto justify-end", i),
665
- dataHook: a ?? "pagination-nav",
666
- children: /* @__PURE__ */ t(Ee, { children: s.map((l, c) => l === "previous" ? /* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(
667
- ze,
668
- {
669
- disabled: !n.canPrev,
670
- onClick: () => n.previousPage()
671
- }
672
- ) }, "previous") : l === "next" ? /* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(
673
- Ae,
674
- {
675
- disabled: !n.canNext,
676
- onClick: () => n.nextPage()
677
- }
678
- ) }, "next") : l === "ellipsis" ? /* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(Ie, {}) }, `ellipsis-${c}`) : /* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(
679
- $e,
680
- {
681
- isActive: l === n.currentPage,
682
- page: l,
683
- onClick: () => n.goToPage(l)
684
- }
685
- ) }, l)) })
686
- }
687
- );
688
537
  }
689
- ne.displayName = "DataTablePaginationNav";
690
- function We({
691
- table: e,
692
- dataHook: a,
693
- showRowCount: i = !0,
694
- renderRowCount: n,
695
- trackingEl: o,
696
- trackingLabel: s,
697
- className: l,
698
- ariaLabel: c = "Table pagination",
699
- children: u
700
- }) {
701
- const r = _e(e), d = G("sm"), b = g.useMemo(
702
- () => ({ info: r }),
703
- [r]
704
- ), f = {
538
+ be.displayName = "DataTablePaginationNav";
539
+ function ot({ table: e, dataHook: a, showRowCount: s = !0, rowCountLabel: o, rowCountLabelOne: l, rowCountEmptyLabel: r, renderRowCount: n, trackingEl: c, trackingLabel: u, className: g, ariaLabel: i = "Table pagination", children: b }) {
540
+ const p = nt(e), v = Q("sm"), f = d.useMemo(() => ({
541
+ info: p,
542
+ dataHook: a
543
+ }), [p, a]), m = {
705
544
  "data-hook": a,
706
545
  "data-slot": "data-table-pagination",
707
- "data-tracking-el": o,
708
- "data-tracking-label": s
546
+ "data-tracking-el": c,
547
+ "data-tracking-label": u
709
548
  };
710
- if (u)
711
- return /* @__PURE__ */ t(O.Provider, { value: b, children: /* @__PURE__ */ t(
712
- "div",
713
- {
714
- className: h(
715
- "flex w-full flex-wrap items-center gap-x-4 gap-y-2",
716
- l
717
- ),
718
- ...f,
719
- children: u
720
- }
721
- ) });
722
- const m = d || !i || n === null ? null : n ? n({
723
- startRow: r.startRow,
724
- endRow: r.endRow,
725
- totalRows: r.totalRows,
726
- pageIndex: r.pageIndex,
727
- pageSize: r.pageSize
728
- }) : r.totalRows === 0 ? null : `${r.startRow}-${r.endRow} of ${r.totalRows}`;
729
- return m == null && r.totalPages <= 1 ? null : /* @__PURE__ */ t(O.Provider, { value: b, children: /* @__PURE__ */ y(
730
- "div",
731
- {
732
- className: h(
733
- "flex min-h-9 w-full flex-wrap items-center gap-x-4 gap-y-2",
734
- m != null ? "justify-between" : "justify-end",
735
- l
736
- ),
737
- ...f,
738
- children: [
739
- m != null && /* @__PURE__ */ t("span", { className: "text-body-sm text-muted-foreground whitespace-nowrap", children: m }),
740
- /* @__PURE__ */ t(
741
- ne,
742
- {
743
- ariaLabel: c,
744
- className: "grow",
745
- dataHook: `${a}-nav`
746
- }
747
- )
748
- ]
749
- }
750
- ) });
549
+ if (b) return /* @__PURE__ */ t(J.Provider, {
550
+ value: f,
551
+ children: /* @__PURE__ */ t("div", {
552
+ className: h("flex w-full flex-wrap items-center gap-x-4 gap-y-2", g),
553
+ ...m,
554
+ children: b
555
+ })
556
+ });
557
+ const k = n && s && !v ? n({
558
+ startRow: p.startRow,
559
+ endRow: p.endRow,
560
+ totalRows: p.totalRows,
561
+ pageIndex: p.pageIndex,
562
+ pageSize: p.pageSize
563
+ }) : null, x = !v && s && n !== null && (n ? k != null : !0), C = x && (!!n || p.totalRows > 0), w = p.totalPages > 1;
564
+ return !x && !w ? null : /* @__PURE__ */ t(J.Provider, {
565
+ value: f,
566
+ children: /* @__PURE__ */ T("div", {
567
+ className: h("flex w-full flex-wrap items-center gap-x-4 gap-y-2", (C || w) && "min-h-9", C ? "justify-between" : "justify-end", g),
568
+ ...m,
569
+ children: [x && (n ? /* @__PURE__ */ t(K, { renderText: () => k }) : /* @__PURE__ */ t(K, {
570
+ emptyLabel: r,
571
+ label: o,
572
+ labelOne: l
573
+ })), /* @__PURE__ */ t(be, {
574
+ ariaLabel: i,
575
+ className: "grow",
576
+ dataHook: `${a}-nav`
577
+ })]
578
+ })
579
+ });
751
580
  }
752
- We.displayName = "DataTablePagination";
753
- function qe({
754
- table: e,
755
- dataHook: a,
756
- trackingEl: i,
757
- trackingLabel: n,
758
- selectAllAriaLabel: o
759
- }) {
760
- const s = g.useContext(H);
761
- return /* @__PURE__ */ t(
762
- J,
763
- {
764
- "aria-disabled": s || void 0,
765
- "aria-label": o ?? "Select all",
766
- checked: e.getIsAllPageRowsSelected() || e.getIsSomePageRowsSelected() && "indeterminate",
767
- dataHook: a || "select-all-checkbox",
768
- trackingEl: i,
769
- trackingLabel: n,
770
- onCheckedChange: (l) => {
771
- s || e.toggleAllPageRowsSelected(!!l);
772
- }
581
+ ot.displayName = "DataTablePagination";
582
+ function lt({ table: e, dataHook: a, trackingEl: s, trackingLabel: o, selectAllAriaLabel: l }) {
583
+ const r = d.useContext(q);
584
+ return /* @__PURE__ */ t(ae, {
585
+ "aria-disabled": r || void 0,
586
+ "aria-label": l ?? "Select all",
587
+ checked: e.getIsAllPageRowsSelected(),
588
+ dataHook: a || "select-all-checkbox",
589
+ trackingEl: s,
590
+ trackingLabel: o,
591
+ onCheckedChange: (n) => {
592
+ r || e.toggleAllPageRowsSelected(!!n);
773
593
  }
774
- );
594
+ });
775
595
  }
776
- qe.displayName = "DataTableSelectAllCheckbox";
777
- function Je({
778
- row: e,
779
- dataHook: a,
780
- trackingEl: i,
781
- trackingLabel: n,
782
- selectRowAriaLabel: o
783
- }) {
784
- const s = g.useContext(H);
785
- return /* @__PURE__ */ t(
786
- J,
787
- {
788
- "aria-disabled": s || void 0,
789
- "aria-label": o ?? "Select row",
790
- checked: e.getIsSelected(),
791
- dataHook: a || `select-row-${e.id}`,
792
- disabled: !e.getCanSelect(),
793
- trackingEl: i,
794
- trackingLabel: n,
795
- onCheckedChange: (l) => {
796
- s || e.toggleSelected(!!l);
797
- }
596
+ lt.displayName = "DataTableSelectAllCheckbox";
597
+ function rt({ row: e, dataHook: a, trackingEl: s, trackingLabel: o, selectRowAriaLabel: l }) {
598
+ const r = d.useContext(q);
599
+ return /* @__PURE__ */ t(ae, {
600
+ "aria-disabled": r || void 0,
601
+ "aria-label": l ?? "Select row",
602
+ checked: e.getIsSelected(),
603
+ dataHook: a || `select-row-${e.id}`,
604
+ disabled: !e.getCanSelect(),
605
+ trackingEl: s,
606
+ trackingLabel: o,
607
+ onCheckedChange: (n) => {
608
+ r || e.toggleSelected(!!n);
798
609
  }
799
- );
610
+ });
800
611
  }
801
- Je.displayName = "DataTableSelectRowCheckbox";
802
- function Ke({
803
- row: e,
804
- rowName: a,
805
- dataHook: i,
806
- trackingEl: n,
807
- trackingLabel: o,
808
- expandLabel: s,
809
- collapseLabel: l,
810
- className: c
811
- }) {
812
- if (!e.getCanExpand())
813
- return /* @__PURE__ */ t(
814
- "span",
815
- {
816
- "aria-hidden": "true",
817
- className: h("inline-block size-9", c),
818
- "data-slot": "data-table-expand-row-spacer"
819
- }
820
- );
821
- const u = e.getIsExpanded(), r = u ? l : s;
822
- let d;
823
- return r && (a !== void 0 || !r.includes("{name}")) ? d = r.replaceAll("{name}", a ?? "") : a !== void 0 ? d = u ? `Collapse details for ${a}` : `Expand details for ${a}` : d = u ? "Collapse row" : "Expand row", /* @__PURE__ */ t(
824
- q,
825
- {
826
- iconOnly: !0,
827
- "aria-expanded": u,
828
- "aria-label": d,
829
- className: c,
830
- "data-state": u ? "open" : "closed",
831
- dataHook: i || `expand-row-${e.id}`,
832
- size: "sm",
833
- trackingEl: n,
834
- trackingLabel: o,
835
- variant: "ghost",
836
- onClick: e.getToggleExpandedHandler(),
837
- children: /* @__PURE__ */ t(
838
- Ce,
839
- {
840
- "aria-hidden": "true",
841
- className: h(
842
- "duration-base transition-transform ease-in-out",
843
- u && "rotate-90"
844
- )
845
- }
846
- )
847
- }
848
- );
612
+ rt.displayName = "DataTableSelectRowCheckbox";
613
+ function st({ row: e, rowName: a, dataHook: s, trackingEl: o, trackingLabel: l, expandLabel: r, collapseLabel: n, className: c }) {
614
+ if (!e.getCanExpand()) return /* @__PURE__ */ t("span", {
615
+ "aria-hidden": "true",
616
+ className: h("inline-block size-9", c),
617
+ "data-slot": "data-table-expand-row-spacer"
618
+ });
619
+ const u = e.getIsExpanded(), g = u ? n : r;
620
+ let i;
621
+ return g && (a !== void 0 || !g.includes("{name}")) ? i = g.replaceAll("{name}", a ?? "") : a !== void 0 ? i = u ? `Collapse details for ${a}` : `Expand details for ${a}` : i = u ? "Collapse row" : "Expand row", /* @__PURE__ */ t(te, {
622
+ iconOnly: !0,
623
+ "aria-expanded": u,
624
+ "aria-label": i,
625
+ className: c,
626
+ "data-state": u ? "open" : "closed",
627
+ dataHook: s || `expand-row-${e.id}`,
628
+ size: "sm",
629
+ trackingEl: o,
630
+ trackingLabel: l,
631
+ variant: "ghost",
632
+ onClick: e.getToggleExpandedHandler(),
633
+ children: /* @__PURE__ */ t(Be, {
634
+ "aria-hidden": "true",
635
+ className: h("duration-base transition-transform ease-in-out", u && "rotate-90")
636
+ })
637
+ });
849
638
  }
850
- Ke.displayName = "DataTableExpandRowButton";
851
- function Qe({
852
- fields: e = 3,
853
- loadingLabel: a,
854
- dataHook: i,
855
- className: n
856
- }) {
857
- return /* @__PURE__ */ y(
858
- "div",
859
- {
860
- className: h("relative flex flex-col gap-2 py-1", n),
861
- "data-hook": i || "data-table-expanded-skeleton",
862
- "data-slot": "data-table-expanded-skeleton",
863
- role: "status",
864
- children: [
865
- /* @__PURE__ */ t("span", { className: "sr-only", children: a ?? "Loading details" }),
866
- Array.from({ length: e }, (o, s) => /* @__PURE__ */ y("div", { "aria-hidden": "true", className: "flex items-center gap-4", children: [
867
- /* @__PURE__ */ t(j, { className: "h-4 w-24 shrink-0" }),
868
- /* @__PURE__ */ t(j, { className: "h-4 w-48 max-w-full" })
869
- ] }, s))
870
- ]
871
- }
872
- );
639
+ st.displayName = "DataTableExpandRowButton";
640
+ function it({ fields: e = 3, loadingLabel: a, dataHook: s, className: o }) {
641
+ return /* @__PURE__ */ T("div", {
642
+ className: h("relative flex flex-col gap-2 py-1", o),
643
+ "data-hook": s || "data-table-expanded-skeleton",
644
+ "data-slot": "data-table-expanded-skeleton",
645
+ role: "status",
646
+ children: [/* @__PURE__ */ t("span", {
647
+ className: "sr-only",
648
+ children: a ?? "Loading details"
649
+ }), Array.from({ length: e }, (l, r) => /* @__PURE__ */ T("div", {
650
+ "aria-hidden": "true",
651
+ className: "flex items-center gap-4",
652
+ children: [/* @__PURE__ */ t(X, { className: "h-4 w-24 shrink-0" }), /* @__PURE__ */ t(X, { className: "h-4 w-48 max-w-full" })]
653
+ }, r))]
654
+ });
873
655
  }
874
- Qe.displayName = "DataTableExpandedSkeleton";
875
- const U = g.createContext(null);
876
- function Xe() {
877
- const e = g.useContext(U);
878
- if (!e)
879
- throw new Error(
880
- "DataTableBulkActions components must be used within <DataTableBulkActions>"
881
- );
656
+ it.displayName = "DataTableExpandedSkeleton";
657
+ var ee = d.createContext(null);
658
+ function ct() {
659
+ const e = d.useContext(ee);
660
+ if (!e) throw new Error("DataTableBulkActions components must be used within <DataTableBulkActions>");
882
661
  return e;
883
662
  }
884
- function Ye({
885
- table: e,
886
- dataHook: a,
887
- trackingEl: i,
888
- trackingLabel: n,
889
- className: o,
890
- children: s,
891
- refetching: l = !1
892
- }) {
893
- const c = e.getFilteredSelectedRowModel().rows.length, u = e.getRowCount(), r = g.useMemo(
894
- () => ({ selectedCount: c, totalCount: u, refetching: l }),
895
- [c, u, l]
896
- );
897
- return c === 0 ? null : /* @__PURE__ */ t(U.Provider, { value: r, children: /* @__PURE__ */ t(
898
- "div",
899
- {
900
- "aria-busy": l || void 0,
901
- className: h("flex items-center gap-2.5", o),
663
+ function dt({ table: e, dataHook: a, trackingEl: s, trackingLabel: o, className: l, children: r, refetching: n = !1 }) {
664
+ const c = e.getFilteredSelectedRowModel().rows.length, u = e.getRowCount(), g = d.useMemo(() => ({
665
+ selectedCount: c,
666
+ totalCount: u,
667
+ refetching: n
668
+ }), [
669
+ c,
670
+ u,
671
+ n
672
+ ]);
673
+ return c === 0 ? null : /* @__PURE__ */ t(ee.Provider, {
674
+ value: g,
675
+ children: /* @__PURE__ */ t("div", {
676
+ "aria-busy": n || void 0,
677
+ className: h("flex items-center gap-2.5", l),
902
678
  "data-hook": a,
903
679
  "data-slot": "data-table-bulk-actions",
904
- "data-tracking-el": i ?? "data-table-bulk-actions",
905
- "data-tracking-label": n,
906
- children: s
907
- }
908
- ) });
680
+ "data-tracking-el": s ?? "data-table-bulk-actions",
681
+ "data-tracking-label": o,
682
+ children: r
683
+ })
684
+ });
909
685
  }
910
- Ye.displayName = "DataTableBulkActions";
911
- function Ze({
912
- dataHook: e = "data-table-bulk-actions-summary",
913
- className: a,
914
- children: i
915
- }) {
916
- const n = Xe(), { selectedCount: o, totalCount: s } = n;
917
- let l;
918
- return typeof i == "function" ? l = i(n) : i != null ? l = i : l = `${o} of ${s} row(s) selected.`, /* @__PURE__ */ t(
919
- He,
920
- {
921
- asChild: !0,
922
- className: h("min-w-0", a),
923
- dataHook: e,
924
- children: /* @__PURE__ */ t("span", { "data-slot": "data-table-bulk-actions-summary", role: "status", children: l })
925
- }
926
- );
686
+ dt.displayName = "DataTableBulkActions";
687
+ function ut({ dataHook: e = "data-table-bulk-actions-summary", className: a, children: s }) {
688
+ const o = ct(), { selectedCount: l, totalCount: r } = o;
689
+ let n;
690
+ return typeof s == "function" ? n = s(o) : s != null ? n = s : n = `${l} of ${r} row(s) selected.`, /* @__PURE__ */ t(Ae, {
691
+ asChild: !0,
692
+ className: h("min-w-0", a),
693
+ dataHook: e,
694
+ children: /* @__PURE__ */ t("span", {
695
+ "data-slot": "data-table-bulk-actions-summary",
696
+ role: "status",
697
+ children: n
698
+ })
699
+ });
927
700
  }
928
- Ze.displayName = "DataTableBulkActionsSummary";
929
- function et({
930
- dataHook: e = "data-table-bulk-actions-actions",
931
- className: a,
932
- children: i
933
- }) {
934
- const n = g.useContext(U)?.refetching ?? !1;
935
- return /* @__PURE__ */ t(
936
- "div",
937
- {
938
- className: h("flex shrink-0 items-center gap-2", a),
939
- "data-hook": e,
940
- "data-slot": "data-table-bulk-actions-actions",
941
- inert: n || void 0,
942
- children: i
943
- }
944
- );
701
+ ut.displayName = "DataTableBulkActionsSummary";
702
+ function gt({ dataHook: e = "data-table-bulk-actions-actions", className: a, children: s }) {
703
+ const o = d.useContext(ee)?.refetching ?? !1;
704
+ return /* @__PURE__ */ t("div", {
705
+ className: h("flex shrink-0 items-center gap-2", a),
706
+ "data-hook": e,
707
+ "data-slot": "data-table-bulk-actions-actions",
708
+ inert: o || void 0,
709
+ children: s
710
+ });
945
711
  }
946
- et.displayName = "DataTableBulkActionsActions";
947
- function tt({
948
- dataHook: e,
949
- className: a,
950
- children: i
951
- }) {
952
- return /* @__PURE__ */ t(
953
- "div",
954
- {
955
- className: h(
956
- "flex flex-col gap-3 py-4 sm:flex-row sm:items-center",
957
- a
958
- ),
959
- "data-hook": e,
960
- "data-slot": "data-table-toolbar",
961
- children: i
962
- }
963
- );
712
+ gt.displayName = "DataTableBulkActionsActions";
713
+ function ft({ dataHook: e, className: a, children: s }) {
714
+ return /* @__PURE__ */ t("div", {
715
+ className: h("flex flex-col gap-3 py-4 sm:flex-row sm:flex-wrap sm:items-center", a),
716
+ "data-hook": e,
717
+ "data-slot": "data-table-toolbar",
718
+ children: s
719
+ });
964
720
  }
965
- tt.displayName = "DataTableToolbar";
966
- function at({
967
- className: e,
968
- children: a
969
- }) {
970
- return /* @__PURE__ */ t(
971
- "div",
972
- {
973
- className: h(
974
- "flex w-full min-w-0 items-center gap-2 sm:w-auto sm:flex-1",
975
- e
976
- ),
977
- "data-slot": "data-table-toolbar-left",
978
- children: a
979
- }
980
- );
721
+ ft.displayName = "DataTableToolbar";
722
+ function pt({ className: e, children: a }) {
723
+ return /* @__PURE__ */ t("div", {
724
+ className: h("flex w-full min-w-0 items-center gap-2 sm:w-auto sm:flex-auto", e),
725
+ "data-slot": "data-table-toolbar-left",
726
+ children: a
727
+ });
981
728
  }
982
- at.displayName = "DataTableToolbarLeft";
983
- function nt({
984
- className: e,
985
- children: a
986
- }) {
987
- return /* @__PURE__ */ t(
988
- "div",
989
- {
990
- className: h(
991
- "flex w-full items-center justify-end gap-2 sm:w-auto",
992
- e
993
- ),
994
- "data-slot": "data-table-toolbar-right",
995
- children: a
996
- }
997
- );
729
+ pt.displayName = "DataTableToolbarLeft";
730
+ function bt({ className: e, children: a }) {
731
+ return /* @__PURE__ */ t("div", {
732
+ className: h("flex w-full items-center justify-end gap-2 sm:ml-auto sm:w-auto", e),
733
+ "data-slot": "data-table-toolbar-right",
734
+ children: a
735
+ });
998
736
  }
999
- nt.displayName = "DataTableToolbarRight";
737
+ bt.displayName = "DataTableToolbarRight";
1000
738
  export {
1001
- Be as DataTable,
1002
- Ye as DataTableBulkActions,
1003
- et as DataTableBulkActionsActions,
1004
- Ze as DataTableBulkActionsSummary,
1005
- Oe as DataTableColumnHeader,
1006
- Ke as DataTableExpandRowButton,
1007
- Qe as DataTableExpandedSkeleton,
1008
- We as DataTablePagination,
1009
- ne as DataTablePaginationNav,
1010
- Ue as DataTablePaginationRowCount,
1011
- Ge as DataTableSearch,
1012
- qe as DataTableSelectAllCheckbox,
1013
- Je as DataTableSelectRowCheckbox,
1014
- tt as DataTableToolbar,
1015
- at as DataTableToolbarLeft,
1016
- nt as DataTableToolbarRight,
1017
- Le as VirtualizedDataTable,
1018
- St as useDataTable,
1019
- Xe as useDataTableBulkActionsContext
739
+ Je as DataTable,
740
+ dt as DataTableBulkActions,
741
+ gt as DataTableBulkActionsActions,
742
+ ut as DataTableBulkActionsSummary,
743
+ tt as DataTableColumnHeader,
744
+ st as DataTableExpandRowButton,
745
+ it as DataTableExpandedSkeleton,
746
+ ot as DataTablePagination,
747
+ be as DataTablePaginationNav,
748
+ K as DataTablePaginationRowCount,
749
+ at as DataTableSearch,
750
+ lt as DataTableSelectAllCheckbox,
751
+ rt as DataTableSelectRowCheckbox,
752
+ ft as DataTableToolbar,
753
+ pt as DataTableToolbarLeft,
754
+ bt as DataTableToolbarRight,
755
+ et as VirtualizedDataTable,
756
+ Mt as useDataTable,
757
+ ct as useDataTableBulkActionsContext,
758
+ nt as useDataTablePagination
1020
759
  };