@aivenio/aquarium 1.42.0 → 1.44.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 (107) hide show
  1. package/dist/_variables.scss +1 -1
  2. package/dist/atoms.cjs +537 -283
  3. package/dist/atoms.mjs +536 -283
  4. package/dist/charts.cjs +360 -17
  5. package/dist/charts.mjs +351 -16
  6. package/dist/src/atoms/Banner/Banner.d.ts +1 -1
  7. package/dist/src/atoms/Banner/Banner.js +1 -1
  8. package/dist/src/atoms/Card/Card.d.ts +9 -0
  9. package/dist/src/atoms/Card/Card.js +18 -1
  10. package/dist/src/charts/AreaChart/AreaChart.d.ts +12 -0
  11. package/dist/src/charts/AreaChart/AreaChart.js +46 -0
  12. package/dist/src/charts/BarChart/BarChart.d.ts +2 -0
  13. package/dist/src/charts/BarChart/BarChart.js +6 -1
  14. package/dist/src/charts/Cell/Cell.d.ts +2 -0
  15. package/dist/src/charts/Cell/Cell.js +2 -0
  16. package/dist/src/charts/LineChart/LineChart.d.ts +12 -0
  17. package/dist/src/charts/LineChart/LineChart.js +39 -0
  18. package/dist/src/charts/PieChart/ChartValue.d.ts +8 -0
  19. package/dist/src/charts/PieChart/ChartValue.js +10 -0
  20. package/dist/src/charts/PieChart/DoughnutChart.d.ts +15 -0
  21. package/dist/src/charts/PieChart/DoughnutChart.js +31 -0
  22. package/dist/src/charts/PieChart/PieChart.d.ts +13 -0
  23. package/dist/src/charts/PieChart/PieChart.js +17 -0
  24. package/dist/src/charts/PieChart/TooltipContentWrapper.d.ts +9 -0
  25. package/dist/src/charts/PieChart/TooltipContentWrapper.js +31 -0
  26. package/dist/src/charts/PieChart/renderPieChildren.d.ts +2 -0
  27. package/dist/src/charts/PieChart/renderPieChildren.js +30 -0
  28. package/dist/src/charts/PieChart/renderScaledChartValue.d.ts +8 -0
  29. package/dist/src/charts/PieChart/renderScaledChartValue.js +15 -0
  30. package/dist/src/charts/Reference/Reference.d.ts +10 -0
  31. package/dist/src/charts/Reference/Reference.js +9 -0
  32. package/dist/src/charts/Tooltip/Tooltip.d.ts +6 -3
  33. package/dist/src/charts/Tooltip/Tooltip.js +19 -7
  34. package/dist/src/charts/index.d.ts +6 -0
  35. package/dist/src/charts/index.js +7 -1
  36. package/dist/src/charts/lib/utils.d.ts +6 -1
  37. package/dist/src/charts/lib/utils.js +9 -2
  38. package/dist/src/icons/appUsers.d.ts +9 -0
  39. package/dist/src/icons/appUsers.js +11 -0
  40. package/dist/src/icons/deliveryLocation.d.ts +9 -0
  41. package/dist/src/icons/deliveryLocation.js +11 -0
  42. package/dist/src/icons/gitDiff.d.ts +9 -0
  43. package/dist/src/icons/gitDiff.js +11 -0
  44. package/dist/src/icons/index.d.ts +11 -0
  45. package/dist/src/icons/index.js +12 -1
  46. package/dist/src/icons/managedUsers.d.ts +9 -0
  47. package/dist/src/icons/managedUsers.js +11 -0
  48. package/dist/src/icons/orgAdmin.d.ts +9 -0
  49. package/dist/src/icons/orgAdmin.js +11 -0
  50. package/dist/src/icons/orgUnit.d.ts +9 -0
  51. package/dist/src/icons/orgUnit.js +11 -0
  52. package/dist/src/icons/proPlans.d.ts +9 -0
  53. package/dist/src/icons/proPlans.js +11 -0
  54. package/dist/src/icons/queriesEditor.d.ts +9 -0
  55. package/dist/src/icons/queriesEditor.js +11 -0
  56. package/dist/src/icons/queriesStatistics.d.ts +9 -0
  57. package/dist/src/icons/queriesStatistics.js +11 -0
  58. package/dist/src/icons/save.d.ts +9 -0
  59. package/dist/src/icons/save.js +11 -0
  60. package/dist/src/icons/tools.d.ts +9 -0
  61. package/dist/src/icons/tools.js +11 -0
  62. package/dist/src/molecules/Accordion/Accordion.d.ts +23 -5
  63. package/dist/src/molecules/Accordion/Accordion.js +41 -17
  64. package/dist/src/molecules/Alert/Alert.js +7 -6
  65. package/dist/src/molecules/Box/Box.d.ts +9 -36
  66. package/dist/src/molecules/Box/Box.js +4 -2
  67. package/dist/src/molecules/Card/Card.d.ts +4 -2
  68. package/dist/src/molecules/Card/Card.js +10 -11
  69. package/dist/src/molecules/Card/Compact.d.ts +3 -2
  70. package/dist/src/molecules/Card/Compact.js +9 -12
  71. package/dist/src/molecules/Card/types.d.ts +12 -2
  72. package/dist/src/molecules/CheckboxGroup/CheckboxGroup.js +3 -3
  73. package/dist/src/molecules/Combobox/Combobox.js +7 -6
  74. package/dist/src/molecules/DataList/DataList.d.ts +11 -2
  75. package/dist/src/molecules/DataList/DataList.js +9 -9
  76. package/dist/src/molecules/DropdownMenu/DropdownMenu.js +3 -2
  77. package/dist/src/molecules/Element/Element.d.ts +1 -1
  78. package/dist/src/molecules/Element/Element.js +1 -1
  79. package/dist/src/molecules/EmptyState/EmptyState.js +4 -4
  80. package/dist/src/molecules/Grid/Grid.js +2 -1
  81. package/dist/src/molecules/Input/Input.js +8 -7
  82. package/dist/src/molecules/ListItem/ListItem.js +2 -2
  83. package/dist/src/molecules/MultiInput/MultiInput.js +7 -6
  84. package/dist/src/molecules/MultiSelect/MultiSelect.js +7 -6
  85. package/dist/src/molecules/NativeSelect/NativeSelect.js +8 -6
  86. package/dist/src/molecules/PageHeader/PageHeader.js +3 -3
  87. package/dist/src/molecules/Popover/PopoverOverlay.d.ts +1 -1
  88. package/dist/src/molecules/RadioButtonGroup/RadioButtonGroup.js +3 -3
  89. package/dist/src/molecules/Section/Section.d.ts +10 -3
  90. package/dist/src/molecules/Section/Section.js +9 -7
  91. package/dist/src/molecules/Select/Select.js +7 -6
  92. package/dist/src/molecules/Skeleton/Skeleton.d.ts +1 -1
  93. package/dist/src/molecules/Skeleton/Skeleton.js +16 -4
  94. package/dist/src/molecules/Spacing/Spacing.d.ts +1 -1
  95. package/dist/src/molecules/Spacing/Spacing.js +1 -1
  96. package/dist/src/molecules/SwitchGroup/SwitchGroup.js +3 -3
  97. package/dist/src/molecules/Textarea/Textarea.js +8 -7
  98. package/dist/src/utils/Blueprint.js +3 -5
  99. package/dist/src/utils/actions.d.ts +8 -1
  100. package/dist/src/utils/actions.js +3 -3
  101. package/dist/src/utils/setupTests.js +7 -1
  102. package/dist/styles.css +64 -14
  103. package/dist/system.cjs +918 -648
  104. package/dist/system.mjs +906 -636
  105. package/dist/tsconfig.module.tsbuildinfo +1 -1
  106. package/dist/types/tailwindGenerated.d.ts +1 -1
  107. package/package.json +2 -2
package/dist/system.mjs CHANGED
@@ -980,6 +980,22 @@ var require_announcement = __commonJS({
980
980
  }
981
981
  });
982
982
 
983
+ // src/icons/appUsers.js
984
+ var require_appUsers = __commonJS({
985
+ "src/icons/appUsers.js"(exports) {
986
+ "use strict";
987
+ var data = {
988
+ "body": '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><path stroke-width="1.5" d="M11.167 14.458H7.042c-1.28 0-1.92 0-2.44.158a3.667 3.667 0 00-2.444 2.445C2 17.58 2 18.22 2 19.5M13.458 7.125a4.125 4.125 0 11-8.25 0 4.125 4.125 0 018.25 0Z"/><path d="M16.865 17.598a1.1 1.1 0 100-2.2 1.1 1.1 0 000 2.2Z"/><path d="M19.33 17.498a.55.55 0 00.11.606l.02.02a.665.665 0 01-.471 1.139.667.667 0 01-.471-.196l-.02-.02a.55.55 0 00-.607-.11.55.55 0 00-.333.503v.057a.666.666 0 11-1.333 0v-.03a.55.55 0 00-.36-.503.55.55 0 00-.606.11l-.02.02a.665.665 0 01-1.138-.472.667.667 0 01.195-.471l.02-.02a.55.55 0 00.11-.607.55.55 0 00-.503-.333h-.057a.667.667 0 110-1.332h.03a.55.55 0 00.503-.36.551.551 0 00-.11-.607l-.02-.02a.667.667 0 11.943-.942l.02.02a.55.55 0 00.607.11h.027a.55.55 0 00.333-.504V13.5a.667.667 0 011.332 0v.03a.55.55 0 00.334.503.55.55 0 00.606-.11l.02-.02a.667.667 0 11.943.943l-.02.02a.55.55 0 00-.11.606v.027a.55.55 0 00.503.333h.057a.666.666 0 010 1.333h-.03a.55.55 0 00-.503.333Z"/></g>',
989
+ "left": 0,
990
+ "top": 0,
991
+ "width": 22,
992
+ "height": 22
993
+ };
994
+ exports.__esModule = true;
995
+ exports.default = data;
996
+ }
997
+ });
998
+
983
999
  // src/icons/applications.js
