@aivenio/aquarium 1.61.0 → 1.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/_variables.scss +1 -1
  2. package/dist/atoms.cjs +493 -277
  3. package/dist/atoms.mjs +492 -277
  4. package/dist/src/atoms/DataList/DataList.d.ts +14 -0
  5. package/dist/src/atoms/DataList/DataList.js +29 -1
  6. package/dist/src/atoms/Typography/Typography.d.ts +1 -1
  7. package/dist/src/atoms/Typography/Typography.js +1 -1
  8. package/dist/src/atoms/index.d.ts +1 -0
  9. package/dist/src/atoms/index.js +2 -1
  10. package/dist/src/icons/faceHappy.d.ts +9 -0
  11. package/dist/src/icons/faceHappy.js +11 -0
  12. package/dist/src/icons/faceSad.d.ts +9 -0
  13. package/dist/src/icons/faceSad.js +11 -0
  14. package/dist/src/icons/index.d.ts +2 -0
  15. package/dist/src/icons/index.js +3 -1
  16. package/dist/src/molecules/Button/Button.d.ts +12 -0
  17. package/dist/src/molecules/Button/Button.js +9 -6
  18. package/dist/src/molecules/Combobox/Combobox.d.ts +2 -1
  19. package/dist/src/molecules/Combobox/Combobox.js +6 -3
  20. package/dist/src/molecules/DataList/DataList.d.ts +39 -4
  21. package/dist/src/molecules/DataList/DataList.js +76 -27
  22. package/dist/src/molecules/DataList/DataListComponents.d.ts +2 -1
  23. package/dist/src/molecules/DataList/DataListComponents.js +5 -4
  24. package/dist/src/molecules/DataList/DataListContext.d.ts +8 -0
  25. package/dist/src/molecules/DataList/DataListContext.js +13 -0
  26. package/dist/src/molecules/DataList/DataListToolbar.d.ts +25 -0
  27. package/dist/src/molecules/DataList/DataListToolbar.js +32 -0
  28. package/dist/src/molecules/DataTable/DataTable.js +3 -2
  29. package/dist/src/molecules/MultiSelect/MultiSelect.d.ts +1 -1
  30. package/dist/src/molecules/MultiSelect/MultiSelect.js +1 -1
  31. package/dist/src/molecules/PageHeader/PageHeader.js +3 -2
  32. package/dist/src/molecules/Section/Section.js +3 -2
  33. package/dist/src/utils/table/types.d.ts +2 -1
  34. package/dist/src/utils/table/types.js +1 -1
  35. package/dist/styles.css +18 -0
  36. package/dist/system.cjs +770 -560
  37. package/dist/system.mjs +685 -475
  38. package/dist/tsconfig.module.tsbuildinfo +1 -1
  39. package/dist/types/ContextualMenu.d.ts +2 -0
  40. package/dist/types/ContextualMenu.js +2 -2
  41. package/dist/types/tailwindGenerated.d.ts +1 -1
  42. package/package.json +1 -1
package/dist/system.mjs CHANGED
@@ -2388,6 +2388,38 @@ var require_eyeOpen = __commonJS({
2388
2388
  }
2389
2389
  });
2390
2390
 
2391
+ // src/icons/faceHappy.js
2392
+ var require_faceHappy = __commonJS({
2393
+ "src/icons/faceHappy.js"(exports) {
2394
+ "use strict";
2395
+ var data = {
2396
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.5 13s1.375 1.833 3.667 1.833c2.291 0 3.666-1.833 3.666-1.833m-.916-4.583h.009m-5.51 0h.01m11.907 2.75a9.167 9.167 0 11-18.333 0 9.167 9.167 0 0118.333 0Zm-5.958-2.75a.458.458 0 11-.917 0 .458.458 0 01.917 0Zm-5.5 0a.458.458 0 11-.917 0 .458.458 0 01.917 0Z"/>',
2397
+ "left": 0,
2398
+ "top": 0,
2399
+ "width": 22,
2400
+ "height": 22
2401
+ };
2402
+ exports.__esModule = true;
2403
+ exports.default = data;
2404
+ }
2405
+ });
2406
+
2407
+ // src/icons/faceSad.js
2408
+ var require_faceSad = __commonJS({
2409
+ "src/icons/faceSad.js"(exports) {
2410
+ "use strict";
2411
+ var data = {
2412
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M14.833 14.833S13.458 13 11.167 13C8.875 13 7.5 14.833 7.5 14.833m8.25-6.196c-.362.444-.857.696-1.375.696s-1-.252-1.375-.696m-3.667 0c-.362.444-.857.696-1.375.696s-.999-.252-1.375-.696m13.75 2.53a9.167 9.167 0 11-18.333 0 9.167 9.167 0 0118.333 0Z"/>',
2413
+ "left": 0,
2414
+ "top": 0,
2415
+ "width": 22,
2416
+ "height": 22
2417
+ };
2418
+ exports.__esModule = true;
2419
+ exports.default = data;
2420
+ }
2421
+ });
2422
+
2391
2423
  // src/icons/filter.js
2392
2424
  var require_filter = __commonJS({
2393
2425
  "src/icons/filter.js"(exports) {
@@ -6026,6 +6058,8 @@ var import_expandAll = __toESM(require_expandAll());
6026
6058
  var import_export = __toESM(require_export());
6027
6059
  var import_eyeOff = __toESM(require_eyeOff());
6028
6060
  var import_eyeOpen = __toESM(require_eyeOpen());
6061
+ var import_faceHappy = __toESM(require_faceHappy());
6062
+ var import_faceSad = __toESM(require_faceSad());
6029
6063
  var import_filter = __toESM(require_filter());
6030
6064
  var import_flag = __toESM(require_flag());
6031
6065
  var import_floppyDisk = __toESM(require_floppyDisk());
@@ -6858,8 +6892,8 @@ var asButton = (Component, isDropdownButton) => {
6858
6892
  'Please provide an accessible name as a string only for an icon only button via "aria-label" or "tooltip" prop.'
6859
6893
  );
6860
6894
  }
6861
- if (!!isDropdownButton && kind !== "primary" && kind !== "secondary") {
6862
- throw new Error('Dropdown button is available only for "primary" and "secondary" kinds.');
6895
+ if (!!isDropdownButton && !["primary", "secondary", "ghost"].includes(kind)) {
6896
+ throw new Error('Dropdown button is available only for "primary", "secondary" and "ghost" kinds.');
6863
6897
  }
6864
6898
  if (!!isDropdownButton && !!icon) {
6865
6899
  throw new Error("Dropdown button doesn't support any icon prop.");
@@ -6868,9 +6902,9 @@ var asButton = (Component, isDropdownButton) => {
6868
6902
  throw new Error('Loading button is only supported for "primary" and "secondary" kinds.');
6869
6903
  }
6870
6904
  const buttonContent = () => {
6871
- if (!!isDropdownButton && (kind === "primary" || kind === "secondary")) {
6905
+ if (!!isDropdownButton && (kind === "primary" || kind === "secondary" || kind === "ghost")) {
6872
6906
  return /* @__PURE__ */ React15.createElement(Flexbox, {
6873
- gap: "4",
6907
+ gap: dense ? "2" : "4",
6874
6908
  alignItems: "center",
6875
6909
  justifyContent: "center"
6876
6910
  }, hasChildren && /* @__PURE__ */ React15.createElement("div", null, children), /* @__PURE__ */ React15.createElement(InlineIcon, {
@@ -6880,7 +6914,7 @@ var asButton = (Component, isDropdownButton) => {
6880
6914
  }));
6881
6915
  } else if (icon) {
6882
6916
  return /* @__PURE__ */ React15.createElement(Flexbox, {
6883
- gap: "3",
6917
+ gap: dense ? "2" : "3",
6884
6918
  alignItems: "center",
6885
6919
  justifyContent: "center",
6886
6920
  direction: iconPlacement === "right" ? "row-reverse" : "row"
@@ -7014,6 +7048,13 @@ var SecondaryDropdownButton = React15.forwardRef((props, ref) => /* @__PURE__ */
7014
7048
  })));
7015
7049
  SecondaryDropdownButton.displayName = "Button.SecondaryDropdown";
7016
7050
  Button.SecondaryDropdown = SecondaryDropdownButton;
7051
+ var GhostDropdownButton = React15.forwardRef((props, ref) => /* @__PURE__ */ React15.createElement(DropdownButton, __spreadProps(__spreadValues({
7052
+ ref
7053
+ }, props), {
7054
+ kind: "ghost"
7055
+ })));
7056
+ GhostDropdownButton.displayName = "Button.GhostDropdownButton";
7057
+ Button.GhostDropdown = GhostDropdownButton;
7017
7058
 
7018
7059
  // src/molecules/Typography/Typography.tsx
7019
7060
  import React17 from "react";
@@ -7044,7 +7085,7 @@ var Typography = (_a) => {
7044
7085
  "fontWeight"
7045
7086
  ]);
7046
7087
  const HtmlElement = htmlTag;
7047
- const resolvedColorName = isUndefined6(color) || color === "current" ? "grey-70" : color;
7088
+ const resolvedColorName = isUndefined6(color) || color === "current" ? "default" : color;
7048
7089
  const style = useStyle({ fontWeight });
7049
7090
  return /* @__PURE__ */ React16.createElement(HtmlElement, __spreadValues({
7050
7091
  className: classNames(typographies[variant], `text-${resolvedColorName}`, className),
@@ -9342,6 +9383,7 @@ var ComboboxBase = (_a) => {
9342
9383
  defaultValue,
9343
9384
  value,
9344
9385
  onChange,
9386
+ onSearchChange,
9345
9387
  children,
9346
9388
  valid = true,
9347
9389
  disabled = false,
@@ -9362,6 +9404,7 @@ var ComboboxBase = (_a) => {
9362
9404
  "defaultValue",
9363
9405
  "value",
9364
9406
  "onChange",
9407
+ "onSearchChange",
9365
9408
  "children",
9366
9409
  "valid",
9367
9410
  "disabled",
@@ -9417,7 +9460,10 @@ var ComboboxBase = (_a) => {
9417
9460
  return changes;
9418
9461
  },
9419
9462
  onSelectedItemChange: (e) => onChange == null ? void 0 : onChange(e.selectedItem),
9420
- onInputValueChange: ({ selectedItem: selectedItem2, inputValue: inputValue2 }) => updateInputItems(inputValue2, selectedItem2)
9463
+ onInputValueChange: ({ selectedItem: selectedItem2, inputValue: inputValue2 }) => {
9464
+ updateInputItems(inputValue2, selectedItem2);
9465
+ onSearchChange == null ? void 0 : onSearchChange(inputValue2);
9466
+ }
9421
9467
  });
9422
9468
  const state = {
9423
9469
  isOpen,
@@ -9538,7 +9584,8 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React52.crea
9538
9584
  }, children);
9539
9585
 
9540
9586
  // src/molecules/DataList/DataList.tsx
9541
- import React70 from "react";
9587
+ import React71 from "react";
9588
+ import { useControlledState } from "@react-stately/utils";
9542
9589
  import compact from "lodash/compact";
9543
9590
  import groupBy2 from "lodash/groupBy";
9544
9591
  import isArray3 from "lodash/isArray";
@@ -10631,6 +10678,49 @@ DataList.SubGroupSpacing = SubGroupSpacing;
10631
10678
  DataList.SubGroupSpacing.displayName = "DataList.SubGroupSpacing";
10632
10679
  DataList.Row = Row;
10633
10680
  DataList.Row.displayName = "DataList.Row";
10681
+ var ToolbarContainer = (_a) => {
10682
+ var _b = _a, { className, sticky = true } = _b, rest = __objRest(_b, ["className", "sticky"]);
10683
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
10684
+ role: "row",
10685
+ className: classNames(
10686
+ tw("col-span-full flex items-stretch py-4 px-l2 border-b border-default", {
10687
+ "sticky top-[47px] bg-white z-10": sticky
10688
+ }),
10689
+ className
10690
+ )
10691
+ }));
10692
+ };
10693
+ ToolbarContainer.displayName = "DataList.Toolbar.Container";
10694
+ var ToolbarGroup = (_a) => {
10695
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10696
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({
10697
+ role: "cell"
10698
+ }, rest), {
10699
+ className: classNames(tw("flex items-center px-l2 border-r-[1px] border-muted last:border-r-0"), className)
10700
+ }));
10701
+ };
10702
+ ToolbarGroup.displayName = "DataList.Toolbar.Group";
10703
+ var ToolbarSelectionCount = (_a) => {
10704
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10705
+ return /* @__PURE__ */ React63.createElement(Typography, __spreadValues({
10706
+ variant: "small",
10707
+ color: "muted",
10708
+ className: classNames(tw("whitespace-nowrap"), className)
10709
+ }, rest));
10710
+ };
10711
+ var ToolbarActions = (_a) => {
10712
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10713
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
10714
+ className: classNames(tw("flex items-center gap-x-5"), className)
10715
+ }));
10716
+ };
10717
+ ToolbarActions.displayName = "DataList.Toolbar.Actions";
10718
+ DataList.Toolbar = {
10719
+ Container: ToolbarContainer,
10720
+ Group: ToolbarGroup,
10721
+ Actions: ToolbarActions,
10722
+ SelectionCount: ToolbarSelectionCount
10723
+ };
10634
10724
 
10635
10725
  // src/utils/table/types.ts
10636
10726
  import isArray2 from "lodash/isArray";
@@ -11052,6 +11142,9 @@ var renameProperty = (oldProp, newProp, _a) => {
11052
11142
  }, rest);
11053
11143
  };
11054
11144
 
11145
+ // types/ContextualMenu.ts
11146
+ var defaultContextualMenuPlacement = "bottom-right";
11147
+
11055
11148
  // src/molecules/DataList/DataListComponents.tsx
11056
11149
  var import_more2 = __toESM(require_more());
