@aivenio/aquarium 1.61.0 → 1.63.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 (48) 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 +3 -1
  19. package/dist/src/molecules/Combobox/Combobox.js +10 -4
  20. package/dist/src/molecules/DataList/DataList.d.ts +49 -4
  21. package/dist/src/molecules/DataList/DataList.js +80 -28
  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/DataListGroup.d.ts +7 -3
  27. package/dist/src/molecules/DataList/DataListGroup.js +31 -9
  28. package/dist/src/molecules/DataList/DataListToolbar.d.ts +25 -0
  29. package/dist/src/molecules/DataList/DataListToolbar.js +30 -0
  30. package/dist/src/molecules/DataList/utils.d.ts +2 -0
  31. package/dist/src/molecules/DataList/utils.js +3 -0
  32. package/dist/src/molecules/DataTable/DataTable.js +3 -2
  33. package/dist/src/molecules/Dialog/Dialog.d.ts +4 -0
  34. package/dist/src/molecules/Dialog/Dialog.js +9 -4
  35. package/dist/src/molecules/MultiSelect/MultiSelect.d.ts +1 -1
  36. package/dist/src/molecules/MultiSelect/MultiSelect.js +1 -1
  37. package/dist/src/molecules/PageHeader/PageHeader.js +3 -2
  38. package/dist/src/molecules/Section/Section.js +3 -2
  39. package/dist/src/utils/table/types.d.ts +2 -1
  40. package/dist/src/utils/table/types.js +1 -1
  41. package/dist/styles.css +18 -0
  42. package/dist/system.cjs +850 -575
  43. package/dist/system.mjs +767 -492
  44. package/dist/tsconfig.module.tsbuildinfo +1 -1
  45. package/dist/types/ContextualMenu.d.ts +2 -0
  46. package/dist/types/ContextualMenu.js +2 -2
  47. package/dist/types/tailwindGenerated.d.ts +1 -1
  48. 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),
@@ -9339,9 +9380,11 @@ var ComboboxBase = (_a) => {
9339
9380
  createOption,
9340
9381
  renderOption = (opt) => itemToString(opt),
9341
9382
  isOptionDisabled = isOptionDisabledBuiltin,
9383
+ getOptionKey,
9342
9384
  defaultValue,
9343
9385
  value,
9344
9386
  onChange,
9387
+ onSearchChange,
9345
9388
  children,
9346
9389
  valid = true,
9347
9390
  disabled = false,
@@ -9359,9 +9402,11 @@ var ComboboxBase = (_a) => {
9359
9402
  "createOption",
9360
9403
  "renderOption",
9361
9404
  "isOptionDisabled",
9405
+ "getOptionKey",
9362
9406
  "defaultValue",
9363
9407
  "value",
9364
9408
  "onChange",
9409
+ "onSearchChange",
9365
9410
  "children",
9366
9411
  "valid",
9367
9412
  "disabled",
@@ -9417,7 +9462,10 @@ var ComboboxBase = (_a) => {
9417
9462
  return changes;
9418
9463
  },
9419
9464
  onSelectedItemChange: (e) => onChange == null ? void 0 : onChange(e.selectedItem),
9420
- onInputValueChange: ({ selectedItem: selectedItem2, inputValue: inputValue2 }) => updateInputItems(inputValue2, selectedItem2)
9465
+ onInputValueChange: ({ selectedItem: selectedItem2, inputValue: inputValue2 }) => {
9466
+ updateInputItems(inputValue2, selectedItem2);
9467
+ onSearchChange == null ? void 0 : onSearchChange(inputValue2);
9468
+ }
9421
9469
  });
9422
9470
  const state = {
9423
9471
  isOpen,
@@ -9476,11 +9524,14 @@ var ComboboxBase = (_a) => {
9476
9524
  style: { width: (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth }
9477
9525
  }, /* @__PURE__ */ React51.createElement(Select.Menu, __spreadValues({
9478
9526
  maxHeight
9479
- }, menuProps), hasNoResults && /* @__PURE__ */ React51.createElement(Select.NoResults, null, emptyState), inputItems.map((item, index) => /* @__PURE__ */ React51.createElement(Select.Item, __spreadValues({
9480
- key: itemToString(item),
9481
- selected: item === selectedItem,
9482
- highlighted: index === highlightedIndex || item === selectedItem
9483
- }, getItemProps({ item, index })), renderOption(item))))));
9527
+ }, menuProps), hasNoResults && /* @__PURE__ */ React51.createElement(Select.NoResults, null, emptyState), inputItems.map((item, index) => {
9528
+ var _a3;
9529
+ return /* @__PURE__ */ React51.createElement(Select.Item, __spreadValues({
9530
+ key: (_a3 = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a3 : itemToString(item),
9531
+ selected: item === selectedItem,
9532
+ highlighted: index === highlightedIndex || item === selectedItem
9533
+ }, getItemProps({ item, index })), renderOption(item));
9534
+ }))));
9484
9535
  };
9485
9536
  var ComboboxBaseSkeleton = () => /* @__PURE__ */ React51.createElement(Skeleton, {
9486
9537
  height: 38
@@ -9538,7 +9589,9 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React52.crea
9538
9589
  }, children);
9539
9590
 
9540
9591
  // src/molecules/DataList/DataList.tsx
9541
- import React70 from "react";
9592
+ import React71 from "react";
9593
+ import { useControlledState } from "@react-stately/utils";
9594
+ import castArray2 from "lodash/castArray";
9542
9595
  import compact from "lodash/compact";
9543
9596
  import groupBy2 from "lodash/groupBy";
9544
9597
  import isArray3 from "lodash/isArray";
@@ -10631,6 +10684,49 @@ DataList.SubGroupSpacing = SubGroupSpacing;
10631
10684
  DataList.SubGroupSpacing.displayName = "DataList.SubGroupSpacing";
10632
10685
  DataList.Row = Row;
10633
10686
  DataList.Row.displayName = "DataList.Row";
10687
+ var ToolbarContainer = (_a) => {
10688
+ var _b = _a, { className, sticky = true } = _b, rest = __objRest(_b, ["className", "sticky"]);
10689
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
10690
+ role: "row",
10691
+ className: classNames(
10692
+ tw("col-span-full flex items-stretch py-4 px-l2 border-b border-default", {
10693
+ "sticky top-[47px] bg-white z-10": sticky
10694
+ }),
10695
+ className
10696
+ )
10697
+ }));
10698
+ };
10699
+ ToolbarContainer.displayName = "DataList.Toolbar.Container";
10700
+ var ToolbarGroup = (_a) => {
10701
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10702
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({
10703
+ role: "cell"
10704
+ }, rest), {
10705
+ className: classNames(tw("flex items-center px-l2 border-r-[1px] border-muted last:border-r-0"), className)
10706
+ }));
10707
+ };
10708
+ ToolbarGroup.displayName = "DataList.Toolbar.Group";
10709
+ var ToolbarSelectionCount = (_a) => {
10710
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10711
+ return /* @__PURE__ */ React63.createElement(Typography, __spreadValues({
10712
+ variant: "small",
10713
+ color: "muted",
10714
+ className: classNames(tw("whitespace-nowrap"), className)
10715
+ }, rest));
10716
+ };
10717
+ var ToolbarActions = (_a) => {
10718
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10719
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
10720
+ className: classNames(tw("flex items-center gap-x-5"), className)
10721
+ }));
10722
+ };
10723
+ ToolbarActions.displayName = "DataList.Toolbar.Actions";
10724
+ DataList.Toolbar = {
10725
+ Container: ToolbarContainer,
10726
+ Group: ToolbarGroup,
10727
+ Actions: ToolbarActions,
10728
+ SelectionCount: ToolbarSelectionCount
10729
+ };
10634
10730
 
10635
10731
  // src/utils/table/types.ts
10636
10732
  import isArray2 from "lodash/isArray";
@@ -11052,6 +11148,9 @@ var renameProperty = (oldProp, newProp, _a) => {
11052
11148
  }, rest);
11053
11149
  };
11054
11150
 
11151
+ // types/ContextualMenu.ts
11152
+ var defaultContextualMenuPlacement = "bottom-right";
11153
+
11055
11154
  // src/molecules/DataList/DataListComponents.tsx
11056
11155
  var import_more2 = __toESM(require_more());