984
1000
  var require_applications = __commonJS({
985
1001
  "src/icons/applications.js"(exports) {
@@ -1988,6 +2004,22 @@ var require_delete = __commonJS({
1988
2004
  }
1989
2005
  });
1990
2006
 
2007
+ // src/icons/deliveryLocation.js
2008
+ var require_deliveryLocation = __commonJS({
2009
+ "src/icons/deliveryLocation.js"(exports) {
2010
+ "use strict";
2011
+ var data = {
2012
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.75 13.262C3.053 14.012 2 15.054 2 16.209c0 2.279 4.104 4.125 9.167 4.125 5.062 0 9.166-1.846 9.166-4.125 0-1.154-1.053-2.197-2.75-2.945M16.667 7.5c0 3.725-4.125 5.5-5.5 8.25-1.375-2.75-5.5-4.525-5.5-8.25a5.5 5.5 0 0111 0Zm-4.584 0a.917.917 0 11-1.833 0 .917.917 0 011.833 0Z"/>',
2013
+ "left": 0,
2014
+ "top": 0,
2015
+ "width": 22,
2016
+ "height": 22
2017
+ };
2018
+ exports.__esModule = true;
2019
+ exports.default = data;
2020
+ }
2021
+ });
2022
+
1991
2023
  // src/icons/document.js
1992
2024
  var require_document = __commonJS({
1993
2025
  "src/icons/document.js"(exports) {
@@ -2484,6 +2516,22 @@ var require_gitCommit = __commonJS({
2484
2516
  }
2485
2517
  });
2486
2518
 
2519
+ // src/icons/gitDiff.js
2520
+ var require_gitDiff = __commonJS({
2521
+ "src/icons/gitDiff.js"(exports) {
2522
+ "use strict";
2523
+ var data = {
2524
+ "body": '<path fill="currentColor" fill-rule="evenodd" d="M12.348 7.824a.75.75 0 101.06-1.06l-.991-.992h2.96a1.067 1.067 0 011.067 1.067v5.692a3.477 3.477 0 101.5 0V6.84a2.567 2.567 0 00-2.567-2.567h-2.96l.991-.992a.75.75 0 00-1.06-1.06L10.076 4.49a.75.75 0 000 1.061l2.272 2.272Zm2.87 8.102a1.976 1.976 0 113.952 0 1.976 1.976 0 01-3.952 0Zm-6.327-2.347a.75.75 0 10-1.06 1.06l.991.992H6.294a1.067 1.067 0 01-1.068-1.068V8.871A3.477 3.477 0 004.476 2a3.476 3.476 0 00-.75 6.871v5.692a2.567 2.567 0 002.568 2.568h2.528l-.991.991a.75.75 0 001.06 1.06l2.272-2.27a.75.75 0 000-1.062l-2.272-2.27ZM6.452 5.476a1.976 1.976 0 11-3.952 0 1.976 1.976 0 013.952 0Z" clip-rule="evenodd"/>',
2525
+ "left": 0,
2526
+ "top": 0,
2527
+ "width": 22,
2528
+ "height": 22
2529
+ };
2530
+ exports.__esModule = true;
2531
+ exports.default = data;
2532
+ }
2533
+ });
2534
+
2487
2535
  // src/icons/gitMerge.js
2488
2536
  var require_gitMerge = __commonJS({
2489
2537
  "src/icons/gitMerge.js"(exports) {
@@ -3076,6 +3124,22 @@ var require_logOut = __commonJS({
3076
3124
  }
3077
3125
  });
3078
3126
 
3127
+ // src/icons/managedUsers.js
3128
+ var require_managedUsers = __commonJS({
3129
+ "src/icons/managedUsers.js"(exports) {
3130
+ "use strict";
3131
+ var data = {
3132
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.417 14.458H7.042c-1.28 0-1.92 0-2.44.158a3.667 3.667 0 00-2.444 2.445C2 17.58 2 18.22 2 19.5M13.458 7.125a4.125 4.125 0 11-8.25 0 4.125 4.125 0 018.25 0ZM10.25 19.5l2.843-.812c.136-.04.204-.059.268-.088a.911.911 0 00.16-.094c.056-.041.106-.091.206-.191l5.919-5.92a1.62 1.62 0 00-2.292-2.29l-5.919 5.918c-.1.1-.15.15-.191.206a.911.911 0 00-.094.16c-.03.064-.049.132-.088.268L10.25 19.5Z"/>',
3133
+ "left": 0,
3134
+ "top": 0,
3135
+ "width": 22,
3136
+ "height": 22
3137
+ };
3138
+ exports.__esModule = true;
3139
+ exports.default = data;
3140
+ }
3141
+ });
3142
+
3079
3143
  // src/icons/manual.js
3080
3144
  var require_manual = __commonJS({
3081
3145
  "src/icons/manual.js"(exports) {
@@ -3380,6 +3444,38 @@ var require_office = __commonJS({
3380
3444
  }
3381
3445
  });
3382
3446
 
3447
+ // src/icons/orgAdmin.js
3448
+ var require_orgAdmin = __commonJS({
3449
+ "src/icons/orgAdmin.js"(exports) {
3450
+ "use strict";
3451
+ var data = {
3452
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6.508 3.27a9.167 9.167 0 0113.825 7.988M3.266 6.515A9.124 9.124 0 002 11.167a9.169 9.169 0 006.875 8.877m10.274-4.367a9.186 9.186 0 01-5.69 4.367M13.081 6.01a5.5 5.5 0 00-7.069 7.082m10.31-3.842a5.5 5.5 0 01-7.06 7.08m1.904-6.996V13"/>',
3453
+ "left": 0,
3454
+ "top": 0,
3455
+ "width": 22,
3456
+ "height": 22
3457
+ };
3458
+ exports.__esModule = true;
3459
+ exports.default = data;
3460
+ }
3461
+ });
3462
+
3463
+ // src/icons/orgUnit.js
3464
+ var require_orgUnit = __commonJS({
3465
+ "src/icons/orgUnit.js"(exports) {
3466
+ "use strict";
3467
+ var data = {
3468
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.708 6.417h4.584m-4.584 3.666h4.584M8.708 13.75h4.584m3.208 5.5V5.683c0-1.026 0-1.54-.2-1.932a1.833 1.833 0 00-.801-.801c-.392-.2-.905-.2-1.932-.2H8.433c-1.026 0-1.54 0-1.932.2a1.833 1.833 0 00-.801.801c-.2.392-.2.906-.2 1.932V19.25m12.833 0H3.667"/>',
3469
+ "left": 0,
3470
+ "top": 0,
3471
+ "width": 22,
3472
+ "height": 22
3473
+ };
3474
+ exports.__esModule = true;
3475
+ exports.default = data;
3476
+ }
3477
+ });
3478
+
3383
3479
  // src/icons/outdated.js
3384
3480
  var require_outdated = __commonJS({
3385
3481
  "src/icons/outdated.js"(exports) {
@@ -3636,6 +3732,22 @@ var require_power = __commonJS({
3636
3732
  }
3637
3733
  });
3638
3734
 
3735
+ // src/icons/proPlans.js
3736
+ var require_proPlans = __commonJS({
3737
+ "src/icons/proPlans.js"(exports) {
3738
+ "use strict";
3739
+ var data = {
3740
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.292 20.333V15.75m0-9.167V2M2 4.292h4.583M2 18.042h4.583m5.5-15.125-1.59 4.133c-.258.672-.387 1.008-.588 1.29a2.75 2.75 0 01-.648.648c-.282.201-.618.33-1.29.589l-4.134 1.59 4.133 1.59c.673.258 1.009.387 1.291.588.25.178.47.397.648.648.2.282.33.618.589 1.29l1.59 4.134 1.589-4.134c.258-.672.388-1.008.589-1.29.178-.25.397-.47.647-.648.283-.2.62-.33 1.291-.589l4.133-1.59L16.2 9.578c-.672-.259-1.008-.388-1.29-.589a2.75 2.75 0 01-.648-.647c-.201-.283-.33-.62-.589-1.291l-1.59-4.133Z"/>',
3741
+ "left": 0,
3742
+ "top": 0,
3743
+ "width": 22,
3744
+ "height": 22
3745
+ };
3746
+ exports.__esModule = true;
3747
+ exports.default = data;
3748
+ }
3749
+ });
3750
+
3639
3751
  // src/icons/projects.js
3640
3752
  var require_projects = __commonJS({
3641
3753
  "src/icons/projects.js"(exports) {
@@ -3716,6 +3828,38 @@ var require_puzzlePiece = __commonJS({
3716
3828
  }
3717
3829
  });
3718
3830
 
3831
+ // src/icons/queriesEditor.js
3832
+ var require_queriesEditor = __commonJS({
3833
+ "src/icons/queriesEditor.js"(exports) {
3834
+ "use strict";
3835
+ var data = {
3836
+ "body": '<g fill="none"><path fill="currentColor" d="m14 19.992.75.044-.75-.044Zm.281.19.289.693-.289-.692Zm1.877-.783.609.438-.609-.438Zm-.001 0 .289.693-.289-.692Zm-2.04-1.39.609.439-.609-.439Zm0 .003.748.044-.749-.044Zm3.233-4.488.608.439-.608-.439Zm2.042 1.39-.609-.44.609.44Zm-2.65-1.828-3.233 4.485 1.217.877 3.232-4.485-1.216-.877Zm.025 6.751L20 15.352l-1.217-.877-3.233 4.485 1.217.877Zm-3.4-1.868-.115 1.98 1.497.087.116-1.98-1.498-.087Zm1.203 2.906 1.876-.783-.578-1.384-1.876.783.578 1.384Zm-1.318-.927c-.043.736.702 1.183 1.318.927l-.578-1.384a.55.55 0 01.757.545l-1.497-.088Zm2.298-.988a.747.747 0 01.318-.252l.578 1.384a.752.752 0 00.32-.255l-1.216-.877Zm-2.041-1.39a.755.755 0 00-.142.399l1.498.087a.743.743 0 01-.14.392l-1.216-.877Zm6.006-4.973a2.026 2.026 0 00-2.773.489l1.216.877a.526.526 0 01.713-.126l.844-1.24Zm-.844 1.24a.445.445 0 01.112.638l1.217.877a1.945 1.945 0 00-.485-2.755l-.844 1.24Z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M19.25 4.583c0 1.52-3.694 2.75-8.25 2.75s-8.25-1.23-8.25-2.75m16.5 0c0-1.518-3.694-2.75-8.25-2.75s-8.25 1.232-8.25 2.75m16.5 0V9M2.75 4.583v12.834c0 1.521 3.667 2.75 8.25 2.75M19.25 8.91c0 1.522-3.667 2.75-8.25 2.75s-8.25-1.228-8.25-2.75M11 15.987c-4.583 0-8.25-1.229-8.25-2.75"/></g>',
3837
+ "left": 0,
3838
+ "top": 0,
3839
+ "width": 22,
3840
+ "height": 22
3841
+ };
3842
+ exports.__esModule = true;
3843
+ exports.default = data;
3844
+ }
3845
+ });
3846
+
3847
+ // src/icons/queriesStatistics.js
3848
+ var require_queriesStatistics = __commonJS({
3849
+ "src/icons/queriesStatistics.js"(exports) {
3850
+ "use strict";
3851
+ var data = {
3852
+ "body": '<path fill="currentColor" fill-rule="evenodd" d="M3.5 4.583c0-.051.03-.22.363-.481.323-.255.838-.517 1.54-.752C6.802 2.884 8.78 2.583 11 2.583c2.22 0 4.199.301 5.596.767.703.235 1.218.497 1.541.752.332.262.363.43.363.481 0 .052-.03.22-.363.482-.323.255-.838.517-1.54.751-1.398.466-3.377.767-5.597.767-2.22 0-4.199-.3-5.596-.767-.703-.234-1.218-.496-1.541-.751-.332-.262-.363-.43-.363-.482ZM17.07 7.24a8.024 8.024 0 001.43-.619v2.29c0 .055-.032.224-.36.484-.321.254-.833.516-1.534.75-1.394.466-3.372.766-5.606.766s-4.212-.3-5.606-.766c-.701-.234-1.213-.496-1.534-.75-.328-.26-.36-.43-.36-.484V6.62c.416.238.901.443 1.43.62 1.587.529 3.734.843 6.07.843 2.336 0 4.483-.314 6.07-.844ZM4.92 11.567a7.978 7.978 0 01-1.419-.615v2.285c0 .044.018.155.193.334.179.183.477.388.917.592.876.407 2.165.741 3.727.924.829.097 1.725.15 2.663.15a.75.75 0 010 1.5c-.994 0-1.948-.056-2.837-.16-1.655-.194-3.115-.556-4.185-1.053a6.391 6.391 0 01-.478-.246v2.139c0 .054.032.223.36.483.321.255.833.517 1.534.75 1.394.466 3.372.767 5.606.767a.75.75 0 010 1.5c-2.35 0-4.496-.314-6.081-.843-.79-.264-1.48-.594-1.99-.998-.502-.398-.929-.953-.929-1.66V4.584c0-.708.431-1.263.934-1.66.511-.402 1.205-.732 1.995-.996 1.588-.53 3.735-.844 6.071-.844s4.483.315 6.07.844c.791.264 1.485.594 1.996.997.503.396.934.951.934 1.66V8.91c0 .706-.427 1.262-.929 1.66-.51.403-1.2.734-1.99.997-1.585.53-3.732.843-6.081.843-2.35 0-4.496-.313-6.081-.843ZM17.45 14.7a.75.75 0 00-1.5 0v5.5a.75.75 0 001.5 0v-5.5Zm-3.45.75a.75.75 0 01.75.75v4a.75.75 0 01-1.5 0v-4a.75.75 0 01.75-.75Zm6.05-2.25a.75.75 0 00-1.5 0v7a.75.75 0 001.5 0v-7Z" clip-rule="evenodd"/>',
3853
+ "left": 0,
3854
+ "top": 0,
3855
+ "width": 22,
3856
+ "height": 22
3857
+ };
3858
+ exports.__esModule = true;
3859
+ exports.default = data;
3860
+ }
3861
+ });
3862
+
3719
3863
  // src/icons/queries.js
3720
3864
  var require_queries = __commonJS({
3721
3865
  "src/icons/queries.js"(exports) {
@@ -3860,6 +4004,22 @@ var require_roadmap = __commonJS({
3860
4004
  }
3861
4005
  });
3862
4006
 
4007
+ // src/icons/save.js
4008
+ var require_save = __commonJS({
4009
+ "src/icons/save.js"(exports) {
4010
+ "use strict";
4011
+ var data = {
4012
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6.417 2.75v3.117c0 .513 0 .77.1.966a.917.917 0 00.4.4c.196.1.453.1.966.1h6.234c.513 0 .77 0 .966-.1a.917.917 0 00.4-.4c.1-.196.1-.453.1-.966v-2.2m0 15.583v-5.867c0-.513 0-.77-.1-.966a.917.917 0 00-.4-.4c-.196-.1-.453-.1-.966-.1H7.883c-.513 0-.77 0-.966.1a.917.917 0 00-.4.4c-.1.196-.1.453-.1.966v5.867M19.25 8.548v6.302c0 1.54 0 2.31-.3 2.899a2.751 2.751 0 01-1.201 1.201c-.589.3-1.359.3-2.899.3h-7.7c-1.54 0-2.31 0-2.898-.3a2.75 2.75 0 01-1.202-1.2c-.3-.589-.3-1.359-.3-2.899v-7.7c0-1.54 0-2.31.3-2.898A2.75 2.75 0 014.252 3.05c.588-.3 1.358-.3 2.898-.3h6.302c.448 0 .672 0 .883.05.187.046.366.12.53.22.185.114.344.272.66.59l2.866 2.864c.317.317.476.476.589.66.1.165.174.344.22.53.05.212.05.436.05.884Z"/>',
4013
+ "left": 0,
4014
+ "top": 0,
4015
+ "width": 22,
4016
+ "height": 22
4017
+ };
4018
+ exports.__esModule = true;
4019
+ exports.default = data;
4020
+ }
4021
+ });
4022
+
3863
4023
  // src/icons/saved.js
3864
4024
  var require_saved = __commonJS({
3865
4025
  "src/icons/saved.js"(exports) {
@@ -4308,6 +4468,22 @@ var require_timelineLineChart = __commonJS({
4308
4468
  }
4309
4469
  });
4310
4470
 
4471
+ // src/icons/tools.js
4472
+ var require_tools = __commonJS({
4473
+ "src/icons/tools.js"(exports) {
4474
+ "use strict";
4475
+ var data = {
4476
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m5.667 5.667 4.125 4.125M5.667 5.667h-2.75L2 2.917 2.917 2l2.75.917v2.75ZM17.82 2.679l-2.409 2.409c-.363.363-.544.544-.612.754a.916.916 0 000 .566c.068.21.25.391.612.754l.218.218c.363.363.544.544.753.612.184.06.383.06.567 0 .21-.068.39-.25.754-.612l2.253-2.254a5.042 5.042 0 01-5.646 6.861c-.446-.087-.669-.13-.804-.117a.766.766 0 00-.341.104c-.12.063-.24.184-.48.424l-6.561 6.56a1.945 1.945 0 11-2.75-2.75l6.56-6.56c.24-.24.36-.36.425-.48a.766.766 0 00.104-.342c.013-.135-.03-.358-.119-.803A5.042 5.042 0 0117.82 2.68Zm-6.654 11.238 5.041 5.041a1.945 1.945 0 102.75-2.75l-4.147-4.147a5.029 5.029 0 01-.857-.157c-.357-.098-.748-.027-1.01.235l-1.777 1.778Z"/>',
4477
+ "left": 0,
4478
+ "top": 0,
4479
+ "width": 22,
4480
+ "height": 22
4481
+ };
4482
+ exports.__esModule = true;
4483
+ exports.default = data;
4484
+ }
4485
+ });
4486
+
4311
4487
  // src/icons/trash.js
4312
4488
  var require_trash = __commonJS({
4313
4489
  "src/icons/trash.js"(exports) {
@@ -4782,7 +4958,7 @@ var Select = {
4782
4958
 
4783
4959
  // src/molecules/Alert/Alert.tsx
4784
4960
  import React18 from "react";
4785
- import { useId } from "react-aria";
4961
+ import { useId } from "@react-aria/utils";
4786
4962
  import omit from "lodash/omit";
4787
4963
 
4788
4964
  // src/molecules/Button/Button.tsx
@@ -5577,7 +5753,11 @@ var Box = (_a) => {
5577
5753
  style: __spreadValues(__spreadValues({}, styles), style)
5578
5754
  }, rest));
5579
5755
  };
5580
- Box.Flex = createSimpleComponent(Box, { display: "flex" }, "Box.Flex");
5756
+ var FlexBox = (props) => /* @__PURE__ */ React5.createElement(Box, __spreadValues({
5757
+ display: "flex"
5758
+ }, props));
5759
+ FlexBox.displayName = "Box.Flex";
5760
+ Box.Flex = FlexBox;
5581
5761
  var BorderBox = createSimpleComponent(
5582
5762
  Box,
5583
5763
  { className: "rounded border", borderColor: "grey-10" },
@@ -5670,6 +5850,7 @@ var import_alignmentVerticalCenter = __toESM(require_alignmentVerticalCenter());
5670
5850
  var import_amexCard = __toESM(require_amexCard());
5671
5851
  var import_annotation = __toESM(require_annotation());
5672
5852
  var import_announcement = __toESM(require_announcement());
5853
+ var import_appUsers = __toESM(require_appUsers());
5673
5854
  var import_applications = __toESM(require_applications());
5674
5855
  var import_archive = __toESM(require_archive());
5675
5856
  var import_arrowCircleDown = __toESM(require_arrowCircleDown());
@@ -5735,6 +5916,7 @@ var import_dataflow02 = __toESM(require_dataflow02());
5735
5916
  var import_dataflow03 = __toESM(require_dataflow03());
5736
5917
  var import_dbBackup = __toESM(require_dbBackup());
5737
5918
  var import_delete = __toESM(require_delete());
5919
+ var import_deliveryLocation = __toESM(require_deliveryLocation());
5738
5920
  var import_document = __toESM(require_document());
5739
5921
  var import_dot = __toESM(require_dot());
5740
5922
  var import_doubleCaretHorizontal = __toESM(require_doubleCaretHorizontal());
@@ -5766,6 +5948,7 @@ var import_following = __toESM(require_following());
5766
5948
  var import_gift = __toESM(require_gift());
5767
5949
  var import_gitBranch = __toESM(require_gitBranch());
5768
5950
  var import_gitCommit = __toESM(require_gitCommit());
5951
+ var import_gitDiff = __toESM(require_gitDiff());
5769
5952
  var import_gitMerge = __toESM(require_gitMerge());
5770
5953
  var import_gitNewBranch = __toESM(require_gitNewBranch());
5771
5954
  var import_gitPull = __toESM(require_gitPull());
@@ -5803,6 +5986,7 @@ var import_loading = __toESM(require_loading());
5803
5986
  var import_lock = __toESM(require_lock());
5804
5987
  var import_logIn = __toESM(require_logIn());
5805
5988
  var import_logOut = __toESM(require_logOut());
5989
+ var import_managedUsers = __toESM(require_managedUsers());
5806
5990
  var import_manual = __toESM(require_manual());
5807
5991
  var import_mapMarker = __toESM(require_mapMarker());
5808
5992
  var import_map = __toESM(require_map());
@@ -5822,6 +6006,8 @@ var import_nodes = __toESM(require_nodes());
5822
6006
  var import_notificationsUpdated = __toESM(require_notificationsUpdated());
5823
6007
  var import_notifications = __toESM(require_notifications());
5824
6008
  var import_office = __toESM(require_office());
6009
+ var import_orgAdmin = __toESM(require_orgAdmin());
6010
+ var import_orgUnit = __toESM(require_orgUnit());
5825
6011
  var import_outdated = __toESM(require_outdated());
5826
6012
  var import_packageCheck = __toESM(require_packageCheck());
5827
6013
  var import_packageSearch = __toESM(require_packageSearch());
@@ -5838,11 +6024,14 @@ var import_plusCircle = __toESM(require_plusCircle());
5838
6024
  var import_plus = __toESM(require_plus());
5839
6025
  var import_pools = __toESM(require_pools());
5840
6026
  var import_power = __toESM(require_power());
6027
+ var import_proPlans = __toESM(require_proPlans());
5841
6028
  var import_projects = __toESM(require_projects());
5842
6029
  var import_properties = __toESM(require_properties());
5843
6030
  var import_property = __toESM(require_property());
5844
6031
  var import_pulse = __toESM(require_pulse());
5845
6032
  var import_puzzlePiece = __toESM(require_puzzlePiece());
6033
+ var import_queriesEditor = __toESM(require_queriesEditor());
6034
+ var import_queriesStatistics = __toESM(require_queriesStatistics());
5846
6035
  var import_queries = __toESM(require_queries());
5847
6036
  var import_questionMark = __toESM(require_questionMark());
5848
6037
  var import_recoverySwap = __toESM(require_recoverySwap());
@@ -5852,6 +6041,7 @@ var import_repeat = __toESM(require_repeat());
5852
6041
  var import_replicationFlow = __toESM(require_replicationFlow());
5853
6042
  var import_reset = __toESM(require_reset());
5854
6043
  var import_roadmap = __toESM(require_roadmap());
6044
+ var import_save = __toESM(require_save());
5855
6045
  var import_saved = __toESM(require_saved());
5856
6046
  var import_scatterPlot = __toESM(require_scatterPlot());
5857
6047
  var import_search2 = __toESM(require_search());
@@ -5882,6 +6072,7 @@ var import_time = __toESM(require_time());
5882
6072
  var import_timelineAreaChart = __toESM(require_timelineAreaChart());
5883
6073
  var import_timelineBarChart = __toESM(require_timelineBarChart());
5884
6074
  var import_timelineLineChart = __toESM(require_timelineLineChart());
6075
+ var import_tools = __toESM(require_tools());
5885
6076
  var import_trash = __toESM(require_trash());
5886
6077
  var import_unlock = __toESM(require_unlock());
5887
6078
  var import_unpin = __toESM(require_unpin());
@@ -6868,17 +7059,21 @@ var isLink = (action) => action.href !== void 0;
6868
7059
 
6869
7060
  // src/molecules/Alert/Alert.tsx
6870
7061
  var Alert2 = ({ description, type, title, onDismiss, children, action }) => {
6871
- const id = useId();
7062
+ const descriptionID = useId();
7063
+ const titleID = useId();
6872
7064
  return /* @__PURE__ */ React18.createElement(Alert, {
6873
7065
  className: "Aquarium-Alert",
6874
7066
  type,
6875
7067
  dense: Boolean(title),
6876
- "aria-describedby": id
7068
+ "aria-describedby": descriptionID,
7069
+ "aria-labelledby": title ? titleID : void 0
6877
7070
  }, /* @__PURE__ */ React18.createElement(Alert.Icon, {
6878
7071
  type,
6879
7072
  dense: Boolean(title)
6880
- }), title && /* @__PURE__ */ React18.createElement(Alert.Title, null, title), /* @__PURE__ */ React18.createElement(Alert.Description, {
6881
- id
7073
+ }), title && /* @__PURE__ */ React18.createElement(Alert.Title, {
7074
+ id: titleID
7075
+ }, title), /* @__PURE__ */ React18.createElement(Alert.Description, {
7076
+ id: descriptionID
6882
7077
  }, children || description), action && /* @__PURE__ */ React18.createElement(Alert.Actions, null, !isLink(action) && /* @__PURE__ */ React18.createElement(Button.Ghost, __spreadValues({
6883
7078
  dense: true
6884
7079
  }, omit(action, "text")), action.text), isLink(action) && /* @__PURE__ */ React18.createElement(Button.ExternalLink, __spreadValues({
@@ -6896,20 +7091,33 @@ import React20 from "react";
6896
7091
  import React19 from "react";
6897
7092
  import isNumber from "lodash/isNumber";
6898
7093
  import isUndefined7 from "lodash/isUndefined";
6899
- var Skeleton = ({
6900
- width,
6901
- height,
6902
- display = "block",
6903
- className,
6904
- animate = true,
6905
- rounded = false
6906
- }) => {
7094
+ var Skeleton = (_a) => {
7095
+ var _b = _a, {
7096
+ width,
7097
+ height,
7098
+ display = "block",
7099
+ className,
7100
+ animate = true,
7101
+ rounded = false,
7102
+ style
7103
+ } = _b, rest = __objRest(_b, [
7104
+ "width",
7105
+ "height",
7106
+ "display",
7107
+ "className",
7108
+ "animate",
7109
+ "rounded",
7110
+ "style"
7111
+ ]);
6907
7112
  const styles = {
6908
7113
  width: isNumber(width) ? `${width}px` : width,
6909
7114
  height: isNumber(height) ? `${height}px` : height
6910
7115
  };
6911
- return /* @__PURE__ */ React19.createElement("div", {
6912
- style: styles,
7116
+ return /* @__PURE__ */ React19.createElement("div", __spreadProps(__spreadValues({
7117
+ "aria-label": "Loading..."
7118
+ }, rest), {
7119
+ style: __spreadValues(__spreadValues({}, styles), style),
7120
+ role: "progressbar",
6913
7121
  className: classNames(
6914
7122
  "Aquarium-Skeleton",
6915
7123
  tw("bg-grey-5", {
@@ -6921,7 +7129,7 @@ var Skeleton = ({
6921
7129
  }),
6922
7130
  className
6923
7131
  )
6924
- });
7132
+ }));
6925
7133
  };
6926
7134
 
6927
7135
  // src/molecules/Avatar/Avatar.tsx
@@ -7214,9 +7422,8 @@ var ActiveCrumb = asCrumb("span", "ActiveCrumb", { isActive: true });
7214
7422
  Breadcrumbs.Crumb = Crumb;
7215
7423
 
7216
7424
  // src/molecules/Card/Card.tsx
7217
- import React31, { useRef as useRef3 } from "react";
7425
+ import React32, { useRef as useRef3 } from "react";
7218
7426
  import { useButton as useButton2 } from "@react-aria/button";
7219
- import omit4 from "lodash/omit";
7220
7427
 
7221
7428
  // src/molecules/Chip/Chip.tsx
7222
7429
  import React26 from "react";
@@ -7461,12 +7668,28 @@ Typography2.SmallTextBold = (_a) => {
7461
7668
  };
7462
7669
 
7463
7670
  // src/atoms/Card/Card.tsx
7464
- import React28 from "react";
7671
+ import React29 from "react";
7465
7672
  import isNumber3 from "lodash/isNumber";
7466
- var Card = React28.forwardRef(
7673
+
7674
+ // src/atoms/LineClamp/LineClamp.tsx
7675
+ import React28 from "react";
7676
+ var LineClamp = React28.forwardRef(
7677
+ (_a, ref) => {
7678
+ var _b = _a, { lines = 1, clamped = true, children, className, wordBreak = "break-words" } = _b, props = __objRest(_b, ["lines", "clamped", "children", "className", "wordBreak"]);
7679
+ return /* @__PURE__ */ React28.createElement("div", __spreadValues({
7680
+ ref,
7681
+ className: classNames(className, wordBreak === "break-words" ? "break-words" : "break-all", {
7682
+ [`line-clamp-${lines}`]: clamped
7683
+ })
7684
+ }, props), children);
7685
+ }
7686
+ );
7687
+
7688
+ // src/atoms/Card/Card.tsx
7689
+ var Card = React29.forwardRef(
7467
7690
  (_a, ref) => {
7468
7691
  var _b = _a, { disabled, fullWidth, enableMinWidth = true, clickable, className, children } = _b, rest = __objRest(_b, ["disabled", "fullWidth", "enableMinWidth", "clickable", "className", "children"]);
7469
- return /* @__PURE__ */ React28.createElement("div", __spreadProps(__spreadValues({
7692
+ return /* @__PURE__ */ React29.createElement("div", __spreadProps(__spreadValues({
7470
7693
  ref
7471
7694
  }, rest), {
7472
7695
  className: classNames(
@@ -7484,14 +7707,14 @@ var Card = React28.forwardRef(
7484
7707
  );
7485
7708
  var ColorHighlight = (_a) => {
7486
7709
  var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
7487
- return /* @__PURE__ */ React28.createElement(Box, __spreadProps(__spreadValues({}, rest), {
7710
+ return /* @__PURE__ */ React29.createElement(Box, __spreadProps(__spreadValues({}, rest), {
7488
7711
  backgroundColor: color,
7489
7712
  className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
7490
7713
  }));
7491
7714
  };
7492
7715
  var ImageContainer = (_a) => {
7493
7716
  var _b = _a, { className, fullSize } = _b, rest = __objRest(_b, ["className", "fullSize"]);
7494
- return /* @__PURE__ */ React28.createElement("div", __spreadProps(__spreadValues({}, rest), {
7717
+ return /* @__PURE__ */ React29.createElement("div", __spreadProps(__spreadValues({}, rest), {
7495
7718
  className: classNames(
7496
7719
  tw("-mx-4", {
7497
7720
  "-mt-4": Boolean(fullSize)
@@ -7501,7 +7724,7 @@ var ImageContainer = (_a) => {
7501
7724
  }));
7502
7725
  };
7503
7726
  var classes = "w-full bg-cover object-cover";
7504
- var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__ */ React28.createElement("img", {
7727
+ var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__ */ React29.createElement("img", {
7505
7728
  src: image,
7506
7729
  alt: imageAlt,
7507
7730
  className: tw(classes, {
@@ -7510,42 +7733,73 @@ var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__
7510
7733
  }),
7511
7734
  style: { height: isNumber3(imageHeight) ? `${imageHeight}px` : imageHeight }
7512
7735
  });
7736
+ var Title = (props) => /* @__PURE__ */ React29.createElement(Box.Flex, __spreadValues({
7737
+ component: "div",
7738
+ alignItems: "center",
7739
+ gap: "2"
7740
+ }, props));
7513
7741
  var Content = (_a) => {
7514
7742
  var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
7515
- return /* @__PURE__ */ React28.createElement("div", __spreadProps(__spreadValues({}, rest), {
7743
+ return /* @__PURE__ */ React29.createElement("div", __spreadProps(__spreadValues({}, rest), {
7516
7744
  className: classNames(tw("flex flex-col", { "gap-4": !dense }), className)
7517
7745
  }));
7518
7746
  };
7519
7747
  var Actions = (_a) => {
7520
7748
  var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
7521
- return /* @__PURE__ */ React28.createElement("div", __spreadProps(__spreadValues({}, rest), {
7749
+ return /* @__PURE__ */ React29.createElement("div", __spreadProps(__spreadValues({}, rest), {
7522
7750
  className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className)
7523
7751
  }));
7524
7752
  };
7753
+ Card.Title = Title;
7525
7754
  Card.Content = Content;
7526
7755
  Card.Actions = Actions;
7527
7756
  Card.ImageContainer = ImageContainer;
7528
7757
  Card.Image = Image;
7529
7758
  Card.ColorHiglight = ColorHighlight;
7530
-
7531
- // src/atoms/LineClamp/LineClamp.tsx
7532
- import React29 from "react";
7533
- var LineClamp = React29.forwardRef(
7534
- (_a, ref) => {
7535
- var _b = _a, { lines = 1, clamped = true, children, className, wordBreak = "break-words" } = _b, props = __objRest(_b, ["lines", "clamped", "children", "className", "wordBreak"]);
7536
- return /* @__PURE__ */ React29.createElement("div", __spreadValues({
7537
- ref,
7538
- className: classNames(className, wordBreak === "break-words" ? "break-words" : "break-all", {
7539
- [`line-clamp-${lines}`]: clamped
7540
- })
7541
- }, props), children);
7759
+ var isCardTitleComponent = (c) => {
7760
+ return React29.isValidElement(c) && c.type === Card.Title;
7761
+ };
7762
+ var getTitleContent = ({
7763
+ title,
7764
+ clampTitle,
7765
+ dense = false
7766
+ }) => {
7767
+ if (typeof title !== "string" && !isCardTitleComponent(title)) {
7768
+ throw new Error(
7769
+ "Wrap a custom card title element with <Card.Title> to get the desired spacing between children elements applied."
7770
+ );
7542
7771
  }
7543
- );
7772
+ const titleContent = /* @__PURE__ */ React29.createElement(Typography2, {
7773
+ variant: dense ? "small-strong" : "default-strong",
7774
+ color: "black"
7775
+ }, title);
7776
+ if (clampTitle) {
7777
+ return /* @__PURE__ */ React29.createElement(LineClamp, {
7778
+ lines: clampTitle,
7779
+ wordBreak: "break-all"
7780
+ }, titleContent);
7781
+ }
7782
+ return titleContent;
7783
+ };
7784
+
7785
+ // src/utils/actions.tsx
7786
+ import React30 from "react";
7787
+ import omit3 from "lodash/omit";
7788
+ var renderAction = ({ kind = "primary", dense = false, action }) => {
7789
+ return isLink(action) ? /* @__PURE__ */ React30.createElement(Button.ExternalLink, __spreadValues({
7790
+ key: action.text,
7791
+ kind,
7792
+ dense
7793
+ }, omit3(action, "text")), action.text) : /* @__PURE__ */ React30.createElement(Button, __spreadValues({
7794
+ key: action.text,
7795
+ kind,
7796
+ dense
7797
+ }, omit3(action, "text")), action.text);
7798
+ };
7544
7799
 
7545
7800
  // src/molecules/Card/Compact.tsx
7546
- import React30, { useRef as useRef2 } from "react";
7801
+ import React31, { useRef as useRef2 } from "react";
7547
7802
  import { useButton } from "@react-aria/button";
7548
- import { omit as omit3 } from "lodash";
7549
7803
  var CompactCard = ({
7550
7804
  title,
7551
7805
  clampTitle,
@@ -7554,6 +7808,8 @@ var CompactCard = ({
7554
7808
  color,
7555
7809
  action,
7556
7810
  link,
7811
+ primaryAction = action,
7812
+ secondaryAction = link,
7557
7813
  onClick,
7558
7814
  disabled,
7559
7815
  fullWidth,
@@ -7561,75 +7817,64 @@ var CompactCard = ({
7561
7817
  }) => {
7562
7818
  const ref = useRef2(null);
7563
7819
  const { buttonProps } = useButton({ elementType: "div", onPress: onClick, isDisabled: disabled }, ref);
7564
- const titleContent = /* @__PURE__ */ React30.createElement(Typography2.SmallStrong, {
7565
- color: "black"
7566
- }, title);
7567
- return /* @__PURE__ */ React30.createElement(Card, __spreadProps(__spreadValues({
7820
+ return /* @__PURE__ */ React31.createElement(Card, __spreadProps(__spreadValues({
7568
7821
  ref,
7569
7822
  className: "Aquarium-Card.Compact",
7570
7823
  clickable: Boolean(onClick),
7571
7824
  fullWidth,
7572
- enableMinWidth: Boolean(action || link || chips.length)
7825
+ enableMinWidth: Boolean(primaryAction || secondaryAction || chips.length)
7573
7826
  }, onClick ? buttonProps : {}), {
7574
7827
  disabled
7575
- }), color && /* @__PURE__ */ React30.createElement(Card.ColorHiglight, {
7828
+ }), color && /* @__PURE__ */ React31.createElement(Card.ColorHiglight, {
7576
7829
  color
7577
- }), chips.length > 0 && /* @__PURE__ */ React30.createElement(ChipContainer, {
7830
+ }), chips.length > 0 && /* @__PURE__ */ React31.createElement(ChipContainer, {
7578
7831
  dense: true
7579
- }, chips.map((chip) => /* @__PURE__ */ React30.createElement(Chip2, {
7832
+ }, chips.map((chip) => /* @__PURE__ */ React31.createElement(Chip2, {
7580
7833
  key: chip,
7581
7834
  text: chip
7582
- }))), /* @__PURE__ */ React30.createElement(Box, {
7835
+ }))), /* @__PURE__ */ React31.createElement(Box, {
7583
7836
  display: "flex",
7584
7837
  gap: "5"
7585
- }, icon && /* @__PURE__ */ React30.createElement(Avatar, {
7838
+ }, icon && /* @__PURE__ */ React31.createElement(Avatar, {
7586
7839
  image: icon
7587
- }), /* @__PURE__ */ React30.createElement(Card.Content, {
7840
+ }), /* @__PURE__ */ React31.createElement(Card.Content, {
7588
7841
  dense: true
7589
- }, clampTitle ? /* @__PURE__ */ React30.createElement(LineClamp, {
7590
- lines: clampTitle,
7591
- wordBreak: "break-all"
7592
- }, titleContent) : titleContent, /* @__PURE__ */ React30.createElement(Typography2.Caption, {
7842
+ }, getTitleContent({ title, clampTitle, dense: true }), /* @__PURE__ */ React31.createElement(Typography2.Caption, {
7593
7843
  color: "grey-70"
7594
- }, children))), (action || link) && /* @__PURE__ */ React30.createElement(Card.Actions, {
7595
- dense: true
7596
- }, action && /* @__PURE__ */ React30.createElement(Button.Secondary, __spreadValues({
7844
+ }, children))), (primaryAction || secondaryAction) && /* @__PURE__ */ React31.createElement(Card.Actions, {
7597
7845
  dense: true
7598
- }, omit3(action, "text")), action.text), link && /* @__PURE__ */ React30.createElement(Button.ExternalLink, __spreadValues({
7599
- dense: true,
7600
- kind: "ghost"
7601
- }, omit3(link, "text")), link.text)));
7846
+ }, primaryAction && renderAction({ kind: "secondary", dense: true, action: primaryAction }), secondaryAction && renderAction({ kind: "ghost", dense: true, action: secondaryAction })));
7602
7847
  };
7603
7848
  var CompactSkeleton = ({
7604
7849
  chips = true,
7605
7850
  icon = true,
7606
7851
  actions = true,
7607
7852
  fullWidth = false
7608
- }) => /* @__PURE__ */ React30.createElement(Card, {
7853
+ }) => /* @__PURE__ */ React31.createElement(Card, {
7609
7854
  fullWidth
7610
- }, chips && /* @__PURE__ */ React30.createElement(ChipContainer, {
7855
+ }, chips && /* @__PURE__ */ React31.createElement(ChipContainer, {
7611
7856
  dense: true
7612
- }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React30.createElement(Chip2.Skeleton, {
7857
+ }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React31.createElement(Chip2.Skeleton, {
7613
7858
  key: idx
7614
- }))), /* @__PURE__ */ React30.createElement(Box, {
7859
+ }))), /* @__PURE__ */ React31.createElement(Box, {
7615
7860
  display: "flex",
7616
7861
  gap: "5"
7617
- }, icon && /* @__PURE__ */ React30.createElement(Avatar.Skeleton, null), /* @__PURE__ */ React30.createElement(Card.Content, {
7862
+ }, icon && /* @__PURE__ */ React31.createElement(Avatar.Skeleton, null), /* @__PURE__ */ React31.createElement(Card.Content, {
7618
7863
  dense: true
7619
- }, /* @__PURE__ */ React30.createElement(Skeleton, {
7864
+ }, /* @__PURE__ */ React31.createElement(Skeleton, {
7620
7865
  width: 80,
7621
7866
  height: 20
7622
- }), /* @__PURE__ */ React30.createElement(Box, {
7867
+ }), /* @__PURE__ */ React31.createElement(Box, {
7623
7868
  height: "1"
7624
- }), /* @__PURE__ */ React30.createElement(Skeleton, {
7869
+ }), /* @__PURE__ */ React31.createElement(Skeleton, {
7625
7870
  width: 145,
7626
7871
  height: 16
7627
- }))), actions && /* @__PURE__ */ React30.createElement(Card.Actions, {
7872
+ }))), actions && /* @__PURE__ */ React31.createElement(Card.Actions, {
7628
7873
  dense: true
7629
- }, /* @__PURE__ */ React30.createElement(Skeleton, {
7874
+ }, /* @__PURE__ */ React31.createElement(Skeleton, {
7630
7875
  width: 115,
7631
7876
  height: 25
7632
- }), /* @__PURE__ */ React30.createElement(Skeleton, {
7877
+ }), /* @__PURE__ */ React31.createElement(Skeleton, {
7633
7878
  width: 60,
7634
7879
  height: 25
7635
7880
  })));
@@ -7648,6 +7893,8 @@ var Card2 = ({
7648
7893
  color,
7649
7894
  action,
7650
7895
  link,
7896
+ primaryAction = action,
7897
+ secondaryAction = link,
7651
7898
  onClick,
7652
7899
  disabled,
7653
7900
  fullWidth,
@@ -7655,10 +7902,7 @@ var Card2 = ({
7655
7902
  }) => {
7656
7903
  const ref = useRef3(null);
7657
7904
  const { buttonProps } = useButton2({ elementType: "div", onPress: onClick, isDisabled: disabled }, ref);
7658
- const titleContent = /* @__PURE__ */ React31.createElement(Typography2.DefaultStrong, {
7659
- color: "black"
7660
- }, title);
7661
- return /* @__PURE__ */ React31.createElement(Card, __spreadProps(__spreadValues({
7905
+ return /* @__PURE__ */ React32.createElement(Card, __spreadProps(__spreadValues({
7662
7906
  ref,
7663
7907
  className: "Aquarium-Card",
7664
7908
  clickable: Boolean(onClick),
@@ -7666,35 +7910,29 @@ var Card2 = ({
7666
7910
  enableMinWidth: Boolean(image || action || link || chips.length || icons.length)
7667
7911
  }, onClick ? buttonProps : {}), {
7668
7912
  disabled
7669
- }), color && /* @__PURE__ */ React31.createElement(Card.ColorHiglight, {
7913
+ }), color && /* @__PURE__ */ React32.createElement(Card.ColorHiglight, {
7670
7914
  color
7671
- }), chips.length > 0 && /* @__PURE__ */ React31.createElement(ChipContainer, {
7915
+ }), chips.length > 0 && /* @__PURE__ */ React32.createElement(ChipContainer, {
7672
7916
  dense: true
7673
- }, chips.map((chip) => /* @__PURE__ */ React31.createElement(Chip2, {
7917
+ }, chips.map((chip) => /* @__PURE__ */ React32.createElement(Chip2, {
7674
7918
  key: chip,
7675
7919
  text: chip
7676
- }))), icons.length > 0 && /* @__PURE__ */ React31.createElement(AvatarStack, {
7920
+ }))), icons.length > 0 && /* @__PURE__ */ React32.createElement(AvatarStack, {
7677
7921
  images: icons
7678
- }), image !== void 0 && (imageHeight ? /* @__PURE__ */ React31.createElement(CardImage, {
7922
+ }), image !== void 0 && (imageHeight ? /* @__PURE__ */ React32.createElement(CardImage, {
7679
7923
  image,
7680
7924
  imageAlt,
7681
7925
  imageHeight
7682
- }) : /* @__PURE__ */ React31.createElement(CardImage, {
7926
+ }) : /* @__PURE__ */ React32.createElement(CardImage, {
7683
7927
  image,
7684
7928
  imageAlt,
7685
7929
  fullSize: chips.length === 0
7686
- })), /* @__PURE__ */ React31.createElement(Card.Content, null, clampTitle ? /* @__PURE__ */ React31.createElement(LineClamp, {
7687
- lines: clampTitle,
7688
- wordBreak: "break-all"
7689
- }, titleContent) : titleContent, /* @__PURE__ */ React31.createElement(Typography2.Caption, {
7930
+ })), /* @__PURE__ */ React32.createElement(Card.Content, null, getTitleContent({ title, clampTitle }), /* @__PURE__ */ React32.createElement(Typography2.Caption, {
7690
7931
  color: "grey-70"
7691
- }, children || description)), (action || link) && /* @__PURE__ */ React31.createElement(Card.Actions, null, action && /* @__PURE__ */ React31.createElement(Button.Secondary, __spreadValues({
7692
- dense: true
7693
- }, omit4(action, "text")), action.text), link && /* @__PURE__ */ React31.createElement(Button.ExternalLink, __spreadValues({
7694
- dense: true,
7695
- kind: "ghost"
7696
- }, omit4(link, "text")), link.text)));
7932
+ }, children || description)), (primaryAction || secondaryAction) && /* @__PURE__ */ React32.createElement(Card.Actions, null, primaryAction && renderAction({ kind: "secondary", dense: true, action: primaryAction }), secondaryAction && renderAction({ kind: "ghost", dense: true, action: secondaryAction })));
7697
7933
  };
7934
+ Card2.Title = Card.Title;
7935
+ Card2.Title.displayName = "Card.Title";
7698
7936
  var CardSkeleton = ({
7699
7937
  chips = true,
7700
7938
  icons = false,
@@ -7702,60 +7940,60 @@ var CardSkeleton = ({
7702
7940
  actions = true,
7703
7941
  fullWidth = false,
7704
7942
  imageHeight
7705
- }) => /* @__PURE__ */ React31.createElement(Card, {
7943
+ }) => /* @__PURE__ */ React32.createElement(Card, {
7706
7944
  fullWidth
7707
- }, chips && /* @__PURE__ */ React31.createElement(ChipContainer, {
7945
+ }, chips && /* @__PURE__ */ React32.createElement(ChipContainer, {
7708
7946
  dense: true
7709
- }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React31.createElement(Chip2.Skeleton, {
7947
+ }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React32.createElement(Chip2.Skeleton, {
7710
7948
  key: idx
7711
- }))), icons && /* @__PURE__ */ React31.createElement(AvatarStack, {
7949
+ }))), icons && /* @__PURE__ */ React32.createElement(AvatarStack, {
7712
7950
  images: [null]
7713
- }), image && (imageHeight ? /* @__PURE__ */ React31.createElement(CardImage, {
7951
+ }), image && (imageHeight ? /* @__PURE__ */ React32.createElement(CardImage, {
7714
7952
  image: null,
7715
7953
  imageHeight
7716
- }) : /* @__PURE__ */ React31.createElement(CardImage, {
7954
+ }) : /* @__PURE__ */ React32.createElement(CardImage, {
7717
7955
  image: null,
7718
7956
  fullSize: !chips
7719
- })), /* @__PURE__ */ React31.createElement(Card.Content, null, /* @__PURE__ */ React31.createElement(Skeleton, {
7957
+ })), /* @__PURE__ */ React32.createElement(Card.Content, null, /* @__PURE__ */ React32.createElement(Skeleton, {
7720
7958
  width: 145,
7721
7959
  height: 25
7722
- }), /* @__PURE__ */ React31.createElement(Skeleton, {
7960
+ }), /* @__PURE__ */ React32.createElement(Skeleton, {
7723
7961
  width: 145,
7724
7962
  height: 16
7725
- })), actions && /* @__PURE__ */ React31.createElement(Card.Actions, null, /* @__PURE__ */ React31.createElement(Skeleton, {
7963
+ })), actions && /* @__PURE__ */ React32.createElement(Card.Actions, null, /* @__PURE__ */ React32.createElement(Skeleton, {
7726
7964
  width: 115,
7727
7965
  height: 25
7728
- }), /* @__PURE__ */ React31.createElement(Skeleton, {
7966
+ }), /* @__PURE__ */ React32.createElement(Skeleton, {
7729
7967
  width: 60,
7730
7968
  height: 25
7731
7969
  })));
7732
7970
  Card2.Skeleton = CardSkeleton;
7733
7971
  Card2.Compact = CompactCard;
7734
- var CardImage = ({ image, imageAlt, imageHeight, fullSize = false }) => /* @__PURE__ */ React31.createElement(Card.ImageContainer, {
7972
+ var CardImage = ({ image, imageAlt, imageHeight, fullSize = false }) => /* @__PURE__ */ React32.createElement(Card.ImageContainer, {
7735
7973
  fullSize
7736
- }, image ? imageHeight ? /* @__PURE__ */ React31.createElement(Card.Image, {
7974
+ }, image ? imageHeight ? /* @__PURE__ */ React32.createElement(Card.Image, {
7737
7975
  image,
7738
7976
  imageAlt,
7739
7977
  imageHeight
7740
- }) : /* @__PURE__ */ React31.createElement(Card.Image, {
7978
+ }) : /* @__PURE__ */ React32.createElement(Card.Image, {
7741
7979
  image,
7742
7980
  imageAlt,
7743
7981
  fullSize
7744
- }) : /* @__PURE__ */ React31.createElement(CardImage.Skeleton, {
7982
+ }) : /* @__PURE__ */ React32.createElement(CardImage.Skeleton, {
7745
7983
  fullSize,
7746
7984
  imageHeight
7747
7985
  }));
7748
- var CardImageSkeleton = ({ imageHeight, fullSize }) => imageHeight ? /* @__PURE__ */ React31.createElement(Skeleton, {
7986
+ var CardImageSkeleton = ({ imageHeight, fullSize }) => imageHeight ? /* @__PURE__ */ React32.createElement(Skeleton, {
7749
7987
  height: imageHeight,
7750
7988
  width: "100%"
7751
- }) : /* @__PURE__ */ React31.createElement(Skeleton, {
7989
+ }) : /* @__PURE__ */ React32.createElement(Skeleton, {
7752
7990
  height: fullSize ? 225 : 174,
7753
7991
  width: "100%"
7754
7992
  });
7755
7993
  CardImage.Skeleton = CardImageSkeleton;
7756
7994
 
7757
7995
  // src/molecules/Carousel/Carousel.tsx
7758
- import React32, { useEffect as useEffect4, useLayoutEffect, useRef as useRef4, useState as useState2 } from "react";
7996
+ import React33, { useEffect as useEffect4, useLayoutEffect, useRef as useRef4, useState as useState2 } from "react";
7759
7997
  import classNames5 from "classnames";
7760
7998
  var import_chevronLeft2 = __toESM(require_chevronLeft());
7761
7999
  var import_chevronRight2 = __toESM(require_chevronRight());
@@ -7767,7 +8005,7 @@ var Carousel = ({
7767
8005
  }) => {
7768
8006
  const containerRef = useRef4(null);
7769
8007
  const scrollbarContainerRef = useRef4(null);
7770
- const items = React32.Children.toArray(children);
8008
+ const items = React33.Children.toArray(children);
7771
8009
  const [width, setWidth] = useState2(0);
7772
8010
  const [isUpdating, setIsUpdating] = useState2(false);
7773
8011
  const [currentPage, setCurrentPage] = useState2(currentPageProp != null ? currentPageProp : defaultPage);
@@ -7817,30 +8055,30 @@ var Carousel = ({
7817
8055
  onPageChange && onPageChange(newPage);
7818
8056
  }
7819
8057
  };
7820
- return items.length > 0 ? /* @__PURE__ */ React32.createElement("div", {
8058
+ return items.length > 0 ? /* @__PURE__ */ React33.createElement("div", {
7821
8059
  className: classNames5("Aquarium-Carousel", tw("w-full flex flex-col")),
7822
8060
  ref: containerRef
7823
- }, containerRef !== null && /* @__PURE__ */ React32.createElement("ul", {
8061
+ }, containerRef !== null && /* @__PURE__ */ React33.createElement("ul", {
7824
8062
  ref: scrollbarContainerRef,
7825
8063
  tabIndex: 0,
7826
8064
  onScroll: handleScroll,
7827
8065
  className: tw(
7828
8066
  "grid items-stretch grid-flow-col overflow-x-scroll scroll-smooth snap-x snap-mandatory scrollbar-hide focus-visible:outline-0 focus-visible:ring-1 focus-visible:ring-info-70"
7829
8067
  )
7830
- }, width !== 0 && React32.Children.map(children, (child, index) => /* @__PURE__ */ React32.createElement(CarouselItem, {
8068
+ }, width !== 0 && React33.Children.map(children, (child, index) => /* @__PURE__ */ React33.createElement(CarouselItem, {
7831
8069
  key: index,
7832
8070
  width,
7833
8071
  ariaHidden: index + 1 === currentPage ? void 0 : true
7834
- }, child))), /* @__PURE__ */ React32.createElement(Flexbox, {
8072
+ }, child))), /* @__PURE__ */ React33.createElement(Flexbox, {
7835
8073
  direction: "row",
7836
8074
  justifyContent: "flex-end",
7837
8075
  alignItems: "center"
7838
- }, /* @__PURE__ */ React32.createElement(IconButton, {
8076
+ }, /* @__PURE__ */ React33.createElement(IconButton, {
7839
8077
  "aria-label": "Previous",
7840
8078
  onClick: () => handleNavigationClick("left"),
7841
8079
  icon: import_chevronLeft2.default,
7842
8080
  disabled: currentPage === 1
7843
- }), /* @__PURE__ */ React32.createElement(Typography2.Caption, null, `${currentPage}/${React32.Children.count(children)}`), /* @__PURE__ */ React32.createElement(IconButton, {
8081
+ }), /* @__PURE__ */ React33.createElement(Typography2.Caption, null, `${currentPage}/${React33.Children.count(children)}`), /* @__PURE__ */ React33.createElement(IconButton, {
7844
8082
  "aria-label": "Next",
7845
8083
  onClick: () => handleNavigationClick("right"),
7846
8084
  icon: import_chevronRight2.default,
@@ -7848,7 +8086,7 @@ var Carousel = ({
7848
8086
  }))) : null;
7849
8087
  };
7850
8088
  var CarouselItem = ({ width, children, ariaHidden }) => {
7851
- return /* @__PURE__ */ React32.createElement("li", {
8089
+ return /* @__PURE__ */ React33.createElement("li", {
7852
8090
  style: { width },
7853
8091
  "aria-hidden": ariaHidden,
7854
8092
  className: tw("flex justify-center snap-start")
@@ -7856,10 +8094,10 @@ var CarouselItem = ({ width, children, ariaHidden }) => {
7856
8094
  };
7857
8095
 
7858
8096
  // src/molecules/Checkbox/Checkbox.tsx
7859
- import React35 from "react";
8097
+ import React36 from "react";
7860
8098
 
7861
8099
  // src/molecules/ControlLabel/ControlLabel.tsx
7862
- import React33 from "react";
8100
+ import React34 from "react";
7863
8101
  var ControlLabel = (_a) => {
7864
8102
  var _b = _a, {
7865
8103
  label,
@@ -7882,10 +8120,10 @@ var ControlLabel = (_a) => {
7882
8120
  ]);
7883
8121
  const textClass = disabled ? "text-grey-40" : "text-grey-70";
7884
8122
  const rtl = labelPlacement === "left";
7885
- const labelEl = label && /* @__PURE__ */ React33.createElement("span", {
8123
+ const labelEl = label && /* @__PURE__ */ React34.createElement("span", {
7886
8124
  className: tw("typography-small self-center", { "text-right": rtl })
7887
8125
  }, label);
7888
- return /* @__PURE__ */ React33.createElement("label", __spreadValues({
8126
+ return /* @__PURE__ */ React34.createElement("label", __spreadValues({
7889
8127
  className: classNames(
7890
8128
  className,
7891
8129
  tw(
@@ -7900,7 +8138,7 @@ var ControlLabel = (_a) => {
7900
8138
  )
7901
8139
  ),
7902
8140
  style: __spreadValues({}, style)
7903
- }, rest), rtl ? labelEl : children, rtl ? children : labelEl, caption && /* @__PURE__ */ React33.createElement(Typography2, {
8141
+ }, rest), rtl ? labelEl : children, rtl ? children : labelEl, caption && /* @__PURE__ */ React34.createElement(Typography2, {
7904
8142
  className: tw({ "col-start-2": !rtl }),
7905
8143
  variant: "caption",
7906
8144
  color: disabled ? "grey-40" : "grey-50"
@@ -7908,18 +8146,18 @@ var ControlLabel = (_a) => {
7908
8146
  };
7909
8147
 
7910
8148
  // src/atoms/Checkbox/Checkbox.tsx
7911
- import React34 from "react";
8149
+ import React35 from "react";
7912
8150
  var import_minus2 = __toESM(require_minus());
7913
8151
  var import_tick3 = __toESM(require_tick());
7914
- var Checkbox = React34.forwardRef(
8152
+ var Checkbox = React35.forwardRef(
7915
8153
  (_a, ref) => {
7916
8154
  var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
7917
- return /* @__PURE__ */ React34.createElement("span", {
8155
+ return /* @__PURE__ */ React35.createElement("span", {
7918
8156
  className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
7919
8157
  "hover:border-grey-50 peer-checked:border-primary-80": !disabled,
7920
8158
  "border-grey-5": disabled
7921
8159
  })
7922
- }, /* @__PURE__ */ React34.createElement("input", __spreadProps(__spreadValues({
8160
+ }, /* @__PURE__ */ React35.createElement("input", __spreadProps(__spreadValues({
7923
8161
  id,
7924
8162
  ref,
7925
8163
  type: "checkbox",
@@ -7933,7 +8171,7 @@ var Checkbox = React34.forwardRef(
7933
8171
  ),
7934
8172
  readOnly,
7935
8173
  disabled
7936
- })), /* @__PURE__ */ React34.createElement(Icon, {
8174
+ })), /* @__PURE__ */ React35.createElement(Icon, {
7937
8175
  icon: indeterminate ? import_minus2.default : import_tick3.default,
7938
8176
  strokeWidth: "2px",
7939
8177
  className: classNames(
@@ -7953,7 +8191,7 @@ var Checkbox = React34.forwardRef(
7953
8191
  );
7954
8192
 
7955
8193
  // src/molecules/Checkbox/Checkbox.tsx
7956
- var Checkbox2 = React35.forwardRef(
8194
+ var Checkbox2 = React36.forwardRef(
7957
8195
  (_a, ref) => {
7958
8196
  var _b = _a, {
7959
8197
  id,
@@ -7976,7 +8214,7 @@ var Checkbox2 = React35.forwardRef(
7976
8214
  ]);
7977
8215
  var _a2;
7978
8216
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
7979
- return !readOnly || isChecked ? /* @__PURE__ */ React35.createElement(ControlLabel, {
8217
+ return !readOnly || isChecked ? /* @__PURE__ */ React36.createElement(ControlLabel, {
7980
8218
  htmlFor: id,
7981
8219
  label: children,
7982
8220
  labelPlacement,
@@ -7986,7 +8224,7 @@ var Checkbox2 = React35.forwardRef(
7986
8224
  disabled,
7987
8225
  className: "Aquarium-Checkbox",
7988
8226
  style: { gap: "0 8px" }
7989
- }, !readOnly && /* @__PURE__ */ React35.createElement(Checkbox, __spreadProps(__spreadValues({
8227
+ }, !readOnly && /* @__PURE__ */ React36.createElement(Checkbox, __spreadProps(__spreadValues({
7990
8228
  id,
7991
8229
  ref,
7992
8230
  name
@@ -7997,12 +8235,12 @@ var Checkbox2 = React35.forwardRef(
7997
8235
  }
7998
8236
  );
7999
8237
  Checkbox2.displayName = "Checkbox";
8000
- var CheckboxSkeleton = () => /* @__PURE__ */ React35.createElement("div", {
8238
+ var CheckboxSkeleton = () => /* @__PURE__ */ React36.createElement("div", {
8001
8239
  className: tw("flex gap-3")
8002
- }, /* @__PURE__ */ React35.createElement(Skeleton, {
8240
+ }, /* @__PURE__ */ React36.createElement(Skeleton, {
8003
8241
  height: 20,
8004
8242
  width: 20
8005
- }), /* @__PURE__ */ React35.createElement(Skeleton, {
8243
+ }), /* @__PURE__ */ React36.createElement(Skeleton, {
8006
8244
  height: 20,
8007
8245
  width: 150
8008
8246
  }));
@@ -8010,14 +8248,14 @@ Checkbox2.Skeleton = CheckboxSkeleton;
8010
8248
  Checkbox2.Skeleton.displayName = "Checkbox.Skeleton";
8011
8249
 
8012
8250
  // src/molecules/CheckboxGroup/CheckboxGroup.tsx
8013
- import React42, { useState as useState3 } from "react";
8014
- import uniqueId from "lodash/uniqueId";
8251
+ import React43, { useState as useState3 } from "react";
8252
+ import { useId as useId2 } from "@react-aria/utils";
8015
8253
 
8016
8254
  // src/atoms/InputGroup/InputGroup.tsx
8017
- import React37 from "react";
8255
+ import React38 from "react";
8018
8256
 
8019
8257
  // src/molecules/Grid/Grid.tsx
8020
- import React36 from "react";
8258
+ import React37 from "react";
8021
8259
  import isEmpty from "lodash/isEmpty";
8022
8260
  import mapValues from "lodash/mapValues";
8023
8261
  import pick from "lodash/pick";
@@ -8068,14 +8306,14 @@ var GridItem = Tailwindify(
8068
8306
  gridRowEnd: rowEnd
8069
8307
  });
8070
8308
  const HtmlElement = htmlTag;
8071
- return /* @__PURE__ */ React36.createElement(HtmlElement, {
8309
+ return /* @__PURE__ */ React37.createElement(HtmlElement, {
8072
8310
  style: __spreadValues(__spreadValues({}, hookStyle), style),
8073
8311
  className
8074
8312
  }, children);
8075
8313
  }
8076
8314
  );
8077
8315
  var Grid = (props) => {
8078
- return /* @__PURE__ */ React36.createElement(GridComponent, __spreadValues({}, props));
8316
+ return /* @__PURE__ */ React37.createElement(GridComponent, __spreadValues({}, props));
8079
8317
  };
8080
8318
  var GridComponent = Tailwindify(
8081
8319
  ({
@@ -8129,12 +8367,13 @@ var GridComponent = Tailwindify(
8129
8367
  gridRowEnd: rowEnd
8130
8368
  });
8131
8369
  const HtmlElement = htmlTag;
8132
- return /* @__PURE__ */ React36.createElement(HtmlElement, {
8370
+ return /* @__PURE__ */ React37.createElement(HtmlElement, {
8133
8371
  style: __spreadValues(__spreadValues({}, hookStyle), style),
8134
8372
  className
8135
8373
  }, children);
8136
8374
  }
8137
8375
  );
8376
+ Grid.displayName = "Grid";
8138
8377
  Grid.Item = GridItem;
8139
8378
  Grid.Item.displayName = "Grid.Item";
8140
8379
 
@@ -8147,7 +8386,7 @@ var gridColumnStyles = {
8147
8386
  };
8148
8387
  var InputGroup = (_a) => {
8149
8388
  var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
8150
- return /* @__PURE__ */ React37.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
8389
+ return /* @__PURE__ */ React38.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
8151
8390
  display: "inline-grid",
8152
8391
  colGap: "l4",
8153
8392
  rowGap: "3",
@@ -8157,12 +8396,12 @@ var InputGroup = (_a) => {
8157
8396
  };
8158
8397
 
8159
8398
  // src/utils/form/Label/Label.tsx
8160
- import React41 from "react";
8399
+ import React42 from "react";
8161
8400
 
8162
8401
  // src/utils/form/FormControl/FormControl.tsx
8163
- import React38 from "react";
8402
+ import React39 from "react";
8164
8403
  var FormControl = ({ className, inline, children }) => {
8165
- return /* @__PURE__ */ React38.createElement(Flexbox, {
8404
+ return /* @__PURE__ */ React39.createElement(Flexbox, {
8166
8405
  direction: "column",
8167
8406
  display: inline ? "inline-flex" : "flex",
8168
8407
  className
@@ -8170,14 +8409,14 @@ var FormControl = ({ className, inline, children }) => {
8170
8409
  };
8171
8410
 
8172
8411
  // src/utils/form/HelperText/HelperText.tsx
8173
- import React40 from "react";
8412
+ import React41 from "react";
8174
8413
  import classNames6 from "classnames";
8175
8414
  import isNumber4 from "lodash/isNumber";
8176
8415
 
8177
8416
  // src/utils/form/CharCounter/CharCounter.tsx
8178
- import React39 from "react";
8417
+ import React40 from "react";
8179
8418
  var CharCounter = ({ dense = true, length, maxLength, valid = true }) => {
8180
- return /* @__PURE__ */ React39.createElement("span", {
8419
+ return /* @__PURE__ */ React40.createElement("span", {
8181
8420
  className: tw(
8182
8421
  `whitespace-nowrap`,
8183
8422
  valid ? "text-grey-50" : "text-error-70",
@@ -8199,34 +8438,34 @@ var HelperText = ({
8199
8438
  const hasMaxLength = isNumber4(maxLength) && maxLength > 0;
8200
8439
  const showMessage = hasError || hasMaxLength;
8201
8440
  if (!showMessage) {
8202
- return reserveSpaceForError ? /* @__PURE__ */ React40.createElement("p", {
8441
+ return reserveSpaceForError ? /* @__PURE__ */ React41.createElement("p", {
8203
8442
  className: tw("block mt-1 mb-3 typography-caption")
8204
8443
  }, "\xA0") : null;
8205
8444
  }
8206
- return /* @__PURE__ */ React40.createElement(Grid, {
8445
+ return /* @__PURE__ */ React41.createElement(Grid, {
8207
8446
  cols: "1",
8208
8447
  rows: "1",
8209
8448
  colGap: "3",
8210
8449
  alignItems: "start",
8211
8450
  autoCols: "min",
8212
8451
  className: tw("mt-1 mb-3")
8213
- }, /* @__PURE__ */ React40.createElement(GridItem2, {
8452
+ }, /* @__PURE__ */ React41.createElement(GridItem2, {
8214
8453
  colStart: "1",
8215
8454
  colEnd: "2"
8216
- }, hasError && /* @__PURE__ */ React40.createElement("p", {
8455
+ }, hasError && /* @__PURE__ */ React41.createElement("p", {
8217
8456
  id: messageId,
8218
8457
  className: tw("text-error-50 block typography-caption")
8219
- }, helperText)), /* @__PURE__ */ React40.createElement(GridItem2, {
8458
+ }, helperText)), /* @__PURE__ */ React41.createElement(GridItem2, {
8220
8459
  colStart: "2",
8221
8460
  colEnd: "3",
8222
8461
  display: "flex"
8223
- }, isNumber4(length) && hasMaxLength && /* @__PURE__ */ React40.createElement(CharCounter, {
8462
+ }, isNumber4(length) && hasMaxLength && /* @__PURE__ */ React41.createElement(CharCounter, {
8224
8463
  length,
8225
8464
  maxLength,
8226
8465
  valid: !error2
8227
8466
  })));
8228
8467
  };
8229
- var Skeleton2 = ({ className, children }) => /* @__PURE__ */ React40.createElement("div", {
8468
+ var Skeleton2 = ({ className, children }) => /* @__PURE__ */ React41.createElement("div", {
8230
8469
  className: classNames6(className, "h-[25px]")
8231
8470
  }, children);
8232
8471
  HelperText.Skeleton = Skeleton2;
@@ -8242,40 +8481,40 @@ var LabelText = ({
8242
8481
  helpTooltipPlacement,
8243
8482
  description
8244
8483
  }) => {
8245
- return /* @__PURE__ */ React41.createElement("span", {
8484
+ return /* @__PURE__ */ React42.createElement("span", {
8246
8485
  className: tw("block mb-2")
8247
- }, /* @__PURE__ */ React41.createElement("span", {
8486
+ }, /* @__PURE__ */ React42.createElement("span", {
8248
8487
  className: tw("inline-flex items-center typography-small-strong", {
8249
8488
  "text-grey-70": variant === "default",
8250
8489
  "text-error-50": variant === "error",
8251
8490
  "text-grey-40": variant === "disabled"
8252
8491
  })
8253
- }, labelText, required && /* @__PURE__ */ React41.createElement("span", {
8492
+ }, labelText, required && /* @__PURE__ */ React42.createElement("span", {
8254
8493
  className: tw("text-error-50")
8255
- }, "*"), helpTooltip && /* @__PURE__ */ React41.createElement(Tooltip, {
8494
+ }, "*"), helpTooltip && /* @__PURE__ */ React42.createElement(Tooltip, {
8256
8495
  content: helpTooltip,
8257
8496
  placement: helpTooltipPlacement
8258
- }, /* @__PURE__ */ React41.createElement("span", {
8497
+ }, /* @__PURE__ */ React42.createElement("span", {
8259
8498
  tabIndex: 0,
8260
8499
  className: tw("text-grey-40 flex items-center cursor-pointer ml-2")
8261
- }, /* @__PURE__ */ React41.createElement(InlineIcon, {
8500
+ }, /* @__PURE__ */ React42.createElement(InlineIcon, {
8262
8501
  icon: import_questionMark2.default,
8263
8502
  "data-testid": "icon-info"
8264
- })))), description && /* @__PURE__ */ React41.createElement("span", {
8503
+ })))), description && /* @__PURE__ */ React42.createElement("span", {
8265
8504
  className: tw("block text-grey-50 typography-caption mt-1")
8266
8505
  }, description));
8267
8506
  };
8268
8507
  var Label = (props) => {
8269
8508
  const _a = props, { id, htmlFor, labelText, labelProps: _b = {} } = _a, labelProps = __objRest(_b, []), { "data-testid": dataTestid, children } = _a;
8270
- return /* @__PURE__ */ React41.createElement("label", __spreadValues({
8509
+ return /* @__PURE__ */ React42.createElement("label", __spreadValues({
8271
8510
  id,
8272
8511
  className: tw("w-full"),
8273
8512
  "data-testid": dataTestid,
8274
8513
  htmlFor
8275
- }, labelProps), labelText && /* @__PURE__ */ React41.createElement(LabelText, __spreadValues({}, props)), children);
8514
+ }, labelProps), labelText && /* @__PURE__ */ React42.createElement(LabelText, __spreadValues({}, props)), children);
8276
8515
  };
8277
8516
  var LabelSkeleton = () => {
8278
- return /* @__PURE__ */ React41.createElement(Skeleton, {
8517
+ return /* @__PURE__ */ React42.createElement(Skeleton, {
8279
8518
  height: 20,
8280
8519
  width: 100,
8281
8520
  className: tw("mb-[7px]")
@@ -8310,17 +8549,17 @@ var LabelControl = (_a) => {
8310
8549
  ]);
8311
8550
  const legacyError = error2 !== void 0 && valid === false;
8312
8551
  const variant = !valid || legacyError ? "error" : disabled ? "disabled" : "default";
8313
- return /* @__PURE__ */ React41.createElement(FormControl, {
8552
+ return /* @__PURE__ */ React42.createElement(FormControl, {
8314
8553
  className
8315
- }, !fieldset && /* @__PURE__ */ React41.createElement(Label, __spreadProps(__spreadValues({}, rest), {
8554
+ }, !fieldset && /* @__PURE__ */ React42.createElement(Label, __spreadProps(__spreadValues({}, rest), {
8316
8555
  variant
8317
- }), children), fieldset && /* @__PURE__ */ React41.createElement("fieldset", {
8556
+ }), children), fieldset && /* @__PURE__ */ React42.createElement("fieldset", {
8318
8557
  id: rest.id
8319
- }, /* @__PURE__ */ React41.createElement("legend", {
8558
+ }, /* @__PURE__ */ React42.createElement("legend", {
8320
8559
  className: tw("w-full mb-2")
8321
- }, /* @__PURE__ */ React41.createElement(LabelText, __spreadProps(__spreadValues({}, rest), {
8560
+ }, /* @__PURE__ */ React42.createElement(LabelText, __spreadProps(__spreadValues({}, rest), {
8322
8561
  variant
8323
- }))), children), /* @__PURE__ */ React41.createElement(HelperText, {
8562
+ }))), children), /* @__PURE__ */ React42.createElement(HelperText, {
8324
8563
  messageId,
8325
8564
  error: !valid,
8326
8565
  helperText,
@@ -8329,7 +8568,7 @@ var LabelControl = (_a) => {
8329
8568
  reserveSpaceForError
8330
8569
  }));
8331
8570
  };
8332
- var LabelControlSkeleton = ({ children }) => /* @__PURE__ */ React41.createElement("div", null, /* @__PURE__ */ React41.createElement(Label.Skeleton, null), children, /* @__PURE__ */ React41.createElement(HelperText.Skeleton, null));
8571
+ var LabelControlSkeleton = ({ children }) => /* @__PURE__ */ React42.createElement("div", null, /* @__PURE__ */ React42.createElement(Label.Skeleton, null), children, /* @__PURE__ */ React42.createElement(HelperText.Skeleton, null));
8333
8572
  LabelControl.Skeleton = LabelControlSkeleton;
8334
8573
  var getLabelControlProps = (_a) => {
8335
8574
  var _b = _a, {
@@ -8367,7 +8606,7 @@ var getLabelControlProps = (_a) => {
8367
8606
 
8368
8607
  // src/molecules/CheckboxGroup/CheckboxGroup.tsx
8369
8608
  var isCheckbox = (c) => {
8370
- return React42.isValidElement(c) && c.type === Checkbox2;
8609
+ return React43.isValidElement(c) && c.type === Checkbox2;
8371
8610
  };
8372
8611
  var CheckboxGroup = (_a) => {
8373
8612
  var _b = _a, {
@@ -8390,7 +8629,7 @@ var CheckboxGroup = (_a) => {
8390
8629
  if (value !== void 0 && value !== selectedItems) {
8391
8630
  setSelectedItems(value);
8392
8631
  }
8393
- const errorMessageId = uniqueId();
8632
+ const errorMessageId = useId2();
8394
8633
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8395
8634
  const labelControlProps = getLabelControlProps(props);
8396
8635
  const handleChange = (e) => {
@@ -8399,13 +8638,13 @@ var CheckboxGroup = (_a) => {
8399
8638
  setSelectedItems(updated);
8400
8639
  onChange == null ? void 0 : onChange(updated);
8401
8640
  };
8402
- return /* @__PURE__ */ React42.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
8641
+ return /* @__PURE__ */ React43.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
8403
8642
  fieldset: true
8404
8643
  }, labelControlProps), errorProps), {
8405
8644
  className: "Aquarium-CheckboxGroup"
8406
- }), /* @__PURE__ */ React42.createElement(InputGroup, {
8645
+ }), /* @__PURE__ */ React43.createElement(InputGroup, {
8407
8646
  cols
8408
- }, React42.Children.map(children, (c) => {
8647
+ }, React43.Children.map(children, (c) => {
8409
8648
  var _a3, _b2;
8410
8649
  if (!isCheckbox(c)) {
8411
8650
  return null;
@@ -8413,7 +8652,7 @@ var CheckboxGroup = (_a) => {
8413
8652
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
8414
8653
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
8415
8654
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
8416
- return React42.cloneElement(c, {
8655
+ return React43.cloneElement(c, {
8417
8656
  defaultChecked,
8418
8657
  checked,
8419
8658
  onChange: (_b2 = c.props.onChange) != null ? _b2 : handleChange,
@@ -8423,9 +8662,9 @@ var CheckboxGroup = (_a) => {
8423
8662
  })));
8424
8663
  };
8425
8664
  var CheckboxGroupSkeleton = ({ options = 2 }) => {
8426
- return /* @__PURE__ */ React42.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React42.createElement("div", {
8665
+ return /* @__PURE__ */ React43.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React43.createElement("div", {
8427
8666
  className: tw("flex flex-wrap flex-col gap-2")
8428
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React42.createElement(Checkbox2.Skeleton, {
8667
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React43.createElement(Checkbox2.Skeleton, {
8429
8668
  key
8430
8669
  }))));
8431
8670
  };
@@ -8433,7 +8672,7 @@ CheckboxGroup.Skeleton = CheckboxGroupSkeleton;
8433
8672
  CheckboxGroup.Skeleton.displayName = "CheckboxGroup.Skeleton";
8434
8673
 
8435
8674
  // src/molecules/ChoiceChip/ChoiceChip.tsx
8436
- import React43, { useState as useState4 } from "react";
8675
+ import React44, { useState as useState4 } from "react";
8437
8676
  var ChoiceChip = (_a) => {
8438
8677
  var _b = _a, { text, dense, defaultValue, value, onChange } = _b, rest = __objRest(_b, ["text", "dense", "defaultValue", "value", "onChange"]);
8439
8678
  var _a2;
@@ -8447,7 +8686,7 @@ var ChoiceChip = (_a) => {
8447
8686
  setSelected(!selected);
8448
8687
  onChange == null ? void 0 : onChange(!selected);
8449
8688
  };
8450
- return /* @__PURE__ */ React43.createElement("span", __spreadProps(__spreadValues({
8689
+ return /* @__PURE__ */ React44.createElement("span", __spreadProps(__spreadValues({
8451
8690
  role: "button",
8452
8691
  "aria-pressed": selected
8453
8692
  }, rest), {
@@ -8465,22 +8704,22 @@ var ChoiceChip = (_a) => {
8465
8704
  };
8466
8705
 
8467
8706
  // src/molecules/Combobox/Combobox.tsx
8468
- import React46, { useEffect as useEffect6, useRef as useRef5, useState as useState5 } from "react";
8707
+ import React47, { useEffect as useEffect6, useRef as useRef5, useState as useState5 } from "react";
8469
8708
  import { ariaHideOutside } from "@react-aria/overlays";
8709
+ import { useId as useId3 } from "@react-aria/utils";
8470
8710
  import { useCombobox } from "downshift";
8471
- import omit5 from "lodash/omit";
8472
- import uniqueId2 from "lodash/uniqueId";
8711
+ import omit4 from "lodash/omit";
8473
8712
  import { matchSorter } from "match-sorter";
8474
8713
 
8475
8714
  // src/molecules/Popover/PopoverOverlay.tsx
8476
- import React45, { useEffect as useEffect5 } from "react";
8715
+ import React46, { useEffect as useEffect5 } from "react";
8477
8716
  import { DismissButton, Overlay, usePopover } from "@react-aria/overlays";
8478
8717
 
8479
8718
  // src/atoms/Popover/Popover.tsx
8480
- import React44 from "react";
8481
- var PopoverPanel = React44.forwardRef((_a, ref) => {
8719
+ import React45 from "react";
8720
+ var PopoverPanel = React45.forwardRef((_a, ref) => {
8482
8721
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
8483
- return /* @__PURE__ */ React44.createElement("div", __spreadValues({
8722
+ return /* @__PURE__ */ React45.createElement("div", __spreadValues({
8484
8723
  ref,
8485
8724
  className: classNames(
8486
8725
  className,
@@ -8489,7 +8728,7 @@ var PopoverPanel = React44.forwardRef((_a, ref) => {
8489
8728
  }, props), children);
8490
8729
  });
8491
8730
  PopoverPanel.displayName = "Popover.Panel";
8492
- var PopoverUnderlay = React44.forwardRef((props, ref) => /* @__PURE__ */ React44.createElement("div", __spreadProps(__spreadValues({
8731
+ var PopoverUnderlay = React45.forwardRef((props, ref) => /* @__PURE__ */ React45.createElement("div", __spreadProps(__spreadValues({
8493
8732
  ref
8494
8733
  }, props), {
8495
8734
  className: tw("fixed inset-0")
@@ -8501,12 +8740,12 @@ var Popover = {
8501
8740
  };
8502
8741
 
8503
8742
  // src/molecules/Popover/PopoverOverlay.tsx
8504
- var PopoverOverlay = React45.forwardRef((props, ref) => {
8505
- return /* @__PURE__ */ React45.createElement(Overlay, null, /* @__PURE__ */ React45.createElement(Wrapper, __spreadValues({
8743
+ var PopoverOverlay = React46.forwardRef((props, ref) => {
8744
+ return /* @__PURE__ */ React46.createElement(Overlay, null, /* @__PURE__ */ React46.createElement(Wrapper, __spreadValues({
8506
8745
  ref
8507
8746
  }, props)));
8508
8747
  });
8509
- var Wrapper = React45.forwardRef(
8748
+ var Wrapper = React46.forwardRef(
8510
8749
  (_a, ref) => {
8511
8750
  var _b = _a, {
8512
8751
  id,
@@ -8535,8 +8774,8 @@ var Wrapper = React45.forwardRef(
8535
8774
  "children",
8536
8775
  "popoverRef"
8537
8776
  ]);
8538
- const popoverRef = React45.useRef(null);
8539
- React45.useImperativeHandle(ref, () => popoverRef.current);
8777
+ const popoverRef = React46.useRef(null);
8778
+ React46.useImperativeHandle(ref, () => popoverRef.current);
8540
8779
  useEffect5(() => {
8541
8780
  if (autoFocus && popoverRef.current) {
8542
8781
  popoverRef.current.focus();
@@ -8550,7 +8789,7 @@ var Wrapper = React45.forwardRef(
8550
8789
  }),
8551
8790
  state
8552
8791
  );
8553
- return /* @__PURE__ */ React45.createElement("div", null, !isNonModal && /* @__PURE__ */ React45.createElement(Popover.Underlay, __spreadValues({}, underlayProps)), /* @__PURE__ */ React45.createElement(Popover.Panel, __spreadProps(__spreadValues({
8792
+ return /* @__PURE__ */ React46.createElement("div", null, !isNonModal && /* @__PURE__ */ React46.createElement(Popover.Underlay, __spreadValues({}, underlayProps)), /* @__PURE__ */ React46.createElement(Popover.Panel, __spreadProps(__spreadValues({
8554
8793
  ref: popoverRef,
8555
8794
  tabIndex: focusable ? 0 : -1,
8556
8795
  role: role != null ? role : "presentation"
@@ -8558,7 +8797,7 @@ var Wrapper = React45.forwardRef(
8558
8797
  id: id != null ? id : popoverProps.id,
8559
8798
  style: __spreadValues(__spreadValues({}, popoverProps.style), style),
8560
8799
  className
8561
- }), children, /* @__PURE__ */ React45.createElement(DismissButton, {
8800
+ }), children, /* @__PURE__ */ React46.createElement(DismissButton, {
8562
8801
  onDismiss: state.close
8563
8802
  })));
8564
8803
  }
@@ -8670,12 +8909,12 @@ var ComboboxBase = (_a) => {
8670
8909
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
8671
8910
  const inputProps = getInputProps({ ref: inputRef, disabled: disabled || readOnly });
8672
8911
  const hasNoResults = options.length === 0 || inputItems.length === 0;
8673
- return /* @__PURE__ */ React46.createElement("div", {
8912
+ return /* @__PURE__ */ React47.createElement("div", {
8674
8913
  className: classNames("Aquarium-ComboboxBase", tw("relative"))
8675
- }, /* @__PURE__ */ React46.createElement(Select.InputContainer, {
8914
+ }, /* @__PURE__ */ React47.createElement(Select.InputContainer, {
8676
8915
  ref: targetRef,
8677
8916
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
8678
- }, /* @__PURE__ */ React46.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
8917
+ }, /* @__PURE__ */ React47.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
8679
8918
  id,
8680
8919
  ref: inputRef,
8681
8920
  name,
@@ -8698,10 +8937,10 @@ var ComboboxBase = (_a) => {
8698
8937
  (_a3 = inputProps.onKeyDown) == null ? void 0 : _a3.call(inputProps, e);
8699
8938
  },
8700
8939
  onKeyUp: (e) => e.stopPropagation()
8701
- })), !readOnly && /* @__PURE__ */ React46.createElement(Select.Toggle, __spreadValues({
8940
+ })), !readOnly && /* @__PURE__ */ React47.createElement(Select.Toggle, __spreadValues({
8702
8941
  hasFocus,
8703
8942
  isOpen
8704
- }, getToggleButtonProps({ disabled })))), isOpen && /* @__PURE__ */ React46.createElement(PopoverOverlay, {
8943
+ }, getToggleButtonProps({ disabled })))), isOpen && /* @__PURE__ */ React47.createElement(PopoverOverlay, {
8705
8944
  ref: popoverRef,
8706
8945
  triggerRef: targetRef,
8707
8946
  state,
@@ -8709,16 +8948,16 @@ var ComboboxBase = (_a) => {
8709
8948
  shouldFlip: true,
8710
8949
  isNonModal: true,
8711
8950
  style: { width: (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth }
8712
- }, /* @__PURE__ */ React46.createElement(Select.Menu, __spreadValues({
8951
+ }, /* @__PURE__ */ React47.createElement(Select.Menu, __spreadValues({
8713
8952
  ref: menuRef,
8714
8953
  maxHeight
8715
- }, menuProps), hasNoResults && /* @__PURE__ */ React46.createElement(Select.NoResults, null, emptyState), inputItems.map((item, index) => /* @__PURE__ */ React46.createElement(Select.Item, __spreadValues({
8954
+ }, menuProps), hasNoResults && /* @__PURE__ */ React47.createElement(Select.NoResults, null, emptyState), inputItems.map((item, index) => /* @__PURE__ */ React47.createElement(Select.Item, __spreadValues({
8716
8955
  key: itemToString(item),
8717
8956
  selected: item === selectedItem,
8718
8957
  highlighted: index === highlightedIndex
8719
8958
  }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
8720
8959
  };
8721
- var ComboboxBaseSkeleton = () => /* @__PURE__ */ React46.createElement(Skeleton, {
8960
+ var ComboboxBaseSkeleton = () => /* @__PURE__ */ React47.createElement(Skeleton, {
8722
8961
  height: 38
8723
8962
  });
8724
8963
  ComboboxBase.Skeleton = ComboboxBaseSkeleton;
@@ -8733,32 +8972,33 @@ var Combobox = (_a) => {
8733
8972
  "emptyState"
8734
8973
  ]);
8735
8974
  var _a2;
8736
- const id = useRef5((_a2 = props.id) != null ? _a2 : `combobox-${uniqueId2()}`);
8737
- const errorMessageId = uniqueId2();
8975
+ const defaultId = useId3();
8976
+ const id = (_a2 = props.id) != null ? _a2 : defaultId;
8977
+ const errorMessageId = useId3();
8738
8978
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8739
8979
  const labelControlProps = getLabelControlProps(props);
8740
- const baseProps = omit5(props, Object.keys(labelControlProps));
8741
- return /* @__PURE__ */ React46.createElement(LabelControl, __spreadProps(__spreadValues({
8742
- id: `${id.current}-label`,
8743
- htmlFor: `${id.current}-input`,
8980
+ const baseProps = omit4(props, Object.keys(labelControlProps));
8981
+ return /* @__PURE__ */ React47.createElement(LabelControl, __spreadProps(__spreadValues({
8982
+ id: `${id}-label`,
8983
+ htmlFor: `${id}-input`,
8744
8984
  messageId: errorMessageId
8745
8985
  }, labelControlProps), {
8746
8986
  className: "Aquarium-Combobox"
8747
- }), /* @__PURE__ */ React46.createElement(ComboboxBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
8748
- id: id.current,
8987
+ }), /* @__PURE__ */ React47.createElement(ComboboxBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
8988
+ id,
8749
8989
  options,
8750
8990
  emptyState,
8751
8991
  disabled: props.disabled,
8752
8992
  valid: props.valid
8753
8993
  })));
8754
8994
  };
8755
- var ComboboxSkeleton = () => /* @__PURE__ */ React46.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React46.createElement(ComboboxBase.Skeleton, null));
8995
+ var ComboboxSkeleton = () => /* @__PURE__ */ React47.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React47.createElement(ComboboxBase.Skeleton, null));
8756
8996
  Combobox.Skeleton = ComboboxSkeleton;
8757
8997
  Combobox.Skeleton.displayName = "Combobox.Skeleton";
8758
8998
 
8759
8999
  // src/molecules/Container/Container.tsx
8760
- import React47 from "react";
8761
- var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React47.createElement(Box, {
9000
+ import React48 from "react";
9001
+ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React48.createElement(Box, {
8762
9002
  marginLeft: "auto",
8763
9003
  marginRight: "auto",
8764
9004
  width: "full",
@@ -8773,13 +9013,13 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React47.crea
8773
9013
  }, children);
8774
9014
 
8775
9015
  // src/molecules/DataList/DataList.tsx
8776
- import React64 from "react";
9016
+ import React65 from "react";
8777
9017
  import compact from "lodash/compact";
8778
9018
  import groupBy2 from "lodash/groupBy";
8779
9019
  import isFunction from "lodash/isFunction";
8780
9020
 
8781
9021
  // src/molecules/DropdownMenu/DropdownMenu.tsx
8782
- import React51 from "react";
9022
+ import React52 from "react";
8783
9023
  import { useFilter } from "@react-aria/i18n";
8784
9024
  import { PressResponder, usePress } from "@react-aria/interactions";
8785
9025
  import { useMenu, useMenuItem, useMenuSection, useMenuTrigger } from "@react-aria/menu";
@@ -8788,39 +9028,40 @@ import { mergeProps as mergeProps2 } from "@react-aria/utils";
8788
9028
  import { Item as Item3, Section } from "@react-stately/collections";
8789
9029
  import { useMenuTriggerState } from "@react-stately/menu";
8790
9030
  import { useTreeState } from "@react-stately/tree";
9031
+ import omit6 from "lodash/omit";
8791
9032
 
8792
9033
  // src/molecules/Input/Input.tsx
8793
- import React49, { forwardRef, useImperativeHandle, useRef as useRef6, useState as useState6 } from "react";
8794
- import omit6 from "lodash/omit";
9034
+ import React50, { forwardRef, useImperativeHandle, useState as useState6 } from "react";
9035
+ import { useId as useId4 } from "@react-aria/utils";
9036
+ import omit5 from "lodash/omit";
8795
9037
  import toString from "lodash/toString";
8796
- import uniqueId3 from "lodash/uniqueId";
8797
9038
 
8798
9039
  // src/utils/form/InputAdornment/InputAdornment.tsx
8799
- import React48 from "react";
9040
+ import React49 from "react";
8800
9041
  var import_cross5 = __toESM(require_cross());
8801
9042
  var import_error3 = __toESM(require_error());
8802
9043
  var import_search3 = __toESM(require_search());
8803
9044
  var import_tick4 = __toESM(require_tick());
8804
9045
  var InputAdornment = ({ placement = "right", className, dense, children }) => {
8805
- return /* @__PURE__ */ React48.createElement("span", {
9046
+ return /* @__PURE__ */ React49.createElement("span", {
8806
9047
  className: classNames(className, "absolute inset-y-0 grow-0 text-grey-40 flex items-center mx-3", {
8807
9048
  "right-0": placement === "right",
8808
9049
  "left-0": placement === "left",
8809
9050
  "typography-small": dense,
8810
9051
  "typography-default-strong": !dense
8811
9052
  })
8812
- }, /* @__PURE__ */ React48.createElement(Flexbox, {
9053
+ }, /* @__PURE__ */ React49.createElement(Flexbox, {
8813
9054
  gap: "3",
8814
9055
  wrap: "wrap"
8815
9056
  }, children));
8816
9057
  };
8817
- var SearchIcon = ({ onClick }) => /* @__PURE__ */ React48.createElement(Icon, {
9058
+ var SearchIcon = ({ onClick }) => /* @__PURE__ */ React49.createElement(Icon, {
8818
9059
  icon: import_search3.default,
8819
9060
  color: "grey-30",
8820
9061
  "data-testid": "icon-search",
8821
9062
  onClick
8822
9063
  });
8823
- var ResetIcon = ({ onClick }) => /* @__PURE__ */ React48.createElement(Icon, {
9064
+ var ResetIcon = ({ onClick }) => /* @__PURE__ */ React49.createElement(Icon, {
8824
9065
  className: "hover:cursor-pointer",
8825
9066
  icon: import_cross5.default,
8826
9067
  color: "grey-30",
@@ -8850,7 +9091,7 @@ var createInput = (displayName, opts = {}) => {
8850
9091
  "readOnly"
8851
9092
  ]);
8852
9093
  var _a2;
8853
- const inputRef = React49.useRef(null);
9094
+ const inputRef = React50.useRef(null);
8854
9095
  useImperativeHandle(ref, () => inputRef.current);
8855
9096
  const handleReset = () => {
8856
9097
  var _a3;
@@ -8863,11 +9104,11 @@ var createInput = (displayName, opts = {}) => {
8863
9104
  el.focus();
8864
9105
  }
8865
9106
  };
8866
- return /* @__PURE__ */ React49.createElement("span", {
9107
+ return /* @__PURE__ */ React50.createElement("span", {
8867
9108
  className: classNames("Aquarium-InputBase", tw("relative block"))
8868
- }, opts.adornment && /* @__PURE__ */ React49.createElement(InputAdornment, {
9109
+ }, opts.adornment && /* @__PURE__ */ React50.createElement(InputAdornment, {
8869
9110
  placement: "left"
8870
- }, opts.adornment), /* @__PURE__ */ React49.createElement("input", __spreadProps(__spreadValues({
9111
+ }, opts.adornment), /* @__PURE__ */ React50.createElement("input", __spreadProps(__spreadValues({
8871
9112
  ref: inputRef,
8872
9113
  type
8873
9114
  }, props), {
@@ -8883,40 +9124,41 @@ var createInput = (displayName, opts = {}) => {
8883
9124
  getCommonInputStyles({ readOnly, valid }),
8884
9125
  props.className
8885
9126
  )
8886
- })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React49.createElement(InputAdornment, null, /* @__PURE__ */ React49.createElement("button", {
9127
+ })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React50.createElement(InputAdornment, null, /* @__PURE__ */ React50.createElement("button", {
8887
9128
  "aria-label": "reset search",
8888
9129
  onClick: handleReset
8889
- }, /* @__PURE__ */ React49.createElement(ResetIcon, null))), !opts.canReset && endAdornment && /* @__PURE__ */ React49.createElement(InputAdornment, null, endAdornment));
9130
+ }, /* @__PURE__ */ React50.createElement(ResetIcon, null))), !opts.canReset && endAdornment && /* @__PURE__ */ React50.createElement(InputAdornment, null, endAdornment));
8890
9131
  }
8891
9132
  );
8892
9133
  InputComponent.displayName = displayName;
8893
- InputComponent.Skeleton = () => /* @__PURE__ */ React49.createElement(Skeleton, {
9134
+ InputComponent.Skeleton = () => /* @__PURE__ */ React50.createElement(Skeleton, {
8894
9135
  height: 38
8895
9136
  });
8896
9137
  return InputComponent;
8897
9138
  };
8898
9139
  var InputBase = createInput("InputBase");
8899
- var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React49.createElement(SearchIcon, null), canReset: true });
8900
- var Input2 = React49.forwardRef((_a, ref) => {
9140
+ var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React50.createElement(SearchIcon, null), canReset: true });
9141
+ var Input2 = React50.forwardRef((_a, ref) => {
8901
9142
  var _b = _a, { readOnly = false } = _b, props = __objRest(_b, ["readOnly"]);
8902
9143
  var _a2, _b2, _c;
8903
9144
  const [value, setValue] = useState6((_b2 = (_a2 = props.value) != null ? _a2 : props.defaultValue) != null ? _b2 : "");
8904
- const id = useRef6((_c = props.id) != null ? _c : `input-${uniqueId3()}`);
8905
- const errorMessageId = uniqueId3();
9145
+ const defaultId = useId4();
9146
+ const id = (_c = props.id) != null ? _c : defaultId;
9147
+ const errorMessageId = useId4();
8906
9148
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8907
9149
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
8908
- const baseProps = omit6(props, Object.keys(labelControlProps));
8909
- return /* @__PURE__ */ React49.createElement(LabelControl, __spreadProps(__spreadValues({
8910
- id: `${id.current}-label`,
8911
- htmlFor: id.current,
9150
+ const baseProps = omit5(props, Object.keys(labelControlProps));
9151
+ return /* @__PURE__ */ React50.createElement(LabelControl, __spreadProps(__spreadValues({
9152
+ id: `${id}-label`,
9153
+ htmlFor: id,
8912
9154
  messageId: errorMessageId,
8913
9155
  length: value !== void 0 ? toString(value).length : void 0
8914
9156
  }, labelControlProps), {
8915
9157
  className: "Aquarium-Input"
8916
- }), /* @__PURE__ */ React49.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
9158
+ }), /* @__PURE__ */ React50.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
8917
9159
  ref
8918
9160
  }, baseProps), errorProps), {
8919
- id: id.current,
9161
+ id,
8920
9162
  "data-testid": dataTestId,
8921
9163
  onChange: (e) => {
8922
9164
  var _a3;
@@ -8931,42 +9173,42 @@ var Input2 = React49.forwardRef((_a, ref) => {
8931
9173
  })));
8932
9174
  });
8933
9175
  Input2.displayName = "Input";
8934
- Input2.Skeleton = () => /* @__PURE__ */ React49.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React49.createElement(InputBase.Skeleton, null));
9176
+ Input2.Skeleton = () => /* @__PURE__ */ React50.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React50.createElement(InputBase.Skeleton, null));
8935
9177
  Input2.Skeleton.displayName = "Input.Skeleton";
8936
9178
 
8937
9179
  // src/atoms/DropdownMenu/DropdownMenu.tsx
8938
- import React50 from "react";
9180
+ import React51 from "react";
8939
9181
  var import_tick5 = __toESM(require_tick());
8940
- var DropdownMenu = React50.forwardRef(
9182
+ var DropdownMenu = React51.forwardRef(
8941
9183
  (_a, ref) => {
8942
9184
  var _b = _a, { maxHeight = "450px", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["maxHeight", "minWidth", "maxWidth", "className", "children"]);
8943
- return /* @__PURE__ */ React50.createElement("div", __spreadValues({
9185
+ return /* @__PURE__ */ React51.createElement("div", __spreadValues({
8944
9186
  ref,
8945
9187
  style: { maxHeight, minWidth, maxWidth },
8946
9188
  className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-grey-70")
8947
9189
  }, props), children);
8948
9190
  }
8949
9191
  );
8950
- var ContentContainer = ({ children }) => /* @__PURE__ */ React50.createElement("div", {
9192
+ var ContentContainer = ({ children }) => /* @__PURE__ */ React51.createElement("div", {
8951
9193
  className: tw("p-3 overflow-y-auto overflow-x-hidden")
8952
9194
  }, children);
8953
9195
  DropdownMenu.ContentContainer = ContentContainer;
8954
- var List = React50.forwardRef(
9196
+ var List = React51.forwardRef(
8955
9197
  (_a, ref) => {
8956
9198
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
8957
- return /* @__PURE__ */ React50.createElement("ul", __spreadValues({
9199
+ return /* @__PURE__ */ React51.createElement("ul", __spreadValues({
8958
9200
  ref,
8959
9201
  className: classNames(className, "outline-none ring-0")
8960
9202
  }, props), children);
8961
9203
  }
8962
9204
  );
8963
9205
  DropdownMenu.List = List;
8964
- var Group2 = React50.forwardRef(
9206
+ var Group2 = React51.forwardRef(
8965
9207
  (_a, ref) => {
8966
9208
  var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
8967
- return /* @__PURE__ */ React50.createElement("li", __spreadValues({
9209
+ return /* @__PURE__ */ React51.createElement("li", __spreadValues({
8968
9210
  ref
8969
- }, props), title && /* @__PURE__ */ React50.createElement("div", __spreadValues({
9211
+ }, props), title && /* @__PURE__ */ React51.createElement("div", __spreadValues({
8970
9212
  className: classNames(className, "p-3 text-grey-40 uppercase cursor-default typography-caption", {
8971
9213
  "text-grey-20": props.disabled
8972
9214
  })
@@ -8974,10 +9216,10 @@ var Group2 = React50.forwardRef(
8974
9216
  }
8975
9217
  );
8976
9218
  DropdownMenu.Group = Group2;
8977
- var Item2 = React50.forwardRef(
9219
+ var Item2 = React51.forwardRef(
8978
9220
  (_a, ref) => {
8979
9221
  var _b = _a, { kind, highlighted, selected, className, icon, showNotification = false, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "showNotification", "children"]);
8980
- return /* @__PURE__ */ React50.createElement("li", __spreadValues({
9222
+ return /* @__PURE__ */ React51.createElement("li", __spreadValues({
8981
9223
  ref,
8982
9224
  className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
8983
9225
  "cursor-pointer hover:bg-grey-0": !props.disabled,
@@ -8985,32 +9227,32 @@ var Item2 = React50.forwardRef(
8985
9227
  "text-primary-80": kind === "action",
8986
9228
  "text-grey-20 cursor-not-allowed": props.disabled
8987
9229
  })
8988
- }, props), icon && showNotification && /* @__PURE__ */ React50.createElement(Badge.Notification, null, /* @__PURE__ */ React50.createElement(InlineIcon, {
9230
+ }, props), icon && showNotification && /* @__PURE__ */ React51.createElement(Badge.Notification, null, /* @__PURE__ */ React51.createElement(InlineIcon, {
8989
9231
  icon
8990
- })), icon && !showNotification && /* @__PURE__ */ React50.createElement(InlineIcon, {
9232
+ })), icon && !showNotification && /* @__PURE__ */ React51.createElement(InlineIcon, {
8991
9233
  icon
8992
- }), /* @__PURE__ */ React50.createElement("span", {
9234
+ }), /* @__PURE__ */ React51.createElement("span", {
8993
9235
  className: tw("grow")
8994
- }, children), selected && /* @__PURE__ */ React50.createElement(InlineIcon, {
9236
+ }, children), selected && /* @__PURE__ */ React51.createElement(InlineIcon, {
8995
9237
  icon: import_tick5.default
8996
9238
  }));
8997
9239
  }
8998
9240
  );
8999
9241
  DropdownMenu.Item = Item2;
9000
- var Description = ({ disabled, children }) => /* @__PURE__ */ React50.createElement(Typography2.Caption, {
9242
+ var Description = ({ disabled, children }) => /* @__PURE__ */ React51.createElement(Typography2.Caption, {
9001
9243
  color: disabled ? "grey-20" : "grey-40"
9002
9244
  }, children);
9003
9245
  DropdownMenu.Description = Description;
9004
9246
  var Separator = (_a) => {
9005
9247
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
9006
- return /* @__PURE__ */ React50.createElement("li", __spreadProps(__spreadValues({}, props), {
9248
+ return /* @__PURE__ */ React51.createElement("li", __spreadProps(__spreadValues({}, props), {
9007
9249
  className: classNames(className, tw("m-3 block bg-grey-5 h-[1px]"))
9008
9250
  }));
9009
9251
  };
9010
9252
  DropdownMenu.Separator = Separator;
9011
9253
  var EmptyStateContainer2 = (_a) => {
9012
9254
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
9013
- return /* @__PURE__ */ React50.createElement("div", __spreadValues({
9255
+ return /* @__PURE__ */ React51.createElement("div", __spreadValues({
9014
9256
  className: classNames(tw("border border-dashed border-grey-10 p-3"), className)
9015
9257
  }, props), children);
9016
9258
  };
@@ -9066,20 +9308,20 @@ var DropdownMenu2 = (_a) => {
9066
9308
  "footer",
9067
9309
  "children"
9068
9310
  ]);
9069
- const triggerRef = React51.useRef(null);
9311
+ const triggerRef = React52.useRef(null);
9070
9312
  const [trigger, items] = extractTriggerAndItems(children);
9071
9313
  const state = useMenuTriggerState(props);
9072
9314
  const { menuTriggerProps, menuProps } = useMenuTrigger({}, state, triggerRef);
9073
- return /* @__PURE__ */ React51.createElement("div", null, /* @__PURE__ */ React51.createElement(PressResponder, __spreadValues({
9315
+ return /* @__PURE__ */ React52.createElement("div", null, /* @__PURE__ */ React52.createElement(PressResponder, __spreadValues({
9074
9316
  ref: triggerRef,
9075
9317
  onPress: () => state.toggle()
9076
- }, menuTriggerProps), /* @__PURE__ */ React51.createElement(TriggerWrapper, null, trigger.props.children)), state.isOpen && /* @__PURE__ */ React51.createElement(PopoverOverlay, {
9318
+ }, omit6(menuTriggerProps, "id")), /* @__PURE__ */ React52.createElement(TriggerWrapper, null, trigger.props.children)), state.isOpen && /* @__PURE__ */ React52.createElement(PopoverOverlay, {
9077
9319
  className: "Aquarium-DropdownMenu",
9078
9320
  triggerRef,
9079
9321
  state,
9080
9322
  placement,
9081
9323
  focusable: false
9082
- }, /* @__PURE__ */ React51.createElement(MenuWrapper, __spreadValues({
9324
+ }, /* @__PURE__ */ React52.createElement(MenuWrapper, __spreadValues({
9083
9325
  onAction,
9084
9326
  selectionMode,
9085
9327
  selection,
@@ -9105,13 +9347,13 @@ DropdownMenu2.Section = Section;
9105
9347
  DropdownMenu2.Section.displayName = "DropdownMenu.Section";
9106
9348
  var TriggerWrapper = (_a) => {
9107
9349
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
9108
- const ref = React51.useRef(null);
9350
+ const ref = React52.useRef(null);
9109
9351
  const { pressProps } = usePress(__spreadProps(__spreadValues({}, props), { ref }));
9110
- const trigger = React51.Children.only(children);
9111
- if (!trigger || !React51.isValidElement(trigger)) {
9352
+ const trigger = React52.Children.only(children);
9353
+ if (!trigger || !React52.isValidElement(trigger)) {
9112
9354
  throw new Error("<DropdownMenu.Trigger> must have valid child");
9113
9355
  }
9114
- return React51.cloneElement(trigger, __spreadValues({ ref }, mergeProps2(pressProps, props)));
9356
+ return React52.cloneElement(trigger, __spreadValues({ ref }, mergeProps2(pressProps, props)));
9115
9357
  };
9116
9358
  var isSectionNode = (item) => item.type === "section";
9117
9359
  var isItemNode = (item) => item.type === "item";
@@ -9133,7 +9375,7 @@ var MenuWrapper = (_a) => {
9133
9375
  "header",
9134
9376
  "footer"
9135
9377
  ]);
9136
- const ref = React51.useRef(null);
9378
+ const ref = React52.useRef(null);
9137
9379
  const disabledKeys = getDisabledItemKeys(props.children);
9138
9380
  const state = useTreeState(__spreadValues({
9139
9381
  disabledKeys,
@@ -9141,30 +9383,30 @@ var MenuWrapper = (_a) => {
9141
9383
  }, props));
9142
9384
  const { menuProps } = useMenu(props, state, ref);
9143
9385
  const { contains } = useFilter({ sensitivity: "base" });
9144
- const [search, setSearch] = React51.useState("");
9145
- const filteredCollection = React51.useMemo(
9386
+ const [search, setSearch] = React52.useState("");
9387
+ const filteredCollection = React52.useMemo(
9146
9388
  () => searchable ? filterCollection(state.collection, search, contains) : state.collection,
9147
9389
  [searchable, state.collection, search, contains]
9148
9390
  );
9149
- return /* @__PURE__ */ React51.createElement(DropdownMenu, {
9391
+ return /* @__PURE__ */ React52.createElement(DropdownMenu, {
9150
9392
  minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
9151
9393
  maxWidth: maxWidth !== void 0 ? `${maxWidth}px` : void 0
9152
- }, header, /* @__PURE__ */ React51.createElement(DropdownMenu.ContentContainer, null, searchable && /* @__PURE__ */ React51.createElement(SearchInput, {
9394
+ }, header, /* @__PURE__ */ React52.createElement(DropdownMenu.ContentContainer, null, searchable && /* @__PURE__ */ React52.createElement(SearchInput, {
9153
9395
  "aria-label": "search",
9154
9396
  value: search,
9155
9397
  onChange: (e) => setSearch(e.target.value),
9156
9398
  className: tw("mb-5")
9157
- }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React51.createElement(DropdownMenu.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React51.createElement(DropdownMenu.List, __spreadValues({
9399
+ }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React52.createElement(DropdownMenu.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React52.createElement(DropdownMenu.List, __spreadValues({
9158
9400
  ref
9159
9401
  }, menuProps), Array.from(filteredCollection).map((item) => {
9160
9402
  if (isSectionNode(item)) {
9161
- return /* @__PURE__ */ React51.createElement(SectionWrapper, {
9403
+ return /* @__PURE__ */ React52.createElement(SectionWrapper, {
9162
9404
  key: item.key,
9163
9405
  section: item,
9164
9406
  state
9165
9407
  });
9166
9408
  } else if (isItemNode(item)) {
9167
- return /* @__PURE__ */ React51.createElement(ItemWrapper, {
9409
+ return /* @__PURE__ */ React52.createElement(ItemWrapper, {
9168
9410
  key: item.key,
9169
9411
  item,
9170
9412
  state
@@ -9173,14 +9415,14 @@ var MenuWrapper = (_a) => {
9173
9415
  }))), footer);
9174
9416
  };
9175
9417
  var ItemWrapper = ({ item, state }) => {
9176
- const ref = React51.useRef(null);
9418
+ const ref = React52.useRef(null);
9177
9419
  const { menuItemProps, descriptionProps, isSelected, isFocused, isDisabled } = useMenuItem(
9178
9420
  { key: item.key, closeOnSelect: item.props.closeOnSelect },
9179
9421
  state,
9180
9422
  ref
9181
9423
  );
9182
9424
  const { icon, description, kind = "default", showNotification = false } = item.props;
9183
- return /* @__PURE__ */ React51.createElement(DropdownMenu.Item, __spreadProps(__spreadValues({
9425
+ return /* @__PURE__ */ React52.createElement(DropdownMenu.Item, __spreadProps(__spreadValues({
9184
9426
  ref
9185
9427
  }, menuItemProps), {
9186
9428
  kind,
@@ -9189,7 +9431,7 @@ var ItemWrapper = ({ item, state }) => {
9189
9431
  disabled: isDisabled,
9190
9432
  icon,
9191
9433
  showNotification
9192
- }), item.rendered, description && /* @__PURE__ */ React51.createElement(DropdownMenu.Description, __spreadValues({
9434
+ }), item.rendered, description && /* @__PURE__ */ React52.createElement(DropdownMenu.Description, __spreadValues({
9193
9435
  disabled: isDisabled
9194
9436
  }, descriptionProps), description));
9195
9437
  };
@@ -9201,24 +9443,24 @@ var SectionWrapper = ({ section, state }) => {
9201
9443
  const { separatorProps } = useSeparator({
9202
9444
  elementType: "li"
9203
9445
  });
9204
- return /* @__PURE__ */ React51.createElement(React51.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React51.createElement(DropdownMenu.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React51.createElement(DropdownMenu.Group, __spreadValues({
9446
+ return /* @__PURE__ */ React52.createElement(React52.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React52.createElement(DropdownMenu.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React52.createElement(DropdownMenu.Group, __spreadValues({
9205
9447
  title: section.rendered,
9206
9448
  titleProps: headingProps
9207
- }, itemProps), /* @__PURE__ */ React51.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React51.createElement(ItemWrapper, {
9449
+ }, itemProps), /* @__PURE__ */ React52.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React52.createElement(ItemWrapper, {
9208
9450
  key: node.key,
9209
9451
  item: node,
9210
9452
  state
9211
9453
  })))));
9212
9454
  };
9213
9455
  var extractTriggerAndItems = (children) => {
9214
- const [trigger, items] = React51.Children.toArray(children);
9456
+ const [trigger, items] = React52.Children.toArray(children);
9215
9457
  if (!isComponentType(trigger, MenuTrigger) || !isComponentType(items, MenuItems)) {
9216
9458
  throw new Error("<DropdownMenu> must have <DropdownMenu.Trigger> and <DropdownMenu.Items> defined");
9217
9459
  }
9218
9460
  return [trigger, items];
9219
9461
  };
9220
9462
  var getDisabledItemKeys = (children) => {
9221
- const keys = React51.Children.map(children, (child) => {
9463
+ const keys = React52.Children.map(children, (child) => {
9222
9464
  var _a, _b;
9223
9465
  if (!child || typeof child === "function") {
9224
9466
  return null;
@@ -9235,21 +9477,21 @@ var getDisabledItemKeys = (children) => {
9235
9477
  };
9236
9478
 
9237
9479
  // src/molecules/List/List.tsx
9238
- import React54 from "react";
9480
+ import React55 from "react";
9239
9481
  import isObject from "lodash/isObject";
9240
9482
 
9241
9483
  // src/molecules/Pagination/Pagination.tsx
9242
- import React53 from "react";
9484
+ import React54 from "react";
9243
9485
  import clamp from "lodash/clamp";
9244
9486
 
9245
9487
  // src/molecules/Select/Select.tsx
9246
- import React52, { useRef as useRef7, useState as useState7 } from "react";
9488
+ import React53, { useRef as useRef6, useState as useState7 } from "react";
9489
+ import { useId as useId5 } from "@react-aria/utils";
9247
9490
  import { useSelect } from "downshift";
9248
9491
  import defaults from "lodash/defaults";
9249
9492
  import isArray from "lodash/isArray";
9250
9493
  import isNil from "lodash/isNil";
9251
9494
  import omit7 from "lodash/omit";
9252
- import uniqueId4 from "lodash/uniqueId";
9253
9495
  var hasIconProperty = (val) => {
9254
9496
  var _a;
9255
9497
  return typeof val === "string" || ((_a = val == null ? void 0 : val.icon) == null ? void 0 : _a.body) !== void 0;
@@ -9259,10 +9501,10 @@ var hasOptionGroups = (val) => {
9259
9501
  };
9260
9502
  var defaultRenderOption = (item, props, { selectedItem }, { getOptionKey, getValue, optionToString = getOptionLabelBuiltin }) => {
9261
9503
  var _a, _b;
9262
- return /* @__PURE__ */ React52.createElement(Select.Item, __spreadValues({
9504
+ return /* @__PURE__ */ React53.createElement(Select.Item, __spreadValues({
9263
9505
  key: (_b = (_a = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a : getValue == null ? void 0 : getValue(item)) != null ? _b : optionToString(item),
9264
9506
  selected: item === selectedItem
9265
- }, props), hasIconProperty(item) && /* @__PURE__ */ React52.createElement(InlineIcon, {
9507
+ }, props), hasIconProperty(item) && /* @__PURE__ */ React53.createElement(InlineIcon, {
9266
9508
  icon: item.icon
9267
9509
  }), optionToString(item));
9268
9510
  };
@@ -9334,8 +9576,8 @@ var _SelectBase = (props) => {
9334
9576
  "labelWrapper"
9335
9577
  ]);
9336
9578
  const [hasFocus, setFocus] = useState7(false);
9337
- const targetRef = useRef7(null);
9338
- const menuRef = useRef7(null);
9579
+ const targetRef = useRef6(null);
9580
+ const menuRef = useRef6(null);
9339
9581
  const items = hasOptionGroups(options) ? options.flatMap((g) => g.options) : options;
9340
9582
  const findItemByValue = (val) => {
9341
9583
  if (val === null) {
@@ -9381,13 +9623,13 @@ var _SelectBase = (props) => {
9381
9623
  },
9382
9624
  withDefaults
9383
9625
  );
9384
- const renderGroup = (group) => /* @__PURE__ */ React52.createElement(React52.Fragment, {
9626
+ const renderGroup = (group) => /* @__PURE__ */ React53.createElement(React53.Fragment, {
9385
9627
  key: group.label
9386
- }, /* @__PURE__ */ React52.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
9387
- const input = /* @__PURE__ */ React52.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
9628
+ }, /* @__PURE__ */ React53.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
9629
+ const input = /* @__PURE__ */ React53.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
9388
9630
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default",
9389
9631
  tabIndex: 0
9390
- }), /* @__PURE__ */ React52.createElement(Select.Input, __spreadProps(__spreadValues({
9632
+ }), /* @__PURE__ */ React53.createElement(Select.Input, __spreadProps(__spreadValues({
9391
9633
  id,
9392
9634
  name
9393
9635
  }, rest), {
@@ -9399,26 +9641,26 @@ var _SelectBase = (props) => {
9399
9641
  tabIndex: -1,
9400
9642
  onFocus: () => setFocus(true),
9401
9643
  onBlur: () => setFocus(false)
9402
- })), !readOnly && /* @__PURE__ */ React52.createElement(Select.Toggle, {
9644
+ })), !readOnly && /* @__PURE__ */ React53.createElement(Select.Toggle, {
9403
9645
  disabled,
9404
9646
  isOpen,
9405
9647
  tabIndex: -1
9406
9648
  }));
9407
9649
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
9408
- return /* @__PURE__ */ React52.createElement("div", {
9650
+ return /* @__PURE__ */ React53.createElement("div", {
9409
9651
  className: classNames("Aquarium-SelectBase", tw("relative"))
9410
- }, labelWrapper ? React52.cloneElement(labelWrapper, { children: input }) : input, isOpen && /* @__PURE__ */ React52.createElement(PopoverOverlay, {
9652
+ }, labelWrapper ? React53.cloneElement(labelWrapper, { children: input }) : input, isOpen && /* @__PURE__ */ React53.createElement(PopoverOverlay, {
9411
9653
  state,
9412
9654
  triggerRef: targetRef,
9413
9655
  placement: "bottom-left",
9414
9656
  shouldFlip: true,
9415
9657
  style: { width: (_b = targetRef.current) == null ? void 0 : _b.offsetWidth }
9416
- }, /* @__PURE__ */ React52.createElement(Select.Menu, __spreadValues({
9658
+ }, /* @__PURE__ */ React53.createElement(Select.Menu, __spreadValues({
9417
9659
  ref: menuRef,
9418
9660
  maxHeight
9419
- }, menuProps), options.length === 0 && /* @__PURE__ */ React52.createElement(Select.EmptyStateContainer, null, emptyState), options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), actions.length > 0 && /* @__PURE__ */ React52.createElement(React52.Fragment, null, /* @__PURE__ */ React52.createElement(Select.Divider, {
9661
+ }, menuProps), options.length === 0 && /* @__PURE__ */ React53.createElement(Select.EmptyStateContainer, null, emptyState), options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), actions.length > 0 && /* @__PURE__ */ React53.createElement(React53.Fragment, null, /* @__PURE__ */ React53.createElement(Select.Divider, {
9420
9662
  onMouseOver: () => setHighlightedIndex(-1)
9421
- }), actions.map((act, index) => /* @__PURE__ */ React52.createElement(Select.ActionItem, __spreadProps(__spreadValues({
9663
+ }), actions.map((act, index) => /* @__PURE__ */ React53.createElement(Select.ActionItem, __spreadProps(__spreadValues({
9422
9664
  key: `${index}`
9423
9665
  }, act), {
9424
9666
  onMouseOver: () => setHighlightedIndex(-1),
@@ -9428,10 +9670,10 @@ var _SelectBase = (props) => {
9428
9670
  }
9429
9671
  }), act.label))))));
9430
9672
  };
9431
- var SelectBase = (props) => /* @__PURE__ */ React52.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
9673
+ var SelectBase = (props) => /* @__PURE__ */ React53.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
9432
9674
  labelWrapper: void 0
9433
9675
  }));
9434
- var SelectBaseSkeleton = () => /* @__PURE__ */ React52.createElement(Skeleton, {
9676
+ var SelectBaseSkeleton = () => /* @__PURE__ */ React53.createElement(Skeleton, {
9435
9677
  height: 38
9436
9678
  });
9437
9679
  SelectBase.Skeleton = SelectBaseSkeleton;
@@ -9442,28 +9684,29 @@ var Select2 = (_a) => {
9442
9684
  "options"
9443
9685
  ]);
9444
9686
  var _a2;
9445
- const id = useRef7((_a2 = props.id) != null ? _a2 : `select-${uniqueId4()}`);
9446
- const errorMessageId = uniqueId4();
9687
+ const defaultId = useId5();
9688
+ const id = (_a2 = props.id) != null ? _a2 : defaultId;
9689
+ const errorMessageId = useId5();
9447
9690
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
9448
9691
  const labelProps = getLabelControlProps(props);
9449
9692
  const baseProps = omit7(props, Object.keys(labelProps));
9450
9693
  const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
9451
9694
  const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
9452
- const label = /* @__PURE__ */ React52.createElement(Label, __spreadValues({
9453
- id: `${id.current}-label`,
9454
- htmlFor: `${id.current}-input`,
9695
+ const label = /* @__PURE__ */ React53.createElement(Label, __spreadValues({
9696
+ id: `${id}-label`,
9697
+ htmlFor: `${id}-input`,
9455
9698
  variant,
9456
9699
  messageId: errorMessageId
9457
9700
  }, labelProps));
9458
- return /* @__PURE__ */ React52.createElement(FormControl, {
9701
+ return /* @__PURE__ */ React53.createElement(FormControl, {
9459
9702
  className: "Aquarium-Select"
9460
- }, /* @__PURE__ */ React52.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
9461
- id: `${id.current}-input`,
9703
+ }, /* @__PURE__ */ React53.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
9704
+ id: `${id}-input`,
9462
9705
  options,
9463
9706
  disabled: props.disabled,
9464
9707
  valid: props.valid,
9465
9708
  labelWrapper: label
9466
- })), /* @__PURE__ */ React52.createElement(HelperText, {
9709
+ })), /* @__PURE__ */ React53.createElement(HelperText, {
9467
9710
  messageId: errorMessageId,
9468
9711
  error: !labelProps.valid,
9469
9712
  helperText: labelProps.helperText,
@@ -9472,7 +9715,7 @@ var Select2 = (_a) => {
9472
9715
  reserveSpaceForError: labelProps.reserveSpaceForError
9473
9716
  }));
9474
9717
  };
9475
- var SelectSkeleton = () => /* @__PURE__ */ React52.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React52.createElement(SelectBase.Skeleton, null));
9718
+ var SelectSkeleton = () => /* @__PURE__ */ React53.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React53.createElement(SelectBase.Skeleton, null));
9476
9719
  Select2.Skeleton = SelectSkeleton;
9477
9720
  Select2.Skeleton.displayName = "Select.Skeleton";
9478
9721
 
@@ -9491,26 +9734,26 @@ var Pagination = ({
9491
9734
  pageSizes,
9492
9735
  onPageSizeChange
9493
9736
  }) => {
9494
- const [value, setValue] = React53.useState(currentPage);
9495
- React53.useEffect(() => {
9737
+ const [value, setValue] = React54.useState(currentPage);
9738
+ React54.useEffect(() => {
9496
9739
  setValue(currentPage);
9497
9740
  }, [currentPage]);
9498
- return /* @__PURE__ */ React53.createElement(Box, {
9741
+ return /* @__PURE__ */ React54.createElement(Box, {
9499
9742
  className: classNames(
9500
9743
  "Aquarium-Pagination",
9501
9744
  tw({ "grid grid-cols-[200px_1fr_200px]": !!pageSizes, "flex flex-nowrap justify-center": !pageSizes })
9502
9745
  ),
9503
9746
  backgroundColor: "grey-0",
9504
9747
  padding: "4"
9505
- }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React53.createElement(Box, {
9748
+ }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React54.createElement(Box, {
9506
9749
  display: "flex",
9507
9750
  alignItems: "center",
9508
9751
  gap: "4"
9509
- }, /* @__PURE__ */ React53.createElement(Typography2.Small, {
9752
+ }, /* @__PURE__ */ React54.createElement(Typography2.Small, {
9510
9753
  color: "grey-50"
9511
- }, "Items per page "), /* @__PURE__ */ React53.createElement("div", {
9754
+ }, "Items per page "), /* @__PURE__ */ React54.createElement("div", {
9512
9755
  className: tw("max-w-[70px]")
9513
- }, /* @__PURE__ */ React53.createElement(SelectBase, {
9756
+ }, /* @__PURE__ */ React54.createElement(SelectBase, {
9514
9757
  options: pageSizes.map((size) => size.toString()),
9515
9758
  value: pageSize.toString(),
9516
9759
  onChange: (size) => {
@@ -9521,26 +9764,26 @@ var Pagination = ({
9521
9764
  }
9522
9765
  }
9523
9766
  }
9524
- }))) : /* @__PURE__ */ React53.createElement("div", null), /* @__PURE__ */ React53.createElement(Box, {
9767
+ }))) : /* @__PURE__ */ React54.createElement("div", null), /* @__PURE__ */ React54.createElement(Box, {
9525
9768
  display: "flex",
9526
9769
  justifyContent: "center",
9527
9770
  alignItems: "center",
9528
9771
  className: tw("grow")
9529
- }, /* @__PURE__ */ React53.createElement(Button.Icon, {
9772
+ }, /* @__PURE__ */ React54.createElement(Button.Icon, {
9530
9773
  "aria-label": "First",
9531
9774
  onClick: () => onPageChange(1),
9532
9775
  icon: import_chevronBackward2.default,
9533
9776
  disabled: !hasPreviousPage
9534
- }), /* @__PURE__ */ React53.createElement(Button.Icon, {
9777
+ }), /* @__PURE__ */ React54.createElement(Button.Icon, {
9535
9778
  "aria-label": "Previous",
9536
9779
  onClick: () => onPageChange(currentPage - 1),
9537
9780
  icon: import_chevronLeft3.default,
9538
9781
  disabled: !hasPreviousPage
9539
- }), /* @__PURE__ */ React53.createElement(Box, {
9782
+ }), /* @__PURE__ */ React54.createElement(Box, {
9540
9783
  paddingX: "4"
9541
- }, /* @__PURE__ */ React53.createElement(Typography2.Small, {
9784
+ }, /* @__PURE__ */ React54.createElement(Typography2.Small, {
9542
9785
  color: "grey-60"
9543
- }, "Page")), /* @__PURE__ */ React53.createElement(InputBase, {
9786
+ }, "Page")), /* @__PURE__ */ React54.createElement(InputBase, {
9544
9787
  className: classNames(tw("text-center max-w-[40px]"), "no-arrows"),
9545
9788
  type: "number",
9546
9789
  min: 1,
@@ -9557,21 +9800,21 @@ var Pagination = ({
9557
9800
  const newPage = !isNaN(numberValue) ? clamp(numberValue, 1, totalPages) : 1;
9558
9801
  onPageChange(newPage);
9559
9802
  }
9560
- }), /* @__PURE__ */ React53.createElement(Box, {
9803
+ }), /* @__PURE__ */ React54.createElement(Box, {
9561
9804
  paddingX: "4"
9562
- }, /* @__PURE__ */ React53.createElement(Typography2.Small, {
9805
+ }, /* @__PURE__ */ React54.createElement(Typography2.Small, {
9563
9806
  color: "grey-60"
9564
- }, "of ", totalPages)), /* @__PURE__ */ React53.createElement(Button.Icon, {
9807
+ }, "of ", totalPages)), /* @__PURE__ */ React54.createElement(Button.Icon, {
9565
9808
  "aria-label": "Next",
9566
9809
  onClick: () => onPageChange(currentPage + 1),
9567
9810
  icon: import_chevronRight3.default,
9568
9811
  disabled: !hasNextPage
9569
- }), /* @__PURE__ */ React53.createElement(Button.Icon, {
9812
+ }), /* @__PURE__ */ React54.createElement(Button.Icon, {
9570
9813
  "aria-label": "Last",
9571
9814
  onClick: () => onPageChange(totalPages),
9572
9815
  icon: import_chevronForward2.default,
9573
9816
  disabled: !hasNextPage
9574
- })), pageSizes && /* @__PURE__ */ React53.createElement("div", null));
9817
+ })), pageSizes && /* @__PURE__ */ React54.createElement("div", null));
9575
9818
  };
9576
9819
 
9577
9820
  // src/molecules/Pagination/usePagination.tsx
@@ -9615,8 +9858,8 @@ var usePagination = (items, options) => {
9615
9858
  var List2 = ({
9616
9859
  items,
9617
9860
  renderItem,
9618
- container = React54.Fragment,
9619
- paginationContainer = React54.Fragment,
9861
+ container = React55.Fragment,
9862
+ paginationContainer = React55.Fragment,
9620
9863
  pagination
9621
9864
  }) => {
9622
9865
  const Component = container;
@@ -9624,11 +9867,11 @@ var List2 = ({
9624
9867
  const paginationProps = isObject(pagination) ? pagination : {};
9625
9868
  const [paginatedItems, paginationState] = usePagination(items, paginationProps);
9626
9869
  const listItems = pagination ? paginatedItems : items;
9627
- return /* @__PURE__ */ React54.createElement(React54.Fragment, null, /* @__PURE__ */ React54.createElement(Component, null, listItems.map(renderItem)), pagination && /* @__PURE__ */ React54.createElement(PaginationComponent, null, /* @__PURE__ */ React54.createElement(Pagination, __spreadValues(__spreadValues({}, paginationState), paginationProps))));
9870
+ return /* @__PURE__ */ React55.createElement(React55.Fragment, null, /* @__PURE__ */ React55.createElement(Component, null, listItems.map(renderItem)), pagination && /* @__PURE__ */ React55.createElement(PaginationComponent, null, /* @__PURE__ */ React55.createElement(Pagination, __spreadValues(__spreadValues({}, paginationState), paginationProps))));
9628
9871
  };
9629
9872
 
9630
9873
  // src/molecules/Template/Template.tsx
9631
- import React55 from "react";
9874
+ import React56 from "react";
9632
9875
  var Template = ({
9633
9876
  children,
9634
9877
  columns,
@@ -9655,24 +9898,24 @@ var Template = ({
9655
9898
  rowGap,
9656
9899
  columnGap
9657
9900
  });
9658
- return /* @__PURE__ */ React55.createElement("div", {
9901
+ return /* @__PURE__ */ React56.createElement("div", {
9659
9902
  className,
9660
9903
  style: __spreadValues({}, styles)
9661
9904
  }, children);
9662
9905
  };
9663
9906
 
9664
9907
  // src/atoms/DataList/DataList.tsx
9665
- import React58 from "react";
9908
+ import React59 from "react";
9666
9909
 
9667
9910
  // src/atoms/Table/Table.tsx
9668
- import React57 from "react";
9911
+ import React58 from "react";
9669
9912
 
9670
9913
  // src/atoms/RadioButton/RadioButton.tsx
9671
- import React56 from "react";
9672
- var RadioButton = React56.forwardRef(
9914
+ import React57 from "react";
9915
+ var RadioButton = React57.forwardRef(
9673
9916
  (_a, ref) => {
9674
9917
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
9675
- return /* @__PURE__ */ React56.createElement("input", __spreadProps(__spreadValues({
9918
+ return /* @__PURE__ */ React57.createElement("input", __spreadProps(__spreadValues({
9676
9919
  id,
9677
9920
  ref,
9678
9921
  type: "radio",
@@ -9698,29 +9941,29 @@ var RadioButton = React56.forwardRef(
9698
9941
  // src/atoms/Table/Table.tsx
9699
9942
  var import_chevronDown4 = __toESM(require_chevronDown());
9700
9943
  var import_chevronUp3 = __toESM(require_chevronUp());
9701
- var HeadContext = React57.createContext(null);
9944
+ var HeadContext = React58.createContext(null);
9702
9945
  var tableClassNames = tw("w-full relative typography-default border-spacing-0");
9703
9946
  var Table = (_a) => {
9704
9947
  var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
9705
- return /* @__PURE__ */ React57.createElement("table", __spreadProps(__spreadValues({}, rest), {
9948
+ return /* @__PURE__ */ React58.createElement("table", __spreadProps(__spreadValues({}, rest), {
9706
9949
  className: classNames(tableClassNames, className),
9707
9950
  "aria-label": ariaLabel
9708
9951
  }), children);
9709
9952
  };
9710
9953
  var TableHead = (_a) => {
9711
9954
  var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
9712
- return /* @__PURE__ */ React57.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React57.createElement("tr", null, /* @__PURE__ */ React57.createElement(HeadContext.Provider, {
9955
+ return /* @__PURE__ */ React58.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React58.createElement("tr", null, /* @__PURE__ */ React58.createElement(HeadContext.Provider, {
9713
9956
  value: { children, sticky }
9714
9957
  }, children)));
9715
9958
  };
9716
9959
  var TableBody = (_a) => {
9717
9960
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
9718
- return /* @__PURE__ */ React57.createElement("tbody", __spreadValues({}, rest), children);
9961
+ return /* @__PURE__ */ React58.createElement("tbody", __spreadValues({}, rest), children);
9719
9962
  };
9720
9963
  var rowClassNames = tw("children:border-grey-10 group children:last:border-b-0 hover:bg-grey-0");
9721
9964
  var TableRow = (_a) => {
9722
9965
  var _b = _a, { children, className, disabled } = _b, rest = __objRest(_b, ["children", "className", "disabled"]);
9723
- return /* @__PURE__ */ React57.createElement("tr", __spreadProps(__spreadValues(__spreadValues({}, rest), { inert: disabled ? "" : void 0 }), {
9966
+ return /* @__PURE__ */ React58.createElement("tr", __spreadProps(__spreadValues(__spreadValues({}, rest), { inert: disabled ? "" : void 0 }), {
9724
9967
  className: classNames(rowClassNames, className, {
9725
9968
  "opacity-70": disabled
9726
9969
  })
@@ -9749,15 +9992,15 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
9749
9992
  };
9750
9993
  var TableCell = (_a) => {
9751
9994
  var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
9752
- const headContext = React57.useContext(HeadContext);
9753
- return headContext ? /* @__PURE__ */ React57.createElement("th", __spreadProps(__spreadValues({}, rest), {
9995
+ const headContext = React58.useContext(HeadContext);
9996
+ return headContext ? /* @__PURE__ */ React58.createElement("th", __spreadProps(__spreadValues({}, rest), {
9754
9997
  className: classNames(
9755
9998
  cellClassNames,
9756
9999
  getHeadCellClassNames(headContext.sticky, stickyColumn),
9757
10000
  getAlignClassNames(align),
9758
10001
  className
9759
10002
  )
9760
- }), children) : /* @__PURE__ */ React57.createElement("td", __spreadProps(__spreadValues({}, rest), {
10003
+ }), children) : /* @__PURE__ */ React58.createElement("td", __spreadProps(__spreadValues({}, rest), {
9761
10004
  className: classNames(
9762
10005
  cellClassNames,
9763
10006
  getBodyCellClassNames(true, stickyColumn),
@@ -9768,11 +10011,11 @@ var TableCell = (_a) => {
9768
10011
  };
9769
10012
  var TableSelectCell = (_a) => {
9770
10013
  var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
9771
- return /* @__PURE__ */ React57.createElement(Table.Cell, {
10014
+ return /* @__PURE__ */ React58.createElement(Table.Cell, {
9772
10015
  className: tw("leading-[0px]")
9773
- }, props.type === "radio" ? /* @__PURE__ */ React57.createElement(RadioButton, __spreadValues({
10016
+ }, props.type === "radio" ? /* @__PURE__ */ React58.createElement(RadioButton, __spreadValues({
9774
10017
  "aria-label": ariaLabel
9775
- }, props)) : /* @__PURE__ */ React57.createElement(Checkbox, __spreadValues({
10018
+ }, props)) : /* @__PURE__ */ React58.createElement(Checkbox, __spreadValues({
9776
10019
  "aria-label": ariaLabel
9777
10020
  }, props)));
9778
10021
  };
@@ -9782,39 +10025,39 @@ var getSortCellIconClassNames = (active) => {
9782
10025
  };
9783
10026
  var TableSortCell = (_a) => {
9784
10027
  var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
9785
- return /* @__PURE__ */ React57.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
10028
+ return /* @__PURE__ */ React58.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
9786
10029
  "aria-sort": direction
9787
- }), /* @__PURE__ */ React57.createElement("span", {
10030
+ }), /* @__PURE__ */ React58.createElement("span", {
9788
10031
  className: getSortCellButtonClassNames(rest.align),
9789
10032
  role: "button",
9790
10033
  tabIndex: -1,
9791
10034
  onClick
9792
- }, children, /* @__PURE__ */ React57.createElement("div", {
10035
+ }, children, /* @__PURE__ */ React58.createElement("div", {
9793
10036
  "data-sort-icons": true,
9794
10037
  className: tw("flex flex-col", {
9795
10038
  "invisible group-hover:visible": direction === "none"
9796
10039
  })
9797
- }, /* @__PURE__ */ React57.createElement(InlineIcon, {
10040
+ }, /* @__PURE__ */ React58.createElement(InlineIcon, {
9798
10041
  icon: import_chevronUp3.default,
9799
10042
  className: getSortCellIconClassNames(direction === "descending")
9800
- }), /* @__PURE__ */ React57.createElement(InlineIcon, {
10043
+ }), /* @__PURE__ */ React58.createElement(InlineIcon, {
9801
10044
  icon: import_chevronDown4.default,
9802
10045
  className: getSortCellIconClassNames(direction === "ascending")
9803
10046
  }))));
9804
10047
  };
9805
- var Item4 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React57.createElement("div", {
10048
+ var Item4 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React58.createElement("div", {
9806
10049
  className: tw("flex gap-4 items-center")
9807
- }, image && /* @__PURE__ */ React57.createElement("img", {
10050
+ }, image && /* @__PURE__ */ React58.createElement("img", {
9808
10051
  src: image,
9809
10052
  alt: imageAlt,
9810
10053
  style: { width: imageSize, height: imageSize }
9811
- }), /* @__PURE__ */ React57.createElement("div", null, title, caption && /* @__PURE__ */ React57.createElement(Typography2.Caption, null, caption)));
9812
- Table.Head = React57.memo(TableHead);
9813
- Table.Body = React57.memo(TableBody);
9814
- Table.Row = React57.memo(TableRow);
9815
- Table.Cell = React57.memo(TableCell);
9816
- Table.SortCell = React57.memo(TableSortCell);
9817
- Table.SelectCell = React57.memo(TableSelectCell);
10054
+ }), /* @__PURE__ */ React58.createElement("div", null, title, caption && /* @__PURE__ */ React58.createElement(Typography2.Caption, null, caption)));
10055
+ Table.Head = React58.memo(TableHead);
10056
+ Table.Body = React58.memo(TableBody);
10057
+ Table.Row = React58.memo(TableRow);
10058
+ Table.Cell = React58.memo(TableCell);
10059
+ Table.SortCell = React58.memo(TableSortCell);
10060
+ Table.SelectCell = React58.memo(TableSelectCell);
9818
10061
 
9819
10062
  // src/atoms/DataList/DataList.tsx
9820
10063
  var import_chevronDown5 = __toESM(require_chevronDown());
@@ -9826,7 +10069,7 @@ var getAlignClassNames2 = (align) => tw("flex items-center", {
9826
10069
  });
9827
10070
  var DataList = (_a) => {
9828
10071
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
9829
- return /* @__PURE__ */ React58.createElement("div", __spreadValues({}, rest));
10072
+ return /* @__PURE__ */ React59.createElement("div", __spreadValues({}, rest));
9830
10073
  };
9831
10074
  var HeadCell = (_a) => {
9832
10075
  var _b = _a, {
@@ -9840,7 +10083,7 @@ var HeadCell = (_a) => {
9840
10083
  "align",
9841
10084
  "stickyColumn"
9842
10085
  ]);
9843
- return /* @__PURE__ */ React58.createElement("div", __spreadProps(__spreadValues({}, rest), {
10086
+ return /* @__PURE__ */ React59.createElement("div", __spreadProps(__spreadValues({}, rest), {
9844
10087
  role: "cell",
9845
10088
  className: classNames(
9846
10089
  cellClassNames,
@@ -9860,7 +10103,7 @@ var Cell = (_a) => {
9860
10103
  "align",
9861
10104
  "stickyColumn"
9862
10105
  ]);
9863
- return /* @__PURE__ */ React58.createElement("div", __spreadProps(__spreadValues({}, rest), {
10106
+ return /* @__PURE__ */ React59.createElement("div", __spreadProps(__spreadValues({}, rest), {
9864
10107
  role: "cell",
9865
10108
  className: classNames(
9866
10109
  cellClassNames,
@@ -9873,7 +10116,7 @@ var Cell = (_a) => {
9873
10116
  };
9874
10117
  var Row = (_a) => {
9875
10118
  var _b = _a, { className, disabled, subgroup } = _b, rest = __objRest(_b, ["className", "disabled", "subgroup"]);
9876
- return /* @__PURE__ */ React58.createElement("div", __spreadProps(__spreadValues(__spreadValues({}, rest), { inert: disabled ? "" : void 0 }), {
10119
+ return /* @__PURE__ */ React59.createElement("div", __spreadProps(__spreadValues(__spreadValues({}, rest), { inert: disabled ? "" : void 0 }), {
9877
10120
  className: classNames(tw("contents"), className, {
9878
10121
  "children:opacity-70": disabled,
9879
10122
  "[&>.group>*]:bg-grey-0 [&>.group>*:first-child]:border-b-0 ": subgroup,
@@ -9884,7 +10127,7 @@ var Row = (_a) => {
9884
10127
  };
9885
10128
  var SubGroupSpacing = (_a) => {
9886
10129
  var _b = _a, { className, divider } = _b, rest = __objRest(_b, ["className", "divider"]);
9887
- return /* @__PURE__ */ React58.createElement("span", __spreadProps(__spreadValues({}, rest), {
10130
+ return /* @__PURE__ */ React59.createElement("span", __spreadProps(__spreadValues({}, rest), {
9888
10131
  "aria-hidden": true,
9889
10132
  className: classNames(
9890
10133
  tw("col-span-full h-6 bg-grey-0", { "border-b border-grey-10": Boolean(divider) }),
@@ -9894,24 +10137,24 @@ var SubGroupSpacing = (_a) => {
9894
10137
  };
9895
10138
  var SortCell = (_a) => {
9896
10139
  var _b = _a, { children, direction = "none", onClick, sticky } = _b, rest = __objRest(_b, ["children", "direction", "onClick", "sticky"]);
9897
- return /* @__PURE__ */ React58.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
10140
+ return /* @__PURE__ */ React59.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
9898
10141
  "aria-sort": direction,
9899
10142
  role: "cell",
9900
10143
  sticky
9901
- }), /* @__PURE__ */ React58.createElement("span", {
10144
+ }), /* @__PURE__ */ React59.createElement("span", {
9902
10145
  className: getSortCellButtonClassNames(rest.align),
9903
10146
  role: "button",
9904
10147
  tabIndex: -1,
9905
10148
  onClick
9906
- }, children, /* @__PURE__ */ React58.createElement("div", {
10149
+ }, children, /* @__PURE__ */ React59.createElement("div", {
9907
10150
  "data-sort-icons": true,
9908
10151
  className: tw("flex flex-col", {
9909
10152
  "invisible group-hover:visible": direction === "none"
9910
10153
  })
9911
- }, /* @__PURE__ */ React58.createElement(InlineIcon, {
10154
+ }, /* @__PURE__ */ React59.createElement(InlineIcon, {
9912
10155
  icon: import_chevronUp4.default,
9913
10156
  className: getSortCellIconClassNames(direction === "descending")
9914
- }), /* @__PURE__ */ React58.createElement(InlineIcon, {
10157
+ }), /* @__PURE__ */ React59.createElement(InlineIcon, {
9915
10158
  icon: import_chevronDown5.default,
9916
10159
  className: getSortCellIconClassNames(direction === "ascending")
9917
10160
  }))));
@@ -9945,9 +10188,9 @@ var cellProps = (column) => ({
9945
10188
  var columnIsFieldColumn = (column) => Boolean(column && column.field);
9946
10189
 
9947
10190
  // src/utils/table/useTableSort.tsx
9948
- import React59 from "react";
10191
+ import React60 from "react";
9949
10192
  var useTableSort = () => {
9950
- const [sort, setSort] = React59.useState();
10193
+ const [sort, setSort] = React60.useState();
9951
10194
  const handleSortClick = (column) => {
9952
10195
  if (sort && sort.column.headerName === column.headerName) {
9953
10196
  if (sort.direction === "ascending") {
@@ -9981,19 +10224,21 @@ var sortRowsBy = (rows, sort) => {
9981
10224
  var import_more2 = __toESM(require_more());
9982
10225
 
9983
10226
  // src/molecules/Accordion/Accordion.tsx
9984
- import React62, { createContext as createContext2, useContext as useContext3, useState as useState9 } from "react";
10227
+ import React63, { createContext as createContext2, useContext as useContext3, useState as useState9 } from "react";
9985
10228
  import { Icon as Icon2 } from "@iconify/react";
10229
+ import { useId as useId6 } from "@react-aria/utils";
9986
10230
  import { animated as animated3, useSpring as useSpring2 } from "@react-spring/web";
10231
+ import isUndefined8 from "lodash/isUndefined";
9987
10232
 
9988
10233
  // src/utils/useMeasure.ts
9989
- import React60 from "react";
10234
+ import React61 from "react";
9990
10235
  function useMeasure() {
9991
- const ref = React60.useRef(null);
9992
- const [rect, setRect] = React60.useState({
10236
+ const ref = React61.useRef(null);
10237
+ const [rect, setRect] = React61.useState({
9993
10238
  width: null,
9994
10239
  height: null
9995
10240
  });
9996
- React60.useLayoutEffect(() => {
10241
+ React61.useLayoutEffect(() => {
9997
10242
  if (!ref.current || !window.ResizeObserver) {
9998
10243
  return;
9999
10244
  }
@@ -10014,7 +10259,7 @@ function useMeasure() {
10014
10259
  }
10015
10260
 
10016
10261
  // src/molecules/Divider/Divider.tsx
10017
- import React61 from "react";
10262
+ import React62 from "react";
10018
10263
  var sizeClasses = {
10019
10264
  horizontal: {
10020
10265
  1: "h-1px",
@@ -10036,7 +10281,7 @@ var sizeClasses = {
10036
10281
  var Divider2 = (_a) => {
10037
10282
  var _b = _a, { direction = "horizontal", size = 1 } = _b, props = __objRest(_b, ["direction", "size"]);
10038
10283
  const sizeClass = sizeClasses[direction][size];
10039
- return /* @__PURE__ */ React61.createElement("div", __spreadProps(__spreadValues({}, props), {
10284
+ return /* @__PURE__ */ React62.createElement("div", __spreadProps(__spreadValues({}, props), {
10040
10285
  className: classNames(
10041
10286
  "Aquarium-Divider",
10042
10287
  tw(`bg-grey-5 ${sizeClass}`, {
@@ -10049,6 +10294,7 @@ var Divider2 = (_a) => {
10049
10294
 
10050
10295
  // src/molecules/Accordion/Accordion.tsx
10051
10296
  var AccordionContext = createContext2(null);
10297
+ var PanelContext = createContext2(null);
10052
10298
  var useAccordionContext = () => {
10053
10299
  const context2 = useContext3(AccordionContext);
10054
10300
  if (context2 === null) {
@@ -10056,31 +10302,50 @@ var useAccordionContext = () => {
10056
10302
  }
10057
10303
  return context2;
10058
10304
  };
10059
- var Accordion = ({ children }) => {
10060
- const [state, setState] = useState9(void 0);
10061
- return /* @__PURE__ */ React62.createElement(AccordionContext.Provider, {
10062
- value: [state, setState]
10305
+ var usePanelContext = (defaultId) => {
10306
+ const context2 = useContext3(PanelContext);
10307
+ if (defaultId) {
10308
+ return defaultId;
10309
+ }
10310
+ if (context2 === null) {
10311
+ throw new Error(
10312
+ "Accordion panel missing ID. Either wrap the panel in <Accordion.Container /> or provide an id as a prop"
10313
+ );
10314
+ }
10315
+ return context2;
10316
+ };
10317
+ var Accordion = ({ children, openPanelId: panelId }) => {
10318
+ const [openPanelId, setOpenPanelId] = useState9(panelId);
10319
+ if (!isUndefined8(panelId) && panelId !== openPanelId) {
10320
+ setOpenPanelId(panelId);
10321
+ }
10322
+ return /* @__PURE__ */ React63.createElement(AccordionContext.Provider, {
10323
+ value: [openPanelId, setOpenPanelId]
10063
10324
  }, children);
10064
10325
  };
10065
10326
  var AccordionToggle = (_a) => {
10066
- var _b = _a, { panelId } = _b, rest = __objRest(_b, ["panelId"]);
10327
+ var _b = _a, { panelId, onChange } = _b, rest = __objRest(_b, ["panelId", "onChange"]);
10328
+ const id = usePanelContext(panelId);
10067
10329
  const [openPanelId, setOpenPanelId] = useAccordionContext();
10068
- const isOpen = openPanelId === panelId;
10069
- const handleClick = () => setOpenPanelId(isOpen ? void 0 : panelId);
10330
+ const isOpen = openPanelId === id;
10331
+ const handleClick = () => {
10332
+ onChange ? onChange(id, isOpen) : setOpenPanelId(isOpen ? void 0 : id);
10333
+ };
10070
10334
  const { transform } = useSpring2({
10071
10335
  transform: `rotate(${isOpen ? 0 : 180}deg)`,
10072
10336
  config: {
10073
10337
  duration: 150
10074
10338
  }
10075
10339
  });
10076
- return /* @__PURE__ */ React62.createElement(animated3.div, __spreadProps(__spreadValues({}, rest), {
10340
+ return /* @__PURE__ */ React63.createElement(animated3.div, __spreadProps(__spreadValues({}, rest), {
10077
10341
  role: "button",
10078
10342
  tabIndex: 0,
10079
- "aria-expanded": openPanelId === panelId,
10080
- "aria-controls": panelId,
10343
+ "aria-label": "accordion toggle",
10344
+ "aria-expanded": openPanelId === id,
10345
+ "aria-controls": `${id}-content`,
10081
10346
  onClick: handleClick,
10082
10347
  style: { transform }
10083
- }), /* @__PURE__ */ React62.createElement(Icon2, {
10348
+ }), /* @__PURE__ */ React63.createElement(Icon2, {
10084
10349
  icon: import_caretUp.default,
10085
10350
  height: 22,
10086
10351
  width: 22
@@ -10088,8 +10353,9 @@ var AccordionToggle = (_a) => {
10088
10353
  };
10089
10354
  var AccordionPanel = (_a) => {
10090
10355
  var _b = _a, { children, panelId } = _b, rest = __objRest(_b, ["children", "panelId"]);
10356
+ const id = usePanelContext(panelId);
10091
10357
  const [openPanelId] = useAccordionContext();
10092
- const isOpen = openPanelId === panelId;
10358
+ const isOpen = openPanelId === id;
10093
10359
  const [ref, { height }] = useMeasure();
10094
10360
  const style = useSpring2({
10095
10361
  height: isOpen ? height != null ? height : 0 : 0,
@@ -10098,31 +10364,38 @@ var AccordionPanel = (_a) => {
10098
10364
  duration: 150
10099
10365
  }
10100
10366
  });
10101
- return /* @__PURE__ */ React62.createElement(animated3.div, __spreadProps(__spreadValues({}, rest), {
10367
+ return /* @__PURE__ */ React63.createElement(animated3.div, __spreadProps(__spreadValues({}, rest), {
10102
10368
  role: "region",
10103
- id: panelId,
10369
+ id: `${id}-content`,
10370
+ "aria-labelledby": `${id}-summary`,
10104
10371
  style
10105
- }), /* @__PURE__ */ React62.createElement("div", {
10372
+ }), /* @__PURE__ */ React63.createElement("div", {
10106
10373
  ref
10107
10374
  }, children));
10108
10375
  };
10109
10376
  var AccordionUnanimatedPanel = ({ children, panelId }) => {
10377
+ const id = usePanelContext(panelId);
10110
10378
  const [openPanelId] = useAccordionContext();
10111
- const isOpen = openPanelId === panelId;
10112
- return /* @__PURE__ */ React62.createElement(React62.Fragment, null, isOpen ? children : null);
10379
+ const isOpen = openPanelId === id;
10380
+ return /* @__PURE__ */ React63.createElement(React63.Fragment, null, isOpen ? children : null);
10113
10381
  };
10114
10382
  var AccordionSummary = (_a) => {
10115
- var _b = _a, { title, description, toggle } = _b, rest = __objRest(_b, ["title", "description", "toggle"]);
10116
- return /* @__PURE__ */ React62.createElement(Box.Flex, __spreadValues({
10383
+ var _b = _a, { title, description, toggle, panelId } = _b, rest = __objRest(_b, ["title", "description", "toggle", "panelId"]);
10384
+ const id = usePanelContext(panelId);
10385
+ return /* @__PURE__ */ React63.createElement(Box.Flex, __spreadValues({
10117
10386
  justifyContent: "space-between",
10118
- padding: "4"
10119
- }, rest), /* @__PURE__ */ React62.createElement(Typography2, null, title), /* @__PURE__ */ React62.createElement(Typography2.Small, {
10387
+ padding: "4",
10388
+ id: `${id}-summary`
10389
+ }, rest), /* @__PURE__ */ React63.createElement(Typography2, null, title), /* @__PURE__ */ React63.createElement(Typography2.Small, {
10120
10390
  color: "grey-40"
10121
10391
  }, description), toggle);
10122
10392
  };
10123
10393
  var AccordionContainer = (_a) => {
10124
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
10125
- return /* @__PURE__ */ React62.createElement("div", __spreadValues({}, rest), children, /* @__PURE__ */ React62.createElement(Divider2, null));
10394
+ var _b = _a, { children, panelId } = _b, rest = __objRest(_b, ["children", "panelId"]);
10395
+ const generatedId = useId6();
10396
+ return /* @__PURE__ */ React63.createElement(PanelContext.Provider, {
10397
+ value: panelId != null ? panelId : generatedId
10398
+ }, /* @__PURE__ */ React63.createElement("div", __spreadValues({}, rest), children, /* @__PURE__ */ React63.createElement(Divider2, null)));
10126
10399
  };
10127
10400
  Accordion.displayName = "Accordion";
10128
10401
  Accordion.Container = AccordionContainer;
@@ -10137,25 +10410,25 @@ Accordion.UnanimatedPanel = AccordionUnanimatedPanel;
10137
10410
  Accordion.UnanimatedPanel.displayName = "Accordion.UnanimatedPanel";
10138
10411
 
10139
10412
  // src/molecules/DataList/DataListSkeleton.tsx
10140
- import React63 from "react";
10413
+ import React64 from "react";
10141
10414
  var DataListSkeleton = ({ columns = ["1", "2", "2", 52], rows = 5 }) => {
10142
10415
  const columnsAmount = [...Array(typeof columns === "number" ? columns : columns.length).keys()];
10143
- return /* @__PURE__ */ React63.createElement(Template, {
10416
+ return /* @__PURE__ */ React64.createElement(Template, {
10144
10417
  columns
10145
- }, columnsAmount.map((_, index) => /* @__PURE__ */ React63.createElement(DataList.HeadCell, {
10418
+ }, columnsAmount.map((_, index) => /* @__PURE__ */ React64.createElement(DataList.HeadCell, {
10146
10419
  key: index
10147
- }, /* @__PURE__ */ React63.createElement(Skeleton, {
10420
+ }, /* @__PURE__ */ React64.createElement(Skeleton, {
10148
10421
  width: "100%",
10149
10422
  height: 17.5
10150
- }))), /* @__PURE__ */ React63.createElement(List2, {
10423
+ }))), /* @__PURE__ */ React64.createElement(List2, {
10151
10424
  items: [...Array(rows).keys()],
10152
- renderItem: (item) => /* @__PURE__ */ React63.createElement(DataList.Row, {
10425
+ renderItem: (item) => /* @__PURE__ */ React64.createElement(DataList.Row, {
10153
10426
  key: item
10154
- }, /* @__PURE__ */ React63.createElement(List2, {
10427
+ }, /* @__PURE__ */ React64.createElement(List2, {
10155
10428
  items: columnsAmount,
10156
- renderItem: (key) => /* @__PURE__ */ React63.createElement(DataList.Cell, {
10429
+ renderItem: (key) => /* @__PURE__ */ React64.createElement(DataList.Cell, {
10157
10430
  key
10158
- }, /* @__PURE__ */ React63.createElement(Skeleton, {
10431
+ }, /* @__PURE__ */ React64.createElement(Skeleton, {
10159
10432
  width: "100%",
10160
10433
  height: 17.5
10161
10434
  }))
@@ -10179,11 +10452,13 @@ var DataList2 = ({
10179
10452
  pagination,
10180
10453
  group,
10181
10454
  disabled,
10182
- getGroupRow
10455
+ getGroupRow,
10456
+ onGroupToggled,
10457
+ expandedGroupIds
10183
10458
  }) => {
10184
10459
  const [sort, updateSort] = useTableSort();
10185
10460
  const sortedRows = sortRowsBy(rows, sort);
10186
- const groups = group ? groupBy2(sortedRows, group) : void 0;
10461
+ const groups = group ? isFunction(group) ? group(sortedRows) : groupBy2(sortedRows, group) : void 0;
10187
10462
  const groupKeys = groups ? Object.keys(groups) : void 0;
10188
10463
  const hasCustomRenderForGroupRow = isFunction(getGroupRow);
10189
10464
  const isCollapsible = isFunction(rowDetails) || group;
@@ -10195,36 +10470,36 @@ var DataList2 = ({
10195
10470
  }),
10196
10471
  menu ? "auto" : void 0
10197
10472
  ]);
10198
- const PaginationFooter = React64.useCallback(
10199
- ({ children }) => /* @__PURE__ */ React64.createElement("div", {
10473
+ const PaginationFooter = React65.useCallback(
10474
+ ({ children }) => /* @__PURE__ */ React65.createElement("div", {
10200
10475
  style: { gridColumn: "1 / -1" }
10201
10476
  }, children),
10202
10477
  []
10203
10478
  );
10204
- return /* @__PURE__ */ React64.createElement(Template, {
10479
+ return /* @__PURE__ */ React65.createElement(Template, {
10205
10480
  className: "Aquarium-DataList",
10206
10481
  columns: templateColumns
10207
- }, isCollapsible && /* @__PURE__ */ React64.createElement(DataList.HeadCell, {
10482
+ }, isCollapsible && /* @__PURE__ */ React65.createElement(DataList.HeadCell, {
10208
10483
  align: "left"
10209
10484
  }), columns.map((column) => {
10210
- const content = column.headerTooltip ? /* @__PURE__ */ React64.createElement(Tooltip, {
10485
+ const content = column.headerTooltip ? /* @__PURE__ */ React65.createElement(Tooltip, {
10211
10486
  placement: column.headerTooltip.placement,
10212
10487
  content: column.headerTooltip.content
10213
10488
  }, column.headerName) : column.headerName;
10214
- return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React64.createElement(DataList.SortCell, __spreadValues({
10489
+ return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React65.createElement(DataList.SortCell, __spreadValues({
10215
10490
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
10216
10491
  onClick: () => updateSort(column),
10217
10492
  sticky
10218
- }, cellProps(column)), content) : /* @__PURE__ */ React64.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
10493
+ }, cellProps(column)), content) : /* @__PURE__ */ React65.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
10219
10494
  sticky
10220
10495
  }), content);
10221
- }), menu && /* @__PURE__ */ React64.createElement(DataList.HeadCell, {
10496
+ }), menu && /* @__PURE__ */ React65.createElement(DataList.HeadCell, {
10222
10497
  align: "right",
10223
10498
  "aria-label": menuAriaLabel
10224
- }, menuHeaderName), groups && groupKeys ? /* @__PURE__ */ React64.createElement(List2, {
10499
+ }, menuHeaderName), groups && groupKeys ? /* @__PURE__ */ React65.createElement(List2, {
10225
10500
  items: sortGroupKeys(groupKeys),
10226
10501
  renderItem: (key) => {
10227
- const groupContent = /* @__PURE__ */ React64.createElement(List2, {
10502
+ const groupContent = /* @__PURE__ */ React65.createElement(List2, {
10228
10503
  key,
10229
10504
  items: groups[key],
10230
10505
  renderItem: (row, index) => renderRow(
@@ -10234,34 +10509,37 @@ var DataList2 = ({
10234
10509
  sortedRows,
10235
10510
  renderRowMenu(row, index, { menu, onAction, onMenuOpenChange, menuAriaLabel }),
10236
10511
  disabled,
10237
- () => /* @__PURE__ */ React64.createElement(DataList.Cell, null)
10512
+ () => /* @__PURE__ */ React65.createElement(DataList.Cell, null)
10238
10513
  )
10239
10514
  });
10240
- return key === "undefined" ? groupContent : /* @__PURE__ */ React64.createElement(Accordion, {
10241
- key
10242
- }, hasCustomRenderForGroupRow ? /* @__PURE__ */ React64.createElement(DataList.Row, null, /* @__PURE__ */ React64.createElement(DataList.Cell, null, /* @__PURE__ */ React64.createElement(Accordion.Toggle, {
10243
- panelId: key
10244
- })), /* @__PURE__ */ React64.createElement(List2, {
10515
+ return key === "undefined" ? groupContent : /* @__PURE__ */ React65.createElement(Accordion, {
10516
+ key,
10517
+ openPanelId: expandedGroupIds ? expandedGroupIds.find((id) => id === key) || null : void 0
10518
+ }, hasCustomRenderForGroupRow ? /* @__PURE__ */ React65.createElement(DataList.Row, null, /* @__PURE__ */ React65.createElement(DataList.Cell, null, /* @__PURE__ */ React65.createElement(Accordion.Toggle, {
10519
+ panelId: key,
10520
+ onChange: onGroupToggled
10521
+ })), /* @__PURE__ */ React65.createElement(List2, {
10245
10522
  items: columns,
10246
- renderItem: (column) => /* @__PURE__ */ React64.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), renderCell(column, getGroupRow(key, groups[key]), -1, []))
10523
+ renderItem: (column) => /* @__PURE__ */ React65.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), renderCell(column, getGroupRow(key, groups[key]), -1, []))
10247
10524
  }), renderRowMenu(getGroupRow(key, groups[key]), -1, {
10248
10525
  menu,
10249
10526
  onAction,
10250
10527
  onMenuOpenChange,
10251
10528
  menuAriaLabel
10252
- })) : /* @__PURE__ */ React64.createElement(DataList.Row, null, /* @__PURE__ */ React64.createElement(DataList.Cell, null, /* @__PURE__ */ React64.createElement(Accordion.Toggle, {
10253
- panelId: key
10254
- })), /* @__PURE__ */ React64.createElement(DataList.Cell, {
10529
+ })) : /* @__PURE__ */ React65.createElement(DataList.Row, null, /* @__PURE__ */ React65.createElement(DataList.Cell, null, /* @__PURE__ */ React65.createElement(Accordion.Toggle, {
10530
+ panelId: key,
10531
+ onChange: onGroupToggled
10532
+ })), /* @__PURE__ */ React65.createElement(DataList.Cell, {
10255
10533
  style: { gridColumn: "2 / -1", gap: 4 }
10256
- }, "Group: ", /* @__PURE__ */ React64.createElement("b", null, key))), /* @__PURE__ */ React64.createElement(DataList.Row, {
10534
+ }, "Group: ", /* @__PURE__ */ React65.createElement("b", null, key))), /* @__PURE__ */ React65.createElement(DataList.Row, {
10257
10535
  subgroup: true
10258
- }, /* @__PURE__ */ React64.createElement(Accordion.UnanimatedPanel, {
10536
+ }, /* @__PURE__ */ React65.createElement(Accordion.UnanimatedPanel, {
10259
10537
  panelId: key
10260
- }, /* @__PURE__ */ React64.createElement(DataList.SubGroupSpacing, null), groupContent, /* @__PURE__ */ React64.createElement(DataList.SubGroupSpacing, {
10538
+ }, /* @__PURE__ */ React65.createElement(DataList.SubGroupSpacing, null), groupContent, /* @__PURE__ */ React65.createElement(DataList.SubGroupSpacing, {
10261
10539
  divider: true
10262
10540
  }))));
10263
10541
  }
10264
- }) : /* @__PURE__ */ React64.createElement(List2, {
10542
+ }) : /* @__PURE__ */ React65.createElement(List2, {
10265
10543
  pagination,
10266
10544
  paginationContainer: PaginationFooter,
10267
10545
  items: sortedRows,
@@ -10274,15 +10552,18 @@ var DataList2 = ({
10274
10552
  sortedRows,
10275
10553
  renderRowMenu(row, index, { menu, onAction, onMenuOpenChange, menuAriaLabel }),
10276
10554
  disabled,
10277
- () => rowDetails !== void 0 && /* @__PURE__ */ React64.createElement(DataList.Cell, null, details && /* @__PURE__ */ React64.createElement(Accordion.Toggle, {
10278
- panelId: row.id.toString()
10555
+ () => rowDetails !== void 0 && /* @__PURE__ */ React65.createElement(DataList.Cell, null, details && /* @__PURE__ */ React65.createElement(Accordion.Toggle, {
10556
+ panelId: row.id.toString(),
10557
+ onChange: onGroupToggled
10279
10558
  }))
10280
10559
  );
10281
- return details ? /* @__PURE__ */ React64.createElement(Accordion, {
10282
- key: row.id
10283
- }, content, /* @__PURE__ */ React64.createElement(Accordion.Panel, {
10560
+ return details ? /* @__PURE__ */ React65.createElement(Accordion, {
10561
+ key: row.id,
10562
+ openPanelId: expandedGroupIds ? expandedGroupIds.find((id) => id === row.id) || null : void 0
10563
+ }, content, /* @__PURE__ */ React65.createElement(Accordion.Panel, {
10284
10564
  panelId: row.id.toString(),
10285
- className: tw("col-span-full bg-grey-0")
10565
+ className: tw("col-span-full bg-grey-0"),
10566
+ "aria-label": `row ${row.id.toString()} details`
10286
10567
  }, details)) : content;
10287
10568
  }
10288
10569
  }));
@@ -10295,12 +10576,12 @@ var renderRowMenu = (row, index, {
10295
10576
  }) => {
10296
10577
  if (menu) {
10297
10578
  const menuContent = isFunction(menu) ? menu(row, index) : menu;
10298
- return /* @__PURE__ */ React64.createElement(DataList.Cell, {
10579
+ return /* @__PURE__ */ React65.createElement(DataList.Cell, {
10299
10580
  align: "right"
10300
- }, menuContent && /* @__PURE__ */ React64.createElement(DropdownMenu2, {
10581
+ }, menuContent && /* @__PURE__ */ React65.createElement(DropdownMenu2, {
10301
10582
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
10302
10583
  onOpenChange: onMenuOpenChange
10303
- }, /* @__PURE__ */ React64.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React64.createElement(Button.Icon, {
10584
+ }, /* @__PURE__ */ React65.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React65.createElement(Button.Icon, {
10304
10585
  "aria-label": menuAriaLabel,
10305
10586
  icon: import_more2.default
10306
10587
  })), menuContent));
@@ -10310,12 +10591,12 @@ var renderRowMenu = (row, index, {
10310
10591
  var renderRow = (columns, row, index, rows, menu, disabled, renderFirstColumn) => {
10311
10592
  var _a;
10312
10593
  const isRowDisabled = (_a = disabled == null ? void 0 : disabled(row, index, rows)) != null ? _a : false;
10313
- return /* @__PURE__ */ React64.createElement(DataList.Row, {
10594
+ return /* @__PURE__ */ React65.createElement(DataList.Row, {
10314
10595
  key: row.id,
10315
10596
  disabled: isRowDisabled
10316
- }, renderFirstColumn == null ? void 0 : renderFirstColumn(row, index, rows), /* @__PURE__ */ React64.createElement(List2, {
10597
+ }, renderFirstColumn == null ? void 0 : renderFirstColumn(row, index, rows), /* @__PURE__ */ React65.createElement(List2, {
10317
10598
  items: columns,
10318
- renderItem: (column) => /* @__PURE__ */ React64.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), renderCell(column, row, index, rows))
10599
+ renderItem: (column) => /* @__PURE__ */ React65.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), renderCell(column, row, index, rows))
10319
10600
  }), menu);
10320
10601
  };
10321
10602
  var DEFAULT_CONTENT = "";
@@ -10324,14 +10605,14 @@ var renderCell = (column, row, index, rows) => {
10324
10605
  if (column.type === "status") {
10325
10606
  const status = column.status(row, index, rows);
10326
10607
  if (status) {
10327
- cellContent = /* @__PURE__ */ React64.createElement(StatusChip, __spreadValues({
10608
+ cellContent = /* @__PURE__ */ React65.createElement(StatusChip, __spreadValues({
10328
10609
  dense: true
10329
10610
  }, status));
10330
10611
  }
10331
10612
  } else if (column.type === "action") {
10332
10613
  const action = renameProperty("text", "children", column.action(row, index, rows));
10333
10614
  if (action) {
10334
- cellContent = /* @__PURE__ */ React64.createElement(Button.Secondary, __spreadValues({
10615
+ cellContent = /* @__PURE__ */ React65.createElement(Button.Secondary, __spreadValues({
10335
10616
  dense: true
10336
10617
  }, action));
10337
10618
  }
@@ -10340,30 +10621,30 @@ var renderCell = (column, row, index, rows) => {
10340
10621
  } else if (column.type === "item") {
10341
10622
  const item = column.item(row, index, rows);
10342
10623
  if (item) {
10343
- cellContent = /* @__PURE__ */ React64.createElement(Item4, __spreadValues({}, item));
10624
+ cellContent = /* @__PURE__ */ React65.createElement(Item4, __spreadValues({}, item));
10344
10625
  }
10345
10626
  } else if (column.formatter) {
10346
10627
  cellContent = column.formatter(row[column.field], row, index, rows);
10347
10628
  } else {
10348
10629
  cellContent = row[column.field];
10349
10630
  }
10350
- return column.tooltip ? /* @__PURE__ */ React64.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : cellContent;
10631
+ return column.tooltip ? /* @__PURE__ */ React65.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : cellContent;
10351
10632
  };
10352
10633
  DataList2.Skeleton = DataListSkeleton;
10353
10634
 
10354
10635
  // src/molecules/DataTable/DataTable.tsx
10355
- import React67 from "react";
10636
+ import React68 from "react";
10356
10637
  import compact2 from "lodash/compact";
10357
10638
  import isFunction2 from "lodash/isFunction";
10358
10639
 
10359
10640
  // src/molecules/Table/Table.tsx
10360
- import React66 from "react";
10641
+ import React67 from "react";
10361
10642
 
10362
10643
  // src/utils/table/useScrollTarget.ts
10363
- import React65 from "react";
10644
+ import React66 from "react";
10364
10645
  var useScrollTarget = (callback) => {
10365
- const targetRef = React65.useRef(null);
10366
- React65.useLayoutEffect(() => {
10646
+ const targetRef = React66.useRef(null);
10647
+ React66.useLayoutEffect(() => {
10367
10648
  const observer = new IntersectionObserver((entries) => entries[0].isIntersecting && callback && callback(), {
10368
10649
  root: null,
10369
10650
  rootMargin: `0px 0px 200px 0px`
@@ -10381,12 +10662,12 @@ var Table2 = (_a) => {
10381
10662
  var _b = _a, { children, onPrev, onNext } = _b, rest = __objRest(_b, ["children", "onPrev", "onNext"]);
10382
10663
  const bottomRef = useScrollTarget(onNext);
10383
10664
  const topRef = useScrollTarget(onPrev);
10384
- return /* @__PURE__ */ React66.createElement("div", {
10665
+ return /* @__PURE__ */ React67.createElement("div", {
10385
10666
  className: classNames("Aquarium-Table", tw("relative w-full"))
10386
- }, /* @__PURE__ */ React66.createElement("div", {
10667
+ }, /* @__PURE__ */ React67.createElement("div", {
10387
10668
  ref: topRef,
10388
10669
  className: tw("absolute top-0 h-1 w-full left-0 bg-transparent")
10389
- }), /* @__PURE__ */ React66.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React66.createElement("div", {
10670
+ }), /* @__PURE__ */ React67.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React67.createElement("div", {
10390
10671
  ref: bottomRef,
10391
10672
  className: tw("absolute bottom-0 h-1 w-full left-0 bg-transparent")
10392
10673
  }));
@@ -10433,13 +10714,13 @@ var DataTable = (_a) => {
10433
10714
  const [sort, updateSort] = useTableSort();
10434
10715
  const sortedRows = sortRowsBy(rows, sort);
10435
10716
  const amountOfColumns = columns.length + (menu ? 1 : 0);
10436
- const PaginationFooter = React67.useCallback(
10437
- ({ children }) => /* @__PURE__ */ React67.createElement("tfoot", null, /* @__PURE__ */ React67.createElement("tr", null, /* @__PURE__ */ React67.createElement("td", {
10717
+ const PaginationFooter = React68.useCallback(
10718
+ ({ children }) => /* @__PURE__ */ React68.createElement("tfoot", null, /* @__PURE__ */ React68.createElement("tr", null, /* @__PURE__ */ React68.createElement("td", {
10438
10719
  colSpan: amountOfColumns
10439
10720
  }, children))),
10440
10721
  [amountOfColumns]
10441
10722
  );
10442
- return /* @__PURE__ */ React67.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
10723
+ return /* @__PURE__ */ React68.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
10443
10724
  className: classNames(
10444
10725
  "Aquarium-DataTable",
10445
10726
  tw({
@@ -10448,30 +10729,30 @@ var DataTable = (_a) => {
10448
10729
  "table-fixed": layout === "fixed"
10449
10730
  })
10450
10731
  )
10451
- }), /* @__PURE__ */ React67.createElement(Table2.Head, {
10732
+ }), /* @__PURE__ */ React68.createElement(Table2.Head, {
10452
10733
  sticky
10453
10734
  }, compact2([
10454
10735
  ...columns.map((column) => {
10455
- const content = column.headerTooltip && !column.headerInvisible ? /* @__PURE__ */ React67.createElement(Tooltip, {
10736
+ const content = column.headerTooltip && !column.headerInvisible ? /* @__PURE__ */ React68.createElement(Tooltip, {
10456
10737
  placement: column.headerTooltip.placement,
10457
10738
  content: column.headerTooltip.content
10458
10739
  }, column.headerName) : !column.headerInvisible && column.headerName;
10459
- return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React67.createElement(Table2.SortCell, __spreadValues({
10740
+ return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React68.createElement(Table2.SortCell, __spreadValues({
10460
10741
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
10461
10742
  onClick: () => updateSort(column),
10462
10743
  style: { width: column.width },
10463
10744
  "aria-label": column.headerInvisible ? column.headerName : void 0
10464
- }, cellProps(column)), content) : /* @__PURE__ */ React67.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
10745
+ }, cellProps(column)), content) : /* @__PURE__ */ React68.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
10465
10746
  style: { width: column.width },
10466
10747
  "aria-label": column.headerInvisible ? column.headerName : void 0
10467
10748
  }), content);
10468
10749
  }),
10469
- menu ? /* @__PURE__ */ React67.createElement(Table2.Cell, {
10750
+ menu ? /* @__PURE__ */ React68.createElement(Table2.Cell, {
10470
10751
  key: "__contextMenu",
10471
10752
  align: "right",
10472
10753
  "aria-label": menuAriaLabel
10473
10754
  }, menuHeaderName) : null
10474
- ])), /* @__PURE__ */ React67.createElement(List2, {
10755
+ ])), /* @__PURE__ */ React68.createElement(List2, {
10475
10756
  container: Table2.Body,
10476
10757
  paginationContainer: PaginationFooter,
10477
10758
  pagination,
@@ -10479,12 +10760,12 @@ var DataTable = (_a) => {
10479
10760
  renderItem: (row, index) => {
10480
10761
  var _a2;
10481
10762
  const isRowDisabled = (_a2 = disabled == null ? void 0 : disabled(row, index, sortedRows)) != null ? _a2 : false;
10482
- return /* @__PURE__ */ React67.createElement(Table2.Row, {
10763
+ return /* @__PURE__ */ React68.createElement(Table2.Row, {
10483
10764
  key: row.id,
10484
10765
  disabled: isRowDisabled
10485
- }, /* @__PURE__ */ React67.createElement(List2, {
10766
+ }, /* @__PURE__ */ React68.createElement(List2, {
10486
10767
  items: columns,
10487
- renderItem: (column) => /* @__PURE__ */ React67.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), renderCell2(column, row, index, sortedRows))
10768
+ renderItem: (column) => /* @__PURE__ */ React68.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), renderCell2(column, row, index, sortedRows))
10488
10769
  }), renderRowMenu2(row, index, { menu, menuAriaLabel, onAction, onMenuOpenChange }));
10489
10770
  }
10490
10771
  }));
@@ -10497,12 +10778,12 @@ var renderRowMenu2 = (row, index, {
10497
10778
  }) => {
10498
10779
  if (menu) {
10499
10780
  const menuContent = isFunction2(menu) ? menu(row, index) : menu;
10500
- return /* @__PURE__ */ React67.createElement(Table2.Cell, {
10781
+ return /* @__PURE__ */ React68.createElement(Table2.Cell, {
10501
10782
  align: "right"
10502
- }, menuContent && /* @__PURE__ */ React67.createElement(DropdownMenu2, {
10783
+ }, menuContent && /* @__PURE__ */ React68.createElement(DropdownMenu2, {
10503
10784
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
10504
10785
  onOpenChange: onMenuOpenChange
10505
- }, /* @__PURE__ */ React67.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React67.createElement(Button.Icon, {
10786
+ }, /* @__PURE__ */ React68.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React68.createElement(Button.Icon, {
10506
10787
  "aria-label": menuAriaLabel,
10507
10788
  icon: import_more3.default
10508
10789
  })), menuContent));
@@ -10515,14 +10796,14 @@ var renderCell2 = (column, row, index, rows) => {
10515
10796
  if (column.type === "status") {
10516
10797
  const status = column.status(row, index, rows);
10517
10798
  if (status) {
10518
- cellContent = /* @__PURE__ */ React67.createElement(StatusChip, __spreadValues({
10799
+ cellContent = /* @__PURE__ */ React68.createElement(StatusChip, __spreadValues({
10519
10800
  dense: true
10520
10801
  }, status));
10521
10802
  }
10522
10803
  } else if (column.type === "action") {
10523
10804
  const action = renameProperty("text", "children", column.action(row, index, rows));
10524
10805
  if (action) {
10525
- cellContent = /* @__PURE__ */ React67.createElement(Button.Secondary, __spreadValues({
10806
+ cellContent = /* @__PURE__ */ React68.createElement(Button.Secondary, __spreadValues({
10526
10807
  dense: true
10527
10808
  }, action));
10528
10809
  }
@@ -10531,22 +10812,22 @@ var renderCell2 = (column, row, index, rows) => {
10531
10812
  } else if (column.type === "item") {
10532
10813
  const item = column.item(row, index, rows);
10533
10814
  if (item) {
10534
- cellContent = /* @__PURE__ */ React67.createElement(Item4, __spreadValues({}, item));
10815
+ cellContent = /* @__PURE__ */ React68.createElement(Item4, __spreadValues({}, item));
10535
10816
  }
10536
10817
  } else if (column.formatter) {
10537
10818
  cellContent = column.formatter(row[column.field], row, index, rows);
10538
10819
  } else {
10539
10820
  cellContent = row[column.field];
10540
10821
  }
10541
- return column.tooltip ? /* @__PURE__ */ React67.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : cellContent;
10822
+ return column.tooltip ? /* @__PURE__ */ React68.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : cellContent;
10542
10823
  };
10543
10824
  DataTable.Skeleton = DataListSkeleton;
10544
10825
 
10545
10826
  // src/molecules/Dialog/Dialog.tsx
10546
- import React69 from "react";
10827
+ import React70 from "react";
10547
10828
  import { useDialog } from "@react-aria/dialog";
10548
10829
  import { Overlay as Overlay2, useModalOverlay } from "@react-aria/overlays";
10549
- import { useId as useId2 } from "@react-aria/utils";
10830
+ import { useId as useId7 } from "@react-aria/utils";
10550
10831
  import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
10551
10832
  import omit8 from "lodash/omit";
10552
10833
 
@@ -10570,10 +10851,10 @@ var DIALOG_ICONS_AND_COLORS = {
10570
10851
  };
10571
10852
 
10572
10853
  // src/atoms/Modal/Modal.tsx
10573
- import React68 from "react";
10854
+ import React69 from "react";
10574
10855
  var Modal = (_a) => {
10575
10856
  var _b = _a, { children, className, open } = _b, rest = __objRest(_b, ["children", "className", "open"]);
10576
- return open ? /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10857
+ return open ? /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10577
10858
  className: classNames(
10578
10859
  tw("inset-0 overflow-y-auto z-modal flex justify-center items-center fixed py-7"),
10579
10860
  className
@@ -10582,14 +10863,14 @@ var Modal = (_a) => {
10582
10863
  };
10583
10864
  Modal.BackDrop = (_a) => {
10584
10865
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10585
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10866
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10586
10867
  className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-primary-100 opacity-60"), className)
10587
10868
  }));
10588
10869
  };
10589
- Modal.Dialog = React68.forwardRef(
10870
+ Modal.Dialog = React69.forwardRef(
10590
10871
  (_a, ref) => {
10591
10872
  var _b = _a, { children, className, size = "sm" } = _b, rest = __objRest(_b, ["children", "className", "size"]);
10592
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({
10873
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({
10593
10874
  ref,
10594
10875
  "aria-modal": "true"
10595
10876
  }, rest), {
@@ -10607,31 +10888,31 @@ Modal.Dialog = React68.forwardRef(
10607
10888
  );
10608
10889
  Modal.Header = (_a) => {
10609
10890
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10610
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10891
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10611
10892
  className: classNames(tw("px-7 py-6 gap-3 flex items-center"), className)
10612
10893
  }), children);
10613
10894
  };
10614
10895
  Modal.HeaderImage = (_a) => {
10615
10896
  var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
10616
10897
  const common = tw("h-[120px] min-h-[120px] w-full ");
10617
- return backgroundImage ? /* @__PURE__ */ React68.createElement("img", __spreadProps(__spreadValues({
10898
+ return backgroundImage ? /* @__PURE__ */ React69.createElement("img", __spreadProps(__spreadValues({
10618
10899
  "aria-hidden": true,
10619
10900
  src: backgroundImage != null ? backgroundImage : void 0
10620
10901
  }, rest), {
10621
10902
  className: classNames(common, tw("object-cover"), className)
10622
- })) : /* @__PURE__ */ React68.createElement("div", {
10903
+ })) : /* @__PURE__ */ React69.createElement("div", {
10623
10904
  className: classNames(common, tw("bg-grey-5"), className)
10624
10905
  });
10625
10906
  };
10626
10907
  Modal.CloseButtonContainer = (_a) => {
10627
10908
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10628
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10909
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10629
10910
  className: classNames(tw("absolute top-[20px] right-[28px]"), className)
10630
10911
  }));
10631
10912
  };
10632
10913
  Modal.Title = (_a) => {
10633
10914
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10634
- return /* @__PURE__ */ React68.createElement(Typography, __spreadValues({
10915
+ return /* @__PURE__ */ React69.createElement(Typography, __spreadValues({
10635
10916
  htmlTag: "h2",
10636
10917
  variant: "subheading",
10637
10918
  color: "grey-90",
@@ -10640,52 +10921,52 @@ Modal.Title = (_a) => {
10640
10921
  };
10641
10922
  Modal.Subtitle = (_a) => {
10642
10923
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
10643
- return /* @__PURE__ */ React68.createElement(Typography, __spreadValues({
10924
+ return /* @__PURE__ */ React69.createElement(Typography, __spreadValues({
10644
10925
  variant: "small",
10645
10926
  color: "grey-60"
10646
10927
  }, rest), children);
10647
10928
  };
10648
10929
  Modal.TitleContainer = (_a) => {
10649
10930
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10650
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10931
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10651
10932
  className: classNames(tw("flex flex-col grow gap-2"), className)
10652
10933
  }), children);
10653
10934
  };
10654
10935
  Modal.Body = (_a) => {
10655
10936
  var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
10656
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10937
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10657
10938
  className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
10658
10939
  style: __spreadValues({ maxHeight }, style)
10659
10940
  }), children);
10660
10941
  };
10661
10942
  Modal.Footer = (_a) => {
10662
10943
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10663
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10944
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10664
10945
  className: classNames(tw("px-7 py-6"), className)
10665
10946
  }), children);
10666
10947
  };
10667
10948
  Modal.Actions = (_a) => {
10668
10949
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10669
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10950
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10670
10951
  className: classNames(tw("flex gap-4 justify-end"), className)
10671
10952
  }), children);
10672
10953
  };
10673
10954
 
10674
10955
  // src/molecules/Dialog/Dialog.tsx
10675
10956
  var Dialog = (props) => {
10676
- const ref = React69.useRef(null);
10957
+ const ref = React70.useRef(null);
10677
10958
  const state = useOverlayTriggerState2({ isOpen: props.open });
10678
10959
  const { modalProps, underlayProps } = useModalOverlay({}, state, ref);
10679
10960
  if (!state.isOpen) {
10680
10961
  return null;
10681
10962
  }
10682
- return /* @__PURE__ */ React69.createElement(Overlay2, null, /* @__PURE__ */ React69.createElement(Modal, {
10963
+ return /* @__PURE__ */ React70.createElement(Overlay2, null, /* @__PURE__ */ React70.createElement(Modal, {
10683
10964
  className: "Aquarium-Dialog",
10684
10965
  open: true
10685
- }, /* @__PURE__ */ React69.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React69.createElement(Modal.Dialog, __spreadValues({
10966
+ }, /* @__PURE__ */ React70.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React70.createElement(Modal.Dialog, __spreadValues({
10686
10967
  ref,
10687
10968
  size: "sm"
10688
- }, modalProps), /* @__PURE__ */ React69.createElement(DialogWrapper, __spreadValues({}, props)))));
10969
+ }, modalProps), /* @__PURE__ */ React70.createElement(DialogWrapper, __spreadValues({}, props)))));
10689
10970
  };
10690
10971
  var DialogWrapper = ({
10691
10972
  title,
@@ -10694,41 +10975,41 @@ var DialogWrapper = ({
10694
10975
  primaryAction,
10695
10976
  secondaryAction
10696
10977
  }) => {
10697
- const ref = React69.useRef(null);
10698
- const labelledBy = useId2();
10699
- const describedBy = useId2();
10978
+ const ref = React70.useRef(null);
10979
+ const labelledBy = useId7();
10980
+ const describedBy = useId7();
10700
10981
  const { dialogProps } = useDialog(
10701
10982
  { "role": "alertdialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
10702
10983
  ref
10703
10984
  );
10704
- return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({
10985
+ return /* @__PURE__ */ React70.createElement("div", __spreadProps(__spreadValues({
10705
10986
  ref
10706
10987
  }, dialogProps), {
10707
10988
  className: tw("outline-none")
10708
- }), /* @__PURE__ */ React69.createElement(Modal.Header, {
10989
+ }), /* @__PURE__ */ React70.createElement(Modal.Header, {
10709
10990
  className: tw("icon-stroke-2")
10710
- }, /* @__PURE__ */ React69.createElement(Icon, {
10991
+ }, /* @__PURE__ */ React70.createElement(Icon, {
10711
10992
  icon: DIALOG_ICONS_AND_COLORS[type].icon,
10712
10993
  color: DIALOG_ICONS_AND_COLORS[type].color,
10713
10994
  fontSize: 20
10714
- }), /* @__PURE__ */ React69.createElement(Modal.Title, {
10995
+ }), /* @__PURE__ */ React70.createElement(Modal.Title, {
10715
10996
  id: labelledBy,
10716
10997
  variant: "large",
10717
10998
  color: DIALOG_ICONS_AND_COLORS[type].color
10718
- }, title)), /* @__PURE__ */ React69.createElement(Modal.Body, {
10999
+ }, title)), /* @__PURE__ */ React70.createElement(Modal.Body, {
10719
11000
  id: describedBy
10720
- }, /* @__PURE__ */ React69.createElement(Typography2.Default, null, children)), /* @__PURE__ */ React69.createElement(Modal.Footer, null, /* @__PURE__ */ React69.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React69.createElement(Button.Ghost, __spreadValues({
11001
+ }, /* @__PURE__ */ React70.createElement(Typography2.Default, null, children)), /* @__PURE__ */ React70.createElement(Modal.Footer, null, /* @__PURE__ */ React70.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React70.createElement(Button.Ghost, __spreadValues({
10721
11002
  key: secondaryAction.text
10722
- }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React69.createElement(Button.Secondary, __spreadValues({
11003
+ }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React70.createElement(Button.Secondary, __spreadValues({
10723
11004
  key: primaryAction.text
10724
11005
  }, omit8(primaryAction, "text")), primaryAction.text))));
10725
11006
  };
10726
11007
 
10727
11008
  // src/molecules/Dropdown/Dropdown.tsx
10728
- import React72 from "react";
11009
+ import React73 from "react";
10729
11010
 
10730
11011
  // src/molecules/Popover/Popover.tsx
10731
- import React71, { useRef as useRef8 } from "react";
11012
+ import React72, { useRef as useRef7 } from "react";
10732
11013
  import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
10733
11014
  import { useOverlayTrigger } from "@react-aria/overlays";
10734
11015
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
@@ -10736,12 +11017,12 @@ import { useOverlayTriggerState as useOverlayTriggerState3 } from "@react-statel
10736
11017
  import classNames7 from "classnames";
10737
11018
 
10738
11019
  // src/molecules/Popover/Dialog.tsx
10739
- import React70 from "react";
11020
+ import React71 from "react";
10740
11021
  import { useDialog as useDialog2 } from "@react-aria/dialog";
10741
11022
  var Dialog2 = ({ children }) => {
10742
- const ref = React70.useRef(null);
11023
+ const ref = React71.useRef(null);
10743
11024
  const { dialogProps } = useDialog2({}, ref);
10744
- return /* @__PURE__ */ React70.createElement("div", __spreadProps(__spreadValues({
11025
+ return /* @__PURE__ */ React71.createElement("div", __spreadProps(__spreadValues({
10745
11026
  ref
10746
11027
  }, dialogProps), {
10747
11028
  className: tw("outline-none")
@@ -10772,24 +11053,24 @@ var Popover2 = (props) => {
10772
11053
  crossOffset,
10773
11054
  shouldFlip
10774
11055
  } = props;
10775
- const triggerRef = useRef8(null);
11056
+ const triggerRef = useRef7(null);
10776
11057
  const state = useOverlayTriggerState3(props);
10777
11058
  const { triggerProps, overlayProps } = useOverlayTrigger({ type: type != null ? type : "dialog" }, state, triggerRef);
10778
- return /* @__PURE__ */ React71.createElement(PopoverContext.Provider, {
11059
+ return /* @__PURE__ */ React72.createElement(PopoverContext.Provider, {
10779
11060
  value: {
10780
11061
  state
10781
11062
  }
10782
- }, React71.Children.map(props.children, (child) => {
11063
+ }, React72.Children.map(props.children, (child) => {
10783
11064
  if (isComponentType(child, Popover2.Trigger)) {
10784
- return /* @__PURE__ */ React71.createElement(PressResponder2, __spreadValues({
11065
+ return /* @__PURE__ */ React72.createElement(PressResponder2, __spreadValues({
10785
11066
  ref: triggerRef
10786
- }, triggerProps), /* @__PURE__ */ React71.createElement(PopoverTriggerWrapper, {
11067
+ }, triggerProps), /* @__PURE__ */ React72.createElement(PopoverTriggerWrapper, {
10787
11068
  "data-testid": props["data-testid"],
10788
11069
  "aria-controls": id
10789
11070
  }, child.props.children));
10790
11071
  }
10791
11072
  if (isComponentType(child, Popover2.Panel)) {
10792
- return state.isOpen && /* @__PURE__ */ React71.createElement(PopoverOverlay, __spreadValues({
11073
+ return state.isOpen && /* @__PURE__ */ React72.createElement(PopoverOverlay, __spreadValues({
10793
11074
  triggerRef: targetRef != null ? targetRef : triggerRef,
10794
11075
  state,
10795
11076
  placement,
@@ -10800,7 +11081,7 @@ var Popover2 = (props) => {
10800
11081
  offset,
10801
11082
  crossOffset,
10802
11083
  shouldFlip
10803
- }, overlayProps), containFocus ? /* @__PURE__ */ React71.createElement(Dialog2, null, child.props.children) : child.props.children);
11084
+ }, overlayProps), containFocus ? /* @__PURE__ */ React72.createElement(Dialog2, null, child.props.children) : child.props.children);
10804
11085
  }
10805
11086
  throw new Error("Invalid children element type");
10806
11087
  }));
@@ -10819,7 +11100,7 @@ var asPopoverButton = (Component, displayName) => {
10819
11100
  state.close();
10820
11101
  onClick == null ? void 0 : onClick(e);
10821
11102
  };
10822
- return /* @__PURE__ */ React71.createElement(Component, __spreadProps(__spreadValues({}, props), {
11103
+ return /* @__PURE__ */ React72.createElement(Component, __spreadProps(__spreadValues({}, props), {
10823
11104
  onClick: handleClick
10824
11105
  }));
10825
11106
  };
@@ -10831,10 +11112,10 @@ Popover2.Button = PopoverButton;
10831
11112
  var PopoverTriggerWrapper = (_a) => {
10832
11113
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
10833
11114
  var _a2;
10834
- const ref = useRef8(null);
10835
- const trigger = React71.Children.only(children);
11115
+ const ref = useRef7(null);
11116
+ const trigger = React72.Children.only(children);
10836
11117
  const { pressProps } = usePress2(__spreadProps(__spreadValues({}, rest), { ref }));
10837
- return React71.cloneElement(trigger, __spreadProps(__spreadValues({
11118
+ return React72.cloneElement(trigger, __spreadProps(__spreadValues({
10838
11119
  "ref": ref
10839
11120
  }, mergeProps3(pressProps, trigger.props)), {
10840
11121
  "aria-controls": (_a2 = rest["aria-controls"]) != null ? _a2 : pressProps["aria-controls"]
@@ -10843,10 +11124,10 @@ var PopoverTriggerWrapper = (_a) => {
10843
11124
 
10844
11125
  // src/molecules/Dropdown/Dropdown.tsx
10845
11126
  var Dropdown = ({ children, content, placement = "bottom-left" }) => {
10846
- return /* @__PURE__ */ React72.createElement(Popover2, {
11127
+ return /* @__PURE__ */ React73.createElement(Popover2, {
10847
11128
  type: "menu",
10848
11129
  placement
10849
- }, /* @__PURE__ */ React72.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React72.createElement(Popover2.Panel, {
11130
+ }, /* @__PURE__ */ React73.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React73.createElement(Popover2.Panel, {
10850
11131
  className: "Aquarium-Dropdown"
10851
11132
  }, content));
10852
11133
  };
@@ -10857,26 +11138,26 @@ var DropdownMenu3 = ({
10857
11138
  triggerId,
10858
11139
  setClose = () => void 0
10859
11140
  }) => {
10860
- const menuRef = React72.useRef(null);
10861
- React72.useEffect(() => {
11141
+ const menuRef = React73.useRef(null);
11142
+ React73.useEffect(() => {
10862
11143
  const id = setTimeout(() => {
10863
11144
  var _a, _b, _c;
10864
11145
  return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
10865
11146
  });
10866
11147
  return () => clearTimeout(id);
10867
11148
  }, [menuRef.current]);
10868
- return /* @__PURE__ */ React72.createElement("div", {
11149
+ return /* @__PURE__ */ React73.createElement("div", {
10869
11150
  style: { minWidth: "250px" },
10870
11151
  className: tw("py-3 bg-white")
10871
- }, !!title && /* @__PURE__ */ React72.createElement("div", {
11152
+ }, !!title && /* @__PURE__ */ React73.createElement("div", {
10872
11153
  className: tw("px-4 py-4 text-left text-grey-100 typography-default-strong")
10873
- }, title), /* @__PURE__ */ React72.createElement("ol", {
11154
+ }, title), /* @__PURE__ */ React73.createElement("ol", {
10874
11155
  role: "menu",
10875
11156
  ref: menuRef,
10876
11157
  id: contentId,
10877
11158
  "aria-labelledby": triggerId
10878
- }, React72.Children.map(children, (child) => {
10879
- return React72.cloneElement(child, { setClose });
11159
+ }, React73.Children.map(children, (child) => {
11160
+ return React73.cloneElement(child, { setClose });
10880
11161
  })));
10881
11162
  };
10882
11163
  var DropdownItem = (_a) => {
@@ -10931,10 +11212,10 @@ var DropdownItem = (_a) => {
10931
11212
  handleSelect();
10932
11213
  }
10933
11214
  };
10934
- const itemContent = /* @__PURE__ */ React72.createElement("div", {
11215
+ const itemContent = /* @__PURE__ */ React73.createElement("div", {
10935
11216
  className: tw("py-3 px-4")
10936
11217
  }, children);
10937
- return /* @__PURE__ */ React72.createElement("li", __spreadProps(__spreadValues({
11218
+ return /* @__PURE__ */ React73.createElement("li", __spreadProps(__spreadValues({
10938
11219
  role: "menuitem",
10939
11220
  tabIndex: -1,
10940
11221
  onClick: handleClick,
@@ -10945,11 +11226,11 @@ var DropdownItem = (_a) => {
10945
11226
  "text-grey-10 cursor-not-allowed": disabled,
10946
11227
  "text-primary-70 hover:text-primary-80": color === "danger" && !disabled
10947
11228
  })
10948
- }), tooltip ? /* @__PURE__ */ React72.createElement(Tooltip, {
11229
+ }), tooltip ? /* @__PURE__ */ React73.createElement(Tooltip, {
10949
11230
  content: tooltip,
10950
11231
  placement: tooltipPlacement,
10951
11232
  inline: false
10952
- }, /* @__PURE__ */ React72.createElement("div", {
11233
+ }, /* @__PURE__ */ React73.createElement("div", {
10953
11234
  tabIndex: 0,
10954
11235
  className: tw("grow")
10955
11236
  }, itemContent)) : itemContent);
@@ -10959,21 +11240,6 @@ Dropdown.Item = DropdownItem;
10959
11240
 
10960
11241
  // src/molecules/EmptyState/EmptyState.tsx
10961
11242
  import React74 from "react";
10962
-
10963
- // src/utils/actions.tsx
10964
- import React73 from "react";
10965
- import omit9 from "lodash/omit";
10966
- var renderAction = (kind = "primary", action) => {
10967
- return isLink(action) ? /* @__PURE__ */ React73.createElement(Button.ExternalLink, __spreadValues({
10968
- key: action.text,
10969
- kind
10970
- }, omit9(action, "text")), action.text) : /* @__PURE__ */ React73.createElement(Button, __spreadValues({
10971
- key: action.text,
10972
- kind
10973
- }, omit9(action, "text")), action.text);
10974
- };
10975
-
10976
- // src/molecules/EmptyState/EmptyState.tsx
10977
11243
  var EmptyStateLayout = /* @__PURE__ */ ((EmptyStateLayout2) => {
10978
11244
  EmptyStateLayout2["Vertical"] = "vertical";
10979
11245
  EmptyStateLayout2["Horizontal"] = "horizontal";
@@ -11066,8 +11332,8 @@ var EmptyState = ({
11066
11332
  gap: "4",
11067
11333
  justifyContent: "center",
11068
11334
  alignItems: "center",
11069
- wrap: "wrap"
11070
- }, primaryAction && renderAction("primary", primaryAction), secondaryAction && renderAction("secondary", secondaryAction)), footer && /* @__PURE__ */ React74.createElement(Box, {
11335
+ flexWrap: "wrap"
11336
+ }, primaryAction && renderAction({ kind: "primary", action: primaryAction }), secondaryAction && renderAction({ kind: "secondary", action: secondaryAction })), footer && /* @__PURE__ */ React74.createElement(Box, {
11071
11337
  marginTop: "5"
11072
11338
  }, /* @__PURE__ */ React74.createElement(Typography2.Small, {
11073
11339
  color: "grey-60"
@@ -11202,7 +11468,6 @@ var ListItem = ({ name, icon, active = false }) => {
11202
11468
  className: `px-4 py-2 rounded-full ${active ? "bg-grey-5" : "hover:bg-grey-0"}`
11203
11469
  }, /* @__PURE__ */ React80.createElement("img", {
11204
11470
  src: icon,
11205
- alt: name,
11206
11471
  className: "inline mr-4",
11207
11472
  height: 28,
11208
11473
  width: 28
@@ -11213,13 +11478,13 @@ var ListItem = ({ name, icon, active = false }) => {
11213
11478
  import React82 from "react";
11214
11479
  import { useDialog as useDialog3 } from "@react-aria/dialog";
11215
11480
  import { Overlay as Overlay3, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
11216
- import { useId as useId3 } from "@react-aria/utils";
11481
+ import { useId as useId8 } from "@react-aria/utils";
11217
11482
  import { useOverlayTriggerState as useOverlayTriggerState4 } from "@react-stately/overlays";
11218
11483
  import castArray from "lodash/castArray";
11219
- import omit10 from "lodash/omit";
11484
+ import omit9 from "lodash/omit";
11220
11485
 
11221
11486
  // src/molecules/Tabs/Tabs.tsx
11222
- import React81, { useEffect as useEffect8, useLayoutEffect as useLayoutEffect2, useRef as useRef9, useState as useState10 } from "react";
11487
+ import React81, { useEffect as useEffect8, useLayoutEffect as useLayoutEffect2, useRef as useRef8, useState as useState10 } from "react";
11223
11488
  import isNumber5 from "lodash/isNumber";
11224
11489
  import kebabCase from "lodash/kebabCase";
11225
11490
  var import_chevronLeft4 = __toESM(require_chevronLeft());
@@ -11350,9 +11615,9 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
11350
11615
  const [selected, setSelected] = useState10((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
11351
11616
  const [leftCaret, showLeftCaret] = useState10(false);
11352
11617
  const [rightCaret, showRightCaret] = useState10(false);
11353
- const parentRef = useRef9(null);
11354
- const containerRef = useRef9(null);
11355
- const tabsRef = useRef9(null);
11618
+ const parentRef = useRef8(null);
11619
+ const containerRef = useRef8(null);
11620
+ const tabsRef = useRef8(null);
11356
11621
  const revealSelectedTab = ({ smooth }) => {
11357
11622
  var _a2, _b2;
11358
11623
  const container = containerRef.current;
@@ -11543,8 +11808,8 @@ var Modal2 = (_a) => {
11543
11808
  var ModalWrapper = React82.forwardRef(
11544
11809
  (_a, ref) => {
11545
11810
  var _b = _a, { title, subtitle, headerImage, primaryAction, secondaryActions, children, onClose } = _b, props = __objRest(_b, ["title", "subtitle", "headerImage", "primaryAction", "secondaryActions", "children", "onClose"]);
11546
- const labelledBy = useId3();
11547
- const describedBy = useId3();
11811
+ const labelledBy = useId8();
11812
+ const describedBy = useId8();
11548
11813
  const { dialogProps } = useDialog3(
11549
11814
  { "role": "dialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
11550
11815
  ref
@@ -11574,7 +11839,7 @@ var ModalWrapper = React82.forwardRef(
11574
11839
  }, action), text);
11575
11840
  }), primaryAction && /* @__PURE__ */ React82.createElement(Button.Primary, __spreadValues({
11576
11841
  key: primaryAction.text
11577
- }, omit10(primaryAction, "text")), primaryAction.text))));
11842
+ }, omit9(primaryAction, "text")), primaryAction.text))));
11578
11843
  }
11579
11844
  );
11580
11845
  var ModalTabs = createTabsComponent(
@@ -11589,11 +11854,11 @@ var ModalTabs = createTabsComponent(
11589
11854
  );
11590
11855
 
11591
11856
  // src/molecules/MultiInput/MultiInput.tsx
11592
- import React84, { useEffect as useEffect9, useRef as useRef10, useState as useState11 } from "react";
11857
+ import React84, { useEffect as useEffect9, useRef as useRef9, useState as useState11 } from "react";
11858
+ import { useId as useId9 } from "@react-aria/utils";
11593
11859
  import castArray2 from "lodash/castArray";
11594
11860
  import identity from "lodash/identity";
11595
- import omit11 from "lodash/omit";
11596
- import uniqueId5 from "lodash/uniqueId";
11861
+ import omit10 from "lodash/omit";
11597
11862
 
11598
11863
  // src/molecules/MultiInput/InputChip.tsx
11599
11864
  import React83 from "react";
@@ -11686,7 +11951,7 @@ var MultiInputBase = (_a) => {
11686
11951
  "valid"
11687
11952
  ]);
11688
11953
  var _a2;
11689
- const inputRef = useRef10(null);
11954
+ const inputRef = useRef9(null);
11690
11955
  const [items, setItems] = useState11((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
11691
11956
  const [hasFocus, setFocus] = useState11(false);
11692
11957
  const keyCodes = [delimiter !== "enter" ? " " : null, delimiter !== "space" ? "Enter" : null].filter(identity);
@@ -11820,21 +12085,22 @@ var MultiInput = (props) => {
11820
12085
  var _a2;
11821
12086
  setValue((_a2 = props.value) != null ? _a2 : []);
11822
12087
  }, [JSON.stringify(props.value)]);
11823
- const id = useRef10((_e = (_d = props.id) != null ? _d : props.name) != null ? _e : `multiinput-${uniqueId5()}`);
11824
- const errorMessageId = uniqueId5();
12088
+ const defaultId = useId9();
12089
+ const id = (_e = (_d = props.id) != null ? _d : props.name) != null ? _e : defaultId;
12090
+ const errorMessageId = useId9();
11825
12091
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
11826
12092
  const labelControlProps = getLabelControlProps(props);
11827
- const baseProps = omit11(props, Object.keys(labelControlProps));
12093
+ const baseProps = omit10(props, Object.keys(labelControlProps));
11828
12094
  return /* @__PURE__ */ React84.createElement(LabelControl, __spreadProps(__spreadValues({
11829
- id: `${id.current}-label`,
11830
- htmlFor: `${id.current}-input`,
12095
+ id: `${id}-label`,
12096
+ htmlFor: `${id}-input`,
11831
12097
  messageId: errorMessageId
11832
12098
  }, labelControlProps), {
11833
12099
  length: value.length,
11834
12100
  maxLength,
11835
12101
  className: "Aquarium-MultiInput"
11836
12102
  }), /* @__PURE__ */ React84.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
11837
- id: `${id.current}-input`,
12103
+ id: `${id}-input`,
11838
12104
  onChange: (value2) => {
11839
12105
  var _a2;
11840
12106
  setValue(value2 != null ? value2 : []);
@@ -11850,14 +12116,14 @@ MultiInput.Skeleton = MultiInputSkeleton;
11850
12116
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
11851
12117
 
11852
12118
  // src/molecules/MultiSelect/MultiSelect.tsx
11853
- import React85, { useEffect as useEffect10, useRef as useRef11, useState as useState12 } from "react";
12119
+ import React85, { useEffect as useEffect10, useRef as useRef10, useState as useState12 } from "react";
11854
12120
  import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
12121
+ import { useId as useId10 } from "@react-aria/utils";
11855
12122
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
11856
12123
  import isEqual from "lodash/isEqual";
11857
12124
  import isNil2 from "lodash/isNil";
11858
- import omit12 from "lodash/omit";
12125
+ import omit11 from "lodash/omit";
11859
12126
  import omitBy from "lodash/omitBy";
11860
- import uniqueId6 from "lodash/uniqueId";
11861
12127
  import { matchSorter as matchSorter2 } from "match-sorter";
11862
12128
  var MultiSelectBase = (_a) => {
11863
12129
  var _b = _a, {
@@ -11908,10 +12174,10 @@ var MultiSelectBase = (_a) => {
11908
12174
  "children"
11909
12175
  ]);
11910
12176
  var _a2;
11911
- const popoverRef = useRef11(null);
11912
- const targetRef = useRef11(null);
11913
- const menuRef = useRef11(null);
11914
- const inputRef = useRef11(null);
12177
+ const popoverRef = useRef10(null);
12178
+ const targetRef = useRef10(null);
12179
+ const menuRef = useRef10(null);
12180
+ const inputRef = useRef10(null);
11915
12181
  const [inputValue, setInputValue] = useState12("");
11916
12182
  const [hasFocus, setFocus] = useState12(false);
11917
12183
  const { selectedItems, addSelectedItem, removeSelectedItem, getDropdownProps, getSelectedItemProps } = useMultipleSelection(
@@ -12079,19 +12345,20 @@ var MultiSelect = (_a) => {
12079
12345
  "emptyState"
12080
12346
  ]);
12081
12347
  var _a2;
12082
- const id = useRef11((_a2 = props.id) != null ? _a2 : `multiselect-${uniqueId6()}`);
12083
- const errorMessageId = uniqueId6();
12348
+ const defaultId = useId10();
12349
+ const id = (_a2 = props.id) != null ? _a2 : defaultId;
12350
+ const errorMessageId = useId10();
12084
12351
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12085
12352
  const labelControlProps = getLabelControlProps(props);
12086
- const baseProps = omit12(props, Object.keys(labelControlProps));
12353
+ const baseProps = omit11(props, Object.keys(labelControlProps));
12087
12354
  return /* @__PURE__ */ React85.createElement(LabelControl, __spreadProps(__spreadValues({
12088
- id: `${id.current}-label`,
12089
- htmlFor: `${id.current}-input`,
12355
+ id: `${id}-label`,
12356
+ htmlFor: `${id}-input`,
12090
12357
  messageId: errorMessageId
12091
12358
  }, labelControlProps), {
12092
12359
  className: "Aquarium-MultiSelect"
12093
12360
  }), /* @__PURE__ */ React85.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
12094
- id: id.current,
12361
+ id,
12095
12362
  options,
12096
12363
  emptyState,
12097
12364
  disabled: props.disabled,
@@ -12103,14 +12370,15 @@ MultiSelect.Skeleton = MultiSelectSkeleton;
12103
12370
  MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
12104
12371
 
12105
12372
  // src/molecules/NativeSelect/NativeSelect.tsx
12106
- import React86, { useRef as useRef12 } from "react";
12107
- import omit13 from "lodash/omit";
12108
- import uniqueId7 from "lodash/uniqueId";
12373
+ import React86 from "react";
12374
+ import { useId as useId11 } from "@react-aria/utils";
12375
+ import omit12 from "lodash/omit";
12376
+ import uniqueId from "lodash/uniqueId";
12109
12377
  var import_caretDown2 = __toESM(require_caretDown());
12110
12378
  var NativeSelectBase = React86.forwardRef(
12111
12379
  (_a, ref) => {
12112
12380
  var _b = _a, { children, disabled = false, required = false, valid = true, readOnly = false } = _b, props = __objRest(_b, ["children", "disabled", "required", "valid", "readOnly"]);
12113
- const placeholderValue = uniqueId7("default_value_for_placeholder");
12381
+ const placeholderValue = uniqueId("default_value_for_placeholder");
12114
12382
  const defaultValue = props.defaultValue ? props.defaultValue : props.placeholder ? placeholderValue : void 0;
12115
12383
  const handleBlur = (event) => {
12116
12384
  var _a2, _b2;
@@ -12165,21 +12433,22 @@ var NativeSelect = React86.forwardRef(
12165
12433
  (_a, ref) => {
12166
12434
  var _b = _a, { readOnly } = _b, props = __objRest(_b, ["readOnly"]);
12167
12435
  var _a2;
12168
- const id = useRef12((_a2 = props.id) != null ? _a2 : `nativeselect-${uniqueId7()}`);
12169
- const errorMessageId = uniqueId7();
12436
+ const defaultId = useId11();
12437
+ const id = (_a2 = props.id) != null ? _a2 : defaultId;
12438
+ const errorMessageId = useId11();
12170
12439
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12171
12440
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
12172
- const baseProps = omit13(props, Object.keys(labelControlProps));
12441
+ const baseProps = omit12(props, Object.keys(labelControlProps));
12173
12442
  return /* @__PURE__ */ React86.createElement(LabelControl, __spreadProps(__spreadValues({
12174
- id: `${id.current}-label`,
12175
- htmlFor: id.current,
12443
+ id: `${id}-label`,
12444
+ htmlFor: id,
12176
12445
  messageId: errorMessageId
12177
12446
  }, labelControlProps), {
12178
12447
  className: "Aquarium-NativeSelect"
12179
12448
  }), /* @__PURE__ */ React86.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
12180
12449
  ref
12181
12450
  }, baseProps), errorProps), {
12182
- id: id.current,
12451
+ id,
12183
12452
  "data-testid": dataTestId,
12184
12453
  disabled: props.disabled,
12185
12454
  required: props.required,
@@ -12401,7 +12670,7 @@ var CommonPageHeader = ({
12401
12670
  }, /* @__PURE__ */ React90.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React90.createElement(Button.Icon, {
12402
12671
  "aria-label": menuAriaLabel,
12403
12672
  icon: import_more4.default
12404
- })), menu)), secondaryActions && castArray3(secondaryActions).filter(Boolean).map((secondaryAction2) => renderAction("secondary", secondaryAction2)), primaryAction && renderAction("primary", primaryAction)));
12673
+ })), menu)), secondaryActions && castArray3(secondaryActions).filter(Boolean).map((secondaryAction2) => renderAction({ kind: "secondary", action: secondaryAction2 })), primaryAction && renderAction({ kind: "primary", action: primaryAction })));
12405
12674
  };
12406
12675
  var PageHeader2 = (props) => /* @__PURE__ */ React90.createElement(CommonPageHeader, __spreadValues({}, props));
12407
12676
  PageHeader2.displayName = "PageHeader";
@@ -12413,7 +12682,7 @@ PageHeader2.SubHeader.displayName = "PageHeader.SubHeader";
12413
12682
 
12414
12683
  // src/molecules/PopoverDialog/PopoverDialog.tsx
12415
12684
  import React92 from "react";
12416
- import omit14 from "lodash/omit";
12685
+ import omit13 from "lodash/omit";
12417
12686
 
12418
12687
  // src/atoms/PopoverDialog/PopoverDialog.tsx
12419
12688
  import React91 from "react";
@@ -12423,7 +12692,7 @@ var Header2 = (_a) => {
12423
12692
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
12424
12693
  }), children);
12425
12694
  };
12426
- var Title = (_a) => {
12695
+ var Title2 = (_a) => {
12427
12696
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12428
12697
  return /* @__PURE__ */ React91.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
12429
12698
  htmlTag: "h1",
@@ -12452,7 +12721,7 @@ var Actions2 = (_a) => {
12452
12721
  };
12453
12722
  var PopoverDialog = {
12454
12723
  Header: Header2,
12455
- Title,
12724
+ Title: Title2,
12456
12725
  Body,
12457
12726
  Footer: Footer2,
12458
12727
  Actions: Actions2
@@ -12468,11 +12737,11 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
12468
12737
  kind: "secondary-ghost",
12469
12738
  key: secondaryAction.text,
12470
12739
  dense: true
12471
- }, omit14(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React92.createElement(Popover2.Button, __spreadValues({
12740
+ }, omit13(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React92.createElement(Popover2.Button, __spreadValues({
12472
12741
  kind: "ghost",
12473
12742
  key: primaryAction.text,
12474
12743
  dense: true
12475
- }, omit14(primaryAction, "text")), primaryAction.text))));
12744
+ }, omit13(primaryAction, "text")), primaryAction.text))));
12476
12745
  }
12477
12746
  return child;
12478
12747
  };
@@ -12620,7 +12889,7 @@ RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
12620
12889
 
12621
12890
  // src/molecules/RadioButtonGroup/RadioButtonGroup.tsx
12622
12891
  import React96 from "react";
12623
- import uniqueId8 from "lodash/uniqueId";
12892
+ import { useId as useId12 } from "@react-aria/utils";
12624
12893
  var isRadioButton = (c) => {
12625
12894
  return React96.isValidElement(c) && c.type === RadioButton2;
12626
12895
  };
@@ -12646,7 +12915,7 @@ var RadioButtonGroup = (_a) => {
12646
12915
  ]);
12647
12916
  var _a2;
12648
12917
  const [value, setValue] = React96.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
12649
- const errorMessageId = uniqueId8();
12918
+ const errorMessageId = useId12();
12650
12919
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12651
12920
  const labelControlProps = getLabelControlProps(props);
12652
12921
  if (_value !== void 0 && _value !== value) {
@@ -12701,10 +12970,10 @@ RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
12701
12970
 
12702
12971
  // src/molecules/Section/Section.tsx
12703
12972
  import React101 from "react";
12704
- import { useId as useId4 } from "@react-aria/utils";
12973
+ import { useId as useId13 } from "@react-aria/utils";
12705
12974
  import { animated as animated4, useSpring as useSpring3 } from "@react-spring/web";
12706
12975
  import castArray4 from "lodash/castArray";
12707
- import isUndefined8 from "lodash/isUndefined";
12976
+ import isUndefined9 from "lodash/isUndefined";
12708
12977
 
12709
12978
  // src/molecules/Switch/Switch.tsx
12710
12979
  import React98 from "react";
@@ -12904,7 +13173,7 @@ Section3.Body = (_a) => {
12904
13173
  var import_more5 = __toESM(require_more());
12905
13174
  var Section4 = (props) => {
12906
13175
  var _a, _b, _c, _d, _e;
12907
- const { title, subtitle, actions, children } = props;
13176
+ const { title, subtitle, children } = props;
12908
13177
  const _collapsible = title ? (_a = props.collapsible) != null ? _a : false : false;
12909
13178
  const _collapsed = title ? props.collapsed : void 0;
12910
13179
  const _defaultCollapsed = title ? (_b = props.defaultCollapsed) != null ? _b : false : false;
@@ -12915,7 +13184,7 @@ var Section4 = (props) => {
12915
13184
  const onAction = title ? props.onAction : void 0;
12916
13185
  const onMenuOpenChange = title ? props.onMenuOpenChange : void 0;
12917
13186
  const onCollapsedChange = title ? props.onCollapsedChange : void 0;
12918
- if (title && !isUndefined8(props.collapsed) && props.collapsed !== isCollapsed) {
13187
+ if (title && !isUndefined9(props.collapsed) && props.collapsed !== isCollapsed) {
12919
13188
  setCollapsed(props.collapsed);
12920
13189
  }
12921
13190
  const handleTitleClick = () => {
@@ -12939,8 +13208,8 @@ var Section4 = (props) => {
12939
13208
  },
12940
13209
  immediate: !_collapsible
12941
13210
  }), { transform, backgroundColor } = _f, spring = __objRest(_f, ["transform", "backgroundColor"]);
12942
- const toggleId = useId4();
12943
- const regionId = useId4();
13211
+ const toggleId = useId13();
13212
+ const regionId = useId13();
12944
13213
  return /* @__PURE__ */ React101.createElement(Section3, {
12945
13214
  "aria-label": title,
12946
13215
  className: "Aquarium-Section"
@@ -12971,7 +13240,7 @@ var Section4 = (props) => {
12971
13240
  }, /* @__PURE__ */ React101.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React101.createElement(Button.Icon, {
12972
13241
  "aria-label": menuAriaLabel,
12973
13242
  icon: import_more5.default
12974
- })), menu)), actions && castArray4(actions).filter(Boolean).map((action) => renderAction("secondary", action)), props.switch && /* @__PURE__ */ React101.createElement(Switch2, __spreadValues({}, props.switch)))), /* @__PURE__ */ React101.createElement(animated4.div, {
13243
+ })), menu)), props.actions && castArray4(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.switch && /* @__PURE__ */ React101.createElement(Switch2, __spreadValues({}, props.switch)), props.select && /* @__PURE__ */ React101.createElement(SelectBase, __spreadValues({}, props.select)))), /* @__PURE__ */ React101.createElement(animated4.div, {
12975
13244
  className: tw(`h-[1px]`),
12976
13245
  style: { backgroundColor }
12977
13246
  })), /* @__PURE__ */ React101.createElement(animated4.div, {
@@ -13197,7 +13466,7 @@ Stepper2.Step = Step2;
13197
13466
 
13198
13467
  // src/molecules/SwitchGroup/SwitchGroup.tsx
13199
13468
  import React105, { useState as useState13 } from "react";
13200
- import uniqueId9 from "lodash/uniqueId";
13469
+ import { useId as useId14 } from "@react-aria/utils";
13201
13470
  var SwitchGroup = (_a) => {
13202
13471
  var _b = _a, {
13203
13472
  value,
@@ -13219,7 +13488,7 @@ var SwitchGroup = (_a) => {
13219
13488
  if (value !== void 0 && value !== selectedItems) {
13220
13489
  setSelectedItems(value);
13221
13490
  }
13222
- const errorMessageId = uniqueId9();
13491
+ const errorMessageId = useId14();
13223
13492
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13224
13493
  const labelControlProps = getLabelControlProps(props);
13225
13494
  const handleChange = (e) => {
@@ -13262,10 +13531,10 @@ SwitchGroup.Skeleton = SwitchGroupSkeleton;
13262
13531
  SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
13263
13532
 
13264
13533
  // src/molecules/Textarea/Textarea.tsx
13265
- import React106, { useRef as useRef13, useState as useState14 } from "react";
13266
- import omit15 from "lodash/omit";
13534
+ import React106, { useState as useState14 } from "react";
13535
+ import { useId as useId15 } from "@react-aria/utils";
13536
+ import omit14 from "lodash/omit";
13267
13537
  import toString2 from "lodash/toString";
13268
- import uniqueId10 from "lodash/uniqueId";
13269
13538
  var TextareaBase = React106.forwardRef(
13270
13539
  (_a, ref) => {
13271
13540
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
@@ -13283,14 +13552,15 @@ TextareaBase.Skeleton = () => /* @__PURE__ */ React106.createElement(Skeleton, {
13283
13552
  var Textarea = React106.forwardRef((props, ref) => {
13284
13553
  var _a, _b, _c;
13285
13554
  const [value, setValue] = useState14((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
13286
- const id = useRef13((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
13287
- const errorMessageId = uniqueId10();
13555
+ const defaultId = useId15();
13556
+ const id = (_c = props.id) != null ? _c : defaultId;
13557
+ const errorMessageId = useId15();
13288
13558
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13289
13559
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
13290
- const baseProps = omit15(props, Object.keys(labelControlProps));
13560
+ const baseProps = omit14(props, Object.keys(labelControlProps));
13291
13561
  return /* @__PURE__ */ React106.createElement(LabelControl, __spreadProps(__spreadValues({
13292
- id: `${id.current}-label`,
13293
- htmlFor: id.current,
13562
+ id: `${id}-label`,
13563
+ htmlFor: id,
13294
13564
  messageId: errorMessageId,
13295
13565
  length: value !== void 0 ? toString2(value).length : void 0
13296
13566
  }, labelControlProps), {
@@ -13298,7 +13568,7 @@ var Textarea = React106.forwardRef((props, ref) => {
13298
13568
  }), /* @__PURE__ */ React106.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
13299
13569
  ref
13300
13570
  }, baseProps), errorProps), {
13301
- id: id.current,
13571
+ id,
13302
13572
  "data-testid": dataTestId,
13303
13573
  onChange: (e) => {
13304
13574
  var _a2;