@aivenio/aquarium 2.1.2 → 2.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 (564) hide show
  1. package/dist/atoms.cjs +24 -10
  2. package/dist/atoms.mjs +24 -10
  3. package/dist/charts.cjs +3 -2
  4. package/dist/charts.mjs +3 -2
  5. package/dist/src/atoms/Alert/Alert.d.ts +8 -8
  6. package/dist/src/atoms/Alert/Alert.js +1 -1
  7. package/dist/src/atoms/Banner/Banner.d.ts +7 -7
  8. package/dist/src/atoms/Card/Card.d.ts +10 -10
  9. package/dist/src/atoms/Card/Card.js +1 -1
  10. package/dist/src/atoms/Checkbox/Checkbox.d.ts +6 -6
  11. package/dist/src/atoms/Chip/Chip.d.ts +3 -3
  12. package/dist/src/atoms/DataList/DataList.d.ts +11 -7
  13. package/dist/src/atoms/DataList/DataList.js +15 -4
  14. package/dist/src/atoms/Dialog/Dialog.d.ts +7 -9
  15. package/dist/src/atoms/Dialog/Dialog.js +1 -1
  16. package/dist/src/atoms/DropdownMenu/DropdownMenu.d.ts +13 -12
  17. package/dist/src/atoms/DropdownMenu/DropdownMenu.js +1 -1
  18. package/dist/src/atoms/InputGroup/InputGroup.d.ts +2 -2
  19. package/dist/src/atoms/InputGroup/InputGroup.js +1 -1
  20. package/dist/src/atoms/LineClamp/LineClamp.d.ts +4 -4
  21. package/dist/src/atoms/Link/Link.d.ts +1 -1
  22. package/dist/src/atoms/Modal/Modal.d.ts +31 -32
  23. package/dist/src/atoms/Modal/Modal.js +2 -2
  24. package/dist/src/atoms/Navigation/Navigation.d.ts +4 -4
  25. package/dist/src/atoms/PageHeader/PageHeader.d.ts +2 -2
  26. package/dist/src/atoms/Popover/Popover.d.ts +2 -2
  27. package/dist/src/atoms/PopoverDialog/PopoverDialog.d.ts +2 -2
  28. package/dist/src/atoms/ProgressBar/ProgressBar.d.ts +5 -5
  29. package/dist/src/atoms/ProgressBar/ProgressBar.js +1 -1
  30. package/dist/src/atoms/RadioButton/RadioButton.d.ts +4 -4
  31. package/dist/src/atoms/Section/Section.d.ts +2 -2
  32. package/dist/src/atoms/Select/Select.d.ts +16 -16
  33. package/dist/src/atoms/Select/Select.js +4 -2
  34. package/dist/src/atoms/Stepper/Stepper.d.ts +7 -7
  35. package/dist/src/atoms/Switch/Switch.d.ts +5 -5
  36. package/dist/src/atoms/Table/Table.d.ts +10 -10
  37. package/dist/src/atoms/Table/Table.js +2 -2
  38. package/dist/src/atoms/Timeline/Timeline.d.ts +2 -2
  39. package/dist/src/atoms/Toast/Toast.d.ts +4 -4
  40. package/dist/src/atoms/Typography/Typography.d.ts +2 -2
  41. package/dist/src/atoms/Typography/Typography.js +1 -1
  42. package/dist/src/atoms/utils/index.d.ts +49 -148
  43. package/dist/src/atoms/utils/index.js +2 -2
  44. package/dist/src/charts/AreaChart/AreaChart.d.ts +3 -3
  45. package/dist/src/charts/AreaChart/AreaChart.js +1 -1
  46. package/dist/src/charts/Axis/Axis.d.ts +3 -3
  47. package/dist/src/charts/Axis/Axis.js +4 -2
  48. package/dist/src/charts/BarChart/BarChart.d.ts +3 -3
  49. package/dist/src/charts/BarChart/BarChart.js +2 -1
  50. package/dist/src/charts/Container/Container.d.ts +1 -1
  51. package/dist/src/charts/Grid/Grid.d.ts +1 -1
  52. package/dist/src/charts/Legend/Legend.d.ts +1 -1
  53. package/dist/src/charts/LineChart/LineChart.d.ts +3 -3
  54. package/dist/src/charts/LineChart/LineChart.js +1 -1
  55. package/dist/src/charts/PieChart/ChartValue.d.ts +1 -1
  56. package/dist/src/charts/PieChart/DoughnutChart.d.ts +3 -3
  57. package/dist/src/charts/PieChart/DoughnutChart.js +1 -1
  58. package/dist/src/charts/PieChart/PieChart.d.ts +4 -4
  59. package/dist/src/charts/PieChart/PieChart.js +1 -1
  60. package/dist/src/charts/PieChart/TooltipContentWrapper.d.ts +4 -4
  61. package/dist/src/charts/PieChart/TooltipContentWrapper.js +1 -1
  62. package/dist/src/charts/PieChart/renderPieChildren.js +2 -1
  63. package/dist/src/charts/Reference/Reference.d.ts +3 -3
  64. package/dist/src/charts/Tooltip/Tooltip.d.ts +2 -2
  65. package/dist/src/charts/lib/utils.d.ts +5 -5
  66. package/dist/src/charts/lib/utils.js +5 -2
  67. package/dist/src/icons/add.d.ts +5 -5
  68. package/dist/src/icons/addToFolder.d.ts +5 -5
  69. package/dist/src/icons/airplane.d.ts +5 -5
  70. package/dist/src/icons/aivenEnterprise.d.ts +5 -5
  71. package/dist/src/icons/alignCenter.d.ts +5 -5
  72. package/dist/src/icons/alignJustify.d.ts +5 -5
  73. package/dist/src/icons/alignLeft.d.ts +5 -5
  74. package/dist/src/icons/alignRight.d.ts +5 -5
  75. package/dist/src/icons/alignmentBottom.d.ts +5 -5
  76. package/dist/src/icons/alignmentHorizontalCenter.d.ts +5 -5
  77. package/dist/src/icons/alignmentLeft.d.ts +5 -5
  78. package/dist/src/icons/alignmentRight.d.ts +5 -5
  79. package/dist/src/icons/alignmentTop.d.ts +5 -5
  80. package/dist/src/icons/alignmentVerticalCenter.d.ts +5 -5
  81. package/dist/src/icons/amexCard.d.ts +5 -5
  82. package/dist/src/icons/annotation.d.ts +5 -5
  83. package/dist/src/icons/announcement.d.ts +5 -5
  84. package/dist/src/icons/appUsers.d.ts +5 -5
  85. package/dist/src/icons/applications.d.ts +5 -5
  86. package/dist/src/icons/archive.d.ts +5 -5
  87. package/dist/src/icons/arrowCircleDown.d.ts +5 -5
  88. package/dist/src/icons/arrowCircleLeft.d.ts +5 -5
  89. package/dist/src/icons/arrowCircleRight.d.ts +5 -5
  90. package/dist/src/icons/arrowCircleUp.d.ts +5 -5
  91. package/dist/src/icons/arrowLeft.d.ts +5 -5
  92. package/dist/src/icons/arrowRight.d.ts +5 -5
  93. package/dist/src/icons/attachment.d.ts +5 -5
  94. package/dist/src/icons/automaticUpdates.d.ts +5 -5
  95. package/dist/src/icons/award.d.ts +5 -5
  96. package/dist/src/icons/badge.d.ts +5 -5
  97. package/dist/src/icons/ban.d.ts +5 -5
  98. package/dist/src/icons/banCircle.d.ts +5 -5
  99. package/dist/src/icons/bankAccount.d.ts +5 -5
  100. package/dist/src/icons/blockedPerson.d.ts +5 -5
  101. package/dist/src/icons/book.d.ts +5 -5
  102. package/dist/src/icons/bookmark.d.ts +5 -5
  103. package/dist/src/icons/box.d.ts +5 -5
  104. package/dist/src/icons/briefcase.d.ts +5 -5
  105. package/dist/src/icons/calendar.d.ts +5 -5
  106. package/dist/src/icons/capslock.d.ts +5 -5
  107. package/dist/src/icons/caretDown.d.ts +5 -5
  108. package/dist/src/icons/caretLeft.d.ts +5 -5
  109. package/dist/src/icons/caretRight.d.ts +5 -5
  110. package/dist/src/icons/caretUp.d.ts +5 -5
  111. package/dist/src/icons/certificate.d.ts +5 -5
  112. package/dist/src/icons/chart.d.ts +5 -5
  113. package/dist/src/icons/chat.d.ts +5 -5
  114. package/dist/src/icons/chevronBackward.d.ts +5 -5
  115. package/dist/src/icons/chevronDown.d.ts +5 -5
  116. package/dist/src/icons/chevronDownDouble.d.ts +5 -5
  117. package/dist/src/icons/chevronForward.d.ts +5 -5
  118. package/dist/src/icons/chevronLeft.d.ts +5 -5
  119. package/dist/src/icons/chevronRight.d.ts +5 -5
  120. package/dist/src/icons/chevronRightDouble.d.ts +5 -5
  121. package/dist/src/icons/chevronUp.d.ts +5 -5
  122. package/dist/src/icons/chevronUpDouble.d.ts +5 -5
  123. package/dist/src/icons/circle.d.ts +5 -5
  124. package/dist/src/icons/clipboard.d.ts +5 -5
  125. package/dist/src/icons/clipboardCheck.d.ts +5 -5
  126. package/dist/src/icons/cloud.d.ts +5 -5
  127. package/dist/src/icons/cloudDownload.d.ts +5 -5
  128. package/dist/src/icons/cloudUpload.d.ts +5 -5
  129. package/dist/src/icons/co2Emissions.d.ts +5 -5
  130. package/dist/src/icons/code.d.ts +5 -5
  131. package/dist/src/icons/codeBlock.d.ts +5 -5
  132. package/dist/src/icons/codeFile.d.ts +5 -5
  133. package/dist/src/icons/cog.d.ts +5 -5
  134. package/dist/src/icons/coinsHand.d.ts +5 -5
  135. package/dist/src/icons/comment.d.ts +5 -5
  136. package/dist/src/icons/confirm.d.ts +5 -5
  137. package/dist/src/icons/console.d.ts +5 -5
  138. package/dist/src/icons/container.d.ts +5 -5
  139. package/dist/src/icons/cpuChip.d.ts +5 -5
  140. package/dist/src/icons/creditCard.d.ts +5 -5
  141. package/dist/src/icons/cross.d.ts +5 -5
  142. package/dist/src/icons/currencyDollar.d.ts +5 -5
  143. package/dist/src/icons/dashboard.d.ts +5 -5
  144. package/dist/src/icons/dataLineage.d.ts +5 -5
  145. package/dist/src/icons/database.d.ts +5 -5
  146. package/dist/src/icons/database02.d.ts +5 -5
  147. package/dist/src/icons/dataflow01.d.ts +5 -5
  148. package/dist/src/icons/dataflow02.d.ts +5 -5
  149. package/dist/src/icons/dataflow03.d.ts +5 -5
  150. package/dist/src/icons/dbBackup.d.ts +5 -5
  151. package/dist/src/icons/delete.d.ts +5 -5
  152. package/dist/src/icons/deliveryLocation.d.ts +5 -5
  153. package/dist/src/icons/disasterRecovery.d.ts +5 -5
  154. package/dist/src/icons/document.d.ts +5 -5
  155. package/dist/src/icons/dot.d.ts +5 -5
  156. package/dist/src/icons/doubleCaretHorizontal.d.ts +5 -5
  157. package/dist/src/icons/doubleCaretVertical.d.ts +5 -5
  158. package/dist/src/icons/doubleChevronDown.d.ts +5 -5
  159. package/dist/src/icons/doubleChevronLeft.d.ts +5 -5
  160. package/dist/src/icons/doubleChevronRight.d.ts +5 -5
  161. package/dist/src/icons/doubleChevronUp.d.ts +5 -5
  162. package/dist/src/icons/doughnutChart.d.ts +5 -5
  163. package/dist/src/icons/download.d.ts +5 -5
  164. package/dist/src/icons/dragHandleHorizontal.d.ts +5 -5
  165. package/dist/src/icons/dragHandleVertical.d.ts +5 -5
  166. package/dist/src/icons/duplicate.d.ts +5 -5
  167. package/dist/src/icons/edit.d.ts +5 -5
  168. package/dist/src/icons/endorsed.d.ts +5 -5
  169. package/dist/src/icons/envelope.d.ts +5 -5
  170. package/dist/src/icons/error.d.ts +5 -5
  171. package/dist/src/icons/expandAll.d.ts +5 -5
  172. package/dist/src/icons/export.d.ts +5 -5
  173. package/dist/src/icons/eyeOff.d.ts +5 -5
  174. package/dist/src/icons/eyeOpen.d.ts +5 -5
  175. package/dist/src/icons/faceHappy.d.ts +5 -5
  176. package/dist/src/icons/faceSad.d.ts +5 -5
  177. package/dist/src/icons/filter.d.ts +5 -5
  178. package/dist/src/icons/flag.d.ts +5 -5
  179. package/dist/src/icons/floppyDisk.d.ts +5 -5
  180. package/dist/src/icons/folderClose.d.ts +5 -5
  181. package/dist/src/icons/folderNew.d.ts +5 -5
  182. package/dist/src/icons/follower.d.ts +5 -5
  183. package/dist/src/icons/following.d.ts +5 -5
  184. package/dist/src/icons/gift.d.ts +5 -5
  185. package/dist/src/icons/gitBranch.d.ts +5 -5
  186. package/dist/src/icons/gitCommit.d.ts +5 -5
  187. package/dist/src/icons/gitDiff.d.ts +5 -5
  188. package/dist/src/icons/gitMerge.d.ts +5 -5
  189. package/dist/src/icons/gitNewBranch.d.ts +5 -5
  190. package/dist/src/icons/gitPull.d.ts +5 -5
  191. package/dist/src/icons/githubLogo.d.ts +5 -5
  192. package/dist/src/icons/globe.d.ts +5 -5
  193. package/dist/src/icons/globeNetwork.d.ts +5 -5
  194. package/dist/src/icons/googleLogo.d.ts +5 -5
  195. package/dist/src/icons/governance.d.ts +5 -5
  196. package/dist/src/icons/grid.d.ts +5 -5
  197. package/dist/src/icons/groupedBarChart.d.ts +5 -5
  198. package/dist/src/icons/heart.d.ts +5 -5
  199. package/dist/src/icons/help.d.ts +5 -5
  200. package/dist/src/icons/history.d.ts +5 -5
  201. package/dist/src/icons/home.d.ts +5 -5
  202. package/dist/src/icons/idNumber.d.ts +5 -5
  203. package/dist/src/icons/import.d.ts +5 -5
  204. package/dist/src/icons/inbox.d.ts +5 -5
  205. package/dist/src/icons/indexes.d.ts +5 -5
  206. package/dist/src/icons/infoSign.d.ts +5 -5
  207. package/dist/src/icons/integrations.d.ts +5 -5
  208. package/dist/src/icons/issue.d.ts +5 -5
  209. package/dist/src/icons/jobsAndData.d.ts +5 -5
  210. package/dist/src/icons/kafkaTopic.d.ts +5 -5
  211. package/dist/src/icons/key.d.ts +5 -5
  212. package/dist/src/icons/layer.d.ts +5 -5
  213. package/dist/src/icons/layers.d.ts +5 -5
  214. package/dist/src/icons/learning.d.ts +5 -5
  215. package/dist/src/icons/lifeBuoy.d.ts +5 -5
  216. package/dist/src/icons/lifesaver.d.ts +5 -5
  217. package/dist/src/icons/lightbulb.d.ts +5 -5
  218. package/dist/src/icons/link.d.ts +5 -5
  219. package/dist/src/icons/linkExternal.d.ts +5 -5
  220. package/dist/src/icons/list.d.ts +5 -5
  221. package/dist/src/icons/listColumns.d.ts +5 -5
  222. package/dist/src/icons/listDetailView.d.ts +5 -5
  223. package/dist/src/icons/loading.d.ts +5 -5
  224. package/dist/src/icons/lock.d.ts +5 -5
  225. package/dist/src/icons/logIn.d.ts +5 -5
  226. package/dist/src/icons/logOut.d.ts +5 -5
  227. package/dist/src/icons/managedUsers.d.ts +5 -5
  228. package/dist/src/icons/manual.d.ts +5 -5
  229. package/dist/src/icons/map.d.ts +5 -5
  230. package/dist/src/icons/mapMarker.d.ts +5 -5
  231. package/dist/src/icons/mastercardCard.d.ts +5 -5
  232. package/dist/src/icons/maximize.d.ts +5 -5
  233. package/dist/src/icons/memory.d.ts +5 -5
  234. package/dist/src/icons/menu.d.ts +5 -5
  235. package/dist/src/icons/minimize.d.ts +5 -5
  236. package/dist/src/icons/minus.d.ts +5 -5
  237. package/dist/src/icons/more.d.ts +5 -5
  238. package/dist/src/icons/move.d.ts +5 -5
  239. package/dist/src/icons/moveProject.d.ts +5 -5
  240. package/dist/src/icons/namespaces.d.ts +5 -5
  241. package/dist/src/icons/networkPrivateLink.d.ts +5 -5
  242. package/dist/src/icons/newPerson.d.ts +5 -5
  243. package/dist/src/icons/nodes.d.ts +5 -5
  244. package/dist/src/icons/notifications.d.ts +5 -5
  245. package/dist/src/icons/notificationsUpdated.d.ts +5 -5
  246. package/dist/src/icons/office.d.ts +5 -5
  247. package/dist/src/icons/orgAdmin.d.ts +5 -5
  248. package/dist/src/icons/orgUnit.d.ts +5 -5
  249. package/dist/src/icons/outdated.d.ts +5 -5
  250. package/dist/src/icons/package.d.ts +5 -5
  251. package/dist/src/icons/packageCheck.d.ts +5 -5
  252. package/dist/src/icons/packageSearch.d.ts +5 -5
  253. package/dist/src/icons/paperclip.d.ts +5 -5
  254. package/dist/src/icons/pause.d.ts +5 -5
  255. package/dist/src/icons/people.d.ts +5 -5
  256. package/dist/src/icons/performance.d.ts +5 -5
  257. package/dist/src/icons/person.d.ts +5 -5
  258. package/dist/src/icons/phone.d.ts +5 -5
  259. package/dist/src/icons/pieChart.d.ts +5 -5
  260. package/dist/src/icons/pin.d.ts +5 -5
  261. package/dist/src/icons/play.d.ts +5 -5
  262. package/dist/src/icons/plus.d.ts +5 -5
  263. package/dist/src/icons/plusCircle.d.ts +5 -5
  264. package/dist/src/icons/pools.d.ts +5 -5
  265. package/dist/src/icons/power.d.ts +5 -5
  266. package/dist/src/icons/proPlans.d.ts +5 -5
  267. package/dist/src/icons/projects.d.ts +5 -5
  268. package/dist/src/icons/properties.d.ts +5 -5
  269. package/dist/src/icons/property.d.ts +5 -5
  270. package/dist/src/icons/pulse.d.ts +5 -5
  271. package/dist/src/icons/puzzlePiece.d.ts +5 -5
  272. package/dist/src/icons/queries.d.ts +5 -5
  273. package/dist/src/icons/queriesEditor.d.ts +5 -5
  274. package/dist/src/icons/queriesStatistics.d.ts +5 -5
  275. package/dist/src/icons/questionMark.d.ts +5 -5
  276. package/dist/src/icons/recoverySwap.d.ts +5 -5
  277. package/dist/src/icons/refresh.d.ts +5 -5
  278. package/dist/src/icons/remove.d.ts +5 -5
  279. package/dist/src/icons/repeat.d.ts +5 -5
  280. package/dist/src/icons/replicationFlow.d.ts +5 -5
  281. package/dist/src/icons/reset.d.ts +5 -5
  282. package/dist/src/icons/roadmap.d.ts +5 -5
  283. package/dist/src/icons/save.d.ts +5 -5
  284. package/dist/src/icons/saved.d.ts +5 -5
  285. package/dist/src/icons/scatterPlot.d.ts +5 -5
  286. package/dist/src/icons/search.d.ts +5 -5
  287. package/dist/src/icons/send.d.ts +5 -5
  288. package/dist/src/icons/serverHdd.d.ts +5 -5
  289. package/dist/src/icons/settings.d.ts +5 -5
  290. package/dist/src/icons/share.d.ts +5 -5
  291. package/dist/src/icons/shield.d.ts +5 -5
  292. package/dist/src/icons/slash.d.ts +5 -5
  293. package/dist/src/icons/smallCross.d.ts +5 -5
  294. package/dist/src/icons/smallMinus.d.ts +5 -5
  295. package/dist/src/icons/smallPlus.d.ts +5 -5
  296. package/dist/src/icons/smallTick.d.ts +5 -5
  297. package/dist/src/icons/speedometer.d.ts +5 -5
  298. package/dist/src/icons/stop.d.ts +5 -5
  299. package/dist/src/icons/stopwatch.d.ts +5 -5
  300. package/dist/src/icons/superadmin.d.ts +5 -5
  301. package/dist/src/icons/swapHorizontal.d.ts +5 -5
  302. package/dist/src/icons/swapVertical.d.ts +5 -5
  303. package/dist/src/icons/table.d.ts +5 -5
  304. package/dist/src/icons/tag.d.ts +5 -5
  305. package/dist/src/icons/terraform.d.ts +5 -5
  306. package/dist/src/icons/thumbsDown.d.ts +5 -5
  307. package/dist/src/icons/thumbsUp.d.ts +5 -5
  308. package/dist/src/icons/tick.d.ts +5 -5
  309. package/dist/src/icons/tickCircle.d.ts +5 -5
  310. package/dist/src/icons/ticket.d.ts +5 -5
  311. package/dist/src/icons/tiered.d.ts +5 -5
  312. package/dist/src/icons/time.d.ts +5 -5
  313. package/dist/src/icons/timelineAreaChart.d.ts +5 -5
  314. package/dist/src/icons/timelineBarChart.d.ts +5 -5
  315. package/dist/src/icons/timelineLineChart.d.ts +5 -5
  316. package/dist/src/icons/tools.d.ts +5 -5
  317. package/dist/src/icons/trash.d.ts +5 -5
  318. package/dist/src/icons/unlock.d.ts +5 -5
  319. package/dist/src/icons/unpin.d.ts +5 -5
  320. package/dist/src/icons/updated.d.ts +5 -5
  321. package/dist/src/icons/upload.d.ts +5 -5
  322. package/dist/src/icons/user.d.ts +5 -5
  323. package/dist/src/icons/visaCard.d.ts +5 -5
  324. package/dist/src/icons/warningSign.d.ts +5 -5
  325. package/dist/src/molecules/Accordion/Accordion.d.ts +7 -7
  326. package/dist/src/molecules/Accordion/Accordion.js +6 -6
  327. package/dist/src/molecules/Alert/Alert.d.ts +4 -4
  328. package/dist/src/molecules/Alert/Alert.js +1 -1
  329. package/dist/src/molecules/Avatar/Avatar.d.ts +2 -2
  330. package/dist/src/molecules/Badge/Badge.d.ts +4 -4
  331. package/dist/src/molecules/Badge/Badge.js +1 -1
  332. package/dist/src/molecules/Banner/Banner.d.ts +6 -6
  333. package/dist/src/molecules/Banner/Banner.js +1 -1
  334. package/dist/src/molecules/Box/Box.d.ts +6 -6
  335. package/dist/src/molecules/Box/Box.js +1 -1
  336. package/dist/src/molecules/Breadcrumbs/Breadcrumbs.d.ts +4 -4
  337. package/dist/src/molecules/Breadcrumbs/Breadcrumbs.js +1 -1
  338. package/dist/src/molecules/Button/Button.d.ts +76 -76
  339. package/dist/src/molecules/Button/Button.js +2 -2
  340. package/dist/src/molecules/Card/Card.d.ts +6 -6
  341. package/dist/src/molecules/Card/Card.js +5 -5
  342. package/dist/src/molecules/Card/CardInputWrapper.d.ts +1 -1
  343. package/dist/src/molecules/Card/Compact.d.ts +6 -6
  344. package/dist/src/molecules/Card/Compact.js +6 -6
  345. package/dist/src/molecules/Card/Group.d.ts +2 -2
  346. package/dist/src/molecules/Card/Group.js +2 -2
  347. package/dist/src/molecules/Card/types.d.ts +9 -9
  348. package/dist/src/molecules/Carousel/Carousel.d.ts +1 -1
  349. package/dist/src/molecules/Carousel/Carousel.js +2 -1
  350. package/dist/src/molecules/Checkbox/Checkbox.d.ts +2 -2
  351. package/dist/src/molecules/CheckboxGroup/CheckboxGroup.d.ts +3 -3
  352. package/dist/src/molecules/CheckboxGroup/CheckboxGroup.js +1 -1
  353. package/dist/src/molecules/Chip/Chip.d.ts +9 -9
  354. package/dist/src/molecules/Chip/Chip.js +2 -2
  355. package/dist/src/molecules/ChoiceChip/ChoiceChip.d.ts +1 -1
  356. package/dist/src/molecules/ChoiceChip/ChoiceChip.js +1 -1
  357. package/dist/src/molecules/Combobox/Combobox.d.ts +4 -4
  358. package/dist/src/molecules/Combobox/Combobox.js +2 -2
  359. package/dist/src/molecules/Container/Container.d.ts +2 -2
  360. package/dist/src/molecules/Container/Container.js +1 -1
  361. package/dist/src/molecules/Context/Context.d.ts +2 -2
  362. package/dist/src/molecules/ControlLabel/ControlLabel.d.ts +3 -3
  363. package/dist/src/molecules/ControlLabel/ControlLabel.js +1 -1
  364. package/dist/src/molecules/DataList/DataList.d.ts +9 -8
  365. package/dist/src/molecules/DataList/DataList.js +5 -5
  366. package/dist/src/molecules/DataList/DataListComponents.d.ts +5 -5
  367. package/dist/src/molecules/DataList/DataListComponents.js +16 -2
  368. package/dist/src/molecules/DataList/DataListContext.d.ts +2 -3
  369. package/dist/src/molecules/DataList/DataListContext.js +2 -1
  370. package/dist/src/molecules/DataList/DataListGroup.d.ts +2 -4
  371. package/dist/src/molecules/DataList/DataListGroup.js +15 -9
  372. package/dist/src/molecules/DataList/DataListSkeleton.d.ts +1 -1
  373. package/dist/src/molecules/DataList/DataListSkeleton.js +2 -2
  374. package/dist/src/molecules/DataList/DataListToolbar.d.ts +6 -6
  375. package/dist/src/molecules/DataList/DataListToolbar.js +2 -2
  376. package/dist/src/molecules/DataTable/DataTable.d.ts +4 -4
  377. package/dist/src/molecules/DataTable/DataTable.js +4 -3
  378. package/dist/src/molecules/DateField/DateField.d.ts +2 -2
  379. package/dist/src/molecules/DatePicker/Button.d.ts +1 -1
  380. package/dist/src/molecules/DatePicker/Button.js +2 -3
  381. package/dist/src/molecules/DatePicker/Calendar.d.ts +1 -1
  382. package/dist/src/molecules/DatePicker/DatePicker.d.ts +2 -2
  383. package/dist/src/molecules/DatePicker/DatePicker.js +3 -2
  384. package/dist/src/molecules/DatePicker/DateRangePicker.d.ts +2 -2
  385. package/dist/src/molecules/DatePicker/DateRangePicker.js +3 -2
  386. package/dist/src/molecules/DatePicker/Popover.d.ts +1 -1
  387. package/dist/src/molecules/DatePicker/RangeCalendar.d.ts +1 -1
  388. package/dist/src/molecules/Dialog/Dialog.d.ts +2 -2
  389. package/dist/src/molecules/Dialog/Dialog.js +1 -1
  390. package/dist/src/molecules/Divider/Divider.d.ts +3 -3
  391. package/dist/src/molecules/Divider/Divider.js +1 -1
  392. package/dist/src/molecules/Drawer/Drawer.d.ts +4 -4
  393. package/dist/src/molecules/Drawer/Drawer.js +6 -6
  394. package/dist/src/molecules/Dropdown/Dropdown.d.ts +3 -3
  395. package/dist/src/molecules/Dropdown/Dropdown.js +4 -2
  396. package/dist/src/molecules/DropdownMenu/DropdownMenu.d.ts +14 -14
  397. package/dist/src/molecules/DropdownMenu/DropdownMenu.js +3 -1
  398. package/dist/src/molecules/DropdownMenu/utils.d.ts +2 -3
  399. package/dist/src/molecules/DropdownMenu/utils.js +2 -2
  400. package/dist/src/molecules/Element/Element.d.ts +6 -6
  401. package/dist/src/molecules/Element/Element.js +2 -2
  402. package/dist/src/molecules/EmptyState/EmptyState.d.ts +5 -5
  403. package/dist/src/molecules/EmptyState/EmptyState.js +2 -2
  404. package/dist/src/molecules/Flexbox/Flexbox.d.ts +2 -2
  405. package/dist/src/molecules/Flexbox/FlexboxItem.d.ts +2 -2
  406. package/dist/src/molecules/Grid/Grid.d.ts +4 -6
  407. package/dist/src/molecules/Grid/Grid.js +1 -1
  408. package/dist/src/molecules/Grid/GridItem.d.ts +2 -2
  409. package/dist/src/molecules/Icon/Icon.d.ts +2 -2
  410. package/dist/src/molecules/Icon/Icon.js +1 -1
  411. package/dist/src/molecules/Input/Input.d.ts +5 -5
  412. package/dist/src/molecules/Input/Input.js +8 -5
  413. package/dist/src/molecules/ItemList/ItemList.d.ts +39 -0
  414. package/dist/src/molecules/ItemList/ItemList.js +74 -0
  415. package/dist/src/molecules/ItemList/ItemList.spec.d.ts +24 -0
  416. package/dist/src/molecules/ItemList/ItemList.spec.js +100 -0
  417. package/dist/src/molecules/ItemList/types.d.ts +114 -0
  418. package/dist/src/molecules/ItemList/types.js +2 -0
  419. package/dist/src/molecules/LineClamp/LineClamp.d.ts +2 -2
  420. package/dist/src/molecules/List/List.d.ts +6 -6
  421. package/dist/src/molecules/List/List.js +1 -1
  422. package/dist/src/molecules/List/useStaticInfiniteList.d.ts +2 -2
  423. package/dist/src/molecules/List/useStaticInfiniteList.js +1 -1
  424. package/dist/src/molecules/ListItem/ListItem.d.ts +1 -2
  425. package/dist/src/molecules/Modal/Modal.d.ts +2 -2
  426. package/dist/src/molecules/Modal/Modal.js +5 -5
  427. package/dist/src/molecules/Modal/ModalTitle.d.ts +1 -1
  428. package/dist/src/molecules/MultiInput/InputChip.d.ts +1 -1
  429. package/dist/src/molecules/MultiInput/InputChip.js +1 -1
  430. package/dist/src/molecules/MultiInput/MultiInput.d.ts +4 -4
  431. package/dist/src/molecules/MultiInput/MultiInput.js +12 -8
  432. package/dist/src/molecules/MultiSelect/MultiSelect.d.ts +7 -7
  433. package/dist/src/molecules/MultiSelect/MultiSelect.js +1 -1
  434. package/dist/src/molecules/NativeSelect/NativeSelect.d.ts +5 -5
  435. package/dist/src/molecules/NativeSelect/NativeSelect.js +1 -1
  436. package/dist/src/molecules/Navigation/Navigation.d.ts +2 -3
  437. package/dist/src/molecules/PageHeader/PageHeader.d.ts +10 -10
  438. package/dist/src/molecules/PageHeader/PageHeader.js +8 -3
  439. package/dist/src/molecules/Pagination/Pagination.d.ts +3 -3
  440. package/dist/src/molecules/Pagination/Pagination.js +1 -1
  441. package/dist/src/molecules/Pagination/usePagination.d.ts +2 -2
  442. package/dist/src/molecules/Pagination/usePagination.js +8 -5
  443. package/dist/src/molecules/Popover/Popover.d.ts +6 -6
  444. package/dist/src/molecules/Popover/Popover.js +1 -1
  445. package/dist/src/molecules/Popover/PopoverContext.d.ts +2 -3
  446. package/dist/src/molecules/Popover/PopoverContext.js +1 -1
  447. package/dist/src/molecules/Popover/PopoverOverlay.d.ts +15 -15
  448. package/dist/src/molecules/Popover/PopoverOverlay.js +1 -1
  449. package/dist/src/molecules/PopoverDialog/PopoverDialog.d.ts +2 -2
  450. package/dist/src/molecules/PopoverDialog/PopoverDialog.js +1 -1
  451. package/dist/src/molecules/Portal/Portal.d.ts +1 -1
  452. package/dist/src/molecules/ProgressBar/ProgressBar.d.ts +3 -3
  453. package/dist/src/molecules/ProgressBar/ProgressBar.js +1 -1
  454. package/dist/src/molecules/RadioButton/RadioButton.d.ts +2 -2
  455. package/dist/src/molecules/RadioButtonGroup/RadioButtonGroup.d.ts +5 -5
  456. package/dist/src/molecules/RadioButtonGroup/RadioButtonGroup.js +2 -1
  457. package/dist/src/molecules/Section/Section.d.ts +9 -9
  458. package/dist/src/molecules/Section/Section.js +6 -6
  459. package/dist/src/molecules/SegmentedControl/SegmentedControl.d.ts +6 -6
  460. package/dist/src/molecules/Select/Select.d.ts +11 -11
  461. package/dist/src/molecules/Select/Select.js +2 -1
  462. package/dist/src/molecules/Skeleton/Skeleton.d.ts +2 -2
  463. package/dist/src/molecules/Skeleton/Skeleton.js +1 -1
  464. package/dist/src/molecules/Spacing/Spacing.d.ts +1 -1
  465. package/dist/src/molecules/Stepper/Stepper.d.ts +2 -2
  466. package/dist/src/molecules/Stepper/Stepper.js +1 -1
  467. package/dist/src/molecules/Switch/Switch.d.ts +2 -2
  468. package/dist/src/molecules/SwitchGroup/SwitchGroup.d.ts +2 -2
  469. package/dist/src/molecules/SwitchGroup/SwitchGroup.js +1 -1
  470. package/dist/src/molecules/Table/Table.d.ts +1 -1
  471. package/dist/src/molecules/Tabs/Tabs.d.ts +15 -63
  472. package/dist/src/molecules/Tabs/Tabs.js +3 -2
  473. package/dist/src/molecules/TagLabel/TagLabel.d.ts +1 -1
  474. package/dist/src/molecules/TagLabel/TagLabel.js +1 -1
  475. package/dist/src/molecules/Tailwindify/Tailwindify.d.ts +4 -4
  476. package/dist/src/molecules/Tailwindify/Tailwindify.js +1 -1
  477. package/dist/src/molecules/Template/Template.d.ts +2 -2
  478. package/dist/src/molecules/Template/Template.js +1 -1
  479. package/dist/src/molecules/Textarea/Textarea.d.ts +4 -4
  480. package/dist/src/molecules/Textarea/Textarea.js +4 -2
  481. package/dist/src/molecules/TimeField/TimeField.d.ts +2 -2
  482. package/dist/src/molecules/TimePicker/TimePicker.d.ts +2 -2
  483. package/dist/src/molecules/TimePicker/TimePicker.js +1 -1
  484. package/dist/src/molecules/Timeline/Timeline.d.ts +3 -3
  485. package/dist/src/molecules/Timeline/Timeline.js +1 -1
  486. package/dist/src/molecules/Toast/Toast.d.ts +1 -1
  487. package/dist/src/molecules/Toast/Toast.js +3 -4
  488. package/dist/src/molecules/Toast/types.d.ts +8 -8
  489. package/dist/src/molecules/Tooltip/Tooltip.d.ts +2 -2
  490. package/dist/src/molecules/Tooltip/Tooltip.js +1 -1
  491. package/dist/src/molecules/Tooltip/useTooltipTriggerState.d.ts +1 -1
  492. package/dist/src/molecules/Tooltip/useTooltipTriggerState.js +2 -1
  493. package/dist/src/molecules/Transition/Transition.d.ts +3 -3
  494. package/dist/src/molecules/Transition/Transition.js +1 -1
  495. package/dist/src/molecules/Typography/Typography.d.ts +8 -12
  496. package/dist/src/molecules/Typography/Typography.js +1 -1
  497. package/dist/src/molecules/index.d.ts +3 -1
  498. package/dist/src/molecules/index.js +4 -1
  499. package/dist/src/test/config.d.ts +1 -1
  500. package/dist/src/test/config.js +1 -1
  501. package/dist/src/utils/Blueprint.d.ts +1 -1
  502. package/dist/src/utils/ContrastRatio.d.ts +1 -1
  503. package/dist/src/utils/ContrastRatio.js +1 -1
  504. package/dist/src/utils/actions.d.ts +3 -3
  505. package/dist/src/utils/actions.js +1 -1
  506. package/dist/src/utils/breakpoints.d.ts +5 -8
  507. package/dist/src/utils/breakpoints.js +1 -1
  508. package/dist/src/utils/createComponent.d.ts +3 -3
  509. package/dist/src/utils/createComponent.js +1 -1
  510. package/dist/src/utils/form/CharCounter/CharCounter.d.ts +1 -1
  511. package/dist/src/utils/form/FormControl/FormControl.d.ts +1 -1
  512. package/dist/src/utils/form/HelperText/HelperText.d.ts +1 -1
  513. package/dist/src/utils/form/HelperText/HelperText.js +1 -1
  514. package/dist/src/utils/form/InputAdornment/InputAdornment.d.ts +2 -2
  515. package/dist/src/utils/form/Label/Label.d.ts +4 -4
  516. package/dist/src/utils/form/Label/Label.js +1 -1
  517. package/dist/src/utils/link.d.ts +1 -1
  518. package/dist/src/utils/link.js +2 -2
  519. package/dist/src/utils/mocks/mockRecharts.js +1 -1
  520. package/dist/src/utils/mocks/mockResizeObservable.js +1 -1
  521. package/dist/src/utils/object.d.ts +1 -1
  522. package/dist/src/utils/object.js +1 -1
  523. package/dist/src/utils/positioner.d.ts +3 -3
  524. package/dist/src/utils/positioner.js +5 -2
  525. package/dist/src/utils/stickyStyles.d.ts +3 -3
  526. package/dist/src/utils/stickyStyles.js +2 -2
  527. package/dist/src/utils/table/sortByColumn.d.ts +3 -0
  528. package/dist/src/utils/table/sortByColumn.js +23 -0
  529. package/dist/src/utils/table/types.d.ts +63 -43
  530. package/dist/src/utils/table/types.js +4 -1
  531. package/dist/src/utils/table/useScrollTarget.d.ts +2 -2
  532. package/dist/src/utils/table/useScrollTarget.js +1 -1
  533. package/dist/src/utils/table/useSortState.d.ts +15 -0
  534. package/dist/src/utils/table/useSortState.js +3 -0
  535. package/dist/src/utils/table/useTableSelect.d.ts +3 -5
  536. package/dist/src/utils/table/useTableSelect.js +1 -1
  537. package/dist/src/utils/table/useTableSort.d.ts +5 -5
  538. package/dist/src/utils/table/useTableSort.js +3 -3
  539. package/dist/src/utils/table/utils.d.ts +2 -2
  540. package/dist/src/utils/table/utils.js +3 -3
  541. package/dist/src/utils/tailwind.d.ts +1 -2
  542. package/dist/src/utils/tailwind.js +2 -6
  543. package/dist/src/utils/useInView.d.ts +3 -3
  544. package/dist/src/utils/useInView.js +2 -4
  545. package/dist/src/utils/useMeasure.d.ts +1 -1
  546. package/dist/src/utils/useMeasure.js +4 -2
  547. package/dist/src/utils/useStyle.d.ts +3 -4
  548. package/dist/src/utils/useStyle.js +1 -1
  549. package/dist/src/utils/useWindowSize.d.ts +1 -1
  550. package/dist/src/utils/useWindowSize.js +1 -1
  551. package/dist/styles.css +18 -0
  552. package/dist/system.cjs +295 -132
  553. package/dist/system.mjs +254 -94
  554. package/dist/tsconfig.module.tsbuildinfo +1 -1
  555. package/dist/types/ActionType.d.ts +6 -6
  556. package/dist/types/ContextualMenu.d.ts +4 -4
  557. package/dist/types/ContextualMenu.js +1 -1
  558. package/dist/types/DimensionProps.d.ts +2 -2
  559. package/dist/types/IconProps.d.ts +4 -4
  560. package/dist/types/designTokens.d.ts +25 -35
  561. package/dist/types/tailwind.d.ts +21 -29
  562. package/dist/types/tailwindGenerated.d.ts +1 -1
  563. package/dist/types/utils.d.ts +10 -10
  564. package/package.json +17 -19