11057
11150
  var DataListRowMenu = ({
@@ -11069,6 +11162,7 @@ var DataListRowMenu = ({
11069
11162
  return /* @__PURE__ */ React67.createElement(DataList.Cell, {
11070
11163
  align: "right"
11071
11164
  }, menuContent && /* @__PURE__ */ React67.createElement(DropdownMenu2, {
11165
+ placement: defaultContextualMenuPlacement,
11072
11166
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
11073
11167
  onOpenChange: onMenuOpenChange
11074
11168
  }, /* @__PURE__ */ React67.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React67.createElement(Button.Icon, {
@@ -11085,15 +11179,16 @@ var DataListRow = ({
11085
11179
  active,
11086
11180
  disabled,
11087
11181
  renderFirstColumn,
11182
+ additionalRowProps = () => ({}),
11088
11183
  additionalColumnProps = () => ({})
11089
11184
  }) => {
11090
11185
  var _a;
11091
11186
  const isRowDisabled = (_a = disabled == null ? void 0 : disabled(row, index, rows)) != null ? _a : false;
11092
- return /* @__PURE__ */ React67.createElement(DataList.Row, {
11187
+ return /* @__PURE__ */ React67.createElement(DataList.Row, __spreadValues({
11093
11188
  key: row.id,
11094
11189
  disabled: isRowDisabled,
11095
11190
  active
11096
- }, renderFirstColumn == null ? void 0 : renderFirstColumn(row, index, rows), /* @__PURE__ */ React67.createElement(List, {
11191
+ }, additionalRowProps(row, index, rows)), renderFirstColumn == null ? void 0 : renderFirstColumn(row, index, rows), /* @__PURE__ */ React67.createElement(List, {
11097
11192
  items: columns,
11098
11193
  renderItem: (column, columnIndex) => /* @__PURE__ */ React67.createElement(DataList.Cell, __spreadValues(__spreadValues({}, cellProps(column)), additionalColumnProps(column, columnIndex, columns, row)), /* @__PURE__ */ React67.createElement(DataListCell, {
11099
11194
  column,
@@ -11153,6 +11248,20 @@ var DataListCell = ({
11153
11248
  return column.tooltip ? /* @__PURE__ */ React67.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : /* @__PURE__ */ React67.createElement(React67.Fragment, null, cellContent);
11154
11249
  };
11155
11250
 
11251
+ // src/molecules/DataList/DataListContext.tsx
11252
+ import { createContext as createContext3, useContext as useContext6 } from "react";
11253
+ var DataListContext = createContext3({
11254
+ rows: [],
11255
+ selectedRows: void 0
11256
+ });
11257
+ var useDataListContext = () => {
11258
+ const ctx = useContext6(DataListContext);
11259
+ if (!ctx) {
11260
+ throw new Error("DataListContext was used outside of provider.");
11261
+ }
11262
+ return ctx;
11263
+ };
11264
+
11156
11265
  // src/molecules/DataList/DataListGroup.tsx
11157
11266
  import React68 from "react";
11158
11267
  import isFunction2 from "lodash/isFunction";
@@ -11301,7 +11410,40 @@ var DataListSkeleton = ({ columns = ["1", "2", "2", 52], rows = 5 }) => {
11301
11410
  }));
11302
11411
  };
11303
11412
 
11413
+ // src/molecules/DataList/DataListToolbar.tsx
11414
+ import React70 from "react";
11415
+ import castArray from "lodash/castArray";
11416
+ var DataListToolbar = ({
11417
+ actions: _actions,
11418
+ menu,
11419
+ onAction,
11420
+ onMenuOpenChange,
11421
+ menuLabel,
11422
+ sticky = true
11423
+ }) => {
11424
+ var _a;
11425
+ const { selectedRows, rows } = useDataListContext();
11426
+ const actions = castArray(_actions).filter(Boolean);
11427
+ return /* @__PURE__ */ React70.createElement(DataList.Toolbar.Container, {
11428
+ sticky
11429
+ }, /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DataList.Toolbar.SelectionCount, null, (_a = selectedRows == null ? void 0 : selectedRows.length) != null ? _a : 0, " of ", rows.length, " selected")), actions.length > 0 && /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DataList.Toolbar.Actions, null, actions.map(
11430
+ (action) => renderAction({
11431
+ kind: "ghost",
11432
+ dense: true,
11433
+ action: __spreadProps(__spreadValues({}, action), { onClick: () => action.onClick(selectedRows != null ? selectedRows : []) })
11434
+ })
11435
+ ))), menu && /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DropdownMenu2, {
11436
+ placement: defaultContextualMenuPlacement,
11437
+ onAction: (key) => onAction == null ? void 0 : onAction(key, selectedRows != null ? selectedRows : []),
11438
+ onOpenChange: onMenuOpenChange
11439
+ }, /* @__PURE__ */ React70.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React70.createElement(Button.GhostDropdown, {
11440
+ dense: true
11441
+ }, menuLabel)), menu)));
11442
+ };
11443
+ DataListToolbar.displayName = "DataList.Toolbar";
11444
+
11304
11445
  // src/molecules/DataList/DataList.tsx
11446
+ var getDefaultCheckboxLabel = () => "Select row";
11305
11447
  var DataList2 = (_a) => {
11306
11448
  var _b = _a, {
11307
11449
  columns,
@@ -11321,7 +11463,13 @@ var DataList2 = (_a) => {
11321
11463
  onGroupToggled,
11322
11464
  expandedGroupIds,
11323
11465
  defaultSort,
11324
- onSortChanged
11466
+ onSortChanged,
11467
+ selectable,
11468
+ getCheckboxLabel = getDefaultCheckboxLabel,
11469
+ selectedRows,
11470
+ defaultSelectedRows,
11471
+ onSelectionChange,
11472
+ toolbar
11325
11473
  } = _b, rest = __objRest(_b, [
11326
11474
  "columns",
11327
11475
  "rows",
@@ -11340,9 +11488,20 @@ var DataList2 = (_a) => {
11340
11488
  "onGroupToggled",
11341
11489
  "expandedGroupIds",
11342
11490
  "defaultSort",
11343
- "onSortChanged"
11491
+ "onSortChanged",
11492
+ "selectable",
11493
+ "getCheckboxLabel",
11494
+ "selectedRows",
11495
+ "defaultSelectedRows",
11496
+ "onSelectionChange",
11497
+ "toolbar"
11344
11498
  ]);
11345
- var _a2;
11499
+ var _a2, _b2;
11500
+ const [selected, setSelected] = useControlledState(
11501
+ selectedRows,
11502
+ defaultSelectedRows,
11503
+ (value) => onSelectionChange == null ? void 0 : onSelectionChange(value != null ? value : [])
11504
+ );
11346
11505
  const defaultSortedColumn = columns.find((c) => c.headerName === (defaultSort == null ? void 0 : defaultSort.headerName));
11347
11506
  const initialSortState = defaultSortedColumn ? { column: defaultSortedColumn, direction: (_a2 = defaultSort == null ? void 0 : defaultSort.direction) != null ? _a2 : "ascending" } : void 0;
11348
11507
  const [sort, updateSort] = useTableSort(
@@ -11352,6 +11511,7 @@ var DataList2 = (_a) => {
11352
11511
  const groups = areRowsGrouped(rows) ? rows : group ? isFunction3(group) ? group(sortedRows) : groupBy2(sortedRows, group) : void 0;
11353
11512
  const isCollapsible = isFunction3(rowDetails);
11354
11513
  const templateColumns = compact([
11514
+ selectable ? "fit-content(28px)" : void 0,
11355
11515
  isCollapsible ? "fit-content(50px)" : void 0,
11356
11516
  ...columns.map((column) => {
11357
11517
  var _a3;
@@ -11359,51 +11519,82 @@ var DataList2 = (_a) => {
11359
11519
  }),
11360
11520
  menu ? "fit-content(28px)" : void 0
11361
11521
  ]);
11362
- const PaginationFooter = React70.useCallback(
11363
- ({ children }) => /* @__PURE__ */ React70.createElement("div", {
11522
+ const PaginationFooter = React71.useCallback(
11523
+ ({ children }) => /* @__PURE__ */ React71.createElement("div", {
11364
11524
  style: { gridColumn: "1 / -1" },
11365
11525
  role: "row"
11366
- }, /* @__PURE__ */ React70.createElement("div", {
11526
+ }, /* @__PURE__ */ React71.createElement("div", {
11367
11527
  role: "cell"
11368
11528
  }, children)),
11369
11529
  []
11370
11530
  );
11371
- return /* @__PURE__ */ React70.createElement(Template, {
11531
+ const handleSelectionChange = (id) => (e) => {
11532
+ if (e.target.checked) {
11533
+ setSelected([...selected != null ? selected : [], id]);
11534
+ } else {
11535
+ setSelected(selected == null ? void 0 : selected.filter((_id) => _id !== id));
11536
+ }
11537
+ };
11538
+ const totalSelected = (_b2 = selected == null ? void 0 : selected.length) != null ? _b2 : 0;
11539
+ const allEnabledRowIds = compact(
11540
+ sortedRows.map((row, index) => (disabled == null ? void 0 : disabled(row, index, sortedRows)) ? void 0 : row.id)
11541
+ );
11542
+ const allRowsSelected = totalSelected >= allEnabledRowIds.length;
11543
+ return /* @__PURE__ */ React71.createElement(DataListContext.Provider, {
11544
+ value: {
11545
+ rows: sortedRows,
11546
+ selectedRows: selected
11547
+ }
11548
+ }, /* @__PURE__ */ React71.createElement(Template, {
11372
11549
  className: "Aquarium-DataList",
11373
11550
  columns: templateColumns,
11374
11551
  role: "table"
11375
- }, !hideHeader && /* @__PURE__ */ React70.createElement(DataList.Row, {
11552
+ }, !hideHeader && /* @__PURE__ */ React71.createElement(React71.Fragment, null, /* @__PURE__ */ React71.createElement(DataList.Row, {
11376
11553
  header: true
11377
- }, isCollapsible && /* @__PURE__ */ React70.createElement(DataList.HeadCell, {
11554
+ }, selectable && /* @__PURE__ */ React71.createElement(DataList.HeadCell, {
11555
+ align: "left",
11556
+ sticky
11557
+ }, /* @__PURE__ */ React71.createElement(Checkbox, {
11558
+ "aria-label": "Select all rows",
11559
+ indeterminate: totalSelected > 0 && totalSelected < sortedRows.length,
11560
+ checked: totalSelected > 0,
11561
+ onChange: () => {
11562
+ if (!allRowsSelected) {
11563
+ setSelected(allEnabledRowIds);
11564
+ } else {
11565
+ setSelected([]);
11566
+ }
11567
+ }
11568
+ })), isCollapsible && /* @__PURE__ */ React71.createElement(DataList.HeadCell, {
11378
11569
  align: "left",
11379
11570
  sticky
11380
11571
  }), columns.map((column) => {
11381
- const content = column.headerTooltip ? /* @__PURE__ */ React70.createElement(Tooltip, {
11572
+ const content = column.headerTooltip ? /* @__PURE__ */ React71.createElement(Tooltip, {
11382
11573
  placement: column.headerTooltip.placement,
11383
11574
  content: column.headerTooltip.content
11384
11575
  }, column.headerName) : column.headerName;
11385
- const headerContentAndIcon = column.icon ? /* @__PURE__ */ React70.createElement(Box.Flex, {
11576
+ const headerContentAndIcon = column.icon ? /* @__PURE__ */ React71.createElement(Box.Flex, {
11386
11577
  flexDirection: "row",
11387
11578
  gap: "3",
11388
11579
  alignItems: "center"
11389
- }, /* @__PURE__ */ React70.createElement(InlineIcon, {
11580
+ }, /* @__PURE__ */ React71.createElement(InlineIcon, {
11390
11581
  icon: column.icon,
11391
11582
  height: "22",
11392
11583
  color: "grey-70",
11393
11584
  "aria-hidden": true
11394
11585
  }), content) : content;
11395
- return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React70.createElement(DataList.SortCell, __spreadValues({
11586
+ return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React71.createElement(DataList.SortCell, __spreadValues({
11396
11587
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
11397
11588
  onClick: () => updateSort(column),
11398
11589
  sticky
11399
- }, cellProps(column)), headerContentAndIcon) : /* @__PURE__ */ React70.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
11590
+ }, cellProps(column)), headerContentAndIcon) : /* @__PURE__ */ React71.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
11400
11591
  sticky
11401
11592
  }), headerContentAndIcon);
11402
- }), menu && /* @__PURE__ */ React70.createElement(DataList.HeadCell, {
11593
+ }), menu && /* @__PURE__ */ React71.createElement(DataList.HeadCell, {
11403
11594
  align: "right",
11404
11595
  "aria-label": menuAriaLabel,
11405
11596
  sticky
11406
- }, menuHeaderName)), groups && /* @__PURE__ */ React70.createElement(DataListGroup, {
11597
+ }, menuHeaderName)), toolbar), groups && /* @__PURE__ */ React71.createElement(DataListGroup, {
11407
11598
  columns,
11408
11599
  disabled,
11409
11600
  getGroupRow,
@@ -11416,18 +11607,18 @@ var DataList2 = (_a) => {
11416
11607
  rows,
11417
11608
  groups,
11418
11609
  level: 0
11419
- }), !groups && /* @__PURE__ */ React70.createElement(List, __spreadProps(__spreadValues({}, rest), {
11610
+ }), !groups && /* @__PURE__ */ React71.createElement(List, __spreadProps(__spreadValues({}, rest), {
11420
11611
  paginationContainer: PaginationFooter,
11421
11612
  items: sortedRows,
11422
11613
  renderItem: (row, index) => {
11423
11614
  const details = rowDetails == null ? void 0 : rowDetails(row, index, sortedRows);
11424
- const content = /* @__PURE__ */ React70.createElement(DataListRow, {
11615
+ const content = /* @__PURE__ */ React71.createElement(DataListRow, {
11425
11616
  key: row.id,
11426
11617
  columns,
11427
11618
  row,
11428
11619
  index,
11429
11620
  rows: sortedRows,
11430
- menu: /* @__PURE__ */ React70.createElement(DataListRowMenu, {
11621
+ menu: /* @__PURE__ */ React71.createElement(DataListRowMenu, {
11431
11622
  row,
11432
11623
  index,
11433
11624
  menu,
@@ -11436,43 +11627,60 @@ var DataList2 = (_a) => {
11436
11627
  menuAriaLabel
11437
11628
  }),
11438
11629
  disabled,
11439
- renderFirstColumn: () => rowDetails !== void 0 && /* @__PURE__ */ React70.createElement(DataList.Cell, null, details && /* @__PURE__ */ React70.createElement(Accordion.Toggle, {
11440
- panelId: row.id.toString(),
11441
- onChange: onGroupToggled
11442
- }))
11630
+ additionalRowProps: (row2) => {
11631
+ var _a3;
11632
+ return selectable ? {
11633
+ "aria-selected": (_a3 = selected == null ? void 0 : selected.includes(row2.id)) != null ? _a3 : false
11634
+ } : {};
11635
+ },
11636
+ renderFirstColumn: (row2, index2) => {
11637
+ var _a3;
11638
+ const isChecked = (_a3 = selected == null ? void 0 : selected.includes(row2.id)) != null ? _a3 : false;
11639
+ const isDisabled = disabled == null ? void 0 : disabled(row2, index2, sortedRows);
11640
+ return /* @__PURE__ */ React71.createElement(React71.Fragment, null, selectable && /* @__PURE__ */ React71.createElement(DataList.Cell, null, /* @__PURE__ */ React71.createElement(Checkbox, {
11641
+ "aria-label": getCheckboxLabel(row2, index2, isChecked, sortedRows),
11642
+ onChange: handleSelectionChange(row2.id),
11643
+ checked: isChecked,
11644
+ disabled: isDisabled
11645
+ })), rowDetails !== void 0 && /* @__PURE__ */ React71.createElement(DataList.Cell, null, details && /* @__PURE__ */ React71.createElement(Accordion.Toggle, {
11646
+ panelId: row2.id.toString(),
11647
+ onChange: onGroupToggled
11648
+ })));
11649
+ }
11443
11650
  });
11444
11651
  if (!details) {
11445
11652
  return content;
11446
11653
  }
11447
- return /* @__PURE__ */ React70.createElement(Accordion, {
11654
+ return /* @__PURE__ */ React71.createElement(Accordion, {
11448
11655
  key: row.id,
11449
11656
  openPanelId: expandedGroupIds ? expandedGroupIds.find((id) => id === row.id) || null : void 0
11450
- }, content, /* @__PURE__ */ React70.createElement(Accordion.Panel, {
11657
+ }, content, /* @__PURE__ */ React71.createElement(Accordion.Panel, {
11451
11658
  role: "row",
11452
11659
  panelId: row.id.toString(),
11453
11660
  className: tw("col-span-full bg-grey-0 border-b border-default"),
11454
11661
  "aria-label": `row ${row.id.toString()} details`
11455
- }, /* @__PURE__ */ React70.createElement("div", {
11662
+ }, /* @__PURE__ */ React71.createElement("div", {
11456
11663
  role: "cell"
11457
11664
  }, details)));
11458
11665
  }
11459
- })));
11666
+ }))));
11460
11667
  };
11461
11668
  DataList2.Skeleton = DataListSkeleton;
11669
+ DataList2.Toolbar = DataListToolbar;
11462
11670
 
11463
11671
  // src/molecules/DataTable/DataTable.tsx
11464
- import React73 from "react";
11672
+ import React74 from "react";
11465
11673
  import compact2 from "lodash/compact";
11466
11674
  import isFunction4 from "lodash/isFunction";
11467
11675
 
11468
11676
  // src/molecules/Table/Table.tsx
11469
- import React72 from "react";
11677
+ import React73 from "react";
11470
11678
 
11471
11679
  // src/utils/table/useScrollTarget.ts
11472
- import React71 from "react";
11680
+ import React72 from "react";
11473
11681
  var useScrollTarget = (callback) => {
11474
- const targetRef = React71.useRef(null);
11475
- React71.useLayoutEffect(() => {
11682
+ const targetRef = React72.useRef(null);
11683
+ React72.useLayoutEffect(() => {
11476
11684
  const observer = new IntersectionObserver((entries) => entries[0].isIntersecting && callback && callback(), {
11477
11685
  root: null,
11478
11686
  rootMargin: `0px 0px 200px 0px`
@@ -11490,12 +11698,12 @@ var Table2 = (_a) => {
11490
11698
  var _b = _a, { children, onPrev, onNext } = _b, rest = __objRest(_b, ["children", "onPrev", "onNext"]);
11491
11699
  const bottomRef = useScrollTarget(onNext);
11492
11700
  const topRef = useScrollTarget(onPrev);
11493
- return /* @__PURE__ */ React72.createElement("div", {
11701
+ return /* @__PURE__ */ React73.createElement("div", {
11494
11702
  className: classNames("Aquarium-Table", tw("relative w-full"))
11495
- }, /* @__PURE__ */ React72.createElement("div", {
11703
+ }, /* @__PURE__ */ React73.createElement("div", {
11496
11704
  ref: topRef,
11497
11705
  className: tw("absolute top-0 h-1 w-full left-0 bg-transparent")
11498
- }), /* @__PURE__ */ React72.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React72.createElement("div", {
11706
+ }), /* @__PURE__ */ React73.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React73.createElement("div", {
11499
11707
  ref: bottomRef,
11500
11708
  className: tw("absolute bottom-0 h-1 w-full left-0 bg-transparent")
11501
11709
  }));
@@ -11556,13 +11764,13 @@ var DataTable = (_a) => {
11556
11764
  );
11557
11765
  const sortedRows = sortRowsBy(rows, sort);
11558
11766
  const amountOfColumns = columns.length + (menu ? 1 : 0);
11559
- const PaginationFooter = React73.useCallback(
11560
- ({ children }) => /* @__PURE__ */ React73.createElement("tfoot", null, /* @__PURE__ */ React73.createElement("tr", null, /* @__PURE__ */ React73.createElement("td", {
11767
+ const PaginationFooter = React74.useCallback(
11768
+ ({ children }) => /* @__PURE__ */ React74.createElement("tfoot", null, /* @__PURE__ */ React74.createElement("tr", null, /* @__PURE__ */ React74.createElement("td", {
11561
11769
  colSpan: amountOfColumns
11562
11770
  }, children))),
11563
11771
  [amountOfColumns]
11564
11772
  );
11565
- return /* @__PURE__ */ React73.createElement(Table2, {
11773
+ return /* @__PURE__ */ React74.createElement(Table2, {
11566
11774
  ariaLabel,
11567
11775
  onNext,
11568
11776
  onPrev,
@@ -11574,40 +11782,40 @@ var DataTable = (_a) => {
11574
11782
  "table-fixed": layout === "fixed"
11575
11783
  })
11576
11784
  )
11577
- }, /* @__PURE__ */ React73.createElement(Table2.Head, {
11785
+ }, /* @__PURE__ */ React74.createElement(Table2.Head, {
11578
11786
  sticky
11579
11787
  }, compact2([
11580
11788
  ...columns.map((column) => {
11581
- const content = column.headerTooltip && !column.headerInvisible ? /* @__PURE__ */ React73.createElement(Tooltip, {
11789
+ const content = column.headerTooltip && !column.headerInvisible ? /* @__PURE__ */ React74.createElement(Tooltip, {
11582
11790
  placement: column.headerTooltip.placement,
11583
11791
  content: column.headerTooltip.content
11584
11792
  }, column.headerName) : !column.headerInvisible && column.headerName;
11585
- const headerContentAndIcon = !column.headerInvisible && column.icon ? /* @__PURE__ */ React73.createElement(Box.Flex, {
11793
+ const headerContentAndIcon = !column.headerInvisible && column.icon ? /* @__PURE__ */ React74.createElement(Box.Flex, {
11586
11794
  flexDirection: "row",
11587
11795
  gap: "3",
11588
11796
  alignItems: "center"
11589
- }, /* @__PURE__ */ React73.createElement(InlineIcon, {
11797
+ }, /* @__PURE__ */ React74.createElement(InlineIcon, {
11590
11798
  icon: column.icon,
11591
11799
  height: "22",
11592
11800
  color: "grey-70",
11593
11801
  "aria-hidden": true
11594
11802
  }), content) : content;
11595
- return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React73.createElement(Table2.SortCell, __spreadValues({
11803
+ return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React74.createElement(Table2.SortCell, __spreadValues({
11596
11804
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
11597
11805
  onClick: () => updateSort(column),
11598
11806
  style: { width: column.width },
11599
11807
  "aria-label": column.headerInvisible ? column.headerName : void 0
11600
- }, cellProps(column)), headerContentAndIcon) : /* @__PURE__ */ React73.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
11808
+ }, cellProps(column)), headerContentAndIcon) : /* @__PURE__ */ React74.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
11601
11809
  style: { width: column.width },
11602
11810
  "aria-label": column.headerInvisible ? column.headerName : void 0
11603
11811
  }), headerContentAndIcon);
11604
11812
  }),
11605
- menu ? /* @__PURE__ */ React73.createElement(Table2.Cell, {
11813
+ menu ? /* @__PURE__ */ React74.createElement(Table2.Cell, {
11606
11814
  key: "__contextMenu",
11607
11815
  align: "right",
11608
11816
  "aria-label": menuAriaLabel
11609
11817
  }, menuHeaderName) : null
11610
- ])), /* @__PURE__ */ React73.createElement(List, __spreadProps(__spreadValues({
11818
+ ])), /* @__PURE__ */ React74.createElement(List, __spreadProps(__spreadValues({
11611
11819
  container: Table2.Body,
11612
11820
  paginationContainer: PaginationFooter
11613
11821
  }, rest), {
@@ -11615,12 +11823,12 @@ var DataTable = (_a) => {
11615
11823
  renderItem: (row, index) => {
11616
11824
  var _a3;
11617
11825
  const isRowDisabled = (_a3 = disabled == null ? void 0 : disabled(row, index, sortedRows)) != null ? _a3 : false;
11618
- return /* @__PURE__ */ React73.createElement(Table2.Row, {
11826
+ return /* @__PURE__ */ React74.createElement(Table2.Row, {
11619
11827
  key: row.id,
11620
11828
  disabled: isRowDisabled
11621
- }, /* @__PURE__ */ React73.createElement(List, {
11829
+ }, /* @__PURE__ */ React74.createElement(List, {
11622
11830
  items: columns,
11623
- renderItem: (column) => /* @__PURE__ */ React73.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), renderCell(column, row, index, sortedRows))
11831
+ renderItem: (column) => /* @__PURE__ */ React74.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), renderCell(column, row, index, sortedRows))
11624
11832
  }), renderRowMenu(row, index, { menu, menuAriaLabel, onAction, onMenuOpenChange }));
11625
11833
  }
11626
11834
  })));
@@ -11633,12 +11841,13 @@ var renderRowMenu = (row, index, {
11633
11841
  }) => {
11634
11842
  if (menu) {
11635
11843
  const menuContent = isFunction4(menu) ? menu(row, index) : menu;
11636
- return /* @__PURE__ */ React73.createElement(Table2.Cell, {
11844
+ return /* @__PURE__ */ React74.createElement(Table2.Cell, {
11637
11845
  align: "right"
11638
- }, menuContent && /* @__PURE__ */ React73.createElement(DropdownMenu2, {
11846
+ }, menuContent && /* @__PURE__ */ React74.createElement(DropdownMenu2, {
11847
+ placement: defaultContextualMenuPlacement,
11639
11848
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
11640
11849
  onOpenChange: onMenuOpenChange
11641
- }, /* @__PURE__ */ React73.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React73.createElement(Button.Icon, {
11850
+ }, /* @__PURE__ */ React74.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React74.createElement(Button.Icon, {
11642
11851
  "aria-label": menuAriaLabel,
11643
11852
  icon: import_more3.default
11644
11853
  })), menuContent));
@@ -11651,14 +11860,14 @@ var renderCell = (column, row, index, rows) => {
11651
11860
  if (column.type === "status") {
11652
11861
  const status = column.status(row, index, rows);
11653
11862
  if (status) {
11654
- cellContent = /* @__PURE__ */ React73.createElement(StatusChip, __spreadValues({
11863
+ cellContent = /* @__PURE__ */ React74.createElement(StatusChip, __spreadValues({
11655
11864
  dense: true
11656
11865
  }, status));
11657
11866
  }
11658
11867
  } else if (column.type === "action") {
11659
11868
  const action = renameProperty("text", "children", column.action(row, index, rows));
11660
11869
  if (action) {
11661
- cellContent = /* @__PURE__ */ React73.createElement(Button.Secondary, __spreadValues({
11870
+ cellContent = /* @__PURE__ */ React74.createElement(Button.Secondary, __spreadValues({
11662
11871
  dense: true
11663
11872
  }, action));
11664
11873
  }
@@ -11667,19 +11876,19 @@ var renderCell = (column, row, index, rows) => {
11667
11876
  } else if (column.type === "item") {
11668
11877
  const item = column.item(row, index, rows);
11669
11878
  if (item) {
11670
- cellContent = /* @__PURE__ */ React73.createElement(Item2, __spreadValues({}, item));
11879
+ cellContent = /* @__PURE__ */ React74.createElement(Item2, __spreadValues({}, item));
11671
11880
  }
11672
11881
  } else if (column.formatter) {
11673
11882
  cellContent = column.formatter(row[column.field], row, index, rows);
11674
11883
  } else {
11675
11884
  cellContent = row[column.field];
11676
11885
  }
11677
- return column.tooltip ? /* @__PURE__ */ React73.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : cellContent;
11886
+ return column.tooltip ? /* @__PURE__ */ React74.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : cellContent;
11678
11887
  };
11679
11888
  DataTable.Skeleton = DataListSkeleton;
11680
11889
 
11681
11890
  // src/molecules/Dialog/Dialog.tsx
11682
- import React75 from "react";
11891
+ import React76 from "react";
11683
11892
  import { useDialog } from "@react-aria/dialog";
11684
11893
  import { Overlay as Overlay2, useModalOverlay } from "@react-aria/overlays";
11685
11894
  import { useId as useId9 } from "@react-aria/utils";
@@ -11706,7 +11915,7 @@ var DIALOG_ICONS_AND_COLORS = {
11706
11915
  };
11707
11916
 
11708
11917
  // src/atoms/Modal/Modal.tsx
11709
- import React74 from "react";
11918
+ import React75 from "react";
11710
11919
  var Modal = (_a) => {
11711
11920
  var _b = _a, {
11712
11921
  children,
@@ -11719,7 +11928,7 @@ var Modal = (_a) => {
11719
11928
  "className",
11720
11929
  "open"
11721
11930
  ]);
11722
- return open ? /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
11931
+ return open ? /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11723
11932
  className: classNames(
11724
11933
  tw("inset-0 overflow-y-auto z-modal fixed"),
11725
11934
  {
@@ -11731,11 +11940,11 @@ var Modal = (_a) => {
11731
11940
  };
11732
11941
  Modal.BackDrop = (_a) => {
11733
11942
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11734
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
11943
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11735
11944
  className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-primary-100 opacity-60"), className)
11736
11945
  }));
11737
11946
  };
11738
- Modal.Dialog = React74.forwardRef(
11947
+ Modal.Dialog = React75.forwardRef(
11739
11948
  (_a, ref) => {
11740
11949
  var _b = _a, { kind = "dialog", children, className, size = "sm" } = _b, rest = __objRest(_b, ["kind", "children", "className", "size"]);
11741
11950
  const commonClasses = tw("bg-white max-h-full flex flex-col");
@@ -11749,7 +11958,7 @@ Modal.Dialog = React74.forwardRef(
11749
11958
  "w-[560px]": size === "md",
11750
11959
  "w-[1080px]": size === "full"
11751
11960
  });
11752
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({
11961
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({
11753
11962
  ref,
11754
11963
  "aria-modal": "true"
11755
11964
  }, rest), {
@@ -11759,31 +11968,31 @@ Modal.Dialog = React74.forwardRef(
11759
11968
  );
11760
11969
  Modal.Header = (_a) => {
11761
11970
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11762
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
11971
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11763
11972
  className: classNames(tw("pl-7 pr-[64px] py-6 gap-3 flex items-center"), className)
11764
11973
  }), children);
11765
11974
  };
11766
11975
  Modal.HeaderImage = (_a) => {
11767
11976
  var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
11768
11977
  const common = tw("h-[120px] min-h-[120px] w-full ");
11769
- return backgroundImage ? /* @__PURE__ */ React74.createElement("img", __spreadProps(__spreadValues({
11978
+ return backgroundImage ? /* @__PURE__ */ React75.createElement("img", __spreadProps(__spreadValues({
11770
11979
  "aria-hidden": true,
11771
11980
  src: backgroundImage != null ? backgroundImage : void 0
11772
11981
  }, rest), {
11773
11982
  className: classNames(common, tw("object-cover"), className)
11774
- })) : /* @__PURE__ */ React74.createElement("div", {
11983
+ })) : /* @__PURE__ */ React75.createElement("div", {
11775
11984
  className: classNames(common, tw("bg-grey-5"), className)
11776
11985
  });
11777
11986
  };
11778
11987
  Modal.CloseButtonContainer = (_a) => {
11779
11988
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11780
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
11989
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11781
11990
  className: classNames(tw("absolute top-[24px] right-[28px]"), className)
11782
11991
  }));
11783
11992
  };
11784
11993
  Modal.Title = (_a) => {
11785
11994
  var _b = _a, { kind = "dialog", children, className } = _b, rest = __objRest(_b, ["kind", "children", "className"]);
11786
- return /* @__PURE__ */ React74.createElement(Typography, __spreadValues({
11995
+ return /* @__PURE__ */ React75.createElement(Typography, __spreadValues({
11787
11996
  htmlTag: "h2",
11788
11997
  variant: "subheading",
11789
11998
  color: "grey-90",
@@ -11797,52 +12006,52 @@ Modal.Title = (_a) => {
11797
12006
  };
11798
12007
  Modal.Subtitle = (_a) => {
11799
12008
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
11800
- return /* @__PURE__ */ React74.createElement(Typography, __spreadValues({
12009
+ return /* @__PURE__ */ React75.createElement(Typography, __spreadValues({
11801
12010
  variant: "small",
11802
12011
  color: "grey-60"
11803
12012
  }, rest), children);
11804
12013
  };
11805
12014
  Modal.TitleContainer = (_a) => {
11806
12015
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11807
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
12016
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11808
12017
  className: classNames(tw("flex flex-col grow"), className)
11809
12018
  }), children);
11810
12019
  };
11811
12020
  Modal.Body = (_a) => {
11812
12021
  var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
11813
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
12022
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11814
12023
  className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
11815
12024
  style: __spreadValues({ maxHeight }, style)
11816
12025
  }), children);
11817
12026
  };
11818
12027
  Modal.Footer = (_a) => {
11819
12028
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11820
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
12029
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11821
12030
  className: classNames(tw("px-7 py-6"), className)
11822
12031
  }), children);
11823
12032
  };
11824
12033
  Modal.Actions = (_a) => {
11825
12034
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11826
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
12035
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11827
12036
  className: classNames(tw("flex gap-4 justify-end"), className)
11828
12037
  }), children);
11829
12038
  };
11830
12039
 
11831
12040
  // src/molecules/Dialog/Dialog.tsx
11832
12041
  var Dialog = (props) => {
11833
- const ref = React75.useRef(null);
12042
+ const ref = React76.useRef(null);
11834
12043
  const state = useOverlayTriggerState2({ isOpen: props.open });
11835
12044
  const { modalProps, underlayProps } = useModalOverlay({}, state, ref);
11836
12045
  if (!state.isOpen) {
11837
12046
  return null;
11838
12047
  }
11839
- return /* @__PURE__ */ React75.createElement(Overlay2, null, /* @__PURE__ */ React75.createElement(Modal, {
12048
+ return /* @__PURE__ */ React76.createElement(Overlay2, null, /* @__PURE__ */ React76.createElement(Modal, {
11840
12049
  className: "Aquarium-Dialog",
11841
12050
  open: true
11842
- }, /* @__PURE__ */ React75.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React75.createElement(Modal.Dialog, __spreadValues({
12051
+ }, /* @__PURE__ */ React76.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React76.createElement(Modal.Dialog, __spreadValues({
11843
12052
  ref,
11844
12053
  size: "sm"
11845
- }, modalProps), /* @__PURE__ */ React75.createElement(DialogWrapper, __spreadValues({}, props)))));
12054
+ }, modalProps), /* @__PURE__ */ React76.createElement(DialogWrapper, __spreadValues({}, props)))));
11846
12055
  };
11847
12056
  var DialogWrapper = ({
11848
12057
  title,
@@ -11851,59 +12060,59 @@ var DialogWrapper = ({
11851
12060
  primaryAction,
11852
12061
  secondaryAction
11853
12062
  }) => {
11854
- const ref = React75.useRef(null);
12063
+ const ref = React76.useRef(null);
11855
12064
  const labelledBy = useId9();
11856
12065
  const describedBy = useId9();
11857
12066
  const { dialogProps } = useDialog(
11858
12067
  { "role": "alertdialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
11859
12068
  ref
11860
12069
  );
11861
- return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({
12070
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({
11862
12071
  ref
11863
12072
  }, dialogProps), {
11864
12073
  className: tw("outline-none")
11865
- }), /* @__PURE__ */ React75.createElement(Modal.Header, {
12074
+ }), /* @__PURE__ */ React76.createElement(Modal.Header, {
11866
12075
  className: tw("icon-stroke-2")
11867
- }, /* @__PURE__ */ React75.createElement(Icon, {
12076
+ }, /* @__PURE__ */ React76.createElement(Icon, {
11868
12077
  icon: DIALOG_ICONS_AND_COLORS[type].icon,
11869
12078
  color: DIALOG_ICONS_AND_COLORS[type].color,
11870
12079
  fontSize: 20
11871
- }), /* @__PURE__ */ React75.createElement(Modal.Title, {
12080
+ }), /* @__PURE__ */ React76.createElement(Modal.Title, {
11872
12081
  id: labelledBy,
11873
12082
  variant: "large",
11874
12083
  color: DIALOG_ICONS_AND_COLORS[type].color
11875
- }, title)), /* @__PURE__ */ React75.createElement(Modal.Body, {
12084
+ }, title)), /* @__PURE__ */ React76.createElement(Modal.Body, {
11876
12085
  id: describedBy
11877
- }, /* @__PURE__ */ React75.createElement(Typography2.Default, null, children)), /* @__PURE__ */ React75.createElement(Modal.Footer, null, /* @__PURE__ */ React75.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React75.createElement(Button.Ghost, __spreadValues({
12086
+ }, /* @__PURE__ */ React76.createElement(Typography2.Default, null, children)), /* @__PURE__ */ React76.createElement(Modal.Footer, null, /* @__PURE__ */ React76.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React76.createElement(Button.Ghost, __spreadValues({
11878
12087
  key: secondaryAction.text
11879
- }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React75.createElement(Button.Secondary, __spreadValues({
12088
+ }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React76.createElement(Button.Secondary, __spreadValues({
11880
12089
  key: primaryAction.text
11881
12090
  }, omit8(primaryAction, "text")), primaryAction.text))));
11882
12091
  };
11883
12092
 
11884
12093
  // src/molecules/Drawer/Drawer.tsx
11885
- import React77, { useEffect as useEffect10 } from "react";
12094
+ import React78, { useEffect as useEffect10 } from "react";
11886
12095
  import { useOverlayTriggerState as useOverlayTriggerState3 } from "react-stately";
11887
12096
  import { useDialog as useDialog2 } from "@react-aria/dialog";
11888
12097
  import { Overlay as Overlay3, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
11889
12098
  import { useId as useId10 } from "@react-aria/utils";
11890
12099
  import { animated as animated4, useSpring as useSpring3 } from "@react-spring/web";
11891
- import castArray from "lodash/castArray";
12100
+ import castArray2 from "lodash/castArray";
11892
12101
  import omit9 from "lodash/omit";
11893
12102
 
11894
12103
  // src/molecules/Tabs/Tabs.tsx
11895
- import React76, { useEffect as useEffect9, useLayoutEffect as useLayoutEffect2, useRef as useRef7, useState as useState10 } from "react";
12104
+ import React77, { useEffect as useEffect9, useLayoutEffect as useLayoutEffect2, useRef as useRef7, useState as useState10 } from "react";
11896
12105
  import isNumber5 from "lodash/isNumber";
11897
12106
  import kebabCase from "lodash/kebabCase";
11898
12107
  var import_chevronLeft4 = __toESM(require_chevronLeft());
11899
12108
  var import_chevronRight4 = __toESM(require_chevronRight());
11900
12109
  var import_warningSign4 = __toESM(require_warningSign());
11901
12110
  var isTabComponent = (c) => {
11902
- return React76.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
12111
+ return React77.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
11903
12112
  };
11904
- var Tab = React76.forwardRef(
12113
+ var Tab = React77.forwardRef(
11905
12114
  ({ className, id, title, children }, ref) => {
11906
- return /* @__PURE__ */ React76.createElement("div", {
12115
+ return /* @__PURE__ */ React77.createElement("div", {
11907
12116
  ref,
11908
12117
  id: `${id != null ? id : kebabCase(title)}-panel`,
11909
12118
  className,
@@ -11915,14 +12124,14 @@ var Tab = React76.forwardRef(
11915
12124
  );
11916
12125
  var TabContainer = (_a) => {
11917
12126
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
11918
- return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
12127
+ return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({}, rest), {
11919
12128
  className: classNames("py-6 z-0", className)
11920
12129
  }), children);
11921
12130
  };
11922
12131
  var ModalTab = Tab;
11923
12132
  var ModalTabContainer = TabContainer;
11924
12133
  var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
11925
- const Tab2 = React76.forwardRef(
12134
+ const Tab2 = React77.forwardRef(
11926
12135
  (_a, ref) => {
11927
12136
  var _b = _a, {
11928
12137
  id,
@@ -11954,17 +12163,17 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
11954
12163
  const _id = id != null ? id : kebabCase(title);
11955
12164
  let statusIcon = void 0;
11956
12165
  if (status === "warning") {
11957
- statusIcon = /* @__PURE__ */ React76.createElement(InlineIcon, {
12166
+ statusIcon = /* @__PURE__ */ React77.createElement(InlineIcon, {
11958
12167
  icon: import_warningSign4.default,
11959
12168
  color: selected ? void 0 : "warning-80"
11960
12169
  });
11961
12170
  } else if (status === "error") {
11962
- statusIcon = /* @__PURE__ */ React76.createElement(InlineIcon, {
12171
+ statusIcon = /* @__PURE__ */ React77.createElement(InlineIcon, {
11963
12172
  icon: import_warningSign4.default,
11964
12173
  color: selected ? void 0 : "error-50"
11965
12174
  });
11966
12175
  }
11967
- const tab = /* @__PURE__ */ React76.createElement(Component, __spreadValues({
12176
+ const tab = /* @__PURE__ */ React77.createElement(Component, __spreadValues({
11968
12177
  ref,
11969
12178
  id: `${_id}-tab`,
11970
12179
  onClick: () => !disabled && onSelected(value != null ? value : index),
@@ -11981,29 +12190,29 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
11981
12190
  "aria-selected": selected,
11982
12191
  "aria-controls": `${_id}-panel`,
11983
12192
  tabIndex: disabled ? void 0 : 0
11984
- }, rest), /* @__PURE__ */ React76.createElement(Typography2, {
12193
+ }, rest), /* @__PURE__ */ React77.createElement(Typography2, {
11985
12194
  htmlTag: "div",
11986
12195
  variant: "small-strong",
11987
12196
  color: selected ? "primary-80" : disabled ? "grey-20" : "current",
11988
12197
  className: tw("inline-flex items-center gap-3")
11989
- }, showNotification ? /* @__PURE__ */ React76.createElement(Badge.Notification, {
12198
+ }, showNotification ? /* @__PURE__ */ React77.createElement(Badge.Notification, {
11990
12199
  right: "-4px",
11991
12200
  top: "3px"
11992
- }, /* @__PURE__ */ React76.createElement("span", {
12201
+ }, /* @__PURE__ */ React77.createElement("span", {
11993
12202
  className: tw("whitespace-nowrap")
11994
- }, title)) : /* @__PURE__ */ React76.createElement("span", {
12203
+ }, title)) : /* @__PURE__ */ React77.createElement("span", {
11995
12204
  className: tw("whitespace-nowrap")
11996
- }, title), isNumber5(badge) && /* @__PURE__ */ React76.createElement(Typography2, {
12205
+ }, title), isNumber5(badge) && /* @__PURE__ */ React77.createElement(Typography2, {
11997
12206
  htmlTag: "span",
11998
12207
  variant: "small",
11999
12208
  color: selected ? "primary-80" : "grey-5",
12000
12209
  className: "leading-none"
12001
- }, /* @__PURE__ */ React76.createElement(TabBadge, {
12210
+ }, /* @__PURE__ */ React77.createElement(TabBadge, {
12002
12211
  kind: "filled",
12003
12212
  value: badge,
12004
12213
  textClassname: classNames({ "text-white": selected, "text-grey-50": !selected })
12005
12214
  })), statusIcon));
12006
- return tooltip ? /* @__PURE__ */ React76.createElement(Tooltip, {
12215
+ return tooltip ? /* @__PURE__ */ React77.createElement(Tooltip, {
12007
12216
  content: tooltip
12008
12217
  }, tab) : tab;
12009
12218
  }
@@ -12017,7 +12226,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12017
12226
  const Tabs2 = (props) => {
12018
12227
  var _a, _b;
12019
12228
  const { className, value, defaultValue, onChange, children } = props;
12020
- const childArr = React76.Children.toArray(children);
12229
+ const childArr = React77.Children.toArray(children);
12021
12230
  const firstTab = childArr[0];
12022
12231
  const firstTabValue = isTabComponent(firstTab) ? firstTab.props.value : -1;
12023
12232
  const [selected, setSelected] = useState10((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
@@ -12030,7 +12239,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12030
12239
  var _a2, _b2;
12031
12240
  const container = containerRef.current;
12032
12241
  const tabs = tabsRef.current;
12033
- const values = React76.Children.map(
12242
+ const values = React77.Children.map(
12034
12243
  children,
12035
12244
  (tab, i) => {
12036
12245
  var _a3;
@@ -12071,7 +12280,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12071
12280
  updateCarets();
12072
12281
  setSelected(value);
12073
12282
  revealSelectedTab({ smooth: value !== selected });
12074
- }, [value, React76.Children.count(children)]);
12283
+ }, [value, React77.Children.count(children)]);
12075
12284
  useLayoutEffect2(() => {
12076
12285
  var _a2;
12077
12286
  updateCarets();
@@ -12135,27 +12344,27 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12135
12344
  const handleSelected = (key) => {
12136
12345
  (onChange != null ? onChange : setSelected)(key);
12137
12346
  };
12138
- React76.Children.forEach(children, (c) => {
12347
+ React77.Children.forEach(children, (c) => {
12139
12348
  if (c && !isTabComponent(c)) {
12140
12349
  throw new Error("<Tabs> can only have <Tabs.Tab> components as children");
12141
12350
  }
12142
12351
  });
12143
- return /* @__PURE__ */ React76.createElement("div", {
12352
+ return /* @__PURE__ */ React77.createElement("div", {
12144
12353
  ref: parentRef,
12145
12354
  className: classNames("Aquarium-Tabs", tw("h-full"), className)
12146
- }, /* @__PURE__ */ React76.createElement("div", {
12355
+ }, /* @__PURE__ */ React77.createElement("div", {
12147
12356
  className: tw("relative flex items-center border-b-2 border-default")
12148
- }, /* @__PURE__ */ React76.createElement("div", {
12357
+ }, /* @__PURE__ */ React77.createElement("div", {
12149
12358
  ref: containerRef,
12150
12359
  className: tw("overflow-y-auto scrollbar-hide mb-[-2px] h-auto")
12151
- }, /* @__PURE__ */ React76.createElement("div", {
12360
+ }, /* @__PURE__ */ React77.createElement("div", {
12152
12361
  ref: tabsRef,
12153
12362
  role: "tablist",
12154
12363
  "aria-label": "tabs",
12155
12364
  className: tw("inline-flex items-center cursor-pointer font-normal h-full")
12156
- }, React76.Children.map(
12365
+ }, React77.Children.map(
12157
12366
  children,
12158
- (tab, index) => tab ? /* @__PURE__ */ React76.createElement(TabItemComponent, __spreadProps(__spreadValues({
12367
+ (tab, index) => tab ? /* @__PURE__ */ React77.createElement(TabItemComponent, __spreadProps(__spreadValues({
12159
12368
  key: tab.props.value
12160
12369
  }, tab.props), {
12161
12370
  index,
@@ -12163,20 +12372,20 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12163
12372
  onKeyDown: handleKeyDown,
12164
12373
  onSelected: handleSelected
12165
12374
  })) : void 0
12166
- ))), leftCaret && /* @__PURE__ */ React76.createElement("div", {
12375
+ ))), leftCaret && /* @__PURE__ */ React77.createElement("div", {
12167
12376
  className: tw("absolute left-0 bg-gradient-to-r from-white via-white z-20 py-3 pr-4")
12168
- }, /* @__PURE__ */ React76.createElement("div", {
12377
+ }, /* @__PURE__ */ React77.createElement("div", {
12169
12378
  onClick: () => handleScrollToNext("left"),
12170
12379
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
12171
- }, /* @__PURE__ */ React76.createElement(InlineIcon, {
12380
+ }, /* @__PURE__ */ React77.createElement(InlineIcon, {
12172
12381
  icon: import_chevronLeft4.default
12173
- }))), rightCaret && /* @__PURE__ */ React76.createElement("div", {
12382
+ }))), rightCaret && /* @__PURE__ */ React77.createElement("div", {
12174
12383
  onClick: () => handleScrollToNext("right"),
12175
12384
  className: tw("absolute right-0 bg-gradient-to-l from-white via-white z-20 py-3 pl-4")
12176
- }, /* @__PURE__ */ React76.createElement("div", {
12385
+ }, /* @__PURE__ */ React77.createElement("div", {
12177
12386
  onClick: () => handleScrollToNext("right"),
12178
12387
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
12179
- }, /* @__PURE__ */ React76.createElement(InlineIcon, {
12388
+ }, /* @__PURE__ */ React77.createElement(InlineIcon, {
12180
12389
  icon: import_chevronRight4.default
12181
12390
  })))), renderChildren(children, selected, props));
12182
12391
  };
@@ -12184,7 +12393,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12184
12393
  Tabs2.Tab = TabComponent;
12185
12394
  return Tabs2;
12186
12395
  };
12187
- var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React76.createElement(TabContainer, null, children.find(
12396
+ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React77.createElement(TabContainer, null, children.find(
12188
12397
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
12189
12398
  )));
12190
12399
 
@@ -12201,8 +12410,8 @@ var WIDTHS = {
12201
12410
  var Drawer = (_a) => {
12202
12411
  var _b = _a, { open, closeOnEsc = true } = _b, props = __objRest(_b, ["open", "closeOnEsc"]);
12203
12412
  const { onClose, size = "sm", portalContainer } = props;
12204
- const [hidden, setHidden] = React77.useState(!open);
12205
- const ref = React77.useRef(null);
12413
+ const [hidden, setHidden] = React78.useState(!open);
12414
+ const ref = React78.useRef(null);
12206
12415
  const state = useOverlayTriggerState3({ isOpen: !hidden, onOpenChange: (isOpen) => !isOpen && onClose() });
12207
12416
  useEffect10(() => {
12208
12417
  if (open && hidden) {
@@ -12231,21 +12440,21 @@ var Drawer = (_a) => {
12231
12440
  if (!state.isOpen) {
12232
12441
  return null;
12233
12442
  }
12234
- return /* @__PURE__ */ React77.createElement(Overlay3, {
12443
+ return /* @__PURE__ */ React78.createElement(Overlay3, {
12235
12444
  portalContainer
12236
- }, /* @__PURE__ */ React77.createElement(Modal, {
12445
+ }, /* @__PURE__ */ React78.createElement(Modal, {
12237
12446
  kind: "drawer",
12238
12447
  className: "Aquarium-Drawer overflow-x-hidden",
12239
12448
  open: true
12240
- }, /* @__PURE__ */ React77.createElement(AnimatedBackDrop, __spreadValues({
12449
+ }, /* @__PURE__ */ React78.createElement(AnimatedBackDrop, __spreadValues({
12241
12450
  style: { opacity }
12242
- }, underlayProps)), /* @__PURE__ */ React77.createElement(DrawerWrapper, __spreadProps(__spreadValues(__spreadValues({
12451
+ }, underlayProps)), /* @__PURE__ */ React78.createElement(DrawerWrapper, __spreadProps(__spreadValues(__spreadValues({
12243
12452
  ref
12244
12453
  }, props), modalProps), {
12245
12454
  spring: { right }
12246
12455
  }))));
12247
12456
  };
12248
- var DrawerWrapper = React77.forwardRef(
12457
+ var DrawerWrapper = React78.forwardRef(
12249
12458
  (_a, ref) => {
12250
12459
  var _b = _a, {
12251
12460
  title,
@@ -12282,62 +12491,62 @@ var DrawerWrapper = React77.forwardRef(
12282
12491
  ref
12283
12492
  );
12284
12493
  const dialogSize = size === "lg" ? "full" : size;
12285
- const childElements = React77.Children.toArray(children).filter(React77.isValidElement);
12494
+ const childElements = React78.Children.toArray(children).filter(React78.isValidElement);
12286
12495
  const onlyChild = childElements.length === 1 ? childElements[0] : null;
12287
12496
  const hasTabs = isComponentType(onlyChild, Tabs);
12288
- return /* @__PURE__ */ React77.createElement(AnimatedDialog, __spreadProps(__spreadValues(__spreadValues({
12497
+ return /* @__PURE__ */ React78.createElement(AnimatedDialog, __spreadProps(__spreadValues(__spreadValues({
12289
12498
  ref,
12290
12499
  kind: "drawer",
12291
12500
  "aria-modal": "true",
12292
12501
  size: dialogSize
12293
12502
  }, props), dialogProps), {
12294
12503
  style: { position: "fixed", right: spring.right }
12295
- }), /* @__PURE__ */ React77.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React77.createElement(Button.Icon, {
12504
+ }), /* @__PURE__ */ React78.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React78.createElement(Button.Icon, {
12296
12505
  "aria-label": "Close",
12297
12506
  icon: import_cross6.default,
12298
12507
  onClick: onClose
12299
- })), /* @__PURE__ */ React77.createElement(Modal.Header, {
12508
+ })), /* @__PURE__ */ React78.createElement(Modal.Header, {
12300
12509
  className: tw({ "pb-3": hasTabs })
12301
- }, /* @__PURE__ */ React77.createElement(Modal.Title, {
12510
+ }, /* @__PURE__ */ React78.createElement(Modal.Title, {
12302
12511
  id: labelledBy,
12303
12512
  kind: "drawer"
12304
- }, title)), hasTabs ? /* @__PURE__ */ React77.createElement(DrawerTabs, __spreadProps(__spreadValues({}, onlyChild.props), {
12513
+ }, title)), hasTabs ? /* @__PURE__ */ React78.createElement(DrawerTabs, __spreadProps(__spreadValues({}, onlyChild.props), {
12305
12514
  className: tw("[&>div:first-child]:px-5 grow flex flex-col overflow-y-auto")
12306
- })) : /* @__PURE__ */ React77.createElement(Modal.Body, {
12515
+ })) : /* @__PURE__ */ React78.createElement(Modal.Body, {
12307
12516
  id: describedBy,
12308
12517
  tabIndex: 0,
12309
12518
  noFooter: !(secondaryActions || primaryAction)
12310
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React77.createElement(Modal.Footer, null, /* @__PURE__ */ React77.createElement(Modal.Actions, {
12519
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React78.createElement(Modal.Footer, null, /* @__PURE__ */ React78.createElement(Modal.Actions, {
12311
12520
  className: size === "sm" ? tw("flex-col") : void 0
12312
- }, size !== "sm" && menu && /* @__PURE__ */ React77.createElement(Box.Flex, {
12521
+ }, size !== "sm" && menu && /* @__PURE__ */ React78.createElement(Box.Flex, {
12313
12522
  alignItems: "center"
12314
- }, /* @__PURE__ */ React77.createElement(DropdownMenu2, {
12523
+ }, /* @__PURE__ */ React78.createElement(DropdownMenu2, {
12315
12524
  onAction: (action) => onAction == null ? void 0 : onAction(action),
12316
12525
  onOpenChange: onMenuOpenChange
12317
- }, /* @__PURE__ */ React77.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React77.createElement(Button.Icon, {
12526
+ }, /* @__PURE__ */ React78.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React78.createElement(Button.Icon, {
12318
12527
  "aria-label": (_a2 = menuAriaLabel != null ? menuAriaLabel : menuLabel) != null ? _a2 : "Context menu",
12319
12528
  icon: import_more4.default
12320
- })), menu)), secondaryActions && castArray(secondaryActions).filter(Boolean).map((_b2) => {
12529
+ })), menu)), secondaryActions && castArray2(secondaryActions).filter(Boolean).map((_b2) => {
12321
12530
  var _c = _b2, { text } = _c, action = __objRest(_c, ["text"]);
12322
- return /* @__PURE__ */ React77.createElement(Button.Secondary, __spreadValues({
12531
+ return /* @__PURE__ */ React78.createElement(Button.Secondary, __spreadValues({
12323
12532
  key: text
12324
12533
  }, action), text);
12325
- }), primaryAction && /* @__PURE__ */ React77.createElement(Button.Primary, __spreadValues({
12534
+ }), primaryAction && /* @__PURE__ */ React78.createElement(Button.Primary, __spreadValues({
12326
12535
  key: primaryAction.text
12327
12536
  }, omit9(primaryAction, "text")), primaryAction.text))));
12328
12537
  }
12329
12538
  );
12330
- var DrawerTabs = createTabsComponent(ModalTab, TabItem, "DrawerTabs", (children, selected) => /* @__PURE__ */ React77.createElement(Modal.Body, {
12539
+ var DrawerTabs = createTabsComponent(ModalTab, TabItem, "DrawerTabs", (children, selected) => /* @__PURE__ */ React78.createElement(Modal.Body, {
12331
12540
  className: tw("h-full")
12332
- }, /* @__PURE__ */ React77.createElement(ModalTabContainer, null, children.find(
12541
+ }, /* @__PURE__ */ React78.createElement(ModalTabContainer, null, children.find(
12333
12542
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
12334
12543
  ))));
12335
12544
 
12336
12545
  // src/molecules/Dropdown/Dropdown.tsx
12337
- import React80 from "react";
12546
+ import React81 from "react";
12338
12547
 
12339
12548
  // src/molecules/Popover/Popover.tsx
12340
- import React79, { useRef as useRef8 } from "react";
12549
+ import React80, { useRef as useRef8 } from "react";
12341
12550
  import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
12342
12551
  import { useOverlayTrigger } from "@react-aria/overlays";
12343
12552
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
@@ -12346,12 +12555,12 @@ import classNames8 from "classnames";
12346
12555
  import omit10 from "lodash/omit";
12347
12556
 
12348
12557
  // src/molecules/Popover/Dialog.tsx
12349
- import React78 from "react";
12558
+ import React79 from "react";
12350
12559
  import { useDialog as useDialog3 } from "@react-aria/dialog";
12351
12560
  var Dialog2 = ({ children }) => {
12352
- const ref = React78.useRef(null);
12561
+ const ref = React79.useRef(null);
12353
12562
  const { dialogProps } = useDialog3({}, ref);
12354
- return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({
12563
+ return /* @__PURE__ */ React79.createElement("div", __spreadProps(__spreadValues({
12355
12564
  ref
12356
12565
  }, dialogProps), {
12357
12566
  className: tw("outline-none")
@@ -12359,10 +12568,10 @@ var Dialog2 = ({ children }) => {
12359
12568
  };
12360
12569
 
12361
12570
  // src/molecules/Popover/PopoverContext.tsx
12362
- import { createContext as createContext3, useContext as useContext6 } from "react";
12363
- var PopoverContext = createContext3(null);
12571
+ import { createContext as createContext4, useContext as useContext7 } from "react";
12572
+ var PopoverContext = createContext4(null);
12364
12573
  var usePopoverContext = () => {
12365
- const ctx = useContext6(PopoverContext);
12574
+ const ctx = useContext7(PopoverContext);
12366
12575
  if (ctx === null) {
12367
12576
  throw new Error("PopoverContext was used outside of provider.");
12368
12577
  }
@@ -12385,22 +12594,22 @@ var Popover2 = (props) => {
12385
12594
  const triggerRef = useRef8(null);
12386
12595
  const state = useOverlayTriggerState4(props);
12387
12596
  const { triggerProps, overlayProps } = useOverlayTrigger({ type: type != null ? type : "dialog" }, state, triggerRef);
12388
- return /* @__PURE__ */ React79.createElement(PopoverContext.Provider, {
12597
+ return /* @__PURE__ */ React80.createElement(PopoverContext.Provider, {
12389
12598
  value: {
12390
12599
  state
12391
12600
  }
12392
- }, React79.Children.map(props.children, (child) => {
12601
+ }, React80.Children.map(props.children, (child) => {
12393
12602
  if (isComponentType(child, Popover2.Trigger)) {
12394
- return /* @__PURE__ */ React79.createElement(PressResponder2, __spreadValues({
12603
+ return /* @__PURE__ */ React80.createElement(PressResponder2, __spreadValues({
12395
12604
  ref: triggerRef
12396
- }, omit10(triggerProps, "aria-expanded")), /* @__PURE__ */ React79.createElement(PopoverTriggerWrapper, {
12605
+ }, omit10(triggerProps, "aria-expanded")), /* @__PURE__ */ React80.createElement(PopoverTriggerWrapper, {
12397
12606
  "data-testid": props["data-testid"],
12398
12607
  "aria-controls": id,
12399
12608
  "aria-expanded": triggerProps["aria-expanded"]
12400
12609
  }, child.props.children));
12401
12610
  }
12402
12611
  if (isComponentType(child, Popover2.Panel)) {
12403
- return state.isOpen && /* @__PURE__ */ React79.createElement(PopoverOverlay, __spreadValues({
12612
+ return state.isOpen && /* @__PURE__ */ React80.createElement(PopoverOverlay, __spreadValues({
12404
12613
  triggerRef: targetRef != null ? targetRef : triggerRef,
12405
12614
  state,
12406
12615
  placement,
@@ -12411,7 +12620,7 @@ var Popover2 = (props) => {
12411
12620
  offset,
12412
12621
  crossOffset,
12413
12622
  shouldFlip
12414
- }, overlayProps), containFocus ? /* @__PURE__ */ React79.createElement(Dialog2, null, child.props.children) : child.props.children);
12623
+ }, overlayProps), containFocus ? /* @__PURE__ */ React80.createElement(Dialog2, null, child.props.children) : child.props.children);
12415
12624
  }
12416
12625
  throw new Error("Invalid children element type");
12417
12626
  }));
@@ -12430,7 +12639,7 @@ var asPopoverButton = (Component, displayName) => {
12430
12639
  state.close();
12431
12640
  onClick == null ? void 0 : onClick(e);
12432
12641
  };
12433
- return /* @__PURE__ */ React79.createElement(Component, __spreadProps(__spreadValues({}, props), {
12642
+ return /* @__PURE__ */ React80.createElement(Component, __spreadProps(__spreadValues({}, props), {
12434
12643
  onClick: handleClick
12435
12644
  }));
12436
12645
  };
@@ -12443,9 +12652,9 @@ var PopoverTriggerWrapper = (_a) => {
12443
12652
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
12444
12653
  var _a2;
12445
12654
  const ref = useRef8(null);
12446
- const trigger = React79.Children.only(children);
12655
+ const trigger = React80.Children.only(children);
12447
12656
  const { pressProps } = usePress2(__spreadProps(__spreadValues({}, rest), { ref }));
12448
- return React79.cloneElement(trigger, __spreadProps(__spreadValues({
12657
+ return React80.cloneElement(trigger, __spreadProps(__spreadValues({
12449
12658
  "ref": ref
12450
12659
  }, mergeProps3(pressProps, trigger.props)), {
12451
12660
  "aria-controls": (_a2 = rest["aria-controls"]) != null ? _a2 : pressProps["aria-controls"]
@@ -12454,10 +12663,10 @@ var PopoverTriggerWrapper = (_a) => {
12454
12663
 
12455
12664
  // src/molecules/Dropdown/Dropdown.tsx
12456
12665
  var Dropdown = ({ children, content, placement = "bottom-left" }) => {
12457
- return /* @__PURE__ */ React80.createElement(Popover2, {
12666
+ return /* @__PURE__ */ React81.createElement(Popover2, {
12458
12667
  type: "menu",
12459
12668
  placement
12460
- }, /* @__PURE__ */ React80.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React80.createElement(Popover2.Panel, {
12669
+ }, /* @__PURE__ */ React81.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React81.createElement(Popover2.Panel, {
12461
12670
  className: "Aquarium-Dropdown"
12462
12671
  }, content));
12463
12672
  };
@@ -12468,26 +12677,26 @@ var DropdownMenu3 = ({
12468
12677
  triggerId,
12469
12678
  setClose = () => void 0
12470
12679
  }) => {
12471
- const menuRef = React80.useRef(null);
12472
- React80.useEffect(() => {
12680
+ const menuRef = React81.useRef(null);
12681
+ React81.useEffect(() => {
12473
12682
  const id = setTimeout(() => {
12474
12683
  var _a, _b, _c;
12475
12684
  return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
12476
12685
  });
12477
12686
  return () => clearTimeout(id);
12478
12687
  }, [menuRef.current]);
12479
- return /* @__PURE__ */ React80.createElement("div", {
12688
+ return /* @__PURE__ */ React81.createElement("div", {
12480
12689
  style: { minWidth: "250px" },
12481
12690
  className: tw("py-3 bg-white")
12482
- }, !!title && /* @__PURE__ */ React80.createElement("div", {
12691
+ }, !!title && /* @__PURE__ */ React81.createElement("div", {
12483
12692
  className: tw("px-4 py-4 text-left text-grey-100 typography-default-strong")
12484
- }, title), /* @__PURE__ */ React80.createElement("ol", {
12693
+ }, title), /* @__PURE__ */ React81.createElement("ol", {
12485
12694
  role: "menu",
12486
12695
  ref: menuRef,
12487
12696
  id: contentId,
12488
12697
  "aria-labelledby": triggerId
12489
- }, React80.Children.map(children, (child) => {
12490
- return React80.cloneElement(child, { setClose });
12698
+ }, React81.Children.map(children, (child) => {
12699
+ return React81.cloneElement(child, { setClose });
12491
12700
  })));
12492
12701
  };
12493
12702
  var DropdownItem = (_a) => {
@@ -12542,10 +12751,10 @@ var DropdownItem = (_a) => {
12542
12751
  handleSelect();
12543
12752
  }
12544
12753
  };
12545
- const itemContent = /* @__PURE__ */ React80.createElement("div", {
12754
+ const itemContent = /* @__PURE__ */ React81.createElement("div", {
12546
12755
  className: tw("py-3 px-4")
12547
12756
  }, children);
12548
- return /* @__PURE__ */ React80.createElement("li", __spreadProps(__spreadValues({
12757
+ return /* @__PURE__ */ React81.createElement("li", __spreadProps(__spreadValues({
12549
12758
  role: "menuitem",
12550
12759
  tabIndex: -1,
12551
12760
  onClick: handleClick,
@@ -12556,11 +12765,11 @@ var DropdownItem = (_a) => {
12556
12765
  "text-muted cursor-not-allowed": disabled,
12557
12766
  "text-primary-70 hover:text-primary-80": color === "danger" && !disabled
12558
12767
  })
12559
- }), tooltip ? /* @__PURE__ */ React80.createElement(Tooltip, {
12768
+ }), tooltip ? /* @__PURE__ */ React81.createElement(Tooltip, {
12560
12769
  content: tooltip,
12561
12770
  placement: tooltipPlacement,
12562
12771
  inline: false
12563
- }, /* @__PURE__ */ React80.createElement("div", {
12772
+ }, /* @__PURE__ */ React81.createElement("div", {
12564
12773
  tabIndex: 0,
12565
12774
  className: tw("grow")
12566
12775
  }, itemContent)) : itemContent);
@@ -12569,7 +12778,7 @@ Dropdown.Menu = DropdownMenu3;
12569
12778
  Dropdown.Item = DropdownItem;
12570
12779
 
12571
12780
  // src/molecules/EmptyState/EmptyState.tsx
12572
- import React81 from "react";
12781
+ import React82 from "react";
12573
12782
  var EmptyStateLayout = /* @__PURE__ */ ((EmptyStateLayout2) => {
12574
12783
  EmptyStateLayout2["Vertical"] = "vertical";
12575
12784
  EmptyStateLayout2["Horizontal"] = "horizontal";
@@ -12626,7 +12835,7 @@ var EmptyState = ({
12626
12835
  fullHeight = isVerticalLayout(layout) ? true : false
12627
12836
  }) => {
12628
12837
  const template = layoutStyle(layout);
12629
- return /* @__PURE__ */ React81.createElement(Box, {
12838
+ return /* @__PURE__ */ React82.createElement(Box, {
12630
12839
  className: classNames(
12631
12840
  "Aquarium-EmptyState",
12632
12841
  tw("rounded p-[56px]", {
@@ -12639,39 +12848,39 @@ var EmptyState = ({
12639
12848
  ),
12640
12849
  backgroundColor: "transparent",
12641
12850
  borderColor: "grey-10"
12642
- }, /* @__PURE__ */ React81.createElement(Box.Flex, {
12851
+ }, /* @__PURE__ */ React82.createElement(Box.Flex, {
12643
12852
  style: { gap: "56px" },
12644
12853
  flexDirection: template.layout,
12645
12854
  justifyContent: template.justifyContent,
12646
12855
  alignItems: template.layout === "row" ? "center" : template.alignItems,
12647
12856
  height: fullHeight ? "full" : void 0
12648
- }, image && /* @__PURE__ */ React81.createElement("img", {
12857
+ }, image && /* @__PURE__ */ React82.createElement("img", {
12649
12858
  src: image,
12650
12859
  alt: imageAlt,
12651
12860
  style: { width: imageWidth ? `${imageWidth}px` : void 0, height: "auto" }
12652
- }), /* @__PURE__ */ React81.createElement(Box.Flex, {
12861
+ }), /* @__PURE__ */ React82.createElement(Box.Flex, {
12653
12862
  flexDirection: "column",
12654
12863
  justifyContent: template.justifyContent,
12655
12864
  alignItems: template.alignItems
12656
- }, /* @__PURE__ */ React81.createElement(Typography2.Heading, {
12865
+ }, /* @__PURE__ */ React82.createElement(Typography2.Heading, {
12657
12866
  htmlTag: "h2"
12658
- }, title), (description || children) && /* @__PURE__ */ React81.createElement(Box, {
12867
+ }, title), (description || children) && /* @__PURE__ */ React82.createElement(Box, {
12659
12868
  marginTop: "5"
12660
- }, /* @__PURE__ */ React81.createElement(Typography2.Default, null, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React81.createElement(Box.Flex, {
12869
+ }, /* @__PURE__ */ React82.createElement(Typography2.Default, null, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React82.createElement(Box.Flex, {
12661
12870
  marginTop: "7",
12662
12871
  gap: "4",
12663
12872
  justifyContent: "center",
12664
12873
  alignItems: "center",
12665
12874
  flexWrap: "wrap"
12666
- }, primaryAction && renderAction({ kind: "primary", action: primaryAction }), secondaryAction && renderAction({ kind: "secondary", action: secondaryAction })), footer && /* @__PURE__ */ React81.createElement(Box, {
12875
+ }, primaryAction && renderAction({ kind: "primary", action: primaryAction }), secondaryAction && renderAction({ kind: "secondary", action: secondaryAction })), footer && /* @__PURE__ */ React82.createElement(Box, {
12667
12876
  marginTop: "5"
12668
- }, /* @__PURE__ */ React81.createElement(Typography2.Small, {
12877
+ }, /* @__PURE__ */ React82.createElement(Typography2.Small, {
12669
12878
  color: "grey-60"
12670
12879
  }, footer)))));
12671
12880
  };
12672
12881
 
12673
12882
  // src/molecules/Flexbox/FlexboxItem.tsx
12674
- import React82 from "react";
12883
+ import React83 from "react";
12675
12884
  var FlexboxItem = Tailwindify(
12676
12885
  ({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
12677
12886
  const hookStyle = useStyle({
@@ -12683,7 +12892,7 @@ var FlexboxItem = Tailwindify(
12683
12892
  alignSelf
12684
12893
  });
12685
12894
  const HtmlElement = htmlTag;
12686
- return /* @__PURE__ */ React82.createElement(HtmlElement, {
12895
+ return /* @__PURE__ */ React83.createElement(HtmlElement, {
12687
12896
  style: __spreadValues(__spreadValues({}, hookStyle), style),
12688
12897
  className
12689
12898
  }, children);
@@ -12691,7 +12900,7 @@ var FlexboxItem = Tailwindify(
12691
12900
  );
12692
12901
 
12693
12902
  // src/molecules/Grid/GridItem.tsx
12694
- import React83 from "react";
12903
+ import React84 from "react";
12695
12904
  var GridItem2 = Tailwindify(
12696
12905
  ({
12697
12906
  htmlTag = "div",
@@ -12722,7 +12931,7 @@ var GridItem2 = Tailwindify(
12722
12931
  gridRowEnd: rowEnd
12723
12932
  });
12724
12933
  const HtmlElement = htmlTag;
12725
- return /* @__PURE__ */ React83.createElement(HtmlElement, {
12934
+ return /* @__PURE__ */ React84.createElement(HtmlElement, {
12726
12935
  style: __spreadValues(__spreadValues({}, hookStyle), style),
12727
12936
  className
12728
12937
  }, children);
@@ -12730,7 +12939,7 @@ var GridItem2 = Tailwindify(
12730
12939
  );
12731
12940
 
12732
12941
  // src/molecules/LineClamp/LineClamp.tsx
12733
- import React84 from "react";
12942
+ import React85 from "react";
12734
12943
  var LineClamp2 = ({
12735
12944
  lines,
12736
12945
  children,
@@ -12739,10 +12948,10 @@ var LineClamp2 = ({
12739
12948
  collapseLabel,
12740
12949
  onClampedChange
12741
12950
  }) => {
12742
- const ref = React84.useRef(null);
12743
- const [clamped, setClamped] = React84.useState(true);
12744
- const [isClampingEnabled, setClampingEnabled] = React84.useState(false);
12745
- React84.useEffect(() => {
12951
+ const ref = React85.useRef(null);
12952
+ const [clamped, setClamped] = React85.useState(true);
12953
+ const [isClampingEnabled, setClampingEnabled] = React85.useState(false);
12954
+ React85.useEffect(() => {
12746
12955
  var _a, _b;
12747
12956
  const el = ref.current;
12748
12957
  setClampingEnabled(((_a = el == null ? void 0 : el.scrollHeight) != null ? _a : 0) > ((_b = el == null ? void 0 : el.clientHeight) != null ? _b : 0));
@@ -12751,28 +12960,28 @@ var LineClamp2 = ({
12751
12960
  setClamped(!clamped);
12752
12961
  onClampedChange == null ? void 0 : onClampedChange(!clamped);
12753
12962
  };
12754
- return /* @__PURE__ */ React84.createElement("div", {
12963
+ return /* @__PURE__ */ React85.createElement("div", {
12755
12964
  className: "Aquarium-LineClamp"
12756
- }, /* @__PURE__ */ React84.createElement(LineClamp, {
12965
+ }, /* @__PURE__ */ React85.createElement(LineClamp, {
12757
12966
  ref,
12758
12967
  lines,
12759
12968
  clamped,
12760
12969
  wordBreak
12761
- }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React84.createElement(Button.Ghost, {
12970
+ }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React85.createElement(Button.Ghost, {
12762
12971
  dense: true,
12763
12972
  onClick: handleClampedChange
12764
12973
  }, clamped ? expandLabel : collapseLabel));
12765
12974
  };
12766
12975
 
12767
12976
  // src/molecules/Link/Link.tsx
12768
- import React86 from "react";
12977
+ import React87 from "react";
12769
12978
  import classNames9 from "classnames";
12770
12979
 
12771
12980
  // src/atoms/Link/Link.tsx
12772
- import React85 from "react";
12981
+ import React86 from "react";
12773
12982
  var Link = (_a) => {
12774
12983
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
12775
- return /* @__PURE__ */ React85.createElement("a", __spreadValues({
12984
+ return /* @__PURE__ */ React86.createElement("a", __spreadValues({
12776
12985
  className: classNames(className, linkStyle)
12777
12986
  }, props), children);
12778
12987
  };
@@ -12780,27 +12989,27 @@ var Link = (_a) => {
12780
12989
  // src/molecules/Link/Link.tsx
12781
12990
  var Link2 = (_a) => {
12782
12991
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12783
- return /* @__PURE__ */ React86.createElement(Link, __spreadValues({
12992
+ return /* @__PURE__ */ React87.createElement(Link, __spreadValues({
12784
12993
  className: classNames9("Aquarium-Link", className)
12785
12994
  }, props));
12786
12995
  };
12787
12996
 
12788
12997
  // src/molecules/List/useStaticInfiniteList.ts
12789
- import React87 from "react";
12998
+ import React88 from "react";
12790
12999
  var useStaticInfiniteList = ({
12791
13000
  items,
12792
13001
  pageSize,
12793
13002
  autoReset = true
12794
13003
  }) => {
12795
- const [currentPage, setCurrentPage] = React87.useState(1);
13004
+ const [currentPage, setCurrentPage] = React88.useState(1);
12796
13005
  const numberOfVisible = currentPage * pageSize;
12797
- const next = React87.useCallback(() => {
13006
+ const next = React88.useCallback(() => {
12798
13007
  setCurrentPage((page) => page + 1);
12799
13008
  }, [setCurrentPage]);
12800
- const reset = React87.useCallback(() => {
13009
+ const reset = React88.useCallback(() => {
12801
13010
  setCurrentPage(1);
12802
13011
  }, [setCurrentPage]);
12803
- React87.useEffect(() => {
13012
+ React88.useEffect(() => {
12804
13013
  if (autoReset) {
12805
13014
  setCurrentPage(1);
12806
13015
  }
@@ -12815,17 +13024,17 @@ var useStaticInfiniteList = ({
12815
13024
  };
12816
13025
 
12817
13026
  // src/molecules/ListItem/ListItem.tsx
12818
- import React88 from "react";
13027
+ import React89 from "react";
12819
13028
  var ListItem = ({ name, icon, active = false }) => {
12820
- return /* @__PURE__ */ React88.createElement(Box.Flex, {
13029
+ return /* @__PURE__ */ React89.createElement(Box.Flex, {
12821
13030
  className: "Aquarium-ListItem",
12822
13031
  alignItems: "center"
12823
- }, /* @__PURE__ */ React88.createElement(Typography2, {
13032
+ }, /* @__PURE__ */ React89.createElement(Typography2, {
12824
13033
  variant: active ? "small-strong" : "small",
12825
13034
  color: "grey-70",
12826
13035
  htmlTag: "span",
12827
13036
  className: `px-4 py-2 rounded-full ${active ? "bg-grey-5" : "hover:bg-grey-0"}`
12828
- }, /* @__PURE__ */ React88.createElement("img", {
13037
+ }, /* @__PURE__ */ React89.createElement("img", {
12829
13038
  src: icon,
12830
13039
  alt: "",
12831
13040
  className: "inline mr-4",
@@ -12835,18 +13044,18 @@ var ListItem = ({ name, icon, active = false }) => {
12835
13044
  };
12836
13045
 
12837
13046
  // src/molecules/Modal/Modal.tsx
12838
- import React89 from "react";
13047
+ import React90 from "react";
12839
13048
  import { useDialog as useDialog4 } from "@react-aria/dialog";
12840
13049
  import { Overlay as Overlay4, useModalOverlay as useModalOverlay3 } from "@react-aria/overlays";
12841
13050
  import { useId as useId11 } from "@react-aria/utils";
12842
13051
  import { useOverlayTriggerState as useOverlayTriggerState5 } from "@react-stately/overlays";
12843
- import castArray2 from "lodash/castArray";
13052
+ import castArray3 from "lodash/castArray";
12844
13053
  import omit11 from "lodash/omit";
12845
13054
  var import_cross7 = __toESM(require_cross());
12846
13055
  var Modal2 = (_a) => {
12847
13056
  var _b = _a, { closeOnEsc = true } = _b, props = __objRest(_b, ["closeOnEsc"]);
12848
13057
  const { open, onClose, size, portalContainer } = props;
12849
- const ref = React89.useRef(null);
13058
+ const ref = React90.useRef(null);
12850
13059
  const state = useOverlayTriggerState5({ isOpen: open, onOpenChange: (isOpen) => !isOpen && onClose() });
12851
13060
  const { modalProps, underlayProps } = useModalOverlay3(
12852
13061
  { isDismissable: false, isKeyboardDismissDisabled: !closeOnEsc },
@@ -12856,17 +13065,17 @@ var Modal2 = (_a) => {
12856
13065
  if (!state.isOpen) {
12857
13066
  return null;
12858
13067
  }
12859
- return /* @__PURE__ */ React89.createElement(Overlay4, {
13068
+ return /* @__PURE__ */ React90.createElement(Overlay4, {
12860
13069
  portalContainer
12861
- }, /* @__PURE__ */ React89.createElement(Modal, {
13070
+ }, /* @__PURE__ */ React90.createElement(Modal, {
12862
13071
  className: "Aquarium-Modal",
12863
13072
  open: true
12864
- }, /* @__PURE__ */ React89.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React89.createElement(ModalWrapper, __spreadValues(__spreadValues({
13073
+ }, /* @__PURE__ */ React90.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React90.createElement(ModalWrapper, __spreadValues(__spreadValues({
12865
13074
  ref,
12866
13075
  size
12867
13076
  }, props), modalProps))));
12868
13077
  };
12869
- var ModalWrapper = React89.forwardRef(
13078
+ var ModalWrapper = React90.forwardRef(
12870
13079
  (_a, ref) => {
12871
13080
  var _b = _a, { title, subtitle, headerImage, primaryAction, secondaryActions, children, onClose } = _b, props = __objRest(_b, ["title", "subtitle", "headerImage", "primaryAction", "secondaryActions", "children", "onClose"]);
12872
13081
  const labelledBy = useId11();
@@ -12875,30 +13084,30 @@ var ModalWrapper = React89.forwardRef(
12875
13084
  { "role": "dialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
12876
13085
  ref
12877
13086
  );
12878
- return /* @__PURE__ */ React89.createElement(Modal.Dialog, __spreadProps(__spreadValues(__spreadValues({
13087
+ return /* @__PURE__ */ React90.createElement(Modal.Dialog, __spreadProps(__spreadValues(__spreadValues({
12879
13088
  ref
12880
13089
  }, props), dialogProps), {
12881
13090
  tabIndex: -1
12882
- }), /* @__PURE__ */ React89.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React89.createElement(IconButton, {
13091
+ }), /* @__PURE__ */ React90.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React90.createElement(IconButton, {
12883
13092
  "aria-label": "Close",
12884
13093
  icon: import_cross7.default,
12885
13094
  onClick: onClose
12886
- })), headerImage !== void 0 && /* @__PURE__ */ React89.createElement(Modal.HeaderImage, {
13095
+ })), headerImage !== void 0 && /* @__PURE__ */ React90.createElement(Modal.HeaderImage, {
12887
13096
  backgroundImage: headerImage
12888
- }), /* @__PURE__ */ React89.createElement(Modal.Header, {
13097
+ }), /* @__PURE__ */ React90.createElement(Modal.Header, {
12889
13098
  className: tw({ "pb-3": isComponentType(children, ModalTabs) })
12890
- }, /* @__PURE__ */ React89.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React89.createElement(Modal.Title, {
13099
+ }, /* @__PURE__ */ React90.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React90.createElement(Modal.Title, {
12891
13100
  id: labelledBy
12892
- }, title), subtitle && /* @__PURE__ */ React89.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React89.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React89.createElement(Modal.Body, {
13101
+ }, title), subtitle && /* @__PURE__ */ React90.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React90.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React90.createElement(Modal.Body, {
12893
13102
  id: describedBy,
12894
13103
  tabIndex: 0,
12895
13104
  noFooter: !(secondaryActions || primaryAction)
12896
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React89.createElement(Modal.Footer, null, /* @__PURE__ */ React89.createElement(Modal.Actions, null, secondaryActions && castArray2(secondaryActions).filter(Boolean).map((_a2) => {
13105
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React90.createElement(Modal.Footer, null, /* @__PURE__ */ React90.createElement(Modal.Actions, null, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a2) => {
12897
13106
  var _b2 = _a2, { text } = _b2, action = __objRest(_b2, ["text"]);
12898
- return /* @__PURE__ */ React89.createElement(Button.Secondary, __spreadValues({
13107
+ return /* @__PURE__ */ React90.createElement(Button.Secondary, __spreadValues({
12899
13108
  key: text
12900
13109
  }, action), text);
12901
- }), primaryAction && /* @__PURE__ */ React89.createElement(Button.Primary, __spreadValues({
13110
+ }), primaryAction && /* @__PURE__ */ React90.createElement(Button.Primary, __spreadValues({
12902
13111
  key: primaryAction.text
12903
13112
  }, omit11(primaryAction, "text")), primaryAction.text))));
12904
13113
  }
@@ -12907,24 +13116,24 @@ var ModalTabs = createTabsComponent(
12907
13116
  ModalTab,
12908
13117
  TabItem,
12909
13118
  "ModalTabs",
12910
- (children, selected, props) => /* @__PURE__ */ React89.createElement(Modal.Body, {
13119
+ (children, selected, props) => /* @__PURE__ */ React90.createElement(Modal.Body, {
12911
13120
  maxHeight: props.maxHeight
12912
- }, /* @__PURE__ */ React89.createElement(ModalTabContainer, null, children.find(
13121
+ }, /* @__PURE__ */ React90.createElement(ModalTabContainer, null, children.find(
12913
13122
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
12914
13123
  )))
12915
13124
  );
12916
13125
 
12917
13126
  // src/molecules/MultiInput/MultiInput.tsx
12918
- import React91, { useEffect as useEffect11, useRef as useRef9, useState as useState11 } from "react";
13127
+ import React92, { useEffect as useEffect11, useRef as useRef9, useState as useState11 } from "react";
12919
13128
  import { useId as useId12 } from "@react-aria/utils";
12920
- import castArray3 from "lodash/castArray";
13129
+ import castArray4 from "lodash/castArray";
12921
13130
  import identity from "lodash/identity";
12922
13131
  import omit12 from "lodash/omit";
12923
13132
 
12924
13133
  // src/molecules/MultiInput/InputChip.tsx
12925
- import React90 from "react";
13134
+ import React91 from "react";
12926
13135
  var import_smallCross2 = __toESM(require_smallCross());
12927
- var InputChip = React90.forwardRef(
13136
+ var InputChip = React91.forwardRef(
12928
13137
  (_a, ref) => {
12929
13138
  var _b = _a, { invalid = false, disabled, readOnly, className, onClick: _onClick, children } = _b, props = __objRest(_b, ["invalid", "disabled", "readOnly", "className", "onClick", "children"]);
12930
13139
  const onClick = (e) => {
@@ -12932,18 +13141,18 @@ var InputChip = React90.forwardRef(
12932
13141
  _onClick == null ? void 0 : _onClick(e);
12933
13142
  }
12934
13143
  };
12935
- return /* @__PURE__ */ React90.createElement("div", {
13144
+ return /* @__PURE__ */ React91.createElement("div", {
12936
13145
  className: classNames(className, "inline-flex align-middle mx-1 items-stretch rounded-sm break-all", {
12937
13146
  "bg-error-0 ": invalid,
12938
13147
  "bg-grey-0 ": !invalid && !disabled,
12939
13148
  "bg-grey-5": disabled
12940
13149
  })
12941
- }, /* @__PURE__ */ React90.createElement("div", {
13150
+ }, /* @__PURE__ */ React91.createElement("div", {
12942
13151
  className: tw("px-2 py-1")
12943
- }, /* @__PURE__ */ React90.createElement(Typography2, {
13152
+ }, /* @__PURE__ */ React91.createElement(Typography2, {
12944
13153
  variant: "small",
12945
13154
  color: invalid ? "error-80" : disabled ? "grey-40" : "grey-70"
12946
- }, children)), !readOnly && /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({
13155
+ }, children)), !readOnly && /* @__PURE__ */ React91.createElement("div", __spreadProps(__spreadValues({
12947
13156
  ref
12948
13157
  }, props), {
12949
13158
  onClick,
@@ -12954,7 +13163,7 @@ var InputChip = React90.forwardRef(
12954
13163
  }),
12955
13164
  role: "button",
12956
13165
  "aria-label": `Remove ${String(children)}`
12957
- }), /* @__PURE__ */ React90.createElement(Icon, {
13166
+ }), /* @__PURE__ */ React91.createElement(Icon, {
12958
13167
  icon: import_smallCross2.default,
12959
13168
  className: tw({
12960
13169
  "text-error-70": invalid,
@@ -13057,7 +13266,7 @@ var MultiInputBase = (_a) => {
13057
13266
  inputRef.current.value = "";
13058
13267
  }
13059
13268
  if (value2) {
13060
- const newItems = castArray3(value2).map(createItem).filter((item) => !items.includes(item));
13269
+ const newItems = castArray4(value2).map(createItem).filter((item) => !items.includes(item));
13061
13270
  if (newItems.length > 0 && items.length + newItems.length <= (maxLength != null ? maxLength : Number.MAX_SAFE_INTEGER)) {
13062
13271
  const updated = (items != null ? items : []).concat(newItems);
13063
13272
  setItems(updated);
@@ -13095,7 +13304,7 @@ var MultiInputBase = (_a) => {
13095
13304
  };
13096
13305
  const renderChips = () => items == null ? void 0 : items.map((item, index) => {
13097
13306
  var _a3;
13098
- return /* @__PURE__ */ React91.createElement(InputChip, {
13307
+ return /* @__PURE__ */ React92.createElement(InputChip, {
13099
13308
  key: `${itemToString(item)}.${index}`,
13100
13309
  invalid: !((_a3 = isItemValid == null ? void 0 : isItemValid(item, index)) != null ? _a3 : true),
13101
13310
  readOnly,
@@ -13106,13 +13315,13 @@ var MultiInputBase = (_a) => {
13106
13315
  }
13107
13316
  }, itemToString(item));
13108
13317
  });
13109
- return /* @__PURE__ */ React91.createElement("div", {
13318
+ return /* @__PURE__ */ React92.createElement("div", {
13110
13319
  className: "Aquarium-MultiInputBase"
13111
- }, /* @__PURE__ */ React91.createElement(Select.InputContainer, {
13320
+ }, /* @__PURE__ */ React92.createElement(Select.InputContainer, {
13112
13321
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
13113
- }, /* @__PURE__ */ React91.createElement("div", {
13322
+ }, /* @__PURE__ */ React92.createElement("div", {
13114
13323
  className: "grow inline-flex flex-row flex-wrap gap-y-2"
13115
- }, inline && renderChips(), /* @__PURE__ */ React91.createElement(Select.Input, __spreadProps(__spreadValues({
13324
+ }, inline && renderChips(), /* @__PURE__ */ React92.createElement(Select.Input, __spreadProps(__spreadValues({
13116
13325
  ref: inputRef,
13117
13326
  id: id != null ? id : name,
13118
13327
  name,
@@ -13130,11 +13339,11 @@ var MultiInputBase = (_a) => {
13130
13339
  onFocus: handleFocus,
13131
13340
  onBlur: handleBlur,
13132
13341
  autoComplete: "off"
13133
- }))), endAdornment && /* @__PURE__ */ React91.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React91.createElement("div", {
13342
+ }))), endAdornment && /* @__PURE__ */ React92.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React92.createElement("div", {
13134
13343
  className: tw("flex flex-row flex-wrap gap-y-2 mt-2")
13135
13344
  }, renderChips()));
13136
13345
  };
13137
- var BaseMultiInputSkeleton = () => /* @__PURE__ */ React91.createElement(Skeleton, {
13346
+ var BaseMultiInputSkeleton = () => /* @__PURE__ */ React92.createElement(Skeleton, {
13138
13347
  height: 38
13139
13348
  });
13140
13349
  MultiInputBase.Skeleton = BaseMultiInputSkeleton;
@@ -13152,7 +13361,7 @@ var MultiInput = (props) => {
13152
13361
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13153
13362
  const labelControlProps = getLabelControlProps(props);
13154
13363
  const baseProps = omit12(props, Object.keys(labelControlProps));
13155
- return /* @__PURE__ */ React91.createElement(LabelControl, __spreadProps(__spreadValues({
13364
+ return /* @__PURE__ */ React92.createElement(LabelControl, __spreadProps(__spreadValues({
13156
13365
  id: `${id}-label`,
13157
13366
  htmlFor: `${id}-input`,
13158
13367
  messageId: errorMessageId
@@ -13160,7 +13369,7 @@ var MultiInput = (props) => {
13160
13369
  length: value.length,
13161
13370
  maxLength,
13162
13371
  className: "Aquarium-MultiInput"
13163
- }), /* @__PURE__ */ React91.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
13372
+ }), /* @__PURE__ */ React92.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
13164
13373
  id: `${id}-input`,
13165
13374
  onChange: (value2) => {
13166
13375
  var _a2;
@@ -13172,12 +13381,12 @@ var MultiInput = (props) => {
13172
13381
  valid: props.valid
13173
13382
  })));
13174
13383
  };
13175
- var MultiInputSkeleton = () => /* @__PURE__ */ React91.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React91.createElement(MultiInputBase.Skeleton, null));
13384
+ var MultiInputSkeleton = () => /* @__PURE__ */ React92.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React92.createElement(MultiInputBase.Skeleton, null));
13176
13385
  MultiInput.Skeleton = MultiInputSkeleton;
13177
13386
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
13178
13387
 
13179
13388
  // src/molecules/MultiSelect/MultiSelect.tsx
13180
- import React92, { useEffect as useEffect12, useRef as useRef10, useState as useState12 } from "react";
13389
+ import React93, { useEffect as useEffect12, useRef as useRef10, useState as useState12 } from "react";
13181
13390
  import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
13182
13391
  import { useId as useId13 } from "@react-aria/utils";
13183
13392
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
@@ -13337,16 +13546,16 @@ var MultiSelectBase = (_a) => {
13337
13546
  return ariaHideOutside2([inputRef.current, popoverRef.current]);
13338
13547
  }
13339
13548
  }, [state.isOpen, inputRef, popoverRef]);
13340
- const renderItem = (item, index) => /* @__PURE__ */ React92.createElement(Select.Item, __spreadValues({
13549
+ const renderItem = (item, index) => /* @__PURE__ */ React93.createElement(Select.Item, __spreadValues({
13341
13550
  key: itemToString(item),
13342
13551
  highlighted: index === highlightedIndex,
13343
13552
  selected: selectedItems.includes(item)
13344
13553
  }, getItemProps({ item, index })), renderOption(item));
13345
- const renderGroup = (group) => group.options.length ? /* @__PURE__ */ React92.createElement(React92.Fragment, {
13554
+ const renderGroup = (group) => group.options.length ? /* @__PURE__ */ React93.createElement(React93.Fragment, {
13346
13555
  key: group.label
13347
- }, /* @__PURE__ */ React92.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, flattenedOptions.indexOf(opt)))) : null;
13556
+ }, /* @__PURE__ */ React93.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, flattenedOptions.indexOf(opt)))) : null;
13348
13557
  const renderChips = () => {
13349
- return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React92.createElement(InputChip, __spreadProps(__spreadValues({
13558
+ return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React93.createElement(InputChip, __spreadProps(__spreadValues({
13350
13559
  key: `${itemToString(selectedItem)}.chip`,
13351
13560
  className: tw("mx-0"),
13352
13561
  disabled,
@@ -13364,14 +13573,14 @@ var MultiSelectBase = (_a) => {
13364
13573
  getDropdownProps({ ref: inputRef, disabled: disabled || readOnly, value: inputValue })
13365
13574
  );
13366
13575
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
13367
- return /* @__PURE__ */ React92.createElement("div", {
13576
+ return /* @__PURE__ */ React93.createElement("div", {
13368
13577
  className: classNames("Aquarium-MultiSelectBase", tw("relative"))
13369
- }, /* @__PURE__ */ React92.createElement(Select.InputContainer, {
13578
+ }, /* @__PURE__ */ React93.createElement(Select.InputContainer, {
13370
13579
  ref: targetRef,
13371
13580
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
13372
- }, /* @__PURE__ */ React92.createElement("div", {
13581
+ }, /* @__PURE__ */ React93.createElement("div", {
13373
13582
  className: "grow inline-flex flex-row flex-wrap gap-2"
13374
- }, !hideChips && inline && renderChips(), /* @__PURE__ */ React92.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
13583
+ }, !hideChips && inline && renderChips(), /* @__PURE__ */ React93.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
13375
13584
  name,
13376
13585
  placeholder: selectedItems.length === 0 && !readOnly ? placeholder : ""
13377
13586
  }, inputProps), props), {
@@ -13390,12 +13599,12 @@ var MultiSelectBase = (_a) => {
13390
13599
  setFocus(false);
13391
13600
  (_a3 = inputProps.onBlur) == null ? void 0 : _a3.call(inputProps, e);
13392
13601
  }
13393
- }))), !readOnly && /* @__PURE__ */ React92.createElement(Select.Toggle, __spreadValues({
13602
+ }))), !readOnly && /* @__PURE__ */ React93.createElement(Select.Toggle, __spreadValues({
13394
13603
  hasFocus,
13395
13604
  isOpen
13396
- }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React92.createElement("div", {
13605
+ }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React93.createElement("div", {
13397
13606
  className: tw("flex flex-row flex-wrap gap-2 mt-2")
13398
- }, renderChips()), isOpen && /* @__PURE__ */ React92.createElement(PopoverOverlay, {
13607
+ }, renderChips()), isOpen && /* @__PURE__ */ React93.createElement(PopoverOverlay, {
13399
13608
  ref: popoverRef,
13400
13609
  triggerRef: targetRef,
13401
13610
  state,
@@ -13403,13 +13612,13 @@ var MultiSelectBase = (_a) => {
13403
13612
  shouldFlip: true,
13404
13613
  isNonModal: true,
13405
13614
  style: { width: (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth }
13406
- }, /* @__PURE__ */ React92.createElement(Select.Menu, __spreadValues({
13615
+ }, /* @__PURE__ */ React93.createElement(Select.Menu, __spreadValues({
13407
13616
  maxHeight
13408
- }, menuProps), hasNoResults && /* @__PURE__ */ React92.createElement(Select.NoResults, null, emptyState), filteredOptions.map(
13617
+ }, menuProps), hasNoResults && /* @__PURE__ */ React93.createElement(Select.NoResults, null, emptyState), filteredOptions.map(
13409
13618
  (option, index) => isOptionGroup(option) ? renderGroup(option) : renderItem(option, index)
13410
13619
  ))));
13411
13620
  };
13412
- var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React92.createElement(Skeleton, {
13621
+ var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React93.createElement(Skeleton, {
13413
13622
  height: 38
13414
13623
  });
13415
13624
  MultiSelectBase.Skeleton = MultiSelectBaseSkeleton;
@@ -13430,13 +13639,13 @@ var MultiSelect = (_a) => {
13430
13639
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13431
13640
  const labelControlProps = getLabelControlProps(props);
13432
13641
  const baseProps = omit13(props, Object.keys(labelControlProps));
13433
- return /* @__PURE__ */ React92.createElement(LabelControl, __spreadProps(__spreadValues({
13642
+ return /* @__PURE__ */ React93.createElement(LabelControl, __spreadProps(__spreadValues({
13434
13643
  id: `${id}-label`,
13435
13644
  htmlFor: `${id}-input`,
13436
13645
  messageId: errorMessageId
13437
13646
  }, labelControlProps), {
13438
13647
  className: "Aquarium-MultiSelect"
13439
- }), /* @__PURE__ */ React92.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
13648
+ }), /* @__PURE__ */ React93.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
13440
13649
  id,
13441
13650
  options,
13442
13651
  emptyState,
@@ -13444,17 +13653,17 @@ var MultiSelect = (_a) => {
13444
13653
  valid: props.valid
13445
13654
  })));
13446
13655
  };
13447
- var MultiSelectSkeleton = () => /* @__PURE__ */ React92.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React92.createElement(MultiSelectBase.Skeleton, null));
13656
+ var MultiSelectSkeleton = () => /* @__PURE__ */ React93.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React93.createElement(MultiSelectBase.Skeleton, null));
13448
13657
  MultiSelect.Skeleton = MultiSelectSkeleton;
13449
13658
  MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
13450
13659
 
13451
13660
  // src/molecules/NativeSelect/NativeSelect.tsx
13452
- import React93 from "react";
13661
+ import React94 from "react";
13453
13662
  import { useId as useId14 } from "@react-aria/utils";
13454
13663
  import omit14 from "lodash/omit";
13455
13664
  import uniqueId from "lodash/uniqueId";
13456
13665
  var import_caretDown2 = __toESM(require_caretDown());
13457
- var NativeSelectBase = React93.forwardRef(
13666
+ var NativeSelectBase = React94.forwardRef(
13458
13667
  (_a, ref) => {
13459
13668
  var _b = _a, { children, disabled = false, required = false, valid = true, readOnly = false } = _b, props = __objRest(_b, ["children", "disabled", "required", "valid", "readOnly"]);
13460
13669
  const placeholderValue = uniqueId("default_value_for_placeholder");
@@ -13471,16 +13680,16 @@ var NativeSelectBase = React93.forwardRef(
13471
13680
  (_b2 = props.onBlur) == null ? void 0 : _b2.call(props, event);
13472
13681
  }
13473
13682
  };
13474
- return /* @__PURE__ */ React93.createElement("span", {
13683
+ return /* @__PURE__ */ React94.createElement("span", {
13475
13684
  className: classNames("Aquarium-NativeSelectBase", tw("relative block"))
13476
- }, !readOnly && /* @__PURE__ */ React93.createElement("span", {
13685
+ }, !readOnly && /* @__PURE__ */ React94.createElement("span", {
13477
13686
  className: tw(
13478
13687
  "absolute right-0 inset-y-0 mr-4 text-muted flex ml-3 pointer-events-none typography-default-strong mt-4"
13479
13688
  )
13480
- }, /* @__PURE__ */ React93.createElement(Icon, {
13689
+ }, /* @__PURE__ */ React94.createElement(Icon, {
13481
13690
  icon: import_caretDown2.default,
13482
13691
  "data-testid": "icon-dropdown"
13483
- })), /* @__PURE__ */ React93.createElement("select", __spreadProps(__spreadValues({
13692
+ })), /* @__PURE__ */ React94.createElement("select", __spreadProps(__spreadValues({
13484
13693
  ref,
13485
13694
  disabled: disabled || readOnly,
13486
13695
  required
@@ -13499,16 +13708,16 @@ var NativeSelectBase = React93.forwardRef(
13499
13708
  ),
13500
13709
  props.className
13501
13710
  )
13502
- }), props.placeholder && /* @__PURE__ */ React93.createElement("option", {
13711
+ }), props.placeholder && /* @__PURE__ */ React94.createElement("option", {
13503
13712
  value: placeholderValue,
13504
13713
  disabled: true
13505
13714
  }, props.placeholder), children));
13506
13715
  }
13507
13716
  );
13508
- NativeSelectBase.Skeleton = () => /* @__PURE__ */ React93.createElement(Skeleton, {
13717
+ NativeSelectBase.Skeleton = () => /* @__PURE__ */ React94.createElement(Skeleton, {
13509
13718
  height: 38
13510
13719
  });
13511
- var NativeSelect = React93.forwardRef(
13720
+ var NativeSelect = React94.forwardRef(
13512
13721
  (_a, ref) => {
13513
13722
  var _b = _a, { readOnly } = _b, props = __objRest(_b, ["readOnly"]);
13514
13723
  var _a2;
@@ -13518,13 +13727,13 @@ var NativeSelect = React93.forwardRef(
13518
13727
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13519
13728
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
13520
13729
  const baseProps = omit14(props, Object.keys(labelControlProps));
13521
- return /* @__PURE__ */ React93.createElement(LabelControl, __spreadProps(__spreadValues({
13730
+ return /* @__PURE__ */ React94.createElement(LabelControl, __spreadProps(__spreadValues({
13522
13731
  id: `${id}-label`,
13523
13732
  htmlFor: id,
13524
13733
  messageId: errorMessageId
13525
13734
  }, labelControlProps), {
13526
13735
  className: "Aquarium-NativeSelect"
13527
- }), /* @__PURE__ */ React93.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
13736
+ }), /* @__PURE__ */ React94.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
13528
13737
  ref
13529
13738
  }, baseProps), errorProps), {
13530
13739
  id,
@@ -13538,63 +13747,63 @@ var NativeSelect = React93.forwardRef(
13538
13747
  }
13539
13748
  );
13540
13749
  NativeSelect.displayName = "NativeSelect";
13541
- var Option = React93.forwardRef((_a, ref) => {
13750
+ var Option = React94.forwardRef((_a, ref) => {
13542
13751
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
13543
- return /* @__PURE__ */ React93.createElement("option", __spreadValues({
13752
+ return /* @__PURE__ */ React94.createElement("option", __spreadValues({
13544
13753
  ref
13545
13754
  }, props), children);
13546
13755
  });
13547
13756
  Option.displayName = "Option";
13548
- var NativeSelectSkeleton = () => /* @__PURE__ */ React93.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React93.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React93.createElement("div", {
13757
+ var NativeSelectSkeleton = () => /* @__PURE__ */ React94.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React94.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React94.createElement("div", {
13549
13758
  style: { height: "1px" }
13550
13759
  }));
13551
13760
  NativeSelect.Skeleton = NativeSelectSkeleton;
13552
13761
  NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
13553
13762
 
13554
13763
  // src/molecules/Navigation/Navigation.tsx
13555
- import React95 from "react";
13764
+ import React96 from "react";
13556
13765
  import classNames10 from "classnames";
13557
13766
 
13558
13767
  // src/atoms/Navigation/Navigation.tsx
13559
- import React94 from "react";
13768
+ import React95 from "react";
13560
13769
  var Navigation = (_a) => {
13561
13770
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
13562
- return /* @__PURE__ */ React94.createElement("nav", {
13771
+ return /* @__PURE__ */ React95.createElement("nav", {
13563
13772
  className: classNames(tw("bg-grey-0 h-full"))
13564
- }, /* @__PURE__ */ React94.createElement("ul", __spreadProps(__spreadValues({}, rest), {
13773
+ }, /* @__PURE__ */ React95.createElement("ul", __spreadProps(__spreadValues({}, rest), {
13565
13774
  className: classNames(tw("flex flex-col h-full"), className),
13566
13775
  role: "menubar"
13567
13776
  }), children));
13568
13777
  };
13569
13778
  var Header = (_a) => {
13570
13779
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
13571
- return /* @__PURE__ */ React94.createElement("li", __spreadProps(__spreadValues({}, rest), {
13780
+ return /* @__PURE__ */ React95.createElement("li", __spreadProps(__spreadValues({}, rest), {
13572
13781
  role: "presentation",
13573
13782
  className: classNames(tw("px-6 py-5"), className)
13574
13783
  }));
13575
13784
  };
13576
13785
  var Footer = (_a) => {
13577
13786
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
13578
- return /* @__PURE__ */ React94.createElement("li", __spreadProps(__spreadValues({}, rest), {
13787
+ return /* @__PURE__ */ React95.createElement("li", __spreadProps(__spreadValues({}, rest), {
13579
13788
  role: "presentation",
13580
13789
  className: classNames(tw("px-6 py-5 mt-auto"), className)
13581
13790
  }));
13582
13791
  };
13583
13792
  var Section2 = (_a) => {
13584
13793
  var _b = _a, { title, className } = _b, rest = __objRest(_b, ["title", "className"]);
13585
- return /* @__PURE__ */ React94.createElement("li", {
13794
+ return /* @__PURE__ */ React95.createElement("li", {
13586
13795
  role: "presentation",
13587
13796
  className: tw("py-5")
13588
- }, title && /* @__PURE__ */ React94.createElement("div", {
13797
+ }, title && /* @__PURE__ */ React95.createElement("div", {
13589
13798
  className: classNames(className, "py-2 px-6 text-muted uppercase cursor-default typography-caption")
13590
- }, title), /* @__PURE__ */ React94.createElement("ul", __spreadProps(__spreadValues({}, rest), {
13799
+ }, title), /* @__PURE__ */ React95.createElement("ul", __spreadProps(__spreadValues({}, rest), {
13591
13800
  role: "group",
13592
13801
  className: classNames(tw("flex flex-col"), className)
13593
13802
  })));
13594
13803
  };
13595
13804
  var Divider3 = (_a) => {
13596
13805
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
13597
- return /* @__PURE__ */ React94.createElement("li", __spreadProps(__spreadValues({
13806
+ return /* @__PURE__ */ React95.createElement("li", __spreadProps(__spreadValues({
13598
13807
  role: "separator"
13599
13808
  }, rest), {
13600
13809
  className: classNames(tw("border-t-2 border-muted"), className)
@@ -13602,9 +13811,9 @@ var Divider3 = (_a) => {
13602
13811
  };
13603
13812
  var Item5 = (_a) => {
13604
13813
  var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
13605
- return /* @__PURE__ */ React94.createElement("li", {
13814
+ return /* @__PURE__ */ React95.createElement("li", {
13606
13815
  role: "presentation"
13607
- }, /* @__PURE__ */ React94.createElement("a", __spreadProps(__spreadValues({}, rest), {
13816
+ }, /* @__PURE__ */ React95.createElement("a", __spreadProps(__spreadValues({}, rest), {
13608
13817
  role: "menuitem",
13609
13818
  className: classNames(
13610
13819
  tw("py-3 px-6 hover:bg-grey-5 cursor-pointer flex gap-4 items-center typography-small focusable", {
@@ -13624,7 +13833,7 @@ Navigation.Divider = Divider3;
13624
13833
  // src/molecules/Navigation/Navigation.tsx
13625
13834
  var Navigation2 = (_a) => {
13626
13835
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
13627
- return /* @__PURE__ */ React95.createElement(Navigation, __spreadValues({
13836
+ return /* @__PURE__ */ React96.createElement(Navigation, __spreadValues({
13628
13837
  className: classNames10("Aquarium-Navigation", className)
13629
13838
  }, props));
13630
13839
  };
@@ -13638,11 +13847,11 @@ var Item6 = (_a) => {
13638
13847
  "icon",
13639
13848
  "showNotification"
13640
13849
  ]);
13641
- return /* @__PURE__ */ React95.createElement(Navigation.Item, __spreadValues({}, rest), icon && showNotification && /* @__PURE__ */ React95.createElement(Badge.Notification, null, /* @__PURE__ */ React95.createElement(InlineIcon, {
13850
+ return /* @__PURE__ */ React96.createElement(Navigation.Item, __spreadValues({}, rest), icon && showNotification && /* @__PURE__ */ React96.createElement(Badge.Notification, null, /* @__PURE__ */ React96.createElement(InlineIcon, {
13642
13851
  icon,
13643
13852
  width: "20px",
13644
13853
  height: "20px"
13645
- })), icon && !showNotification && /* @__PURE__ */ React95.createElement(InlineIcon, {
13854
+ })), icon && !showNotification && /* @__PURE__ */ React96.createElement(InlineIcon, {
13646
13855
  icon,
13647
13856
  width: "20px",
13648
13857
  height: "20px"
@@ -13655,32 +13864,32 @@ Navigation2.Header = Navigation.Header;
13655
13864
  Navigation2.Section = Navigation.Section;
13656
13865
 
13657
13866
  // src/molecules/PageHeader/PageHeader.tsx
13658
- import React97 from "react";
13659
- import castArray4 from "lodash/castArray";
13867
+ import React98 from "react";
13868
+ import castArray5 from "lodash/castArray";
13660
13869
 
13661
13870
  // src/atoms/PageHeader/PageHeader.tsx
13662
- import React96 from "react";
13871
+ import React97 from "react";
13663
13872
  var PageHeader = (_a) => {
13664
13873
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13665
- return /* @__PURE__ */ React96.createElement("div", __spreadValues({
13874
+ return /* @__PURE__ */ React97.createElement("div", __spreadValues({
13666
13875
  className: classNames(tw("flex flex-row gap-4 pb-6"), className)
13667
13876
  }, rest), children);
13668
13877
  };
13669
13878
  PageHeader.Container = (_a) => {
13670
13879
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13671
- return /* @__PURE__ */ React96.createElement("div", __spreadValues({
13880
+ return /* @__PURE__ */ React97.createElement("div", __spreadValues({
13672
13881
  className: classNames(tw("flex flex-col grow gap-0"), className)
13673
13882
  }, rest), children);
13674
13883
  };
13675
13884
  PageHeader.TitleContainer = (_a) => {
13676
13885
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13677
- return /* @__PURE__ */ React96.createElement("div", __spreadValues({
13886
+ return /* @__PURE__ */ React97.createElement("div", __spreadValues({
13678
13887
  className: classNames(tw("flex flex-col justify-center gap-2"), className)
13679
13888
  }, rest), children);
13680
13889
  };
13681
13890
  PageHeader.Title = (_a) => {
13682
13891
  var _b = _a, { isSubHeader = false, children } = _b, rest = __objRest(_b, ["isSubHeader", "children"]);
13683
- return /* @__PURE__ */ React96.createElement(Typography2, __spreadProps(__spreadValues({}, rest), {
13892
+ return /* @__PURE__ */ React97.createElement(Typography2, __spreadProps(__spreadValues({}, rest), {
13684
13893
  color: "grey-100",
13685
13894
  variant: isSubHeader ? "subheading" : "heading",
13686
13895
  htmlTag: isSubHeader ? "h2" : "h1"
@@ -13688,19 +13897,19 @@ PageHeader.Title = (_a) => {
13688
13897
  };
13689
13898
  PageHeader.Subtitle = (_a) => {
13690
13899
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
13691
- return /* @__PURE__ */ React96.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
13900
+ return /* @__PURE__ */ React97.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
13692
13901
  color: "grey-70"
13693
13902
  }), children);
13694
13903
  };
13695
13904
  PageHeader.Chips = (_a) => {
13696
13905
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13697
- return /* @__PURE__ */ React96.createElement("div", __spreadValues({
13906
+ return /* @__PURE__ */ React97.createElement("div", __spreadValues({
13698
13907
  className: classNames(tw("flex gap-3"), className)
13699
13908
  }, rest), children);
13700
13909
  };
13701
13910
  PageHeader.Actions = (_a) => {
13702
13911
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13703
- return /* @__PURE__ */ React96.createElement("div", __spreadValues({
13912
+ return /* @__PURE__ */ React97.createElement("div", __spreadValues({
13704
13913
  className: classNames(tw("flex flex-row gap-4 self-start"), className)
13705
13914
  }, rest), children);
13706
13915
  };
@@ -13724,63 +13933,64 @@ var CommonPageHeader = ({
13724
13933
  onMenuOpenChange,
13725
13934
  isSubHeader = false
13726
13935
  }) => {
13727
- return /* @__PURE__ */ React97.createElement(PageHeader, {
13936
+ return /* @__PURE__ */ React98.createElement(PageHeader, {
13728
13937
  className: "Aquarium-PageHeader"
13729
- }, /* @__PURE__ */ React97.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React97.createElement(Box, {
13938
+ }, /* @__PURE__ */ React98.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React98.createElement(Box, {
13730
13939
  marginBottom: "3"
13731
- }, /* @__PURE__ */ React97.createElement(Breadcrumbs, null, breadcrumbs)), /* @__PURE__ */ React97.createElement(Spacing, {
13940
+ }, /* @__PURE__ */ React98.createElement(Breadcrumbs, null, breadcrumbs)), /* @__PURE__ */ React98.createElement(Spacing, {
13732
13941
  row: true,
13733
13942
  gap: "5"
13734
- }, image && /* @__PURE__ */ React97.createElement("img", {
13943
+ }, image && /* @__PURE__ */ React98.createElement("img", {
13735
13944
  src: image,
13736
13945
  alt: imageAlt != null ? imageAlt : "",
13737
13946
  className: tw("w-[56px] h-[56px]")
13738
- }), /* @__PURE__ */ React97.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React97.createElement(PageHeader.Title, {
13947
+ }), /* @__PURE__ */ React98.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React98.createElement(PageHeader.Title, {
13739
13948
  isSubHeader
13740
- }, title), chips.length > 0 && /* @__PURE__ */ React97.createElement(PageHeader.Chips, null, chips.map((chip) => /* @__PURE__ */ React97.createElement(Chip2, {
13949
+ }, title), chips.length > 0 && /* @__PURE__ */ React98.createElement(PageHeader.Chips, null, chips.map((chip) => /* @__PURE__ */ React98.createElement(Chip2, {
13741
13950
  key: chip,
13742
13951
  dense: true,
13743
13952
  text: chip
13744
- }))), subtitle && /* @__PURE__ */ React97.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions || primaryAction || secondaryAction || menu) && /* @__PURE__ */ React97.createElement(PageHeader.Actions, null, menu && /* @__PURE__ */ React97.createElement(Box.Flex, {
13953
+ }))), subtitle && /* @__PURE__ */ React98.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions || primaryAction || secondaryAction || menu) && /* @__PURE__ */ React98.createElement(PageHeader.Actions, null, menu && /* @__PURE__ */ React98.createElement(Box.Flex, {
13745
13954
  alignItems: "center"
13746
- }, /* @__PURE__ */ React97.createElement(DropdownMenu2, {
13955
+ }, /* @__PURE__ */ React98.createElement(DropdownMenu2, {
13956
+ placement: defaultContextualMenuPlacement,
13747
13957
  onAction: (action) => onAction == null ? void 0 : onAction(action),
13748
13958
  onOpenChange: onMenuOpenChange
13749
- }, /* @__PURE__ */ React97.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React97.createElement(Button.Icon, {
13959
+ }, /* @__PURE__ */ React98.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React98.createElement(Button.Icon, {
13750
13960
  "aria-label": menuAriaLabel,
13751
13961
  icon: import_more5.default
13752
- })), menu)), secondaryActions && castArray4(secondaryActions).filter(Boolean).map((secondaryAction2) => renderAction({ kind: "secondary", action: secondaryAction2 })), primaryAction && renderAction({ kind: "primary", action: primaryAction })));
13962
+ })), menu)), secondaryActions && castArray5(secondaryActions).filter(Boolean).map((secondaryAction2) => renderAction({ kind: "secondary", action: secondaryAction2 })), primaryAction && renderAction({ kind: "primary", action: primaryAction })));
13753
13963
  };
13754
- var PageHeader2 = (props) => /* @__PURE__ */ React97.createElement(CommonPageHeader, __spreadValues({}, props));
13964
+ var PageHeader2 = (props) => /* @__PURE__ */ React98.createElement(CommonPageHeader, __spreadValues({}, props));
13755
13965
  PageHeader2.displayName = "PageHeader";
13756
- var SubHeader = (props) => /* @__PURE__ */ React97.createElement(CommonPageHeader, __spreadProps(__spreadValues({}, props), {
13966
+ var SubHeader = (props) => /* @__PURE__ */ React98.createElement(CommonPageHeader, __spreadProps(__spreadValues({}, props), {
13757
13967
  isSubHeader: true
13758
13968
  }));
13759
13969
  PageHeader2.SubHeader = SubHeader;
13760
13970
  PageHeader2.SubHeader.displayName = "PageHeader.SubHeader";
13761
13971
 
13762
13972
  // src/molecules/PopoverDialog/PopoverDialog.tsx
13763
- import React99 from "react";
13973
+ import React100 from "react";
13764
13974
  import omit15 from "lodash/omit";
13765
13975
 
13766
13976
  // src/atoms/PopoverDialog/PopoverDialog.tsx
13767
- import React98 from "react";
13977
+ import React99 from "react";
13768
13978
  var Header2 = (_a) => {
13769
13979
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13770
- return /* @__PURE__ */ React98.createElement("div", __spreadProps(__spreadValues({}, rest), {
13980
+ return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
13771
13981
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
13772
13982
  }), children);
13773
13983
  };
13774
13984
  var Title2 = (_a) => {
13775
13985
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13776
- return /* @__PURE__ */ React98.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
13986
+ return /* @__PURE__ */ React99.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
13777
13987
  htmlTag: "h1",
13778
13988
  variant: "small-strong"
13779
13989
  }), children);
13780
13990
  };
13781
13991
  var Body = (_a) => {
13782
13992
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13783
- return /* @__PURE__ */ React98.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
13993
+ return /* @__PURE__ */ React99.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
13784
13994
  htmlTag: "div",
13785
13995
  variant: "caption",
13786
13996
  className: classNames(tw("px-5 overflow-y-auto"), className)
@@ -13788,13 +13998,13 @@ var Body = (_a) => {
13788
13998
  };
13789
13999
  var Footer2 = (_a) => {
13790
14000
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13791
- return /* @__PURE__ */ React98.createElement("div", __spreadProps(__spreadValues({}, rest), {
14001
+ return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
13792
14002
  className: classNames(tw("p-5"), className)
13793
14003
  }), children);
13794
14004
  };
13795
14005
  var Actions2 = (_a) => {
13796
14006
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13797
- return /* @__PURE__ */ React98.createElement("div", __spreadProps(__spreadValues({}, rest), {
14007
+ return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
13798
14008
  className: classNames(tw("flex gap-4"), className)
13799
14009
  }), children);
13800
14010
  };
@@ -13810,13 +14020,13 @@ var PopoverDialog = {
13810
14020
  var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
13811
14021
  const wrapPromptWithBody = (child) => {
13812
14022
  if (isComponentType(child, PopoverDialog2.Prompt)) {
13813
- return /* @__PURE__ */ React99.createElement(Popover2.Panel, {
14023
+ return /* @__PURE__ */ React100.createElement(Popover2.Panel, {
13814
14024
  className: classNames("Aquarium-PopoverDialog", tw("max-w-[300px]"))
13815
- }, /* @__PURE__ */ React99.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React99.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React99.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React99.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React99.createElement(Popover2.Button, __spreadValues({
14025
+ }, /* @__PURE__ */ React100.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React100.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React100.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React100.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React100.createElement(Popover2.Button, __spreadValues({
13816
14026
  kind: "secondary-ghost",
13817
14027
  key: secondaryAction.text,
13818
14028
  dense: true
13819
- }, omit15(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React99.createElement(Popover2.Button, __spreadValues({
14029
+ }, omit15(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React100.createElement(Popover2.Button, __spreadValues({
13820
14030
  kind: "ghost",
13821
14031
  key: primaryAction.text,
13822
14032
  dense: true
@@ -13824,15 +14034,15 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
13824
14034
  }
13825
14035
  return child;
13826
14036
  };
13827
- return /* @__PURE__ */ React99.createElement(Popover2, {
14037
+ return /* @__PURE__ */ React100.createElement(Popover2, {
13828
14038
  type: "dialog",
13829
14039
  isOpen: open,
13830
14040
  placement,
13831
14041
  containFocus: true
13832
- }, React99.Children.map(children, wrapPromptWithBody));
14042
+ }, React100.Children.map(children, wrapPromptWithBody));
13833
14043
  };
13834
14044
  PopoverDialog2.Trigger = Popover2.Trigger;
13835
- var Prompt = ({ children }) => /* @__PURE__ */ React99.createElement(PopoverDialog.Body, null, children);
14045
+ var Prompt = ({ children }) => /* @__PURE__ */ React100.createElement(PopoverDialog.Body, null, children);
13836
14046
  Prompt.displayName = "PopoverDialog.Prompt";
13837
14047
  PopoverDialog2.Prompt = Prompt;
13838
14048
 
@@ -13841,14 +14051,14 @@ import { createPortal } from "react-dom";
13841
14051
  var Portal = ({ children, to }) => createPortal(children, to);
13842
14052
 
13843
14053
  // src/molecules/ProgressBar/ProgressBar.tsx
13844
- import React101 from "react";
14054
+ import React102 from "react";
13845
14055
 
13846
14056
  // src/atoms/ProgressBar/ProgressBar.tsx
13847
- import React100 from "react";
14057
+ import React101 from "react";
13848
14058
  import clamp3 from "lodash/clamp";
13849
14059
  var ProgressBar = (_a) => {
13850
14060
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13851
- return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
14061
+ return /* @__PURE__ */ React101.createElement("div", __spreadProps(__spreadValues({}, rest), {
13852
14062
  className: classNames(
13853
14063
  tw("relative flex items-center w-full bg-grey-0 h-2 rounded-full overflow-hidden"),
13854
14064
  className
@@ -13864,7 +14074,7 @@ var STATUS_COLORS = {
13864
14074
  ProgressBar.Indicator = (_a) => {
13865
14075
  var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
13866
14076
  const completedPercentage = clamp3((value - min) / (max - min) * 100, 0, 100);
13867
- return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
14077
+ return /* @__PURE__ */ React101.createElement("div", __spreadProps(__spreadValues({}, rest), {
13868
14078
  className: classNames(
13869
14079
  tw("h-2 rounded-full transition-all ease-in-out delay-150"),
13870
14080
  STATUS_COLORS[status],
@@ -13880,11 +14090,11 @@ ProgressBar.Indicator = (_a) => {
13880
14090
  };
13881
14091
  ProgressBar.Labels = (_a) => {
13882
14092
  var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
13883
- return /* @__PURE__ */ React100.createElement("div", {
14093
+ return /* @__PURE__ */ React101.createElement("div", {
13884
14094
  className: classNames(tw("flex flex-row"), className)
13885
- }, /* @__PURE__ */ React100.createElement("span", __spreadProps(__spreadValues({}, rest), {
14095
+ }, /* @__PURE__ */ React101.createElement("span", __spreadProps(__spreadValues({}, rest), {
13886
14096
  className: tw("grow text-default typography-caption")
13887
- }), startLabel), /* @__PURE__ */ React100.createElement("span", __spreadProps(__spreadValues({}, rest), {
14097
+ }), startLabel), /* @__PURE__ */ React101.createElement("span", __spreadProps(__spreadValues({}, rest), {
13888
14098
  className: tw("grow text-default typography-caption text-right")
13889
14099
  }), endLabel));
13890
14100
  };
@@ -13902,7 +14112,7 @@ var ProgressBar2 = (props) => {
13902
14112
  if (min > max) {
13903
14113
  throw new Error("`min` value provided to `ProgressBar` is greater than `max` value.");
13904
14114
  }
13905
- const progress = /* @__PURE__ */ React101.createElement(ProgressBar, null, /* @__PURE__ */ React101.createElement(ProgressBar.Indicator, {
14115
+ const progress = /* @__PURE__ */ React102.createElement(ProgressBar, null, /* @__PURE__ */ React102.createElement(ProgressBar.Indicator, {
13906
14116
  status: value === max ? completedStatus : progresStatus,
13907
14117
  min,
13908
14118
  max,
@@ -13912,15 +14122,15 @@ var ProgressBar2 = (props) => {
13912
14122
  if (props.dense) {
13913
14123
  return progress;
13914
14124
  }
13915
- return /* @__PURE__ */ React101.createElement("div", {
14125
+ return /* @__PURE__ */ React102.createElement("div", {
13916
14126
  className: "Aquarium-ProgressBar"
13917
- }, progress, /* @__PURE__ */ React101.createElement(ProgressBar.Labels, {
14127
+ }, progress, /* @__PURE__ */ React102.createElement(ProgressBar.Labels, {
13918
14128
  className: tw("py-2"),
13919
14129
  startLabel: props.startLabel,
13920
14130
  endLabel: props.endLabel
13921
14131
  }));
13922
14132
  };
13923
- var ProgressBarSkeleton = () => /* @__PURE__ */ React101.createElement(Skeleton, {
14133
+ var ProgressBarSkeleton = () => /* @__PURE__ */ React102.createElement(Skeleton, {
13924
14134
  height: 4,
13925
14135
  display: "block"
13926
14136
  });
@@ -13928,13 +14138,13 @@ ProgressBar2.Skeleton = ProgressBarSkeleton;
13928
14138
  ProgressBar2.Skeleton.displayName = "ProgressBar.Skeleton";
13929
14139
 
13930
14140
  // src/molecules/RadioButton/RadioButton.tsx
13931
- import React102 from "react";
13932
- var RadioButton2 = React102.forwardRef(
14141
+ import React103 from "react";
14142
+ var RadioButton2 = React103.forwardRef(
13933
14143
  (_a, ref) => {
13934
14144
  var _b = _a, { name, id, readOnly = false, disabled = false, caption, children, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["name", "id", "readOnly", "disabled", "caption", "children", "aria-label"]);
13935
14145
  var _a2;
13936
14146
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
13937
- return !readOnly || isChecked ? /* @__PURE__ */ React102.createElement(ControlLabel, {
14147
+ return !readOnly || isChecked ? /* @__PURE__ */ React103.createElement(ControlLabel, {
13938
14148
  htmlFor: id,
13939
14149
  label: children,
13940
14150
  "aria-label": ariaLabel,
@@ -13943,7 +14153,7 @@ var RadioButton2 = React102.forwardRef(
13943
14153
  disabled,
13944
14154
  style: { gap: "0 8px" },
13945
14155
  className: "Aquarium-RadioButton"
13946
- }, !readOnly && /* @__PURE__ */ React102.createElement(RadioButton, __spreadProps(__spreadValues({
14156
+ }, !readOnly && /* @__PURE__ */ React103.createElement(RadioButton, __spreadProps(__spreadValues({
13947
14157
  id,
13948
14158
  ref,
13949
14159
  name
@@ -13954,12 +14164,12 @@ var RadioButton2 = React102.forwardRef(
13954
14164
  }
13955
14165
  );
13956
14166
  RadioButton2.displayName = "RadioButton";
13957
- var RadioButtonSkeleton = () => /* @__PURE__ */ React102.createElement("div", {
14167
+ var RadioButtonSkeleton = () => /* @__PURE__ */ React103.createElement("div", {
13958
14168
  className: tw("flex gap-3")
13959
- }, /* @__PURE__ */ React102.createElement(Skeleton, {
14169
+ }, /* @__PURE__ */ React103.createElement(Skeleton, {
13960
14170
  height: 20,
13961
14171
  width: 20
13962
- }), /* @__PURE__ */ React102.createElement(Skeleton, {
14172
+ }), /* @__PURE__ */ React103.createElement(Skeleton, {
13963
14173
  height: 20,
13964
14174
  width: 150
13965
14175
  }));
@@ -13967,10 +14177,10 @@ RadioButton2.Skeleton = RadioButtonSkeleton;
13967
14177
  RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
13968
14178
 
13969
14179
  // src/molecules/RadioButtonGroup/RadioButtonGroup.tsx
13970
- import React103 from "react";
14180
+ import React104 from "react";
13971
14181
  import { useId as useId15 } from "@react-aria/utils";
13972
14182
  var isRadioButton = (c) => {
13973
- return React103.isValidElement(c) && c.type === RadioButton2;
14183
+ return React104.isValidElement(c) && c.type === RadioButton2;
13974
14184
  };
13975
14185
  var RadioButtonGroup = (_a) => {
13976
14186
  var _b = _a, {
@@ -13993,7 +14203,7 @@ var RadioButtonGroup = (_a) => {
13993
14203
  "children"
13994
14204
  ]);
13995
14205
  var _a2;
13996
- const [value, setValue] = React103.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
14206
+ const [value, setValue] = React104.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
13997
14207
  const errorMessageId = useId15();
13998
14208
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13999
14209
  const labelControlProps = getLabelControlProps(props);
@@ -14004,14 +14214,14 @@ var RadioButtonGroup = (_a) => {
14004
14214
  setValue(e.target.value);
14005
14215
  onChange == null ? void 0 : onChange(e.target.value);
14006
14216
  };
14007
- const content = React103.Children.map(children, (c) => {
14217
+ const content = React104.Children.map(children, (c) => {
14008
14218
  var _a3, _b2, _c;
14009
14219
  if (!isRadioButton(c)) {
14010
14220
  return null;
14011
14221
  }
14012
14222
  const defaultChecked = defaultValue === void 0 ? void 0 : c.props.value === defaultValue;
14013
14223
  const checked = value === void 0 ? void 0 : c.props.value === value;
14014
- return React103.cloneElement(c, {
14224
+ return React104.cloneElement(c, {
14015
14225
  name,
14016
14226
  defaultChecked: (_a3 = c.props.defaultChecked) != null ? _a3 : defaultChecked,
14017
14227
  checked: (_b2 = c.props.checked) != null ? _b2 : checked,
@@ -14020,13 +14230,13 @@ var RadioButtonGroup = (_a) => {
14020
14230
  readOnly
14021
14231
  });
14022
14232
  });
14023
- return /* @__PURE__ */ React103.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
14233
+ return /* @__PURE__ */ React104.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
14024
14234
  fieldset: true
14025
14235
  }, labelControlProps), errorProps), {
14026
14236
  className: "Aquarium-RadioButtonGroup"
14027
- }), cols && /* @__PURE__ */ React103.createElement(InputGroup, {
14237
+ }), cols && /* @__PURE__ */ React104.createElement(InputGroup, {
14028
14238
  cols
14029
- }, content), !cols && /* @__PURE__ */ React103.createElement(Flexbox, {
14239
+ }, content), !cols && /* @__PURE__ */ React104.createElement(Flexbox, {
14030
14240
  direction,
14031
14241
  alignItems: "flex-start",
14032
14242
  colGap: "8",
@@ -14035,12 +14245,12 @@ var RadioButtonGroup = (_a) => {
14035
14245
  }, content));
14036
14246
  };
14037
14247
  var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
14038
- return /* @__PURE__ */ React103.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React103.createElement("div", {
14248
+ return /* @__PURE__ */ React104.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React104.createElement("div", {
14039
14249
  className: tw("flex flex-wrap", {
14040
14250
  "flex-row gap-8": direction === "row",
14041
14251
  "flex-col gap-2": direction === "column"
14042
14252
  })
14043
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React103.createElement(RadioButton2.Skeleton, {
14253
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React104.createElement(RadioButton2.Skeleton, {
14044
14254
  key
14045
14255
  }))));
14046
14256
  };
@@ -14048,24 +14258,24 @@ RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
14048
14258
  RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
14049
14259
 
14050
14260
  // src/molecules/Section/Section.tsx
14051
- import React108 from "react";
14261
+ import React109 from "react";
14052
14262
  import { useId as useId16 } from "@react-aria/utils";
14053
14263
  import { animated as animated5, useSpring as useSpring4 } from "@react-spring/web";
14054
- import castArray5 from "lodash/castArray";
14264
+ import castArray6 from "lodash/castArray";
14055
14265
  import isUndefined9 from "lodash/isUndefined";
14056
14266
 
14057
14267
  // src/molecules/Switch/Switch.tsx
14058
- import React105 from "react";
14268
+ import React106 from "react";
14059
14269
 
14060
14270
  // src/atoms/Switch/Switch.tsx
14061
- import React104 from "react";
14271
+ import React105 from "react";
14062
14272
  var import_ban2 = __toESM(require_ban());
14063
- var Switch = React104.forwardRef(
14273
+ var Switch = React105.forwardRef(
14064
14274
  (_a, ref) => {
14065
14275
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
14066
- return /* @__PURE__ */ React104.createElement("span", {
14276
+ return /* @__PURE__ */ React105.createElement("span", {
14067
14277
  className: tw("relative inline-flex justify-center items-center self-center group")
14068
- }, /* @__PURE__ */ React104.createElement("input", __spreadProps(__spreadValues({
14278
+ }, /* @__PURE__ */ React105.createElement("input", __spreadProps(__spreadValues({
14069
14279
  id,
14070
14280
  ref,
14071
14281
  type: "checkbox",
@@ -14084,7 +14294,7 @@ var Switch = React104.forwardRef(
14084
14294
  ),
14085
14295
  readOnly,
14086
14296
  disabled
14087
- })), /* @__PURE__ */ React104.createElement("span", {
14297
+ })), /* @__PURE__ */ React105.createElement("span", {
14088
14298
  className: tw(
14089
14299
  "pointer-events-none rounded-full absolute inline-flex justify-center items-center transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
14090
14300
  "bg-white left-2 peer-checked/switch:left-1 text-grey-30 peer-checked/switch:text-primary-60",
@@ -14092,7 +14302,7 @@ var Switch = React104.forwardRef(
14092
14302
  "shadow-4dp": !disabled
14093
14303
  }
14094
14304
  )
14095
- }, disabled && /* @__PURE__ */ React104.createElement(Icon, {
14305
+ }, disabled && /* @__PURE__ */ React105.createElement(Icon, {
14096
14306
  icon: import_ban2.default,
14097
14307
  width: "10px",
14098
14308
  height: "10px"
@@ -14101,7 +14311,7 @@ var Switch = React104.forwardRef(
14101
14311
  );
14102
14312
 
14103
14313
  // src/molecules/Switch/Switch.tsx
14104
- var Switch2 = React105.forwardRef(
14314
+ var Switch2 = React106.forwardRef(
14105
14315
  (_a, ref) => {
14106
14316
  var _b = _a, {
14107
14317
  id,
@@ -14124,7 +14334,7 @@ var Switch2 = React105.forwardRef(
14124
14334
  ]);
14125
14335
  var _a2;
14126
14336
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
14127
- return !readOnly || isChecked ? /* @__PURE__ */ React105.createElement(ControlLabel, {
14337
+ return !readOnly || isChecked ? /* @__PURE__ */ React106.createElement(ControlLabel, {
14128
14338
  htmlFor: id,
14129
14339
  label: children,
14130
14340
  "aria-label": ariaLabel,
@@ -14134,7 +14344,7 @@ var Switch2 = React105.forwardRef(
14134
14344
  style: { gap: "0 8px" },
14135
14345
  labelPlacement,
14136
14346
  className: "Aquarium-Switch"
14137
- }, !readOnly && /* @__PURE__ */ React105.createElement(Switch, __spreadProps(__spreadValues({
14347
+ }, !readOnly && /* @__PURE__ */ React106.createElement(Switch, __spreadProps(__spreadValues({
14138
14348
  id,
14139
14349
  ref,
14140
14350
  name
@@ -14145,12 +14355,12 @@ var Switch2 = React105.forwardRef(
14145
14355
  }
14146
14356
  );
14147
14357
  Switch2.displayName = "Switch";
14148
- var SwitchSkeleton = () => /* @__PURE__ */ React105.createElement("div", {
14358
+ var SwitchSkeleton = () => /* @__PURE__ */ React106.createElement("div", {
14149
14359
  className: tw("flex gap-3")
14150
- }, /* @__PURE__ */ React105.createElement(Skeleton, {
14360
+ }, /* @__PURE__ */ React106.createElement(Skeleton, {
14151
14361
  height: 20,
14152
14362
  width: 35
14153
- }), /* @__PURE__ */ React105.createElement(Skeleton, {
14363
+ }), /* @__PURE__ */ React106.createElement(Skeleton, {
14154
14364
  height: 20,
14155
14365
  width: 150
14156
14366
  }));
@@ -14158,7 +14368,7 @@ Switch2.Skeleton = SwitchSkeleton;
14158
14368
  Switch2.Skeleton.displayName = "Switch.Skeleton ";
14159
14369
 
14160
14370
  // src/molecules/TagLabel/TagLabel.tsx
14161
- import React106 from "react";
14371
+ import React107 from "react";
14162
14372
  var getVariantClassNames = (variant = "primary") => {
14163
14373
  switch (variant) {
14164
14374
  case "danger":
@@ -14172,7 +14382,7 @@ var getVariantClassNames = (variant = "primary") => {
14172
14382
  };
14173
14383
  var TagLabel = (_a) => {
14174
14384
  var _b = _a, { title, dense = false, variant } = _b, rest = __objRest(_b, ["title", "dense", "variant"]);
14175
- return /* @__PURE__ */ React106.createElement("span", __spreadProps(__spreadValues({}, rest), {
14385
+ return /* @__PURE__ */ React107.createElement("span", __spreadProps(__spreadValues({}, rest), {
14176
14386
  className: classNames(
14177
14387
  "Aquarium-TagLabel",
14178
14388
  getVariantClassNames(variant),
@@ -14185,11 +14395,11 @@ var TagLabel = (_a) => {
14185
14395
  };
14186
14396
 
14187
14397
  // src/atoms/Section/Section.tsx
14188
- import React107 from "react";
14398
+ import React108 from "react";
14189
14399
  var import_caretUp2 = __toESM(require_caretUp());
14190
14400
  var Section3 = (_a) => {
14191
14401
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
14192
- return /* @__PURE__ */ React107.createElement(Box, __spreadValues({
14402
+ return /* @__PURE__ */ React108.createElement(Box, __spreadValues({
14193
14403
  component: "section",
14194
14404
  borderColor: "grey-5",
14195
14405
  borderWidth: "1px"
@@ -14197,7 +14407,7 @@ var Section3 = (_a) => {
14197
14407
  };
14198
14408
  Section3.Header = (_a) => {
14199
14409
  var _b = _a, { children, className, expanded } = _b, rest = __objRest(_b, ["children", "className", "expanded"]);
14200
- return /* @__PURE__ */ React107.createElement("div", __spreadProps(__spreadValues({}, rest), {
14410
+ return /* @__PURE__ */ React108.createElement("div", __spreadProps(__spreadValues({}, rest), {
14201
14411
  className: classNames(
14202
14412
  tw("px-6 flex gap-5 justify-between items-center h-[72px]", { "bg-grey-0": expanded }),
14203
14413
  className
@@ -14206,21 +14416,21 @@ Section3.Header = (_a) => {
14206
14416
  };
14207
14417
  Section3.TitleContainer = (_a) => {
14208
14418
  var _b = _a, { children, className, collapsible } = _b, rest = __objRest(_b, ["children", "className", "collapsible"]);
14209
- return /* @__PURE__ */ React107.createElement("div", __spreadProps(__spreadValues({}, rest), {
14419
+ return /* @__PURE__ */ React108.createElement("div", __spreadProps(__spreadValues({}, rest), {
14210
14420
  className: classNames(
14211
14421
  tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", { "cursor-pointer": collapsible }),
14212
14422
  className
14213
14423
  )
14214
14424
  }), children);
14215
14425
  };
14216
- Section3.Toggle = (props) => /* @__PURE__ */ React107.createElement(Icon, __spreadProps(__spreadValues({}, props), {
14426
+ Section3.Toggle = (props) => /* @__PURE__ */ React108.createElement(Icon, __spreadProps(__spreadValues({}, props), {
14217
14427
  icon: import_caretUp2.default,
14218
14428
  height: 22,
14219
14429
  width: 22
14220
14430
  }));
14221
14431
  Section3.Title = (_a) => {
14222
14432
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
14223
- return /* @__PURE__ */ React107.createElement(Typography2.Large, __spreadProps(__spreadValues({}, rest), {
14433
+ return /* @__PURE__ */ React108.createElement(Typography2.Large, __spreadProps(__spreadValues({}, rest), {
14224
14434
  htmlTag: "h2",
14225
14435
  color: "black",
14226
14436
  className: "flex gap-3 items-center"
@@ -14228,21 +14438,21 @@ Section3.Title = (_a) => {
14228
14438
  };
14229
14439
  Section3.Subtitle = (_a) => {
14230
14440
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
14231
- return /* @__PURE__ */ React107.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
14441
+ return /* @__PURE__ */ React108.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
14232
14442
  color: "grey-70"
14233
14443
  }), children);
14234
14444
  };
14235
14445
  Section3.Actions = (_a) => {
14236
14446
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14237
- return /* @__PURE__ */ React107.createElement("div", __spreadProps(__spreadValues({}, rest), {
14447
+ return /* @__PURE__ */ React108.createElement("div", __spreadProps(__spreadValues({}, rest), {
14238
14448
  className: classNames(tw("flex gap-4 justify-end"), className)
14239
14449
  }), children);
14240
14450
  };
14241
14451
  Section3.Body = (_a) => {
14242
14452
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14243
- return /* @__PURE__ */ React107.createElement("div", __spreadProps(__spreadValues({}, rest), {
14453
+ return /* @__PURE__ */ React108.createElement("div", __spreadProps(__spreadValues({}, rest), {
14244
14454
  className: classNames(tw("p-6"), className)
14245
- }), /* @__PURE__ */ React107.createElement(Typography, {
14455
+ }), /* @__PURE__ */ React108.createElement(Typography, {
14246
14456
  htmlTag: "div",
14247
14457
  color: "grey-70"
14248
14458
  }, children));
@@ -14256,7 +14466,7 @@ var Section4 = (props) => {
14256
14466
  const _collapsible = title ? (_a = props.collapsible) != null ? _a : false : false;
14257
14467
  const _collapsed = title ? props.collapsed : void 0;
14258
14468
  const _defaultCollapsed = title ? (_b = props.defaultCollapsed) != null ? _b : false : false;
14259
- const [isCollapsed, setCollapsed] = React108.useState(_collapsed != null ? _collapsed : _defaultCollapsed);
14469
+ const [isCollapsed, setCollapsed] = React109.useState(_collapsed != null ? _collapsed : _defaultCollapsed);
14260
14470
  const [ref, { height }] = useMeasure();
14261
14471
  const menu = title ? (_c = props.menu) != null ? _c : void 0 : void 0;
14262
14472
  const menuAriaLabel = title ? (_e = (_d = props.menuAriaLabel) != null ? _d : props.menuLabel) != null ? _e : "Context menu" : void 0;
@@ -14291,61 +14501,61 @@ var Section4 = (props) => {
14291
14501
  const regionId = useId16();
14292
14502
  const titleId = useId16();
14293
14503
  const hasTabs = isComponentType(children, Tabs);
14294
- return /* @__PURE__ */ React108.createElement(Section3, {
14504
+ return /* @__PURE__ */ React109.createElement(Section3, {
14295
14505
  "aria-label": title,
14296
14506
  className: "Aquarium-Section"
14297
- }, title && /* @__PURE__ */ React108.createElement(React108.Fragment, null, /* @__PURE__ */ React108.createElement(Section3.Header, {
14507
+ }, title && /* @__PURE__ */ React109.createElement(React109.Fragment, null, /* @__PURE__ */ React109.createElement(Section3.Header, {
14298
14508
  expanded: _collapsible && !isCollapsed
14299
- }, /* @__PURE__ */ React108.createElement(Section3.TitleContainer, {
14509
+ }, /* @__PURE__ */ React109.createElement(Section3.TitleContainer, {
14300
14510
  role: _collapsible ? "button" : void 0,
14301
14511
  id: toggleId,
14302
14512
  collapsible: _collapsible,
14303
14513
  onClick: handleTitleClick,
14304
14514
  "aria-expanded": _collapsible ? !isCollapsed : void 0,
14305
14515
  "aria-controls": _collapsible ? regionId : void 0
14306
- }, _collapsible && /* @__PURE__ */ React108.createElement(animated5.div, {
14516
+ }, _collapsible && /* @__PURE__ */ React109.createElement(animated5.div, {
14307
14517
  style: { transform }
14308
- }, /* @__PURE__ */ React108.createElement(Section3.Toggle, null)), /* @__PURE__ */ React108.createElement(Section3.Title, {
14518
+ }, /* @__PURE__ */ React109.createElement(Section3.Toggle, null)), /* @__PURE__ */ React109.createElement(Section3.Title, {
14309
14519
  id: titleId
14310
- }, /* @__PURE__ */ React108.createElement(LineClamp2, {
14520
+ }, /* @__PURE__ */ React109.createElement(LineClamp2, {
14311
14521
  lines: 1
14312
- }, title), props.tag && /* @__PURE__ */ React108.createElement(TagLabel, __spreadValues({}, props.tag)), props.badge && /* @__PURE__ */ React108.createElement(Chip2, {
14522
+ }, title), props.tag && /* @__PURE__ */ React109.createElement(TagLabel, __spreadValues({}, props.tag)), props.badge && /* @__PURE__ */ React109.createElement(Chip2, {
14313
14523
  text: props.badge
14314
- }), props.chip && /* @__PURE__ */ React108.createElement(StatusChip, __spreadValues({}, props.chip))), subtitle && /* @__PURE__ */ React108.createElement(Section3.Subtitle, {
14524
+ }), props.chip && /* @__PURE__ */ React109.createElement(StatusChip, __spreadValues({}, props.chip))), subtitle && /* @__PURE__ */ React109.createElement(Section3.Subtitle, {
14315
14525
  className: tw("row-start-2", { "col-start-2": _collapsible })
14316
- }, /* @__PURE__ */ React108.createElement(LineClamp2, {
14526
+ }, /* @__PURE__ */ React109.createElement(LineClamp2, {
14317
14527
  lines: 1
14318
- }, subtitle))), !isCollapsed && /* @__PURE__ */ React108.createElement(Section3.Actions, null, menu && /* @__PURE__ */ React108.createElement(Box.Flex, {
14528
+ }, subtitle))), !isCollapsed && /* @__PURE__ */ React109.createElement(Section3.Actions, null, menu && /* @__PURE__ */ React109.createElement(Box.Flex, {
14319
14529
  alignItems: "center"
14320
- }, /* @__PURE__ */ React108.createElement(DropdownMenu2, {
14530
+ }, /* @__PURE__ */ React109.createElement(DropdownMenu2, {
14321
14531
  onAction: (action) => onAction == null ? void 0 : onAction(action),
14322
14532
  onOpenChange: onMenuOpenChange,
14323
- placement: "bottom-right"
14324
- }, /* @__PURE__ */ React108.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React108.createElement(Button.Icon, {
14533
+ placement: defaultContextualMenuPlacement
14534
+ }, /* @__PURE__ */ React109.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React109.createElement(Button.Icon, {
14325
14535
  "aria-label": menuAriaLabel,
14326
14536
  icon: import_more6.default
14327
- })), menu)), props.actions && castArray5(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.switch && /* @__PURE__ */ React108.createElement(Switch2, __spreadValues({}, props.switch)), props.select && /* @__PURE__ */ React108.createElement(SelectBase, __spreadValues({
14537
+ })), menu)), props.actions && castArray6(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.switch && /* @__PURE__ */ React109.createElement(Switch2, __spreadValues({}, props.switch)), props.select && /* @__PURE__ */ React109.createElement(SelectBase, __spreadValues({
14328
14538
  "aria-labelledby": titleId
14329
- }, props.select)))), !hasTabs && /* @__PURE__ */ React108.createElement(animated5.div, {
14539
+ }, props.select)))), !hasTabs && /* @__PURE__ */ React109.createElement(animated5.div, {
14330
14540
  className: tw(`h-[1px]`),
14331
14541
  style: { backgroundColor }
14332
- })), /* @__PURE__ */ React108.createElement(animated5.div, {
14542
+ })), /* @__PURE__ */ React109.createElement(animated5.div, {
14333
14543
  id: regionId,
14334
14544
  "aria-hidden": _collapsible ? isCollapsed ? true : void 0 : void 0,
14335
14545
  style: spring,
14336
14546
  className: tw({ "overflow-hidden": _collapsible })
14337
- }, /* @__PURE__ */ React108.createElement("div", {
14547
+ }, /* @__PURE__ */ React109.createElement("div", {
14338
14548
  ref
14339
- }, hasTabs ? /* @__PURE__ */ React108.createElement(SectionTabs, __spreadProps(__spreadValues({}, children.props), {
14549
+ }, hasTabs ? /* @__PURE__ */ React109.createElement(SectionTabs, __spreadProps(__spreadValues({}, children.props), {
14340
14550
  className: tw("[&>div:first-child]:px-3 grow flex flex-col overflow-y-auto", { "mt-4": _collapsible })
14341
- })) : /* @__PURE__ */ React108.createElement(Section3.Body, null, children))));
14551
+ })) : /* @__PURE__ */ React109.createElement(Section3.Body, null, children))));
14342
14552
  };
14343
- var SectionTabs = createTabsComponent(ModalTab, TabItem, "SectionTabs", (children, selected) => /* @__PURE__ */ React108.createElement(Section3.Body, null, children.find(
14553
+ var SectionTabs = createTabsComponent(ModalTab, TabItem, "SectionTabs", (children, selected) => /* @__PURE__ */ React109.createElement(Section3.Body, null, children.find(
14344
14554
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
14345
14555
  )));
14346
14556
 
14347
14557
  // src/molecules/SegmentedControl/SegmentedControl.tsx
14348
- import React109 from "react";
14558
+ import React110 from "react";
14349
14559
  var SegmentedControl = (_a) => {
14350
14560
  var _b = _a, {
14351
14561
  children,
@@ -14362,7 +14572,7 @@ var SegmentedControl = (_a) => {
14362
14572
  "selected",
14363
14573
  "className"
14364
14574
  ]);
14365
- return /* @__PURE__ */ React109.createElement("li", null, /* @__PURE__ */ React109.createElement("button", __spreadProps(__spreadValues({
14575
+ return /* @__PURE__ */ React110.createElement("li", null, /* @__PURE__ */ React110.createElement("button", __spreadProps(__spreadValues({
14366
14576
  type: "button"
14367
14577
  }, rest), {
14368
14578
  className: classNames(
@@ -14396,12 +14606,12 @@ var SegmentedControlGroup = (_a) => {
14396
14606
  "border border-default text-grey-50": variant === "outlined",
14397
14607
  "bg-grey-0": variant === "raised"
14398
14608
  });
14399
- return /* @__PURE__ */ React109.createElement("ul", __spreadProps(__spreadValues({}, rest), {
14609
+ return /* @__PURE__ */ React110.createElement("ul", __spreadProps(__spreadValues({}, rest), {
14400
14610
  "aria-label": ariaLabel,
14401
14611
  className: classNames("Aquarium-SegmentedControl", classes2, className)
14402
- }), React109.Children.map(
14612
+ }), React110.Children.map(
14403
14613
  children,
14404
- (child) => React109.cloneElement(child, {
14614
+ (child) => React110.cloneElement(child, {
14405
14615
  dense,
14406
14616
  variant,
14407
14617
  onClick: () => onChange(child.props.value),
@@ -14439,14 +14649,14 @@ var getCommonClassNames = (dense, selected) => tw(
14439
14649
  );
14440
14650
 
14441
14651
  // src/molecules/Stepper/Stepper.tsx
14442
- import React111 from "react";
14652
+ import React112 from "react";
14443
14653
 
14444
14654
  // src/atoms/Stepper/Stepper.tsx
14445
- import React110 from "react";
14655
+ import React111 from "react";
14446
14656
  var import_tick6 = __toESM(require_tick());
14447
14657
  var Stepper = (_a) => {
14448
14658
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14449
- return /* @__PURE__ */ React110.createElement("div", __spreadProps(__spreadValues({}, rest), {
14659
+ return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
14450
14660
  className: classNames(className)
14451
14661
  }));
14452
14662
  };
@@ -14460,7 +14670,7 @@ var ConnectorContainer = (_a) => {
14460
14670
  "completed",
14461
14671
  "dense"
14462
14672
  ]);
14463
- return /* @__PURE__ */ React110.createElement("div", __spreadProps(__spreadValues({}, rest), {
14673
+ return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
14464
14674
  className: classNames(
14465
14675
  tw("absolute w-full -left-1/2", {
14466
14676
  "top-[3px] px-[14px]": Boolean(dense),
@@ -14472,7 +14682,7 @@ var ConnectorContainer = (_a) => {
14472
14682
  };
14473
14683
  var Connector = (_a) => {
14474
14684
  var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
14475
- return /* @__PURE__ */ React110.createElement("div", __spreadProps(__spreadValues({}, rest), {
14685
+ return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
14476
14686
  className: classNames(
14477
14687
  tw("w-full", {
14478
14688
  "bg-grey-20": !completed,
@@ -14486,7 +14696,7 @@ var Connector = (_a) => {
14486
14696
  };
14487
14697
  var Step = (_a) => {
14488
14698
  var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
14489
- return /* @__PURE__ */ React110.createElement("div", __spreadProps(__spreadValues({}, rest), {
14699
+ return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
14490
14700
  className: classNames(
14491
14701
  tw("flex flex-col items-center text-grey-90 relative text-center", {
14492
14702
  "text-grey-20": state === "inactive"
@@ -14507,13 +14717,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
14507
14717
  });
14508
14718
  var Indicator = (_a) => {
14509
14719
  var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
14510
- return /* @__PURE__ */ React110.createElement("div", __spreadProps(__spreadValues({}, rest), {
14720
+ return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
14511
14721
  className: classNames(
14512
14722
  tw("rounded-full flex justify-center items-center mx-2 mb-3"),
14513
14723
  dense ? getDenseClassNames(state) : getClassNames(state),
14514
14724
  className
14515
14725
  )
14516
- }), state === "completed" ? /* @__PURE__ */ React110.createElement(InlineIcon, {
14726
+ }), state === "completed" ? /* @__PURE__ */ React111.createElement(InlineIcon, {
14517
14727
  icon: import_tick6.default
14518
14728
  }) : dense ? null : children);
14519
14729
  };
@@ -14524,26 +14734,26 @@ Stepper.ConnectorContainer = ConnectorContainer;
14524
14734
 
14525
14735
  // src/molecules/Stepper/Stepper.tsx
14526
14736
  var Stepper2 = ({ children, activeIndex, dense }) => {
14527
- const steps = React111.Children.count(children);
14528
- return /* @__PURE__ */ React111.createElement(Stepper, {
14737
+ const steps = React112.Children.count(children);
14738
+ return /* @__PURE__ */ React112.createElement(Stepper, {
14529
14739
  role: "list",
14530
14740
  className: "Aquarium-Stepper"
14531
- }, /* @__PURE__ */ React111.createElement(Template, {
14741
+ }, /* @__PURE__ */ React112.createElement(Template, {
14532
14742
  columns: steps
14533
- }, React111.Children.map(children, (child, index) => {
14743
+ }, React112.Children.map(children, (child, index) => {
14534
14744
  if (!isComponentType(child, Step2)) {
14535
14745
  throw new Error("<Stepper> can only have <Stepper.Step> components as children");
14536
14746
  } else {
14537
14747
  const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
14538
- return /* @__PURE__ */ React111.createElement(Stepper.Step, {
14748
+ return /* @__PURE__ */ React112.createElement(Stepper.Step, {
14539
14749
  state,
14540
14750
  "aria-current": state === "active" ? "step" : false,
14541
14751
  role: "listitem"
14542
- }, index > 0 && index <= steps && /* @__PURE__ */ React111.createElement(Stepper.ConnectorContainer, {
14752
+ }, index > 0 && index <= steps && /* @__PURE__ */ React112.createElement(Stepper.ConnectorContainer, {
14543
14753
  dense
14544
- }, /* @__PURE__ */ React111.createElement(Stepper.ConnectorContainer.Connector, {
14754
+ }, /* @__PURE__ */ React112.createElement(Stepper.ConnectorContainer.Connector, {
14545
14755
  completed: state === "completed" || state === "active"
14546
- })), /* @__PURE__ */ React111.createElement(Stepper.Step.Indicator, {
14756
+ })), /* @__PURE__ */ React112.createElement(Stepper.Step.Indicator, {
14547
14757
  state,
14548
14758
  dense
14549
14759
  }, index + 1), child.props.children);
@@ -14556,7 +14766,7 @@ Step2.displayName = "Stepper.Step";
14556
14766
  Stepper2.Step = Step2;
14557
14767
 
14558
14768
  // src/molecules/SwitchGroup/SwitchGroup.tsx
14559
- import React112, { useState as useState13 } from "react";
14769
+ import React113, { useState as useState13 } from "react";
14560
14770
  import { useId as useId17 } from "@react-aria/utils";
14561
14771
  var SwitchGroup = (_a) => {
14562
14772
  var _b = _a, {
@@ -14588,13 +14798,13 @@ var SwitchGroup = (_a) => {
14588
14798
  setSelectedItems(updated);
14589
14799
  onChange == null ? void 0 : onChange(updated);
14590
14800
  };
14591
- return /* @__PURE__ */ React112.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
14801
+ return /* @__PURE__ */ React113.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
14592
14802
  fieldset: true
14593
14803
  }, labelControlProps), errorProps), {
14594
14804
  className: "Aquarium-SwitchGroup"
14595
- }), /* @__PURE__ */ React112.createElement(InputGroup, {
14805
+ }), /* @__PURE__ */ React113.createElement(InputGroup, {
14596
14806
  cols
14597
- }, React112.Children.map(children, (c) => {
14807
+ }, React113.Children.map(children, (c) => {
14598
14808
  var _a3, _b2, _c, _d;
14599
14809
  if (!isComponentType(c, Switch2)) {
14600
14810
  return null;
@@ -14602,7 +14812,7 @@ var SwitchGroup = (_a) => {
14602
14812
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
14603
14813
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
14604
14814
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
14605
- return React112.cloneElement(c, {
14815
+ return React113.cloneElement(c, {
14606
14816
  defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
14607
14817
  checked: (_c = c.props.checked) != null ? _c : checked,
14608
14818
  onChange: (_d = c.props.onChange) != null ? _d : handleChange,
@@ -14612,9 +14822,9 @@ var SwitchGroup = (_a) => {
14612
14822
  })));
14613
14823
  };
14614
14824
  var SwitchGroupSkeleton = ({ options = 2 }) => {
14615
- return /* @__PURE__ */ React112.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React112.createElement("div", {
14825
+ return /* @__PURE__ */ React113.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React113.createElement("div", {
14616
14826
  className: tw("flex flex-wrap flex-col gap-2")
14617
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React112.createElement(Switch2.Skeleton, {
14827
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React113.createElement(Switch2.Skeleton, {
14618
14828
  key
14619
14829
  }))));
14620
14830
  };
@@ -14622,14 +14832,14 @@ SwitchGroup.Skeleton = SwitchGroupSkeleton;
14622
14832
  SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
14623
14833
 
14624
14834
  // src/molecules/Textarea/Textarea.tsx
14625
- import React113, { useState as useState14 } from "react";
14835
+ import React114, { useState as useState14 } from "react";
14626
14836
  import { useId as useId18 } from "@react-aria/utils";
14627
14837
  import omit16 from "lodash/omit";
14628
14838
  import toString2 from "lodash/toString";
14629
- var TextareaBase = React113.forwardRef(
14839
+ var TextareaBase = React114.forwardRef(
14630
14840
  (_a, ref) => {
14631
14841
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
14632
- return /* @__PURE__ */ React113.createElement("textarea", __spreadProps(__spreadValues({
14842
+ return /* @__PURE__ */ React114.createElement("textarea", __spreadProps(__spreadValues({
14633
14843
  ref
14634
14844
  }, props), {
14635
14845
  readOnly,
@@ -14637,10 +14847,10 @@ var TextareaBase = React113.forwardRef(
14637
14847
  }));
14638
14848
  }
14639
14849
  );
14640
- TextareaBase.Skeleton = () => /* @__PURE__ */ React113.createElement(Skeleton, {
14850
+ TextareaBase.Skeleton = () => /* @__PURE__ */ React114.createElement(Skeleton, {
14641
14851
  height: 58
14642
14852
  });
14643
- var Textarea = React113.forwardRef((props, ref) => {
14853
+ var Textarea = React114.forwardRef((props, ref) => {
14644
14854
  var _a, _b, _c;
14645
14855
  const [value, setValue] = useState14((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
14646
14856
  const defaultId = useId18();
@@ -14649,14 +14859,14 @@ var Textarea = React113.forwardRef((props, ref) => {
14649
14859
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
14650
14860
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
14651
14861
  const baseProps = omit16(props, Object.keys(labelControlProps));
14652
- return /* @__PURE__ */ React113.createElement(LabelControl, __spreadProps(__spreadValues({
14862
+ return /* @__PURE__ */ React114.createElement(LabelControl, __spreadProps(__spreadValues({
14653
14863
  id: `${id}-label`,
14654
14864
  htmlFor: id,
14655
14865
  messageId: errorMessageId,
14656
14866
  length: value !== void 0 ? toString2(value).length : void 0
14657
14867
  }, labelControlProps), {
14658
14868
  className: "Aquarium-Textarea"
14659
- }), /* @__PURE__ */ React113.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
14869
+ }), /* @__PURE__ */ React114.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
14660
14870
  ref
14661
14871
  }, baseProps), errorProps), {
14662
14872
  id,
@@ -14673,48 +14883,48 @@ var Textarea = React113.forwardRef((props, ref) => {
14673
14883
  })));
14674
14884
  });
14675
14885
  Textarea.displayName = "Textarea";
14676
- var TextAreaSkeleton = () => /* @__PURE__ */ React113.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React113.createElement(TextareaBase.Skeleton, null));
14886
+ var TextAreaSkeleton = () => /* @__PURE__ */ React114.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React114.createElement(TextareaBase.Skeleton, null));
14677
14887
  Textarea.Skeleton = TextAreaSkeleton;
14678
14888
  Textarea.Skeleton.displayName = "Textarea.Skeleton";
14679
14889
 
14680
14890
  // src/molecules/Timeline/Timeline.tsx
14681
- import React115 from "react";
14891
+ import React116 from "react";
14682
14892
 
14683
14893
  // src/atoms/Timeline/Timeline.tsx
14684
- import React114 from "react";
14894
+ import React115 from "react";
14685
14895
  var Timeline = (_a) => {
14686
14896
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14687
- return /* @__PURE__ */ React114.createElement("div", __spreadProps(__spreadValues({}, rest), {
14897
+ return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
14688
14898
  className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
14689
14899
  }));
14690
14900
  };
14691
14901
  var Content2 = (_a) => {
14692
14902
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14693
- return /* @__PURE__ */ React114.createElement("div", __spreadProps(__spreadValues({}, rest), {
14903
+ return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
14694
14904
  className: classNames(tw("pb-6"), className)
14695
14905
  }));
14696
14906
  };
14697
14907
  var Separator2 = (_a) => {
14698
14908
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14699
- return /* @__PURE__ */ React114.createElement("div", __spreadProps(__spreadValues({}, rest), {
14909
+ return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
14700
14910
  className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
14701
14911
  }));
14702
14912
  };
14703
14913
  var LineContainer = (_a) => {
14704
14914
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14705
- return /* @__PURE__ */ React114.createElement("div", __spreadProps(__spreadValues({}, rest), {
14915
+ return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
14706
14916
  className: classNames(tw("flex justify-center py-1"), className)
14707
14917
  }));
14708
14918
  };
14709
14919
  var Line = (_a) => {
14710
14920
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14711
- return /* @__PURE__ */ React114.createElement("div", __spreadProps(__spreadValues({}, rest), {
14921
+ return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
14712
14922
  className: classNames(tw("w-1 bg-grey-5 h-full justify-self-center"), className)
14713
14923
  }));
14714
14924
  };
14715
14925
  var Dot = (_a) => {
14716
14926
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14717
- return /* @__PURE__ */ React114.createElement("div", __spreadProps(__spreadValues({}, rest), {
14927
+ return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
14718
14928
  className: classNames(tw("bg-grey-30 h-[6px] w-[6px] rounded"), className)
14719
14929
  }));
14720
14930
  };
@@ -14729,54 +14939,54 @@ var import_error5 = __toESM(require_error());
14729
14939
  var import_time2 = __toESM(require_time());
14730
14940
  var import_warningSign5 = __toESM(require_warningSign());
14731
14941
  var TimelineItem = () => null;
14732
- var Timeline2 = ({ children }) => /* @__PURE__ */ React115.createElement("div", {
14942
+ var Timeline2 = ({ children }) => /* @__PURE__ */ React116.createElement("div", {
14733
14943
  className: "Aquarium-Timeline"
14734
- }, React115.Children.map(children, (item) => {
14944
+ }, React116.Children.map(children, (item) => {
14735
14945
  if (!isComponentType(item, TimelineItem)) {
14736
14946
  throw new Error("<Timeline> can only have <Timeline.Item> components as children");
14737
14947
  } else {
14738
14948
  const { props, key } = item;
14739
- return /* @__PURE__ */ React115.createElement(Timeline, {
14949
+ return /* @__PURE__ */ React116.createElement(Timeline, {
14740
14950
  key: key != null ? key : props.title
14741
- }, /* @__PURE__ */ React115.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React115.createElement(Icon, {
14951
+ }, /* @__PURE__ */ React116.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React116.createElement(Icon, {
14742
14952
  icon: import_error5.default,
14743
14953
  color: "error-30"
14744
- }) : props.variant === "warning" ? /* @__PURE__ */ React115.createElement(Icon, {
14954
+ }) : props.variant === "warning" ? /* @__PURE__ */ React116.createElement(Icon, {
14745
14955
  icon: import_warningSign5.default,
14746
14956
  color: "warning-30"
14747
- }) : props.variant === "info" ? /* @__PURE__ */ React115.createElement(Icon, {
14957
+ }) : props.variant === "info" ? /* @__PURE__ */ React116.createElement(Icon, {
14748
14958
  icon: import_time2.default,
14749
14959
  color: "info-30"
14750
- }) : /* @__PURE__ */ React115.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React115.createElement(Typography2.Caption, {
14960
+ }) : /* @__PURE__ */ React116.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React116.createElement(Typography2.Caption, {
14751
14961
  color: "grey-50"
14752
- }, props.title), /* @__PURE__ */ React115.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React115.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React115.createElement(Timeline.Content, null, /* @__PURE__ */ React115.createElement(Typography2.Small, null, props.children)));
14962
+ }, props.title), /* @__PURE__ */ React116.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React116.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React116.createElement(Timeline.Content, null, /* @__PURE__ */ React116.createElement(Typography2.Small, null, props.children)));
14753
14963
  }
14754
14964
  }));
14755
- var TimelineItemSkeleton = () => /* @__PURE__ */ React115.createElement(Timeline, null, /* @__PURE__ */ React115.createElement(Timeline.Separator, null, /* @__PURE__ */ React115.createElement(Skeleton, {
14965
+ var TimelineItemSkeleton = () => /* @__PURE__ */ React116.createElement(Timeline, null, /* @__PURE__ */ React116.createElement(Timeline.Separator, null, /* @__PURE__ */ React116.createElement(Skeleton, {
14756
14966
  width: 6,
14757
14967
  height: 6,
14758
14968
  rounded: true
14759
- })), /* @__PURE__ */ React115.createElement(Skeleton, {
14969
+ })), /* @__PURE__ */ React116.createElement(Skeleton, {
14760
14970
  height: 12,
14761
14971
  width: 120
14762
- }), /* @__PURE__ */ React115.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React115.createElement(Skeleton, {
14972
+ }), /* @__PURE__ */ React116.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React116.createElement(Skeleton, {
14763
14973
  width: 2,
14764
14974
  height: "100%"
14765
- })), /* @__PURE__ */ React115.createElement(Timeline.Content, null, /* @__PURE__ */ React115.createElement(Box, {
14975
+ })), /* @__PURE__ */ React116.createElement(Timeline.Content, null, /* @__PURE__ */ React116.createElement(Box, {
14766
14976
  display: "flex",
14767
14977
  flexDirection: "column",
14768
14978
  gap: "3"
14769
- }, /* @__PURE__ */ React115.createElement(Skeleton, {
14979
+ }, /* @__PURE__ */ React116.createElement(Skeleton, {
14770
14980
  height: 32,
14771
14981
  width: "100%"
14772
- }), /* @__PURE__ */ React115.createElement(Skeleton, {
14982
+ }), /* @__PURE__ */ React116.createElement(Skeleton, {
14773
14983
  height: 32,
14774
14984
  width: "73%"
14775
- }), /* @__PURE__ */ React115.createElement(Skeleton, {
14985
+ }), /* @__PURE__ */ React116.createElement(Skeleton, {
14776
14986
  height: 32,
14777
14987
  width: "80%"
14778
14988
  }))));
14779
- var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React115.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React115.createElement(TimelineItemSkeleton, {
14989
+ var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React116.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React116.createElement(TimelineItemSkeleton, {
14780
14990
  key
14781
14991
  })));
14782
14992
  Timeline2.Item = TimelineItem;
@@ -14784,9 +14994,9 @@ Timeline2.Skeleton = TimelineSkeleton;
14784
14994
  Timeline2.Skeleton.displayName = "Timeline.Skeleton";
14785
14995
 
14786
14996
  // src/utils/table/useTableSelect.ts
14787
- import React116 from "react";
14997
+ import React117 from "react";
14788
14998
  var useTableSelect = (data, { key }) => {
14789
- const [selected, setSelected] = React116.useState([]);
14999
+ const [selected, setSelected] = React117.useState([]);
14790
15000
  const allSelected = selected.length === data.length;
14791
15001
  const isSelected = (dot) => selected.includes(dot[key]);
14792
15002
  const selectAll = () => setSelected(data.map((dot) => dot[key]));