@aivenio/aquarium 1.43.0 → 1.44.1

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 (103) 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 +196 -11
  5. package/dist/charts.mjs +183 -4
  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 +1 -3
  11. package/dist/src/charts/AreaChart/AreaChart.js +2 -2
  12. package/dist/src/charts/BarChart/BarChart.d.ts +1 -3
  13. package/dist/src/charts/BarChart/BarChart.js +1 -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 +1 -3
  17. package/dist/src/charts/LineChart/LineChart.js +1 -1
  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 +13 -0
  21. package/dist/src/charts/PieChart/DoughnutChart.js +31 -0
  22. package/dist/src/charts/PieChart/PieChart.d.ts +11 -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/index.d.ts +3 -0
  31. package/dist/src/charts/index.js +4 -1
  32. package/dist/src/charts/lib/utils.d.ts +5 -0
  33. package/dist/src/charts/lib/utils.js +7 -1
  34. package/dist/src/icons/appUsers.d.ts +9 -0
  35. package/dist/src/icons/appUsers.js +11 -0
  36. package/dist/src/icons/deliveryLocation.d.ts +9 -0
  37. package/dist/src/icons/deliveryLocation.js +11 -0
  38. package/dist/src/icons/gitDiff.d.ts +9 -0
  39. package/dist/src/icons/gitDiff.js +11 -0
  40. package/dist/src/icons/index.d.ts +11 -0
  41. package/dist/src/icons/index.js +12 -1
  42. package/dist/src/icons/managedUsers.d.ts +9 -0
  43. package/dist/src/icons/managedUsers.js +11 -0
  44. package/dist/src/icons/orgAdmin.d.ts +9 -0
  45. package/dist/src/icons/orgAdmin.js +11 -0
  46. package/dist/src/icons/orgUnit.d.ts +9 -0
  47. package/dist/src/icons/orgUnit.js +11 -0
  48. package/dist/src/icons/proPlans.d.ts +9 -0
  49. package/dist/src/icons/proPlans.js +11 -0
  50. package/dist/src/icons/queriesEditor.d.ts +9 -0
  51. package/dist/src/icons/queriesEditor.js +11 -0
  52. package/dist/src/icons/queriesStatistics.d.ts +9 -0
  53. package/dist/src/icons/queriesStatistics.js +11 -0
  54. package/dist/src/icons/save.d.ts +9 -0
  55. package/dist/src/icons/save.js +11 -0
  56. package/dist/src/icons/tools.d.ts +9 -0
  57. package/dist/src/icons/tools.js +11 -0
  58. package/dist/src/molecules/Accordion/Accordion.d.ts +23 -5
  59. package/dist/src/molecules/Accordion/Accordion.js +41 -17
  60. package/dist/src/molecules/Alert/Alert.js +2 -2
  61. package/dist/src/molecules/Box/Box.d.ts +9 -36
  62. package/dist/src/molecules/Box/Box.js +4 -2
  63. package/dist/src/molecules/Card/Card.d.ts +4 -2
  64. package/dist/src/molecules/Card/Card.js +10 -11
  65. package/dist/src/molecules/Card/Compact.d.ts +3 -2
  66. package/dist/src/molecules/Card/Compact.js +9 -12
  67. package/dist/src/molecules/Card/types.d.ts +12 -2
  68. package/dist/src/molecules/CheckboxGroup/CheckboxGroup.js +3 -3
  69. package/dist/src/molecules/Combobox/Combobox.js +7 -6
  70. package/dist/src/molecules/DataList/DataList.d.ts +11 -2
  71. package/dist/src/molecules/DataList/DataList.js +9 -9
  72. package/dist/src/molecules/DropdownMenu/DropdownMenu.js +3 -2
  73. package/dist/src/molecules/Element/Element.d.ts +1 -1
  74. package/dist/src/molecules/Element/Element.js +1 -1
  75. package/dist/src/molecules/EmptyState/EmptyState.js +4 -4
  76. package/dist/src/molecules/Grid/Grid.js +2 -1
  77. package/dist/src/molecules/Input/Input.js +8 -7
  78. package/dist/src/molecules/ListItem/ListItem.js +2 -2
  79. package/dist/src/molecules/MultiInput/MultiInput.js +7 -6
  80. package/dist/src/molecules/MultiSelect/MultiSelect.js +7 -6
  81. package/dist/src/molecules/NativeSelect/NativeSelect.js +8 -6
  82. package/dist/src/molecules/PageHeader/PageHeader.js +3 -3
  83. package/dist/src/molecules/Popover/PopoverOverlay.d.ts +1 -1
  84. package/dist/src/molecules/RadioButtonGroup/RadioButtonGroup.js +3 -3
  85. package/dist/src/molecules/Section/Section.d.ts +10 -3
  86. package/dist/src/molecules/Section/Section.js +9 -7
  87. package/dist/src/molecules/Select/Select.js +7 -6
  88. package/dist/src/molecules/Skeleton/Skeleton.d.ts +1 -1
  89. package/dist/src/molecules/Skeleton/Skeleton.js +16 -4
  90. package/dist/src/molecules/Spacing/Spacing.d.ts +1 -1
  91. package/dist/src/molecules/Spacing/Spacing.js +1 -1
  92. package/dist/src/molecules/SwitchGroup/SwitchGroup.js +3 -3
  93. package/dist/src/molecules/Textarea/Textarea.js +8 -7
  94. package/dist/src/utils/Blueprint.js +3 -5
  95. package/dist/src/utils/actions.d.ts +8 -1
  96. package/dist/src/utils/actions.js +3 -3
  97. package/dist/src/utils/setupTests.js +7 -1
  98. package/dist/styles.css +17 -0
  99. package/dist/system.cjs +912 -646
  100. package/dist/system.mjs +898 -632
  101. package/dist/tsconfig.module.tsbuildinfo +1 -1
  102. package/dist/types/tailwindGenerated.d.ts +1 -1
  103. package/package.json +1 -1
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());
@@ -6900,20 +7091,33 @@ import React20 from "react";
6900
7091
  import React19 from "react";
6901
7092
  import isNumber from "lodash/isNumber";
6902
7093
  import isUndefined7 from "lodash/isUndefined";
6903
- var Skeleton = ({
6904
- width,
6905
- height,
6906
- display = "block",
6907
- className,
6908
- animate = true,
6909
- rounded = false
6910
- }) => {
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
+ ]);
6911
7112
  const styles = {
6912
7113
  width: isNumber(width) ? `${width}px` : width,
6913
7114
  height: isNumber(height) ? `${height}px` : height
6914
7115
  };
6915
- return /* @__PURE__ */ React19.createElement("div", {
6916
- 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",
6917
7121
  className: classNames(
6918
7122
  "Aquarium-Skeleton",
6919
7123
  tw("bg-grey-5", {
@@ -6925,7 +7129,7 @@ var Skeleton = ({
6925
7129
  }),
6926
7130
  className
6927
7131
  )
6928
- });
7132
+ }));
6929
7133
  };
6930
7134
 
6931
7135
  // src/molecules/Avatar/Avatar.tsx
@@ -7218,9 +7422,8 @@ var ActiveCrumb = asCrumb("span", "ActiveCrumb", { isActive: true });
7218
7422
  Breadcrumbs.Crumb = Crumb;
7219
7423
 
7220
7424
  // src/molecules/Card/Card.tsx
7221
- import React31, { useRef as useRef3 } from "react";
7425
+ import React32, { useRef as useRef3 } from "react";
7222
7426
  import { useButton as useButton2 } from "@react-aria/button";
7223
- import omit4 from "lodash/omit";
7224
7427
 
7225
7428
  // src/molecules/Chip/Chip.tsx
7226
7429
  import React26 from "react";
@@ -7465,12 +7668,28 @@ Typography2.SmallTextBold = (_a) => {
7465
7668
  };
7466
7669
 
7467
7670
  // src/atoms/Card/Card.tsx
7468
- import React28 from "react";
7671
+ import React29 from "react";
7469
7672
  import isNumber3 from "lodash/isNumber";