11057
11156
  var DataListRowMenu = ({
@@ -11069,6 +11168,7 @@ var DataListRowMenu = ({
11069
11168
  return /* @__PURE__ */ React67.createElement(DataList.Cell, {
11070
11169
  align: "right"
11071
11170
  }, menuContent && /* @__PURE__ */ React67.createElement(DropdownMenu2, {
11171
+ placement: defaultContextualMenuPlacement,
11072
11172
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
11073
11173
  onOpenChange: onMenuOpenChange
11074
11174
  }, /* @__PURE__ */ React67.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React67.createElement(Button.Icon, {
@@ -11085,15 +11185,16 @@ var DataListRow = ({
11085
11185
  active,
11086
11186
  disabled,
11087
11187
  renderFirstColumn,
11188
+ additionalRowProps = () => ({}),
11088
11189
  additionalColumnProps = () => ({})
11089
11190
  }) => {
11090
11191
  var _a;
11091
11192
  const isRowDisabled = (_a = disabled == null ? void 0 : disabled(row, index, rows)) != null ? _a : false;
11092
- return /* @__PURE__ */ React67.createElement(DataList.Row, {
11193
+ return /* @__PURE__ */ React67.createElement(DataList.Row, __spreadValues({
11093
11194
  key: row.id,
11094
11195
  disabled: isRowDisabled,
11095
11196
  active
11096
- }, renderFirstColumn == null ? void 0 : renderFirstColumn(row, index, rows), /* @__PURE__ */ React67.createElement(List, {
11197
+ }, additionalRowProps(row, index, rows)), renderFirstColumn == null ? void 0 : renderFirstColumn(row, index, rows), /* @__PURE__ */ React67.createElement(List, {
11097
11198
  items: columns,
11098
11199
  renderItem: (column, columnIndex) => /* @__PURE__ */ React67.createElement(DataList.Cell, __spreadValues(__spreadValues({}, cellProps(column)), additionalColumnProps(column, columnIndex, columns, row)), /* @__PURE__ */ React67.createElement(DataListCell, {
11099
11200
  column,
@@ -11153,12 +11254,33 @@ var DataListCell = ({
11153
11254
  return column.tooltip ? /* @__PURE__ */ React67.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : /* @__PURE__ */ React67.createElement(React67.Fragment, null, cellContent);
11154
11255
  };
11155
11256
 
11257
+ // src/molecules/DataList/DataListContext.tsx
11258
+ import { createContext as createContext3, useContext as useContext6 } from "react";
11259
+ var DataListContext = createContext3({
11260
+ rows: [],
11261
+ selectedRows: void 0
11262
+ });
11263
+ var useDataListContext = () => {
11264
+ const ctx = useContext6(DataListContext);
11265
+ if (!ctx) {
11266
+ throw new Error("DataListContext was used outside of provider.");
11267
+ }
11268
+ return ctx;
11269
+ };
11270
+
11156
11271
  // src/molecules/DataList/DataListGroup.tsx
11157
11272
  import React68 from "react";
11158
11273
  import isFunction2 from "lodash/isFunction";
11274
+
11275
+ // src/molecules/DataList/utils.ts
11276
+ var flattenRows = (rows) => areRowsGrouped(rows) ? Object.values(rows).flatMap(flattenRows) : rows;
11277
+
11278
+ // src/molecules/DataList/DataListGroup.tsx
11159
11279
  var GAP = 8;
11160
11280
  var INDENTATION = 28;
11161
11281
  var sortGroupKeys = (groupKeys) => [...groupKeys].sort((a) => a === "undefined" ? -1 : 1);
11282
+ var getDefaultRowCheckboxLabel = () => "Select row";
11283
+ var getDefaultGroupCheckboxLabel = (key) => `Select ${key}`;
11162
11284
  var DataListGroup = (_a) => {
11163
11285
  var _b = _a, {
11164
11286
  groups,
@@ -11177,7 +11299,12 @@ var DataListGroup = (_a) => {
11177
11299
  onAction,
11178
11300
  onGroupToggled,
11179
11301
  onMenuOpenChange,
11180
- rows
11302
+ rows,
11303
+ selectable,
11304
+ selectedRows,
11305
+ onSelectionChange,
11306
+ getRowCheckboxLabel = getDefaultRowCheckboxLabel,
11307
+ getGroupCheckboxLabel = getDefaultGroupCheckboxLabel
11181
11308
  } = props;
11182
11309
  const groupKeys = groups ? Object.keys(groups) : void 0;
11183
11310
  const hasCustomRowForGroup = isFunction2(getGroupRow);
@@ -11185,12 +11312,16 @@ var DataListGroup = (_a) => {
11185
11312
  return /* @__PURE__ */ React68.createElement(List, {
11186
11313
  items: groups,
11187
11314
  renderItem: (row, index) => {
11315
+ var _a2;
11316
+ const isChecked = (_a2 = selectedRows == null ? void 0 : selectedRows.includes(row.id)) != null ? _a2 : false;
11317
+ const isDisabled = disabled == null ? void 0 : disabled(row, index, rows);
11188
11318
  return /* @__PURE__ */ React68.createElement(DataListRow, {
11189
11319
  key: row.id,
11190
11320
  columns,
11191
11321
  row,
11192
11322
  index,
11193
11323
  rows,
11324
+ active: selectable && isChecked,
11194
11325
  menu: /* @__PURE__ */ React68.createElement(DataListRowMenu, {
11195
11326
  row,
11196
11327
  index,
@@ -11200,11 +11331,22 @@ var DataListGroup = (_a) => {
11200
11331
  menuAriaLabel
11201
11332
  }),
11202
11333
  disabled,
11334
+ additionalRowProps: () => selectable ? {
11335
+ "aria-selected": isChecked
11336
+ } : {},
11203
11337
  additionalColumnProps: (_, columnIndex) => columnIndex === 0 ? {
11204
11338
  style: {
11205
11339
  paddingLeft: `${GAP + level * INDENTATION}px`
11206
11340
  }
11207
- } : {}
11341
+ } : {},
11342
+ renderFirstColumn: (row2, index2) => {
11343
+ return /* @__PURE__ */ React68.createElement(React68.Fragment, null, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null, /* @__PURE__ */ React68.createElement(Checkbox, {
11344
+ "aria-label": getRowCheckboxLabel(row2, index2, isChecked, rows),
11345
+ onChange: onSelectionChange(row2.id),
11346
+ checked: isChecked,
11347
+ disabled: isDisabled
11348
+ })));
11349
+ }
11208
11350
  });
11209
11351
  }
11210
11352
  });
@@ -11214,8 +11356,8 @@ var DataListGroup = (_a) => {
11214
11356
  }
11215
11357
  return /* @__PURE__ */ React68.createElement(List, {
11216
11358
  items: sortGroupKeys(groupKeys),
11217
- renderItem: (key) => {
11218
- var _a2;
11359
+ renderItem: (key, index) => {
11360
+ var _a2, _b2;
11219
11361
  const group = groups[key];
11220
11362
  if (key === "undefined" || key === void 0) {
11221
11363
  return /* @__PURE__ */ React68.createElement(DataListGroup, __spreadProps(__spreadValues({
@@ -11226,12 +11368,21 @@ var DataListGroup = (_a) => {
11226
11368
  }));
11227
11369
  }
11228
11370
  const openPanelId = expandedGroupIds ? (_a2 = expandedGroupIds.find((id) => id === key)) != null ? _a2 : null : void 0;
11371
+ const nestedRowIds = flattenRows(group).map((row) => row.id);
11372
+ const nestedSelectedIds = (_b2 = selectedRows == null ? void 0 : selectedRows.filter((id) => nestedRowIds.includes(id))) != null ? _b2 : [];
11373
+ const allSelected = nestedRowIds.length === nestedSelectedIds.length;
11374
+ const isChecked = nestedSelectedIds.length > 0;
11229
11375
  return /* @__PURE__ */ React68.createElement(Accordion, {
11230
11376
  key,
11231
11377
  openPanelId
11232
11378
  }, hasCustomRowForGroup && /* @__PURE__ */ React68.createElement(DataList.Row, {
11233
- active: !!openPanelId
11234
- }, /* @__PURE__ */ React68.createElement(List, {
11379
+ active: !!openPanelId || selectable && isChecked
11380
+ }, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null, /* @__PURE__ */ React68.createElement(Checkbox, {
11381
+ "aria-label": getGroupCheckboxLabel(key, group, index, isChecked, rows),
11382
+ checked: isChecked,
11383
+ indeterminate: isChecked && !allSelected,
11384
+ onChange: onSelectionChange(nestedRowIds)
11385
+ })), /* @__PURE__ */ React68.createElement(List, {
11235
11386
  items: columns,
11236
11387
  renderItem: (column, idx) => /* @__PURE__ */ React68.createElement(DataList.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
11237
11388
  className: tw("gap-3"),
@@ -11253,10 +11404,15 @@ var DataListGroup = (_a) => {
11253
11404
  onMenuOpenChange,
11254
11405
  menuAriaLabel
11255
11406
  })), !hasCustomRowForGroup && /* @__PURE__ */ React68.createElement(DataList.Row, {
11256
- active: !!openPanelId
11257
- }, /* @__PURE__ */ React68.createElement(DataList.Cell, {
11407
+ active: !!openPanelId || selectable && isChecked
11408
+ }, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null, /* @__PURE__ */ React68.createElement(Checkbox, {
11409
+ "aria-label": getGroupCheckboxLabel(key, group, index, isChecked, rows),
11410
+ checked: isChecked,
11411
+ indeterminate: isChecked && !allSelected,
11412
+ onChange: onSelectionChange(nestedRowIds)
11413
+ })), /* @__PURE__ */ React68.createElement(DataList.Cell, {
11258
11414
  className: tw("gap-3"),
11259
- style: { paddingLeft: `${GAP + level * INDENTATION}px`, gridColumn: "1 / -1" }
11415
+ style: { paddingLeft: `${GAP + level * INDENTATION}px`, gridColumn: `${selectable ? 2 : 1} / -1` }
11260
11416
  }, /* @__PURE__ */ React68.createElement(Accordion.Toggle, {
11261
11417
  panelId: key,
11262
11418
  onChange: onGroupToggled
@@ -11301,6 +11457,38 @@ var DataListSkeleton = ({ columns = ["1", "2", "2", 52], rows = 5 }) => {
11301
11457
  }));
11302
11458
  };
11303
11459
 
11460
+ // src/molecules/DataList/DataListToolbar.tsx
11461
+ import React70 from "react";
11462
+ import castArray from "lodash/castArray";
11463
+ var DataListToolbar = ({
11464
+ actions: _actions,
11465
+ menu,
11466
+ onAction,
11467
+ onMenuOpenChange,
11468
+ menuLabel,
11469
+ sticky = true
11470
+ }) => {
11471
+ var _a;
11472
+ const { selectedRows } = useDataListContext();
11473
+ const actions = castArray(_actions).filter(Boolean);
11474
+ return /* @__PURE__ */ React70.createElement(DataList.Toolbar.Container, {
11475
+ sticky
11476
+ }, /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DataList.Toolbar.SelectionCount, null, (_a = selectedRows == null ? void 0 : selectedRows.length) != null ? _a : 0, " selected")), actions.length > 0 && /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DataList.Toolbar.Actions, null, actions.map(
11477
+ (action) => renderAction({
11478
+ kind: "ghost",
11479
+ dense: true,
11480
+ action: __spreadProps(__spreadValues({}, action), { onClick: () => action.onClick(selectedRows != null ? selectedRows : []) })
11481
+ })
11482
+ ))), menu && /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DropdownMenu2, {
11483
+ placement: defaultContextualMenuPlacement,
11484
+ onAction: (key) => onAction == null ? void 0 : onAction(key, selectedRows != null ? selectedRows : []),
11485
+ onOpenChange: onMenuOpenChange
11486
+ }, /* @__PURE__ */ React70.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React70.createElement(Button.GhostDropdown, {
11487
+ dense: true
11488
+ }, menuLabel)), menu)));
11489
+ };
11490
+ DataListToolbar.displayName = "DataList.Toolbar";
11491
+
11304
11492
  // src/molecules/DataList/DataList.tsx
11305
11493
  var DataList2 = (_a) => {
11306
11494
  var _b = _a, {
@@ -11321,7 +11509,14 @@ var DataList2 = (_a) => {
11321
11509
  onGroupToggled,
11322
11510
  expandedGroupIds,
11323
11511
  defaultSort,
11324
- onSortChanged
11512
+ onSortChanged,
11513
+ selectable,
11514
+ getRowCheckboxLabel = getDefaultRowCheckboxLabel,
11515
+ getGroupCheckboxLabel = getDefaultGroupCheckboxLabel,
11516
+ selectedRows,
11517
+ defaultSelectedRows,
11518
+ onSelectionChange,
11519
+ toolbar
11325
11520
  } = _b, rest = __objRest(_b, [
11326
11521
  "columns",
11327
11522
  "rows",
@@ -11340,9 +11535,21 @@ var DataList2 = (_a) => {
11340
11535
  "onGroupToggled",
11341
11536
  "expandedGroupIds",
11342
11537
  "defaultSort",
11343
- "onSortChanged"
11538
+ "onSortChanged",
11539
+ "selectable",
11540
+ "getRowCheckboxLabel",
11541
+ "getGroupCheckboxLabel",
11542
+ "selectedRows",
11543
+ "defaultSelectedRows",
11544
+ "onSelectionChange",
11545
+ "toolbar"
11344
11546
  ]);
11345
- var _a2;
11547
+ var _a2, _b2;
11548
+ const [selected, setSelected] = useControlledState(
11549
+ selectedRows,
11550
+ defaultSelectedRows,
11551
+ (value) => onSelectionChange == null ? void 0 : onSelectionChange(value != null ? value : [])
11552
+ );
11346
11553
  const defaultSortedColumn = columns.find((c) => c.headerName === (defaultSort == null ? void 0 : defaultSort.headerName));
11347
11554
  const initialSortState = defaultSortedColumn ? { column: defaultSortedColumn, direction: (_a2 = defaultSort == null ? void 0 : defaultSort.direction) != null ? _a2 : "ascending" } : void 0;
11348
11555
  const [sort, updateSort] = useTableSort(
@@ -11352,6 +11559,7 @@ var DataList2 = (_a) => {
11352
11559
  const groups = areRowsGrouped(rows) ? rows : group ? isFunction3(group) ? group(sortedRows) : groupBy2(sortedRows, group) : void 0;
11353
11560
  const isCollapsible = isFunction3(rowDetails);
11354
11561
  const templateColumns = compact([
11562
+ selectable ? "fit-content(28px)" : void 0,
11355
11563
  isCollapsible ? "fit-content(50px)" : void 0,
11356
11564
  ...columns.map((column) => {
11357
11565
  var _a3;
@@ -11359,51 +11567,84 @@ var DataList2 = (_a) => {
11359
11567
  }),
11360
11568
  menu ? "fit-content(28px)" : void 0
11361
11569
  ]);
11362
- const PaginationFooter = React70.useCallback(
11363
- ({ children }) => /* @__PURE__ */ React70.createElement("div", {
11570
+ const PaginationFooter = React71.useCallback(
11571
+ ({ children }) => /* @__PURE__ */ React71.createElement("div", {
11364
11572
  style: { gridColumn: "1 / -1" },
11365
11573
  role: "row"
11366
- }, /* @__PURE__ */ React70.createElement("div", {
11574
+ }, /* @__PURE__ */ React71.createElement("div", {
11367
11575
  role: "cell"
11368
11576
  }, children)),
11369
11577
  []
11370
11578
  );
11371
- return /* @__PURE__ */ React70.createElement(Template, {
11579
+ const handleSelectionChange = (id) => (e) => {
11580
+ const ids = castArray2(id);
11581
+ if (e.target.checked) {
11582
+ setSelected([...selected != null ? selected : [], ...ids]);
11583
+ } else {
11584
+ setSelected(selected == null ? void 0 : selected.filter((_id) => !ids.includes(_id)));
11585
+ }
11586
+ };
11587
+ const allRows = flattenRows(rows);
11588
+ const totalSelected = (_b2 = selected == null ? void 0 : selected.length) != null ? _b2 : 0;
11589
+ const allEnabledRowIds = compact(
11590
+ allRows.map((row, index) => (disabled == null ? void 0 : disabled(row, index, sortedRows)) ? void 0 : row.id)
11591
+ );
11592
+ const allRowsSelected = totalSelected >= allEnabledRowIds.length;
11593
+ return /* @__PURE__ */ React71.createElement(DataListContext.Provider, {
11594
+ value: {
11595
+ rows: isArray3(rows) ? sortedRows : rows,
11596
+ selectedRows: selected
11597
+ }
11598
+ }, /* @__PURE__ */ React71.createElement(Template, {
11372
11599
  className: "Aquarium-DataList",
11373
11600
  columns: templateColumns,
11374
11601
  role: "table"
11375
- }, !hideHeader && /* @__PURE__ */ React70.createElement(DataList.Row, {
11602
+ }, !hideHeader && /* @__PURE__ */ React71.createElement(React71.Fragment, null, /* @__PURE__ */ React71.createElement(DataList.Row, {
11376
11603
  header: true
11377
- }, isCollapsible && /* @__PURE__ */ React70.createElement(DataList.HeadCell, {
11604
+ }, selectable && /* @__PURE__ */ React71.createElement(DataList.HeadCell, {
11605
+ align: "left",
11606
+ sticky
11607
+ }, /* @__PURE__ */ React71.createElement(Checkbox, {
11608
+ "aria-label": "Select all rows",
11609
+ indeterminate: totalSelected > 0 && totalSelected < allRows.length,
11610
+ checked: totalSelected > 0,
11611
+ onChange: () => {
11612
+ if (!allRowsSelected) {
11613
+ setSelected(allEnabledRowIds);
11614
+ } else {
11615
+ setSelected([]);
11616
+ }
11617
+ }
11618
+ })), isCollapsible && /* @__PURE__ */ React71.createElement(DataList.HeadCell, {
11378
11619
  align: "left",
11379
11620
  sticky
11380
11621
  }), columns.map((column) => {
11381
- const content = column.headerTooltip ? /* @__PURE__ */ React70.createElement(Tooltip, {
11622
+ const content = column.headerTooltip ? /* @__PURE__ */ React71.createElement(Tooltip, {
11382
11623
  placement: column.headerTooltip.placement,
11383
11624
  content: column.headerTooltip.content
11384
11625
  }, column.headerName) : column.headerName;
11385
- const headerContentAndIcon = column.icon ? /* @__PURE__ */ React70.createElement(Box.Flex, {
11626
+ const headerContentAndIcon = column.icon ? /* @__PURE__ */ React71.createElement(Box.Flex, {
11386
11627
  flexDirection: "row",
11387
11628
  gap: "3",
11388
11629
  alignItems: "center"
11389
- }, /* @__PURE__ */ React70.createElement(InlineIcon, {
11630
+ }, /* @__PURE__ */ React71.createElement(InlineIcon, {
11390
11631
  icon: column.icon,
11391
11632
  height: "22",
11392
11633
  color: "grey-70",
11393
11634
  "aria-hidden": true
11394
11635
  }), content) : content;
11395
- return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React70.createElement(DataList.SortCell, __spreadValues({
11636
+ return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React71.createElement(DataList.SortCell, __spreadValues({
11396
11637
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
11397
11638
  onClick: () => updateSort(column),
11398
11639
  sticky
11399
- }, cellProps(column)), headerContentAndIcon) : /* @__PURE__ */ React70.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
11640
+ }, cellProps(column)), headerContentAndIcon) : /* @__PURE__ */ React71.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
11400
11641
  sticky
11401
11642
  }), headerContentAndIcon);
11402
- }), menu && /* @__PURE__ */ React70.createElement(DataList.HeadCell, {
11643
+ }), menu && /* @__PURE__ */ React71.createElement(DataList.HeadCell, {
11403
11644
  align: "right",
11404
11645
  "aria-label": menuAriaLabel,
11405
11646
  sticky
11406
- }, menuHeaderName)), groups && /* @__PURE__ */ React70.createElement(DataListGroup, {
11647
+ }, menuHeaderName)), toolbar), groups && /* @__PURE__ */ React71.createElement(DataListGroup, {
11407
11648
  columns,
11408
11649
  disabled,
11409
11650
  getGroupRow,
@@ -11413,21 +11654,30 @@ var DataList2 = (_a) => {
11413
11654
  onAction,
11414
11655
  onGroupToggled,
11415
11656
  onMenuOpenChange,
11657
+ selectable,
11658
+ selectedRows: selected,
11659
+ onSelectionChange: handleSelectionChange,
11660
+ getRowCheckboxLabel,
11661
+ getGroupCheckboxLabel,
11416
11662
  rows,
11417
11663
  groups,
11418
11664
  level: 0
11419
- }), !groups && /* @__PURE__ */ React70.createElement(List, __spreadProps(__spreadValues({}, rest), {
11665
+ }), !groups && /* @__PURE__ */ React71.createElement(List, __spreadProps(__spreadValues({}, rest), {
11420
11666
  paginationContainer: PaginationFooter,
11421
11667
  items: sortedRows,
11422
11668
  renderItem: (row, index) => {
11669
+ var _a3;
11423
11670
  const details = rowDetails == null ? void 0 : rowDetails(row, index, sortedRows);
11424
- const content = /* @__PURE__ */ React70.createElement(DataListRow, {
11671
+ const isChecked = (_a3 = selected == null ? void 0 : selected.includes(row.id)) != null ? _a3 : false;
11672
+ const isDisabled = disabled == null ? void 0 : disabled(row, index, sortedRows);
11673
+ const content = /* @__PURE__ */ React71.createElement(DataListRow, {
11425
11674
  key: row.id,
11426
11675
  columns,
11427
11676
  row,
11428
11677
  index,
11429
11678
  rows: sortedRows,
11430
- menu: /* @__PURE__ */ React70.createElement(DataListRowMenu, {
11679
+ active: selectable && isChecked,
11680
+ menu: /* @__PURE__ */ React71.createElement(DataListRowMenu, {
11431
11681
  row,
11432
11682
  index,
11433
11683
  menu,
@@ -11436,43 +11686,57 @@ var DataList2 = (_a) => {
11436
11686
  menuAriaLabel
11437
11687
  }),
11438
11688
  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
- }))
11689
+ additionalRowProps: (row2) => {
11690
+ var _a4;
11691
+ return selectable ? {
11692
+ "aria-selected": (_a4 = selected == null ? void 0 : selected.includes(row2.id)) != null ? _a4 : false
11693
+ } : {};
11694
+ },
11695
+ renderFirstColumn: (row2, index2) => {
11696
+ return /* @__PURE__ */ React71.createElement(React71.Fragment, null, selectable && /* @__PURE__ */ React71.createElement(DataList.Cell, null, /* @__PURE__ */ React71.createElement(Checkbox, {
11697
+ "aria-label": getRowCheckboxLabel(row2, index2, isChecked, sortedRows),
11698
+ onChange: handleSelectionChange(row2.id),
11699
+ checked: isChecked,
11700
+ disabled: isDisabled
11701
+ })), rowDetails !== void 0 && /* @__PURE__ */ React71.createElement(DataList.Cell, null, details && /* @__PURE__ */ React71.createElement(Accordion.Toggle, {
11702
+ panelId: row2.id.toString(),
11703
+ onChange: onGroupToggled
11704
+ })));
11705
+ }
11443
11706
  });
11444
11707
  if (!details) {
11445
11708
  return content;
11446
11709
  }
11447
- return /* @__PURE__ */ React70.createElement(Accordion, {
11710
+ return /* @__PURE__ */ React71.createElement(Accordion, {
11448
11711
  key: row.id,
11449
11712
  openPanelId: expandedGroupIds ? expandedGroupIds.find((id) => id === row.id) || null : void 0
11450
- }, content, /* @__PURE__ */ React70.createElement(Accordion.Panel, {
11713
+ }, content, /* @__PURE__ */ React71.createElement(Accordion.Panel, {
11451
11714
  role: "row",
11452
11715
  panelId: row.id.toString(),
11453
11716
  className: tw("col-span-full bg-grey-0 border-b border-default"),
11454
11717
  "aria-label": `row ${row.id.toString()} details`
11455
- }, /* @__PURE__ */ React70.createElement("div", {
11718
+ }, /* @__PURE__ */ React71.createElement("div", {
11456
11719
  role: "cell"
11457
11720
  }, details)));
11458
11721
  }
11459
- })));
11722
+ }))));
11460
11723
  };
11461
11724
  DataList2.Skeleton = DataListSkeleton;
11725
+ DataList2.Toolbar = DataListToolbar;
11462
11726
 
11463
11727
  // src/molecules/DataTable/DataTable.tsx
11464
- import React73 from "react";
11728
+ import React74 from "react";
11465
11729
  import compact2 from "lodash/compact";
11466
11730
  import isFunction4 from "lodash/isFunction";
11467
11731
 
11468
11732
  // src/molecules/Table/Table.tsx
11469
- import React72 from "react";
11733
+ import React73 from "react";
11470
11734
 
11471
11735
  // src/utils/table/useScrollTarget.ts
11472
- import React71 from "react";
11736
+ import React72 from "react";
11473
11737
  var useScrollTarget = (callback) => {
11474
- const targetRef = React71.useRef(null);
11475
- React71.useLayoutEffect(() => {
11738
+ const targetRef = React72.useRef(null);
11739
+ React72.useLayoutEffect(() => {
11476
11740
  const observer = new IntersectionObserver((entries) => entries[0].isIntersecting && callback && callback(), {
11477
11741
  root: null,
11478
11742
  rootMargin: `0px 0px 200px 0px`
@@ -11490,12 +11754,12 @@ var Table2 = (_a) => {
11490
11754
  var _b = _a, { children, onPrev, onNext } = _b, rest = __objRest(_b, ["children", "onPrev", "onNext"]);
11491
11755
  const bottomRef = useScrollTarget(onNext);
11492
11756
  const topRef = useScrollTarget(onPrev);
11493
- return /* @__PURE__ */ React72.createElement("div", {
11757
+ return /* @__PURE__ */ React73.createElement("div", {
11494
11758
  className: classNames("Aquarium-Table", tw("relative w-full"))
11495
- }, /* @__PURE__ */ React72.createElement("div", {
11759
+ }, /* @__PURE__ */ React73.createElement("div", {
11496
11760
  ref: topRef,
11497
11761
  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", {
11762
+ }), /* @__PURE__ */ React73.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React73.createElement("div", {
11499
11763
  ref: bottomRef,
11500
11764
  className: tw("absolute bottom-0 h-1 w-full left-0 bg-transparent")
11501
11765
  }));
@@ -11556,13 +11820,13 @@ var DataTable = (_a) => {
11556
11820
  );
11557
11821
  const sortedRows = sortRowsBy(rows, sort);
11558
11822
  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", {
11823
+ const PaginationFooter = React74.useCallback(
11824
+ ({ children }) => /* @__PURE__ */ React74.createElement("tfoot", null, /* @__PURE__ */ React74.createElement("tr", null, /* @__PURE__ */ React74.createElement("td", {
11561
11825
  colSpan: amountOfColumns
11562
11826
  }, children))),
11563
11827
  [amountOfColumns]
11564
11828
  );
11565
- return /* @__PURE__ */ React73.createElement(Table2, {
11829
+ return /* @__PURE__ */ React74.createElement(Table2, {
11566
11830
  ariaLabel,
11567
11831
  onNext,
11568
11832
  onPrev,
@@ -11574,40 +11838,40 @@ var DataTable = (_a) => {
11574
11838
  "table-fixed": layout === "fixed"
11575
11839
  })
11576
11840
  )
11577
- }, /* @__PURE__ */ React73.createElement(Table2.Head, {
11841
+ }, /* @__PURE__ */ React74.createElement(Table2.Head, {
11578
11842
  sticky
11579
11843
  }, compact2([
11580
11844
  ...columns.map((column) => {
11581
- const content = column.headerTooltip && !column.headerInvisible ? /* @__PURE__ */ React73.createElement(Tooltip, {
11845
+ const content = column.headerTooltip && !column.headerInvisible ? /* @__PURE__ */ React74.createElement(Tooltip, {
11582
11846
  placement: column.headerTooltip.placement,
11583
11847
  content: column.headerTooltip.content
11584
11848
  }, column.headerName) : !column.headerInvisible && column.headerName;
11585
- const headerContentAndIcon = !column.headerInvisible && column.icon ? /* @__PURE__ */ React73.createElement(Box.Flex, {
11849
+ const headerContentAndIcon = !column.headerInvisible && column.icon ? /* @__PURE__ */ React74.createElement(Box.Flex, {
11586
11850
  flexDirection: "row",
11587
11851
  gap: "3",
11588
11852
  alignItems: "center"
11589
- }, /* @__PURE__ */ React73.createElement(InlineIcon, {
11853
+ }, /* @__PURE__ */ React74.createElement(InlineIcon, {
11590
11854
  icon: column.icon,
11591
11855
  height: "22",
11592
11856
  color: "grey-70",
11593
11857
  "aria-hidden": true
11594
11858
  }), content) : content;
11595
- return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React73.createElement(Table2.SortCell, __spreadValues({
11859
+ return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React74.createElement(Table2.SortCell, __spreadValues({
11596
11860
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
11597
11861
  onClick: () => updateSort(column),
11598
11862
  style: { width: column.width },
11599
11863
  "aria-label": column.headerInvisible ? column.headerName : void 0
11600
- }, cellProps(column)), headerContentAndIcon) : /* @__PURE__ */ React73.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
11864
+ }, cellProps(column)), headerContentAndIcon) : /* @__PURE__ */ React74.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
11601
11865
  style: { width: column.width },
11602
11866
  "aria-label": column.headerInvisible ? column.headerName : void 0
11603
11867
  }), headerContentAndIcon);
11604
11868
  }),
11605
- menu ? /* @__PURE__ */ React73.createElement(Table2.Cell, {
11869
+ menu ? /* @__PURE__ */ React74.createElement(Table2.Cell, {
11606
11870
  key: "__contextMenu",
11607
11871
  align: "right",
11608
11872
  "aria-label": menuAriaLabel
11609
11873
  }, menuHeaderName) : null
11610
- ])), /* @__PURE__ */ React73.createElement(List, __spreadProps(__spreadValues({
11874
+ ])), /* @__PURE__ */ React74.createElement(List, __spreadProps(__spreadValues({
11611
11875
  container: Table2.Body,
11612
11876
  paginationContainer: PaginationFooter
11613
11877
  }, rest), {
@@ -11615,12 +11879,12 @@ var DataTable = (_a) => {
11615
11879
  renderItem: (row, index) => {
11616
11880
  var _a3;
11617
11881
  const isRowDisabled = (_a3 = disabled == null ? void 0 : disabled(row, index, sortedRows)) != null ? _a3 : false;
11618
- return /* @__PURE__ */ React73.createElement(Table2.Row, {
11882
+ return /* @__PURE__ */ React74.createElement(Table2.Row, {
11619
11883
  key: row.id,
11620
11884
  disabled: isRowDisabled
11621
- }, /* @__PURE__ */ React73.createElement(List, {
11885
+ }, /* @__PURE__ */ React74.createElement(List, {
11622
11886
  items: columns,
11623
- renderItem: (column) => /* @__PURE__ */ React73.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), renderCell(column, row, index, sortedRows))
11887
+ renderItem: (column) => /* @__PURE__ */ React74.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), renderCell(column, row, index, sortedRows))
11624
11888
  }), renderRowMenu(row, index, { menu, menuAriaLabel, onAction, onMenuOpenChange }));
11625
11889
  }
11626
11890
  })));
@@ -11633,12 +11897,13 @@ var renderRowMenu = (row, index, {
11633
11897
  }) => {
11634
11898
  if (menu) {
11635
11899
  const menuContent = isFunction4(menu) ? menu(row, index) : menu;
11636
- return /* @__PURE__ */ React73.createElement(Table2.Cell, {
11900
+ return /* @__PURE__ */ React74.createElement(Table2.Cell, {
11637
11901
  align: "right"
11638
- }, menuContent && /* @__PURE__ */ React73.createElement(DropdownMenu2, {
11902
+ }, menuContent && /* @__PURE__ */ React74.createElement(DropdownMenu2, {
11903
+ placement: defaultContextualMenuPlacement,
11639
11904
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
11640
11905
  onOpenChange: onMenuOpenChange
11641
- }, /* @__PURE__ */ React73.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React73.createElement(Button.Icon, {
11906
+ }, /* @__PURE__ */ React74.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React74.createElement(Button.Icon, {
11642
11907
  "aria-label": menuAriaLabel,
11643
11908
  icon: import_more3.default
11644
11909
  })), menuContent));
@@ -11651,14 +11916,14 @@ var renderCell = (column, row, index, rows) => {
11651
11916
  if (column.type === "status") {
11652
11917
  const status = column.status(row, index, rows);
11653
11918
  if (status) {
11654
- cellContent = /* @__PURE__ */ React73.createElement(StatusChip, __spreadValues({
11919
+ cellContent = /* @__PURE__ */ React74.createElement(StatusChip, __spreadValues({
11655
11920
  dense: true
11656
11921
  }, status));
11657
11922
  }
11658
11923
  } else if (column.type === "action") {
11659
11924
  const action = renameProperty("text", "children", column.action(row, index, rows));
11660
11925
  if (action) {
11661
- cellContent = /* @__PURE__ */ React73.createElement(Button.Secondary, __spreadValues({
11926
+ cellContent = /* @__PURE__ */ React74.createElement(Button.Secondary, __spreadValues({
11662
11927
  dense: true
11663
11928
  }, action));
11664
11929
  }
@@ -11667,19 +11932,19 @@ var renderCell = (column, row, index, rows) => {
11667
11932
  } else if (column.type === "item") {
11668
11933
  const item = column.item(row, index, rows);
11669
11934
  if (item) {
11670
- cellContent = /* @__PURE__ */ React73.createElement(Item2, __spreadValues({}, item));
11935
+ cellContent = /* @__PURE__ */ React74.createElement(Item2, __spreadValues({}, item));
11671
11936
  }
11672
11937
  } else if (column.formatter) {
11673
11938
  cellContent = column.formatter(row[column.field], row, index, rows);
11674
11939
  } else {
11675
11940
  cellContent = row[column.field];
11676
11941
  }
11677
- return column.tooltip ? /* @__PURE__ */ React73.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : cellContent;
11942
+ return column.tooltip ? /* @__PURE__ */ React74.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : cellContent;
11678
11943
  };
11679
11944
  DataTable.Skeleton = DataListSkeleton;
11680
11945
 
11681
11946
  // src/molecules/Dialog/Dialog.tsx
11682
- import React75 from "react";
11947
+ import React76 from "react";
11683
11948
  import { useDialog } from "@react-aria/dialog";
11684
11949
  import { Overlay as Overlay2, useModalOverlay } from "@react-aria/overlays";
11685
11950
  import { useId as useId9 } from "@react-aria/utils";
@@ -11706,7 +11971,7 @@ var DIALOG_ICONS_AND_COLORS = {
11706
11971
  };
11707
11972
 
11708
11973
  // src/atoms/Modal/Modal.tsx
11709
- import React74 from "react";
11974
+ import React75 from "react";
11710
11975
  var Modal = (_a) => {
11711
11976
  var _b = _a, {
11712
11977
  children,
@@ -11719,7 +11984,7 @@ var Modal = (_a) => {
11719
11984
  "className",
11720
11985
  "open"
11721
11986
  ]);
11722
- return open ? /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
11987
+ return open ? /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11723
11988
  className: classNames(
11724
11989
  tw("inset-0 overflow-y-auto z-modal fixed"),
11725
11990
  {
@@ -11731,11 +11996,11 @@ var Modal = (_a) => {
11731
11996
  };
11732
11997
  Modal.BackDrop = (_a) => {
11733
11998
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11734
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
11999
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11735
12000
  className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-primary-100 opacity-60"), className)
11736
12001
  }));
11737
12002
  };
11738
- Modal.Dialog = React74.forwardRef(
12003
+ Modal.Dialog = React75.forwardRef(
11739
12004
  (_a, ref) => {
11740
12005
  var _b = _a, { kind = "dialog", children, className, size = "sm" } = _b, rest = __objRest(_b, ["kind", "children", "className", "size"]);
11741
12006
  const commonClasses = tw("bg-white max-h-full flex flex-col");
@@ -11749,7 +12014,7 @@ Modal.Dialog = React74.forwardRef(
11749
12014
  "w-[560px]": size === "md",
11750
12015
  "w-[1080px]": size === "full"
11751
12016
  });
11752
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({
12017
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({
11753
12018
  ref,
11754
12019
  "aria-modal": "true"
11755
12020
  }, rest), {
@@ -11759,31 +12024,31 @@ Modal.Dialog = React74.forwardRef(
11759
12024
  );
11760
12025
  Modal.Header = (_a) => {
11761
12026
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11762
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
12027
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11763
12028
  className: classNames(tw("pl-7 pr-[64px] py-6 gap-3 flex items-center"), className)
11764
12029
  }), children);
11765
12030
  };
11766
12031
  Modal.HeaderImage = (_a) => {
11767
12032
  var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
11768
12033
  const common = tw("h-[120px] min-h-[120px] w-full ");
11769
- return backgroundImage ? /* @__PURE__ */ React74.createElement("img", __spreadProps(__spreadValues({
12034
+ return backgroundImage ? /* @__PURE__ */ React75.createElement("img", __spreadProps(__spreadValues({
11770
12035
  "aria-hidden": true,
11771
12036
  src: backgroundImage != null ? backgroundImage : void 0
11772
12037
  }, rest), {
11773
12038
  className: classNames(common, tw("object-cover"), className)
11774
- })) : /* @__PURE__ */ React74.createElement("div", {
12039
+ })) : /* @__PURE__ */ React75.createElement("div", {
11775
12040
  className: classNames(common, tw("bg-grey-5"), className)
11776
12041
  });
11777
12042
  };
11778
12043
  Modal.CloseButtonContainer = (_a) => {
11779
12044
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11780
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
12045
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11781
12046
  className: classNames(tw("absolute top-[24px] right-[28px]"), className)
11782
12047
  }));
11783
12048
  };
11784
12049
  Modal.Title = (_a) => {
11785
12050
  var _b = _a, { kind = "dialog", children, className } = _b, rest = __objRest(_b, ["kind", "children", "className"]);
11786
- return /* @__PURE__ */ React74.createElement(Typography, __spreadValues({
12051
+ return /* @__PURE__ */ React75.createElement(Typography, __spreadValues({
11787
12052
  htmlTag: "h2",
11788
12053
  variant: "subheading",
11789
12054
  color: "grey-90",
@@ -11797,52 +12062,57 @@ Modal.Title = (_a) => {
11797
12062
  };
11798
12063
  Modal.Subtitle = (_a) => {
11799
12064
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
11800
- return /* @__PURE__ */ React74.createElement(Typography, __spreadValues({
12065
+ return /* @__PURE__ */ React75.createElement(Typography, __spreadValues({
11801
12066
  variant: "small",
11802
12067
  color: "grey-60"
11803
12068
  }, rest), children);
11804
12069
  };
11805
12070
  Modal.TitleContainer = (_a) => {
11806
12071
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11807
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
12072
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11808
12073
  className: classNames(tw("flex flex-col grow"), className)
11809
12074
  }), children);
11810
12075
  };
11811
12076
  Modal.Body = (_a) => {
11812
12077
  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), {
12078
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11814
12079
  className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
11815
12080
  style: __spreadValues({ maxHeight }, style)
11816
12081
  }), children);
11817
12082
  };
11818
12083
  Modal.Footer = (_a) => {
11819
12084
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11820
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
12085
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11821
12086
  className: classNames(tw("px-7 py-6"), className)
11822
12087
  }), children);
11823
12088
  };
11824
12089
  Modal.Actions = (_a) => {
11825
12090
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11826
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
12091
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
11827
12092
  className: classNames(tw("flex gap-4 justify-end"), className)
11828
12093
  }), children);
11829
12094
  };
11830
12095
 
11831
12096
  // src/molecules/Dialog/Dialog.tsx
11832
12097
  var Dialog = (props) => {
11833
- const ref = React75.useRef(null);
11834
- const state = useOverlayTriggerState2({ isOpen: props.open });
11835
- const { modalProps, underlayProps } = useModalOverlay({}, state, ref);
12098
+ const ref = React76.useRef(null);
12099
+ const { open, onClose } = props;
12100
+ const state = useOverlayTriggerState2({ isOpen: open, onOpenChange: (isOpen) => !isOpen && (onClose == null ? void 0 : onClose()) });
12101
+ const { modalProps, underlayProps } = useModalOverlay(
12102
+ { isDismissable: false, isKeyboardDismissDisabled: false },
12103
+ state,
12104
+ ref
12105
+ );
11836
12106
  if (!state.isOpen) {
11837
12107
  return null;
11838
12108
  }
11839
- return /* @__PURE__ */ React75.createElement(Overlay2, null, /* @__PURE__ */ React75.createElement(Modal, {
12109
+ return /* @__PURE__ */ React76.createElement(Overlay2, null, /* @__PURE__ */ React76.createElement(Modal, {
11840
12110
  className: "Aquarium-Dialog",
11841
12111
  open: true
11842
- }, /* @__PURE__ */ React75.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React75.createElement(Modal.Dialog, __spreadValues({
12112
+ }, /* @__PURE__ */ React76.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React76.createElement(Modal.Dialog, __spreadValues({
11843
12113
  ref,
11844
12114
  size: "sm"
11845
- }, modalProps), /* @__PURE__ */ React75.createElement(DialogWrapper, __spreadValues({}, props)))));
12115
+ }, modalProps), /* @__PURE__ */ React76.createElement(DialogWrapper, __spreadValues({}, props)))));
11846
12116
  };
11847
12117
  var DialogWrapper = ({
11848
12118
  title,
@@ -11851,59 +12121,63 @@ var DialogWrapper = ({
11851
12121
  primaryAction,
11852
12122
  secondaryAction
11853
12123
  }) => {
11854
- const ref = React75.useRef(null);
12124
+ const ref = React76.useRef(null);
11855
12125
  const labelledBy = useId9();
11856
12126
  const describedBy = useId9();
11857
12127
  const { dialogProps } = useDialog(
11858
- { "role": "alertdialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
12128
+ {
12129
+ "role": "alertdialog",
12130
+ "aria-labelledby": labelledBy,
12131
+ "aria-describedby": describedBy
12132
+ },
11859
12133
  ref
11860
12134
  );
11861
- return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({
12135
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({
11862
12136
  ref
11863
12137
  }, dialogProps), {
11864
12138
  className: tw("outline-none")
11865
- }), /* @__PURE__ */ React75.createElement(Modal.Header, {
12139
+ }), /* @__PURE__ */ React76.createElement(Modal.Header, {
11866
12140
  className: tw("icon-stroke-2")
11867
- }, /* @__PURE__ */ React75.createElement(Icon, {
12141
+ }, /* @__PURE__ */ React76.createElement(Icon, {
11868
12142
  icon: DIALOG_ICONS_AND_COLORS[type].icon,
11869
12143
  color: DIALOG_ICONS_AND_COLORS[type].color,
11870
12144
  fontSize: 20
11871
- }), /* @__PURE__ */ React75.createElement(Modal.Title, {
12145
+ }), /* @__PURE__ */ React76.createElement(Modal.Title, {
11872
12146
  id: labelledBy,
11873
12147
  variant: "large",
11874
12148
  color: DIALOG_ICONS_AND_COLORS[type].color
11875
- }, title)), /* @__PURE__ */ React75.createElement(Modal.Body, {
12149
+ }, title)), /* @__PURE__ */ React76.createElement(Modal.Body, {
11876
12150
  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({
12151
+ }, /* @__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
12152
  key: secondaryAction.text
11879
- }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React75.createElement(Button.Secondary, __spreadValues({
12153
+ }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React76.createElement(Button.Secondary, __spreadValues({
11880
12154
  key: primaryAction.text
11881
12155
  }, omit8(primaryAction, "text")), primaryAction.text))));
11882
12156
  };
11883
12157
 
11884
12158
  // src/molecules/Drawer/Drawer.tsx
11885
- import React77, { useEffect as useEffect10 } from "react";
12159
+ import React78, { useEffect as useEffect10 } from "react";
11886
12160
  import { useOverlayTriggerState as useOverlayTriggerState3 } from "react-stately";
11887
12161
  import { useDialog as useDialog2 } from "@react-aria/dialog";
11888
12162
  import { Overlay as Overlay3, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
11889
12163
  import { useId as useId10 } from "@react-aria/utils";
11890
12164
  import { animated as animated4, useSpring as useSpring3 } from "@react-spring/web";
11891
- import castArray from "lodash/castArray";
12165
+ import castArray3 from "lodash/castArray";
11892
12166
  import omit9 from "lodash/omit";
11893
12167
 
11894
12168
  // src/molecules/Tabs/Tabs.tsx
11895
- import React76, { useEffect as useEffect9, useLayoutEffect as useLayoutEffect2, useRef as useRef7, useState as useState10 } from "react";
12169
+ import React77, { useEffect as useEffect9, useLayoutEffect as useLayoutEffect2, useRef as useRef7, useState as useState10 } from "react";
11896
12170
  import isNumber5 from "lodash/isNumber";
11897
12171
  import kebabCase from "lodash/kebabCase";
11898
12172
  var import_chevronLeft4 = __toESM(require_chevronLeft());
11899
12173
  var import_chevronRight4 = __toESM(require_chevronRight());
11900
12174
  var import_warningSign4 = __toESM(require_warningSign());
11901
12175
  var isTabComponent = (c) => {
11902
- return React76.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
12176
+ return React77.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
11903
12177
  };
11904
- var Tab = React76.forwardRef(
12178
+ var Tab = React77.forwardRef(
11905
12179
  ({ className, id, title, children }, ref) => {
11906
- return /* @__PURE__ */ React76.createElement("div", {
12180
+ return /* @__PURE__ */ React77.createElement("div", {
11907
12181
  ref,
11908
12182
  id: `${id != null ? id : kebabCase(title)}-panel`,
11909
12183
  className,
@@ -11915,14 +12189,14 @@ var Tab = React76.forwardRef(
11915
12189
  );
11916
12190
  var TabContainer = (_a) => {
11917
12191
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
11918
- return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
12192
+ return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({}, rest), {
11919
12193
  className: classNames("py-6 z-0", className)
11920
12194
  }), children);
11921
12195
  };
11922
12196
  var ModalTab = Tab;
11923
12197
  var ModalTabContainer = TabContainer;
11924
12198
  var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
11925
- const Tab2 = React76.forwardRef(
12199
+ const Tab2 = React77.forwardRef(
11926
12200
  (_a, ref) => {
11927
12201
  var _b = _a, {
11928
12202
  id,
@@ -11954,17 +12228,17 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
11954
12228
  const _id = id != null ? id : kebabCase(title);
11955
12229
  let statusIcon = void 0;
11956
12230
  if (status === "warning") {
11957
- statusIcon = /* @__PURE__ */ React76.createElement(InlineIcon, {
12231
+ statusIcon = /* @__PURE__ */ React77.createElement(InlineIcon, {
11958
12232
  icon: import_warningSign4.default,
11959
12233
  color: selected ? void 0 : "warning-80"
11960
12234
  });
11961
12235
  } else if (status === "error") {
11962
- statusIcon = /* @__PURE__ */ React76.createElement(InlineIcon, {
12236
+ statusIcon = /* @__PURE__ */ React77.createElement(InlineIcon, {
11963
12237
  icon: import_warningSign4.default,
11964
12238
  color: selected ? void 0 : "error-50"
11965
12239
  });
11966
12240
  }
11967
- const tab = /* @__PURE__ */ React76.createElement(Component, __spreadValues({
12241
+ const tab = /* @__PURE__ */ React77.createElement(Component, __spreadValues({
11968
12242
  ref,
11969
12243
  id: `${_id}-tab`,
11970
12244
  onClick: () => !disabled && onSelected(value != null ? value : index),
@@ -11981,29 +12255,29 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
11981
12255
  "aria-selected": selected,
11982
12256
  "aria-controls": `${_id}-panel`,
11983
12257
  tabIndex: disabled ? void 0 : 0
11984
- }, rest), /* @__PURE__ */ React76.createElement(Typography2, {
12258
+ }, rest), /* @__PURE__ */ React77.createElement(Typography2, {
11985
12259
  htmlTag: "div",
11986
12260
  variant: "small-strong",
11987
12261
  color: selected ? "primary-80" : disabled ? "grey-20" : "current",
11988
12262
  className: tw("inline-flex items-center gap-3")
11989
- }, showNotification ? /* @__PURE__ */ React76.createElement(Badge.Notification, {
12263
+ }, showNotification ? /* @__PURE__ */ React77.createElement(Badge.Notification, {
11990
12264
  right: "-4px",
11991
12265
  top: "3px"
11992
- }, /* @__PURE__ */ React76.createElement("span", {
12266
+ }, /* @__PURE__ */ React77.createElement("span", {
11993
12267
  className: tw("whitespace-nowrap")
11994
- }, title)) : /* @__PURE__ */ React76.createElement("span", {
12268
+ }, title)) : /* @__PURE__ */ React77.createElement("span", {
11995
12269
  className: tw("whitespace-nowrap")
11996
- }, title), isNumber5(badge) && /* @__PURE__ */ React76.createElement(Typography2, {
12270
+ }, title), isNumber5(badge) && /* @__PURE__ */ React77.createElement(Typography2, {
11997
12271
  htmlTag: "span",
11998
12272
  variant: "small",
11999
12273
  color: selected ? "primary-80" : "grey-5",
12000
12274
  className: "leading-none"
12001
- }, /* @__PURE__ */ React76.createElement(TabBadge, {
12275
+ }, /* @__PURE__ */ React77.createElement(TabBadge, {
12002
12276
  kind: "filled",
12003
12277
  value: badge,
12004
12278
  textClassname: classNames({ "text-white": selected, "text-grey-50": !selected })
12005
12279
  })), statusIcon));
12006
- return tooltip ? /* @__PURE__ */ React76.createElement(Tooltip, {
12280
+ return tooltip ? /* @__PURE__ */ React77.createElement(Tooltip, {
12007
12281
  content: tooltip
12008
12282
  }, tab) : tab;
12009
12283
  }
@@ -12017,7 +12291,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12017
12291
  const Tabs2 = (props) => {
12018
12292
  var _a, _b;
12019
12293
  const { className, value, defaultValue, onChange, children } = props;
12020
- const childArr = React76.Children.toArray(children);
12294
+ const childArr = React77.Children.toArray(children);
12021
12295
  const firstTab = childArr[0];
12022
12296
  const firstTabValue = isTabComponent(firstTab) ? firstTab.props.value : -1;
12023
12297
  const [selected, setSelected] = useState10((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
@@ -12030,7 +12304,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12030
12304
  var _a2, _b2;
12031
12305
  const container = containerRef.current;
12032
12306
  const tabs = tabsRef.current;
12033
- const values = React76.Children.map(
12307
+ const values = React77.Children.map(
12034
12308
  children,
12035
12309
  (tab, i) => {
12036
12310
  var _a3;
@@ -12071,7 +12345,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12071
12345
  updateCarets();
12072
12346
  setSelected(value);
12073
12347
  revealSelectedTab({ smooth: value !== selected });
12074
- }, [value, React76.Children.count(children)]);
12348
+ }, [value, React77.Children.count(children)]);
12075
12349
  useLayoutEffect2(() => {
12076
12350
  var _a2;
12077
12351
  updateCarets();
@@ -12135,27 +12409,27 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12135
12409
  const handleSelected = (key) => {
12136
12410
  (onChange != null ? onChange : setSelected)(key);
12137
12411
  };
12138
- React76.Children.forEach(children, (c) => {
12412
+ React77.Children.forEach(children, (c) => {
12139
12413
  if (c && !isTabComponent(c)) {
12140
12414
  throw new Error("<Tabs> can only have <Tabs.Tab> components as children");
12141
12415
  }
12142
12416
  });
12143
- return /* @__PURE__ */ React76.createElement("div", {
12417
+ return /* @__PURE__ */ React77.createElement("div", {
12144
12418
  ref: parentRef,
12145
12419
  className: classNames("Aquarium-Tabs", tw("h-full"), className)
12146
- }, /* @__PURE__ */ React76.createElement("div", {
12420
+ }, /* @__PURE__ */ React77.createElement("div", {
12147
12421
  className: tw("relative flex items-center border-b-2 border-default")
12148
- }, /* @__PURE__ */ React76.createElement("div", {
12422
+ }, /* @__PURE__ */ React77.createElement("div", {
12149
12423
  ref: containerRef,
12150
12424
  className: tw("overflow-y-auto scrollbar-hide mb-[-2px] h-auto")
12151
- }, /* @__PURE__ */ React76.createElement("div", {
12425
+ }, /* @__PURE__ */ React77.createElement("div", {
12152
12426
  ref: tabsRef,
12153
12427
  role: "tablist",
12154
12428
  "aria-label": "tabs",
12155
12429
  className: tw("inline-flex items-center cursor-pointer font-normal h-full")
12156
- }, React76.Children.map(
12430
+ }, React77.Children.map(
12157
12431
  children,
12158
- (tab, index) => tab ? /* @__PURE__ */ React76.createElement(TabItemComponent, __spreadProps(__spreadValues({
12432
+ (tab, index) => tab ? /* @__PURE__ */ React77.createElement(TabItemComponent, __spreadProps(__spreadValues({
12159
12433
  key: tab.props.value
12160
12434
  }, tab.props), {
12161
12435
  index,
@@ -12163,20 +12437,20 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12163
12437
  onKeyDown: handleKeyDown,
12164
12438
  onSelected: handleSelected
12165
12439
  })) : void 0
12166
- ))), leftCaret && /* @__PURE__ */ React76.createElement("div", {
12440
+ ))), leftCaret && /* @__PURE__ */ React77.createElement("div", {
12167
12441
  className: tw("absolute left-0 bg-gradient-to-r from-white via-white z-20 py-3 pr-4")
12168
- }, /* @__PURE__ */ React76.createElement("div", {
12442
+ }, /* @__PURE__ */ React77.createElement("div", {
12169
12443
  onClick: () => handleScrollToNext("left"),
12170
12444
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
12171
- }, /* @__PURE__ */ React76.createElement(InlineIcon, {
12445
+ }, /* @__PURE__ */ React77.createElement(InlineIcon, {
12172
12446
  icon: import_chevronLeft4.default
12173
- }))), rightCaret && /* @__PURE__ */ React76.createElement("div", {
12447
+ }))), rightCaret && /* @__PURE__ */ React77.createElement("div", {
12174
12448
  onClick: () => handleScrollToNext("right"),
12175
12449
  className: tw("absolute right-0 bg-gradient-to-l from-white via-white z-20 py-3 pl-4")
12176
- }, /* @__PURE__ */ React76.createElement("div", {
12450
+ }, /* @__PURE__ */ React77.createElement("div", {
12177
12451
  onClick: () => handleScrollToNext("right"),
12178
12452
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
12179
- }, /* @__PURE__ */ React76.createElement(InlineIcon, {
12453
+ }, /* @__PURE__ */ React77.createElement(InlineIcon, {
12180
12454
  icon: import_chevronRight4.default
12181
12455
  })))), renderChildren(children, selected, props));
12182
12456
  };
@@ -12184,7 +12458,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12184
12458
  Tabs2.Tab = TabComponent;
12185
12459
  return Tabs2;
12186
12460
  };
12187
- var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React76.createElement(TabContainer, null, children.find(
12461
+ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React77.createElement(TabContainer, null, children.find(
12188
12462
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
12189
12463
  )));
12190
12464
 
@@ -12201,8 +12475,8 @@ var WIDTHS = {
12201
12475
  var Drawer = (_a) => {
12202
12476
  var _b = _a, { open, closeOnEsc = true } = _b, props = __objRest(_b, ["open", "closeOnEsc"]);
12203
12477
  const { onClose, size = "sm", portalContainer } = props;
12204
- const [hidden, setHidden] = React77.useState(!open);
12205
- const ref = React77.useRef(null);
12478
+ const [hidden, setHidden] = React78.useState(!open);
12479
+ const ref = React78.useRef(null);
12206
12480
  const state = useOverlayTriggerState3({ isOpen: !hidden, onOpenChange: (isOpen) => !isOpen && onClose() });
12207
12481
  useEffect10(() => {
12208
12482
  if (open && hidden) {
@@ -12231,21 +12505,21 @@ var Drawer = (_a) => {
12231
12505
  if (!state.isOpen) {
12232
12506
  return null;
12233
12507
  }
12234
- return /* @__PURE__ */ React77.createElement(Overlay3, {
12508
+ return /* @__PURE__ */ React78.createElement(Overlay3, {
12235
12509
  portalContainer
12236
- }, /* @__PURE__ */ React77.createElement(Modal, {
12510
+ }, /* @__PURE__ */ React78.createElement(Modal, {
12237
12511
  kind: "drawer",
12238
12512
  className: "Aquarium-Drawer overflow-x-hidden",
12239
12513
  open: true
12240
- }, /* @__PURE__ */ React77.createElement(AnimatedBackDrop, __spreadValues({
12514
+ }, /* @__PURE__ */ React78.createElement(AnimatedBackDrop, __spreadValues({
12241
12515
  style: { opacity }
12242
- }, underlayProps)), /* @__PURE__ */ React77.createElement(DrawerWrapper, __spreadProps(__spreadValues(__spreadValues({
12516
+ }, underlayProps)), /* @__PURE__ */ React78.createElement(DrawerWrapper, __spreadProps(__spreadValues(__spreadValues({
12243
12517
  ref
12244
12518
  }, props), modalProps), {
12245
12519
  spring: { right }
12246
12520
  }))));
12247
12521
  };
12248
- var DrawerWrapper = React77.forwardRef(
12522
+ var DrawerWrapper = React78.forwardRef(
12249
12523
  (_a, ref) => {
12250
12524
  var _b = _a, {
12251
12525
  title,
@@ -12282,62 +12556,62 @@ var DrawerWrapper = React77.forwardRef(
12282
12556
  ref
12283
12557
  );
12284
12558
  const dialogSize = size === "lg" ? "full" : size;
12285
- const childElements = React77.Children.toArray(children).filter(React77.isValidElement);
12559
+ const childElements = React78.Children.toArray(children).filter(React78.isValidElement);
12286
12560
  const onlyChild = childElements.length === 1 ? childElements[0] : null;
12287
12561
  const hasTabs = isComponentType(onlyChild, Tabs);
12288
- return /* @__PURE__ */ React77.createElement(AnimatedDialog, __spreadProps(__spreadValues(__spreadValues({
12562
+ return /* @__PURE__ */ React78.createElement(AnimatedDialog, __spreadProps(__spreadValues(__spreadValues({
12289
12563
  ref,
12290
12564
  kind: "drawer",
12291
12565
  "aria-modal": "true",
12292
12566
  size: dialogSize
12293
12567
  }, props), dialogProps), {
12294
12568
  style: { position: "fixed", right: spring.right }
12295
- }), /* @__PURE__ */ React77.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React77.createElement(Button.Icon, {
12569
+ }), /* @__PURE__ */ React78.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React78.createElement(Button.Icon, {
12296
12570
  "aria-label": "Close",
12297
12571
  icon: import_cross6.default,
12298
12572
  onClick: onClose
12299
- })), /* @__PURE__ */ React77.createElement(Modal.Header, {
12573
+ })), /* @__PURE__ */ React78.createElement(Modal.Header, {
12300
12574
  className: tw({ "pb-3": hasTabs })
12301
- }, /* @__PURE__ */ React77.createElement(Modal.Title, {
12575
+ }, /* @__PURE__ */ React78.createElement(Modal.Title, {
12302
12576
  id: labelledBy,
12303
12577
  kind: "drawer"
12304
- }, title)), hasTabs ? /* @__PURE__ */ React77.createElement(DrawerTabs, __spreadProps(__spreadValues({}, onlyChild.props), {
12578
+ }, title)), hasTabs ? /* @__PURE__ */ React78.createElement(DrawerTabs, __spreadProps(__spreadValues({}, onlyChild.props), {
12305
12579
  className: tw("[&>div:first-child]:px-5 grow flex flex-col overflow-y-auto")
12306
- })) : /* @__PURE__ */ React77.createElement(Modal.Body, {
12580
+ })) : /* @__PURE__ */ React78.createElement(Modal.Body, {
12307
12581
  id: describedBy,
12308
12582
  tabIndex: 0,
12309
12583
  noFooter: !(secondaryActions || primaryAction)
12310
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React77.createElement(Modal.Footer, null, /* @__PURE__ */ React77.createElement(Modal.Actions, {
12584
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React78.createElement(Modal.Footer, null, /* @__PURE__ */ React78.createElement(Modal.Actions, {
12311
12585
  className: size === "sm" ? tw("flex-col") : void 0
12312
- }, size !== "sm" && menu && /* @__PURE__ */ React77.createElement(Box.Flex, {
12586
+ }, size !== "sm" && menu && /* @__PURE__ */ React78.createElement(Box.Flex, {
12313
12587
  alignItems: "center"
12314
- }, /* @__PURE__ */ React77.createElement(DropdownMenu2, {
12588
+ }, /* @__PURE__ */ React78.createElement(DropdownMenu2, {
12315
12589
  onAction: (action) => onAction == null ? void 0 : onAction(action),
12316
12590
  onOpenChange: onMenuOpenChange
12317
- }, /* @__PURE__ */ React77.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React77.createElement(Button.Icon, {
12591
+ }, /* @__PURE__ */ React78.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React78.createElement(Button.Icon, {
12318
12592
  "aria-label": (_a2 = menuAriaLabel != null ? menuAriaLabel : menuLabel) != null ? _a2 : "Context menu",
12319
12593
  icon: import_more4.default
12320
- })), menu)), secondaryActions && castArray(secondaryActions).filter(Boolean).map((_b2) => {
12594
+ })), menu)), secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_b2) => {
12321
12595
  var _c = _b2, { text } = _c, action = __objRest(_c, ["text"]);
12322
- return /* @__PURE__ */ React77.createElement(Button.Secondary, __spreadValues({
12596
+ return /* @__PURE__ */ React78.createElement(Button.Secondary, __spreadValues({
12323
12597
  key: text
12324
12598
  }, action), text);
12325
- }), primaryAction && /* @__PURE__ */ React77.createElement(Button.Primary, __spreadValues({
12599
+ }), primaryAction && /* @__PURE__ */ React78.createElement(Button.Primary, __spreadValues({
12326
12600
  key: primaryAction.text
12327
12601
  }, omit9(primaryAction, "text")), primaryAction.text))));
12328
12602
  }
12329
12603
  );
12330
- var DrawerTabs = createTabsComponent(ModalTab, TabItem, "DrawerTabs", (children, selected) => /* @__PURE__ */ React77.createElement(Modal.Body, {
12604
+ var DrawerTabs = createTabsComponent(ModalTab, TabItem, "DrawerTabs", (children, selected) => /* @__PURE__ */ React78.createElement(Modal.Body, {
12331
12605
  className: tw("h-full")
12332
- }, /* @__PURE__ */ React77.createElement(ModalTabContainer, null, children.find(
12606
+ }, /* @__PURE__ */ React78.createElement(ModalTabContainer, null, children.find(
12333
12607
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
12334
12608
  ))));
12335
12609
 
12336
12610
  // src/molecules/Dropdown/Dropdown.tsx
12337
- import React80 from "react";
12611
+ import React81 from "react";
12338
12612
 
12339
12613
  // src/molecules/Popover/Popover.tsx
12340
- import React79, { useRef as useRef8 } from "react";
12614
+ import React80, { useRef as useRef8 } from "react";
12341
12615
  import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
12342
12616
  import { useOverlayTrigger } from "@react-aria/overlays";
12343
12617
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
@@ -12346,12 +12620,12 @@ import classNames8 from "classnames";
12346
12620
  import omit10 from "lodash/omit";
12347
12621
 
12348
12622
  // src/molecules/Popover/Dialog.tsx
12349
- import React78 from "react";
12623
+ import React79 from "react";
12350
12624
  import { useDialog as useDialog3 } from "@react-aria/dialog";
12351
12625
  var Dialog2 = ({ children }) => {
12352
- const ref = React78.useRef(null);
12626
+ const ref = React79.useRef(null);
12353
12627
  const { dialogProps } = useDialog3({}, ref);
12354
- return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({
12628
+ return /* @__PURE__ */ React79.createElement("div", __spreadProps(__spreadValues({
12355
12629
  ref
12356
12630
  }, dialogProps), {
12357
12631
  className: tw("outline-none")
@@ -12359,10 +12633,10 @@ var Dialog2 = ({ children }) => {
12359
12633
  };
12360
12634
 
12361
12635
  // src/molecules/Popover/PopoverContext.tsx
12362
- import { createContext as createContext3, useContext as useContext6 } from "react";
12363
- var PopoverContext = createContext3(null);
12636
+ import { createContext as createContext4, useContext as useContext7 } from "react";
12637
+ var PopoverContext = createContext4(null);
12364
12638
  var usePopoverContext = () => {
12365
- const ctx = useContext6(PopoverContext);
12639
+ const ctx = useContext7(PopoverContext);
12366
12640
  if (ctx === null) {
12367
12641
  throw new Error("PopoverContext was used outside of provider.");
12368
12642
  }
@@ -12385,22 +12659,22 @@ var Popover2 = (props) => {
12385
12659
  const triggerRef = useRef8(null);
12386
12660
  const state = useOverlayTriggerState4(props);
12387
12661
  const { triggerProps, overlayProps } = useOverlayTrigger({ type: type != null ? type : "dialog" }, state, triggerRef);
12388
- return /* @__PURE__ */ React79.createElement(PopoverContext.Provider, {
12662
+ return /* @__PURE__ */ React80.createElement(PopoverContext.Provider, {
12389
12663
  value: {
12390
12664
  state
12391
12665
  }
12392
- }, React79.Children.map(props.children, (child) => {
12666
+ }, React80.Children.map(props.children, (child) => {
12393
12667
  if (isComponentType(child, Popover2.Trigger)) {
12394
- return /* @__PURE__ */ React79.createElement(PressResponder2, __spreadValues({
12668
+ return /* @__PURE__ */ React80.createElement(PressResponder2, __spreadValues({
12395
12669
  ref: triggerRef
12396
- }, omit10(triggerProps, "aria-expanded")), /* @__PURE__ */ React79.createElement(PopoverTriggerWrapper, {
12670
+ }, omit10(triggerProps, "aria-expanded")), /* @__PURE__ */ React80.createElement(PopoverTriggerWrapper, {
12397
12671
  "data-testid": props["data-testid"],
12398
12672
  "aria-controls": id,
12399
12673
  "aria-expanded": triggerProps["aria-expanded"]
12400
12674
  }, child.props.children));
12401
12675
  }
12402
12676
  if (isComponentType(child, Popover2.Panel)) {
12403
- return state.isOpen && /* @__PURE__ */ React79.createElement(PopoverOverlay, __spreadValues({
12677
+ return state.isOpen && /* @__PURE__ */ React80.createElement(PopoverOverlay, __spreadValues({
12404
12678
  triggerRef: targetRef != null ? targetRef : triggerRef,
12405
12679
  state,
12406
12680
  placement,
@@ -12411,7 +12685,7 @@ var Popover2 = (props) => {
12411
12685
  offset,
12412
12686
  crossOffset,
12413
12687
  shouldFlip
12414
- }, overlayProps), containFocus ? /* @__PURE__ */ React79.createElement(Dialog2, null, child.props.children) : child.props.children);
12688
+ }, overlayProps), containFocus ? /* @__PURE__ */ React80.createElement(Dialog2, null, child.props.children) : child.props.children);
12415
12689
  }
12416
12690
  throw new Error("Invalid children element type");
12417
12691
  }));
@@ -12430,7 +12704,7 @@ var asPopoverButton = (Component, displayName) => {
12430
12704
  state.close();
12431
12705
  onClick == null ? void 0 : onClick(e);
12432
12706
  };
12433
- return /* @__PURE__ */ React79.createElement(Component, __spreadProps(__spreadValues({}, props), {
12707
+ return /* @__PURE__ */ React80.createElement(Component, __spreadProps(__spreadValues({}, props), {
12434
12708
  onClick: handleClick
12435
12709
  }));
12436
12710
  };
@@ -12443,9 +12717,9 @@ var PopoverTriggerWrapper = (_a) => {
12443
12717
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
12444
12718
  var _a2;
12445
12719
  const ref = useRef8(null);
12446
- const trigger = React79.Children.only(children);
12720
+ const trigger = React80.Children.only(children);
12447
12721
  const { pressProps } = usePress2(__spreadProps(__spreadValues({}, rest), { ref }));
12448
- return React79.cloneElement(trigger, __spreadProps(__spreadValues({
12722
+ return React80.cloneElement(trigger, __spreadProps(__spreadValues({
12449
12723
  "ref": ref
12450
12724
  }, mergeProps3(pressProps, trigger.props)), {
12451
12725
  "aria-controls": (_a2 = rest["aria-controls"]) != null ? _a2 : pressProps["aria-controls"]
@@ -12454,10 +12728,10 @@ var PopoverTriggerWrapper = (_a) => {
12454
12728
 
12455
12729
  // src/molecules/Dropdown/Dropdown.tsx
12456
12730
  var Dropdown = ({ children, content, placement = "bottom-left" }) => {
12457
- return /* @__PURE__ */ React80.createElement(Popover2, {
12731
+ return /* @__PURE__ */ React81.createElement(Popover2, {
12458
12732
  type: "menu",
12459
12733
  placement
12460
- }, /* @__PURE__ */ React80.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React80.createElement(Popover2.Panel, {
12734
+ }, /* @__PURE__ */ React81.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React81.createElement(Popover2.Panel, {
12461
12735
  className: "Aquarium-Dropdown"
12462
12736
  }, content));
12463
12737
  };
@@ -12468,26 +12742,26 @@ var DropdownMenu3 = ({
12468
12742
  triggerId,
12469
12743
  setClose = () => void 0
12470
12744
  }) => {
12471
- const menuRef = React80.useRef(null);
12472
- React80.useEffect(() => {
12745
+ const menuRef = React81.useRef(null);
12746
+ React81.useEffect(() => {
12473
12747
  const id = setTimeout(() => {
12474
12748
  var _a, _b, _c;
12475
12749
  return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
12476
12750
  });
12477
12751
  return () => clearTimeout(id);
12478
12752
  }, [menuRef.current]);
12479
- return /* @__PURE__ */ React80.createElement("div", {
12753
+ return /* @__PURE__ */ React81.createElement("div", {
12480
12754
  style: { minWidth: "250px" },
12481
12755
  className: tw("py-3 bg-white")
12482
- }, !!title && /* @__PURE__ */ React80.createElement("div", {
12756
+ }, !!title && /* @__PURE__ */ React81.createElement("div", {
12483
12757
  className: tw("px-4 py-4 text-left text-grey-100 typography-default-strong")
12484
- }, title), /* @__PURE__ */ React80.createElement("ol", {
12758
+ }, title), /* @__PURE__ */ React81.createElement("ol", {
12485
12759
  role: "menu",
12486
12760
  ref: menuRef,
12487
12761
  id: contentId,
12488
12762
  "aria-labelledby": triggerId
12489
- }, React80.Children.map(children, (child) => {
12490
- return React80.cloneElement(child, { setClose });
12763
+ }, React81.Children.map(children, (child) => {
12764
+ return React81.cloneElement(child, { setClose });
12491
12765
  })));
12492
12766
  };
12493
12767
  var DropdownItem = (_a) => {
@@ -12542,10 +12816,10 @@ var DropdownItem = (_a) => {
12542
12816
  handleSelect();
12543
12817
  }
12544
12818
  };
12545
- const itemContent = /* @__PURE__ */ React80.createElement("div", {
12819
+ const itemContent = /* @__PURE__ */ React81.createElement("div", {
12546
12820
  className: tw("py-3 px-4")
12547
12821
  }, children);
12548
- return /* @__PURE__ */ React80.createElement("li", __spreadProps(__spreadValues({
12822
+ return /* @__PURE__ */ React81.createElement("li", __spreadProps(__spreadValues({
12549
12823
  role: "menuitem",
12550
12824
  tabIndex: -1,
12551
12825
  onClick: handleClick,
@@ -12556,11 +12830,11 @@ var DropdownItem = (_a) => {
12556
12830
  "text-muted cursor-not-allowed": disabled,
12557
12831
  "text-primary-70 hover:text-primary-80": color === "danger" && !disabled
12558
12832
  })
12559
- }), tooltip ? /* @__PURE__ */ React80.createElement(Tooltip, {
12833
+ }), tooltip ? /* @__PURE__ */ React81.createElement(Tooltip, {
12560
12834
  content: tooltip,
12561
12835
  placement: tooltipPlacement,
12562
12836
  inline: false
12563
- }, /* @__PURE__ */ React80.createElement("div", {
12837
+ }, /* @__PURE__ */ React81.createElement("div", {
12564
12838
  tabIndex: 0,
12565
12839
  className: tw("grow")
12566
12840
  }, itemContent)) : itemContent);
@@ -12569,7 +12843,7 @@ Dropdown.Menu = DropdownMenu3;
12569
12843
  Dropdown.Item = DropdownItem;
12570
12844
 
12571
12845
  // src/molecules/EmptyState/EmptyState.tsx
12572
- import React81 from "react";
12846
+ import React82 from "react";
12573
12847
  var EmptyStateLayout = /* @__PURE__ */ ((EmptyStateLayout2) => {
12574
12848
  EmptyStateLayout2["Vertical"] = "vertical";
12575
12849
  EmptyStateLayout2["Horizontal"] = "horizontal";
@@ -12626,7 +12900,7 @@ var EmptyState = ({
12626
12900
  fullHeight = isVerticalLayout(layout) ? true : false
12627
12901
  }) => {
12628
12902
  const template = layoutStyle(layout);
12629
- return /* @__PURE__ */ React81.createElement(Box, {
12903
+ return /* @__PURE__ */ React82.createElement(Box, {
12630
12904
  className: classNames(
12631
12905
  "Aquarium-EmptyState",
12632
12906
  tw("rounded p-[56px]", {
@@ -12639,39 +12913,39 @@ var EmptyState = ({
12639
12913
  ),
12640
12914
  backgroundColor: "transparent",
12641
12915
  borderColor: "grey-10"
12642
- }, /* @__PURE__ */ React81.createElement(Box.Flex, {
12916
+ }, /* @__PURE__ */ React82.createElement(Box.Flex, {
12643
12917
  style: { gap: "56px" },
12644
12918
  flexDirection: template.layout,
12645
12919
  justifyContent: template.justifyContent,
12646
12920
  alignItems: template.layout === "row" ? "center" : template.alignItems,
12647
12921
  height: fullHeight ? "full" : void 0
12648
- }, image && /* @__PURE__ */ React81.createElement("img", {
12922
+ }, image && /* @__PURE__ */ React82.createElement("img", {
12649
12923
  src: image,
12650
12924
  alt: imageAlt,
12651
12925
  style: { width: imageWidth ? `${imageWidth}px` : void 0, height: "auto" }
12652
- }), /* @__PURE__ */ React81.createElement(Box.Flex, {
12926
+ }), /* @__PURE__ */ React82.createElement(Box.Flex, {
12653
12927
  flexDirection: "column",
12654
12928
  justifyContent: template.justifyContent,
12655
12929
  alignItems: template.alignItems
12656
- }, /* @__PURE__ */ React81.createElement(Typography2.Heading, {
12930
+ }, /* @__PURE__ */ React82.createElement(Typography2.Heading, {
12657
12931
  htmlTag: "h2"
12658
- }, title), (description || children) && /* @__PURE__ */ React81.createElement(Box, {
12932
+ }, title), (description || children) && /* @__PURE__ */ React82.createElement(Box, {
12659
12933
  marginTop: "5"
12660
- }, /* @__PURE__ */ React81.createElement(Typography2.Default, null, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React81.createElement(Box.Flex, {
12934
+ }, /* @__PURE__ */ React82.createElement(Typography2.Default, null, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React82.createElement(Box.Flex, {
12661
12935
  marginTop: "7",
12662
12936
  gap: "4",
12663
12937
  justifyContent: "center",
12664
12938
  alignItems: "center",
12665
12939
  flexWrap: "wrap"
12666
- }, primaryAction && renderAction({ kind: "primary", action: primaryAction }), secondaryAction && renderAction({ kind: "secondary", action: secondaryAction })), footer && /* @__PURE__ */ React81.createElement(Box, {
12940
+ }, primaryAction && renderAction({ kind: "primary", action: primaryAction }), secondaryAction && renderAction({ kind: "secondary", action: secondaryAction })), footer && /* @__PURE__ */ React82.createElement(Box, {
12667
12941
  marginTop: "5"
12668
- }, /* @__PURE__ */ React81.createElement(Typography2.Small, {
12942
+ }, /* @__PURE__ */ React82.createElement(Typography2.Small, {
12669
12943
  color: "grey-60"
12670
12944
  }, footer)))));
12671
12945
  };
12672
12946
 
12673
12947
  // src/molecules/Flexbox/FlexboxItem.tsx
12674
- import React82 from "react";
12948
+ import React83 from "react";
12675
12949
  var FlexboxItem = Tailwindify(
12676
12950
  ({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
12677
12951
  const hookStyle = useStyle({
@@ -12683,7 +12957,7 @@ var FlexboxItem = Tailwindify(
12683
12957
  alignSelf
12684
12958
  });
12685
12959
  const HtmlElement = htmlTag;
12686
- return /* @__PURE__ */ React82.createElement(HtmlElement, {
12960
+ return /* @__PURE__ */ React83.createElement(HtmlElement, {
12687
12961
  style: __spreadValues(__spreadValues({}, hookStyle), style),
12688
12962
  className
12689
12963
  }, children);
@@ -12691,7 +12965,7 @@ var FlexboxItem = Tailwindify(
12691
12965
  );
12692
12966
 
12693
12967
  // src/molecules/Grid/GridItem.tsx
12694
- import React83 from "react";
12968
+ import React84 from "react";
12695
12969
  var GridItem2 = Tailwindify(
12696
12970
  ({
12697
12971
  htmlTag = "div",
@@ -12722,7 +12996,7 @@ var GridItem2 = Tailwindify(
12722
12996
  gridRowEnd: rowEnd
12723
12997
  });
12724
12998
  const HtmlElement = htmlTag;
12725
- return /* @__PURE__ */ React83.createElement(HtmlElement, {
12999
+ return /* @__PURE__ */ React84.createElement(HtmlElement, {
12726
13000
  style: __spreadValues(__spreadValues({}, hookStyle), style),
12727
13001
  className
12728
13002
  }, children);
@@ -12730,7 +13004,7 @@ var GridItem2 = Tailwindify(
12730
13004
  );
12731
13005
 
12732
13006
  // src/molecules/LineClamp/LineClamp.tsx
12733
- import React84 from "react";
13007
+ import React85 from "react";
12734
13008
  var LineClamp2 = ({
12735
13009
  lines,
12736
13010
  children,
@@ -12739,10 +13013,10 @@ var LineClamp2 = ({
12739
13013
  collapseLabel,
12740
13014
  onClampedChange
12741
13015
  }) => {
12742
- const ref = React84.useRef(null);
12743
- const [clamped, setClamped] = React84.useState(true);
12744
- const [isClampingEnabled, setClampingEnabled] = React84.useState(false);
12745
- React84.useEffect(() => {
13016
+ const ref = React85.useRef(null);
13017
+ const [clamped, setClamped] = React85.useState(true);
13018
+ const [isClampingEnabled, setClampingEnabled] = React85.useState(false);
13019
+ React85.useEffect(() => {
12746
13020
  var _a, _b;
12747
13021
  const el = ref.current;
12748
13022
  setClampingEnabled(((_a = el == null ? void 0 : el.scrollHeight) != null ? _a : 0) > ((_b = el == null ? void 0 : el.clientHeight) != null ? _b : 0));
@@ -12751,28 +13025,28 @@ var LineClamp2 = ({
12751
13025
  setClamped(!clamped);
12752
13026
  onClampedChange == null ? void 0 : onClampedChange(!clamped);
12753
13027
  };
12754
- return /* @__PURE__ */ React84.createElement("div", {
13028
+ return /* @__PURE__ */ React85.createElement("div", {
12755
13029
  className: "Aquarium-LineClamp"
12756
- }, /* @__PURE__ */ React84.createElement(LineClamp, {
13030
+ }, /* @__PURE__ */ React85.createElement(LineClamp, {
12757
13031
  ref,
12758
13032
  lines,
12759
13033
  clamped,
12760
13034
  wordBreak
12761
- }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React84.createElement(Button.Ghost, {
13035
+ }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React85.createElement(Button.Ghost, {
12762
13036
  dense: true,
12763
13037
  onClick: handleClampedChange
12764
13038
  }, clamped ? expandLabel : collapseLabel));
12765
13039
  };
12766
13040
 
12767
13041
  // src/molecules/Link/Link.tsx
12768
- import React86 from "react";
13042
+ import React87 from "react";
12769
13043
  import classNames9 from "classnames";
12770
13044
 
12771
13045
  // src/atoms/Link/Link.tsx
12772
- import React85 from "react";
13046
+ import React86 from "react";
12773
13047
  var Link = (_a) => {
12774
13048
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
12775
- return /* @__PURE__ */ React85.createElement("a", __spreadValues({
13049
+ return /* @__PURE__ */ React86.createElement("a", __spreadValues({
12776
13050
  className: classNames(className, linkStyle)
12777
13051
  }, props), children);
12778
13052
  };
@@ -12780,27 +13054,27 @@ var Link = (_a) => {
12780
13054
  // src/molecules/Link/Link.tsx
12781
13055
  var Link2 = (_a) => {
12782
13056
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
12783
- return /* @__PURE__ */ React86.createElement(Link, __spreadValues({
13057
+ return /* @__PURE__ */ React87.createElement(Link, __spreadValues({
12784
13058
  className: classNames9("Aquarium-Link", className)
12785
13059
  }, props));
12786
13060
  };
12787
13061
 
12788
13062
  // src/molecules/List/useStaticInfiniteList.ts
12789
- import React87 from "react";
13063
+ import React88 from "react";
12790
13064
  var useStaticInfiniteList = ({
12791
13065
  items,
12792
13066
  pageSize,
12793
13067
  autoReset = true
12794
13068
  }) => {
12795
- const [currentPage, setCurrentPage] = React87.useState(1);
13069
+ const [currentPage, setCurrentPage] = React88.useState(1);
12796
13070
  const numberOfVisible = currentPage * pageSize;
12797
- const next = React87.useCallback(() => {
13071
+ const next = React88.useCallback(() => {
12798
13072
  setCurrentPage((page) => page + 1);
12799
13073
  }, [setCurrentPage]);
12800
- const reset = React87.useCallback(() => {
13074
+ const reset = React88.useCallback(() => {
12801
13075
  setCurrentPage(1);
12802
13076
  }, [setCurrentPage]);
12803
- React87.useEffect(() => {
13077
+ React88.useEffect(() => {
12804
13078
  if (autoReset) {
12805
13079
  setCurrentPage(1);
12806
13080
  }
@@ -12815,17 +13089,17 @@ var useStaticInfiniteList = ({
12815
13089
  };
12816
13090
 
12817
13091
  // src/molecules/ListItem/ListItem.tsx
12818
- import React88 from "react";
13092
+ import React89 from "react";
12819
13093
  var ListItem = ({ name, icon, active = false }) => {
12820
- return /* @__PURE__ */ React88.createElement(Box.Flex, {
13094
+ return /* @__PURE__ */ React89.createElement(Box.Flex, {
12821
13095
  className: "Aquarium-ListItem",
12822
13096
  alignItems: "center"
12823
- }, /* @__PURE__ */ React88.createElement(Typography2, {
13097
+ }, /* @__PURE__ */ React89.createElement(Typography2, {
12824
13098
  variant: active ? "small-strong" : "small",
12825
13099
  color: "grey-70",
12826
13100
  htmlTag: "span",
12827
13101
  className: `px-4 py-2 rounded-full ${active ? "bg-grey-5" : "hover:bg-grey-0"}`
12828
- }, /* @__PURE__ */ React88.createElement("img", {
13102
+ }, /* @__PURE__ */ React89.createElement("img", {
12829
13103
  src: icon,
12830
13104
  alt: "",
12831
13105
  className: "inline mr-4",
@@ -12835,18 +13109,18 @@ var ListItem = ({ name, icon, active = false }) => {
12835
13109
  };
12836
13110
 
12837
13111
  // src/molecules/Modal/Modal.tsx
12838
- import React89 from "react";
13112
+ import React90 from "react";
12839
13113
  import { useDialog as useDialog4 } from "@react-aria/dialog";
12840
13114
  import { Overlay as Overlay4, useModalOverlay as useModalOverlay3 } from "@react-aria/overlays";
12841
13115
  import { useId as useId11 } from "@react-aria/utils";
12842
13116
  import { useOverlayTriggerState as useOverlayTriggerState5 } from "@react-stately/overlays";
12843
- import castArray2 from "lodash/castArray";
13117
+ import castArray4 from "lodash/castArray";
12844
13118
  import omit11 from "lodash/omit";
12845
13119
  var import_cross7 = __toESM(require_cross());
12846
13120
  var Modal2 = (_a) => {
12847
13121
  var _b = _a, { closeOnEsc = true } = _b, props = __objRest(_b, ["closeOnEsc"]);
12848
13122
  const { open, onClose, size, portalContainer } = props;
12849
- const ref = React89.useRef(null);
13123
+ const ref = React90.useRef(null);
12850
13124
  const state = useOverlayTriggerState5({ isOpen: open, onOpenChange: (isOpen) => !isOpen && onClose() });
12851
13125
  const { modalProps, underlayProps } = useModalOverlay3(
12852
13126
  { isDismissable: false, isKeyboardDismissDisabled: !closeOnEsc },
@@ -12856,17 +13130,17 @@ var Modal2 = (_a) => {
12856
13130
  if (!state.isOpen) {
12857
13131
  return null;
12858
13132
  }
12859
- return /* @__PURE__ */ React89.createElement(Overlay4, {
13133
+ return /* @__PURE__ */ React90.createElement(Overlay4, {
12860
13134
  portalContainer
12861
- }, /* @__PURE__ */ React89.createElement(Modal, {
13135
+ }, /* @__PURE__ */ React90.createElement(Modal, {
12862
13136
  className: "Aquarium-Modal",
12863
13137
  open: true
12864
- }, /* @__PURE__ */ React89.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React89.createElement(ModalWrapper, __spreadValues(__spreadValues({
13138
+ }, /* @__PURE__ */ React90.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React90.createElement(ModalWrapper, __spreadValues(__spreadValues({
12865
13139
  ref,
12866
13140
  size
12867
13141
  }, props), modalProps))));
12868
13142
  };
12869
- var ModalWrapper = React89.forwardRef(
13143
+ var ModalWrapper = React90.forwardRef(
12870
13144
  (_a, ref) => {
12871
13145
  var _b = _a, { title, subtitle, headerImage, primaryAction, secondaryActions, children, onClose } = _b, props = __objRest(_b, ["title", "subtitle", "headerImage", "primaryAction", "secondaryActions", "children", "onClose"]);
12872
13146
  const labelledBy = useId11();
@@ -12875,30 +13149,30 @@ var ModalWrapper = React89.forwardRef(
12875
13149
  { "role": "dialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
12876
13150
  ref
12877
13151
  );
12878
- return /* @__PURE__ */ React89.createElement(Modal.Dialog, __spreadProps(__spreadValues(__spreadValues({
13152
+ return /* @__PURE__ */ React90.createElement(Modal.Dialog, __spreadProps(__spreadValues(__spreadValues({
12879
13153
  ref
12880
13154
  }, props), dialogProps), {
12881
13155
  tabIndex: -1
12882
- }), /* @__PURE__ */ React89.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React89.createElement(IconButton, {
13156
+ }), /* @__PURE__ */ React90.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React90.createElement(IconButton, {
12883
13157
  "aria-label": "Close",
12884
13158
  icon: import_cross7.default,
12885
13159
  onClick: onClose
12886
- })), headerImage !== void 0 && /* @__PURE__ */ React89.createElement(Modal.HeaderImage, {
13160
+ })), headerImage !== void 0 && /* @__PURE__ */ React90.createElement(Modal.HeaderImage, {
12887
13161
  backgroundImage: headerImage
12888
- }), /* @__PURE__ */ React89.createElement(Modal.Header, {
13162
+ }), /* @__PURE__ */ React90.createElement(Modal.Header, {
12889
13163
  className: tw({ "pb-3": isComponentType(children, ModalTabs) })
12890
- }, /* @__PURE__ */ React89.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React89.createElement(Modal.Title, {
13164
+ }, /* @__PURE__ */ React90.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React90.createElement(Modal.Title, {
12891
13165
  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, {
13166
+ }, 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
13167
  id: describedBy,
12894
13168
  tabIndex: 0,
12895
13169
  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) => {
13170
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React90.createElement(Modal.Footer, null, /* @__PURE__ */ React90.createElement(Modal.Actions, null, secondaryActions && castArray4(secondaryActions).filter(Boolean).map((_a2) => {
12897
13171
  var _b2 = _a2, { text } = _b2, action = __objRest(_b2, ["text"]);
12898
- return /* @__PURE__ */ React89.createElement(Button.Secondary, __spreadValues({
13172
+ return /* @__PURE__ */ React90.createElement(Button.Secondary, __spreadValues({
12899
13173
  key: text
12900
13174
  }, action), text);
12901
- }), primaryAction && /* @__PURE__ */ React89.createElement(Button.Primary, __spreadValues({
13175
+ }), primaryAction && /* @__PURE__ */ React90.createElement(Button.Primary, __spreadValues({
12902
13176
  key: primaryAction.text
12903
13177
  }, omit11(primaryAction, "text")), primaryAction.text))));
12904
13178
  }
@@ -12907,24 +13181,24 @@ var ModalTabs = createTabsComponent(
12907
13181
  ModalTab,
12908
13182
  TabItem,
12909
13183
  "ModalTabs",
12910
- (children, selected, props) => /* @__PURE__ */ React89.createElement(Modal.Body, {
13184
+ (children, selected, props) => /* @__PURE__ */ React90.createElement(Modal.Body, {
12911
13185
  maxHeight: props.maxHeight
12912
- }, /* @__PURE__ */ React89.createElement(ModalTabContainer, null, children.find(
13186
+ }, /* @__PURE__ */ React90.createElement(ModalTabContainer, null, children.find(
12913
13187
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
12914
13188
  )))
12915
13189
  );
12916
13190
 
12917
13191
  // src/molecules/MultiInput/MultiInput.tsx
12918
- import React91, { useEffect as useEffect11, useRef as useRef9, useState as useState11 } from "react";
13192
+ import React92, { useEffect as useEffect11, useRef as useRef9, useState as useState11 } from "react";
12919
13193
  import { useId as useId12 } from "@react-aria/utils";
12920
- import castArray3 from "lodash/castArray";
13194
+ import castArray5 from "lodash/castArray";
12921
13195
  import identity from "lodash/identity";
12922
13196
  import omit12 from "lodash/omit";
12923
13197
 
12924
13198
  // src/molecules/MultiInput/InputChip.tsx
12925
- import React90 from "react";
13199
+ import React91 from "react";
12926
13200
  var import_smallCross2 = __toESM(require_smallCross());
12927
- var InputChip = React90.forwardRef(
13201
+ var InputChip = React91.forwardRef(
12928
13202
  (_a, ref) => {
12929
13203
  var _b = _a, { invalid = false, disabled, readOnly, className, onClick: _onClick, children } = _b, props = __objRest(_b, ["invalid", "disabled", "readOnly", "className", "onClick", "children"]);
12930
13204
  const onClick = (e) => {
@@ -12932,18 +13206,18 @@ var InputChip = React90.forwardRef(
12932
13206
  _onClick == null ? void 0 : _onClick(e);
12933
13207
  }
12934
13208
  };
12935
- return /* @__PURE__ */ React90.createElement("div", {
13209
+ return /* @__PURE__ */ React91.createElement("div", {
12936
13210
  className: classNames(className, "inline-flex align-middle mx-1 items-stretch rounded-sm break-all", {
12937
13211
  "bg-error-0 ": invalid,
12938
13212
  "bg-grey-0 ": !invalid && !disabled,
12939
13213
  "bg-grey-5": disabled
12940
13214
  })
12941
- }, /* @__PURE__ */ React90.createElement("div", {
13215
+ }, /* @__PURE__ */ React91.createElement("div", {
12942
13216
  className: tw("px-2 py-1")
12943
- }, /* @__PURE__ */ React90.createElement(Typography2, {
13217
+ }, /* @__PURE__ */ React91.createElement(Typography2, {
12944
13218
  variant: "small",
12945
13219
  color: invalid ? "error-80" : disabled ? "grey-40" : "grey-70"
12946
- }, children)), !readOnly && /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({
13220
+ }, children)), !readOnly && /* @__PURE__ */ React91.createElement("div", __spreadProps(__spreadValues({
12947
13221
  ref
12948
13222
  }, props), {
12949
13223
  onClick,
@@ -12954,7 +13228,7 @@ var InputChip = React90.forwardRef(
12954
13228
  }),
12955
13229
  role: "button",
12956
13230
  "aria-label": `Remove ${String(children)}`
12957
- }), /* @__PURE__ */ React90.createElement(Icon, {
13231
+ }), /* @__PURE__ */ React91.createElement(Icon, {
12958
13232
  icon: import_smallCross2.default,
12959
13233
  className: tw({
12960
13234
  "text-error-70": invalid,
@@ -13057,7 +13331,7 @@ var MultiInputBase = (_a) => {
13057
13331
  inputRef.current.value = "";
13058
13332
  }
13059
13333
  if (value2) {
13060
- const newItems = castArray3(value2).map(createItem).filter((item) => !items.includes(item));
13334
+ const newItems = castArray5(value2).map(createItem).filter((item) => !items.includes(item));
13061
13335
  if (newItems.length > 0 && items.length + newItems.length <= (maxLength != null ? maxLength : Number.MAX_SAFE_INTEGER)) {
13062
13336
  const updated = (items != null ? items : []).concat(newItems);
13063
13337
  setItems(updated);
@@ -13095,7 +13369,7 @@ var MultiInputBase = (_a) => {
13095
13369
  };
13096
13370
  const renderChips = () => items == null ? void 0 : items.map((item, index) => {
13097
13371
  var _a3;
13098
- return /* @__PURE__ */ React91.createElement(InputChip, {
13372
+ return /* @__PURE__ */ React92.createElement(InputChip, {
13099
13373
  key: `${itemToString(item)}.${index}`,
13100
13374
  invalid: !((_a3 = isItemValid == null ? void 0 : isItemValid(item, index)) != null ? _a3 : true),
13101
13375
  readOnly,
@@ -13106,13 +13380,13 @@ var MultiInputBase = (_a) => {
13106
13380
  }
13107
13381
  }, itemToString(item));
13108
13382
  });
13109
- return /* @__PURE__ */ React91.createElement("div", {
13383
+ return /* @__PURE__ */ React92.createElement("div", {
13110
13384
  className: "Aquarium-MultiInputBase"
13111
- }, /* @__PURE__ */ React91.createElement(Select.InputContainer, {
13385
+ }, /* @__PURE__ */ React92.createElement(Select.InputContainer, {
13112
13386
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
13113
- }, /* @__PURE__ */ React91.createElement("div", {
13387
+ }, /* @__PURE__ */ React92.createElement("div", {
13114
13388
  className: "grow inline-flex flex-row flex-wrap gap-y-2"
13115
- }, inline && renderChips(), /* @__PURE__ */ React91.createElement(Select.Input, __spreadProps(__spreadValues({
13389
+ }, inline && renderChips(), /* @__PURE__ */ React92.createElement(Select.Input, __spreadProps(__spreadValues({
13116
13390
  ref: inputRef,
13117
13391
  id: id != null ? id : name,
13118
13392
  name,
@@ -13130,11 +13404,11 @@ var MultiInputBase = (_a) => {
13130
13404
  onFocus: handleFocus,
13131
13405
  onBlur: handleBlur,
13132
13406
  autoComplete: "off"
13133
- }))), endAdornment && /* @__PURE__ */ React91.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React91.createElement("div", {
13407
+ }))), endAdornment && /* @__PURE__ */ React92.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React92.createElement("div", {
13134
13408
  className: tw("flex flex-row flex-wrap gap-y-2 mt-2")
13135
13409
  }, renderChips()));
13136
13410
  };
13137
- var BaseMultiInputSkeleton = () => /* @__PURE__ */ React91.createElement(Skeleton, {
13411
+ var BaseMultiInputSkeleton = () => /* @__PURE__ */ React92.createElement(Skeleton, {
13138
13412
  height: 38
13139
13413
  });
13140
13414
  MultiInputBase.Skeleton = BaseMultiInputSkeleton;
@@ -13152,7 +13426,7 @@ var MultiInput = (props) => {
13152
13426
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13153
13427
  const labelControlProps = getLabelControlProps(props);
13154
13428
  const baseProps = omit12(props, Object.keys(labelControlProps));
13155
- return /* @__PURE__ */ React91.createElement(LabelControl, __spreadProps(__spreadValues({
13429
+ return /* @__PURE__ */ React92.createElement(LabelControl, __spreadProps(__spreadValues({
13156
13430
  id: `${id}-label`,
13157
13431
  htmlFor: `${id}-input`,
13158
13432
  messageId: errorMessageId
@@ -13160,7 +13434,7 @@ var MultiInput = (props) => {
13160
13434
  length: value.length,
13161
13435
  maxLength,
13162
13436
  className: "Aquarium-MultiInput"
13163
- }), /* @__PURE__ */ React91.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
13437
+ }), /* @__PURE__ */ React92.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
13164
13438
  id: `${id}-input`,
13165
13439
  onChange: (value2) => {
13166
13440
  var _a2;
@@ -13172,12 +13446,12 @@ var MultiInput = (props) => {
13172
13446
  valid: props.valid
13173
13447
  })));
13174
13448
  };
13175
- var MultiInputSkeleton = () => /* @__PURE__ */ React91.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React91.createElement(MultiInputBase.Skeleton, null));
13449
+ var MultiInputSkeleton = () => /* @__PURE__ */ React92.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React92.createElement(MultiInputBase.Skeleton, null));
13176
13450
  MultiInput.Skeleton = MultiInputSkeleton;
13177
13451
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
13178
13452
 
13179
13453
  // src/molecules/MultiSelect/MultiSelect.tsx
13180
- import React92, { useEffect as useEffect12, useRef as useRef10, useState as useState12 } from "react";
13454
+ import React93, { useEffect as useEffect12, useRef as useRef10, useState as useState12 } from "react";
13181
13455
  import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
13182
13456
  import { useId as useId13 } from "@react-aria/utils";
13183
13457
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
@@ -13337,16 +13611,16 @@ var MultiSelectBase = (_a) => {
13337
13611
  return ariaHideOutside2([inputRef.current, popoverRef.current]);
13338
13612
  }
13339
13613
  }, [state.isOpen, inputRef, popoverRef]);
13340
- const renderItem = (item, index) => /* @__PURE__ */ React92.createElement(Select.Item, __spreadValues({
13614
+ const renderItem = (item, index) => /* @__PURE__ */ React93.createElement(Select.Item, __spreadValues({
13341
13615
  key: itemToString(item),
13342
13616
  highlighted: index === highlightedIndex,
13343
13617
  selected: selectedItems.includes(item)
13344
13618
  }, getItemProps({ item, index })), renderOption(item));
13345
- const renderGroup = (group) => group.options.length ? /* @__PURE__ */ React92.createElement(React92.Fragment, {
13619
+ const renderGroup = (group) => group.options.length ? /* @__PURE__ */ React93.createElement(React93.Fragment, {
13346
13620
  key: group.label
13347
- }, /* @__PURE__ */ React92.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, flattenedOptions.indexOf(opt)))) : null;
13621
+ }, /* @__PURE__ */ React93.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, flattenedOptions.indexOf(opt)))) : null;
13348
13622
  const renderChips = () => {
13349
- return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React92.createElement(InputChip, __spreadProps(__spreadValues({
13623
+ return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React93.createElement(InputChip, __spreadProps(__spreadValues({
13350
13624
  key: `${itemToString(selectedItem)}.chip`,
13351
13625
  className: tw("mx-0"),
13352
13626
  disabled,
@@ -13364,14 +13638,14 @@ var MultiSelectBase = (_a) => {
13364
13638
  getDropdownProps({ ref: inputRef, disabled: disabled || readOnly, value: inputValue })
13365
13639
  );
13366
13640
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
13367
- return /* @__PURE__ */ React92.createElement("div", {
13641
+ return /* @__PURE__ */ React93.createElement("div", {
13368
13642
  className: classNames("Aquarium-MultiSelectBase", tw("relative"))
13369
- }, /* @__PURE__ */ React92.createElement(Select.InputContainer, {
13643
+ }, /* @__PURE__ */ React93.createElement(Select.InputContainer, {
13370
13644
  ref: targetRef,
13371
13645
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
13372
- }, /* @__PURE__ */ React92.createElement("div", {
13646
+ }, /* @__PURE__ */ React93.createElement("div", {
13373
13647
  className: "grow inline-flex flex-row flex-wrap gap-2"
13374
- }, !hideChips && inline && renderChips(), /* @__PURE__ */ React92.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
13648
+ }, !hideChips && inline && renderChips(), /* @__PURE__ */ React93.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
13375
13649
  name,
13376
13650
  placeholder: selectedItems.length === 0 && !readOnly ? placeholder : ""
13377
13651
  }, inputProps), props), {
@@ -13390,12 +13664,12 @@ var MultiSelectBase = (_a) => {
13390
13664
  setFocus(false);
13391
13665
  (_a3 = inputProps.onBlur) == null ? void 0 : _a3.call(inputProps, e);
13392
13666
  }
13393
- }))), !readOnly && /* @__PURE__ */ React92.createElement(Select.Toggle, __spreadValues({
13667
+ }))), !readOnly && /* @__PURE__ */ React93.createElement(Select.Toggle, __spreadValues({
13394
13668
  hasFocus,
13395
13669
  isOpen
13396
- }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React92.createElement("div", {
13670
+ }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React93.createElement("div", {
13397
13671
  className: tw("flex flex-row flex-wrap gap-2 mt-2")
13398
- }, renderChips()), isOpen && /* @__PURE__ */ React92.createElement(PopoverOverlay, {
13672
+ }, renderChips()), isOpen && /* @__PURE__ */ React93.createElement(PopoverOverlay, {
13399
13673
  ref: popoverRef,
13400
13674
  triggerRef: targetRef,
13401
13675
  state,
@@ -13403,13 +13677,13 @@ var MultiSelectBase = (_a) => {
13403
13677
  shouldFlip: true,
13404
13678
  isNonModal: true,
13405
13679
  style: { width: (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth }
13406
- }, /* @__PURE__ */ React92.createElement(Select.Menu, __spreadValues({
13680
+ }, /* @__PURE__ */ React93.createElement(Select.Menu, __spreadValues({
13407
13681
  maxHeight
13408
- }, menuProps), hasNoResults && /* @__PURE__ */ React92.createElement(Select.NoResults, null, emptyState), filteredOptions.map(
13682
+ }, menuProps), hasNoResults && /* @__PURE__ */ React93.createElement(Select.NoResults, null, emptyState), filteredOptions.map(
13409
13683
  (option, index) => isOptionGroup(option) ? renderGroup(option) : renderItem(option, index)
13410
13684
  ))));
13411
13685
  };
13412
- var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React92.createElement(Skeleton, {
13686
+ var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React93.createElement(Skeleton, {
13413
13687
  height: 38
13414
13688
  });
13415
13689
  MultiSelectBase.Skeleton = MultiSelectBaseSkeleton;
@@ -13430,13 +13704,13 @@ var MultiSelect = (_a) => {
13430
13704
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13431
13705
  const labelControlProps = getLabelControlProps(props);
13432
13706
  const baseProps = omit13(props, Object.keys(labelControlProps));
13433
- return /* @__PURE__ */ React92.createElement(LabelControl, __spreadProps(__spreadValues({
13707
+ return /* @__PURE__ */ React93.createElement(LabelControl, __spreadProps(__spreadValues({
13434
13708
  id: `${id}-label`,
13435
13709
  htmlFor: `${id}-input`,
13436
13710
  messageId: errorMessageId
13437
13711
  }, labelControlProps), {
13438
13712
  className: "Aquarium-MultiSelect"
13439
- }), /* @__PURE__ */ React92.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
13713
+ }), /* @__PURE__ */ React93.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
13440
13714
  id,
13441
13715
  options,
13442
13716
  emptyState,
@@ -13444,17 +13718,17 @@ var MultiSelect = (_a) => {
13444
13718
  valid: props.valid
13445
13719
  })));
13446
13720
  };
13447
- var MultiSelectSkeleton = () => /* @__PURE__ */ React92.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React92.createElement(MultiSelectBase.Skeleton, null));
13721
+ var MultiSelectSkeleton = () => /* @__PURE__ */ React93.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React93.createElement(MultiSelectBase.Skeleton, null));
13448
13722
  MultiSelect.Skeleton = MultiSelectSkeleton;
13449
13723
  MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
13450
13724
 
13451
13725
  // src/molecules/NativeSelect/NativeSelect.tsx
13452
- import React93 from "react";
13726
+ import React94 from "react";
13453
13727
  import { useId as useId14 } from "@react-aria/utils";
13454
13728
  import omit14 from "lodash/omit";
13455
13729
  import uniqueId from "lodash/uniqueId";
13456
13730
  var import_caretDown2 = __toESM(require_caretDown());
13457
- var NativeSelectBase = React93.forwardRef(
13731
+ var NativeSelectBase = React94.forwardRef(
13458
13732
  (_a, ref) => {
13459
13733
  var _b = _a, { children, disabled = false, required = false, valid = true, readOnly = false } = _b, props = __objRest(_b, ["children", "disabled", "required", "valid", "readOnly"]);
13460
13734
  const placeholderValue = uniqueId("default_value_for_placeholder");
@@ -13471,16 +13745,16 @@ var NativeSelectBase = React93.forwardRef(
13471
13745
  (_b2 = props.onBlur) == null ? void 0 : _b2.call(props, event);
13472
13746
  }
13473
13747
  };
13474
- return /* @__PURE__ */ React93.createElement("span", {
13748
+ return /* @__PURE__ */ React94.createElement("span", {
13475
13749
  className: classNames("Aquarium-NativeSelectBase", tw("relative block"))
13476
- }, !readOnly && /* @__PURE__ */ React93.createElement("span", {
13750
+ }, !readOnly && /* @__PURE__ */ React94.createElement("span", {
13477
13751
  className: tw(
13478
13752
  "absolute right-0 inset-y-0 mr-4 text-muted flex ml-3 pointer-events-none typography-default-strong mt-4"
13479
13753
  )
13480
- }, /* @__PURE__ */ React93.createElement(Icon, {
13754
+ }, /* @__PURE__ */ React94.createElement(Icon, {
13481
13755
  icon: import_caretDown2.default,
13482
13756
  "data-testid": "icon-dropdown"
13483
- })), /* @__PURE__ */ React93.createElement("select", __spreadProps(__spreadValues({
13757
+ })), /* @__PURE__ */ React94.createElement("select", __spreadProps(__spreadValues({
13484
13758
  ref,
13485
13759
  disabled: disabled || readOnly,
13486
13760
  required
@@ -13499,16 +13773,16 @@ var NativeSelectBase = React93.forwardRef(
13499
13773
  ),
13500
13774
  props.className
13501
13775
  )
13502
- }), props.placeholder && /* @__PURE__ */ React93.createElement("option", {
13776
+ }), props.placeholder && /* @__PURE__ */ React94.createElement("option", {
13503
13777
  value: placeholderValue,
13504
13778
  disabled: true
13505
13779
  }, props.placeholder), children));
13506
13780
  }
13507
13781
  );
13508
- NativeSelectBase.Skeleton = () => /* @__PURE__ */ React93.createElement(Skeleton, {
13782
+ NativeSelectBase.Skeleton = () => /* @__PURE__ */ React94.createElement(Skeleton, {
13509
13783
  height: 38
13510
13784
  });
13511
- var NativeSelect = React93.forwardRef(
13785
+ var NativeSelect = React94.forwardRef(
13512
13786
  (_a, ref) => {
13513
13787
  var _b = _a, { readOnly } = _b, props = __objRest(_b, ["readOnly"]);
13514
13788
  var _a2;
@@ -13518,13 +13792,13 @@ var NativeSelect = React93.forwardRef(
13518
13792
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13519
13793
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
13520
13794
  const baseProps = omit14(props, Object.keys(labelControlProps));
13521
- return /* @__PURE__ */ React93.createElement(LabelControl, __spreadProps(__spreadValues({
13795
+ return /* @__PURE__ */ React94.createElement(LabelControl, __spreadProps(__spreadValues({
13522
13796
  id: `${id}-label`,
13523
13797
  htmlFor: id,
13524
13798
  messageId: errorMessageId
13525
13799
  }, labelControlProps), {
13526
13800
  className: "Aquarium-NativeSelect"
13527
- }), /* @__PURE__ */ React93.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
13801
+ }), /* @__PURE__ */ React94.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
13528
13802
  ref
13529
13803
  }, baseProps), errorProps), {
13530
13804
  id,
@@ -13538,63 +13812,63 @@ var NativeSelect = React93.forwardRef(
13538
13812
  }
13539
13813
  );
13540
13814
  NativeSelect.displayName = "NativeSelect";
13541
- var Option = React93.forwardRef((_a, ref) => {
13815
+ var Option = React94.forwardRef((_a, ref) => {
13542
13816
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
13543
- return /* @__PURE__ */ React93.createElement("option", __spreadValues({
13817
+ return /* @__PURE__ */ React94.createElement("option", __spreadValues({
13544
13818
  ref
13545
13819
  }, props), children);
13546
13820
  });
13547
13821
  Option.displayName = "Option";
13548
- var NativeSelectSkeleton = () => /* @__PURE__ */ React93.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React93.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React93.createElement("div", {
13822
+ var NativeSelectSkeleton = () => /* @__PURE__ */ React94.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React94.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React94.createElement("div", {
13549
13823
  style: { height: "1px" }
13550
13824
  }));
13551
13825
  NativeSelect.Skeleton = NativeSelectSkeleton;
13552
13826
  NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
13553
13827
 
13554
13828
  // src/molecules/Navigation/Navigation.tsx
13555
- import React95 from "react";
13829
+ import React96 from "react";
13556
13830
  import classNames10 from "classnames";
13557
13831
 
13558
13832
  // src/atoms/Navigation/Navigation.tsx
13559
- import React94 from "react";
13833
+ import React95 from "react";
13560
13834
  var Navigation = (_a) => {
13561
13835
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
13562
- return /* @__PURE__ */ React94.createElement("nav", {
13836
+ return /* @__PURE__ */ React95.createElement("nav", {
13563
13837
  className: classNames(tw("bg-grey-0 h-full"))
13564
- }, /* @__PURE__ */ React94.createElement("ul", __spreadProps(__spreadValues({}, rest), {
13838
+ }, /* @__PURE__ */ React95.createElement("ul", __spreadProps(__spreadValues({}, rest), {
13565
13839
  className: classNames(tw("flex flex-col h-full"), className),
13566
13840
  role: "menubar"
13567
13841
  }), children));
13568
13842
  };
13569
13843
  var Header = (_a) => {
13570
13844
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
13571
- return /* @__PURE__ */ React94.createElement("li", __spreadProps(__spreadValues({}, rest), {
13845
+ return /* @__PURE__ */ React95.createElement("li", __spreadProps(__spreadValues({}, rest), {
13572
13846
  role: "presentation",
13573
13847
  className: classNames(tw("px-6 py-5"), className)
13574
13848
  }));
13575
13849
  };
13576
13850
  var Footer = (_a) => {
13577
13851
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
13578
- return /* @__PURE__ */ React94.createElement("li", __spreadProps(__spreadValues({}, rest), {
13852
+ return /* @__PURE__ */ React95.createElement("li", __spreadProps(__spreadValues({}, rest), {
13579
13853
  role: "presentation",
13580
13854
  className: classNames(tw("px-6 py-5 mt-auto"), className)
13581
13855
  }));
13582
13856
  };
13583
13857
  var Section2 = (_a) => {
13584
13858
  var _b = _a, { title, className } = _b, rest = __objRest(_b, ["title", "className"]);
13585
- return /* @__PURE__ */ React94.createElement("li", {
13859
+ return /* @__PURE__ */ React95.createElement("li", {
13586
13860
  role: "presentation",
13587
13861
  className: tw("py-5")
13588
- }, title && /* @__PURE__ */ React94.createElement("div", {
13862
+ }, title && /* @__PURE__ */ React95.createElement("div", {
13589
13863
  className: classNames(className, "py-2 px-6 text-muted uppercase cursor-default typography-caption")
13590
- }, title), /* @__PURE__ */ React94.createElement("ul", __spreadProps(__spreadValues({}, rest), {
13864
+ }, title), /* @__PURE__ */ React95.createElement("ul", __spreadProps(__spreadValues({}, rest), {
13591
13865
  role: "group",
13592
13866
  className: classNames(tw("flex flex-col"), className)
13593
13867
  })));
13594
13868
  };
13595
13869
  var Divider3 = (_a) => {
13596
13870
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
13597
- return /* @__PURE__ */ React94.createElement("li", __spreadProps(__spreadValues({
13871
+ return /* @__PURE__ */ React95.createElement("li", __spreadProps(__spreadValues({
13598
13872
  role: "separator"
13599
13873
  }, rest), {
13600
13874
  className: classNames(tw("border-t-2 border-muted"), className)
@@ -13602,9 +13876,9 @@ var Divider3 = (_a) => {
13602
13876
  };
13603
13877
  var Item5 = (_a) => {
13604
13878
  var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
13605
- return /* @__PURE__ */ React94.createElement("li", {
13879
+ return /* @__PURE__ */ React95.createElement("li", {
13606
13880
  role: "presentation"
13607
- }, /* @__PURE__ */ React94.createElement("a", __spreadProps(__spreadValues({}, rest), {
13881
+ }, /* @__PURE__ */ React95.createElement("a", __spreadProps(__spreadValues({}, rest), {
13608
13882
  role: "menuitem",
13609
13883
  className: classNames(
13610
13884
  tw("py-3 px-6 hover:bg-grey-5 cursor-pointer flex gap-4 items-center typography-small focusable", {
@@ -13624,7 +13898,7 @@ Navigation.Divider = Divider3;
13624
13898
  // src/molecules/Navigation/Navigation.tsx
13625
13899
  var Navigation2 = (_a) => {
13626
13900
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
13627
- return /* @__PURE__ */ React95.createElement(Navigation, __spreadValues({
13901
+ return /* @__PURE__ */ React96.createElement(Navigation, __spreadValues({
13628
13902
  className: classNames10("Aquarium-Navigation", className)
13629
13903
  }, props));
13630
13904
  };
@@ -13638,11 +13912,11 @@ var Item6 = (_a) => {
13638
13912
  "icon",
13639
13913
  "showNotification"
13640
13914
  ]);
13641
- return /* @__PURE__ */ React95.createElement(Navigation.Item, __spreadValues({}, rest), icon && showNotification && /* @__PURE__ */ React95.createElement(Badge.Notification, null, /* @__PURE__ */ React95.createElement(InlineIcon, {
13915
+ return /* @__PURE__ */ React96.createElement(Navigation.Item, __spreadValues({}, rest), icon && showNotification && /* @__PURE__ */ React96.createElement(Badge.Notification, null, /* @__PURE__ */ React96.createElement(InlineIcon, {
13642
13916
  icon,
13643
13917
  width: "20px",
13644
13918
  height: "20px"
13645
- })), icon && !showNotification && /* @__PURE__ */ React95.createElement(InlineIcon, {
13919
+ })), icon && !showNotification && /* @__PURE__ */ React96.createElement(InlineIcon, {
13646
13920
  icon,
13647
13921
  width: "20px",
13648
13922
  height: "20px"
@@ -13655,32 +13929,32 @@ Navigation2.Header = Navigation.Header;
13655
13929
  Navigation2.Section = Navigation.Section;
13656
13930
 
13657
13931
  // src/molecules/PageHeader/PageHeader.tsx
13658
- import React97 from "react";
13659
- import castArray4 from "lodash/castArray";
13932
+ import React98 from "react";
13933
+ import castArray6 from "lodash/castArray";
13660
13934
 
13661
13935
  // src/atoms/PageHeader/PageHeader.tsx
13662
- import React96 from "react";
13936
+ import React97 from "react";
13663
13937
  var PageHeader = (_a) => {
13664
13938
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13665
- return /* @__PURE__ */ React96.createElement("div", __spreadValues({
13939
+ return /* @__PURE__ */ React97.createElement("div", __spreadValues({
13666
13940
  className: classNames(tw("flex flex-row gap-4 pb-6"), className)
13667
13941
  }, rest), children);
13668
13942
  };
13669
13943
  PageHeader.Container = (_a) => {
13670
13944
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13671
- return /* @__PURE__ */ React96.createElement("div", __spreadValues({
13945
+ return /* @__PURE__ */ React97.createElement("div", __spreadValues({
13672
13946
  className: classNames(tw("flex flex-col grow gap-0"), className)
13673
13947
  }, rest), children);
13674
13948
  };
13675
13949
  PageHeader.TitleContainer = (_a) => {
13676
13950
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13677
- return /* @__PURE__ */ React96.createElement("div", __spreadValues({
13951
+ return /* @__PURE__ */ React97.createElement("div", __spreadValues({
13678
13952
  className: classNames(tw("flex flex-col justify-center gap-2"), className)
13679
13953
  }, rest), children);
13680
13954
  };
13681
13955
  PageHeader.Title = (_a) => {
13682
13956
  var _b = _a, { isSubHeader = false, children } = _b, rest = __objRest(_b, ["isSubHeader", "children"]);
13683
- return /* @__PURE__ */ React96.createElement(Typography2, __spreadProps(__spreadValues({}, rest), {
13957
+ return /* @__PURE__ */ React97.createElement(Typography2, __spreadProps(__spreadValues({}, rest), {
13684
13958
  color: "grey-100",
13685
13959
  variant: isSubHeader ? "subheading" : "heading",
13686
13960
  htmlTag: isSubHeader ? "h2" : "h1"
@@ -13688,19 +13962,19 @@ PageHeader.Title = (_a) => {
13688
13962
  };
13689
13963
  PageHeader.Subtitle = (_a) => {
13690
13964
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
13691
- return /* @__PURE__ */ React96.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
13965
+ return /* @__PURE__ */ React97.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
13692
13966
  color: "grey-70"
13693
13967
  }), children);
13694
13968
  };
13695
13969
  PageHeader.Chips = (_a) => {
13696
13970
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13697
- return /* @__PURE__ */ React96.createElement("div", __spreadValues({
13971
+ return /* @__PURE__ */ React97.createElement("div", __spreadValues({
13698
13972
  className: classNames(tw("flex gap-3"), className)
13699
13973
  }, rest), children);
13700
13974
  };
13701
13975
  PageHeader.Actions = (_a) => {
13702
13976
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13703
- return /* @__PURE__ */ React96.createElement("div", __spreadValues({
13977
+ return /* @__PURE__ */ React97.createElement("div", __spreadValues({
13704
13978
  className: classNames(tw("flex flex-row gap-4 self-start"), className)
13705
13979
  }, rest), children);
13706
13980
  };
@@ -13724,63 +13998,64 @@ var CommonPageHeader = ({
13724
13998
  onMenuOpenChange,
13725
13999
  isSubHeader = false
13726
14000
  }) => {
13727
- return /* @__PURE__ */ React97.createElement(PageHeader, {
14001
+ return /* @__PURE__ */ React98.createElement(PageHeader, {
13728
14002
  className: "Aquarium-PageHeader"
13729
- }, /* @__PURE__ */ React97.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React97.createElement(Box, {
14003
+ }, /* @__PURE__ */ React98.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React98.createElement(Box, {
13730
14004
  marginBottom: "3"
13731
- }, /* @__PURE__ */ React97.createElement(Breadcrumbs, null, breadcrumbs)), /* @__PURE__ */ React97.createElement(Spacing, {
14005
+ }, /* @__PURE__ */ React98.createElement(Breadcrumbs, null, breadcrumbs)), /* @__PURE__ */ React98.createElement(Spacing, {
13732
14006
  row: true,
13733
14007
  gap: "5"
13734
- }, image && /* @__PURE__ */ React97.createElement("img", {
14008
+ }, image && /* @__PURE__ */ React98.createElement("img", {
13735
14009
  src: image,
13736
14010
  alt: imageAlt != null ? imageAlt : "",
13737
14011
  className: tw("w-[56px] h-[56px]")
13738
- }), /* @__PURE__ */ React97.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React97.createElement(PageHeader.Title, {
14012
+ }), /* @__PURE__ */ React98.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React98.createElement(PageHeader.Title, {
13739
14013
  isSubHeader
13740
- }, title), chips.length > 0 && /* @__PURE__ */ React97.createElement(PageHeader.Chips, null, chips.map((chip) => /* @__PURE__ */ React97.createElement(Chip2, {
14014
+ }, title), chips.length > 0 && /* @__PURE__ */ React98.createElement(PageHeader.Chips, null, chips.map((chip) => /* @__PURE__ */ React98.createElement(Chip2, {
13741
14015
  key: chip,
13742
14016
  dense: true,
13743
14017
  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, {
14018
+ }))), 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
14019
  alignItems: "center"
13746
- }, /* @__PURE__ */ React97.createElement(DropdownMenu2, {
14020
+ }, /* @__PURE__ */ React98.createElement(DropdownMenu2, {
14021
+ placement: defaultContextualMenuPlacement,
13747
14022
  onAction: (action) => onAction == null ? void 0 : onAction(action),
13748
14023
  onOpenChange: onMenuOpenChange
13749
- }, /* @__PURE__ */ React97.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React97.createElement(Button.Icon, {
14024
+ }, /* @__PURE__ */ React98.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React98.createElement(Button.Icon, {
13750
14025
  "aria-label": menuAriaLabel,
13751
14026
  icon: import_more5.default
13752
- })), menu)), secondaryActions && castArray4(secondaryActions).filter(Boolean).map((secondaryAction2) => renderAction({ kind: "secondary", action: secondaryAction2 })), primaryAction && renderAction({ kind: "primary", action: primaryAction })));
14027
+ })), menu)), secondaryActions && castArray6(secondaryActions).filter(Boolean).map((secondaryAction2) => renderAction({ kind: "secondary", action: secondaryAction2 })), primaryAction && renderAction({ kind: "primary", action: primaryAction })));
13753
14028
  };
13754
- var PageHeader2 = (props) => /* @__PURE__ */ React97.createElement(CommonPageHeader, __spreadValues({}, props));
14029
+ var PageHeader2 = (props) => /* @__PURE__ */ React98.createElement(CommonPageHeader, __spreadValues({}, props));
13755
14030
  PageHeader2.displayName = "PageHeader";
13756
- var SubHeader = (props) => /* @__PURE__ */ React97.createElement(CommonPageHeader, __spreadProps(__spreadValues({}, props), {
14031
+ var SubHeader = (props) => /* @__PURE__ */ React98.createElement(CommonPageHeader, __spreadProps(__spreadValues({}, props), {
13757
14032
  isSubHeader: true
13758
14033
  }));
13759
14034
  PageHeader2.SubHeader = SubHeader;
13760
14035
  PageHeader2.SubHeader.displayName = "PageHeader.SubHeader";
13761
14036
 
13762
14037
  // src/molecules/PopoverDialog/PopoverDialog.tsx
13763
- import React99 from "react";
14038
+ import React100 from "react";
13764
14039
  import omit15 from "lodash/omit";
13765
14040
 
13766
14041
  // src/atoms/PopoverDialog/PopoverDialog.tsx
13767
- import React98 from "react";
14042
+ import React99 from "react";
13768
14043
  var Header2 = (_a) => {
13769
14044
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13770
- return /* @__PURE__ */ React98.createElement("div", __spreadProps(__spreadValues({}, rest), {
14045
+ return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
13771
14046
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
13772
14047
  }), children);
13773
14048
  };
13774
14049
  var Title2 = (_a) => {
13775
14050
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13776
- return /* @__PURE__ */ React98.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
14051
+ return /* @__PURE__ */ React99.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
13777
14052
  htmlTag: "h1",
13778
14053
  variant: "small-strong"
13779
14054
  }), children);
13780
14055
  };
13781
14056
  var Body = (_a) => {
13782
14057
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13783
- return /* @__PURE__ */ React98.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
14058
+ return /* @__PURE__ */ React99.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
13784
14059
  htmlTag: "div",
13785
14060
  variant: "caption",
13786
14061
  className: classNames(tw("px-5 overflow-y-auto"), className)
@@ -13788,13 +14063,13 @@ var Body = (_a) => {
13788
14063
  };
13789
14064
  var Footer2 = (_a) => {
13790
14065
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13791
- return /* @__PURE__ */ React98.createElement("div", __spreadProps(__spreadValues({}, rest), {
14066
+ return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
13792
14067
  className: classNames(tw("p-5"), className)
13793
14068
  }), children);
13794
14069
  };
13795
14070
  var Actions2 = (_a) => {
13796
14071
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13797
- return /* @__PURE__ */ React98.createElement("div", __spreadProps(__spreadValues({}, rest), {
14072
+ return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
13798
14073
  className: classNames(tw("flex gap-4"), className)
13799
14074
  }), children);
13800
14075
  };
@@ -13810,13 +14085,13 @@ var PopoverDialog = {
13810
14085
  var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
13811
14086
  const wrapPromptWithBody = (child) => {
13812
14087
  if (isComponentType(child, PopoverDialog2.Prompt)) {
13813
- return /* @__PURE__ */ React99.createElement(Popover2.Panel, {
14088
+ return /* @__PURE__ */ React100.createElement(Popover2.Panel, {
13814
14089
  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({
14090
+ }, /* @__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
14091
  kind: "secondary-ghost",
13817
14092
  key: secondaryAction.text,
13818
14093
  dense: true
13819
- }, omit15(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React99.createElement(Popover2.Button, __spreadValues({
14094
+ }, omit15(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React100.createElement(Popover2.Button, __spreadValues({
13820
14095
  kind: "ghost",
13821
14096
  key: primaryAction.text,
13822
14097
  dense: true
@@ -13824,15 +14099,15 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
13824
14099
  }
13825
14100
  return child;
13826
14101
  };
13827
- return /* @__PURE__ */ React99.createElement(Popover2, {
14102
+ return /* @__PURE__ */ React100.createElement(Popover2, {
13828
14103
  type: "dialog",
13829
14104
  isOpen: open,
13830
14105
  placement,
13831
14106
  containFocus: true
13832
- }, React99.Children.map(children, wrapPromptWithBody));
14107
+ }, React100.Children.map(children, wrapPromptWithBody));
13833
14108
  };
13834
14109
  PopoverDialog2.Trigger = Popover2.Trigger;
13835
- var Prompt = ({ children }) => /* @__PURE__ */ React99.createElement(PopoverDialog.Body, null, children);
14110
+ var Prompt = ({ children }) => /* @__PURE__ */ React100.createElement(PopoverDialog.Body, null, children);
13836
14111
  Prompt.displayName = "PopoverDialog.Prompt";
13837
14112
  PopoverDialog2.Prompt = Prompt;
13838
14113
 
@@ -13841,14 +14116,14 @@ import { createPortal } from "react-dom";
13841
14116
  var Portal = ({ children, to }) => createPortal(children, to);
13842
14117
 
13843
14118
  // src/molecules/ProgressBar/ProgressBar.tsx
13844
- import React101 from "react";
14119
+ import React102 from "react";
13845
14120
 
13846
14121
  // src/atoms/ProgressBar/ProgressBar.tsx
13847
- import React100 from "react";
14122
+ import React101 from "react";
13848
14123
  import clamp3 from "lodash/clamp";
13849
14124
  var ProgressBar = (_a) => {
13850
14125
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
13851
- return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
14126
+ return /* @__PURE__ */ React101.createElement("div", __spreadProps(__spreadValues({}, rest), {
13852
14127
  className: classNames(
13853
14128
  tw("relative flex items-center w-full bg-grey-0 h-2 rounded-full overflow-hidden"),
13854
14129
  className
@@ -13864,7 +14139,7 @@ var STATUS_COLORS = {
13864
14139
  ProgressBar.Indicator = (_a) => {
13865
14140
  var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
13866
14141
  const completedPercentage = clamp3((value - min) / (max - min) * 100, 0, 100);
13867
- return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
14142
+ return /* @__PURE__ */ React101.createElement("div", __spreadProps(__spreadValues({}, rest), {
13868
14143
  className: classNames(
13869
14144
  tw("h-2 rounded-full transition-all ease-in-out delay-150"),
13870
14145
  STATUS_COLORS[status],
@@ -13880,11 +14155,11 @@ ProgressBar.Indicator = (_a) => {
13880
14155
  };
13881
14156
  ProgressBar.Labels = (_a) => {
13882
14157
  var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
13883
- return /* @__PURE__ */ React100.createElement("div", {
14158
+ return /* @__PURE__ */ React101.createElement("div", {
13884
14159
  className: classNames(tw("flex flex-row"), className)
13885
- }, /* @__PURE__ */ React100.createElement("span", __spreadProps(__spreadValues({}, rest), {
14160
+ }, /* @__PURE__ */ React101.createElement("span", __spreadProps(__spreadValues({}, rest), {
13886
14161
  className: tw("grow text-default typography-caption")
13887
- }), startLabel), /* @__PURE__ */ React100.createElement("span", __spreadProps(__spreadValues({}, rest), {
14162
+ }), startLabel), /* @__PURE__ */ React101.createElement("span", __spreadProps(__spreadValues({}, rest), {
13888
14163
  className: tw("grow text-default typography-caption text-right")
13889
14164
  }), endLabel));
13890
14165
  };
@@ -13902,7 +14177,7 @@ var ProgressBar2 = (props) => {
13902
14177
  if (min > max) {
13903
14178
  throw new Error("`min` value provided to `ProgressBar` is greater than `max` value.");
13904
14179
  }
13905
- const progress = /* @__PURE__ */ React101.createElement(ProgressBar, null, /* @__PURE__ */ React101.createElement(ProgressBar.Indicator, {
14180
+ const progress = /* @__PURE__ */ React102.createElement(ProgressBar, null, /* @__PURE__ */ React102.createElement(ProgressBar.Indicator, {
13906
14181
  status: value === max ? completedStatus : progresStatus,
13907
14182
  min,
13908
14183
  max,
@@ -13912,15 +14187,15 @@ var ProgressBar2 = (props) => {
13912
14187
  if (props.dense) {
13913
14188
  return progress;
13914
14189
  }
13915
- return /* @__PURE__ */ React101.createElement("div", {
14190
+ return /* @__PURE__ */ React102.createElement("div", {
13916
14191
  className: "Aquarium-ProgressBar"
13917
- }, progress, /* @__PURE__ */ React101.createElement(ProgressBar.Labels, {
14192
+ }, progress, /* @__PURE__ */ React102.createElement(ProgressBar.Labels, {
13918
14193
  className: tw("py-2"),
13919
14194
  startLabel: props.startLabel,
13920
14195
  endLabel: props.endLabel
13921
14196
  }));
13922
14197
  };
13923
- var ProgressBarSkeleton = () => /* @__PURE__ */ React101.createElement(Skeleton, {
14198
+ var ProgressBarSkeleton = () => /* @__PURE__ */ React102.createElement(Skeleton, {
13924
14199
  height: 4,
13925
14200
  display: "block"
13926
14201
  });
@@ -13928,13 +14203,13 @@ ProgressBar2.Skeleton = ProgressBarSkeleton;
13928
14203
  ProgressBar2.Skeleton.displayName = "ProgressBar.Skeleton";
13929
14204
 
13930
14205
  // src/molecules/RadioButton/RadioButton.tsx
13931
- import React102 from "react";
13932
- var RadioButton2 = React102.forwardRef(
14206
+ import React103 from "react";
14207
+ var RadioButton2 = React103.forwardRef(
13933
14208
  (_a, ref) => {
13934
14209
  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
14210
  var _a2;
13936
14211
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
13937
- return !readOnly || isChecked ? /* @__PURE__ */ React102.createElement(ControlLabel, {
14212
+ return !readOnly || isChecked ? /* @__PURE__ */ React103.createElement(ControlLabel, {
13938
14213
  htmlFor: id,
13939
14214
  label: children,
13940
14215
  "aria-label": ariaLabel,
@@ -13943,7 +14218,7 @@ var RadioButton2 = React102.forwardRef(
13943
14218
  disabled,
13944
14219
  style: { gap: "0 8px" },
13945
14220
  className: "Aquarium-RadioButton"
13946
- }, !readOnly && /* @__PURE__ */ React102.createElement(RadioButton, __spreadProps(__spreadValues({
14221
+ }, !readOnly && /* @__PURE__ */ React103.createElement(RadioButton, __spreadProps(__spreadValues({
13947
14222
  id,
13948
14223
  ref,
13949
14224
  name
@@ -13954,12 +14229,12 @@ var RadioButton2 = React102.forwardRef(
13954
14229
  }
13955
14230
  );
13956
14231
  RadioButton2.displayName = "RadioButton";
13957
- var RadioButtonSkeleton = () => /* @__PURE__ */ React102.createElement("div", {
14232
+ var RadioButtonSkeleton = () => /* @__PURE__ */ React103.createElement("div", {
13958
14233
  className: tw("flex gap-3")
13959
- }, /* @__PURE__ */ React102.createElement(Skeleton, {
14234
+ }, /* @__PURE__ */ React103.createElement(Skeleton, {
13960
14235
  height: 20,
13961
14236
  width: 20
13962
- }), /* @__PURE__ */ React102.createElement(Skeleton, {
14237
+ }), /* @__PURE__ */ React103.createElement(Skeleton, {
13963
14238
  height: 20,
13964
14239
  width: 150
13965
14240
  }));
@@ -13967,10 +14242,10 @@ RadioButton2.Skeleton = RadioButtonSkeleton;
13967
14242
  RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
13968
14243
 
13969
14244
  // src/molecules/RadioButtonGroup/RadioButtonGroup.tsx
13970
- import React103 from "react";
14245
+ import React104 from "react";
13971
14246
  import { useId as useId15 } from "@react-aria/utils";
13972
14247
  var isRadioButton = (c) => {
13973
- return React103.isValidElement(c) && c.type === RadioButton2;
14248
+ return React104.isValidElement(c) && c.type === RadioButton2;
13974
14249
  };
13975
14250
  var RadioButtonGroup = (_a) => {
13976
14251
  var _b = _a, {
@@ -13993,7 +14268,7 @@ var RadioButtonGroup = (_a) => {
13993
14268
  "children"
13994
14269
  ]);
13995
14270
  var _a2;
13996
- const [value, setValue] = React103.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
14271
+ const [value, setValue] = React104.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
13997
14272
  const errorMessageId = useId15();
13998
14273
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13999
14274
  const labelControlProps = getLabelControlProps(props);
@@ -14004,14 +14279,14 @@ var RadioButtonGroup = (_a) => {
14004
14279
  setValue(e.target.value);
14005
14280
  onChange == null ? void 0 : onChange(e.target.value);
14006
14281
  };
14007
- const content = React103.Children.map(children, (c) => {
14282
+ const content = React104.Children.map(children, (c) => {
14008
14283
  var _a3, _b2, _c;
14009
14284
  if (!isRadioButton(c)) {
14010
14285
  return null;
14011
14286
  }
14012
14287
  const defaultChecked = defaultValue === void 0 ? void 0 : c.props.value === defaultValue;
14013
14288
  const checked = value === void 0 ? void 0 : c.props.value === value;
14014
- return React103.cloneElement(c, {
14289
+ return React104.cloneElement(c, {
14015
14290
  name,
14016
14291
  defaultChecked: (_a3 = c.props.defaultChecked) != null ? _a3 : defaultChecked,
14017
14292
  checked: (_b2 = c.props.checked) != null ? _b2 : checked,
@@ -14020,13 +14295,13 @@ var RadioButtonGroup = (_a) => {
14020
14295
  readOnly
14021
14296
  });
14022
14297
  });
14023
- return /* @__PURE__ */ React103.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
14298
+ return /* @__PURE__ */ React104.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
14024
14299
  fieldset: true
14025
14300
  }, labelControlProps), errorProps), {
14026
14301
  className: "Aquarium-RadioButtonGroup"
14027
- }), cols && /* @__PURE__ */ React103.createElement(InputGroup, {
14302
+ }), cols && /* @__PURE__ */ React104.createElement(InputGroup, {
14028
14303
  cols
14029
- }, content), !cols && /* @__PURE__ */ React103.createElement(Flexbox, {
14304
+ }, content), !cols && /* @__PURE__ */ React104.createElement(Flexbox, {
14030
14305
  direction,
14031
14306
  alignItems: "flex-start",
14032
14307
  colGap: "8",
@@ -14035,12 +14310,12 @@ var RadioButtonGroup = (_a) => {
14035
14310
  }, content));
14036
14311
  };
14037
14312
  var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
14038
- return /* @__PURE__ */ React103.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React103.createElement("div", {
14313
+ return /* @__PURE__ */ React104.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React104.createElement("div", {
14039
14314
  className: tw("flex flex-wrap", {
14040
14315
  "flex-row gap-8": direction === "row",
14041
14316
  "flex-col gap-2": direction === "column"
14042
14317
  })
14043
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React103.createElement(RadioButton2.Skeleton, {
14318
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React104.createElement(RadioButton2.Skeleton, {
14044
14319
  key
14045
14320
  }))));
14046
14321
  };
@@ -14048,24 +14323,24 @@ RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
14048
14323
  RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
14049
14324
 
14050
14325
  // src/molecules/Section/Section.tsx
14051
- import React108 from "react";
14326
+ import React109 from "react";
14052
14327
  import { useId as useId16 } from "@react-aria/utils";
14053
14328
  import { animated as animated5, useSpring as useSpring4 } from "@react-spring/web";
14054
- import castArray5 from "lodash/castArray";
14329
+ import castArray7 from "lodash/castArray";
14055
14330
  import isUndefined9 from "lodash/isUndefined";
14056
14331
 
14057
14332
  // src/molecules/Switch/Switch.tsx
14058
- import React105 from "react";
14333
+ import React106 from "react";
14059
14334
 
14060
14335
  // src/atoms/Switch/Switch.tsx
14061
- import React104 from "react";
14336
+ import React105 from "react";
14062
14337
  var import_ban2 = __toESM(require_ban());
14063
- var Switch = React104.forwardRef(
14338
+ var Switch = React105.forwardRef(
14064
14339
  (_a, ref) => {
14065
14340
  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", {
14341
+ return /* @__PURE__ */ React105.createElement("span", {
14067
14342
  className: tw("relative inline-flex justify-center items-center self-center group")
14068
- }, /* @__PURE__ */ React104.createElement("input", __spreadProps(__spreadValues({
14343
+ }, /* @__PURE__ */ React105.createElement("input", __spreadProps(__spreadValues({
14069
14344
  id,
14070
14345
  ref,
14071
14346
  type: "checkbox",
@@ -14084,7 +14359,7 @@ var Switch = React104.forwardRef(
14084
14359
  ),
14085
14360
  readOnly,
14086
14361
  disabled
14087
- })), /* @__PURE__ */ React104.createElement("span", {
14362
+ })), /* @__PURE__ */ React105.createElement("span", {
14088
14363
  className: tw(
14089
14364
  "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
14365
  "bg-white left-2 peer-checked/switch:left-1 text-grey-30 peer-checked/switch:text-primary-60",
@@ -14092,7 +14367,7 @@ var Switch = React104.forwardRef(
14092
14367
  "shadow-4dp": !disabled
14093
14368
  }
14094
14369
  )
14095
- }, disabled && /* @__PURE__ */ React104.createElement(Icon, {
14370
+ }, disabled && /* @__PURE__ */ React105.createElement(Icon, {
14096
14371
  icon: import_ban2.default,
14097
14372
  width: "10px",
14098
14373
  height: "10px"
@@ -14101,7 +14376,7 @@ var Switch = React104.forwardRef(
14101
14376
  );
14102
14377
 
14103
14378
  // src/molecules/Switch/Switch.tsx
14104
- var Switch2 = React105.forwardRef(
14379
+ var Switch2 = React106.forwardRef(
14105
14380
  (_a, ref) => {
14106
14381
  var _b = _a, {
14107
14382
  id,
@@ -14124,7 +14399,7 @@ var Switch2 = React105.forwardRef(
14124
14399
  ]);
14125
14400
  var _a2;
14126
14401
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
14127
- return !readOnly || isChecked ? /* @__PURE__ */ React105.createElement(ControlLabel, {
14402
+ return !readOnly || isChecked ? /* @__PURE__ */ React106.createElement(ControlLabel, {
14128
14403
  htmlFor: id,
14129
14404
  label: children,
14130
14405
  "aria-label": ariaLabel,
@@ -14134,7 +14409,7 @@ var Switch2 = React105.forwardRef(
14134
14409
  style: { gap: "0 8px" },
14135
14410
  labelPlacement,
14136
14411
  className: "Aquarium-Switch"
14137
- }, !readOnly && /* @__PURE__ */ React105.createElement(Switch, __spreadProps(__spreadValues({
14412
+ }, !readOnly && /* @__PURE__ */ React106.createElement(Switch, __spreadProps(__spreadValues({
14138
14413
  id,
14139
14414
  ref,
14140
14415
  name
@@ -14145,12 +14420,12 @@ var Switch2 = React105.forwardRef(
14145
14420
  }
14146
14421
  );
14147
14422
  Switch2.displayName = "Switch";
14148
- var SwitchSkeleton = () => /* @__PURE__ */ React105.createElement("div", {
14423
+ var SwitchSkeleton = () => /* @__PURE__ */ React106.createElement("div", {
14149
14424
  className: tw("flex gap-3")
14150
- }, /* @__PURE__ */ React105.createElement(Skeleton, {
14425
+ }, /* @__PURE__ */ React106.createElement(Skeleton, {
14151
14426
  height: 20,
14152
14427
  width: 35
14153
- }), /* @__PURE__ */ React105.createElement(Skeleton, {
14428
+ }), /* @__PURE__ */ React106.createElement(Skeleton, {
14154
14429
  height: 20,
14155
14430
  width: 150
14156
14431
  }));
@@ -14158,7 +14433,7 @@ Switch2.Skeleton = SwitchSkeleton;
14158
14433
  Switch2.Skeleton.displayName = "Switch.Skeleton ";
14159
14434
 
14160
14435
  // src/molecules/TagLabel/TagLabel.tsx
14161
- import React106 from "react";
14436
+ import React107 from "react";
14162
14437
  var getVariantClassNames = (variant = "primary") => {
14163
14438
  switch (variant) {
14164
14439
  case "danger":
@@ -14172,7 +14447,7 @@ var getVariantClassNames = (variant = "primary") => {
14172
14447
  };
14173
14448
  var TagLabel = (_a) => {
14174
14449
  var _b = _a, { title, dense = false, variant } = _b, rest = __objRest(_b, ["title", "dense", "variant"]);
14175
- return /* @__PURE__ */ React106.createElement("span", __spreadProps(__spreadValues({}, rest), {
14450
+ return /* @__PURE__ */ React107.createElement("span", __spreadProps(__spreadValues({}, rest), {
14176
14451
  className: classNames(
14177
14452
  "Aquarium-TagLabel",
14178
14453
  getVariantClassNames(variant),
@@ -14185,11 +14460,11 @@ var TagLabel = (_a) => {
14185
14460
  };
14186
14461
 
14187
14462
  // src/atoms/Section/Section.tsx
14188
- import React107 from "react";
14463
+ import React108 from "react";
14189
14464
  var import_caretUp2 = __toESM(require_caretUp());
14190
14465
  var Section3 = (_a) => {
14191
14466
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
14192
- return /* @__PURE__ */ React107.createElement(Box, __spreadValues({
14467
+ return /* @__PURE__ */ React108.createElement(Box, __spreadValues({
14193
14468
  component: "section",
14194
14469
  borderColor: "grey-5",
14195
14470
  borderWidth: "1px"
@@ -14197,7 +14472,7 @@ var Section3 = (_a) => {
14197
14472
  };
14198
14473
  Section3.Header = (_a) => {
14199
14474
  var _b = _a, { children, className, expanded } = _b, rest = __objRest(_b, ["children", "className", "expanded"]);
14200
- return /* @__PURE__ */ React107.createElement("div", __spreadProps(__spreadValues({}, rest), {
14475
+ return /* @__PURE__ */ React108.createElement("div", __spreadProps(__spreadValues({}, rest), {
14201
14476
  className: classNames(
14202
14477
  tw("px-6 flex gap-5 justify-between items-center h-[72px]", { "bg-grey-0": expanded }),
14203
14478
  className
@@ -14206,21 +14481,21 @@ Section3.Header = (_a) => {
14206
14481
  };
14207
14482
  Section3.TitleContainer = (_a) => {
14208
14483
  var _b = _a, { children, className, collapsible } = _b, rest = __objRest(_b, ["children", "className", "collapsible"]);
14209
- return /* @__PURE__ */ React107.createElement("div", __spreadProps(__spreadValues({}, rest), {
14484
+ return /* @__PURE__ */ React108.createElement("div", __spreadProps(__spreadValues({}, rest), {
14210
14485
  className: classNames(
14211
14486
  tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", { "cursor-pointer": collapsible }),
14212
14487
  className
14213
14488
  )
14214
14489
  }), children);
14215
14490
  };
14216
- Section3.Toggle = (props) => /* @__PURE__ */ React107.createElement(Icon, __spreadProps(__spreadValues({}, props), {
14491
+ Section3.Toggle = (props) => /* @__PURE__ */ React108.createElement(Icon, __spreadProps(__spreadValues({}, props), {
14217
14492
  icon: import_caretUp2.default,
14218
14493
  height: 22,
14219
14494
  width: 22
14220
14495
  }));
14221
14496
  Section3.Title = (_a) => {
14222
14497
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
14223
- return /* @__PURE__ */ React107.createElement(Typography2.Large, __spreadProps(__spreadValues({}, rest), {
14498
+ return /* @__PURE__ */ React108.createElement(Typography2.Large, __spreadProps(__spreadValues({}, rest), {
14224
14499
  htmlTag: "h2",
14225
14500
  color: "black",
14226
14501
  className: "flex gap-3 items-center"
@@ -14228,21 +14503,21 @@ Section3.Title = (_a) => {
14228
14503
  };
14229
14504
  Section3.Subtitle = (_a) => {
14230
14505
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
14231
- return /* @__PURE__ */ React107.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
14506
+ return /* @__PURE__ */ React108.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
14232
14507
  color: "grey-70"
14233
14508
  }), children);
14234
14509
  };
14235
14510
  Section3.Actions = (_a) => {
14236
14511
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14237
- return /* @__PURE__ */ React107.createElement("div", __spreadProps(__spreadValues({}, rest), {
14512
+ return /* @__PURE__ */ React108.createElement("div", __spreadProps(__spreadValues({}, rest), {
14238
14513
  className: classNames(tw("flex gap-4 justify-end"), className)
14239
14514
  }), children);
14240
14515
  };
14241
14516
  Section3.Body = (_a) => {
14242
14517
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14243
- return /* @__PURE__ */ React107.createElement("div", __spreadProps(__spreadValues({}, rest), {
14518
+ return /* @__PURE__ */ React108.createElement("div", __spreadProps(__spreadValues({}, rest), {
14244
14519
  className: classNames(tw("p-6"), className)
14245
- }), /* @__PURE__ */ React107.createElement(Typography, {
14520
+ }), /* @__PURE__ */ React108.createElement(Typography, {
14246
14521
  htmlTag: "div",
14247
14522
  color: "grey-70"
14248
14523
  }, children));
@@ -14256,7 +14531,7 @@ var Section4 = (props) => {
14256
14531
  const _collapsible = title ? (_a = props.collapsible) != null ? _a : false : false;
14257
14532
  const _collapsed = title ? props.collapsed : void 0;
14258
14533
  const _defaultCollapsed = title ? (_b = props.defaultCollapsed) != null ? _b : false : false;
14259
- const [isCollapsed, setCollapsed] = React108.useState(_collapsed != null ? _collapsed : _defaultCollapsed);
14534
+ const [isCollapsed, setCollapsed] = React109.useState(_collapsed != null ? _collapsed : _defaultCollapsed);
14260
14535
  const [ref, { height }] = useMeasure();
14261
14536
  const menu = title ? (_c = props.menu) != null ? _c : void 0 : void 0;
14262
14537
  const menuAriaLabel = title ? (_e = (_d = props.menuAriaLabel) != null ? _d : props.menuLabel) != null ? _e : "Context menu" : void 0;
@@ -14291,61 +14566,61 @@ var Section4 = (props) => {
14291
14566
  const regionId = useId16();
14292
14567
  const titleId = useId16();
14293
14568
  const hasTabs = isComponentType(children, Tabs);
14294
- return /* @__PURE__ */ React108.createElement(Section3, {
14569
+ return /* @__PURE__ */ React109.createElement(Section3, {
14295
14570
  "aria-label": title,
14296
14571
  className: "Aquarium-Section"
14297
- }, title && /* @__PURE__ */ React108.createElement(React108.Fragment, null, /* @__PURE__ */ React108.createElement(Section3.Header, {
14572
+ }, title && /* @__PURE__ */ React109.createElement(React109.Fragment, null, /* @__PURE__ */ React109.createElement(Section3.Header, {
14298
14573
  expanded: _collapsible && !isCollapsed
14299
- }, /* @__PURE__ */ React108.createElement(Section3.TitleContainer, {
14574
+ }, /* @__PURE__ */ React109.createElement(Section3.TitleContainer, {
14300
14575
  role: _collapsible ? "button" : void 0,
14301
14576
  id: toggleId,
14302
14577
  collapsible: _collapsible,
14303
14578
  onClick: handleTitleClick,
14304
14579
  "aria-expanded": _collapsible ? !isCollapsed : void 0,
14305
14580
  "aria-controls": _collapsible ? regionId : void 0
14306
- }, _collapsible && /* @__PURE__ */ React108.createElement(animated5.div, {
14581
+ }, _collapsible && /* @__PURE__ */ React109.createElement(animated5.div, {
14307
14582
  style: { transform }
14308
- }, /* @__PURE__ */ React108.createElement(Section3.Toggle, null)), /* @__PURE__ */ React108.createElement(Section3.Title, {
14583
+ }, /* @__PURE__ */ React109.createElement(Section3.Toggle, null)), /* @__PURE__ */ React109.createElement(Section3.Title, {
14309
14584
  id: titleId
14310
- }, /* @__PURE__ */ React108.createElement(LineClamp2, {
14585
+ }, /* @__PURE__ */ React109.createElement(LineClamp2, {
14311
14586
  lines: 1
14312
- }, title), props.tag && /* @__PURE__ */ React108.createElement(TagLabel, __spreadValues({}, props.tag)), props.badge && /* @__PURE__ */ React108.createElement(Chip2, {
14587
+ }, title), props.tag && /* @__PURE__ */ React109.createElement(TagLabel, __spreadValues({}, props.tag)), props.badge && /* @__PURE__ */ React109.createElement(Chip2, {
14313
14588
  text: props.badge
14314
- }), props.chip && /* @__PURE__ */ React108.createElement(StatusChip, __spreadValues({}, props.chip))), subtitle && /* @__PURE__ */ React108.createElement(Section3.Subtitle, {
14589
+ }), props.chip && /* @__PURE__ */ React109.createElement(StatusChip, __spreadValues({}, props.chip))), subtitle && /* @__PURE__ */ React109.createElement(Section3.Subtitle, {
14315
14590
  className: tw("row-start-2", { "col-start-2": _collapsible })
14316
- }, /* @__PURE__ */ React108.createElement(LineClamp2, {
14591
+ }, /* @__PURE__ */ React109.createElement(LineClamp2, {
14317
14592
  lines: 1
14318
- }, subtitle))), !isCollapsed && /* @__PURE__ */ React108.createElement(Section3.Actions, null, menu && /* @__PURE__ */ React108.createElement(Box.Flex, {
14593
+ }, subtitle))), !isCollapsed && /* @__PURE__ */ React109.createElement(Section3.Actions, null, menu && /* @__PURE__ */ React109.createElement(Box.Flex, {
14319
14594
  alignItems: "center"
14320
- }, /* @__PURE__ */ React108.createElement(DropdownMenu2, {
14595
+ }, /* @__PURE__ */ React109.createElement(DropdownMenu2, {
14321
14596
  onAction: (action) => onAction == null ? void 0 : onAction(action),
14322
14597
  onOpenChange: onMenuOpenChange,
14323
- placement: "bottom-right"
14324
- }, /* @__PURE__ */ React108.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React108.createElement(Button.Icon, {
14598
+ placement: defaultContextualMenuPlacement
14599
+ }, /* @__PURE__ */ React109.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React109.createElement(Button.Icon, {
14325
14600
  "aria-label": menuAriaLabel,
14326
14601
  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({
14602
+ })), menu)), props.actions && castArray7(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
14603
  "aria-labelledby": titleId
14329
- }, props.select)))), !hasTabs && /* @__PURE__ */ React108.createElement(animated5.div, {
14604
+ }, props.select)))), !hasTabs && /* @__PURE__ */ React109.createElement(animated5.div, {
14330
14605
  className: tw(`h-[1px]`),
14331
14606
  style: { backgroundColor }
14332
- })), /* @__PURE__ */ React108.createElement(animated5.div, {
14607
+ })), /* @__PURE__ */ React109.createElement(animated5.div, {
14333
14608
  id: regionId,
14334
14609
  "aria-hidden": _collapsible ? isCollapsed ? true : void 0 : void 0,
14335
14610
  style: spring,
14336
14611
  className: tw({ "overflow-hidden": _collapsible })
14337
- }, /* @__PURE__ */ React108.createElement("div", {
14612
+ }, /* @__PURE__ */ React109.createElement("div", {
14338
14613
  ref
14339
- }, hasTabs ? /* @__PURE__ */ React108.createElement(SectionTabs, __spreadProps(__spreadValues({}, children.props), {
14614
+ }, hasTabs ? /* @__PURE__ */ React109.createElement(SectionTabs, __spreadProps(__spreadValues({}, children.props), {
14340
14615
  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))));
14616
+ })) : /* @__PURE__ */ React109.createElement(Section3.Body, null, children))));
14342
14617
  };
14343
- var SectionTabs = createTabsComponent(ModalTab, TabItem, "SectionTabs", (children, selected) => /* @__PURE__ */ React108.createElement(Section3.Body, null, children.find(
14618
+ var SectionTabs = createTabsComponent(ModalTab, TabItem, "SectionTabs", (children, selected) => /* @__PURE__ */ React109.createElement(Section3.Body, null, children.find(
14344
14619
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
14345
14620
  )));
14346
14621
 
14347
14622
  // src/molecules/SegmentedControl/SegmentedControl.tsx
14348
- import React109 from "react";
14623
+ import React110 from "react";
14349
14624
  var SegmentedControl = (_a) => {
14350
14625
  var _b = _a, {
14351
14626
  children,
@@ -14362,7 +14637,7 @@ var SegmentedControl = (_a) => {
14362
14637
  "selected",
14363
14638
  "className"
14364
14639
  ]);
14365
- return /* @__PURE__ */ React109.createElement("li", null, /* @__PURE__ */ React109.createElement("button", __spreadProps(__spreadValues({
14640
+ return /* @__PURE__ */ React110.createElement("li", null, /* @__PURE__ */ React110.createElement("button", __spreadProps(__spreadValues({
14366
14641
  type: "button"
14367
14642
  }, rest), {
14368
14643
  className: classNames(
@@ -14396,12 +14671,12 @@ var SegmentedControlGroup = (_a) => {
14396
14671
  "border border-default text-grey-50": variant === "outlined",
14397
14672
  "bg-grey-0": variant === "raised"
14398
14673
  });
14399
- return /* @__PURE__ */ React109.createElement("ul", __spreadProps(__spreadValues({}, rest), {
14674
+ return /* @__PURE__ */ React110.createElement("ul", __spreadProps(__spreadValues({}, rest), {
14400
14675
  "aria-label": ariaLabel,
14401
14676
  className: classNames("Aquarium-SegmentedControl", classes2, className)
14402
- }), React109.Children.map(
14677
+ }), React110.Children.map(
14403
14678
  children,
14404
- (child) => React109.cloneElement(child, {
14679
+ (child) => React110.cloneElement(child, {
14405
14680
  dense,
14406
14681
  variant,
14407
14682
  onClick: () => onChange(child.props.value),
@@ -14439,14 +14714,14 @@ var getCommonClassNames = (dense, selected) => tw(
14439
14714
  );
14440
14715
 
14441
14716
  // src/molecules/Stepper/Stepper.tsx
14442
- import React111 from "react";
14717
+ import React112 from "react";
14443
14718
 
14444
14719
  // src/atoms/Stepper/Stepper.tsx
14445
- import React110 from "react";
14720
+ import React111 from "react";
14446
14721
  var import_tick6 = __toESM(require_tick());
14447
14722
  var Stepper = (_a) => {
14448
14723
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14449
- return /* @__PURE__ */ React110.createElement("div", __spreadProps(__spreadValues({}, rest), {
14724
+ return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
14450
14725
  className: classNames(className)
14451
14726
  }));
14452
14727
  };
@@ -14460,7 +14735,7 @@ var ConnectorContainer = (_a) => {
14460
14735
  "completed",
14461
14736
  "dense"
14462
14737
  ]);
14463
- return /* @__PURE__ */ React110.createElement("div", __spreadProps(__spreadValues({}, rest), {
14738
+ return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
14464
14739
  className: classNames(
14465
14740
  tw("absolute w-full -left-1/2", {
14466
14741
  "top-[3px] px-[14px]": Boolean(dense),
@@ -14472,7 +14747,7 @@ var ConnectorContainer = (_a) => {
14472
14747
  };
14473
14748
  var Connector = (_a) => {
14474
14749
  var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
14475
- return /* @__PURE__ */ React110.createElement("div", __spreadProps(__spreadValues({}, rest), {
14750
+ return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
14476
14751
  className: classNames(
14477
14752
  tw("w-full", {
14478
14753
  "bg-grey-20": !completed,
@@ -14486,7 +14761,7 @@ var Connector = (_a) => {
14486
14761
  };
14487
14762
  var Step = (_a) => {
14488
14763
  var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
14489
- return /* @__PURE__ */ React110.createElement("div", __spreadProps(__spreadValues({}, rest), {
14764
+ return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
14490
14765
  className: classNames(
14491
14766
  tw("flex flex-col items-center text-grey-90 relative text-center", {
14492
14767
  "text-grey-20": state === "inactive"
@@ -14507,13 +14782,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
14507
14782
  });
14508
14783
  var Indicator = (_a) => {
14509
14784
  var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
14510
- return /* @__PURE__ */ React110.createElement("div", __spreadProps(__spreadValues({}, rest), {
14785
+ return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
14511
14786
  className: classNames(
14512
14787
  tw("rounded-full flex justify-center items-center mx-2 mb-3"),
14513
14788
  dense ? getDenseClassNames(state) : getClassNames(state),
14514
14789
  className
14515
14790
  )
14516
- }), state === "completed" ? /* @__PURE__ */ React110.createElement(InlineIcon, {
14791
+ }), state === "completed" ? /* @__PURE__ */ React111.createElement(InlineIcon, {
14517
14792
  icon: import_tick6.default
14518
14793
  }) : dense ? null : children);
14519
14794
  };
@@ -14524,26 +14799,26 @@ Stepper.ConnectorContainer = ConnectorContainer;
14524
14799
 
14525
14800
  // src/molecules/Stepper/Stepper.tsx
14526
14801
  var Stepper2 = ({ children, activeIndex, dense }) => {
14527
- const steps = React111.Children.count(children);
14528
- return /* @__PURE__ */ React111.createElement(Stepper, {
14802
+ const steps = React112.Children.count(children);
14803
+ return /* @__PURE__ */ React112.createElement(Stepper, {
14529
14804
  role: "list",
14530
14805
  className: "Aquarium-Stepper"
14531
- }, /* @__PURE__ */ React111.createElement(Template, {
14806
+ }, /* @__PURE__ */ React112.createElement(Template, {
14532
14807
  columns: steps
14533
- }, React111.Children.map(children, (child, index) => {
14808
+ }, React112.Children.map(children, (child, index) => {
14534
14809
  if (!isComponentType(child, Step2)) {
14535
14810
  throw new Error("<Stepper> can only have <Stepper.Step> components as children");
14536
14811
  } else {
14537
14812
  const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
14538
- return /* @__PURE__ */ React111.createElement(Stepper.Step, {
14813
+ return /* @__PURE__ */ React112.createElement(Stepper.Step, {
14539
14814
  state,
14540
14815
  "aria-current": state === "active" ? "step" : false,
14541
14816
  role: "listitem"
14542
- }, index > 0 && index <= steps && /* @__PURE__ */ React111.createElement(Stepper.ConnectorContainer, {
14817
+ }, index > 0 && index <= steps && /* @__PURE__ */ React112.createElement(Stepper.ConnectorContainer, {
14543
14818
  dense
14544
- }, /* @__PURE__ */ React111.createElement(Stepper.ConnectorContainer.Connector, {
14819
+ }, /* @__PURE__ */ React112.createElement(Stepper.ConnectorContainer.Connector, {
14545
14820
  completed: state === "completed" || state === "active"
14546
- })), /* @__PURE__ */ React111.createElement(Stepper.Step.Indicator, {
14821
+ })), /* @__PURE__ */ React112.createElement(Stepper.Step.Indicator, {
14547
14822
  state,
14548
14823
  dense
14549
14824
  }, index + 1), child.props.children);
@@ -14556,7 +14831,7 @@ Step2.displayName = "Stepper.Step";
14556
14831
  Stepper2.Step = Step2;
14557
14832
 
14558
14833
  // src/molecules/SwitchGroup/SwitchGroup.tsx
14559
- import React112, { useState as useState13 } from "react";
14834
+ import React113, { useState as useState13 } from "react";
14560
14835
  import { useId as useId17 } from "@react-aria/utils";
14561
14836
  var SwitchGroup = (_a) => {
14562
14837
  var _b = _a, {
@@ -14588,13 +14863,13 @@ var SwitchGroup = (_a) => {
14588
14863
  setSelectedItems(updated);
14589
14864
  onChange == null ? void 0 : onChange(updated);
14590
14865
  };
14591
- return /* @__PURE__ */ React112.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
14866
+ return /* @__PURE__ */ React113.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
14592
14867
  fieldset: true
14593
14868
  }, labelControlProps), errorProps), {
14594
14869
  className: "Aquarium-SwitchGroup"
14595
- }), /* @__PURE__ */ React112.createElement(InputGroup, {
14870
+ }), /* @__PURE__ */ React113.createElement(InputGroup, {
14596
14871
  cols
14597
- }, React112.Children.map(children, (c) => {
14872
+ }, React113.Children.map(children, (c) => {
14598
14873
  var _a3, _b2, _c, _d;
14599
14874
  if (!isComponentType(c, Switch2)) {
14600
14875
  return null;
@@ -14602,7 +14877,7 @@ var SwitchGroup = (_a) => {
14602
14877
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
14603
14878
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
14604
14879
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
14605
- return React112.cloneElement(c, {
14880
+ return React113.cloneElement(c, {
14606
14881
  defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
14607
14882
  checked: (_c = c.props.checked) != null ? _c : checked,
14608
14883
  onChange: (_d = c.props.onChange) != null ? _d : handleChange,
@@ -14612,9 +14887,9 @@ var SwitchGroup = (_a) => {
14612
14887
  })));
14613
14888
  };
14614
14889
  var SwitchGroupSkeleton = ({ options = 2 }) => {
14615
- return /* @__PURE__ */ React112.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React112.createElement("div", {
14890
+ return /* @__PURE__ */ React113.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React113.createElement("div", {
14616
14891
  className: tw("flex flex-wrap flex-col gap-2")
14617
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React112.createElement(Switch2.Skeleton, {
14892
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React113.createElement(Switch2.Skeleton, {
14618
14893
  key
14619
14894
  }))));
14620
14895
  };
@@ -14622,14 +14897,14 @@ SwitchGroup.Skeleton = SwitchGroupSkeleton;
14622
14897
  SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
14623
14898
 
14624
14899
  // src/molecules/Textarea/Textarea.tsx
14625
- import React113, { useState as useState14 } from "react";
14900
+ import React114, { useState as useState14 } from "react";
14626
14901
  import { useId as useId18 } from "@react-aria/utils";
14627
14902
  import omit16 from "lodash/omit";
14628
14903
  import toString2 from "lodash/toString";
14629
- var TextareaBase = React113.forwardRef(
14904
+ var TextareaBase = React114.forwardRef(
14630
14905
  (_a, ref) => {
14631
14906
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
14632
- return /* @__PURE__ */ React113.createElement("textarea", __spreadProps(__spreadValues({
14907
+ return /* @__PURE__ */ React114.createElement("textarea", __spreadProps(__spreadValues({
14633
14908
  ref
14634
14909
  }, props), {
14635
14910
  readOnly,
@@ -14637,10 +14912,10 @@ var TextareaBase = React113.forwardRef(
14637
14912
  }));
14638
14913
  }
14639
14914
  );
14640
- TextareaBase.Skeleton = () => /* @__PURE__ */ React113.createElement(Skeleton, {
14915
+ TextareaBase.Skeleton = () => /* @__PURE__ */ React114.createElement(Skeleton, {
14641
14916
  height: 58
14642
14917
  });
14643
- var Textarea = React113.forwardRef((props, ref) => {
14918
+ var Textarea = React114.forwardRef((props, ref) => {
14644
14919
  var _a, _b, _c;
14645
14920
  const [value, setValue] = useState14((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
14646
14921
  const defaultId = useId18();
@@ -14649,14 +14924,14 @@ var Textarea = React113.forwardRef((props, ref) => {
14649
14924
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
14650
14925
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
14651
14926
  const baseProps = omit16(props, Object.keys(labelControlProps));
14652
- return /* @__PURE__ */ React113.createElement(LabelControl, __spreadProps(__spreadValues({
14927
+ return /* @__PURE__ */ React114.createElement(LabelControl, __spreadProps(__spreadValues({
14653
14928
  id: `${id}-label`,
14654
14929
  htmlFor: id,
14655
14930
  messageId: errorMessageId,
14656
14931
  length: value !== void 0 ? toString2(value).length : void 0
14657
14932
  }, labelControlProps), {
14658
14933
  className: "Aquarium-Textarea"
14659
- }), /* @__PURE__ */ React113.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
14934
+ }), /* @__PURE__ */ React114.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
14660
14935
  ref
14661
14936
  }, baseProps), errorProps), {
14662
14937
  id,
@@ -14673,48 +14948,48 @@ var Textarea = React113.forwardRef((props, ref) => {
14673
14948
  })));
14674
14949
  });
14675
14950
  Textarea.displayName = "Textarea";
14676
- var TextAreaSkeleton = () => /* @__PURE__ */ React113.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React113.createElement(TextareaBase.Skeleton, null));
14951
+ var TextAreaSkeleton = () => /* @__PURE__ */ React114.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React114.createElement(TextareaBase.Skeleton, null));
14677
14952
  Textarea.Skeleton = TextAreaSkeleton;
14678
14953
  Textarea.Skeleton.displayName = "Textarea.Skeleton";
14679
14954
 
14680
14955
  // src/molecules/Timeline/Timeline.tsx
14681
- import React115 from "react";
14956
+ import React116 from "react";
14682
14957
 
14683
14958
  // src/atoms/Timeline/Timeline.tsx
14684
- import React114 from "react";
14959
+ import React115 from "react";
14685
14960
  var Timeline = (_a) => {
14686
14961
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14687
- return /* @__PURE__ */ React114.createElement("div", __spreadProps(__spreadValues({}, rest), {
14962
+ return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
14688
14963
  className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
14689
14964
  }));
14690
14965
  };
14691
14966
  var Content2 = (_a) => {
14692
14967
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14693
- return /* @__PURE__ */ React114.createElement("div", __spreadProps(__spreadValues({}, rest), {
14968
+ return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
14694
14969
  className: classNames(tw("pb-6"), className)
14695
14970
  }));
14696
14971
  };
14697
14972
  var Separator2 = (_a) => {
14698
14973
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14699
- return /* @__PURE__ */ React114.createElement("div", __spreadProps(__spreadValues({}, rest), {
14974
+ return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
14700
14975
  className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
14701
14976
  }));
14702
14977
  };
14703
14978
  var LineContainer = (_a) => {
14704
14979
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14705
- return /* @__PURE__ */ React114.createElement("div", __spreadProps(__spreadValues({}, rest), {
14980
+ return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
14706
14981
  className: classNames(tw("flex justify-center py-1"), className)
14707
14982
  }));
14708
14983
  };
14709
14984
  var Line = (_a) => {
14710
14985
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14711
- return /* @__PURE__ */ React114.createElement("div", __spreadProps(__spreadValues({}, rest), {
14986
+ return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
14712
14987
  className: classNames(tw("w-1 bg-grey-5 h-full justify-self-center"), className)
14713
14988
  }));
14714
14989
  };
14715
14990
  var Dot = (_a) => {
14716
14991
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14717
- return /* @__PURE__ */ React114.createElement("div", __spreadProps(__spreadValues({}, rest), {
14992
+ return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
14718
14993
  className: classNames(tw("bg-grey-30 h-[6px] w-[6px] rounded"), className)
14719
14994
  }));
14720
14995
  };
@@ -14729,54 +15004,54 @@ var import_error5 = __toESM(require_error());
14729
15004
  var import_time2 = __toESM(require_time());
14730
15005
  var import_warningSign5 = __toESM(require_warningSign());
14731
15006
  var TimelineItem = () => null;
14732
- var Timeline2 = ({ children }) => /* @__PURE__ */ React115.createElement("div", {
15007
+ var Timeline2 = ({ children }) => /* @__PURE__ */ React116.createElement("div", {
14733
15008
  className: "Aquarium-Timeline"
14734
- }, React115.Children.map(children, (item) => {
15009
+ }, React116.Children.map(children, (item) => {
14735
15010
  if (!isComponentType(item, TimelineItem)) {
14736
15011
  throw new Error("<Timeline> can only have <Timeline.Item> components as children");
14737
15012
  } else {
14738
15013
  const { props, key } = item;
14739
- return /* @__PURE__ */ React115.createElement(Timeline, {
15014
+ return /* @__PURE__ */ React116.createElement(Timeline, {
14740
15015
  key: key != null ? key : props.title
14741
- }, /* @__PURE__ */ React115.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React115.createElement(Icon, {
15016
+ }, /* @__PURE__ */ React116.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React116.createElement(Icon, {
14742
15017
  icon: import_error5.default,
14743
15018
  color: "error-30"
14744
- }) : props.variant === "warning" ? /* @__PURE__ */ React115.createElement(Icon, {
15019
+ }) : props.variant === "warning" ? /* @__PURE__ */ React116.createElement(Icon, {
14745
15020
  icon: import_warningSign5.default,
14746
15021
  color: "warning-30"
14747
- }) : props.variant === "info" ? /* @__PURE__ */ React115.createElement(Icon, {
15022
+ }) : props.variant === "info" ? /* @__PURE__ */ React116.createElement(Icon, {
14748
15023
  icon: import_time2.default,
14749
15024
  color: "info-30"
14750
- }) : /* @__PURE__ */ React115.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React115.createElement(Typography2.Caption, {
15025
+ }) : /* @__PURE__ */ React116.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React116.createElement(Typography2.Caption, {
14751
15026
  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)));
15027
+ }, 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
15028
  }
14754
15029
  }));
14755
- var TimelineItemSkeleton = () => /* @__PURE__ */ React115.createElement(Timeline, null, /* @__PURE__ */ React115.createElement(Timeline.Separator, null, /* @__PURE__ */ React115.createElement(Skeleton, {
15030
+ var TimelineItemSkeleton = () => /* @__PURE__ */ React116.createElement(Timeline, null, /* @__PURE__ */ React116.createElement(Timeline.Separator, null, /* @__PURE__ */ React116.createElement(Skeleton, {
14756
15031
  width: 6,
14757
15032
  height: 6,
14758
15033
  rounded: true
14759
- })), /* @__PURE__ */ React115.createElement(Skeleton, {
15034
+ })), /* @__PURE__ */ React116.createElement(Skeleton, {
14760
15035
  height: 12,
14761
15036
  width: 120
14762
- }), /* @__PURE__ */ React115.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React115.createElement(Skeleton, {
15037
+ }), /* @__PURE__ */ React116.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React116.createElement(Skeleton, {
14763
15038
  width: 2,
14764
15039
  height: "100%"
14765
- })), /* @__PURE__ */ React115.createElement(Timeline.Content, null, /* @__PURE__ */ React115.createElement(Box, {
15040
+ })), /* @__PURE__ */ React116.createElement(Timeline.Content, null, /* @__PURE__ */ React116.createElement(Box, {
14766
15041
  display: "flex",
14767
15042
  flexDirection: "column",
14768
15043
  gap: "3"
14769
- }, /* @__PURE__ */ React115.createElement(Skeleton, {
15044
+ }, /* @__PURE__ */ React116.createElement(Skeleton, {
14770
15045
  height: 32,
14771
15046
  width: "100%"
14772
- }), /* @__PURE__ */ React115.createElement(Skeleton, {
15047
+ }), /* @__PURE__ */ React116.createElement(Skeleton, {
14773
15048
  height: 32,
14774
15049
  width: "73%"
14775
- }), /* @__PURE__ */ React115.createElement(Skeleton, {
15050
+ }), /* @__PURE__ */ React116.createElement(Skeleton, {
14776
15051
  height: 32,
14777
15052
  width: "80%"
14778
15053
  }))));
14779
- var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React115.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React115.createElement(TimelineItemSkeleton, {
15054
+ var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React116.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React116.createElement(TimelineItemSkeleton, {
14780
15055
  key
14781
15056
  })));
14782
15057
  Timeline2.Item = TimelineItem;
@@ -14784,9 +15059,9 @@ Timeline2.Skeleton = TimelineSkeleton;
14784
15059
  Timeline2.Skeleton.displayName = "Timeline.Skeleton";
14785
15060
 
14786
15061
  // src/utils/table/useTableSelect.ts
14787
- import React116 from "react";
15062
+ import React117 from "react";
14788
15063
  var useTableSelect = (data, { key }) => {
14789
- const [selected, setSelected] = React116.useState([]);
15064
+ const [selected, setSelected] = React117.useState([]);
14790
15065
  const allSelected = selected.length === data.length;
14791
15066
  const isSelected = (dot) => selected.includes(dot[key]);
14792
15067
  const selectAll = () => setSelected(data.map((dot) => dot[key]));