package/dist/system.mjs CHANGED
@@ -4260,13 +4260,13 @@ __export(molecules_exports, {
4260
4260
  InlineIcon: () => InlineIcon,
4261
4261
  Input: () => Input2,
4262
4262
  InputBase: () => InputBase,
4263
+ ItemList: () => ItemList,
4263
4264
  LineClamp: () => LineClamp2,
4264
4265
  Link: () => Link2,
4265
4266
  List: () => List,
4266
4267
  ListItem: () => ListItem,
4267
4268
  Modal: () => Modal2,
4268
4269
  ModalTab: () => ModalTab,
4269
- ModalTabContainer: () => ModalTabContainer,
4270
4270
  ModalTabs: () => ModalTabs,
4271
4271
  MultiInput: () => MultiInput,
4272
4272
  MultiInputBase: () => MultiInputBase,
@@ -4325,13 +4325,16 @@ __export(molecules_exports, {
4325
4325
  asPopoverButton: () => asPopoverButton,
4326
4326
  asTabItem: () => asTabItem,
4327
4327
  cellProps: () => cellProps,
4328
+ columnHasSort: () => columnHasSort,
4328
4329
  columnIsFieldColumn: () => columnIsFieldColumn,
4329
4330
  createTabsComponent: () => createTabsComponent,
4330
4331
  isOnSortChangedDirection: () => isOnSortChangedDirection,
4332
+ sortByColumn: () => sortByColumn,
4331
4333
  toSortDirection: () => toSortDirection,
4332
4334
  usePagination: () => usePagination,
4333
4335
  usePopoverContext: () => usePopoverContext,
4334
4336
  useScrollTarget: () => useScrollTarget,
4337
+ useSortState: () => useSortState,
4335
4338
  useStaticInfiniteList: () => useStaticInfiniteList,
4336
4339
  useTableSelect: () => useTableSelect,
4337
4340
  useTableSort: () => useTableSort,
@@ -4350,7 +4353,6 @@ import {
4350
4353
  } from "@iconify/react";
4351
4354
 
4352
4355
  // src/utils/tailwind.ts
4353
- import { composeRenderProps } from "react-aria-components";
4354
4356
  import originalClassNames from "classnames";
4355
4357
  function cleanClassNames(classNames13) {
4356
4358
  const tokens = classNames13.split(/\s+/);
@@ -4519,7 +4521,7 @@ var ActionItem = React2.forwardRef(
4519
4521
  return /* @__PURE__ */ React2.createElement("li", __spreadValues({
4520
4522
  ref,
4521
4523
  role: "button",
4522
- onClick: () => !props.disabled && (onClick == null ? void 0 : onClick()),
4524
+ onClick: () => !props.disabled && onClick(),
4523
4525
  className: classNames(className, "flex items-center gap-x-3 typography-small", {
4524
4526
  "p-3": !dense,
4525
4527
  "px-3 py-2": dense,
@@ -4839,7 +4841,7 @@ function useMeasure() {
4839
4841
  return;
4840
4842
  }
4841
4843
  const observer = new window.ResizeObserver(([entry]) => {
4842
- if (entry == null ? void 0 : entry.contentRect) {
4844
+ if (entry.contentRect) {
4843
4845
  setRect({
4844
4846
  width: entry.contentRect.width,
4845
4847
  height: entry.contentRect.height
@@ -4863,7 +4865,7 @@ import isUndefined5 from "lodash/isUndefined";
4863
4865
  import React4 from "react";
4864
4866
  var Element = (_a) => {
4865
4867
  var _b = _a, { component } = _b, rest = __objRest(_b, ["component"]);
4866
- const Component = component || "div";
4868
+ const Component = component != null ? component : "div";
4867
4869
  return React4.createElement(Component, rest);
4868
4870
  };
4869
4871
 
@@ -7396,7 +7398,7 @@ var toToast = (_a) => {
7396
7398
  id: id || crypto.randomUUID(),
7397
7399
  variant: variant || "default",
7398
7400
  position: position || "top",
7399
- duration: duration || (variant === "danger" ? Infinity : 5e3)
7401
+ duration: duration != null ? duration : variant === "danger" ? Infinity : 5e3
7400
7402
  });
7401
7403
  };
7402
7404
  var reducer = (state, action) => {
@@ -7461,7 +7463,6 @@ var ToastConsumer = () => {
7461
7463
  dispatch({ type: 1 /* Dismiss */, toastId });
7462
7464
  };
7463
7465
  return /* @__PURE__ */ React14.createElement("div", null, positions.map((position) => {
7464
- var _a;
7465
7466
  return /* @__PURE__ */ React14.createElement(Spacing, {
7466
7467
  gap: "3",
7467
7468
  key: position,
@@ -7476,7 +7477,7 @@ var ToastConsumer = () => {
7476
7477
  transform: isCentered(position) ? "translateX(-50%)" : void 0,
7477
7478
  zIndex: 9e3
7478
7479
  }
7479
- }, /* @__PURE__ */ React14.createElement(Transition, null, (_a = toastsByPosition[position]) == null ? void 0 : _a.map((toast) => /* @__PURE__ */ React14.createElement(ToastComponent, {
7480
+ }, /* @__PURE__ */ React14.createElement(Transition, null, toastsByPosition[position].map((toast) => /* @__PURE__ */ React14.createElement(ToastComponent, {
7480
7481
  key: toast.id,
7481
7482
  toast,
7482
7483
  onDismiss
@@ -8017,12 +8018,15 @@ var AccordionUnanimatedPanel = ({ children, panelId }) => {
8017
8018
  var AccordionSummary = (_a) => {
8018
8019
  var _b = _a, { title, description, toggle, panelId } = _b, rest = __objRest(_b, ["title", "description", "toggle", "panelId"]);
8019
8020
  const id = usePanelContext(panelId);
8020
- return /* @__PURE__ */ React20.createElement(Box.Flex, __spreadValues({
8021
- justifyContent: "space-between",
8021
+ return /* @__PURE__ */ React20.createElement(Box.Flex, __spreadProps(__spreadValues({
8022
8022
  padding: "4",
8023
8023
  id: `${id}-summary`
8024
- }, rest), /* @__PURE__ */ React20.createElement(Typography2, null, title), /* @__PURE__ */ React20.createElement(Typography2.Small, {
8025
- color: "muted"
8024
+ }, rest), {
8025
+ alignItems: "center",
8026
+ colGap: "4"
8027
+ }), /* @__PURE__ */ React20.createElement(Typography2, null, title), /* @__PURE__ */ React20.createElement(Typography2.Small, {
8028
+ color: "muted",
8029
+ className: "grow"
8026
8030
  }, description), toggle);
8027
8031
  };
8028
8032
  var AccordionContainer = (_a) => {
@@ -8256,7 +8260,7 @@ Banner.IllustrationRight = IllustrationRight;
8256
8260
  Banner.IllustrationRight.displayName = "Alert.Banner.IllustrationRight";
8257
8261
 
8258
8262
  // src/utils/link.ts
8259
- var isLink = (action) => action.href !== void 0;
8263
+ var isLink = (action) => "href" in action;
8260
8264
 
8261
8265
  // src/molecules/Alert/Alert.tsx
8262
8266
  var renderActions = (action, dense = false) => action && /* @__PURE__ */ React22.createElement(Alert.Actions, null, !isLink(action) && /* @__PURE__ */ React22.createElement(Button.Ghost, __spreadValues({
@@ -8741,8 +8745,8 @@ var Chip2 = (_a) => {
8741
8745
  role: "button",
8742
8746
  "aria-hidden": false,
8743
8747
  icon: import_cross4.default,
8744
- className: tw({ "cursor-pointer": onClose !== void 0 }),
8745
- onClick: () => onClose == null ? void 0 : onClose()
8748
+ className: tw({ "cursor-pointer": true }),
8749
+ onClick: () => onClose()
8746
8750
  }), locked && /* @__PURE__ */ React30.createElement(InlineIcon, {
8747
8751
  icon: import_lock2.default
8748
8752
  }));
@@ -9104,7 +9108,7 @@ var CardGroup = ({
9104
9108
  const [checked, setChecked] = React38.useState(_checked != null ? _checked : defaultChecked);
9105
9109
  const handleChange = (e) => {
9106
9110
  setChecked(e.value);
9107
- onCheckedChange == null ? void 0 : onCheckedChange(e);
9111
+ onCheckedChange(e);
9108
9112
  };
9109
9113
  return /* @__PURE__ */ React38.createElement(CardGroupContext.Provider, {
9110
9114
  value: { name, checked: checked != null ? checked : defaultChecked, onCheckedChange: handleChange }
@@ -9133,13 +9137,13 @@ var CompactCard = ({
9133
9137
  fullWidth,
9134
9138
  children
9135
9139
  }) => {
9136
- var _a;
9140
+ var _a, _b;
9137
9141
  const ref = useRef3(null);
9138
9142
  const groupContext = useContext4(CardGroupContext);
9139
9143
  const { isFocusVisible } = useFocusVisible();
9140
9144
  const checkable = _checkable != null ? _checkable : Boolean(groupContext);
9141
9145
  const isRadioButton2 = checkable && value && groupContext !== void 0;
9142
- const checkedInGroup = groupContext ? value !== void 0 && (groupContext == null ? void 0 : groupContext.checked) === value : void 0;
9146
+ const checkedInGroup = groupContext ? value !== void 0 && groupContext.checked === value : void 0;
9143
9147
  const controlled = checkedInGroup != null ? checkedInGroup : _checked;
9144
9148
  const onCheckedChange = _onCheckedChange != null ? _onCheckedChange : groupContext == null ? void 0 : groupContext.onCheckedChange;
9145
9149
  const [checked, setChecked] = React39.useState(checkable ? (_a = controlled != null ? controlled : defaultChecked) != null ? _a : false : false);
@@ -9190,7 +9194,7 @@ var CompactCard = ({
9190
9194
  }, children))));
9191
9195
  const commonProps = {
9192
9196
  fullWidth,
9193
- enableMinWidth: Boolean(primaryAction || secondaryAction || chips.length),
9197
+ enableMinWidth: Boolean((_b = primaryAction != null ? primaryAction : secondaryAction) != null ? _b : chips.length),
9194
9198
  disabled
9195
9199
  };
9196
9200
  if (checkable) {
@@ -9206,7 +9210,7 @@ var CompactCard = ({
9206
9210
  className: "Aquarium-Card.Compact"
9207
9211
  }, onClick ? buttonProps : {}), {
9208
9212
  role: onClick ? "button" : void 0
9209
- }), commonProps), commonContent, (primaryAction || secondaryAction) && /* @__PURE__ */ React39.createElement(Card.Actions, {
9213
+ }), commonProps), commonContent, (primaryAction != null ? primaryAction : secondaryAction) && /* @__PURE__ */ React39.createElement(Card.Actions, {
9210
9214
  dense: true
9211
9215
  }, primaryAction && renderAction({ kind: "secondary", dense: true, action: primaryAction }), secondaryAction && renderAction({ kind: "ghost", dense: true, action: secondaryAction })));
9212
9216
  };
@@ -9276,7 +9280,7 @@ var Card2 = ({
9276
9280
  const { isFocusVisible } = useFocusVisible2();
9277
9281
  const checkable = _checkable != null ? _checkable : Boolean(groupContext);
9278
9282
  const isRadioButton2 = Boolean(checkable) && Boolean(value) && groupContext !== void 0;
9279
- const checkedInGroup = groupContext ? value !== void 0 && (groupContext == null ? void 0 : groupContext.checked) === value : void 0;
9283
+ const checkedInGroup = groupContext ? value !== void 0 && groupContext.checked === value : void 0;
9280
9284
  const controlled = checkedInGroup != null ? checkedInGroup : _checked;
9281
9285
  const onCheckedChange = _onCheckedChange != null ? _onCheckedChange : groupContext == null ? void 0 : groupContext.onCheckedChange;
9282
9286
  const [checked, setChecked] = React40.useState(checkable ? (_a = controlled != null ? controlled : defaultChecked) != null ? _a : false : false);
@@ -9341,7 +9345,7 @@ var Card2 = ({
9341
9345
  return /* @__PURE__ */ React40.createElement(Card.Label, __spreadProps(__spreadValues({
9342
9346
  className: "Aquarium-Card.Label"
9343
9347
  }, commonProps), {
9344
- checked: checkable ? checked : void 0,
9348
+ checked,
9345
9349
  modality: isFocusVisible ? "keyboard" : "pointer"
9346
9350
  }), commonContent);
9347
9351
  }
@@ -9351,7 +9355,7 @@ var Card2 = ({
9351
9355
  }, onClick ? buttonProps : {}), {
9352
9356
  role: onClick ? "button" : void 0,
9353
9357
  modality: isFocusVisible ? "keyboard" : "pointer"
9354
- }), commonProps), commonContent, (primaryAction || secondaryAction) && /* @__PURE__ */ React40.createElement(Card.Actions, null, primaryAction && renderAction({ kind: "secondary", dense: true, action: primaryAction }), secondaryAction && renderAction({ kind: "ghost", dense: true, action: secondaryAction })));
9358
+ }), commonProps), commonContent, (primaryAction != null ? primaryAction : secondaryAction) && /* @__PURE__ */ React40.createElement(Card.Actions, null, primaryAction && renderAction({ kind: "secondary", dense: true, action: primaryAction }), secondaryAction && renderAction({ kind: "ghost", dense: true, action: secondaryAction })));
9355
9359
  };
9356
9360
  Card2.Title = Card.Title;
9357
9361
  Card2.Title.displayName = "Card.Title";
@@ -10276,7 +10280,7 @@ var ComboboxBase = (_a) => {
10276
10280
  switch (type) {
10277
10281
  case useCombobox.stateChangeTypes.InputKeyDownEnter:
10278
10282
  case useCombobox.stateChangeTypes.InputBlur: {
10279
- const selectedItem2 = createOption ? createOption == null ? void 0 : createOption(changes.inputValue) : changes.selectedItem;
10283
+ const selectedItem2 = createOption ? createOption(changes.inputValue) : changes.selectedItem;
10280
10284
  const inputValue2 = selectedItem2 ? itemToString(selectedItem2) : "";
10281
10285
  return __spreadProps(__spreadValues({}, changes), {
10282
10286
  inputValue: inputValue2,
@@ -10519,7 +10523,7 @@ var createInput = (displayName, opts = {}) => {
10519
10523
  "readOnly",
10520
10524
  "type"
10521
10525
  ]);
10522
- var _a2;
10526
+ var _a2, _b2;
10523
10527
  const inputType = opts.isSearch ? "search" : opts.isFile ? "file" : type;
10524
10528
  const inputRef = React57.useRef(null);
10525
10529
  useImperativeHandle(ref, () => inputRef.current);
@@ -10560,7 +10564,7 @@ var createInput = (displayName, opts = {}) => {
10560
10564
  getCommonInputStyles({ readOnly, valid }),
10561
10565
  props.className
10562
10566
  )
10563
- })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React57.createElement(InputAdornment, null, /* @__PURE__ */ React57.createElement("button", {
10567
+ })), opts.canReset && ((_b2 = props.value) != null ? _b2 : (_a2 = inputRef.current) == null ? void 0 : _a2.value) && /* @__PURE__ */ React57.createElement(InputAdornment, null, /* @__PURE__ */ React57.createElement("button", {
10564
10568
  "aria-label": "reset search",
10565
10569
  onClick: handleReset
10566
10570
  }, /* @__PURE__ */ React57.createElement(ResetIcon, null))), !opts.canReset && endAdornment && /* @__PURE__ */ React57.createElement(InputAdornment, null, endAdornment));
@@ -10584,10 +10588,11 @@ var SearchInput = createInput("SearchInput", {
10584
10588
  isSearch: true
10585
10589
  });
10586
10590
  var createInputComponent = (displayName, options = {}) => {
10587
- const InputComponentBase = options.input || InputBase;
10591
+ var _a;
10592
+ const InputComponentBase = (_a = options.input) != null ? _a : InputBase;
10588
10593
  const InputComponent = React57.forwardRef((inputProps, ref) => {
10589
10594
  var _b, _c;
10590
- const _a = inputProps, { readOnly = false, value: valueProp, onChange: onChangeProp } = _a, props = __objRest(_a, ["readOnly", "value", "onChange"]);
10595
+ const _a2 = inputProps, { readOnly = false, value: valueProp, onChange: onChangeProp } = _a2, props = __objRest(_a2, ["readOnly", "value", "onChange"]);
10591
10596
  const isControlled = typeof valueProp !== "undefined";
10592
10597
  const [valueState, setValueState] = useState7((_b = props.defaultValue) != null ? _b : "");
10593
10598
  const value = isControlled ? valueProp : valueState;
@@ -10983,19 +10988,22 @@ var initialState = {
10983
10988
  };
10984
10989
  var getPageIndex = (currentPage, pageSize) => currentPage === 0 ? 0 : (currentPage - 1) * pageSize;
10985
10990
  var usePagination = (items, options) => {
10986
- const [currentPage, setCurrentPage] = useState9((options == null ? void 0 : options.initialPage) || initialState.currentPage);
10987
- const [pageSize, setPageSize] = useState9((options == null ? void 0 : options.initialPageSize) || initialState.pageSize);
10991
+ var _a, _b;
10992
+ const [currentPage, setCurrentPage] = useState9((_a = options == null ? void 0 : options.initialPage) != null ? _a : initialState.currentPage);
10993
+ const [pageSize, setPageSize] = useState9((_b = options == null ? void 0 : options.initialPageSize) != null ? _b : initialState.pageSize);
10988
10994
  const totalPages = items.length > 0 ? Math.ceil(items.length / pageSize) : 1;
10989
10995
  const hasPreviousPage = currentPage > 1;
10990
10996
  const hasNextPage = currentPage < totalPages;
10991
10997
  const pageIndex = getPageIndex(currentPage, pageSize);
10992
10998
  const onPageSizeChange = (pageSize2) => {
10999
+ var _a2;
10993
11000
  const newTotalPages = items.length > 0 ? Math.ceil(items.length / pageSize2) : 1;
10994
11001
  setPageSize(pageSize2);
10995
- setCurrentPage(clamp2((options == null ? void 0 : options.initialPage) || initialState.currentPage, 1, newTotalPages));
11002
+ setCurrentPage(clamp2((_a2 = options == null ? void 0 : options.initialPage) != null ? _a2 : initialState.currentPage, 1, newTotalPages));
10996
11003
  };
10997
11004
  useEffect7(() => {
10998
- setCurrentPage(clamp2((options == null ? void 0 : options.initialPage) || initialState.currentPage, 1, totalPages));
11005
+ var _a2;
11006
+ setCurrentPage(clamp2((_a2 = options == null ? void 0 : options.initialPage) != null ? _a2 : initialState.currentPage, 1, totalPages));
10999
11007
  }, [items.length]);
11000
11008
  return [
11001
11009
  items.slice(pageIndex, Math.min(pageIndex + pageSize, items.length)),
@@ -11047,9 +11055,7 @@ var useInView = ({
11047
11055
  );
11048
11056
  observer.observe(target);
11049
11057
  return () => {
11050
- if (target) {
11051
- observer.unobserve(target);
11052
- }
11058
+ observer.unobserve(target);
11053
11059
  };
11054
11060
  }, [ref, skip, root, rootMargin, threshold, onChange]);
11055
11061
  return [ref, state.inView, state.entry];
@@ -11266,6 +11272,19 @@ var DataList = (_a) => {
11266
11272
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11267
11273
  return /* @__PURE__ */ React63.createElement("div", __spreadValues({}, rest));
11268
11274
  };
11275
+ var TreeLine = (_a) => {
11276
+ var _b = _a, { className, style, isLast } = _b, rest = __objRest(_b, ["className", "style", "isLast"]);
11277
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
11278
+ className: classNames(tw("flex justify-start h-full mx-4"), className)
11279
+ }), /* @__PURE__ */ React63.createElement("div", {
11280
+ className: tw("border-l border-default border-dashed flex-1", {
11281
+ "h-full": !isLast,
11282
+ "h-1/2": Boolean(isLast)
11283
+ })
11284
+ }), /* @__PURE__ */ React63.createElement("div", {
11285
+ className: tw("border-t border-default border-dashed self-center w-[18px]")
11286
+ }));
11287
+ };
11269
11288
  var HeadCell = (_a) => {
11270
11289
  var _b = _a, {
11271
11290
  className,
@@ -11315,22 +11334,22 @@ var Row = (_a) => {
11315
11334
  className,
11316
11335
  disabled,
11317
11336
  header,
11318
- subgroup,
11337
+ isGroup,
11319
11338
  active,
11320
- isLast
11339
+ noDivider
11321
11340
  } = _b, rest = __objRest(_b, [
11322
11341
  "className",
11323
11342
  "disabled",
11324
11343
  "header",
11325
- "subgroup",
11344
+ "isGroup",
11326
11345
  "active",
11327
- "isLast"
11346
+ "noDivider"
11328
11347
  ]);
11329
11348
  return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
11330
- role: subgroup ? "rowgroup" : "row"
11349
+ role: isGroup ? "rowgroup" : "row"
11331
11350
  }), { inert: disabled ? "" : void 0 }), {
11332
11351
  className: classNames(tw("contents"), className, {
11333
- "[&>*]:border-b-transparent": isLast,
11352
+ "[&>*]:border-b-transparent": noDivider,
11334
11353
  "children:opacity-70": disabled,
11335
11354
  "[&>*]:bg-primary-active": active,
11336
11355
  "[&>*]:hover:bg-muted": !disabled && !header
@@ -11386,6 +11405,8 @@ DataList.SubGroupSpacing = SubGroupSpacing;
11386
11405
  DataList.SubGroupSpacing.displayName = "DataList.SubGroupSpacing";
11387
11406
  DataList.Row = Row;
11388
11407
  DataList.Row.displayName = "DataList.Row";
11408
+ DataList.TreeLine = TreeLine;
11409
+ DataList.TreeLine.displayName = "DataList.TreeLine";
11389
11410
  var ToolbarContainer = (_a) => {
11390
11411
  var _b = _a, { className, sticky = true } = _b, rest = __objRest(_b, ["className", "sticky"]);
11391
11412
  return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
@@ -11492,7 +11513,7 @@ function useScrollProgress({ containerRef, skip }) {
11492
11513
  },
11493
11514
  pause: skip
11494
11515
  });
11495
- const isContainerUnscrollable = scrollState && scrollState.scrollX === 0 && (scrollState == null ? void 0 : scrollState.scrollXProgress) === 1;
11516
+ const isContainerUnscrollable = scrollState && scrollState.scrollX === 0 && scrollState.scrollXProgress === 1;
11496
11517
  if (!scrollState || isContainerUnscrollable) {
11497
11518
  return null;
11498
11519
  }
@@ -11532,6 +11553,7 @@ var cellProps = (column) => {
11532
11553
  var _a;
11533
11554
  let align;
11534
11555
  switch (column.type) {
11556
+ case "menu":
11535
11557
  case "action":
11536
11558
  case "number": {
11537
11559
  align = "right";
@@ -11551,6 +11573,7 @@ var cellProps = (column) => {
11551
11573
  stickyColumn: column.sticky
11552
11574
  };
11553
11575
  };
11576
+ var columnHasSort = (column) => columnIsFieldColumn(column) && column.sortable || Boolean(column.sort);
11554
11577
  var columnIsFieldColumn = (column) => Boolean(column && column.field);
11555
11578
  function isOnSortChangedDirection(value) {
11556
11579
  return value === void 0 || ["ascending", "descending"].includes(value);
@@ -11558,18 +11581,14 @@ function isOnSortChangedDirection(value) {
11558
11581
 
11559
11582
  // src/utils/table/useTableSort.tsx
11560
11583
  import React65 from "react";
11561
- var useTableSort = ({
11562
- column,
11563
- direction,
11564
- onSortChanged
11565
- } = {}) => {
11584
+ var useTableSort = ({ column, direction, onSortChanged } = {}) => {
11566
11585
  const defaultSort = column ? { column, direction } : void 0;
11567
11586
  const [sort, setSort] = React65.useState(defaultSort);
11568
11587
  const setSortAndEmitOnSortChangedEvent = (sort2) => {
11569
11588
  setSort(sort2);
11570
11589
  if (onSortChanged) {
11571
11590
  if (sort2 && isOnSortChangedDirection(sort2.direction)) {
11572
- onSortChanged({ key: sort2.column.key, direction: sort2 == null ? void 0 : sort2.direction });
11591
+ onSortChanged({ key: sort2.column.key, direction: sort2.direction });
11573
11592
  } else {
11574
11593
  onSortChanged(null);
11575
11594
  }
@@ -11592,7 +11611,7 @@ var useTableSort = ({
11592
11611
  // src/utils/table/utils.ts
11593
11612
  import orderBy2 from "lodash/orderBy";
11594
11613
  var sortRowsBy = (rows, sort) => {
11595
- if (!sort) {
11614
+ if (!sort || !columnHasSort(sort.column)) {
11596
11615
  return rows;
11597
11616
  }
11598
11617
  const sortFunction = sort.column.sort;
@@ -12057,7 +12076,7 @@ var DataListRow = ({
12057
12076
  key: row.id,
12058
12077
  disabled: isRowDisabled,
12059
12078
  active,
12060
- isLast
12079
+ noDivider: isLast
12061
12080
  }, resolvedAdditionalRowProps), {
12062
12081
  style,
12063
12082
  onClick: isRowClickable ? onClick : void 0
@@ -12124,6 +12143,21 @@ var DataListCell = ({
12124
12143
  }
12125
12144
  break;
12126
12145
  }
12146
+ case "menu": {
12147
+ const menuContent = column.menu(row, index);
12148
+ if (!menuContent) {
12149
+ cellContent = null;
12150
+ } else {
12151
+ cellContent = /* @__PURE__ */ React68.createElement(DropdownMenu2, {
12152
+ placement: defaultContextualMenuPlacement,
12153
+ onAction: (action) => column.onAction(action, row, index)
12154
+ }, /* @__PURE__ */ React68.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React68.createElement(Button.Icon, {
12155
+ "aria-label": "action",
12156
+ icon: import_more2.default
12157
+ })), menuContent);
12158
+ }
12159
+ break;
12160
+ }
12127
12161
  default:
12128
12162
  if (column.formatter) {
12129
12163
  cellContent = column.formatter(row[column.field], row, index, rows);
@@ -12204,14 +12238,18 @@ var DataListGroup = (_a) => {
12204
12238
  const hasCustomRowForGroup = isFunction2(getGroupRow);
12205
12239
  if (!areRowsGrouped(groups)) {
12206
12240
  if (groups.length === 0 && groupKey && groupKey !== "undefined") {
12241
+ const emptyGroupContent = renderEmptyGroup(groupKey);
12242
+ if (!emptyGroupContent) {
12243
+ return null;
12244
+ }
12207
12245
  return /* @__PURE__ */ React69.createElement(DataList.Row, {
12208
- isLast: isLastGroup
12246
+ noDivider: isLastGroup
12209
12247
  }, selectable && /* @__PURE__ */ React69.createElement(DataList.Cell, null), /* @__PURE__ */ React69.createElement(DataList.Cell, {
12210
12248
  style: { paddingLeft: `${2 + GAP + level * INDENTATION}px`, gridColumn: `${selectable ? 2 : 1} / -1` }
12211
12249
  }, /* @__PURE__ */ React69.createElement(Typography, {
12212
12250
  variant: "small",
12213
12251
  color: "muted"
12214
- }, renderEmptyGroup(groupKey))));
12252
+ }, emptyGroupContent)));
12215
12253
  }
12216
12254
  return /* @__PURE__ */ React69.createElement(List, {
12217
12255
  items: groups,
@@ -12297,7 +12335,7 @@ var DataListGroup = (_a) => {
12297
12335
  openPanelId
12298
12336
  }, hasCustomRowForGroup && /* @__PURE__ */ React69.createElement(DataList.Row, {
12299
12337
  active: isActiveRow,
12300
- isLast: isLastRow
12338
+ noDivider: isLastRow
12301
12339
  }, selectable && /* @__PURE__ */ React69.createElement(DataList.Cell, null, selectable === "multiple" && /* @__PURE__ */ React69.createElement(Checkbox, {
12302
12340
  "aria-label": getGroupCheckboxLabel(key, group, index, isChecked, rows),
12303
12341
  checked: isChecked,
@@ -12327,7 +12365,7 @@ var DataListGroup = (_a) => {
12327
12365
  menuAriaLabel
12328
12366
  })), !hasCustomRowForGroup && /* @__PURE__ */ React69.createElement(DataList.Row, {
12329
12367
  active: isActiveRow,
12330
- isLast: isLastRow
12368
+ noDivider: isLastRow
12331
12369
  }, selectable === "multiple" && /* @__PURE__ */ React69.createElement(DataList.Cell, null, /* @__PURE__ */ React69.createElement(Checkbox, {
12332
12370
  "aria-label": getGroupCheckboxLabel(key, group, index, isChecked, rows),
12333
12371
  checked: isChecked,
@@ -12343,7 +12381,7 @@ var DataListGroup = (_a) => {
12343
12381
  }), renderGroupName(key, group))), /* @__PURE__ */ React69.createElement(Accordion.UnanimatedPanel, {
12344
12382
  panelId: key
12345
12383
  }, /* @__PURE__ */ React69.createElement(DataList.Row, {
12346
- subgroup: true
12384
+ isGroup: true
12347
12385
  }, /* @__PURE__ */ React69.createElement(DataListGroup, __spreadProps(__spreadValues({
12348
12386
  key,
12349
12387
  groupKey: key,
@@ -12372,7 +12410,7 @@ var DataListSkeleton = ({ columns = ["1", "2", "2", 52], rows = 5 }) => {
12372
12410
  items: [...Array(rows).keys()],
12373
12411
  renderItem: (item, index) => /* @__PURE__ */ React70.createElement(DataList.Row, {
12374
12412
  key: item,
12375
- isLast: index === rows - 1
12413
+ noDivider: index === rows - 1
12376
12414
  }, /* @__PURE__ */ React70.createElement(List, {
12377
12415
  items: columnsAmount,
12378
12416
  renderItem: (key) => /* @__PURE__ */ React70.createElement(DataList.Cell, {
@@ -12409,7 +12447,7 @@ var DataListToolbar = ({
12409
12447
  })
12410
12448
  ))), menu && /* @__PURE__ */ React71.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React71.createElement(DropdownMenu2, {
12411
12449
  placement: defaultContextualMenuPlacement,
12412
- onAction: (key) => onAction == null ? void 0 : onAction(key, selectedRows != null ? selectedRows : []),
12450
+ onAction: (key) => onAction(key, selectedRows != null ? selectedRows : []),
12413
12451
  onOpenChange: onMenuOpenChange
12414
12452
  }, /* @__PURE__ */ React71.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React71.createElement(Button.GhostDropdown, {
12415
12453
  dense: true
@@ -12536,7 +12574,7 @@ var DataList2 = (_a) => {
12536
12574
  const totalSelected = (_b2 = selected == null ? void 0 : selected.length) != null ? _b2 : 0;
12537
12575
  const allEnabledRowIds = compact(
12538
12576
  allRows.map(
12539
- (row, index) => (disabled == null ? void 0 : disabled(row, index, sortedRows)) || (selectionDisabled == null ? void 0 : selectionDisabled(row, index, sortedRows)) ? void 0 : row.id
12577
+ (row, index) => (disabled == null ? void 0 : disabled(row, index, sortedRows)) || selectionDisabled(row, index, sortedRows) ? void 0 : row.id
12540
12578
  )
12541
12579
  );
12542
12580
  const allRowsSelected = totalSelected >= allEnabledRowIds.length;
@@ -12578,7 +12616,7 @@ var DataList2 = (_a) => {
12578
12616
  color: "default",
12579
12617
  "aria-hidden": true
12580
12618
  }), content) : content;
12581
- const cell2 = columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React72.createElement(DataList.SortCell, __spreadValues({
12619
+ const cell2 = columnHasSort(column) ? /* @__PURE__ */ React72.createElement(DataList.SortCell, __spreadValues({
12582
12620
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
12583
12621
  onClick: () => updateSort(column),
12584
12622
  sticky
@@ -12625,7 +12663,7 @@ var DataList2 = (_a) => {
12625
12663
  var _a3;
12626
12664
  const details = rowDetails == null ? void 0 : rowDetails(row, index, sortedRows);
12627
12665
  const isSelected = (_a3 = selected == null ? void 0 : selected.includes(row.id)) != null ? _a3 : false;
12628
- const isSelectionDisabled = selectionDisabled == null ? void 0 : selectionDisabled(row, index, sortedRows);
12666
+ const isSelectionDisabled = selectionDisabled(row, index, sortedRows);
12629
12667
  const isDisabled = disabled == null ? void 0 : disabled(row, index, sortedRows);
12630
12668
  const openPanelId = expandedGroupIds.find((id) => id === row.id.toString()) || null;
12631
12669
  const isLastRow = index === sortedRows.length - 1;
@@ -12842,7 +12880,7 @@ var DataTable = (_a) => {
12842
12880
  color: "default",
12843
12881
  "aria-hidden": true
12844
12882
  }), content) : content;
12845
- const cell2 = columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React75.createElement(Table2.SortCell, __spreadValues({
12883
+ const cell2 = columnHasSort(column) ? /* @__PURE__ */ React75.createElement(Table2.SortCell, __spreadValues({
12846
12884
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
12847
12885
  onClick: () => updateSort(column),
12848
12886
  style: { width: column.width },
@@ -13062,15 +13100,14 @@ var import_calendar2 = __toESM(require_calendar());
13062
13100
 
13063
13101
  // src/molecules/DatePicker/Button.tsx
13064
13102
  import React79 from "react";
13065
- import { Button as AriaButton } from "react-aria-components";
13066
- import { composeRenderProps as composeRenderProps2 } from "react-aria-components";
13103
+ import { Button as AriaButton, composeRenderProps } from "react-aria-components";
13067
13104
  import { tv as tv3 } from "tailwind-variants";
13068
13105
  var button = tv3({
13069
13106
  extend: focusRing
13070
13107
  });
13071
13108
  function Button2(props) {
13072
13109
  return /* @__PURE__ */ React79.createElement(AriaButton, __spreadProps(__spreadValues({}, props), {
13073
- className: composeRenderProps2(props.className, (className, renderProps) => button(__spreadProps(__spreadValues({}, renderProps), { className })))
13110
+ className: composeRenderProps(props.className, (className, renderProps) => button(__spreadProps(__spreadValues({}, renderProps), { className })))
13074
13111
  }));
13075
13112
  }
13076
13113
 
@@ -13182,7 +13219,8 @@ var Popover2 = (_a) => {
13182
13219
  // src/molecules/DatePicker/DatePicker.tsx
13183
13220
  var createDatePickerBase = (variant) => (_a) => {
13184
13221
  var _b = _a, { disabled, valid, granularity, shouldCloseOnSelect } = _b, props = __objRest(_b, ["disabled", "valid", "granularity", "shouldCloseOnSelect"]);
13185
- const hasSomeValue = props.value || props.defaultValue || props.placeholderValue;
13222
+ var _a2, _b2;
13223
+ const hasSomeValue = (_b2 = (_a2 = props.value) != null ? _a2 : props.defaultValue) != null ? _b2 : props.placeholderValue;
13186
13224
  return /* @__PURE__ */ React83.createElement(AriaDatePicker, __spreadProps(__spreadValues({}, props), {
13187
13225
  shouldCloseOnSelect: shouldCloseOnSelect != null ? shouldCloseOnSelect : variant === "date",
13188
13226
  isDisabled: disabled,
@@ -13306,7 +13344,8 @@ var createDateRangePickerBase = (variant) => (_a) => {
13306
13344
  "granularity",
13307
13345
  "shouldCloseOnSelect"
13308
13346
  ]);
13309
- const hasSomeValue = props.value || props.defaultValue || props.placeholderValue;
13347
+ var _a2, _b2;
13348
+ const hasSomeValue = (_b2 = (_a2 = props.value) != null ? _a2 : props.defaultValue) != null ? _b2 : props.placeholderValue;
13310
13349
  return /* @__PURE__ */ React85.createElement(AriaDateRangePicker, __spreadProps(__spreadValues({}, props), {
13311
13350
  shouldCloseOnSelect: shouldCloseOnSelect != null ? shouldCloseOnSelect : variant === "date",
13312
13351
  isDisabled: disabled,
@@ -13540,7 +13579,7 @@ Modal.HeaderImage = (_a) => {
13540
13579
  const { headerImage } = modalStyles({ backgroundImage: Boolean(backgroundImage) });
13541
13580
  return backgroundImage ? /* @__PURE__ */ React86.createElement("img", __spreadProps(__spreadValues({
13542
13581
  "aria-hidden": true,
13543
- src: backgroundImage != null ? backgroundImage : void 0
13582
+ src: backgroundImage
13544
13583
  }, rest), {
13545
13584
  className: headerImage({ className })
13546
13585
  })) : /* @__PURE__ */ React86.createElement("div", {
@@ -13710,7 +13749,6 @@ var TabContainer = (_a) => {
13710
13749
  }), children);
13711
13750
  };
13712
13751
  var ModalTab = Tab;
13713
- var ModalTabContainer = TabContainer;
13714
13752
  var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
13715
13753
  const Tab2 = React89.forwardRef(
13716
13754
  (_a, ref) => {
@@ -14031,7 +14069,7 @@ var Drawer = ({
14031
14069
  const hasTabs = isComponentType(onlyChild, Tabs);
14032
14070
  return /* @__PURE__ */ React90.createElement(AriaModalOverlay, {
14033
14071
  isOpen: !hidden,
14034
- onOpenChange: (isOpen) => !isOpen && (onClose == null ? void 0 : onClose()),
14072
+ onOpenChange: (isOpen) => !isOpen && onClose(),
14035
14073
  isDismissable: false,
14036
14074
  isKeyboardDismissDisabled: !closeOnEsc,
14037
14075
  className: styles.overlay({ className: "Aquarium-Drawer" })
@@ -14058,13 +14096,13 @@ var Drawer = ({
14058
14096
  className: tw("[&>div:first-child]:px-5 grow flex flex-col overflow-y-auto")
14059
14097
  })) : /* @__PURE__ */ React90.createElement(Modal.Body, {
14060
14098
  tabIndex: 0,
14061
- noFooter: !(secondaryActions || primaryAction)
14062
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React90.createElement(Modal.Footer, null, /* @__PURE__ */ React90.createElement(Modal.Actions, {
14099
+ noFooter: !(secondaryActions != null ? secondaryActions : primaryAction)
14100
+ }, children), (secondaryActions != null ? secondaryActions : primaryAction) && /* @__PURE__ */ React90.createElement(Modal.Footer, null, /* @__PURE__ */ React90.createElement(Modal.Actions, {
14063
14101
  className: size === "sm" ? tw("flex-col") : void 0
14064
14102
  }, size !== "sm" && menu && /* @__PURE__ */ React90.createElement(Box.Flex, {
14065
14103
  alignItems: "center"
14066
14104
  }, /* @__PURE__ */ React90.createElement(DropdownMenu2, {
14067
- onAction: (action) => onAction == null ? void 0 : onAction(action),
14105
+ onAction: (action) => onAction(action),
14068
14106
  onOpenChange: onMenuOpenChange
14069
14107
  }, /* @__PURE__ */ React90.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React90.createElement(Button.Icon, {
14070
14108
  "aria-label": (_a = menuAriaLabel != null ? menuAriaLabel : menuLabel) != null ? _a : "Context menu",
@@ -14081,7 +14119,7 @@ var Drawer = ({
14081
14119
  };
14082
14120
  var DrawerTabs = createTabsComponent(ModalTab, TabItem, "DrawerTabs", (children, selected) => /* @__PURE__ */ React90.createElement(Modal.Body, {
14083
14121
  className: tw("h-full")
14084
- }, /* @__PURE__ */ React90.createElement(ModalTabContainer, null, children.find(
14122
+ }, /* @__PURE__ */ React90.createElement(TabContainer, null, children.find(
14085
14123
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
14086
14124
  ))));
14087
14125
 
@@ -14229,8 +14267,8 @@ var DropdownMenu3 = ({
14229
14267
  const menuRef = React93.useRef(null);
14230
14268
  React93.useEffect(() => {
14231
14269
  const id = setTimeout(() => {
14232
- var _a, _b, _c;
14233
- return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
14270
+ var _a;
14271
+ return ((_a = menuRef.current) == null ? void 0 : _a.children[0]).focus();
14234
14272
  });
14235
14273
  return () => clearTimeout(id);
14236
14274
  }, [menuRef.current]);
@@ -14418,7 +14456,7 @@ var EmptyState = ({
14418
14456
  htmlTag: "h2"
14419
14457
  }, title), (description || children) && /* @__PURE__ */ React94.createElement(Box, {
14420
14458
  marginTop: "5"
14421
- }, /* @__PURE__ */ React94.createElement(Typography2.Default, null, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React94.createElement(Box.Flex, {
14459
+ }, /* @__PURE__ */ React94.createElement(Typography2.Default, null, children || description)), (secondaryAction != null ? secondaryAction : primaryAction) && /* @__PURE__ */ React94.createElement(Box.Flex, {
14422
14460
  marginTop: "7",
14423
14461
  gap: "4",
14424
14462
  justifyContent: "center",
@@ -14620,7 +14658,7 @@ var Modal2 = ({
14620
14658
  const hasTabs = isComponentType(children, ModalTabs);
14621
14659
  return /* @__PURE__ */ React102.createElement(AriaModalOverlay2, {
14622
14660
  isOpen: open,
14623
- onOpenChange: (isOpen) => !isOpen && (onClose == null ? void 0 : onClose()),
14661
+ onOpenChange: (isOpen) => !isOpen && onClose(),
14624
14662
  isDismissable: false,
14625
14663
  isKeyboardDismissDisabled: !closeOnEsc,
14626
14664
  className: styles.overlay({ className: "Aquarium-Modal" })
@@ -14644,8 +14682,8 @@ var Modal2 = ({
14644
14682
  kind: "dialog"
14645
14683
  }, title), subtitle && /* @__PURE__ */ React102.createElement(Modal.Subtitle, null, subtitle))), hasTabs ? React102.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React102.createElement(Modal.Body, {
14646
14684
  tabIndex: 0,
14647
- noFooter: !(secondaryActions || primaryAction)
14648
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React102.createElement(Modal.Footer, null, /* @__PURE__ */ React102.createElement(Modal.Actions, null, secondaryActions && castArray4(secondaryActions).filter(Boolean).map((_a) => {
14685
+ noFooter: !(secondaryActions != null ? secondaryActions : primaryAction)
14686
+ }, children), (secondaryActions != null ? secondaryActions : primaryAction) && /* @__PURE__ */ React102.createElement(Modal.Footer, null, /* @__PURE__ */ React102.createElement(Modal.Actions, null, secondaryActions && castArray4(secondaryActions).filter(Boolean).map((_a) => {
14649
14687
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
14650
14688
  return /* @__PURE__ */ React102.createElement(Button.Secondary, __spreadValues({
14651
14689
  key: text
@@ -14660,7 +14698,7 @@ var ModalTabs = createTabsComponent(
14660
14698
  "ModalTabs",
14661
14699
  (children, selected, props) => /* @__PURE__ */ React102.createElement(Modal.Body, {
14662
14700
  maxHeight: props.maxHeight
14663
- }, /* @__PURE__ */ React102.createElement(ModalTabContainer, null, children.find(
14701
+ }, /* @__PURE__ */ React102.createElement(TabContainer, null, children.find(
14664
14702
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
14665
14703
  )))
14666
14704
  );
@@ -14774,7 +14812,7 @@ var MultiInputBase = (_a) => {
14774
14812
  }
14775
14813
  }, [JSON.stringify(value)]);
14776
14814
  const handleKeyDown = (e) => {
14777
- var _a3, _b2, _c;
14815
+ var _a3, _b2;
14778
14816
  switch (e.key) {
14779
14817
  case "Enter":
14780
14818
  case " ": {
@@ -14787,8 +14825,8 @@ var MultiInputBase = (_a) => {
14787
14825
  break;
14788
14826
  }
14789
14827
  case "Backspace": {
14790
- const length = (_a3 = items == null ? void 0 : items.length) != null ? _a3 : 0;
14791
- if (inline && !((_c = (_b2 = inputRef.current) == null ? void 0 : _b2.value) == null ? void 0 : _c.length) && length > 0) {
14828
+ const length = (_a3 = items.length) != null ? _a3 : 0;
14829
+ if (inline && !((_b2 = inputRef.current) == null ? void 0 : _b2.value.length) && length > 0) {
14792
14830
  handleRemoveItem(length - 1);
14793
14831
  }
14794
14832
  break;
@@ -14823,12 +14861,13 @@ var MultiInputBase = (_a) => {
14823
14861
  onChange == null ? void 0 : onChange(updated);
14824
14862
  };
14825
14863
  const handlePaste = (e) => {
14864
+ var _a3;
14826
14865
  e.preventDefault();
14827
14866
  const copiedText = e.clipboardData.getData("text/plain");
14828
14867
  const spaceSeparated = copiedText.split(" ");
14829
14868
  const newLineSeparated = copiedText.split("\n");
14830
14869
  const commaSeparated = copiedText.split(",");
14831
- const separatedText = [spaceSeparated, newLineSeparated, commaSeparated].filter((items2) => items2.length > 1).shift() || [copiedText];
14870
+ const separatedText = (_a3 = [spaceSeparated, newLineSeparated, commaSeparated].filter((items2) => items2.length > 1).shift()) != null ? _a3 : [copiedText];
14832
14871
  const itemsToAdd = separatedText.map((value2) => value2.trim()).filter(identity);
14833
14872
  handleAddItem(itemsToAdd);
14834
14873
  };
@@ -14844,7 +14883,7 @@ var MultiInputBase = (_a) => {
14844
14883
  }
14845
14884
  onBlur == null ? void 0 : onBlur();
14846
14885
  };
14847
- const renderChips = () => items == null ? void 0 : items.map((item, index) => {
14886
+ const renderChips = () => items.map((item, index) => {
14848
14887
  var _a3;
14849
14888
  return /* @__PURE__ */ React104.createElement(InputChip, {
14850
14889
  key: `${itemToString(item)}.${index}`,
@@ -14873,7 +14912,7 @@ var MultiInputBase = (_a) => {
14873
14912
  autoFocus,
14874
14913
  disabled,
14875
14914
  readOnly,
14876
- placeholder: !inline || (items == null ? void 0 : items.length) === 0 ? placeholder : "",
14915
+ placeholder: !inline || items.length === 0 ? placeholder : "",
14877
14916
  onKeyDown: handleKeyDown,
14878
14917
  onKeyUp: handleKeyUp,
14879
14918
  onKeyPress: handleKeyUp,
@@ -15476,6 +15515,13 @@ var CommonPageHeader = ({
15476
15515
  onMenuOpenChange,
15477
15516
  isSubHeader = false
15478
15517
  }) => {
15518
+ var _a, _b;
15519
+ const actions = [primaryAction, ...castArray6(secondaryActions)].filter(Boolean);
15520
+ if (actions.length > 2) {
15521
+ throw new Error(
15522
+ "Limit the combined `primaryAction` and `secondaryActions` to 2 actions. Use the `menu` prop for additional actions."
15523
+ );
15524
+ }
15479
15525
  return /* @__PURE__ */ React110.createElement(PageHeader, {
15480
15526
  className: "Aquarium-PageHeader"
15481
15527
  }, /* @__PURE__ */ React110.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React110.createElement(Box, {
@@ -15493,11 +15539,11 @@ var CommonPageHeader = ({
15493
15539
  key: chip,
15494
15540
  dense: true,
15495
15541
  text: chip
15496
- }))), subtitle && /* @__PURE__ */ React110.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions || primaryAction || secondaryAction || menu) && /* @__PURE__ */ React110.createElement(PageHeader.Actions, null, menu && /* @__PURE__ */ React110.createElement(Box.Flex, {
15542
+ }))), subtitle && /* @__PURE__ */ React110.createElement(PageHeader.Subtitle, null, subtitle)))), ((_b = (_a = secondaryActions != null ? secondaryActions : primaryAction) != null ? _a : secondaryAction) != null ? _b : menu) && /* @__PURE__ */ React110.createElement(PageHeader.Actions, null, menu && /* @__PURE__ */ React110.createElement(Box.Flex, {
15497
15543
  alignItems: "center"
15498
15544
  }, /* @__PURE__ */ React110.createElement(DropdownMenu2, {
15499
15545
  placement: defaultContextualMenuPlacement,
15500
- onAction: (action) => onAction == null ? void 0 : onAction(action),
15546
+ onAction: (action) => onAction(action),
15501
15547
  onOpenChange: onMenuOpenChange
15502
15548
  }, /* @__PURE__ */ React110.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React110.createElement(Button.Icon, {
15503
15549
  "aria-label": menuAriaLabel,
@@ -16088,7 +16134,7 @@ var Section4 = (props) => {
16088
16134
  className: tw("row-start-2", { "col-start-2": _collapsible })
16089
16135
  }, /* @__PURE__ */ React121.createElement(LineClamp2, {
16090
16136
  lines: 1
16091
- }, subtitle))), !isCollapsed && /* @__PURE__ */ React121.createElement(Section3.Actions, null, menu && /* @__PURE__ */ React121.createElement(Box.Flex, {
16137
+ }, subtitle))), !isCollapsed && /* @__PURE__ */ React121.createElement(Section3.Actions, null, props.switch && /* @__PURE__ */ React121.createElement(Switch2, __spreadValues({}, props.switch)), menu && /* @__PURE__ */ React121.createElement(Box.Flex, {
16092
16138
  alignItems: "center"
16093
16139
  }, /* @__PURE__ */ React121.createElement(DropdownMenu2, {
16094
16140
  onAction: (action) => onAction == null ? void 0 : onAction(action),
@@ -16097,7 +16143,7 @@ var Section4 = (props) => {
16097
16143
  }, /* @__PURE__ */ React121.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React121.createElement(Button.Icon, {
16098
16144
  "aria-label": menuAriaLabel,
16099
16145
  icon: import_more6.default
16100
- })), menu)), props.actions && castArray7(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.switch && /* @__PURE__ */ React121.createElement(Switch2, __spreadValues({}, props.switch)), props.select && /* @__PURE__ */ React121.createElement(SelectBase, __spreadValues({
16146
+ })), menu)), props.actions && castArray7(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.select && /* @__PURE__ */ React121.createElement(SelectBase, __spreadValues({
16101
16147
  "aria-labelledby": titleId
16102
16148
  }, props.select)))), !hasTabs && !isCollapsed && /* @__PURE__ */ React121.createElement(animated6.div, {
16103
16149
  className: tw(`h-[1px]`),
@@ -16535,10 +16581,33 @@ Timeline2.Skeleton.displayName = "Timeline.Skeleton";
16535
16581
  import React129 from "react";
16536
16582
  var TimePicker = (props) => /* @__PURE__ */ React129.createElement(TimeField, __spreadValues({}, props));
16537
16583
 
16538
- // src/utils/table/useTableSelect.ts
16584
+ // src/utils/table/sortByColumn.ts
16585
+ var sortByColumn = (items, column, sortState) => {
16586
+ const sortedColumn = column.find((column2) => column2.headerName === (sortState == null ? void 0 : sortState.headerName));
16587
+ if (sortState && sortedColumn && columnHasSort(sortedColumn)) {
16588
+ const sortFunction = sortedColumn.sort;
16589
+ if (sortFunction) {
16590
+ const ascending = [...items].sort((a, b) => sortFunction(a, b, sortState.direction));
16591
+ if (sortState.direction === "descending") {
16592
+ return ascending.reverse();
16593
+ } else {
16594
+ return ascending;
16595
+ }
16596
+ }
16597
+ return items;
16598
+ } else {
16599
+ return items;
16600
+ }
16601
+ };
16602
+
16603
+ // src/utils/table/useSortState.ts
16539
16604
  import React130 from "react";
16605
+ var useSortState = (initialSortState) => React130.useState(initialSortState);
16606
+
16607
+ // src/utils/table/useTableSelect.ts
16608
+ import React131 from "react";
16540
16609
  var useTableSelect = (data, { key }) => {
16541
- const [selected, setSelected] = React130.useState([]);
16610
+ const [selected, setSelected] = React131.useState([]);
16542
16611
  const allSelected = selected.length === data.length;
16543
16612
  const isSelected = (dot) => selected.includes(dot[key]);
16544
16613
  const selectAll = () => setSelected(data.map((dot) => dot[key]));
@@ -16562,6 +16631,94 @@ var useTableSelect = (data, { key }) => {
16562
16631
  };
16563
16632
  };
16564
16633
 
16634
+ // src/molecules/ItemList/ItemList.tsx
16635
+ import React132 from "react";
16636
+ var ItemList = (_a) => {
16637
+ var _b = _a, {
16638
+ columns,
16639
+ items,
16640
+ onSortChanged,
16641
+ sticky
16642
+ } = _b, infiniteProps = __objRest(_b, [
16643
+ "columns",
16644
+ "items",
16645
+ "onSortChanged",
16646
+ "sticky"
16647
+ ]);
16648
+ const templateColumns = columns.map((column) => {
16649
+ var _a2;
16650
+ return (_a2 = column.width) != null ? _a2 : "auto";
16651
+ });
16652
+ const [sortState, setSortState] = useSortState();
16653
+ const sortedItems = onSortChanged ? items : sortByColumn(items, columns, sortState);
16654
+ return /* @__PURE__ */ React132.createElement(Template, {
16655
+ className: "Aquarium-ItemList",
16656
+ columns: templateColumns,
16657
+ role: "table"
16658
+ }, /* @__PURE__ */ React132.createElement(DataList.Row, {
16659
+ header: true
16660
+ }, columns.map((column) => {
16661
+ if (columnHasSort(column)) {
16662
+ return /* @__PURE__ */ React132.createElement(DataList.SortCell, __spreadValues({
16663
+ sticky,
16664
+ direction: (sortState == null ? void 0 : sortState.headerName) === column.headerName ? sortState.direction : "none",
16665
+ onClick: () => {
16666
+ setSortState((currentState) => {
16667
+ const newState = currentState && currentState.headerName === column.headerName ? currentState.direction === "ascending" ? { headerName: column.headerName, direction: "descending" } : void 0 : { headerName: column.headerName, direction: "ascending" };
16668
+ onSortChanged == null ? void 0 : onSortChanged(newState);
16669
+ return newState;
16670
+ });
16671
+ }
16672
+ }, cellProps(column)), column.headerName);
16673
+ }
16674
+ return /* @__PURE__ */ React132.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
16675
+ sticky
16676
+ }), column.headerName);
16677
+ })), /* @__PURE__ */ React132.createElement(Rows, __spreadValues({
16678
+ columns,
16679
+ items: sortedItems,
16680
+ level: 0
16681
+ }, infiniteProps)));
16682
+ };
16683
+ var Rows = (_a) => {
16684
+ var _b = _a, { columns, items, level, isLastGroup } = _b, infiniteProps = __objRest(_b, ["columns", "items", "level", "isLastGroup"]);
16685
+ return /* @__PURE__ */ React132.createElement(List, __spreadProps(__spreadValues({}, level === 0 ? infiniteProps : {}), {
16686
+ items,
16687
+ renderItem: (item, itemIndex) => {
16688
+ const hasSubItems = item.items && item.items.length > 0;
16689
+ const isLastItem = itemIndex === items.length - 1;
16690
+ const noDivider = level === 0 && isLastItem || level > 0 && (isLastGroup || !isLastItem) || hasSubItems;
16691
+ return /* @__PURE__ */ React132.createElement(React132.Fragment, {
16692
+ key: item.id
16693
+ }, /* @__PURE__ */ React132.createElement(DataList.Row, {
16694
+ noDivider
16695
+ }, /* @__PURE__ */ React132.createElement(List, {
16696
+ items: columns,
16697
+ renderItem: (column, columnIndex) => /* @__PURE__ */ React132.createElement(DataList.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
16698
+ style: level > 1 && columnIndex === 0 ? { paddingLeft: (level - 1) * 60 } : void 0
16699
+ }), level > 0 && columnIndex === 0 && /* @__PURE__ */ React132.createElement(DataList.TreeLine, {
16700
+ isLast: itemIndex === items.length - 1
16701
+ }), /* @__PURE__ */ React132.createElement(DataListCell, {
16702
+ column,
16703
+ row: item,
16704
+ index: columnIndex,
16705
+ rows: items
16706
+ }))
16707
+ })), item.items && /* @__PURE__ */ React132.createElement(WithGroup, {
16708
+ level
16709
+ }, /* @__PURE__ */ React132.createElement(Rows, {
16710
+ columns,
16711
+ items: item.items,
16712
+ level: level + 1,
16713
+ isLastGroup: level === 0 && itemIndex === items.length - 1 || isLastGroup
16714
+ })));
16715
+ }
16716
+ }));
16717
+ };
16718
+ var WithGroup = ({ level, children }) => level === 0 ? /* @__PURE__ */ React132.createElement(DataList.Row, {
16719
+ isGroup: true
16720
+ }, children) : children;
16721
+
16565
16722
  // src/molecules/index.ts
16566
16723
  var SelectItem = Select.Item;
16567
16724
 
@@ -16624,7 +16781,7 @@ function calcBottomLeftPosition(triggerRect, contentRect, padding) {
16624
16781
  y: triggerRect.top + triggerRect.height + padding
16625
16782
  };
16626
16783
  }
16627
- function calcBottomRightPosition(triggerRect, contentRect, padding) {
16784
+ function calcBottomRightPosition(triggerRect, _contentRect, padding) {
16628
16785
  return {
16629
16786
  x: triggerRect.left + triggerRect.width + padding,
16630
16787
  y: triggerRect.top + triggerRect.height + padding
@@ -16737,6 +16894,7 @@ export {
16737
16894
  InlineIcon,
16738
16895
  Input2 as Input,
16739
16896
  InputBase,
16897
+ ItemList,
16740
16898
  Label2 as Label,
16741
16899
  LabelControl,
16742
16900
  LineClamp2 as LineClamp,
@@ -16745,7 +16903,6 @@ export {
16745
16903
  ListItem,
16746
16904
  Modal2 as Modal,
16747
16905
  ModalTab,
16748
- ModalTabContainer,
16749
16906
  ModalTabs,
16750
16907
  MultiInput,
16751
16908
  MultiInputBase,
@@ -16815,6 +16972,7 @@ export {
16815
16972
  calcTopPosition,
16816
16973
  calcTopRightPosition,
16817
16974
  cellProps,
16975
+ columnHasSort,
16818
16976
  columnIsFieldColumn,
16819
16977
  createComponent,
16820
16978
  createMountPointElement,
@@ -16825,10 +16983,12 @@ export {
16825
16983
  isOnSortChangedDirection,
16826
16984
  isOutOfBounds,
16827
16985
  placementOrder,
16986
+ sortByColumn,
16828
16987
  toSortDirection,
16829
16988
  usePagination,
16830
16989
  usePopoverContext,
16831
16990
  useScrollTarget,
16991
+ useSortState,
16832
16992
  useStaticInfiniteList,
16833
16993
  useTableSelect,
16834
16994
  useTableSort,