7470
- 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(
7471
7690
  (_a, ref) => {
7472
7691
  var _b = _a, { disabled, fullWidth, enableMinWidth = true, clickable, className, children } = _b, rest = __objRest(_b, ["disabled", "fullWidth", "enableMinWidth", "clickable", "className", "children"]);
7473
- return /* @__PURE__ */ React28.createElement("div", __spreadProps(__spreadValues({
7692
+ return /* @__PURE__ */ React29.createElement("div", __spreadProps(__spreadValues({
7474
7693
  ref
7475
7694
  }, rest), {
7476
7695
  className: classNames(
@@ -7488,14 +7707,14 @@ var Card = React28.forwardRef(
7488
7707
  );
7489
7708
  var ColorHighlight = (_a) => {
7490
7709
  var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
7491
- return /* @__PURE__ */ React28.createElement(Box, __spreadProps(__spreadValues({}, rest), {
7710
+ return /* @__PURE__ */ React29.createElement(Box, __spreadProps(__spreadValues({}, rest), {
7492
7711
  backgroundColor: color,
7493
7712
  className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
7494
7713
  }));
7495
7714
  };
7496
7715
  var ImageContainer = (_a) => {
7497
7716
  var _b = _a, { className, fullSize } = _b, rest = __objRest(_b, ["className", "fullSize"]);
7498
- return /* @__PURE__ */ React28.createElement("div", __spreadProps(__spreadValues({}, rest), {
7717
+ return /* @__PURE__ */ React29.createElement("div", __spreadProps(__spreadValues({}, rest), {
7499
7718
  className: classNames(
7500
7719
  tw("-mx-4", {
7501
7720
  "-mt-4": Boolean(fullSize)
@@ -7505,7 +7724,7 @@ var ImageContainer = (_a) => {
7505
7724
  }));
7506
7725
  };
7507
7726
  var classes = "w-full bg-cover object-cover";
7508
- var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__ */ React28.createElement("img", {
7727
+ var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__ */ React29.createElement("img", {
7509
7728
  src: image,
7510
7729
  alt: imageAlt,
7511
7730
  className: tw(classes, {
@@ -7514,42 +7733,73 @@ var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__
7514
7733
  }),
7515
7734
  style: { height: isNumber3(imageHeight) ? `${imageHeight}px` : imageHeight }
7516
7735
  });
7736
+ var Title = (props) => /* @__PURE__ */ React29.createElement(Box.Flex, __spreadValues({
7737
+ component: "div",
7738
+ alignItems: "center",
7739
+ gap: "2"
7740
+ }, props));
7517
7741
  var Content = (_a) => {
7518
7742
  var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
7519
- return /* @__PURE__ */ React28.createElement("div", __spreadProps(__spreadValues({}, rest), {
7743
+ return /* @__PURE__ */ React29.createElement("div", __spreadProps(__spreadValues({}, rest), {
7520
7744
  className: classNames(tw("flex flex-col", { "gap-4": !dense }), className)
7521
7745
  }));
7522
7746
  };
7523
7747
  var Actions = (_a) => {
7524
7748
  var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
7525
- return /* @__PURE__ */ React28.createElement("div", __spreadProps(__spreadValues({}, rest), {
7749
+ return /* @__PURE__ */ React29.createElement("div", __spreadProps(__spreadValues({}, rest), {
7526
7750
  className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className)
7527
7751
  }));
7528
7752
  };
7753
+ Card.Title = Title;
7529
7754
  Card.Content = Content;
7530
7755
  Card.Actions = Actions;
7531
7756
  Card.ImageContainer = ImageContainer;
7532
7757
  Card.Image = Image;
7533
7758
  Card.ColorHiglight = ColorHighlight;
7534
-
7535
- // src/atoms/LineClamp/LineClamp.tsx
7536
- import React29 from "react";
7537
- var LineClamp = React29.forwardRef(
7538
- (_a, ref) => {
7539
- var _b = _a, { lines = 1, clamped = true, children, className, wordBreak = "break-words" } = _b, props = __objRest(_b, ["lines", "clamped", "children", "className", "wordBreak"]);
7540
- return /* @__PURE__ */ React29.createElement("div", __spreadValues({
7541
- ref,
7542
- className: classNames(className, wordBreak === "break-words" ? "break-words" : "break-all", {
7543
- [`line-clamp-${lines}`]: clamped
7544
- })
7545
- }, 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
+ );
7546
7771
  }
7547
- );
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
+ };
7548
7799
 
7549
7800
  // src/molecules/Card/Compact.tsx
7550
- import React30, { useRef as useRef2 } from "react";
7801
+ import React31, { useRef as useRef2 } from "react";
7551
7802
  import { useButton } from "@react-aria/button";
7552
- import { omit as omit3 } from "lodash";
7553
7803
  var CompactCard = ({
7554
7804
  title,
7555
7805
  clampTitle,
@@ -7558,6 +7808,8 @@ var CompactCard = ({
7558
7808
  color,
7559
7809
  action,
7560
7810
  link,
7811
+ primaryAction = action,
7812
+ secondaryAction = link,
7561
7813
  onClick,
7562
7814
  disabled,
7563
7815
  fullWidth,
@@ -7565,75 +7817,64 @@ var CompactCard = ({
7565
7817
  }) => {
7566
7818
  const ref = useRef2(null);
7567
7819
  const { buttonProps } = useButton({ elementType: "div", onPress: onClick, isDisabled: disabled }, ref);
7568
- const titleContent = /* @__PURE__ */ React30.createElement(Typography2.SmallStrong, {
7569
- color: "black"
7570
- }, title);
7571
- return /* @__PURE__ */ React30.createElement(Card, __spreadProps(__spreadValues({
7820
+ return /* @__PURE__ */ React31.createElement(Card, __spreadProps(__spreadValues({
7572
7821
  ref,
7573
7822
  className: "Aquarium-Card.Compact",
7574
7823
  clickable: Boolean(onClick),
7575
7824
  fullWidth,
7576
- enableMinWidth: Boolean(action || link || chips.length)
7825
+ enableMinWidth: Boolean(primaryAction || secondaryAction || chips.length)
7577
7826
  }, onClick ? buttonProps : {}), {
7578
7827
  disabled
7579
- }), color && /* @__PURE__ */ React30.createElement(Card.ColorHiglight, {
7828
+ }), color && /* @__PURE__ */ React31.createElement(Card.ColorHiglight, {
7580
7829
  color
7581
- }), chips.length > 0 && /* @__PURE__ */ React30.createElement(ChipContainer, {
7830
+ }), chips.length > 0 && /* @__PURE__ */ React31.createElement(ChipContainer, {
7582
7831
  dense: true
7583
- }, chips.map((chip) => /* @__PURE__ */ React30.createElement(Chip2, {
7832
+ }, chips.map((chip) => /* @__PURE__ */ React31.createElement(Chip2, {
7584
7833
  key: chip,
7585
7834
  text: chip
7586
- }))), /* @__PURE__ */ React30.createElement(Box, {
7835
+ }))), /* @__PURE__ */ React31.createElement(Box, {
7587
7836
  display: "flex",
7588
7837
  gap: "5"
7589
- }, icon && /* @__PURE__ */ React30.createElement(Avatar, {
7838
+ }, icon && /* @__PURE__ */ React31.createElement(Avatar, {
7590
7839
  image: icon
7591
- }), /* @__PURE__ */ React30.createElement(Card.Content, {
7840
+ }), /* @__PURE__ */ React31.createElement(Card.Content, {
7592
7841
  dense: true
7593
- }, clampTitle ? /* @__PURE__ */ React30.createElement(LineClamp, {
7594
- lines: clampTitle,
7595
- wordBreak: "break-all"
7596
- }, titleContent) : titleContent, /* @__PURE__ */ React30.createElement(Typography2.Caption, {
7842
+ }, getTitleContent({ title, clampTitle, dense: true }), /* @__PURE__ */ React31.createElement(Typography2.Caption, {
7597
7843
  color: "grey-70"
7598
- }, children))), (action || link) && /* @__PURE__ */ React30.createElement(Card.Actions, {
7599
- dense: true
7600
- }, action && /* @__PURE__ */ React30.createElement(Button.Secondary, __spreadValues({
7844
+ }, children))), (primaryAction || secondaryAction) && /* @__PURE__ */ React31.createElement(Card.Actions, {
7601
7845
  dense: true
7602
- }, omit3(action, "text")), action.text), link && /* @__PURE__ */ React30.createElement(Button.ExternalLink, __spreadValues({
7603
- dense: true,
7604
- kind: "ghost"
7605
- }, omit3(link, "text")), link.text)));
7846
+ }, primaryAction && renderAction({ kind: "secondary", dense: true, action: primaryAction }), secondaryAction && renderAction({ kind: "ghost", dense: true, action: secondaryAction })));
7606
7847
  };
7607
7848
  var CompactSkeleton = ({
7608
7849
  chips = true,
7609
7850
  icon = true,
7610
7851
  actions = true,
7611
7852
  fullWidth = false
7612
- }) => /* @__PURE__ */ React30.createElement(Card, {
7853
+ }) => /* @__PURE__ */ React31.createElement(Card, {
7613
7854
  fullWidth
7614
- }, chips && /* @__PURE__ */ React30.createElement(ChipContainer, {
7855
+ }, chips && /* @__PURE__ */ React31.createElement(ChipContainer, {
7615
7856
  dense: true
7616
- }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React30.createElement(Chip2.Skeleton, {
7857
+ }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React31.createElement(Chip2.Skeleton, {
7617
7858
  key: idx
7618
- }))), /* @__PURE__ */ React30.createElement(Box, {
7859
+ }))), /* @__PURE__ */ React31.createElement(Box, {
7619
7860
  display: "flex",
7620
7861
  gap: "5"
7621
- }, 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, {
7622
7863
  dense: true
7623
- }, /* @__PURE__ */ React30.createElement(Skeleton, {
7864
+ }, /* @__PURE__ */ React31.createElement(Skeleton, {
7624
7865
  width: 80,
7625
7866
  height: 20
7626
- }), /* @__PURE__ */ React30.createElement(Box, {
7867
+ }), /* @__PURE__ */ React31.createElement(Box, {
7627
7868
  height: "1"
7628
- }), /* @__PURE__ */ React30.createElement(Skeleton, {
7869
+ }), /* @__PURE__ */ React31.createElement(Skeleton, {
7629
7870
  width: 145,
7630
7871
  height: 16
7631
- }))), actions && /* @__PURE__ */ React30.createElement(Card.Actions, {
7872
+ }))), actions && /* @__PURE__ */ React31.createElement(Card.Actions, {
7632
7873
  dense: true
7633
- }, /* @__PURE__ */ React30.createElement(Skeleton, {
7874
+ }, /* @__PURE__ */ React31.createElement(Skeleton, {
7634
7875
  width: 115,
7635
7876
  height: 25
7636
- }), /* @__PURE__ */ React30.createElement(Skeleton, {
7877
+ }), /* @__PURE__ */ React31.createElement(Skeleton, {
7637
7878
  width: 60,
7638
7879
  height: 25
7639
7880
  })));
@@ -7652,6 +7893,8 @@ var Card2 = ({
7652
7893
  color,
7653
7894
  action,
7654
7895
  link,
7896
+ primaryAction = action,
7897
+ secondaryAction = link,
7655
7898
  onClick,
7656
7899
  disabled,
7657
7900
  fullWidth,
@@ -7659,10 +7902,7 @@ var Card2 = ({
7659
7902
  }) => {
7660
7903
  const ref = useRef3(null);
7661
7904
  const { buttonProps } = useButton2({ elementType: "div", onPress: onClick, isDisabled: disabled }, ref);
7662
- const titleContent = /* @__PURE__ */ React31.createElement(Typography2.DefaultStrong, {
7663
- color: "black"
7664
- }, title);
7665
- return /* @__PURE__ */ React31.createElement(Card, __spreadProps(__spreadValues({
7905
+ return /* @__PURE__ */ React32.createElement(Card, __spreadProps(__spreadValues({
7666
7906
  ref,
7667
7907
  className: "Aquarium-Card",
7668
7908
  clickable: Boolean(onClick),
@@ -7670,35 +7910,29 @@ var Card2 = ({
7670
7910
  enableMinWidth: Boolean(image || action || link || chips.length || icons.length)
7671
7911
  }, onClick ? buttonProps : {}), {
7672
7912
  disabled
7673
- }), color && /* @__PURE__ */ React31.createElement(Card.ColorHiglight, {
7913
+ }), color && /* @__PURE__ */ React32.createElement(Card.ColorHiglight, {
7674
7914
  color
7675
- }), chips.length > 0 && /* @__PURE__ */ React31.createElement(ChipContainer, {
7915
+ }), chips.length > 0 && /* @__PURE__ */ React32.createElement(ChipContainer, {
7676
7916
  dense: true
7677
- }, chips.map((chip) => /* @__PURE__ */ React31.createElement(Chip2, {
7917
+ }, chips.map((chip) => /* @__PURE__ */ React32.createElement(Chip2, {
7678
7918
  key: chip,
7679
7919
  text: chip
7680
- }))), icons.length > 0 && /* @__PURE__ */ React31.createElement(AvatarStack, {
7920
+ }))), icons.length > 0 && /* @__PURE__ */ React32.createElement(AvatarStack, {
7681
7921
  images: icons
7682
- }), image !== void 0 && (imageHeight ? /* @__PURE__ */ React31.createElement(CardImage, {
7922
+ }), image !== void 0 && (imageHeight ? /* @__PURE__ */ React32.createElement(CardImage, {
7683
7923
  image,
7684
7924
  imageAlt,
7685
7925
  imageHeight
7686
- }) : /* @__PURE__ */ React31.createElement(CardImage, {
7926
+ }) : /* @__PURE__ */ React32.createElement(CardImage, {
7687
7927
  image,
7688
7928
  imageAlt,
7689
7929
  fullSize: chips.length === 0
7690
- })), /* @__PURE__ */ React31.createElement(Card.Content, null, clampTitle ? /* @__PURE__ */ React31.createElement(LineClamp, {
7691
- lines: clampTitle,
7692
- wordBreak: "break-all"
7693
- }, titleContent) : titleContent, /* @__PURE__ */ React31.createElement(Typography2.Caption, {
7930
+ })), /* @__PURE__ */ React32.createElement(Card.Content, null, getTitleContent({ title, clampTitle }), /* @__PURE__ */ React32.createElement(Typography2.Caption, {
7694
7931
  color: "grey-70"
7695
- }, children || description)), (action || link) && /* @__PURE__ */ React31.createElement(Card.Actions, null, action && /* @__PURE__ */ React31.createElement(Button.Secondary, __spreadValues({
7696
- dense: true
7697
- }, omit4(action, "text")), action.text), link && /* @__PURE__ */ React31.createElement(Button.ExternalLink, __spreadValues({
7698
- dense: true,
7699
- kind: "ghost"
7700
- }, 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 })));
7701
7933
  };
7934
+ Card2.Title = Card.Title;
7935
+ Card2.Title.displayName = "Card.Title";
7702
7936
  var CardSkeleton = ({
7703
7937
  chips = true,
7704
7938
  icons = false,
@@ -7706,60 +7940,60 @@ var CardSkeleton = ({
7706
7940
  actions = true,
7707
7941
  fullWidth = false,
7708
7942
  imageHeight
7709
- }) => /* @__PURE__ */ React31.createElement(Card, {
7943
+ }) => /* @__PURE__ */ React32.createElement(Card, {
7710
7944
  fullWidth
7711
- }, chips && /* @__PURE__ */ React31.createElement(ChipContainer, {
7945
+ }, chips && /* @__PURE__ */ React32.createElement(ChipContainer, {
7712
7946
  dense: true
7713
- }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React31.createElement(Chip2.Skeleton, {
7947
+ }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React32.createElement(Chip2.Skeleton, {
7714
7948
  key: idx
7715
- }))), icons && /* @__PURE__ */ React31.createElement(AvatarStack, {
7949
+ }))), icons && /* @__PURE__ */ React32.createElement(AvatarStack, {
7716
7950
  images: [null]
7717
- }), image && (imageHeight ? /* @__PURE__ */ React31.createElement(CardImage, {
7951
+ }), image && (imageHeight ? /* @__PURE__ */ React32.createElement(CardImage, {
7718
7952
  image: null,
7719
7953
  imageHeight
7720
- }) : /* @__PURE__ */ React31.createElement(CardImage, {
7954
+ }) : /* @__PURE__ */ React32.createElement(CardImage, {
7721
7955
  image: null,
7722
7956
  fullSize: !chips
7723
- })), /* @__PURE__ */ React31.createElement(Card.Content, null, /* @__PURE__ */ React31.createElement(Skeleton, {
7957
+ })), /* @__PURE__ */ React32.createElement(Card.Content, null, /* @__PURE__ */ React32.createElement(Skeleton, {
7724
7958
  width: 145,
7725
7959
  height: 25
7726
- }), /* @__PURE__ */ React31.createElement(Skeleton, {
7960
+ }), /* @__PURE__ */ React32.createElement(Skeleton, {
7727
7961
  width: 145,
7728
7962
  height: 16
7729
- })), actions && /* @__PURE__ */ React31.createElement(Card.Actions, null, /* @__PURE__ */ React31.createElement(Skeleton, {
7963
+ })), actions && /* @__PURE__ */ React32.createElement(Card.Actions, null, /* @__PURE__ */ React32.createElement(Skeleton, {
7730
7964
  width: 115,
7731
7965
  height: 25
7732
- }), /* @__PURE__ */ React31.createElement(Skeleton, {
7966
+ }), /* @__PURE__ */ React32.createElement(Skeleton, {
7733
7967
  width: 60,
7734
7968
  height: 25
7735
7969
  })));
7736
7970
  Card2.Skeleton = CardSkeleton;
7737
7971
  Card2.Compact = CompactCard;
7738
- 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, {
7739
7973
  fullSize
7740
- }, image ? imageHeight ? /* @__PURE__ */ React31.createElement(Card.Image, {
7974
+ }, image ? imageHeight ? /* @__PURE__ */ React32.createElement(Card.Image, {
7741
7975
  image,
7742
7976
  imageAlt,
7743
7977
  imageHeight
7744
- }) : /* @__PURE__ */ React31.createElement(Card.Image, {
7978
+ }) : /* @__PURE__ */ React32.createElement(Card.Image, {
7745
7979
  image,
7746
7980
  imageAlt,
7747
7981
  fullSize
7748
- }) : /* @__PURE__ */ React31.createElement(CardImage.Skeleton, {
7982
+ }) : /* @__PURE__ */ React32.createElement(CardImage.Skeleton, {
7749
7983
  fullSize,
7750
7984
  imageHeight
7751
7985
  }));
7752
- var CardImageSkeleton = ({ imageHeight, fullSize }) => imageHeight ? /* @__PURE__ */ React31.createElement(Skeleton, {
7986
+ var CardImageSkeleton = ({ imageHeight, fullSize }) => imageHeight ? /* @__PURE__ */ React32.createElement(Skeleton, {
7753
7987
  height: imageHeight,
7754
7988
  width: "100%"
7755
- }) : /* @__PURE__ */ React31.createElement(Skeleton, {
7989
+ }) : /* @__PURE__ */ React32.createElement(Skeleton, {
7756
7990
  height: fullSize ? 225 : 174,
7757
7991
  width: "100%"
7758
7992
  });
7759
7993
  CardImage.Skeleton = CardImageSkeleton;
7760
7994
 
7761
7995
  // src/molecules/Carousel/Carousel.tsx
7762
- 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";
7763
7997
  import classNames5 from "classnames";
7764
7998
  var import_chevronLeft2 = __toESM(require_chevronLeft());
7765
7999
  var import_chevronRight2 = __toESM(require_chevronRight());
@@ -7771,7 +8005,7 @@ var Carousel = ({
7771
8005
  }) => {
7772
8006
  const containerRef = useRef4(null);
7773
8007
  const scrollbarContainerRef = useRef4(null);
7774
- const items = React32.Children.toArray(children);
8008
+ const items = React33.Children.toArray(children);
7775
8009
  const [width, setWidth] = useState2(0);
7776
8010
  const [isUpdating, setIsUpdating] = useState2(false);
7777
8011
  const [currentPage, setCurrentPage] = useState2(currentPageProp != null ? currentPageProp : defaultPage);
@@ -7821,30 +8055,30 @@ var Carousel = ({
7821
8055
  onPageChange && onPageChange(newPage);
7822
8056
  }
7823
8057
  };
7824
- return items.length > 0 ? /* @__PURE__ */ React32.createElement("div", {
8058
+ return items.length > 0 ? /* @__PURE__ */ React33.createElement("div", {
7825
8059
  className: classNames5("Aquarium-Carousel", tw("w-full flex flex-col")),
7826
8060
  ref: containerRef
7827
- }, containerRef !== null && /* @__PURE__ */ React32.createElement("ul", {
8061
+ }, containerRef !== null && /* @__PURE__ */ React33.createElement("ul", {
7828
8062
  ref: scrollbarContainerRef,
7829
8063
  tabIndex: 0,
7830
8064
  onScroll: handleScroll,
7831
8065
  className: tw(
7832
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"
7833
8067
  )
7834
- }, 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, {
7835
8069
  key: index,
7836
8070
  width,
7837
8071
  ariaHidden: index + 1 === currentPage ? void 0 : true
7838
- }, child))), /* @__PURE__ */ React32.createElement(Flexbox, {
8072
+ }, child))), /* @__PURE__ */ React33.createElement(Flexbox, {
7839
8073
  direction: "row",
7840
8074
  justifyContent: "flex-end",
7841
8075
  alignItems: "center"
7842
- }, /* @__PURE__ */ React32.createElement(IconButton, {
8076
+ }, /* @__PURE__ */ React33.createElement(IconButton, {
7843
8077
  "aria-label": "Previous",
7844
8078
  onClick: () => handleNavigationClick("left"),
7845
8079
  icon: import_chevronLeft2.default,
7846
8080
  disabled: currentPage === 1
7847
- }), /* @__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, {
7848
8082
  "aria-label": "Next",
7849
8083
  onClick: () => handleNavigationClick("right"),
7850
8084
  icon: import_chevronRight2.default,
@@ -7852,7 +8086,7 @@ var Carousel = ({
7852
8086
  }))) : null;
7853
8087
  };
7854
8088
  var CarouselItem = ({ width, children, ariaHidden }) => {
7855
- return /* @__PURE__ */ React32.createElement("li", {
8089
+ return /* @__PURE__ */ React33.createElement("li", {
7856
8090
  style: { width },
7857
8091
  "aria-hidden": ariaHidden,
7858
8092
  className: tw("flex justify-center snap-start")
@@ -7860,10 +8094,10 @@ var CarouselItem = ({ width, children, ariaHidden }) => {
7860
8094
  };
7861
8095
 
7862
8096
  // src/molecules/Checkbox/Checkbox.tsx
7863
- import React35 from "react";
8097
+ import React36 from "react";
7864
8098
 
7865
8099
  // src/molecules/ControlLabel/ControlLabel.tsx
7866
- import React33 from "react";
8100
+ import React34 from "react";
7867
8101
  var ControlLabel = (_a) => {
7868
8102
  var _b = _a, {
7869
8103
  label,
@@ -7886,10 +8120,10 @@ var ControlLabel = (_a) => {
7886
8120
  ]);
7887
8121
  const textClass = disabled ? "text-grey-40" : "text-grey-70";
7888
8122
  const rtl = labelPlacement === "left";
7889
- const labelEl = label && /* @__PURE__ */ React33.createElement("span", {
8123
+ const labelEl = label && /* @__PURE__ */ React34.createElement("span", {
7890
8124
  className: tw("typography-small self-center", { "text-right": rtl })
7891
8125
  }, label);
7892
- return /* @__PURE__ */ React33.createElement("label", __spreadValues({
8126
+ return /* @__PURE__ */ React34.createElement("label", __spreadValues({
7893
8127
  className: classNames(
7894
8128
  className,
7895
8129
  tw(
@@ -7904,7 +8138,7 @@ var ControlLabel = (_a) => {
7904
8138
  )
7905
8139
  ),
7906
8140
  style: __spreadValues({}, style)
7907
- }, 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, {
7908
8142
  className: tw({ "col-start-2": !rtl }),
7909
8143
  variant: "caption",
7910
8144
  color: disabled ? "grey-40" : "grey-50"
@@ -7912,18 +8146,18 @@ var ControlLabel = (_a) => {
7912
8146
  };
7913
8147
 
7914
8148
  // src/atoms/Checkbox/Checkbox.tsx
7915
- import React34 from "react";
8149
+ import React35 from "react";
7916
8150
  var import_minus2 = __toESM(require_minus());
7917
8151
  var import_tick3 = __toESM(require_tick());
7918
- var Checkbox = React34.forwardRef(
8152
+ var Checkbox = React35.forwardRef(
7919
8153
  (_a, ref) => {
7920
8154
  var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
7921
- return /* @__PURE__ */ React34.createElement("span", {
8155
+ return /* @__PURE__ */ React35.createElement("span", {
7922
8156
  className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
7923
8157
  "hover:border-grey-50 peer-checked:border-primary-80": !disabled,
7924
8158
  "border-grey-5": disabled
7925
8159
  })
7926
- }, /* @__PURE__ */ React34.createElement("input", __spreadProps(__spreadValues({
8160
+ }, /* @__PURE__ */ React35.createElement("input", __spreadProps(__spreadValues({
7927
8161
  id,
7928
8162
  ref,
7929
8163
  type: "checkbox",
@@ -7937,7 +8171,7 @@ var Checkbox = React34.forwardRef(
7937
8171
  ),
7938
8172
  readOnly,
7939
8173
  disabled
7940
- })), /* @__PURE__ */ React34.createElement(Icon, {
8174
+ })), /* @__PURE__ */ React35.createElement(Icon, {
7941
8175
  icon: indeterminate ? import_minus2.default : import_tick3.default,
7942
8176
  strokeWidth: "2px",
7943
8177
  className: classNames(
@@ -7957,7 +8191,7 @@ var Checkbox = React34.forwardRef(
7957
8191
  );
7958
8192
 
7959
8193
  // src/molecules/Checkbox/Checkbox.tsx
7960
- var Checkbox2 = React35.forwardRef(
8194
+ var Checkbox2 = React36.forwardRef(
7961
8195
  (_a, ref) => {
7962
8196
  var _b = _a, {
7963
8197
  id,
@@ -7980,7 +8214,7 @@ var Checkbox2 = React35.forwardRef(
7980
8214
  ]);
7981
8215
  var _a2;
7982
8216
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
7983
- return !readOnly || isChecked ? /* @__PURE__ */ React35.createElement(ControlLabel, {
8217
+ return !readOnly || isChecked ? /* @__PURE__ */ React36.createElement(ControlLabel, {
7984
8218
  htmlFor: id,
7985
8219
  label: children,
7986
8220
  labelPlacement,
@@ -7990,7 +8224,7 @@ var Checkbox2 = React35.forwardRef(
7990
8224
  disabled,
7991
8225
  className: "Aquarium-Checkbox",
7992
8226
  style: { gap: "0 8px" }
7993
- }, !readOnly && /* @__PURE__ */ React35.createElement(Checkbox, __spreadProps(__spreadValues({
8227
+ }, !readOnly && /* @__PURE__ */ React36.createElement(Checkbox, __spreadProps(__spreadValues({
7994
8228
  id,
7995
8229
  ref,
7996
8230
  name
@@ -8001,12 +8235,12 @@ var Checkbox2 = React35.forwardRef(
8001
8235
  }
8002
8236
  );
8003
8237
  Checkbox2.displayName = "Checkbox";
8004
- var CheckboxSkeleton = () => /* @__PURE__ */ React35.createElement("div", {
8238
+ var CheckboxSkeleton = () => /* @__PURE__ */ React36.createElement("div", {
8005
8239
  className: tw("flex gap-3")
8006
- }, /* @__PURE__ */ React35.createElement(Skeleton, {
8240
+ }, /* @__PURE__ */ React36.createElement(Skeleton, {
8007
8241
  height: 20,
8008
8242
  width: 20
8009
- }), /* @__PURE__ */ React35.createElement(Skeleton, {
8243
+ }), /* @__PURE__ */ React36.createElement(Skeleton, {
8010
8244
  height: 20,
8011
8245
  width: 150
8012
8246
  }));
@@ -8014,14 +8248,14 @@ Checkbox2.Skeleton = CheckboxSkeleton;
8014
8248
  Checkbox2.Skeleton.displayName = "Checkbox.Skeleton";
8015
8249
 
8016
8250
  // src/molecules/CheckboxGroup/CheckboxGroup.tsx
8017
- import React42, { useState as useState3 } from "react";
8018
- import uniqueId from "lodash/uniqueId";
8251
+ import React43, { useState as useState3 } from "react";
8252
+ import { useId as useId2 } from "@react-aria/utils";
8019
8253
 
8020
8254
  // src/atoms/InputGroup/InputGroup.tsx
8021
- import React37 from "react";
8255
+ import React38 from "react";
8022
8256
 
8023
8257
  // src/molecules/Grid/Grid.tsx
8024
- import React36 from "react";
8258
+ import React37 from "react";
8025
8259
  import isEmpty from "lodash/isEmpty";
8026
8260
  import mapValues from "lodash/mapValues";
8027
8261
  import pick from "lodash/pick";
@@ -8072,14 +8306,14 @@ var GridItem = Tailwindify(
8072
8306
  gridRowEnd: rowEnd
8073
8307
  });
8074
8308
  const HtmlElement = htmlTag;
8075
- return /* @__PURE__ */ React36.createElement(HtmlElement, {
8309
+ return /* @__PURE__ */ React37.createElement(HtmlElement, {
8076
8310
  style: __spreadValues(__spreadValues({}, hookStyle), style),
8077
8311
  className
8078
8312
  }, children);
8079
8313
  }
8080
8314
  );
8081
8315
  var Grid = (props) => {
8082
- return /* @__PURE__ */ React36.createElement(GridComponent, __spreadValues({}, props));
8316
+ return /* @__PURE__ */ React37.createElement(GridComponent, __spreadValues({}, props));
8083
8317
  };
8084
8318
  var GridComponent = Tailwindify(
8085
8319
  ({
@@ -8133,12 +8367,13 @@ var GridComponent = Tailwindify(
8133
8367
  gridRowEnd: rowEnd
8134
8368
  });
8135
8369
  const HtmlElement = htmlTag;
8136
- return /* @__PURE__ */ React36.createElement(HtmlElement, {
8370
+ return /* @__PURE__ */ React37.createElement(HtmlElement, {
8137
8371
  style: __spreadValues(__spreadValues({}, hookStyle), style),
8138
8372
  className
8139
8373
  }, children);
8140
8374
  }
8141
8375
  );
8376
+ Grid.displayName = "Grid";
8142
8377
  Grid.Item = GridItem;
8143
8378
  Grid.Item.displayName = "Grid.Item";
8144
8379
 
@@ -8151,7 +8386,7 @@ var gridColumnStyles = {
8151
8386
  };
8152
8387
  var InputGroup = (_a) => {
8153
8388
  var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
8154
- return /* @__PURE__ */ React37.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
8389
+ return /* @__PURE__ */ React38.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
8155
8390
  display: "inline-grid",
8156
8391
  colGap: "l4",
8157
8392
  rowGap: "3",
@@ -8161,12 +8396,12 @@ var InputGroup = (_a) => {
8161
8396
  };
8162
8397
 
8163
8398
  // src/utils/form/Label/Label.tsx
8164
- import React41 from "react";
8399
+ import React42 from "react";
8165
8400
 
8166
8401
  // src/utils/form/FormControl/FormControl.tsx
8167
- import React38 from "react";
8402
+ import React39 from "react";
8168
8403
  var FormControl = ({ className, inline, children }) => {
8169
- return /* @__PURE__ */ React38.createElement(Flexbox, {
8404
+ return /* @__PURE__ */ React39.createElement(Flexbox, {
8170
8405
  direction: "column",
8171
8406
  display: inline ? "inline-flex" : "flex",
8172
8407
  className
@@ -8174,14 +8409,14 @@ var FormControl = ({ className, inline, children }) => {
8174
8409
  };
8175
8410
 
8176
8411
  // src/utils/form/HelperText/HelperText.tsx
8177
- import React40 from "react";
8412
+ import React41 from "react";
8178
8413
  import classNames6 from "classnames";
8179
8414
  import isNumber4 from "lodash/isNumber";
8180
8415
 
8181
8416
  // src/utils/form/CharCounter/CharCounter.tsx
8182
- import React39 from "react";
8417
+ import React40 from "react";
8183
8418
  var CharCounter = ({ dense = true, length, maxLength, valid = true }) => {
8184
- return /* @__PURE__ */ React39.createElement("span", {
8419
+ return /* @__PURE__ */ React40.createElement("span", {
8185
8420
  className: tw(
8186
8421
  `whitespace-nowrap`,
8187
8422
  valid ? "text-grey-50" : "text-error-70",
@@ -8203,34 +8438,34 @@ var HelperText = ({
8203
8438
  const hasMaxLength = isNumber4(maxLength) && maxLength > 0;
8204
8439
  const showMessage = hasError || hasMaxLength;
8205
8440
  if (!showMessage) {
8206
- return reserveSpaceForError ? /* @__PURE__ */ React40.createElement("p", {
8441
+ return reserveSpaceForError ? /* @__PURE__ */ React41.createElement("p", {
8207
8442
  className: tw("block mt-1 mb-3 typography-caption")
8208
8443
  }, "\xA0") : null;
8209
8444
  }
8210
- return /* @__PURE__ */ React40.createElement(Grid, {
8445
+ return /* @__PURE__ */ React41.createElement(Grid, {
8211
8446
  cols: "1",
8212
8447
  rows: "1",
8213
8448
  colGap: "3",
8214
8449
  alignItems: "start",
8215
8450
  autoCols: "min",
8216
8451
  className: tw("mt-1 mb-3")
8217
- }, /* @__PURE__ */ React40.createElement(GridItem2, {
8452
+ }, /* @__PURE__ */ React41.createElement(GridItem2, {
8218
8453
  colStart: "1",
8219
8454
  colEnd: "2"
8220
- }, hasError && /* @__PURE__ */ React40.createElement("p", {
8455
+ }, hasError && /* @__PURE__ */ React41.createElement("p", {
8221
8456
  id: messageId,
8222
8457
  className: tw("text-error-50 block typography-caption")
8223
- }, helperText)), /* @__PURE__ */ React40.createElement(GridItem2, {
8458
+ }, helperText)), /* @__PURE__ */ React41.createElement(GridItem2, {
8224
8459
  colStart: "2",
8225
8460
  colEnd: "3",
8226
8461
  display: "flex"
8227
- }, isNumber4(length) && hasMaxLength && /* @__PURE__ */ React40.createElement(CharCounter, {
8462
+ }, isNumber4(length) && hasMaxLength && /* @__PURE__ */ React41.createElement(CharCounter, {
8228
8463
  length,
8229
8464
  maxLength,
8230
8465
  valid: !error2
8231
8466
  })));
8232
8467
  };
8233
- var Skeleton2 = ({ className, children }) => /* @__PURE__ */ React40.createElement("div", {
8468
+ var Skeleton2 = ({ className, children }) => /* @__PURE__ */ React41.createElement("div", {
8234
8469
  className: classNames6(className, "h-[25px]")
8235
8470
  }, children);
8236
8471
  HelperText.Skeleton = Skeleton2;
@@ -8246,40 +8481,40 @@ var LabelText = ({
8246
8481
  helpTooltipPlacement,
8247
8482
  description
8248
8483
  }) => {
8249
- return /* @__PURE__ */ React41.createElement("span", {
8484
+ return /* @__PURE__ */ React42.createElement("span", {
8250
8485
  className: tw("block mb-2")
8251
- }, /* @__PURE__ */ React41.createElement("span", {
8486
+ }, /* @__PURE__ */ React42.createElement("span", {
8252
8487
  className: tw("inline-flex items-center typography-small-strong", {
8253
8488
  "text-grey-70": variant === "default",
8254
8489
  "text-error-50": variant === "error",
8255
8490
  "text-grey-40": variant === "disabled"
8256
8491
  })
8257
- }, labelText, required && /* @__PURE__ */ React41.createElement("span", {
8492
+ }, labelText, required && /* @__PURE__ */ React42.createElement("span", {
8258
8493
  className: tw("text-error-50")
8259
- }, "*"), helpTooltip && /* @__PURE__ */ React41.createElement(Tooltip, {
8494
+ }, "*"), helpTooltip && /* @__PURE__ */ React42.createElement(Tooltip, {
8260
8495
  content: helpTooltip,
8261
8496
  placement: helpTooltipPlacement
8262
- }, /* @__PURE__ */ React41.createElement("span", {
8497
+ }, /* @__PURE__ */ React42.createElement("span", {
8263
8498
  tabIndex: 0,
8264
8499
  className: tw("text-grey-40 flex items-center cursor-pointer ml-2")
8265
- }, /* @__PURE__ */ React41.createElement(InlineIcon, {
8500
+ }, /* @__PURE__ */ React42.createElement(InlineIcon, {
8266
8501
  icon: import_questionMark2.default,
8267
8502
  "data-testid": "icon-info"
8268
- })))), description && /* @__PURE__ */ React41.createElement("span", {
8503
+ })))), description && /* @__PURE__ */ React42.createElement("span", {
8269
8504
  className: tw("block text-grey-50 typography-caption mt-1")
8270
8505
  }, description));
8271
8506
  };
8272
8507
  var Label = (props) => {
8273
8508
  const _a = props, { id, htmlFor, labelText, labelProps: _b = {} } = _a, labelProps = __objRest(_b, []), { "data-testid": dataTestid, children } = _a;
8274
- return /* @__PURE__ */ React41.createElement("label", __spreadValues({
8509
+ return /* @__PURE__ */ React42.createElement("label", __spreadValues({
8275
8510
  id,
8276
8511
  className: tw("w-full"),
8277
8512
  "data-testid": dataTestid,
8278
8513
  htmlFor
8279
- }, labelProps), labelText && /* @__PURE__ */ React41.createElement(LabelText, __spreadValues({}, props)), children);
8514
+ }, labelProps), labelText && /* @__PURE__ */ React42.createElement(LabelText, __spreadValues({}, props)), children);
8280
8515
  };
8281
8516
  var LabelSkeleton = () => {
8282
- return /* @__PURE__ */ React41.createElement(Skeleton, {
8517
+ return /* @__PURE__ */ React42.createElement(Skeleton, {
8283
8518
  height: 20,
8284
8519
  width: 100,
8285
8520
  className: tw("mb-[7px]")
@@ -8314,17 +8549,17 @@ var LabelControl = (_a) => {
8314
8549
  ]);
8315
8550
  const legacyError = error2 !== void 0 && valid === false;
8316
8551
  const variant = !valid || legacyError ? "error" : disabled ? "disabled" : "default";
8317
- return /* @__PURE__ */ React41.createElement(FormControl, {
8552
+ return /* @__PURE__ */ React42.createElement(FormControl, {
8318
8553
  className
8319
- }, !fieldset && /* @__PURE__ */ React41.createElement(Label, __spreadProps(__spreadValues({}, rest), {
8554
+ }, !fieldset && /* @__PURE__ */ React42.createElement(Label, __spreadProps(__spreadValues({}, rest), {
8320
8555
  variant
8321
- }), children), fieldset && /* @__PURE__ */ React41.createElement("fieldset", {
8556
+ }), children), fieldset && /* @__PURE__ */ React42.createElement("fieldset", {
8322
8557
  id: rest.id
8323
- }, /* @__PURE__ */ React41.createElement("legend", {
8558
+ }, /* @__PURE__ */ React42.createElement("legend", {
8324
8559
  className: tw("w-full mb-2")
8325
- }, /* @__PURE__ */ React41.createElement(LabelText, __spreadProps(__spreadValues({}, rest), {
8560
+ }, /* @__PURE__ */ React42.createElement(LabelText, __spreadProps(__spreadValues({}, rest), {
8326
8561
  variant
8327
- }))), children), /* @__PURE__ */ React41.createElement(HelperText, {
8562
+ }))), children), /* @__PURE__ */ React42.createElement(HelperText, {
8328
8563
  messageId,
8329
8564
  error: !valid,
8330
8565
  helperText,
@@ -8333,7 +8568,7 @@ var LabelControl = (_a) => {
8333
8568
  reserveSpaceForError
8334
8569
  }));
8335
8570
  };
8336
- 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));
8337
8572
  LabelControl.Skeleton = LabelControlSkeleton;
8338
8573
  var getLabelControlProps = (_a) => {
8339
8574
  var _b = _a, {
@@ -8371,7 +8606,7 @@ var getLabelControlProps = (_a) => {
8371
8606
 
8372
8607
  // src/molecules/CheckboxGroup/CheckboxGroup.tsx
8373
8608
  var isCheckbox = (c) => {
8374
- return React42.isValidElement(c) && c.type === Checkbox2;
8609
+ return React43.isValidElement(c) && c.type === Checkbox2;
8375
8610
  };
8376
8611
  var CheckboxGroup = (_a) => {
8377
8612
  var _b = _a, {
@@ -8394,7 +8629,7 @@ var CheckboxGroup = (_a) => {
8394
8629
  if (value !== void 0 && value !== selectedItems) {
8395
8630
  setSelectedItems(value);
8396
8631
  }
8397
- const errorMessageId = uniqueId();
8632
+ const errorMessageId = useId2();
8398
8633
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8399
8634
  const labelControlProps = getLabelControlProps(props);
8400
8635
  const handleChange = (e) => {
@@ -8403,13 +8638,13 @@ var CheckboxGroup = (_a) => {
8403
8638
  setSelectedItems(updated);
8404
8639
  onChange == null ? void 0 : onChange(updated);
8405
8640
  };
8406
- return /* @__PURE__ */ React42.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
8641
+ return /* @__PURE__ */ React43.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
8407
8642
  fieldset: true
8408
8643
  }, labelControlProps), errorProps), {
8409
8644
  className: "Aquarium-CheckboxGroup"
8410
- }), /* @__PURE__ */ React42.createElement(InputGroup, {
8645
+ }), /* @__PURE__ */ React43.createElement(InputGroup, {
8411
8646
  cols
8412
- }, React42.Children.map(children, (c) => {
8647
+ }, React43.Children.map(children, (c) => {
8413
8648
  var _a3, _b2;
8414
8649
  if (!isCheckbox(c)) {
8415
8650
  return null;
@@ -8417,7 +8652,7 @@ var CheckboxGroup = (_a) => {
8417
8652
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
8418
8653
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
8419
8654
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
8420
- return React42.cloneElement(c, {
8655
+ return React43.cloneElement(c, {
8421
8656
  defaultChecked,
8422
8657
  checked,
8423
8658
  onChange: (_b2 = c.props.onChange) != null ? _b2 : handleChange,
@@ -8427,9 +8662,9 @@ var CheckboxGroup = (_a) => {
8427
8662
  })));
8428
8663
  };
8429
8664
  var CheckboxGroupSkeleton = ({ options = 2 }) => {
8430
- return /* @__PURE__ */ React42.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React42.createElement("div", {
8665
+ return /* @__PURE__ */ React43.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React43.createElement("div", {
8431
8666
  className: tw("flex flex-wrap flex-col gap-2")
8432
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React42.createElement(Checkbox2.Skeleton, {
8667
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React43.createElement(Checkbox2.Skeleton, {
8433
8668
  key
8434
8669
  }))));
8435
8670
  };
@@ -8437,7 +8672,7 @@ CheckboxGroup.Skeleton = CheckboxGroupSkeleton;
8437
8672
  CheckboxGroup.Skeleton.displayName = "CheckboxGroup.Skeleton";
8438
8673
 
8439
8674
  // src/molecules/ChoiceChip/ChoiceChip.tsx
8440
- import React43, { useState as useState4 } from "react";
8675
+ import React44, { useState as useState4 } from "react";
8441
8676
  var ChoiceChip = (_a) => {
8442
8677
  var _b = _a, { text, dense, defaultValue, value, onChange } = _b, rest = __objRest(_b, ["text", "dense", "defaultValue", "value", "onChange"]);
8443
8678
  var _a2;
@@ -8451,7 +8686,7 @@ var ChoiceChip = (_a) => {
8451
8686
  setSelected(!selected);
8452
8687
  onChange == null ? void 0 : onChange(!selected);
8453
8688
  };
8454
- return /* @__PURE__ */ React43.createElement("span", __spreadProps(__spreadValues({
8689
+ return /* @__PURE__ */ React44.createElement("span", __spreadProps(__spreadValues({
8455
8690
  role: "button",
8456
8691
  "aria-pressed": selected
8457
8692
  }, rest), {
@@ -8469,22 +8704,22 @@ var ChoiceChip = (_a) => {
8469
8704
  };
8470
8705
 
8471
8706
  // src/molecules/Combobox/Combobox.tsx
8472
- 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";
8473
8708
  import { ariaHideOutside } from "@react-aria/overlays";
8709
+ import { useId as useId3 } from "@react-aria/utils";
8474
8710
  import { useCombobox } from "downshift";
8475
- import omit5 from "lodash/omit";
8476
- import uniqueId2 from "lodash/uniqueId";
8711
+ import omit4 from "lodash/omit";
8477
8712
  import { matchSorter } from "match-sorter";
8478
8713
 
8479
8714
  // src/molecules/Popover/PopoverOverlay.tsx
8480
- import React45, { useEffect as useEffect5 } from "react";
8715
+ import React46, { useEffect as useEffect5 } from "react";
8481
8716
  import { DismissButton, Overlay, usePopover } from "@react-aria/overlays";
8482
8717
 
8483
8718
  // src/atoms/Popover/Popover.tsx
8484
- import React44 from "react";
8485
- var PopoverPanel = React44.forwardRef((_a, ref) => {
8719
+ import React45 from "react";
8720
+ var PopoverPanel = React45.forwardRef((_a, ref) => {
8486
8721
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
8487
- return /* @__PURE__ */ React44.createElement("div", __spreadValues({
8722
+ return /* @__PURE__ */ React45.createElement("div", __spreadValues({
8488
8723
  ref,
8489
8724
  className: classNames(
8490
8725
  className,
@@ -8493,7 +8728,7 @@ var PopoverPanel = React44.forwardRef((_a, ref) => {
8493
8728
  }, props), children);
8494
8729
  });
8495
8730
  PopoverPanel.displayName = "Popover.Panel";
8496
- 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({
8497
8732
  ref
8498
8733
  }, props), {
8499
8734
  className: tw("fixed inset-0")
@@ -8505,12 +8740,12 @@ var Popover = {
8505
8740
  };
8506
8741
 
8507
8742
  // src/molecules/Popover/PopoverOverlay.tsx
8508
- var PopoverOverlay = React45.forwardRef((props, ref) => {
8509
- 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({
8510
8745
  ref
8511
8746
  }, props)));
8512
8747
  });
8513
- var Wrapper = React45.forwardRef(
8748
+ var Wrapper = React46.forwardRef(
8514
8749
  (_a, ref) => {
8515
8750
  var _b = _a, {
8516
8751
  id,
@@ -8539,8 +8774,8 @@ var Wrapper = React45.forwardRef(
8539
8774
  "children",
8540
8775
  "popoverRef"
8541
8776
  ]);
8542
- const popoverRef = React45.useRef(null);
8543
- React45.useImperativeHandle(ref, () => popoverRef.current);
8777
+ const popoverRef = React46.useRef(null);
8778
+ React46.useImperativeHandle(ref, () => popoverRef.current);
8544
8779
  useEffect5(() => {
8545
8780
  if (autoFocus && popoverRef.current) {
8546
8781
  popoverRef.current.focus();
@@ -8554,7 +8789,7 @@ var Wrapper = React45.forwardRef(
8554
8789
  }),
8555
8790
  state
8556
8791
  );
8557
- 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({
8558
8793
  ref: popoverRef,
8559
8794
  tabIndex: focusable ? 0 : -1,
8560
8795
  role: role != null ? role : "presentation"
@@ -8562,7 +8797,7 @@ var Wrapper = React45.forwardRef(
8562
8797
  id: id != null ? id : popoverProps.id,
8563
8798
  style: __spreadValues(__spreadValues({}, popoverProps.style), style),
8564
8799
  className
8565
- }), children, /* @__PURE__ */ React45.createElement(DismissButton, {
8800
+ }), children, /* @__PURE__ */ React46.createElement(DismissButton, {
8566
8801
  onDismiss: state.close
8567
8802
  })));
8568
8803
  }
@@ -8674,12 +8909,12 @@ var ComboboxBase = (_a) => {
8674
8909
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
8675
8910
  const inputProps = getInputProps({ ref: inputRef, disabled: disabled || readOnly });
8676
8911
  const hasNoResults = options.length === 0 || inputItems.length === 0;
8677
- return /* @__PURE__ */ React46.createElement("div", {
8912
+ return /* @__PURE__ */ React47.createElement("div", {
8678
8913
  className: classNames("Aquarium-ComboboxBase", tw("relative"))
8679
- }, /* @__PURE__ */ React46.createElement(Select.InputContainer, {
8914
+ }, /* @__PURE__ */ React47.createElement(Select.InputContainer, {
8680
8915
  ref: targetRef,
8681
8916
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
8682
- }, /* @__PURE__ */ React46.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
8917
+ }, /* @__PURE__ */ React47.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
8683
8918
  id,
8684
8919
  ref: inputRef,
8685
8920
  name,
@@ -8702,10 +8937,10 @@ var ComboboxBase = (_a) => {
8702
8937
  (_a3 = inputProps.onKeyDown) == null ? void 0 : _a3.call(inputProps, e);
8703
8938
  },
8704
8939
  onKeyUp: (e) => e.stopPropagation()
8705
- })), !readOnly && /* @__PURE__ */ React46.createElement(Select.Toggle, __spreadValues({
8940
+ })), !readOnly && /* @__PURE__ */ React47.createElement(Select.Toggle, __spreadValues({
8706
8941
  hasFocus,
8707
8942
  isOpen
8708
- }, getToggleButtonProps({ disabled })))), isOpen && /* @__PURE__ */ React46.createElement(PopoverOverlay, {
8943
+ }, getToggleButtonProps({ disabled })))), isOpen && /* @__PURE__ */ React47.createElement(PopoverOverlay, {
8709
8944
  ref: popoverRef,
8710
8945
  triggerRef: targetRef,
8711
8946
  state,
@@ -8713,16 +8948,16 @@ var ComboboxBase = (_a) => {
8713
8948
  shouldFlip: true,
8714
8949
  isNonModal: true,
8715
8950
  style: { width: (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth }
8716
- }, /* @__PURE__ */ React46.createElement(Select.Menu, __spreadValues({
8951
+ }, /* @__PURE__ */ React47.createElement(Select.Menu, __spreadValues({
8717
8952
  ref: menuRef,
8718
8953
  maxHeight
8719
- }, 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({
8720
8955
  key: itemToString(item),
8721
8956
  selected: item === selectedItem,
8722
8957
  highlighted: index === highlightedIndex
8723
8958
  }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
8724
8959
  };
8725
- var ComboboxBaseSkeleton = () => /* @__PURE__ */ React46.createElement(Skeleton, {
8960
+ var ComboboxBaseSkeleton = () => /* @__PURE__ */ React47.createElement(Skeleton, {
8726
8961
  height: 38
8727
8962
  });
8728
8963
  ComboboxBase.Skeleton = ComboboxBaseSkeleton;
@@ -8737,32 +8972,33 @@ var Combobox = (_a) => {
8737
8972
  "emptyState"
8738
8973
  ]);
8739
8974
  var _a2;
8740
- const id = useRef5((_a2 = props.id) != null ? _a2 : `combobox-${uniqueId2()}`);
8741
- const errorMessageId = uniqueId2();
8975
+ const defaultId = useId3();
8976
+ const id = (_a2 = props.id) != null ? _a2 : defaultId;
8977
+ const errorMessageId = useId3();
8742
8978
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8743
8979
  const labelControlProps = getLabelControlProps(props);
8744
- const baseProps = omit5(props, Object.keys(labelControlProps));
8745
- return /* @__PURE__ */ React46.createElement(LabelControl, __spreadProps(__spreadValues({
8746
- id: `${id.current}-label`,
8747
- 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`,
8748
8984
  messageId: errorMessageId
8749
8985
  }, labelControlProps), {
8750
8986
  className: "Aquarium-Combobox"
8751
- }), /* @__PURE__ */ React46.createElement(ComboboxBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
8752
- id: id.current,
8987
+ }), /* @__PURE__ */ React47.createElement(ComboboxBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
8988
+ id,
8753
8989
  options,
8754
8990
  emptyState,
8755
8991
  disabled: props.disabled,
8756
8992
  valid: props.valid
8757
8993
  })));
8758
8994
  };
8759
- 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));
8760
8996
  Combobox.Skeleton = ComboboxSkeleton;
8761
8997
  Combobox.Skeleton.displayName = "Combobox.Skeleton";
8762
8998
 
8763
8999
  // src/molecules/Container/Container.tsx
8764
- import React47 from "react";
8765
- var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React47.createElement(Box, {
9000
+ import React48 from "react";
9001
+ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React48.createElement(Box, {
8766
9002
  marginLeft: "auto",
8767
9003
  marginRight: "auto",
8768
9004
  width: "full",
@@ -8777,13 +9013,13 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React47.crea
8777
9013
  }, children);
8778
9014
 
8779
9015
  // src/molecules/DataList/DataList.tsx
8780
- import React64 from "react";
9016
+ import React65 from "react";
8781
9017
  import compact from "lodash/compact";
8782
9018
  import groupBy2 from "lodash/groupBy";
8783
9019
  import isFunction from "lodash/isFunction";
8784
9020
 
8785
9021
  // src/molecules/DropdownMenu/DropdownMenu.tsx
8786
- import React51 from "react";
9022
+ import React52 from "react";
8787
9023
  import { useFilter } from "@react-aria/i18n";
8788
9024
  import { PressResponder, usePress } from "@react-aria/interactions";
8789
9025
  import { useMenu, useMenuItem, useMenuSection, useMenuTrigger } from "@react-aria/menu";
@@ -8792,39 +9028,40 @@ import { mergeProps as mergeProps2 } from "@react-aria/utils";
8792
9028
  import { Item as Item3, Section } from "@react-stately/collections";
8793
9029
  import { useMenuTriggerState } from "@react-stately/menu";
8794
9030
  import { useTreeState } from "@react-stately/tree";
9031
+ import omit6 from "lodash/omit";
8795
9032
 
8796
9033
  // src/molecules/Input/Input.tsx
8797
- import React49, { forwardRef, useImperativeHandle, useRef as useRef6, useState as useState6 } from "react";
8798
- 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";
8799
9037
  import toString from "lodash/toString";
8800
- import uniqueId3 from "lodash/uniqueId";
8801
9038
 
8802
9039
  // src/utils/form/InputAdornment/InputAdornment.tsx
8803
- import React48 from "react";
9040
+ import React49 from "react";
8804
9041
  var import_cross5 = __toESM(require_cross());
8805
9042
  var import_error3 = __toESM(require_error());
8806
9043
  var import_search3 = __toESM(require_search());
8807
9044
  var import_tick4 = __toESM(require_tick());
8808
9045
  var InputAdornment = ({ placement = "right", className, dense, children }) => {
8809
- return /* @__PURE__ */ React48.createElement("span", {
9046
+ return /* @__PURE__ */ React49.createElement("span", {
8810
9047
  className: classNames(className, "absolute inset-y-0 grow-0 text-grey-40 flex items-center mx-3", {
8811
9048
  "right-0": placement === "right",
8812
9049
  "left-0": placement === "left",
8813
9050
  "typography-small": dense,
8814
9051
  "typography-default-strong": !dense
8815
9052
  })
8816
- }, /* @__PURE__ */ React48.createElement(Flexbox, {
9053
+ }, /* @__PURE__ */ React49.createElement(Flexbox, {
8817
9054
  gap: "3",
8818
9055
  wrap: "wrap"
8819
9056
  }, children));
8820
9057
  };
8821
- var SearchIcon = ({ onClick }) => /* @__PURE__ */ React48.createElement(Icon, {
9058
+ var SearchIcon = ({ onClick }) => /* @__PURE__ */ React49.createElement(Icon, {
8822
9059
  icon: import_search3.default,
8823
9060
  color: "grey-30",
8824
9061
  "data-testid": "icon-search",
8825
9062
  onClick
8826
9063
  });
8827
- var ResetIcon = ({ onClick }) => /* @__PURE__ */ React48.createElement(Icon, {
9064
+ var ResetIcon = ({ onClick }) => /* @__PURE__ */ React49.createElement(Icon, {
8828
9065
  className: "hover:cursor-pointer",
8829
9066
  icon: import_cross5.default,
8830
9067
  color: "grey-30",
@@ -8854,7 +9091,7 @@ var createInput = (displayName, opts = {}) => {
8854
9091
  "readOnly"
8855
9092
  ]);
8856
9093
  var _a2;
8857
- const inputRef = React49.useRef(null);
9094
+ const inputRef = React50.useRef(null);
8858
9095
  useImperativeHandle(ref, () => inputRef.current);
8859
9096
  const handleReset = () => {
8860
9097
  var _a3;
@@ -8867,11 +9104,11 @@ var createInput = (displayName, opts = {}) => {
8867
9104
  el.focus();
8868
9105
  }
8869
9106
  };
8870
- return /* @__PURE__ */ React49.createElement("span", {
9107
+ return /* @__PURE__ */ React50.createElement("span", {
8871
9108
  className: classNames("Aquarium-InputBase", tw("relative block"))
8872
- }, opts.adornment && /* @__PURE__ */ React49.createElement(InputAdornment, {
9109
+ }, opts.adornment && /* @__PURE__ */ React50.createElement(InputAdornment, {
8873
9110
  placement: "left"
8874
- }, opts.adornment), /* @__PURE__ */ React49.createElement("input", __spreadProps(__spreadValues({
9111
+ }, opts.adornment), /* @__PURE__ */ React50.createElement("input", __spreadProps(__spreadValues({
8875
9112
  ref: inputRef,
8876
9113
  type
8877
9114
  }, props), {
@@ -8887,40 +9124,41 @@ var createInput = (displayName, opts = {}) => {
8887
9124
  getCommonInputStyles({ readOnly, valid }),
8888
9125
  props.className
8889
9126
  )
8890
- })), 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", {
8891
9128
  "aria-label": "reset search",
8892
9129
  onClick: handleReset
8893
- }, /* @__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));
8894
9131
  }
8895
9132
  );
8896
9133
  InputComponent.displayName = displayName;
8897
- InputComponent.Skeleton = () => /* @__PURE__ */ React49.createElement(Skeleton, {
9134
+ InputComponent.Skeleton = () => /* @__PURE__ */ React50.createElement(Skeleton, {
8898
9135
  height: 38
8899
9136
  });
8900
9137
  return InputComponent;
8901
9138
  };
8902
9139
  var InputBase = createInput("InputBase");
8903
- var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React49.createElement(SearchIcon, null), canReset: true });
8904
- 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) => {
8905
9142
  var _b = _a, { readOnly = false } = _b, props = __objRest(_b, ["readOnly"]);
8906
9143
  var _a2, _b2, _c;
8907
9144
  const [value, setValue] = useState6((_b2 = (_a2 = props.value) != null ? _a2 : props.defaultValue) != null ? _b2 : "");
8908
- const id = useRef6((_c = props.id) != null ? _c : `input-${uniqueId3()}`);
8909
- const errorMessageId = uniqueId3();
9145
+ const defaultId = useId4();
9146
+ const id = (_c = props.id) != null ? _c : defaultId;
9147
+ const errorMessageId = useId4();
8910
9148
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8911
9149
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
8912
- const baseProps = omit6(props, Object.keys(labelControlProps));
8913
- return /* @__PURE__ */ React49.createElement(LabelControl, __spreadProps(__spreadValues({
8914
- id: `${id.current}-label`,
8915
- 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,
8916
9154
  messageId: errorMessageId,
8917
9155
  length: value !== void 0 ? toString(value).length : void 0
8918
9156
  }, labelControlProps), {
8919
9157
  className: "Aquarium-Input"
8920
- }), /* @__PURE__ */ React49.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
9158
+ }), /* @__PURE__ */ React50.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
8921
9159
  ref
8922
9160
  }, baseProps), errorProps), {
8923
- id: id.current,
9161
+ id,
8924
9162
  "data-testid": dataTestId,
8925
9163
  onChange: (e) => {
8926
9164
  var _a3;
@@ -8935,42 +9173,42 @@ var Input2 = React49.forwardRef((_a, ref) => {
8935
9173
  })));
8936
9174
  });
8937
9175
  Input2.displayName = "Input";
8938
- 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));
8939
9177
  Input2.Skeleton.displayName = "Input.Skeleton";
8940
9178
 
8941
9179
  // src/atoms/DropdownMenu/DropdownMenu.tsx
8942
- import React50 from "react";
9180
+ import React51 from "react";
8943
9181
  var import_tick5 = __toESM(require_tick());
8944
- var DropdownMenu = React50.forwardRef(
9182
+ var DropdownMenu = React51.forwardRef(
8945
9183
  (_a, ref) => {
8946
9184
  var _b = _a, { maxHeight = "450px", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["maxHeight", "minWidth", "maxWidth", "className", "children"]);
8947
- return /* @__PURE__ */ React50.createElement("div", __spreadValues({
9185
+ return /* @__PURE__ */ React51.createElement("div", __spreadValues({
8948
9186
  ref,
8949
9187
  style: { maxHeight, minWidth, maxWidth },
8950
9188
  className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-grey-70")
8951
9189
  }, props), children);
8952
9190
  }
8953
9191
  );
8954
- var ContentContainer = ({ children }) => /* @__PURE__ */ React50.createElement("div", {
9192
+ var ContentContainer = ({ children }) => /* @__PURE__ */ React51.createElement("div", {
8955
9193
  className: tw("p-3 overflow-y-auto overflow-x-hidden")
8956
9194
  }, children);
8957
9195
  DropdownMenu.ContentContainer = ContentContainer;
8958
- var List = React50.forwardRef(
9196
+ var List = React51.forwardRef(
8959
9197
  (_a, ref) => {
8960
9198
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
8961
- return /* @__PURE__ */ React50.createElement("ul", __spreadValues({
9199
+ return /* @__PURE__ */ React51.createElement("ul", __spreadValues({
8962
9200
  ref,
8963
9201
  className: classNames(className, "outline-none ring-0")
8964
9202
  }, props), children);
8965
9203
  }
8966
9204
  );
8967
9205
  DropdownMenu.List = List;
8968
- var Group2 = React50.forwardRef(
9206
+ var Group2 = React51.forwardRef(
8969
9207
  (_a, ref) => {
8970
9208
  var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
8971
- return /* @__PURE__ */ React50.createElement("li", __spreadValues({
9209
+ return /* @__PURE__ */ React51.createElement("li", __spreadValues({
8972
9210
  ref
8973
- }, props), title && /* @__PURE__ */ React50.createElement("div", __spreadValues({
9211
+ }, props), title && /* @__PURE__ */ React51.createElement("div", __spreadValues({
8974
9212
  className: classNames(className, "p-3 text-grey-40 uppercase cursor-default typography-caption", {
8975
9213
  "text-grey-20": props.disabled
8976
9214
  })
@@ -8978,10 +9216,10 @@ var Group2 = React50.forwardRef(
8978
9216
  }
8979
9217
  );
8980
9218
  DropdownMenu.Group = Group2;
8981
- var Item2 = React50.forwardRef(
9219
+ var Item2 = React51.forwardRef(
8982
9220
  (_a, ref) => {
8983
9221
  var _b = _a, { kind, highlighted, selected, className, icon, showNotification = false, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "showNotification", "children"]);
8984
- return /* @__PURE__ */ React50.createElement("li", __spreadValues({
9222
+ return /* @__PURE__ */ React51.createElement("li", __spreadValues({
8985
9223
  ref,
8986
9224
  className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
8987
9225
  "cursor-pointer hover:bg-grey-0": !props.disabled,
@@ -8989,32 +9227,32 @@ var Item2 = React50.forwardRef(
8989
9227
  "text-primary-80": kind === "action",
8990
9228
  "text-grey-20 cursor-not-allowed": props.disabled
8991
9229
  })
8992
- }, 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, {
8993
9231
  icon
8994
- })), icon && !showNotification && /* @__PURE__ */ React50.createElement(InlineIcon, {
9232
+ })), icon && !showNotification && /* @__PURE__ */ React51.createElement(InlineIcon, {
8995
9233
  icon
8996
- }), /* @__PURE__ */ React50.createElement("span", {
9234
+ }), /* @__PURE__ */ React51.createElement("span", {
8997
9235
  className: tw("grow")
8998
- }, children), selected && /* @__PURE__ */ React50.createElement(InlineIcon, {
9236
+ }, children), selected && /* @__PURE__ */ React51.createElement(InlineIcon, {
8999
9237
  icon: import_tick5.default
9000
9238
  }));
9001
9239
  }
9002
9240
  );
9003
9241
  DropdownMenu.Item = Item2;
9004
- var Description = ({ disabled, children }) => /* @__PURE__ */ React50.createElement(Typography2.Caption, {
9242
+ var Description = ({ disabled, children }) => /* @__PURE__ */ React51.createElement(Typography2.Caption, {
9005
9243
  color: disabled ? "grey-20" : "grey-40"
9006
9244
  }, children);
9007
9245
  DropdownMenu.Description = Description;
9008
9246
  var Separator = (_a) => {
9009
9247
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
9010
- return /* @__PURE__ */ React50.createElement("li", __spreadProps(__spreadValues({}, props), {
9248
+ return /* @__PURE__ */ React51.createElement("li", __spreadProps(__spreadValues({}, props), {
9011
9249
  className: classNames(className, tw("m-3 block bg-grey-5 h-[1px]"))
9012
9250
  }));
9013
9251
  };
9014
9252
  DropdownMenu.Separator = Separator;
9015
9253
  var EmptyStateContainer2 = (_a) => {
9016
9254
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
9017
- return /* @__PURE__ */ React50.createElement("div", __spreadValues({
9255
+ return /* @__PURE__ */ React51.createElement("div", __spreadValues({
9018
9256
  className: classNames(tw("border border-dashed border-grey-10 p-3"), className)
9019
9257
  }, props), children);
9020
9258
  };
@@ -9070,20 +9308,20 @@ var DropdownMenu2 = (_a) => {
9070
9308
  "footer",
9071
9309
  "children"
9072
9310
  ]);
9073
- const triggerRef = React51.useRef(null);
9311
+ const triggerRef = React52.useRef(null);
9074
9312
  const [trigger, items] = extractTriggerAndItems(children);
9075
9313
  const state = useMenuTriggerState(props);
9076
9314
  const { menuTriggerProps, menuProps } = useMenuTrigger({}, state, triggerRef);
9077
- return /* @__PURE__ */ React51.createElement("div", null, /* @__PURE__ */ React51.createElement(PressResponder, __spreadValues({
9315
+ return /* @__PURE__ */ React52.createElement("div", null, /* @__PURE__ */ React52.createElement(PressResponder, __spreadValues({
9078
9316
  ref: triggerRef,
9079
9317
  onPress: () => state.toggle()
9080
- }, 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, {
9081
9319
  className: "Aquarium-DropdownMenu",
9082
9320
  triggerRef,
9083
9321
  state,
9084
9322
  placement,
9085
9323
  focusable: false
9086
- }, /* @__PURE__ */ React51.createElement(MenuWrapper, __spreadValues({
9324
+ }, /* @__PURE__ */ React52.createElement(MenuWrapper, __spreadValues({
9087
9325
  onAction,
9088
9326
  selectionMode,
9089
9327
  selection,
@@ -9109,13 +9347,13 @@ DropdownMenu2.Section = Section;
9109
9347
  DropdownMenu2.Section.displayName = "DropdownMenu.Section";
9110
9348
  var TriggerWrapper = (_a) => {
9111
9349
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
9112
- const ref = React51.useRef(null);
9350
+ const ref = React52.useRef(null);
9113
9351
  const { pressProps } = usePress(__spreadProps(__spreadValues({}, props), { ref }));
9114
- const trigger = React51.Children.only(children);
9115
- if (!trigger || !React51.isValidElement(trigger)) {
9352
+ const trigger = React52.Children.only(children);
9353
+ if (!trigger || !React52.isValidElement(trigger)) {
9116
9354
  throw new Error("<DropdownMenu.Trigger> must have valid child");
9117
9355
  }
9118
- return React51.cloneElement(trigger, __spreadValues({ ref }, mergeProps2(pressProps, props)));
9356
+ return React52.cloneElement(trigger, __spreadValues({ ref }, mergeProps2(pressProps, props)));
9119
9357
  };
9120
9358
  var isSectionNode = (item) => item.type === "section";
9121
9359
  var isItemNode = (item) => item.type === "item";
@@ -9137,7 +9375,7 @@ var MenuWrapper = (_a) => {
9137
9375
  "header",
9138
9376
  "footer"
9139
9377
  ]);
9140
- const ref = React51.useRef(null);
9378
+ const ref = React52.useRef(null);
9141
9379
  const disabledKeys = getDisabledItemKeys(props.children);
9142
9380
  const state = useTreeState(__spreadValues({
9143
9381
  disabledKeys,
@@ -9145,30 +9383,30 @@ var MenuWrapper = (_a) => {
9145
9383
  }, props));
9146
9384
  const { menuProps } = useMenu(props, state, ref);
9147
9385
  const { contains } = useFilter({ sensitivity: "base" });
9148
- const [search, setSearch] = React51.useState("");
9149
- const filteredCollection = React51.useMemo(
9386
+ const [search, setSearch] = React52.useState("");
9387
+ const filteredCollection = React52.useMemo(
9150
9388
  () => searchable ? filterCollection(state.collection, search, contains) : state.collection,
9151
9389
  [searchable, state.collection, search, contains]
9152
9390
  );
9153
- return /* @__PURE__ */ React51.createElement(DropdownMenu, {
9391
+ return /* @__PURE__ */ React52.createElement(DropdownMenu, {
9154
9392
  minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
9155
9393
  maxWidth: maxWidth !== void 0 ? `${maxWidth}px` : void 0
9156
- }, 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, {
9157
9395
  "aria-label": "search",
9158
9396
  value: search,
9159
9397
  onChange: (e) => setSearch(e.target.value),
9160
9398
  className: tw("mb-5")
9161
- }), 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({
9162
9400
  ref
9163
9401
  }, menuProps), Array.from(filteredCollection).map((item) => {
9164
9402
  if (isSectionNode(item)) {
9165
- return /* @__PURE__ */ React51.createElement(SectionWrapper, {
9403
+ return /* @__PURE__ */ React52.createElement(SectionWrapper, {
9166
9404
  key: item.key,
9167
9405
  section: item,
9168
9406
  state
9169
9407
  });
9170
9408
  } else if (isItemNode(item)) {
9171
- return /* @__PURE__ */ React51.createElement(ItemWrapper, {
9409
+ return /* @__PURE__ */ React52.createElement(ItemWrapper, {
9172
9410
  key: item.key,
9173
9411
  item,
9174
9412
  state
@@ -9177,14 +9415,14 @@ var MenuWrapper = (_a) => {
9177
9415
  }))), footer);
9178
9416
  };
9179
9417
  var ItemWrapper = ({ item, state }) => {
9180
- const ref = React51.useRef(null);
9418
+ const ref = React52.useRef(null);
9181
9419
  const { menuItemProps, descriptionProps, isSelected, isFocused, isDisabled } = useMenuItem(
9182
9420
  { key: item.key, closeOnSelect: item.props.closeOnSelect },
9183
9421
  state,
9184
9422
  ref
9185
9423
  );
9186
9424
  const { icon, description, kind = "default", showNotification = false } = item.props;
9187
- return /* @__PURE__ */ React51.createElement(DropdownMenu.Item, __spreadProps(__spreadValues({
9425
+ return /* @__PURE__ */ React52.createElement(DropdownMenu.Item, __spreadProps(__spreadValues({
9188
9426
  ref
9189
9427
  }, menuItemProps), {
9190
9428
  kind,
@@ -9193,7 +9431,7 @@ var ItemWrapper = ({ item, state }) => {
9193
9431
  disabled: isDisabled,
9194
9432
  icon,
9195
9433
  showNotification
9196
- }), item.rendered, description && /* @__PURE__ */ React51.createElement(DropdownMenu.Description, __spreadValues({
9434
+ }), item.rendered, description && /* @__PURE__ */ React52.createElement(DropdownMenu.Description, __spreadValues({
9197
9435
  disabled: isDisabled
9198
9436
  }, descriptionProps), description));
9199
9437
  };
@@ -9205,24 +9443,24 @@ var SectionWrapper = ({ section, state }) => {
9205
9443
  const { separatorProps } = useSeparator({
9206
9444
  elementType: "li"
9207
9445
  });
9208
- 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({
9209
9447
  title: section.rendered,
9210
9448
  titleProps: headingProps
9211
- }, 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, {
9212
9450
  key: node.key,
9213
9451
  item: node,
9214
9452
  state
9215
9453
  })))));
9216
9454
  };
9217
9455
  var extractTriggerAndItems = (children) => {
9218
- const [trigger, items] = React51.Children.toArray(children);
9456
+ const [trigger, items] = React52.Children.toArray(children);
9219
9457
  if (!isComponentType(trigger, MenuTrigger) || !isComponentType(items, MenuItems)) {
9220
9458
  throw new Error("<DropdownMenu> must have <DropdownMenu.Trigger> and <DropdownMenu.Items> defined");
9221
9459
  }
9222
9460
  return [trigger, items];
9223
9461
  };
9224
9462
  var getDisabledItemKeys = (children) => {
9225
- const keys = React51.Children.map(children, (child) => {
9463
+ const keys = React52.Children.map(children, (child) => {
9226
9464
  var _a, _b;
9227
9465
  if (!child || typeof child === "function") {
9228
9466
  return null;
@@ -9239,21 +9477,21 @@ var getDisabledItemKeys = (children) => {
9239
9477
  };
9240
9478
 
9241
9479
  // src/molecules/List/List.tsx
9242
- import React54 from "react";
9480
+ import React55 from "react";
9243
9481
  import isObject from "lodash/isObject";
9244
9482
 
9245
9483
  // src/molecules/Pagination/Pagination.tsx
9246
- import React53 from "react";
9484
+ import React54 from "react";
9247
9485
  import clamp from "lodash/clamp";
9248
9486
 
9249
9487
  // src/molecules/Select/Select.tsx
9250
- 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";
9251
9490
  import { useSelect } from "downshift";
9252
9491
  import defaults from "lodash/defaults";
9253
9492
  import isArray from "lodash/isArray";
9254
9493
  import isNil from "lodash/isNil";
9255
9494
  import omit7 from "lodash/omit";
9256
- import uniqueId4 from "lodash/uniqueId";
9257
9495
  var hasIconProperty = (val) => {
9258
9496
  var _a;
9259
9497
  return typeof val === "string" || ((_a = val == null ? void 0 : val.icon) == null ? void 0 : _a.body) !== void 0;
@@ -9263,10 +9501,10 @@ var hasOptionGroups = (val) => {
9263
9501
  };
9264
9502
  var defaultRenderOption = (item, props, { selectedItem }, { getOptionKey, getValue, optionToString = getOptionLabelBuiltin }) => {
9265
9503
  var _a, _b;
9266
- return /* @__PURE__ */ React52.createElement(Select.Item, __spreadValues({
9504
+ return /* @__PURE__ */ React53.createElement(Select.Item, __spreadValues({
9267
9505
  key: (_b = (_a = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a : getValue == null ? void 0 : getValue(item)) != null ? _b : optionToString(item),
9268
9506
  selected: item === selectedItem
9269
- }, props), hasIconProperty(item) && /* @__PURE__ */ React52.createElement(InlineIcon, {
9507
+ }, props), hasIconProperty(item) && /* @__PURE__ */ React53.createElement(InlineIcon, {
9270
9508
  icon: item.icon
9271
9509
  }), optionToString(item));
9272
9510
  };
@@ -9338,8 +9576,8 @@ var _SelectBase = (props) => {
9338
9576
  "labelWrapper"
9339
9577
  ]);
9340
9578
  const [hasFocus, setFocus] = useState7(false);
9341
- const targetRef = useRef7(null);
9342
- const menuRef = useRef7(null);
9579
+ const targetRef = useRef6(null);
9580
+ const menuRef = useRef6(null);
9343
9581
  const items = hasOptionGroups(options) ? options.flatMap((g) => g.options) : options;
9344
9582
  const findItemByValue = (val) => {
9345
9583
  if (val === null) {
@@ -9385,13 +9623,13 @@ var _SelectBase = (props) => {
9385
9623
  },
9386
9624
  withDefaults
9387
9625
  );
9388
- const renderGroup = (group) => /* @__PURE__ */ React52.createElement(React52.Fragment, {
9626
+ const renderGroup = (group) => /* @__PURE__ */ React53.createElement(React53.Fragment, {
9389
9627
  key: group.label
9390
- }, /* @__PURE__ */ React52.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
9391
- 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 })), {
9392
9630
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default",
9393
9631
  tabIndex: 0
9394
- }), /* @__PURE__ */ React52.createElement(Select.Input, __spreadProps(__spreadValues({
9632
+ }), /* @__PURE__ */ React53.createElement(Select.Input, __spreadProps(__spreadValues({
9395
9633
  id,
9396
9634
  name
9397
9635
  }, rest), {
@@ -9403,26 +9641,26 @@ var _SelectBase = (props) => {
9403
9641
  tabIndex: -1,
9404
9642
  onFocus: () => setFocus(true),
9405
9643
  onBlur: () => setFocus(false)
9406
- })), !readOnly && /* @__PURE__ */ React52.createElement(Select.Toggle, {
9644
+ })), !readOnly && /* @__PURE__ */ React53.createElement(Select.Toggle, {
9407
9645
  disabled,
9408
9646
  isOpen,
9409
9647
  tabIndex: -1
9410
9648
  }));
9411
9649
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
9412
- return /* @__PURE__ */ React52.createElement("div", {
9650
+ return /* @__PURE__ */ React53.createElement("div", {
9413
9651
  className: classNames("Aquarium-SelectBase", tw("relative"))
9414
- }, 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, {
9415
9653
  state,
9416
9654
  triggerRef: targetRef,
9417
9655
  placement: "bottom-left",
9418
9656
  shouldFlip: true,
9419
9657
  style: { width: (_b = targetRef.current) == null ? void 0 : _b.offsetWidth }
9420
- }, /* @__PURE__ */ React52.createElement(Select.Menu, __spreadValues({
9658
+ }, /* @__PURE__ */ React53.createElement(Select.Menu, __spreadValues({
9421
9659
  ref: menuRef,
9422
9660
  maxHeight
9423
- }, 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, {
9424
9662
  onMouseOver: () => setHighlightedIndex(-1)
9425
- }), actions.map((act, index) => /* @__PURE__ */ React52.createElement(Select.ActionItem, __spreadProps(__spreadValues({
9663
+ }), actions.map((act, index) => /* @__PURE__ */ React53.createElement(Select.ActionItem, __spreadProps(__spreadValues({
9426
9664
  key: `${index}`
9427
9665
  }, act), {
9428
9666
  onMouseOver: () => setHighlightedIndex(-1),
@@ -9432,10 +9670,10 @@ var _SelectBase = (props) => {
9432
9670
  }
9433
9671
  }), act.label))))));
9434
9672
  };
9435
- var SelectBase = (props) => /* @__PURE__ */ React52.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
9673
+ var SelectBase = (props) => /* @__PURE__ */ React53.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
9436
9674
  labelWrapper: void 0
9437
9675
  }));
9438
- var SelectBaseSkeleton = () => /* @__PURE__ */ React52.createElement(Skeleton, {
9676
+ var SelectBaseSkeleton = () => /* @__PURE__ */ React53.createElement(Skeleton, {
9439
9677
  height: 38
9440
9678
  });
9441
9679
  SelectBase.Skeleton = SelectBaseSkeleton;
@@ -9446,28 +9684,29 @@ var Select2 = (_a) => {
9446
9684
  "options"
9447
9685
  ]);
9448
9686
  var _a2;
9449
- const id = useRef7((_a2 = props.id) != null ? _a2 : `select-${uniqueId4()}`);
9450
- const errorMessageId = uniqueId4();
9687
+ const defaultId = useId5();
9688
+ const id = (_a2 = props.id) != null ? _a2 : defaultId;
9689
+ const errorMessageId = useId5();
9451
9690
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
9452
9691
  const labelProps = getLabelControlProps(props);
9453
9692
  const baseProps = omit7(props, Object.keys(labelProps));
9454
9693
  const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
9455
9694
  const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
9456
- const label = /* @__PURE__ */ React52.createElement(Label, __spreadValues({
9457
- id: `${id.current}-label`,
9458
- htmlFor: `${id.current}-input`,
9695
+ const label = /* @__PURE__ */ React53.createElement(Label, __spreadValues({
9696
+ id: `${id}-label`,
9697
+ htmlFor: `${id}-input`,
9459
9698
  variant,
9460
9699
  messageId: errorMessageId
9461
9700
  }, labelProps));
9462
- return /* @__PURE__ */ React52.createElement(FormControl, {
9701
+ return /* @__PURE__ */ React53.createElement(FormControl, {
9463
9702
  className: "Aquarium-Select"
9464
- }, /* @__PURE__ */ React52.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
9465
- id: `${id.current}-input`,
9703
+ }, /* @__PURE__ */ React53.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
9704
+ id: `${id}-input`,
9466
9705
  options,
9467
9706
  disabled: props.disabled,
9468
9707
  valid: props.valid,
9469
9708
  labelWrapper: label
9470
- })), /* @__PURE__ */ React52.createElement(HelperText, {
9709
+ })), /* @__PURE__ */ React53.createElement(HelperText, {
9471
9710
  messageId: errorMessageId,
9472
9711
  error: !labelProps.valid,
9473
9712
  helperText: labelProps.helperText,
@@ -9476,7 +9715,7 @@ var Select2 = (_a) => {
9476
9715
  reserveSpaceForError: labelProps.reserveSpaceForError
9477
9716
  }));
9478
9717
  };
9479
- 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));
9480
9719
  Select2.Skeleton = SelectSkeleton;
9481
9720
  Select2.Skeleton.displayName = "Select.Skeleton";
9482
9721
 
@@ -9495,26 +9734,26 @@ var Pagination = ({
9495
9734
  pageSizes,
9496
9735
  onPageSizeChange
9497
9736
  }) => {
9498
- const [value, setValue] = React53.useState(currentPage);
9499
- React53.useEffect(() => {
9737
+ const [value, setValue] = React54.useState(currentPage);
9738
+ React54.useEffect(() => {
9500
9739
  setValue(currentPage);
9501
9740
  }, [currentPage]);
9502
- return /* @__PURE__ */ React53.createElement(Box, {
9741
+ return /* @__PURE__ */ React54.createElement(Box, {
9503
9742
  className: classNames(
9504
9743
  "Aquarium-Pagination",
9505
9744
  tw({ "grid grid-cols-[200px_1fr_200px]": !!pageSizes, "flex flex-nowrap justify-center": !pageSizes })
9506
9745
  ),
9507
9746
  backgroundColor: "grey-0",
9508
9747
  padding: "4"
9509
- }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React53.createElement(Box, {
9748
+ }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React54.createElement(Box, {
9510
9749
  display: "flex",
9511
9750
  alignItems: "center",
9512
9751
  gap: "4"
9513
- }, /* @__PURE__ */ React53.createElement(Typography2.Small, {
9752
+ }, /* @__PURE__ */ React54.createElement(Typography2.Small, {
9514
9753
  color: "grey-50"
9515
- }, "Items per page "), /* @__PURE__ */ React53.createElement("div", {
9754
+ }, "Items per page "), /* @__PURE__ */ React54.createElement("div", {
9516
9755
  className: tw("max-w-[70px]")
9517
- }, /* @__PURE__ */ React53.createElement(SelectBase, {
9756
+ }, /* @__PURE__ */ React54.createElement(SelectBase, {
9518
9757
  options: pageSizes.map((size) => size.toString()),
9519
9758
  value: pageSize.toString(),
9520
9759
  onChange: (size) => {
@@ -9525,26 +9764,26 @@ var Pagination = ({
9525
9764
  }
9526
9765
  }
9527
9766
  }
9528
- }))) : /* @__PURE__ */ React53.createElement("div", null), /* @__PURE__ */ React53.createElement(Box, {
9767
+ }))) : /* @__PURE__ */ React54.createElement("div", null), /* @__PURE__ */ React54.createElement(Box, {
9529
9768
  display: "flex",
9530
9769
  justifyContent: "center",
9531
9770
  alignItems: "center",
9532
9771
  className: tw("grow")
9533
- }, /* @__PURE__ */ React53.createElement(Button.Icon, {
9772
+ }, /* @__PURE__ */ React54.createElement(Button.Icon, {
9534
9773
  "aria-label": "First",
9535
9774
  onClick: () => onPageChange(1),
9536
9775
  icon: import_chevronBackward2.default,
9537
9776
  disabled: !hasPreviousPage
9538
- }), /* @__PURE__ */ React53.createElement(Button.Icon, {
9777
+ }), /* @__PURE__ */ React54.createElement(Button.Icon, {
9539
9778
  "aria-label": "Previous",
9540
9779
  onClick: () => onPageChange(currentPage - 1),
9541
9780
  icon: import_chevronLeft3.default,
9542
9781
  disabled: !hasPreviousPage
9543
- }), /* @__PURE__ */ React53.createElement(Box, {
9782
+ }), /* @__PURE__ */ React54.createElement(Box, {
9544
9783
  paddingX: "4"
9545
- }, /* @__PURE__ */ React53.createElement(Typography2.Small, {
9784
+ }, /* @__PURE__ */ React54.createElement(Typography2.Small, {
9546
9785
  color: "grey-60"
9547
- }, "Page")), /* @__PURE__ */ React53.createElement(InputBase, {
9786
+ }, "Page")), /* @__PURE__ */ React54.createElement(InputBase, {
9548
9787
  className: classNames(tw("text-center max-w-[40px]"), "no-arrows"),
9549
9788
  type: "number",
9550
9789
  min: 1,
@@ -9561,21 +9800,21 @@ var Pagination = ({
9561
9800
  const newPage = !isNaN(numberValue) ? clamp(numberValue, 1, totalPages) : 1;
9562
9801
  onPageChange(newPage);
9563
9802
  }
9564
- }), /* @__PURE__ */ React53.createElement(Box, {
9803
+ }), /* @__PURE__ */ React54.createElement(Box, {
9565
9804
  paddingX: "4"
9566
- }, /* @__PURE__ */ React53.createElement(Typography2.Small, {
9805
+ }, /* @__PURE__ */ React54.createElement(Typography2.Small, {
9567
9806
  color: "grey-60"
9568
- }, "of ", totalPages)), /* @__PURE__ */ React53.createElement(Button.Icon, {
9807
+ }, "of ", totalPages)), /* @__PURE__ */ React54.createElement(Button.Icon, {
9569
9808
  "aria-label": "Next",
9570
9809
  onClick: () => onPageChange(currentPage + 1),
9571
9810
  icon: import_chevronRight3.default,
9572
9811
  disabled: !hasNextPage
9573
- }), /* @__PURE__ */ React53.createElement(Button.Icon, {
9812
+ }), /* @__PURE__ */ React54.createElement(Button.Icon, {
9574
9813
  "aria-label": "Last",
9575
9814
  onClick: () => onPageChange(totalPages),
9576
9815
  icon: import_chevronForward2.default,
9577
9816
  disabled: !hasNextPage
9578
- })), pageSizes && /* @__PURE__ */ React53.createElement("div", null));
9817
+ })), pageSizes && /* @__PURE__ */ React54.createElement("div", null));
9579
9818
  };
9580
9819
 
9581
9820
  // src/molecules/Pagination/usePagination.tsx
@@ -9619,8 +9858,8 @@ var usePagination = (items, options) => {
9619
9858
  var List2 = ({
9620
9859
  items,
9621
9860
  renderItem,
9622
- container = React54.Fragment,
9623
- paginationContainer = React54.Fragment,
9861
+ container = React55.Fragment,
9862
+ paginationContainer = React55.Fragment,
9624
9863
  pagination
9625
9864
  }) => {
9626
9865
  const Component = container;
@@ -9628,11 +9867,11 @@ var List2 = ({
9628
9867
  const paginationProps = isObject(pagination) ? pagination : {};
9629
9868
  const [paginatedItems, paginationState] = usePagination(items, paginationProps);
9630
9869
  const listItems = pagination ? paginatedItems : items;
9631
- 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))));
9632
9871
  };
9633
9872
 
9634
9873
  // src/molecules/Template/Template.tsx
9635
- import React55 from "react";
9874
+ import React56 from "react";
9636
9875
  var Template = ({
9637
9876
  children,
9638
9877
  columns,
@@ -9659,24 +9898,24 @@ var Template = ({
9659
9898
  rowGap,
9660
9899
  columnGap
9661
9900
  });
9662
- return /* @__PURE__ */ React55.createElement("div", {
9901
+ return /* @__PURE__ */ React56.createElement("div", {
9663
9902
  className,
9664
9903
  style: __spreadValues({}, styles)
9665
9904
  }, children);
9666
9905
  };
9667
9906
 
9668
9907
  // src/atoms/DataList/DataList.tsx
9669
- import React58 from "react";
9908
+ import React59 from "react";
9670
9909
 
9671
9910
  // src/atoms/Table/Table.tsx
9672
- import React57 from "react";
9911
+ import React58 from "react";
9673
9912
 
9674
9913
  // src/atoms/RadioButton/RadioButton.tsx
9675
- import React56 from "react";
9676
- var RadioButton = React56.forwardRef(
9914
+ import React57 from "react";
9915
+ var RadioButton = React57.forwardRef(
9677
9916
  (_a, ref) => {
9678
9917
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
9679
- return /* @__PURE__ */ React56.createElement("input", __spreadProps(__spreadValues({
9918
+ return /* @__PURE__ */ React57.createElement("input", __spreadProps(__spreadValues({
9680
9919
  id,
9681
9920
  ref,
9682
9921
  type: "radio",
@@ -9702,29 +9941,29 @@ var RadioButton = React56.forwardRef(
9702
9941
  // src/atoms/Table/Table.tsx
9703
9942
  var import_chevronDown4 = __toESM(require_chevronDown());
9704
9943
  var import_chevronUp3 = __toESM(require_chevronUp());
9705
- var HeadContext = React57.createContext(null);
9944
+ var HeadContext = React58.createContext(null);
9706
9945
  var tableClassNames = tw("w-full relative typography-default border-spacing-0");
9707
9946
  var Table = (_a) => {
9708
9947
  var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
9709
- return /* @__PURE__ */ React57.createElement("table", __spreadProps(__spreadValues({}, rest), {
9948
+ return /* @__PURE__ */ React58.createElement("table", __spreadProps(__spreadValues({}, rest), {
9710
9949
  className: classNames(tableClassNames, className),
9711
9950
  "aria-label": ariaLabel
9712
9951
  }), children);
9713
9952
  };
9714
9953
  var TableHead = (_a) => {
9715
9954
  var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
9716
- 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, {
9717
9956
  value: { children, sticky }
9718
9957
  }, children)));
9719
9958
  };
9720
9959
  var TableBody = (_a) => {
9721
9960
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
9722
- return /* @__PURE__ */ React57.createElement("tbody", __spreadValues({}, rest), children);
9961
+ return /* @__PURE__ */ React58.createElement("tbody", __spreadValues({}, rest), children);
9723
9962
  };
9724
9963
  var rowClassNames = tw("children:border-grey-10 group children:last:border-b-0 hover:bg-grey-0");
9725
9964
  var TableRow = (_a) => {
9726
9965
  var _b = _a, { children, className, disabled } = _b, rest = __objRest(_b, ["children", "className", "disabled"]);
9727
- 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 }), {
9728
9967
  className: classNames(rowClassNames, className, {
9729
9968
  "opacity-70": disabled
9730
9969
  })
@@ -9753,15 +9992,15 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
9753
9992
  };
9754
9993
  var TableCell = (_a) => {
9755
9994
  var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
9756
- const headContext = React57.useContext(HeadContext);
9757
- 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), {
9758
9997
  className: classNames(
9759
9998
  cellClassNames,
9760
9999
  getHeadCellClassNames(headContext.sticky, stickyColumn),
9761
10000
  getAlignClassNames(align),
9762
10001
  className
9763
10002
  )
9764
- }), children) : /* @__PURE__ */ React57.createElement("td", __spreadProps(__spreadValues({}, rest), {
10003
+ }), children) : /* @__PURE__ */ React58.createElement("td", __spreadProps(__spreadValues({}, rest), {
9765
10004
  className: classNames(
9766
10005
  cellClassNames,
9767
10006
  getBodyCellClassNames(true, stickyColumn),
@@ -9772,11 +10011,11 @@ var TableCell = (_a) => {
9772
10011
  };
9773
10012
  var TableSelectCell = (_a) => {
9774
10013
  var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
9775
- return /* @__PURE__ */ React57.createElement(Table.Cell, {
10014
+ return /* @__PURE__ */ React58.createElement(Table.Cell, {
9776
10015
  className: tw("leading-[0px]")
9777
- }, props.type === "radio" ? /* @__PURE__ */ React57.createElement(RadioButton, __spreadValues({
10016
+ }, props.type === "radio" ? /* @__PURE__ */ React58.createElement(RadioButton, __spreadValues({
9778
10017
  "aria-label": ariaLabel
9779
- }, props)) : /* @__PURE__ */ React57.createElement(Checkbox, __spreadValues({
10018
+ }, props)) : /* @__PURE__ */ React58.createElement(Checkbox, __spreadValues({
9780
10019
  "aria-label": ariaLabel
9781
10020
  }, props)));
9782
10021
  };
@@ -9786,39 +10025,39 @@ var getSortCellIconClassNames = (active) => {
9786
10025
  };
9787
10026
  var TableSortCell = (_a) => {
9788
10027
  var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
9789
- return /* @__PURE__ */ React57.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
10028
+ return /* @__PURE__ */ React58.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
9790
10029
  "aria-sort": direction
9791
- }), /* @__PURE__ */ React57.createElement("span", {
10030
+ }), /* @__PURE__ */ React58.createElement("span", {
9792
10031
  className: getSortCellButtonClassNames(rest.align),
9793
10032
  role: "button",
9794
10033
  tabIndex: -1,
9795
10034
  onClick
9796
- }, children, /* @__PURE__ */ React57.createElement("div", {
10035
+ }, children, /* @__PURE__ */ React58.createElement("div", {
9797
10036
  "data-sort-icons": true,
9798
10037
  className: tw("flex flex-col", {
9799
10038
  "invisible group-hover:visible": direction === "none"
9800
10039
  })
9801
- }, /* @__PURE__ */ React57.createElement(InlineIcon, {
10040
+ }, /* @__PURE__ */ React58.createElement(InlineIcon, {
9802
10041
  icon: import_chevronUp3.default,
9803
10042
  className: getSortCellIconClassNames(direction === "descending")
9804
- }), /* @__PURE__ */ React57.createElement(InlineIcon, {
10043
+ }), /* @__PURE__ */ React58.createElement(InlineIcon, {
9805
10044
  icon: import_chevronDown4.default,
9806
10045
  className: getSortCellIconClassNames(direction === "ascending")
9807
10046
  }))));
9808
10047
  };
9809
- 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", {
9810
10049
  className: tw("flex gap-4 items-center")
9811
- }, image && /* @__PURE__ */ React57.createElement("img", {
10050
+ }, image && /* @__PURE__ */ React58.createElement("img", {
9812
10051
  src: image,
9813
10052
  alt: imageAlt,
9814
10053
  style: { width: imageSize, height: imageSize }
9815
- }), /* @__PURE__ */ React57.createElement("div", null, title, caption && /* @__PURE__ */ React57.createElement(Typography2.Caption, null, caption)));
9816
- Table.Head = React57.memo(TableHead);
9817
- Table.Body = React57.memo(TableBody);
9818
- Table.Row = React57.memo(TableRow);
9819
- Table.Cell = React57.memo(TableCell);
9820
- Table.SortCell = React57.memo(TableSortCell);
9821
- 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);
9822
10061
 
9823
10062
  // src/atoms/DataList/DataList.tsx
9824
10063
  var import_chevronDown5 = __toESM(require_chevronDown());
@@ -9830,7 +10069,7 @@ var getAlignClassNames2 = (align) => tw("flex items-center", {
9830
10069
  });
9831
10070
  var DataList = (_a) => {
9832
10071
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
9833
- return /* @__PURE__ */ React58.createElement("div", __spreadValues({}, rest));
10072
+ return /* @__PURE__ */ React59.createElement("div", __spreadValues({}, rest));
9834
10073
  };
9835
10074
  var HeadCell = (_a) => {
9836
10075
  var _b = _a, {
@@ -9844,7 +10083,7 @@ var HeadCell = (_a) => {
9844
10083
  "align",
9845
10084
  "stickyColumn"
9846
10085
  ]);
9847
- return /* @__PURE__ */ React58.createElement("div", __spreadProps(__spreadValues({}, rest), {
10086
+ return /* @__PURE__ */ React59.createElement("div", __spreadProps(__spreadValues({}, rest), {
9848
10087
  role: "cell",
9849
10088
  className: classNames(
9850
10089
  cellClassNames,
@@ -9864,7 +10103,7 @@ var Cell = (_a) => {
9864
10103
  "align",
9865
10104
  "stickyColumn"
9866
10105
  ]);
9867
- return /* @__PURE__ */ React58.createElement("div", __spreadProps(__spreadValues({}, rest), {
10106
+ return /* @__PURE__ */ React59.createElement("div", __spreadProps(__spreadValues({}, rest), {
9868
10107
  role: "cell",
9869
10108
  className: classNames(
9870
10109
  cellClassNames,
@@ -9877,7 +10116,7 @@ var Cell = (_a) => {
9877
10116
  };
9878
10117
  var Row = (_a) => {
9879
10118
  var _b = _a, { className, disabled, subgroup } = _b, rest = __objRest(_b, ["className", "disabled", "subgroup"]);
9880
- 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 }), {
9881
10120
  className: classNames(tw("contents"), className, {
9882
10121
  "children:opacity-70": disabled,
9883
10122
  "[&>.group>*]:bg-grey-0 [&>.group>*:first-child]:border-b-0 ": subgroup,
@@ -9888,7 +10127,7 @@ var Row = (_a) => {
9888
10127
  };
9889
10128
  var SubGroupSpacing = (_a) => {
9890
10129
  var _b = _a, { className, divider } = _b, rest = __objRest(_b, ["className", "divider"]);
9891
- return /* @__PURE__ */ React58.createElement("span", __spreadProps(__spreadValues({}, rest), {
10130
+ return /* @__PURE__ */ React59.createElement("span", __spreadProps(__spreadValues({}, rest), {
9892
10131
  "aria-hidden": true,
9893
10132
  className: classNames(
9894
10133
  tw("col-span-full h-6 bg-grey-0", { "border-b border-grey-10": Boolean(divider) }),
@@ -9898,24 +10137,24 @@ var SubGroupSpacing = (_a) => {
9898
10137
  };
9899
10138
  var SortCell = (_a) => {
9900
10139
  var _b = _a, { children, direction = "none", onClick, sticky } = _b, rest = __objRest(_b, ["children", "direction", "onClick", "sticky"]);
9901
- return /* @__PURE__ */ React58.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
10140
+ return /* @__PURE__ */ React59.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
9902
10141
  "aria-sort": direction,
9903
10142
  role: "cell",
9904
10143
  sticky
9905
- }), /* @__PURE__ */ React58.createElement("span", {
10144
+ }), /* @__PURE__ */ React59.createElement("span", {
9906
10145
  className: getSortCellButtonClassNames(rest.align),
9907
10146
  role: "button",
9908
10147
  tabIndex: -1,
9909
10148
  onClick
9910
- }, children, /* @__PURE__ */ React58.createElement("div", {
10149
+ }, children, /* @__PURE__ */ React59.createElement("div", {
9911
10150
  "data-sort-icons": true,
9912
10151
  className: tw("flex flex-col", {
9913
10152
  "invisible group-hover:visible": direction === "none"
9914
10153
  })
9915
- }, /* @__PURE__ */ React58.createElement(InlineIcon, {
10154
+ }, /* @__PURE__ */ React59.createElement(InlineIcon, {
9916
10155
  icon: import_chevronUp4.default,
9917
10156
  className: getSortCellIconClassNames(direction === "descending")
9918
- }), /* @__PURE__ */ React58.createElement(InlineIcon, {
10157
+ }), /* @__PURE__ */ React59.createElement(InlineIcon, {
9919
10158
  icon: import_chevronDown5.default,
9920
10159
  className: getSortCellIconClassNames(direction === "ascending")
9921
10160
  }))));
@@ -9949,9 +10188,9 @@ var cellProps = (column) => ({
9949
10188
  var columnIsFieldColumn = (column) => Boolean(column && column.field);
9950
10189
 
9951
10190
  // src/utils/table/useTableSort.tsx
9952
- import React59 from "react";
10191
+ import React60 from "react";
9953
10192
  var useTableSort = () => {
9954
- const [sort, setSort] = React59.useState();
10193
+ const [sort, setSort] = React60.useState();
9955
10194
  const handleSortClick = (column) => {
9956
10195
  if (sort && sort.column.headerName === column.headerName) {
9957
10196
  if (sort.direction === "ascending") {
@@ -9985,19 +10224,21 @@ var sortRowsBy = (rows, sort) => {
9985
10224
  var import_more2 = __toESM(require_more());
9986
10225
 
9987
10226
  // src/molecules/Accordion/Accordion.tsx
9988
- 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";
9989
10228
  import { Icon as Icon2 } from "@iconify/react";
10229
+ import { useId as useId6 } from "@react-aria/utils";
9990
10230
  import { animated as animated3, useSpring as useSpring2 } from "@react-spring/web";
10231
+ import isUndefined8 from "lodash/isUndefined";
9991
10232
 
9992
10233
  // src/utils/useMeasure.ts
9993
- import React60 from "react";
10234
+ import React61 from "react";
9994
10235
  function useMeasure() {
9995
- const ref = React60.useRef(null);
9996
- const [rect, setRect] = React60.useState({
10236
+ const ref = React61.useRef(null);
10237
+ const [rect, setRect] = React61.useState({
9997
10238
  width: null,
9998
10239
  height: null
9999
10240
  });
10000
- React60.useLayoutEffect(() => {
10241
+ React61.useLayoutEffect(() => {
10001
10242
  if (!ref.current || !window.ResizeObserver) {
10002
10243
  return;
10003
10244
  }
@@ -10018,7 +10259,7 @@ function useMeasure() {
10018
10259
  }
10019
10260
 
10020
10261
  // src/molecules/Divider/Divider.tsx
10021
- import React61 from "react";
10262
+ import React62 from "react";
10022
10263
  var sizeClasses = {
10023
10264
  horizontal: {
10024
10265
  1: "h-1px",
@@ -10040,7 +10281,7 @@ var sizeClasses = {
10040
10281
  var Divider2 = (_a) => {
10041
10282
  var _b = _a, { direction = "horizontal", size = 1 } = _b, props = __objRest(_b, ["direction", "size"]);
10042
10283
  const sizeClass = sizeClasses[direction][size];
10043
- return /* @__PURE__ */ React61.createElement("div", __spreadProps(__spreadValues({}, props), {
10284
+ return /* @__PURE__ */ React62.createElement("div", __spreadProps(__spreadValues({}, props), {
10044
10285
  className: classNames(
10045
10286
  "Aquarium-Divider",
10046
10287
  tw(`bg-grey-5 ${sizeClass}`, {
@@ -10053,6 +10294,7 @@ var Divider2 = (_a) => {
10053
10294
 
10054
10295
  // src/molecules/Accordion/Accordion.tsx
10055
10296
  var AccordionContext = createContext2(null);
10297
+ var PanelContext = createContext2(null);
10056
10298
  var useAccordionContext = () => {
10057
10299
  const context2 = useContext3(AccordionContext);
10058
10300
  if (context2 === null) {
@@ -10060,31 +10302,50 @@ var useAccordionContext = () => {
10060
10302
  }
10061
10303
  return context2;
10062
10304
  };
10063
- var Accordion = ({ children }) => {
10064
- const [state, setState] = useState9(void 0);
10065
- return /* @__PURE__ */ React62.createElement(AccordionContext.Provider, {
10066
- 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]
10067
10324
  }, children);
10068
10325
  };
10069
10326
  var AccordionToggle = (_a) => {
10070
- 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);
10071
10329
  const [openPanelId, setOpenPanelId] = useAccordionContext();
10072
- const isOpen = openPanelId === panelId;
10073
- 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
+ };
10074
10334
  const { transform } = useSpring2({
10075
10335
  transform: `rotate(${isOpen ? 0 : 180}deg)`,
10076
10336
  config: {
10077
10337
  duration: 150
10078
10338
  }
10079
10339
  });
10080
- return /* @__PURE__ */ React62.createElement(animated3.div, __spreadProps(__spreadValues({}, rest), {
10340
+ return /* @__PURE__ */ React63.createElement(animated3.div, __spreadProps(__spreadValues({}, rest), {
10081
10341
  role: "button",
10082
10342
  tabIndex: 0,
10083
- "aria-expanded": openPanelId === panelId,
10084
- "aria-controls": panelId,
10343
+ "aria-label": "accordion toggle",
10344
+ "aria-expanded": openPanelId === id,
10345
+ "aria-controls": `${id}-content`,
10085
10346
  onClick: handleClick,
10086
10347
  style: { transform }
10087
- }), /* @__PURE__ */ React62.createElement(Icon2, {
10348
+ }), /* @__PURE__ */ React63.createElement(Icon2, {
10088
10349
  icon: import_caretUp.default,
10089
10350
  height: 22,
10090
10351
  width: 22
@@ -10092,8 +10353,9 @@ var AccordionToggle = (_a) => {
10092
10353
  };
10093
10354
  var AccordionPanel = (_a) => {
10094
10355
  var _b = _a, { children, panelId } = _b, rest = __objRest(_b, ["children", "panelId"]);
10356
+ const id = usePanelContext(panelId);
10095
10357
  const [openPanelId] = useAccordionContext();
10096
- const isOpen = openPanelId === panelId;
10358
+ const isOpen = openPanelId === id;
10097
10359
  const [ref, { height }] = useMeasure();
10098
10360
  const style = useSpring2({
10099
10361
  height: isOpen ? height != null ? height : 0 : 0,
@@ -10102,31 +10364,38 @@ var AccordionPanel = (_a) => {
10102
10364
  duration: 150
10103
10365
  }
10104
10366
  });
10105
- return /* @__PURE__ */ React62.createElement(animated3.div, __spreadProps(__spreadValues({}, rest), {
10367
+ return /* @__PURE__ */ React63.createElement(animated3.div, __spreadProps(__spreadValues({}, rest), {
10106
10368
  role: "region",
10107
- id: panelId,
10369
+ id: `${id}-content`,
10370
+ "aria-labelledby": `${id}-summary`,
10108
10371
  style
10109
- }), /* @__PURE__ */ React62.createElement("div", {
10372
+ }), /* @__PURE__ */ React63.createElement("div", {
10110
10373
  ref
10111
10374
  }, children));
10112
10375
  };
10113
10376
  var AccordionUnanimatedPanel = ({ children, panelId }) => {
10377
+ const id = usePanelContext(panelId);
10114
10378
  const [openPanelId] = useAccordionContext();
10115
- const isOpen = openPanelId === panelId;
10116
- 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);
10117
10381
  };
10118
10382
  var AccordionSummary = (_a) => {
10119
- var _b = _a, { title, description, toggle } = _b, rest = __objRest(_b, ["title", "description", "toggle"]);
10120
- 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({
10121
10386
  justifyContent: "space-between",
10122
- padding: "4"
10123
- }, 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, {
10124
10390
  color: "grey-40"
10125
10391
  }, description), toggle);
10126
10392
  };
10127
10393
  var AccordionContainer = (_a) => {
10128
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
10129
- 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)));
10130
10399
  };
10131
10400
  Accordion.displayName = "Accordion";
10132
10401
  Accordion.Container = AccordionContainer;
@@ -10141,25 +10410,25 @@ Accordion.UnanimatedPanel = AccordionUnanimatedPanel;
10141
10410
  Accordion.UnanimatedPanel.displayName = "Accordion.UnanimatedPanel";
10142
10411
 
10143
10412
  // src/molecules/DataList/DataListSkeleton.tsx
10144
- import React63 from "react";
10413
+ import React64 from "react";
10145
10414
  var DataListSkeleton = ({ columns = ["1", "2", "2", 52], rows = 5 }) => {
10146
10415
  const columnsAmount = [...Array(typeof columns === "number" ? columns : columns.length).keys()];
10147
- return /* @__PURE__ */ React63.createElement(Template, {
10416
+ return /* @__PURE__ */ React64.createElement(Template, {
10148
10417
  columns
10149
- }, columnsAmount.map((_, index) => /* @__PURE__ */ React63.createElement(DataList.HeadCell, {
10418
+ }, columnsAmount.map((_, index) => /* @__PURE__ */ React64.createElement(DataList.HeadCell, {
10150
10419
  key: index
10151
- }, /* @__PURE__ */ React63.createElement(Skeleton, {
10420
+ }, /* @__PURE__ */ React64.createElement(Skeleton, {
10152
10421
  width: "100%",
10153
10422
  height: 17.5
10154
- }))), /* @__PURE__ */ React63.createElement(List2, {
10423
+ }))), /* @__PURE__ */ React64.createElement(List2, {
10155
10424
  items: [...Array(rows).keys()],
10156
- renderItem: (item) => /* @__PURE__ */ React63.createElement(DataList.Row, {
10425
+ renderItem: (item) => /* @__PURE__ */ React64.createElement(DataList.Row, {
10157
10426
  key: item
10158
- }, /* @__PURE__ */ React63.createElement(List2, {
10427
+ }, /* @__PURE__ */ React64.createElement(List2, {
10159
10428
  items: columnsAmount,
10160
- renderItem: (key) => /* @__PURE__ */ React63.createElement(DataList.Cell, {
10429
+ renderItem: (key) => /* @__PURE__ */ React64.createElement(DataList.Cell, {
10161
10430
  key
10162
- }, /* @__PURE__ */ React63.createElement(Skeleton, {
10431
+ }, /* @__PURE__ */ React64.createElement(Skeleton, {
10163
10432
  width: "100%",
10164
10433
  height: 17.5
10165
10434
  }))
@@ -10183,11 +10452,13 @@ var DataList2 = ({
10183
10452
  pagination,
10184
10453
  group,
10185
10454
  disabled,
10186
- getGroupRow
10455
+ getGroupRow,
10456
+ onGroupToggled,
10457
+ expandedGroupIds
10187
10458
  }) => {
10188
10459
  const [sort, updateSort] = useTableSort();
10189
10460
  const sortedRows = sortRowsBy(rows, sort);
10190
- const groups = group ? groupBy2(sortedRows, group) : void 0;
10461
+ const groups = group ? isFunction(group) ? group(sortedRows) : groupBy2(sortedRows, group) : void 0;
10191
10462
  const groupKeys = groups ? Object.keys(groups) : void 0;
10192
10463
  const hasCustomRenderForGroupRow = isFunction(getGroupRow);
10193
10464
  const isCollapsible = isFunction(rowDetails) || group;
@@ -10199,36 +10470,36 @@ var DataList2 = ({
10199
10470
  }),
10200
10471
  menu ? "auto" : void 0
10201
10472
  ]);
10202
- const PaginationFooter = React64.useCallback(
10203
- ({ children }) => /* @__PURE__ */ React64.createElement("div", {
10473
+ const PaginationFooter = React65.useCallback(
10474
+ ({ children }) => /* @__PURE__ */ React65.createElement("div", {
10204
10475
  style: { gridColumn: "1 / -1" }
10205
10476
  }, children),
10206
10477
  []
10207
10478
  );
10208
- return /* @__PURE__ */ React64.createElement(Template, {
10479
+ return /* @__PURE__ */ React65.createElement(Template, {
10209
10480
  className: "Aquarium-DataList",
10210
10481
  columns: templateColumns
10211
- }, isCollapsible && /* @__PURE__ */ React64.createElement(DataList.HeadCell, {
10482
+ }, isCollapsible && /* @__PURE__ */ React65.createElement(DataList.HeadCell, {
10212
10483
  align: "left"
10213
10484
  }), columns.map((column) => {
10214
- const content = column.headerTooltip ? /* @__PURE__ */ React64.createElement(Tooltip, {
10485
+ const content = column.headerTooltip ? /* @__PURE__ */ React65.createElement(Tooltip, {
10215
10486
  placement: column.headerTooltip.placement,
10216
10487
  content: column.headerTooltip.content
10217
10488
  }, column.headerName) : column.headerName;
10218
- 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({
10219
10490
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
10220
10491
  onClick: () => updateSort(column),
10221
10492
  sticky
10222
- }, 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)), {
10223
10494
  sticky
10224
10495
  }), content);
10225
- }), menu && /* @__PURE__ */ React64.createElement(DataList.HeadCell, {
10496
+ }), menu && /* @__PURE__ */ React65.createElement(DataList.HeadCell, {
10226
10497
  align: "right",
10227
10498
  "aria-label": menuAriaLabel
10228
- }, menuHeaderName), groups && groupKeys ? /* @__PURE__ */ React64.createElement(List2, {
10499
+ }, menuHeaderName), groups && groupKeys ? /* @__PURE__ */ React65.createElement(List2, {
10229
10500
  items: sortGroupKeys(groupKeys),
10230
10501
  renderItem: (key) => {
10231
- const groupContent = /* @__PURE__ */ React64.createElement(List2, {
10502
+ const groupContent = /* @__PURE__ */ React65.createElement(List2, {
10232
10503
  key,
10233
10504
  items: groups[key],
10234
10505
  renderItem: (row, index) => renderRow(
@@ -10238,34 +10509,37 @@ var DataList2 = ({
10238
10509
  sortedRows,
10239
10510
  renderRowMenu(row, index, { menu, onAction, onMenuOpenChange, menuAriaLabel }),
10240
10511
  disabled,
10241
- () => /* @__PURE__ */ React64.createElement(DataList.Cell, null)
10512
+ () => /* @__PURE__ */ React65.createElement(DataList.Cell, null)
10242
10513
  )
10243
10514
  });
10244
- return key === "undefined" ? groupContent : /* @__PURE__ */ React64.createElement(Accordion, {
10245
- key
10246
- }, hasCustomRenderForGroupRow ? /* @__PURE__ */ React64.createElement(DataList.Row, null, /* @__PURE__ */ React64.createElement(DataList.Cell, null, /* @__PURE__ */ React64.createElement(Accordion.Toggle, {
10247
- panelId: key
10248
- })), /* @__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, {
10249
10522
  items: columns,
10250
- 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, []))
10251
10524
  }), renderRowMenu(getGroupRow(key, groups[key]), -1, {
10252
10525
  menu,
10253
10526
  onAction,
10254
10527
  onMenuOpenChange,
10255
10528
  menuAriaLabel
10256
- })) : /* @__PURE__ */ React64.createElement(DataList.Row, null, /* @__PURE__ */ React64.createElement(DataList.Cell, null, /* @__PURE__ */ React64.createElement(Accordion.Toggle, {
10257
- panelId: key
10258
- })), /* @__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, {
10259
10533
  style: { gridColumn: "2 / -1", gap: 4 }
10260
- }, "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, {
10261
10535
  subgroup: true
10262
- }, /* @__PURE__ */ React64.createElement(Accordion.UnanimatedPanel, {
10536
+ }, /* @__PURE__ */ React65.createElement(Accordion.UnanimatedPanel, {
10263
10537
  panelId: key
10264
- }, /* @__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, {
10265
10539
  divider: true
10266
10540
  }))));
10267
10541
  }
10268
- }) : /* @__PURE__ */ React64.createElement(List2, {
10542
+ }) : /* @__PURE__ */ React65.createElement(List2, {
10269
10543
  pagination,
10270
10544
  paginationContainer: PaginationFooter,
10271
10545
  items: sortedRows,
@@ -10278,15 +10552,18 @@ var DataList2 = ({
10278
10552
  sortedRows,
10279
10553
  renderRowMenu(row, index, { menu, onAction, onMenuOpenChange, menuAriaLabel }),
10280
10554
  disabled,
10281
- () => rowDetails !== void 0 && /* @__PURE__ */ React64.createElement(DataList.Cell, null, details && /* @__PURE__ */ React64.createElement(Accordion.Toggle, {
10282
- 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
10283
10558
  }))
10284
10559
  );
10285
- return details ? /* @__PURE__ */ React64.createElement(Accordion, {
10286
- key: row.id
10287
- }, 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, {
10288
10564
  panelId: row.id.toString(),
10289
- 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`
10290
10567
  }, details)) : content;
10291
10568
  }
10292
10569
  }));
@@ -10299,12 +10576,12 @@ var renderRowMenu = (row, index, {
10299
10576
  }) => {
10300
10577
  if (menu) {
10301
10578
  const menuContent = isFunction(menu) ? menu(row, index) : menu;
10302
- return /* @__PURE__ */ React64.createElement(DataList.Cell, {
10579
+ return /* @__PURE__ */ React65.createElement(DataList.Cell, {
10303
10580
  align: "right"
10304
- }, menuContent && /* @__PURE__ */ React64.createElement(DropdownMenu2, {
10581
+ }, menuContent && /* @__PURE__ */ React65.createElement(DropdownMenu2, {
10305
10582
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
10306
10583
  onOpenChange: onMenuOpenChange
10307
- }, /* @__PURE__ */ React64.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React64.createElement(Button.Icon, {
10584
+ }, /* @__PURE__ */ React65.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React65.createElement(Button.Icon, {
10308
10585
  "aria-label": menuAriaLabel,
10309
10586
  icon: import_more2.default
10310
10587
  })), menuContent));
@@ -10314,12 +10591,12 @@ var renderRowMenu = (row, index, {
10314
10591
  var renderRow = (columns, row, index, rows, menu, disabled, renderFirstColumn) => {
10315
10592
  var _a;
10316
10593
  const isRowDisabled = (_a = disabled == null ? void 0 : disabled(row, index, rows)) != null ? _a : false;
10317
- return /* @__PURE__ */ React64.createElement(DataList.Row, {
10594
+ return /* @__PURE__ */ React65.createElement(DataList.Row, {
10318
10595
  key: row.id,
10319
10596
  disabled: isRowDisabled
10320
- }, 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, {
10321
10598
  items: columns,
10322
- 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))
10323
10600
  }), menu);
10324
10601
  };
10325
10602
  var DEFAULT_CONTENT = "";
@@ -10328,14 +10605,14 @@ var renderCell = (column, row, index, rows) => {
10328
10605
  if (column.type === "status") {
10329
10606
  const status = column.status(row, index, rows);
10330
10607
  if (status) {
10331
- cellContent = /* @__PURE__ */ React64.createElement(StatusChip, __spreadValues({
10608
+ cellContent = /* @__PURE__ */ React65.createElement(StatusChip, __spreadValues({
10332
10609
  dense: true
10333
10610
  }, status));
10334
10611
  }
10335
10612
  } else if (column.type === "action") {
10336
10613
  const action = renameProperty("text", "children", column.action(row, index, rows));
10337
10614
  if (action) {
10338
- cellContent = /* @__PURE__ */ React64.createElement(Button.Secondary, __spreadValues({
10615
+ cellContent = /* @__PURE__ */ React65.createElement(Button.Secondary, __spreadValues({
10339
10616
  dense: true
10340
10617
  }, action));
10341
10618
  }
@@ -10344,30 +10621,30 @@ var renderCell = (column, row, index, rows) => {
10344
10621
  } else if (column.type === "item") {
10345
10622
  const item = column.item(row, index, rows);
10346
10623
  if (item) {
10347
- cellContent = /* @__PURE__ */ React64.createElement(Item4, __spreadValues({}, item));
10624
+ cellContent = /* @__PURE__ */ React65.createElement(Item4, __spreadValues({}, item));
10348
10625
  }
10349
10626
  } else if (column.formatter) {
10350
10627
  cellContent = column.formatter(row[column.field], row, index, rows);
10351
10628
  } else {
10352
10629
  cellContent = row[column.field];
10353
10630
  }
10354
- 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;
10355
10632
  };
10356
10633
  DataList2.Skeleton = DataListSkeleton;
10357
10634
 
10358
10635
  // src/molecules/DataTable/DataTable.tsx
10359
- import React67 from "react";
10636
+ import React68 from "react";
10360
10637
  import compact2 from "lodash/compact";
10361
10638
  import isFunction2 from "lodash/isFunction";
10362
10639
 
10363
10640
  // src/molecules/Table/Table.tsx
10364
- import React66 from "react";
10641
+ import React67 from "react";
10365
10642
 
10366
10643
  // src/utils/table/useScrollTarget.ts
10367
- import React65 from "react";
10644
+ import React66 from "react";
10368
10645
  var useScrollTarget = (callback) => {
10369
- const targetRef = React65.useRef(null);
10370
- React65.useLayoutEffect(() => {
10646
+ const targetRef = React66.useRef(null);
10647
+ React66.useLayoutEffect(() => {
10371
10648
  const observer = new IntersectionObserver((entries) => entries[0].isIntersecting && callback && callback(), {
10372
10649
  root: null,
10373
10650
  rootMargin: `0px 0px 200px 0px`
@@ -10385,12 +10662,12 @@ var Table2 = (_a) => {
10385
10662
  var _b = _a, { children, onPrev, onNext } = _b, rest = __objRest(_b, ["children", "onPrev", "onNext"]);
10386
10663
  const bottomRef = useScrollTarget(onNext);
10387
10664
  const topRef = useScrollTarget(onPrev);
10388
- return /* @__PURE__ */ React66.createElement("div", {
10665
+ return /* @__PURE__ */ React67.createElement("div", {
10389
10666
  className: classNames("Aquarium-Table", tw("relative w-full"))
10390
- }, /* @__PURE__ */ React66.createElement("div", {
10667
+ }, /* @__PURE__ */ React67.createElement("div", {
10391
10668
  ref: topRef,
10392
10669
  className: tw("absolute top-0 h-1 w-full left-0 bg-transparent")
10393
- }), /* @__PURE__ */ React66.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React66.createElement("div", {
10670
+ }), /* @__PURE__ */ React67.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React67.createElement("div", {
10394
10671
  ref: bottomRef,
10395
10672
  className: tw("absolute bottom-0 h-1 w-full left-0 bg-transparent")
10396
10673
  }));
@@ -10437,13 +10714,13 @@ var DataTable = (_a) => {
10437
10714
  const [sort, updateSort] = useTableSort();
10438
10715
  const sortedRows = sortRowsBy(rows, sort);
10439
10716
  const amountOfColumns = columns.length + (menu ? 1 : 0);
10440
- const PaginationFooter = React67.useCallback(
10441
- ({ 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", {
10442
10719
  colSpan: amountOfColumns
10443
10720
  }, children))),
10444
10721
  [amountOfColumns]
10445
10722
  );
10446
- return /* @__PURE__ */ React67.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
10723
+ return /* @__PURE__ */ React68.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
10447
10724
  className: classNames(
10448
10725
  "Aquarium-DataTable",
10449
10726
  tw({
@@ -10452,30 +10729,30 @@ var DataTable = (_a) => {
10452
10729
  "table-fixed": layout === "fixed"
10453
10730
  })
10454
10731
  )
10455
- }), /* @__PURE__ */ React67.createElement(Table2.Head, {
10732
+ }), /* @__PURE__ */ React68.createElement(Table2.Head, {
10456
10733
  sticky
10457
10734
  }, compact2([
10458
10735
  ...columns.map((column) => {
10459
- const content = column.headerTooltip && !column.headerInvisible ? /* @__PURE__ */ React67.createElement(Tooltip, {
10736
+ const content = column.headerTooltip && !column.headerInvisible ? /* @__PURE__ */ React68.createElement(Tooltip, {
10460
10737
  placement: column.headerTooltip.placement,
10461
10738
  content: column.headerTooltip.content
10462
10739
  }, column.headerName) : !column.headerInvisible && column.headerName;
10463
- 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({
10464
10741
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
10465
10742
  onClick: () => updateSort(column),
10466
10743
  style: { width: column.width },
10467
10744
  "aria-label": column.headerInvisible ? column.headerName : void 0
10468
- }, 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)), {
10469
10746
  style: { width: column.width },
10470
10747
  "aria-label": column.headerInvisible ? column.headerName : void 0
10471
10748
  }), content);
10472
10749
  }),
10473
- menu ? /* @__PURE__ */ React67.createElement(Table2.Cell, {
10750
+ menu ? /* @__PURE__ */ React68.createElement(Table2.Cell, {
10474
10751
  key: "__contextMenu",
10475
10752
  align: "right",
10476
10753
  "aria-label": menuAriaLabel
10477
10754
  }, menuHeaderName) : null
10478
- ])), /* @__PURE__ */ React67.createElement(List2, {
10755
+ ])), /* @__PURE__ */ React68.createElement(List2, {
10479
10756
  container: Table2.Body,
10480
10757
  paginationContainer: PaginationFooter,
10481
10758
  pagination,
@@ -10483,12 +10760,12 @@ var DataTable = (_a) => {
10483
10760
  renderItem: (row, index) => {
10484
10761
  var _a2;
10485
10762
  const isRowDisabled = (_a2 = disabled == null ? void 0 : disabled(row, index, sortedRows)) != null ? _a2 : false;
10486
- return /* @__PURE__ */ React67.createElement(Table2.Row, {
10763
+ return /* @__PURE__ */ React68.createElement(Table2.Row, {
10487
10764
  key: row.id,
10488
10765
  disabled: isRowDisabled
10489
- }, /* @__PURE__ */ React67.createElement(List2, {
10766
+ }, /* @__PURE__ */ React68.createElement(List2, {
10490
10767
  items: columns,
10491
- 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))
10492
10769
  }), renderRowMenu2(row, index, { menu, menuAriaLabel, onAction, onMenuOpenChange }));
10493
10770
  }
10494
10771
  }));
@@ -10501,12 +10778,12 @@ var renderRowMenu2 = (row, index, {
10501
10778
  }) => {
10502
10779
  if (menu) {
10503
10780
  const menuContent = isFunction2(menu) ? menu(row, index) : menu;
10504
- return /* @__PURE__ */ React67.createElement(Table2.Cell, {
10781
+ return /* @__PURE__ */ React68.createElement(Table2.Cell, {
10505
10782
  align: "right"
10506
- }, menuContent && /* @__PURE__ */ React67.createElement(DropdownMenu2, {
10783
+ }, menuContent && /* @__PURE__ */ React68.createElement(DropdownMenu2, {
10507
10784
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
10508
10785
  onOpenChange: onMenuOpenChange
10509
- }, /* @__PURE__ */ React67.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React67.createElement(Button.Icon, {
10786
+ }, /* @__PURE__ */ React68.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React68.createElement(Button.Icon, {
10510
10787
  "aria-label": menuAriaLabel,
10511
10788
  icon: import_more3.default
10512
10789
  })), menuContent));
@@ -10519,14 +10796,14 @@ var renderCell2 = (column, row, index, rows) => {
10519
10796
  if (column.type === "status") {
10520
10797
  const status = column.status(row, index, rows);
10521
10798
  if (status) {
10522
- cellContent = /* @__PURE__ */ React67.createElement(StatusChip, __spreadValues({
10799
+ cellContent = /* @__PURE__ */ React68.createElement(StatusChip, __spreadValues({
10523
10800
  dense: true
10524
10801
  }, status));
10525
10802
  }
10526
10803
  } else if (column.type === "action") {
10527
10804
  const action = renameProperty("text", "children", column.action(row, index, rows));
10528
10805
  if (action) {
10529
- cellContent = /* @__PURE__ */ React67.createElement(Button.Secondary, __spreadValues({
10806
+ cellContent = /* @__PURE__ */ React68.createElement(Button.Secondary, __spreadValues({
10530
10807
  dense: true
10531
10808
  }, action));
10532
10809
  }
@@ -10535,22 +10812,22 @@ var renderCell2 = (column, row, index, rows) => {
10535
10812
  } else if (column.type === "item") {
10536
10813
  const item = column.item(row, index, rows);
10537
10814
  if (item) {
10538
- cellContent = /* @__PURE__ */ React67.createElement(Item4, __spreadValues({}, item));
10815
+ cellContent = /* @__PURE__ */ React68.createElement(Item4, __spreadValues({}, item));
10539
10816
  }
10540
10817
  } else if (column.formatter) {
10541
10818
  cellContent = column.formatter(row[column.field], row, index, rows);
10542
10819
  } else {
10543
10820
  cellContent = row[column.field];
10544
10821
  }
10545
- 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;
10546
10823
  };
10547
10824
  DataTable.Skeleton = DataListSkeleton;
10548
10825
 
10549
10826
  // src/molecules/Dialog/Dialog.tsx
10550
- import React69 from "react";
10827
+ import React70 from "react";
10551
10828
  import { useDialog } from "@react-aria/dialog";
10552
10829
  import { Overlay as Overlay2, useModalOverlay } from "@react-aria/overlays";
10553
- import { useId as useId2 } from "@react-aria/utils";
10830
+ import { useId as useId7 } from "@react-aria/utils";
10554
10831
  import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
10555
10832
  import omit8 from "lodash/omit";
10556
10833
 
@@ -10574,10 +10851,10 @@ var DIALOG_ICONS_AND_COLORS = {
10574
10851
  };
10575
10852
 
10576
10853
  // src/atoms/Modal/Modal.tsx
10577
- import React68 from "react";
10854
+ import React69 from "react";
10578
10855
  var Modal = (_a) => {
10579
10856
  var _b = _a, { children, className, open } = _b, rest = __objRest(_b, ["children", "className", "open"]);
10580
- return open ? /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10857
+ return open ? /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10581
10858
  className: classNames(
10582
10859
  tw("inset-0 overflow-y-auto z-modal flex justify-center items-center fixed py-7"),
10583
10860
  className
@@ -10586,14 +10863,14 @@ var Modal = (_a) => {
10586
10863
  };
10587
10864
  Modal.BackDrop = (_a) => {
10588
10865
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10589
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10866
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10590
10867
  className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-primary-100 opacity-60"), className)
10591
10868
  }));
10592
10869
  };
10593
- Modal.Dialog = React68.forwardRef(
10870
+ Modal.Dialog = React69.forwardRef(
10594
10871
  (_a, ref) => {
10595
10872
  var _b = _a, { children, className, size = "sm" } = _b, rest = __objRest(_b, ["children", "className", "size"]);
10596
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({
10873
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({
10597
10874
  ref,
10598
10875
  "aria-modal": "true"
10599
10876
  }, rest), {
@@ -10611,31 +10888,31 @@ Modal.Dialog = React68.forwardRef(
10611
10888
  );
10612
10889
  Modal.Header = (_a) => {
10613
10890
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10614
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10891
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10615
10892
  className: classNames(tw("px-7 py-6 gap-3 flex items-center"), className)
10616
10893
  }), children);
10617
10894
  };
10618
10895
  Modal.HeaderImage = (_a) => {
10619
10896
  var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
10620
10897
  const common = tw("h-[120px] min-h-[120px] w-full ");
10621
- return backgroundImage ? /* @__PURE__ */ React68.createElement("img", __spreadProps(__spreadValues({
10898
+ return backgroundImage ? /* @__PURE__ */ React69.createElement("img", __spreadProps(__spreadValues({
10622
10899
  "aria-hidden": true,
10623
10900
  src: backgroundImage != null ? backgroundImage : void 0
10624
10901
  }, rest), {
10625
10902
  className: classNames(common, tw("object-cover"), className)
10626
- })) : /* @__PURE__ */ React68.createElement("div", {
10903
+ })) : /* @__PURE__ */ React69.createElement("div", {
10627
10904
  className: classNames(common, tw("bg-grey-5"), className)
10628
10905
  });
10629
10906
  };
10630
10907
  Modal.CloseButtonContainer = (_a) => {
10631
10908
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10632
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10909
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10633
10910
  className: classNames(tw("absolute top-[20px] right-[28px]"), className)
10634
10911
  }));
10635
10912
  };
10636
10913
  Modal.Title = (_a) => {
10637
10914
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10638
- return /* @__PURE__ */ React68.createElement(Typography, __spreadValues({
10915
+ return /* @__PURE__ */ React69.createElement(Typography, __spreadValues({
10639
10916
  htmlTag: "h2",
10640
10917
  variant: "subheading",
10641
10918
  color: "grey-90",
@@ -10644,52 +10921,52 @@ Modal.Title = (_a) => {
10644
10921
  };
10645
10922
  Modal.Subtitle = (_a) => {
10646
10923
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
10647
- return /* @__PURE__ */ React68.createElement(Typography, __spreadValues({
10924
+ return /* @__PURE__ */ React69.createElement(Typography, __spreadValues({
10648
10925
  variant: "small",
10649
10926
  color: "grey-60"
10650
10927
  }, rest), children);
10651
10928
  };
10652
10929
  Modal.TitleContainer = (_a) => {
10653
10930
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10654
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10931
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10655
10932
  className: classNames(tw("flex flex-col grow gap-2"), className)
10656
10933
  }), children);
10657
10934
  };
10658
10935
  Modal.Body = (_a) => {
10659
10936
  var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
10660
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10937
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10661
10938
  className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
10662
10939
  style: __spreadValues({ maxHeight }, style)
10663
10940
  }), children);
10664
10941
  };
10665
10942
  Modal.Footer = (_a) => {
10666
10943
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10667
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10944
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10668
10945
  className: classNames(tw("px-7 py-6"), className)
10669
10946
  }), children);
10670
10947
  };
10671
10948
  Modal.Actions = (_a) => {
10672
10949
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10673
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
10950
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
10674
10951
  className: classNames(tw("flex gap-4 justify-end"), className)
10675
10952
  }), children);
10676
10953
  };
10677
10954
 
10678
10955
  // src/molecules/Dialog/Dialog.tsx
10679
10956
  var Dialog = (props) => {
10680
- const ref = React69.useRef(null);
10957
+ const ref = React70.useRef(null);
10681
10958
  const state = useOverlayTriggerState2({ isOpen: props.open });
10682
10959
  const { modalProps, underlayProps } = useModalOverlay({}, state, ref);
10683
10960
  if (!state.isOpen) {
10684
10961
  return null;
10685
10962
  }
10686
- return /* @__PURE__ */ React69.createElement(Overlay2, null, /* @__PURE__ */ React69.createElement(Modal, {
10963
+ return /* @__PURE__ */ React70.createElement(Overlay2, null, /* @__PURE__ */ React70.createElement(Modal, {
10687
10964
  className: "Aquarium-Dialog",
10688
10965
  open: true
10689
- }, /* @__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({
10690
10967
  ref,
10691
10968
  size: "sm"
10692
- }, modalProps), /* @__PURE__ */ React69.createElement(DialogWrapper, __spreadValues({}, props)))));
10969
+ }, modalProps), /* @__PURE__ */ React70.createElement(DialogWrapper, __spreadValues({}, props)))));
10693
10970
  };
10694
10971
  var DialogWrapper = ({
10695
10972
  title,
@@ -10698,41 +10975,41 @@ var DialogWrapper = ({
10698
10975
  primaryAction,
10699
10976
  secondaryAction
10700
10977
  }) => {
10701
- const ref = React69.useRef(null);
10702
- const labelledBy = useId2();
10703
- const describedBy = useId2();
10978
+ const ref = React70.useRef(null);
10979
+ const labelledBy = useId7();
10980
+ const describedBy = useId7();
10704
10981
  const { dialogProps } = useDialog(
10705
10982
  { "role": "alertdialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
10706
10983
  ref
10707
10984
  );
10708
- return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({
10985
+ return /* @__PURE__ */ React70.createElement("div", __spreadProps(__spreadValues({
10709
10986
  ref
10710
10987
  }, dialogProps), {
10711
10988
  className: tw("outline-none")
10712
- }), /* @__PURE__ */ React69.createElement(Modal.Header, {
10989
+ }), /* @__PURE__ */ React70.createElement(Modal.Header, {
10713
10990
  className: tw("icon-stroke-2")
10714
- }, /* @__PURE__ */ React69.createElement(Icon, {
10991
+ }, /* @__PURE__ */ React70.createElement(Icon, {
10715
10992
  icon: DIALOG_ICONS_AND_COLORS[type].icon,
10716
10993
  color: DIALOG_ICONS_AND_COLORS[type].color,
10717
10994
  fontSize: 20
10718
- }), /* @__PURE__ */ React69.createElement(Modal.Title, {
10995
+ }), /* @__PURE__ */ React70.createElement(Modal.Title, {
10719
10996
  id: labelledBy,
10720
10997
  variant: "large",
10721
10998
  color: DIALOG_ICONS_AND_COLORS[type].color
10722
- }, title)), /* @__PURE__ */ React69.createElement(Modal.Body, {
10999
+ }, title)), /* @__PURE__ */ React70.createElement(Modal.Body, {
10723
11000
  id: describedBy
10724
- }, /* @__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({
10725
11002
  key: secondaryAction.text
10726
- }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React69.createElement(Button.Secondary, __spreadValues({
11003
+ }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React70.createElement(Button.Secondary, __spreadValues({
10727
11004
  key: primaryAction.text
10728
11005
  }, omit8(primaryAction, "text")), primaryAction.text))));
10729
11006
  };
10730
11007
 
10731
11008
  // src/molecules/Dropdown/Dropdown.tsx
10732
- import React72 from "react";
11009
+ import React73 from "react";
10733
11010
 
10734
11011
  // src/molecules/Popover/Popover.tsx
10735
- import React71, { useRef as useRef8 } from "react";
11012
+ import React72, { useRef as useRef7 } from "react";
10736
11013
  import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
10737
11014
  import { useOverlayTrigger } from "@react-aria/overlays";
10738
11015
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
@@ -10740,12 +11017,12 @@ import { useOverlayTriggerState as useOverlayTriggerState3 } from "@react-statel
10740
11017
  import classNames7 from "classnames";
10741
11018
 
10742
11019
  // src/molecules/Popover/Dialog.tsx
10743
- import React70 from "react";
11020
+ import React71 from "react";
10744
11021
  import { useDialog as useDialog2 } from "@react-aria/dialog";
10745
11022
  var Dialog2 = ({ children }) => {
10746
- const ref = React70.useRef(null);
11023
+ const ref = React71.useRef(null);
10747
11024
  const { dialogProps } = useDialog2({}, ref);
10748
- return /* @__PURE__ */ React70.createElement("div", __spreadProps(__spreadValues({
11025
+ return /* @__PURE__ */ React71.createElement("div", __spreadProps(__spreadValues({
10749
11026
  ref
10750
11027
  }, dialogProps), {
10751
11028
  className: tw("outline-none")
@@ -10776,24 +11053,24 @@ var Popover2 = (props) => {
10776
11053
  crossOffset,
10777
11054
  shouldFlip
10778
11055
  } = props;
10779
- const triggerRef = useRef8(null);
11056
+ const triggerRef = useRef7(null);
10780
11057
  const state = useOverlayTriggerState3(props);
10781
11058
  const { triggerProps, overlayProps } = useOverlayTrigger({ type: type != null ? type : "dialog" }, state, triggerRef);
10782
- return /* @__PURE__ */ React71.createElement(PopoverContext.Provider, {
11059
+ return /* @__PURE__ */ React72.createElement(PopoverContext.Provider, {
10783
11060
  value: {
10784
11061
  state
10785
11062
  }
10786
- }, React71.Children.map(props.children, (child) => {
11063
+ }, React72.Children.map(props.children, (child) => {
10787
11064
  if (isComponentType(child, Popover2.Trigger)) {
10788
- return /* @__PURE__ */ React71.createElement(PressResponder2, __spreadValues({
11065
+ return /* @__PURE__ */ React72.createElement(PressResponder2, __spreadValues({
10789
11066
  ref: triggerRef
10790
- }, triggerProps), /* @__PURE__ */ React71.createElement(PopoverTriggerWrapper, {
11067
+ }, triggerProps), /* @__PURE__ */ React72.createElement(PopoverTriggerWrapper, {
10791
11068
  "data-testid": props["data-testid"],
10792
11069
  "aria-controls": id
10793
11070
  }, child.props.children));
10794
11071
  }
10795
11072
  if (isComponentType(child, Popover2.Panel)) {
10796
- return state.isOpen && /* @__PURE__ */ React71.createElement(PopoverOverlay, __spreadValues({
11073
+ return state.isOpen && /* @__PURE__ */ React72.createElement(PopoverOverlay, __spreadValues({
10797
11074
  triggerRef: targetRef != null ? targetRef : triggerRef,
10798
11075
  state,
10799
11076
  placement,
@@ -10804,7 +11081,7 @@ var Popover2 = (props) => {
10804
11081
  offset,
10805
11082
  crossOffset,
10806
11083
  shouldFlip
10807
- }, 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);
10808
11085
  }
10809
11086
  throw new Error("Invalid children element type");
10810
11087
  }));
@@ -10823,7 +11100,7 @@ var asPopoverButton = (Component, displayName) => {
10823
11100
  state.close();
10824
11101
  onClick == null ? void 0 : onClick(e);
10825
11102
  };
10826
- return /* @__PURE__ */ React71.createElement(Component, __spreadProps(__spreadValues({}, props), {
11103
+ return /* @__PURE__ */ React72.createElement(Component, __spreadProps(__spreadValues({}, props), {
10827
11104
  onClick: handleClick
10828
11105
  }));
10829
11106
  };
@@ -10835,10 +11112,10 @@ Popover2.Button = PopoverButton;
10835
11112
  var PopoverTriggerWrapper = (_a) => {
10836
11113
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
10837
11114
  var _a2;
10838
- const ref = useRef8(null);
10839
- const trigger = React71.Children.only(children);
11115
+ const ref = useRef7(null);
11116
+ const trigger = React72.Children.only(children);
10840
11117
  const { pressProps } = usePress2(__spreadProps(__spreadValues({}, rest), { ref }));
10841
- return React71.cloneElement(trigger, __spreadProps(__spreadValues({
11118
+ return React72.cloneElement(trigger, __spreadProps(__spreadValues({
10842
11119
  "ref": ref
10843
11120
  }, mergeProps3(pressProps, trigger.props)), {
10844
11121
  "aria-controls": (_a2 = rest["aria-controls"]) != null ? _a2 : pressProps["aria-controls"]
@@ -10847,10 +11124,10 @@ var PopoverTriggerWrapper = (_a) => {
10847
11124
 
10848
11125
  // src/molecules/Dropdown/Dropdown.tsx
10849
11126
  var Dropdown = ({ children, content, placement = "bottom-left" }) => {
10850
- return /* @__PURE__ */ React72.createElement(Popover2, {
11127
+ return /* @__PURE__ */ React73.createElement(Popover2, {
10851
11128
  type: "menu",
10852
11129
  placement
10853
- }, /* @__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, {
10854
11131
  className: "Aquarium-Dropdown"
10855
11132
  }, content));
10856
11133
  };
@@ -10861,26 +11138,26 @@ var DropdownMenu3 = ({
10861
11138
  triggerId,
10862
11139
  setClose = () => void 0
10863
11140
  }) => {
10864
- const menuRef = React72.useRef(null);
10865
- React72.useEffect(() => {
11141
+ const menuRef = React73.useRef(null);
11142
+ React73.useEffect(() => {
10866
11143
  const id = setTimeout(() => {
10867
11144
  var _a, _b, _c;
10868
11145
  return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
10869
11146
  });
10870
11147
  return () => clearTimeout(id);
10871
11148
  }, [menuRef.current]);
10872
- return /* @__PURE__ */ React72.createElement("div", {
11149
+ return /* @__PURE__ */ React73.createElement("div", {
10873
11150
  style: { minWidth: "250px" },
10874
11151
  className: tw("py-3 bg-white")
10875
- }, !!title && /* @__PURE__ */ React72.createElement("div", {
11152
+ }, !!title && /* @__PURE__ */ React73.createElement("div", {
10876
11153
  className: tw("px-4 py-4 text-left text-grey-100 typography-default-strong")
10877
- }, title), /* @__PURE__ */ React72.createElement("ol", {
11154
+ }, title), /* @__PURE__ */ React73.createElement("ol", {
10878
11155
  role: "menu",
10879
11156
  ref: menuRef,
10880
11157
  id: contentId,
10881
11158
  "aria-labelledby": triggerId
10882
- }, React72.Children.map(children, (child) => {
10883
- return React72.cloneElement(child, { setClose });
11159
+ }, React73.Children.map(children, (child) => {
11160
+ return React73.cloneElement(child, { setClose });
10884
11161
  })));
10885
11162
  };
10886
11163
  var DropdownItem = (_a) => {
@@ -10935,10 +11212,10 @@ var DropdownItem = (_a) => {
10935
11212
  handleSelect();
10936
11213
  }
10937
11214
  };
10938
- const itemContent = /* @__PURE__ */ React72.createElement("div", {
11215
+ const itemContent = /* @__PURE__ */ React73.createElement("div", {
10939
11216
  className: tw("py-3 px-4")
10940
11217
  }, children);
10941
- return /* @__PURE__ */ React72.createElement("li", __spreadProps(__spreadValues({
11218
+ return /* @__PURE__ */ React73.createElement("li", __spreadProps(__spreadValues({
10942
11219
  role: "menuitem",
10943
11220
  tabIndex: -1,
10944
11221
  onClick: handleClick,
@@ -10949,11 +11226,11 @@ var DropdownItem = (_a) => {
10949
11226
  "text-grey-10 cursor-not-allowed": disabled,
10950
11227
  "text-primary-70 hover:text-primary-80": color === "danger" && !disabled
10951
11228
  })
10952
- }), tooltip ? /* @__PURE__ */ React72.createElement(Tooltip, {
11229
+ }), tooltip ? /* @__PURE__ */ React73.createElement(Tooltip, {
10953
11230
  content: tooltip,
10954
11231
  placement: tooltipPlacement,
10955
11232
  inline: false
10956
- }, /* @__PURE__ */ React72.createElement("div", {
11233
+ }, /* @__PURE__ */ React73.createElement("div", {
10957
11234
  tabIndex: 0,
10958
11235
  className: tw("grow")
10959
11236
  }, itemContent)) : itemContent);
@@ -10963,21 +11240,6 @@ Dropdown.Item = DropdownItem;
10963
11240
 
10964
11241
  // src/molecules/EmptyState/EmptyState.tsx
10965
11242
  import React74 from "react";
10966
-
10967
- // src/utils/actions.tsx
10968
- import React73 from "react";
10969
- import omit9 from "lodash/omit";
10970
- var renderAction = (kind = "primary", action) => {
10971
- return isLink(action) ? /* @__PURE__ */ React73.createElement(Button.ExternalLink, __spreadValues({
10972
- key: action.text,
10973
- kind
10974
- }, omit9(action, "text")), action.text) : /* @__PURE__ */ React73.createElement(Button, __spreadValues({
10975
- key: action.text,
10976
- kind
10977
- }, omit9(action, "text")), action.text);
10978
- };
10979
-
10980
- // src/molecules/EmptyState/EmptyState.tsx
10981
11243
  var EmptyStateLayout = /* @__PURE__ */ ((EmptyStateLayout2) => {
10982
11244
  EmptyStateLayout2["Vertical"] = "vertical";
10983
11245
  EmptyStateLayout2["Horizontal"] = "horizontal";
@@ -11070,8 +11332,8 @@ var EmptyState = ({
11070
11332
  gap: "4",
11071
11333
  justifyContent: "center",
11072
11334
  alignItems: "center",
11073
- wrap: "wrap"
11074
- }, 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, {
11075
11337
  marginTop: "5"
11076
11338
  }, /* @__PURE__ */ React74.createElement(Typography2.Small, {
11077
11339
  color: "grey-60"
@@ -11206,7 +11468,6 @@ var ListItem = ({ name, icon, active = false }) => {
11206
11468
  className: `px-4 py-2 rounded-full ${active ? "bg-grey-5" : "hover:bg-grey-0"}`
11207
11469
  }, /* @__PURE__ */ React80.createElement("img", {
11208
11470
  src: icon,
11209
- alt: name,
11210
11471
  className: "inline mr-4",
11211
11472
  height: 28,
11212
11473
  width: 28
@@ -11217,13 +11478,13 @@ var ListItem = ({ name, icon, active = false }) => {
11217
11478
  import React82 from "react";
11218
11479
  import { useDialog as useDialog3 } from "@react-aria/dialog";
11219
11480
  import { Overlay as Overlay3, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
11220
- import { useId as useId3 } from "@react-aria/utils";
11481
+ import { useId as useId8 } from "@react-aria/utils";
11221
11482
  import { useOverlayTriggerState as useOverlayTriggerState4 } from "@react-stately/overlays";
11222
11483
  import castArray from "lodash/castArray";
11223
- import omit10 from "lodash/omit";
11484
+ import omit9 from "lodash/omit";
11224
11485
 
11225
11486
  // src/molecules/Tabs/Tabs.tsx
11226
- 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";
11227
11488
  import isNumber5 from "lodash/isNumber";
11228
11489
  import kebabCase from "lodash/kebabCase";
11229
11490
  var import_chevronLeft4 = __toESM(require_chevronLeft());
@@ -11354,9 +11615,9 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
11354
11615
  const [selected, setSelected] = useState10((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
11355
11616
  const [leftCaret, showLeftCaret] = useState10(false);
11356
11617
  const [rightCaret, showRightCaret] = useState10(false);
11357
- const parentRef = useRef9(null);
11358
- const containerRef = useRef9(null);
11359
- const tabsRef = useRef9(null);
11618
+ const parentRef = useRef8(null);
11619
+ const containerRef = useRef8(null);
11620
+ const tabsRef = useRef8(null);
11360
11621
  const revealSelectedTab = ({ smooth }) => {
11361
11622
  var _a2, _b2;
11362
11623
  const container = containerRef.current;
@@ -11547,8 +11808,8 @@ var Modal2 = (_a) => {
11547
11808
  var ModalWrapper = React82.forwardRef(
11548
11809
  (_a, ref) => {
11549
11810
  var _b = _a, { title, subtitle, headerImage, primaryAction, secondaryActions, children, onClose } = _b, props = __objRest(_b, ["title", "subtitle", "headerImage", "primaryAction", "secondaryActions", "children", "onClose"]);
11550
- const labelledBy = useId3();
11551
- const describedBy = useId3();
11811
+ const labelledBy = useId8();
11812
+ const describedBy = useId8();
11552
11813
  const { dialogProps } = useDialog3(
11553
11814
  { "role": "dialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
11554
11815
  ref
@@ -11578,7 +11839,7 @@ var ModalWrapper = React82.forwardRef(
11578
11839
  }, action), text);
11579
11840
  }), primaryAction && /* @__PURE__ */ React82.createElement(Button.Primary, __spreadValues({
11580
11841
  key: primaryAction.text
11581
- }, omit10(primaryAction, "text")), primaryAction.text))));
11842
+ }, omit9(primaryAction, "text")), primaryAction.text))));
11582
11843
  }
11583
11844
  );
11584
11845
  var ModalTabs = createTabsComponent(
@@ -11593,11 +11854,11 @@ var ModalTabs = createTabsComponent(
11593
11854
  );
11594
11855
 
11595
11856
  // src/molecules/MultiInput/MultiInput.tsx
11596
- 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";
11597
11859
  import castArray2 from "lodash/castArray";
11598
11860
  import identity from "lodash/identity";
11599
- import omit11 from "lodash/omit";
11600
- import uniqueId5 from "lodash/uniqueId";
11861
+ import omit10 from "lodash/omit";
11601
11862
 
11602
11863
  // src/molecules/MultiInput/InputChip.tsx
11603
11864
  import React83 from "react";
@@ -11690,7 +11951,7 @@ var MultiInputBase = (_a) => {
11690
11951
  "valid"
11691
11952
  ]);
11692
11953
  var _a2;
11693
- const inputRef = useRef10(null);
11954
+ const inputRef = useRef9(null);
11694
11955
  const [items, setItems] = useState11((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
11695
11956
  const [hasFocus, setFocus] = useState11(false);
11696
11957
  const keyCodes = [delimiter !== "enter" ? " " : null, delimiter !== "space" ? "Enter" : null].filter(identity);
@@ -11824,21 +12085,22 @@ var MultiInput = (props) => {
11824
12085
  var _a2;
11825
12086
  setValue((_a2 = props.value) != null ? _a2 : []);
11826
12087
  }, [JSON.stringify(props.value)]);
11827
- const id = useRef10((_e = (_d = props.id) != null ? _d : props.name) != null ? _e : `multiinput-${uniqueId5()}`);
11828
- 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();
11829
12091
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
11830
12092
  const labelControlProps = getLabelControlProps(props);
11831
- const baseProps = omit11(props, Object.keys(labelControlProps));
12093
+ const baseProps = omit10(props, Object.keys(labelControlProps));
11832
12094
  return /* @__PURE__ */ React84.createElement(LabelControl, __spreadProps(__spreadValues({
11833
- id: `${id.current}-label`,
11834
- htmlFor: `${id.current}-input`,
12095
+ id: `${id}-label`,
12096
+ htmlFor: `${id}-input`,
11835
12097
  messageId: errorMessageId
11836
12098
  }, labelControlProps), {
11837
12099
  length: value.length,
11838
12100
  maxLength,
11839
12101
  className: "Aquarium-MultiInput"
11840
12102
  }), /* @__PURE__ */ React84.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
11841
- id: `${id.current}-input`,
12103
+ id: `${id}-input`,
11842
12104
  onChange: (value2) => {
11843
12105
  var _a2;
11844
12106
  setValue(value2 != null ? value2 : []);
@@ -11854,14 +12116,14 @@ MultiInput.Skeleton = MultiInputSkeleton;
11854
12116
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
11855
12117
 
11856
12118
  // src/molecules/MultiSelect/MultiSelect.tsx
11857
- 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";
11858
12120
  import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
12121
+ import { useId as useId10 } from "@react-aria/utils";
11859
12122
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
11860
12123
  import isEqual from "lodash/isEqual";
11861
12124
  import isNil2 from "lodash/isNil";
11862
- import omit12 from "lodash/omit";
12125
+ import omit11 from "lodash/omit";
11863
12126
  import omitBy from "lodash/omitBy";
11864
- import uniqueId6 from "lodash/uniqueId";
11865
12127
  import { matchSorter as matchSorter2 } from "match-sorter";
11866
12128
  var MultiSelectBase = (_a) => {
11867
12129
  var _b = _a, {
@@ -11912,10 +12174,10 @@ var MultiSelectBase = (_a) => {
11912
12174
  "children"
11913
12175
  ]);
11914
12176
  var _a2;
11915
- const popoverRef = useRef11(null);
11916
- const targetRef = useRef11(null);
11917
- const menuRef = useRef11(null);
11918
- const inputRef = useRef11(null);
12177
+ const popoverRef = useRef10(null);
12178
+ const targetRef = useRef10(null);
12179
+ const menuRef = useRef10(null);
12180
+ const inputRef = useRef10(null);
11919
12181
  const [inputValue, setInputValue] = useState12("");
11920
12182
  const [hasFocus, setFocus] = useState12(false);
11921
12183
  const { selectedItems, addSelectedItem, removeSelectedItem, getDropdownProps, getSelectedItemProps } = useMultipleSelection(
@@ -12083,19 +12345,20 @@ var MultiSelect = (_a) => {
12083
12345
  "emptyState"
12084
12346
  ]);
12085
12347
  var _a2;
12086
- const id = useRef11((_a2 = props.id) != null ? _a2 : `multiselect-${uniqueId6()}`);
12087
- const errorMessageId = uniqueId6();
12348
+ const defaultId = useId10();
12349
+ const id = (_a2 = props.id) != null ? _a2 : defaultId;
12350
+ const errorMessageId = useId10();
12088
12351
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12089
12352
  const labelControlProps = getLabelControlProps(props);
12090
- const baseProps = omit12(props, Object.keys(labelControlProps));
12353
+ const baseProps = omit11(props, Object.keys(labelControlProps));
12091
12354
  return /* @__PURE__ */ React85.createElement(LabelControl, __spreadProps(__spreadValues({
12092
- id: `${id.current}-label`,
12093
- htmlFor: `${id.current}-input`,
12355
+ id: `${id}-label`,
12356
+ htmlFor: `${id}-input`,
12094
12357
  messageId: errorMessageId
12095
12358
  }, labelControlProps), {
12096
12359
  className: "Aquarium-MultiSelect"
12097
12360
  }), /* @__PURE__ */ React85.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
12098
- id: id.current,
12361
+ id,
12099
12362
  options,
12100
12363
  emptyState,
12101
12364
  disabled: props.disabled,
@@ -12107,14 +12370,15 @@ MultiSelect.Skeleton = MultiSelectSkeleton;
12107
12370
  MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
12108
12371
 
12109
12372
  // src/molecules/NativeSelect/NativeSelect.tsx
12110
- import React86, { useRef as useRef12 } from "react";
12111
- import omit13 from "lodash/omit";
12112
- 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";
12113
12377
  var import_caretDown2 = __toESM(require_caretDown());
12114
12378
  var NativeSelectBase = React86.forwardRef(
12115
12379
  (_a, ref) => {
12116
12380
  var _b = _a, { children, disabled = false, required = false, valid = true, readOnly = false } = _b, props = __objRest(_b, ["children", "disabled", "required", "valid", "readOnly"]);
12117
- const placeholderValue = uniqueId7("default_value_for_placeholder");
12381
+ const placeholderValue = uniqueId("default_value_for_placeholder");
12118
12382
  const defaultValue = props.defaultValue ? props.defaultValue : props.placeholder ? placeholderValue : void 0;
12119
12383
  const handleBlur = (event) => {
12120
12384
  var _a2, _b2;
@@ -12169,21 +12433,22 @@ var NativeSelect = React86.forwardRef(
12169
12433
  (_a, ref) => {
12170
12434
  var _b = _a, { readOnly } = _b, props = __objRest(_b, ["readOnly"]);
12171
12435
  var _a2;
12172
- const id = useRef12((_a2 = props.id) != null ? _a2 : `nativeselect-${uniqueId7()}`);
12173
- const errorMessageId = uniqueId7();
12436
+ const defaultId = useId11();
12437
+ const id = (_a2 = props.id) != null ? _a2 : defaultId;
12438
+ const errorMessageId = useId11();
12174
12439
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12175
12440
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
12176
- const baseProps = omit13(props, Object.keys(labelControlProps));
12441
+ const baseProps = omit12(props, Object.keys(labelControlProps));
12177
12442
  return /* @__PURE__ */ React86.createElement(LabelControl, __spreadProps(__spreadValues({
12178
- id: `${id.current}-label`,
12179
- htmlFor: id.current,
12443
+ id: `${id}-label`,
12444
+ htmlFor: id,
12180
12445
  messageId: errorMessageId
12181
12446
  }, labelControlProps), {
12182
12447
  className: "Aquarium-NativeSelect"
12183
12448
  }), /* @__PURE__ */ React86.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
12184
12449
  ref
12185
12450
  }, baseProps), errorProps), {
12186
- id: id.current,
12451
+ id,
12187
12452
  "data-testid": dataTestId,
12188
12453
  disabled: props.disabled,
12189
12454
  required: props.required,
@@ -12405,7 +12670,7 @@ var CommonPageHeader = ({
12405
12670
  }, /* @__PURE__ */ React90.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React90.createElement(Button.Icon, {
12406
12671
  "aria-label": menuAriaLabel,
12407
12672
  icon: import_more4.default
12408
- })), 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 })));
12409
12674
  };
12410
12675
  var PageHeader2 = (props) => /* @__PURE__ */ React90.createElement(CommonPageHeader, __spreadValues({}, props));
12411
12676
  PageHeader2.displayName = "PageHeader";
@@ -12417,7 +12682,7 @@ PageHeader2.SubHeader.displayName = "PageHeader.SubHeader";
12417
12682
 
12418
12683
  // src/molecules/PopoverDialog/PopoverDialog.tsx
12419
12684
  import React92 from "react";
12420
- import omit14 from "lodash/omit";
12685
+ import omit13 from "lodash/omit";
12421
12686
 
12422
12687
  // src/atoms/PopoverDialog/PopoverDialog.tsx
12423
12688
  import React91 from "react";
@@ -12427,7 +12692,7 @@ var Header2 = (_a) => {
12427
12692
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
12428
12693
  }), children);
12429
12694
  };
12430
- var Title = (_a) => {
12695
+ var Title2 = (_a) => {
12431
12696
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12432
12697
  return /* @__PURE__ */ React91.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
12433
12698
  htmlTag: "h1",
@@ -12456,7 +12721,7 @@ var Actions2 = (_a) => {
12456
12721
  };
12457
12722
  var PopoverDialog = {
12458
12723
  Header: Header2,
12459
- Title,
12724
+ Title: Title2,
12460
12725
  Body,
12461
12726
  Footer: Footer2,
12462
12727
  Actions: Actions2
@@ -12472,11 +12737,11 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
12472
12737
  kind: "secondary-ghost",
12473
12738
  key: secondaryAction.text,
12474
12739
  dense: true
12475
- }, omit14(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React92.createElement(Popover2.Button, __spreadValues({
12740
+ }, omit13(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React92.createElement(Popover2.Button, __spreadValues({
12476
12741
  kind: "ghost",
12477
12742
  key: primaryAction.text,
12478
12743
  dense: true
12479
- }, omit14(primaryAction, "text")), primaryAction.text))));
12744
+ }, omit13(primaryAction, "text")), primaryAction.text))));
12480
12745
  }
12481
12746
  return child;
12482
12747
  };
@@ -12624,7 +12889,7 @@ RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
12624
12889
 
12625
12890
  // src/molecules/RadioButtonGroup/RadioButtonGroup.tsx
12626
12891
  import React96 from "react";
12627
- import uniqueId8 from "lodash/uniqueId";
12892
+ import { useId as useId12 } from "@react-aria/utils";
12628
12893
  var isRadioButton = (c) => {
12629
12894
  return React96.isValidElement(c) && c.type === RadioButton2;
12630
12895
  };
@@ -12650,7 +12915,7 @@ var RadioButtonGroup = (_a) => {
12650
12915
  ]);
12651
12916
  var _a2;
12652
12917
  const [value, setValue] = React96.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
12653
- const errorMessageId = uniqueId8();
12918
+ const errorMessageId = useId12();
12654
12919
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12655
12920
  const labelControlProps = getLabelControlProps(props);
12656
12921
  if (_value !== void 0 && _value !== value) {
@@ -12705,10 +12970,10 @@ RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
12705
12970
 
12706
12971
  // src/molecules/Section/Section.tsx
12707
12972
  import React101 from "react";
12708
- import { useId as useId4 } from "@react-aria/utils";
12973
+ import { useId as useId13 } from "@react-aria/utils";
12709
12974
  import { animated as animated4, useSpring as useSpring3 } from "@react-spring/web";
12710
12975
  import castArray4 from "lodash/castArray";
12711
- import isUndefined8 from "lodash/isUndefined";
12976
+ import isUndefined9 from "lodash/isUndefined";
12712
12977
 
12713
12978
  // src/molecules/Switch/Switch.tsx
12714
12979
  import React98 from "react";
@@ -12908,7 +13173,7 @@ Section3.Body = (_a) => {
12908
13173
  var import_more5 = __toESM(require_more());
12909
13174
  var Section4 = (props) => {
12910
13175
  var _a, _b, _c, _d, _e;
12911
- const { title, subtitle, actions, children } = props;
13176
+ const { title, subtitle, children } = props;
12912
13177
  const _collapsible = title ? (_a = props.collapsible) != null ? _a : false : false;
12913
13178
  const _collapsed = title ? props.collapsed : void 0;
12914
13179
  const _defaultCollapsed = title ? (_b = props.defaultCollapsed) != null ? _b : false : false;
@@ -12919,7 +13184,7 @@ var Section4 = (props) => {
12919
13184
  const onAction = title ? props.onAction : void 0;
12920
13185
  const onMenuOpenChange = title ? props.onMenuOpenChange : void 0;
12921
13186
  const onCollapsedChange = title ? props.onCollapsedChange : void 0;
12922
- if (title && !isUndefined8(props.collapsed) && props.collapsed !== isCollapsed) {
13187
+ if (title && !isUndefined9(props.collapsed) && props.collapsed !== isCollapsed) {
12923
13188
  setCollapsed(props.collapsed);
12924
13189
  }
12925
13190
  const handleTitleClick = () => {
@@ -12943,8 +13208,8 @@ var Section4 = (props) => {
12943
13208
  },
12944
13209
  immediate: !_collapsible
12945
13210
  }), { transform, backgroundColor } = _f, spring = __objRest(_f, ["transform", "backgroundColor"]);
12946
- const toggleId = useId4();
12947
- const regionId = useId4();
13211
+ const toggleId = useId13();
13212
+ const regionId = useId13();
12948
13213
  return /* @__PURE__ */ React101.createElement(Section3, {
12949
13214
  "aria-label": title,
12950
13215
  className: "Aquarium-Section"
@@ -12975,7 +13240,7 @@ var Section4 = (props) => {
12975
13240
  }, /* @__PURE__ */ React101.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React101.createElement(Button.Icon, {
12976
13241
  "aria-label": menuAriaLabel,
12977
13242
  icon: import_more5.default
12978
- })), 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, {
12979
13244
  className: tw(`h-[1px]`),
12980
13245
  style: { backgroundColor }
12981
13246
  })), /* @__PURE__ */ React101.createElement(animated4.div, {
@@ -13201,7 +13466,7 @@ Stepper2.Step = Step2;
13201
13466
 
13202
13467
  // src/molecules/SwitchGroup/SwitchGroup.tsx
13203
13468
  import React105, { useState as useState13 } from "react";
13204
- import uniqueId9 from "lodash/uniqueId";
13469
+ import { useId as useId14 } from "@react-aria/utils";
13205
13470
  var SwitchGroup = (_a) => {
13206
13471
  var _b = _a, {
13207
13472
  value,
@@ -13223,7 +13488,7 @@ var SwitchGroup = (_a) => {
13223
13488
  if (value !== void 0 && value !== selectedItems) {
13224
13489
  setSelectedItems(value);
13225
13490
  }
13226
- const errorMessageId = uniqueId9();
13491
+ const errorMessageId = useId14();
13227
13492
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13228
13493
  const labelControlProps = getLabelControlProps(props);
13229
13494
  const handleChange = (e) => {
@@ -13266,10 +13531,10 @@ SwitchGroup.Skeleton = SwitchGroupSkeleton;
13266
13531
  SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
13267
13532
 
13268
13533
  // src/molecules/Textarea/Textarea.tsx
13269
- import React106, { useRef as useRef13, useState as useState14 } from "react";
13270
- 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";
13271
13537
  import toString2 from "lodash/toString";
13272
- import uniqueId10 from "lodash/uniqueId";
13273
13538
  var TextareaBase = React106.forwardRef(
13274
13539
  (_a, ref) => {
13275
13540
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
@@ -13287,14 +13552,15 @@ TextareaBase.Skeleton = () => /* @__PURE__ */ React106.createElement(Skeleton, {
13287
13552
  var Textarea = React106.forwardRef((props, ref) => {
13288
13553
  var _a, _b, _c;
13289
13554
  const [value, setValue] = useState14((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
13290
- const id = useRef13((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
13291
- const errorMessageId = uniqueId10();
13555
+ const defaultId = useId15();
13556
+ const id = (_c = props.id) != null ? _c : defaultId;
13557
+ const errorMessageId = useId15();
13292
13558
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13293
13559
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
13294
- const baseProps = omit15(props, Object.keys(labelControlProps));
13560
+ const baseProps = omit14(props, Object.keys(labelControlProps));
13295
13561
  return /* @__PURE__ */ React106.createElement(LabelControl, __spreadProps(__spreadValues({
13296
- id: `${id.current}-label`,
13297
- htmlFor: id.current,
13562
+ id: `${id}-label`,
13563
+ htmlFor: id,
13298
13564
  messageId: errorMessageId,
13299
13565
  length: value !== void 0 ? toString2(value).length : void 0
13300
13566
  }, labelControlProps), {
@@ -13302,7 +13568,7 @@ var Textarea = React106.forwardRef((props, ref) => {
13302
13568
  }), /* @__PURE__ */ React106.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
13303
13569
  ref
13304
13570
  }, baseProps), errorProps), {
13305
- id: id.current,
13571
+ id,
13306
13572
  "data-testid": dataTestId,
13307
13573
  onChange: (e) => {
13308
13574
  var _a2;