@aivenio/aquarium 1.22.0 → 1.23.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 (34) hide show
  1. package/dist/_variables.scss +2 -2
  2. package/dist/_variables_timescale.scss +2 -2
  3. package/dist/atoms.cjs +6 -4
  4. package/dist/atoms.mjs +6 -4
  5. package/dist/src/molecules/Alert/Alert.js +2 -2
  6. package/dist/src/molecules/Banner/Banner.d.ts +3 -3
  7. package/dist/src/molecules/Banner/Banner.js +4 -2
  8. package/dist/src/molecules/DataList/DataList.d.ts +8 -2
  9. package/dist/src/molecules/DataList/DataList.js +5 -3
  10. package/dist/src/molecules/DataList/DataListSkeleton.d.ts +8 -0
  11. package/dist/src/molecules/DataList/DataListSkeleton.js +15 -0
  12. package/dist/src/molecules/DataTable/DataTable.d.ts +8 -2
  13. package/dist/src/molecules/DataTable/DataTable.js +5 -3
  14. package/dist/src/molecules/EmptyState/EmptyState.d.ts +5 -3
  15. package/dist/src/molecules/EmptyState/EmptyState.js +8 -3
  16. package/dist/src/molecules/PageHeader/PageHeader.d.ts +5 -3
  17. package/dist/src/molecules/PageHeader/PageHeader.js +6 -17
  18. package/dist/src/molecules/Section/Section.d.ts +3 -2
  19. package/dist/src/molecules/Section/Section.js +4 -16
  20. package/dist/src/utils/ContrastRatio.d.ts +11 -0
  21. package/dist/src/utils/ContrastRatio.js +54 -0
  22. package/dist/src/utils/link.d.ts +2 -0
  23. package/dist/src/utils/link.js +2 -0
  24. package/dist/src/utils/table/types.d.ts +4 -0
  25. package/dist/styles.css +17 -13
  26. package/dist/styles_timescaledb.css +17 -13
  27. package/dist/system.cjs +534 -479
  28. package/dist/system.mjs +494 -439
  29. package/dist/tailwind.config.js +0 -3
  30. package/dist/tailwind.theme.json +2 -2
  31. package/dist/tokens.json +4 -2
  32. package/dist/tsconfig.module.tsbuildinfo +1 -1
  33. package/dist/types/tailwindGenerated.d.ts +1 -1
  34. package/package.json +1 -1
package/dist/system.mjs CHANGED
@@ -164,7 +164,8 @@ var require_tokens = __commonJS({
164
164
  "primary-20": "#b4e5fb",
165
165
  "primary-10": "#e0f5fe",
166
166
  "primary-5": "#effaff",
167
- "primary-0": "#f9fdff"
167
+ "primary-0": "#f9fdff",
168
+ "navyBlue-100": "#30375e"
168
169
  },
169
170
  typography: {
170
171
  sizes: [
@@ -724,7 +725,8 @@ var require_tokens = __commonJS({
724
725
  "primary-10": "#ffdeef",
725
726
  "primary-5": "#ffe8f4",
726
727
  "primary-0": "#fff9fc",
727
- "grey-20": "#d2d2d6"
728
+ "grey-20": "#d2d2d6",
729
+ "navyBlue-100": "#30375e"
728
730
  },
729
731
  typography: {
730
732
  sizes: [
@@ -5669,11 +5671,11 @@ var tailwind_theme_default = {
5669
5671
  "primary-5": "var(--aquarium-colors-primary-5, #ffe8f4)",
5670
5672
  "primary-0": "var(--aquarium-colors-primary-0, #fff9fc)",
5671
5673
  "grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
5674
+ "navyBlue-100": "var(--aquarium-colors-navyBlue-100, #30375e)",
5672
5675
  transparent: "var(--aquarium-colors-transparent, transparent)",
5673
5676
  white: "var(--aquarium-colors-white, white)",
5674
5677
  black: "var(--aquarium-colors-black, black)",
5675
- current: "var(--aquarium-colors-current, currentColor)",
5676
- "navyBlue-100": "#30375E"
5678
+ current: "var(--aquarium-colors-current, currentColor)"
5677
5679
  },
5678
5680
  gap: {
5679
5681
  "0": "0",
@@ -7355,8 +7357,10 @@ Alert.Dismiss = (_a) => {
7355
7357
  })));
7356
7358
  };
7357
7359
 
7358
- // src/molecules/Alert/Alert.tsx
7360
+ // src/utils/link.ts
7359
7361
  var isLink = (action) => action.href !== void 0;
7362
+
7363
+ // src/molecules/Alert/Alert.tsx
7360
7364
  var Alert2 = ({ description, type, title, onDismiss, children, action }) => /* @__PURE__ */ React18.createElement(Alert, {
7361
7365
  className: "Aquarium-Alert",
7362
7366
  type,
@@ -7596,8 +7600,11 @@ var createBanner = (displayName, opts = {}) => {
7596
7600
  flexGrow: isDismissable ? false : true
7597
7601
  }, children || description), action && /* @__PURE__ */ React23.createElement(Banner.Actions, {
7598
7602
  layout
7599
- }, /* @__PURE__ */ React23.createElement(Button.Ghost, __spreadValues({
7603
+ }, !isLink(action) && /* @__PURE__ */ React23.createElement(Button.Ghost, __spreadValues({
7600
7604
  dense: true
7605
+ }, omit3(action, "text")), action.text), isLink(action) && /* @__PURE__ */ React23.createElement(Button.ExternalLink, __spreadValues({
7606
+ dense: true,
7607
+ kind: "ghost"
7601
7608
  }, omit3(action, "text")), action.text))), (props.layout === "vertical" || props.layout === void 0) && props.image !== void 0 && /* @__PURE__ */ React23.createElement(Banner.ImageContainer, null, props.image ? /* @__PURE__ */ React23.createElement("img", {
7602
7609
  src: props.image,
7603
7610
  alt: props.imageAlt,
@@ -9127,7 +9134,7 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React47.crea
9127
9134
  }, children);
9128
9135
 
9129
9136
  // src/molecules/DataList/DataList.tsx
9130
- import React58 from "react";
9137
+ import React59 from "react";
9131
9138
  import compact from "lodash/compact";
9132
9139
  import isFunction from "lodash/isFunction";
9133
9140
 
@@ -9918,13 +9925,43 @@ var sortRowsBy = (rows, sort) => {
9918
9925
 
9919
9926
  // src/molecules/DataList/DataList.tsx
9920
9927
  var import_more2 = __toESM(require_more());
9928
+
9929
+ // src/molecules/DataList/DataListSkeleton.tsx
9930
+ import React58 from "react";
9931
+ var DataListSkeleton = ({ columns = ["1", "2", "2", 52], rows = 5 }) => {
9932
+ const columnsAmount = [...Array(typeof columns === "number" ? columns : columns.length).keys()];
9933
+ return /* @__PURE__ */ React58.createElement(Template, {
9934
+ columns
9935
+ }, columnsAmount.map((_, index) => /* @__PURE__ */ React58.createElement(DataList.HeadCell, {
9936
+ key: index
9937
+ }, /* @__PURE__ */ React58.createElement(Skeleton, {
9938
+ width: "100%",
9939
+ height: 17.5
9940
+ }))), /* @__PURE__ */ React58.createElement(List2, {
9941
+ items: [...Array(rows).keys()],
9942
+ renderItem: (item) => /* @__PURE__ */ React58.createElement(DataList.Row, {
9943
+ key: item
9944
+ }, /* @__PURE__ */ React58.createElement(List2, {
9945
+ items: columnsAmount,
9946
+ renderItem: (key) => /* @__PURE__ */ React58.createElement(DataList.Cell, {
9947
+ key
9948
+ }, /* @__PURE__ */ React58.createElement(Skeleton, {
9949
+ width: "100%",
9950
+ height: 17.5
9951
+ }))
9952
+ }))
9953
+ }));
9954
+ };
9955
+
9956
+ // src/molecules/DataList/DataList.tsx
9921
9957
  var DataList2 = ({
9922
9958
  columns,
9923
9959
  rows,
9924
9960
  sticky,
9925
9961
  menu,
9926
9962
  menuLabel = "Context menu",
9927
- onAction
9963
+ onAction,
9964
+ onMenuOpenChange
9928
9965
  }) => {
9929
9966
  const [sort, updateSort] = useTableSort();
9930
9967
  const sortedRows = sortRowsBy(rows, sort);
@@ -9935,55 +9972,57 @@ var DataList2 = ({
9935
9972
  }),
9936
9973
  menu ? "auto" : void 0
9937
9974
  ]);
9938
- return /* @__PURE__ */ React58.createElement(Template, {
9975
+ return /* @__PURE__ */ React59.createElement(Template, {
9939
9976
  className: "Aquarium-DataList",
9940
9977
  columns: templateColumns
9941
9978
  }, columns.map(
9942
- (column) => columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React58.createElement(DataList.SortCell, __spreadValues({
9979
+ (column) => columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React59.createElement(DataList.SortCell, __spreadValues({
9943
9980
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
9944
9981
  onClick: () => updateSort(column),
9945
9982
  sticky
9946
- }, cellProps(column)), column.headerName) : /* @__PURE__ */ React58.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
9983
+ }, cellProps(column)), column.headerName) : /* @__PURE__ */ React59.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
9947
9984
  sticky
9948
9985
  }), column.headerName)
9949
- ), menu && /* @__PURE__ */ React58.createElement(DataList.HeadCell, {
9986
+ ), menu && /* @__PURE__ */ React59.createElement(DataList.HeadCell, {
9950
9987
  align: "right",
9951
9988
  "aria-label": menuLabel
9952
- }), /* @__PURE__ */ React58.createElement(List2, {
9989
+ }), /* @__PURE__ */ React59.createElement(List2, {
9953
9990
  items: sortedRows,
9954
- renderItem: (row, index) => /* @__PURE__ */ React58.createElement(DataList.Row, {
9991
+ renderItem: (row, index) => /* @__PURE__ */ React59.createElement(DataList.Row, {
9955
9992
  key: row.id
9956
- }, /* @__PURE__ */ React58.createElement(List2, {
9993
+ }, /* @__PURE__ */ React59.createElement(List2, {
9957
9994
  items: columns,
9958
- renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React58.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React58.createElement(StatusChip, __spreadValues({
9995
+ renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React59.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React59.createElement(StatusChip, __spreadValues({
9959
9996
  dense: true
9960
- }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React58.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React58.createElement(Button.Secondary, __spreadValues({
9997
+ }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React59.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React59.createElement(Button.Secondary, __spreadValues({
9961
9998
  dense: true
9962
- }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React58.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React58.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React58.createElement(Item4, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React58.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
9963
- }), menu && /* @__PURE__ */ React58.createElement(DataList.Cell, {
9999
+ }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React59.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React59.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React59.createElement(Item4, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React59.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
10000
+ }), menu && /* @__PURE__ */ React59.createElement(DataList.Cell, {
9964
10001
  align: "right"
9965
- }, /* @__PURE__ */ React58.createElement(DropdownMenu2, {
9966
- onAction: (action) => onAction == null ? void 0 : onAction(action, row, index)
9967
- }, /* @__PURE__ */ React58.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React58.createElement(Button.Icon, {
10002
+ }, /* @__PURE__ */ React59.createElement(DropdownMenu2, {
10003
+ onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
10004
+ onOpenChange: onMenuOpenChange
10005
+ }, /* @__PURE__ */ React59.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React59.createElement(Button.Icon, {
9968
10006
  "aria-label": menuLabel,
9969
10007
  icon: import_more2.default
9970
10008
  })), isFunction(menu) ? menu(row, index) : menu)))
9971
10009
  }));
9972
10010
  };
10011
+ DataList2.Skeleton = DataListSkeleton;
9973
10012
 
9974
10013
  // src/molecules/DataTable/DataTable.tsx
9975
- import React61 from "react";
10014
+ import React62 from "react";
9976
10015
  import compact2 from "lodash/compact";
9977
10016
  import isFunction2 from "lodash/isFunction";
9978
10017
 
9979
10018
  // src/molecules/Table/Table.tsx
9980
- import React60 from "react";
10019
+ import React61 from "react";
9981
10020
 
9982
10021
  // src/utils/table/useScrollTarget.ts
9983
- import React59 from "react";
10022
+ import React60 from "react";
9984
10023
  var useScrollTarget = (callback) => {
9985
- const targetRef = React59.useRef(null);
9986
- React59.useLayoutEffect(() => {
10024
+ const targetRef = React60.useRef(null);
10025
+ React60.useLayoutEffect(() => {
9987
10026
  const observer = new IntersectionObserver((entries) => entries[0].isIntersecting && callback && callback(), {
9988
10027
  root: null,
9989
10028
  rootMargin: `0px 0px 200px 0px`
@@ -10001,12 +10040,12 @@ var Table2 = (_a) => {
10001
10040
  var _b = _a, { children, onPrev, onNext } = _b, rest = __objRest(_b, ["children", "onPrev", "onNext"]);
10002
10041
  const bottomRef = useScrollTarget(onNext);
10003
10042
  const topRef = useScrollTarget(onPrev);
10004
- return /* @__PURE__ */ React60.createElement("div", {
10043
+ return /* @__PURE__ */ React61.createElement("div", {
10005
10044
  className: classNames("Aquarium-Table", tw("relative w-full"))
10006
- }, /* @__PURE__ */ React60.createElement("div", {
10045
+ }, /* @__PURE__ */ React61.createElement("div", {
10007
10046
  ref: topRef,
10008
10047
  className: tw("absolute top-0 h-1 w-full left-0 bg-transparent")
10009
- }), /* @__PURE__ */ React60.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React60.createElement("div", {
10048
+ }), /* @__PURE__ */ React61.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React61.createElement("div", {
10010
10049
  ref: bottomRef,
10011
10050
  className: tw("absolute bottom-0 h-1 w-full left-0 bg-transparent")
10012
10051
  }));
@@ -10029,7 +10068,8 @@ var DataTable = (_a) => {
10029
10068
  sticky,
10030
10069
  menu,
10031
10070
  menuLabel = "Context menu",
10032
- onAction
10071
+ onAction,
10072
+ onMenuOpenChange
10033
10073
  } = _b, rest = __objRest(_b, [
10034
10074
  "columns",
10035
10075
  "rows",
@@ -10038,11 +10078,12 @@ var DataTable = (_a) => {
10038
10078
  "sticky",
10039
10079
  "menu",
10040
10080
  "menuLabel",
10041
- "onAction"
10081
+ "onAction",
10082
+ "onMenuOpenChange"
10042
10083
  ]);
10043
10084
  const [sort, updateSort] = useTableSort();
10044
10085
  const sortedRows = sortRowsBy(rows, sort);
10045
- return /* @__PURE__ */ React61.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
10086
+ return /* @__PURE__ */ React62.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
10046
10087
  className: classNames(
10047
10088
  "Aquarium-DataTable",
10048
10089
  tw({
@@ -10051,49 +10092,51 @@ var DataTable = (_a) => {
10051
10092
  "table-fixed": layout === "fixed"
10052
10093
  })
10053
10094
  )
10054
- }), /* @__PURE__ */ React61.createElement(Table2.Head, {
10095
+ }), /* @__PURE__ */ React62.createElement(Table2.Head, {
10055
10096
  sticky
10056
10097
  }, compact2([
10057
10098
  ...columns.map(
10058
- (column) => columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React61.createElement(Table2.SortCell, __spreadValues({
10099
+ (column) => columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React62.createElement(Table2.SortCell, __spreadValues({
10059
10100
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
10060
10101
  onClick: () => updateSort(column),
10061
10102
  style: { width: column.width },
10062
10103
  "aria-label": column.headerInvisible ? column.headerName : void 0
10063
- }, cellProps(column)), !column.headerInvisible && column.headerName) : /* @__PURE__ */ React61.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
10104
+ }, cellProps(column)), !column.headerInvisible && column.headerName) : /* @__PURE__ */ React62.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
10064
10105
  style: { width: column.width },
10065
10106
  "aria-label": column.headerInvisible ? column.headerName : void 0
10066
10107
  }), !column.headerInvisible && column.headerName)
10067
10108
  ),
10068
- menu ? /* @__PURE__ */ React61.createElement(Table2.Cell, {
10109
+ menu ? /* @__PURE__ */ React62.createElement(Table2.Cell, {
10069
10110
  key: "__contextMenu",
10070
10111
  align: "right",
10071
10112
  "aria-label": menuLabel
10072
10113
  }) : null
10073
- ])), /* @__PURE__ */ React61.createElement(Table2.Body, null, /* @__PURE__ */ React61.createElement(List2, {
10114
+ ])), /* @__PURE__ */ React62.createElement(Table2.Body, null, /* @__PURE__ */ React62.createElement(List2, {
10074
10115
  items: sortedRows,
10075
- renderItem: (row, index) => /* @__PURE__ */ React61.createElement(Table2.Row, {
10116
+ renderItem: (row, index) => /* @__PURE__ */ React62.createElement(Table2.Row, {
10076
10117
  key: row.id
10077
- }, /* @__PURE__ */ React61.createElement(List2, {
10118
+ }, /* @__PURE__ */ React62.createElement(List2, {
10078
10119
  items: columns,
10079
- renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React61.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React61.createElement(StatusChip, __spreadValues({
10120
+ renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React62.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React62.createElement(StatusChip, __spreadValues({
10080
10121
  dense: true
10081
- }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React61.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React61.createElement(Button.Secondary, __spreadValues({
10122
+ }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React62.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React62.createElement(Button.Secondary, __spreadValues({
10082
10123
  dense: true
10083
- }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React61.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React61.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React61.createElement(Item4, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React61.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
10084
- }), menu && /* @__PURE__ */ React61.createElement(Table2.Cell, {
10124
+ }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React62.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React62.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React62.createElement(Item4, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React62.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
10125
+ }), menu && /* @__PURE__ */ React62.createElement(Table2.Cell, {
10085
10126
  align: "right"
10086
- }, /* @__PURE__ */ React61.createElement(DropdownMenu2, {
10087
- onAction: (action) => onAction == null ? void 0 : onAction(action, row, index)
10088
- }, /* @__PURE__ */ React61.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React61.createElement(Button.Icon, {
10127
+ }, /* @__PURE__ */ React62.createElement(DropdownMenu2, {
10128
+ onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
10129
+ onOpenChange: onMenuOpenChange
10130
+ }, /* @__PURE__ */ React62.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React62.createElement(Button.Icon, {
10089
10131
  "aria-label": menuLabel,
10090
10132
  icon: import_more3.default
10091
10133
  })), isFunction2(menu) ? menu(row, index) : menu)))
10092
10134
  })));
10093
10135
  };
10136
+ DataTable.Skeleton = DataListSkeleton;
10094
10137
 
10095
10138
  // src/molecules/Dialog/Dialog.tsx
10096
- import React63 from "react";
10139
+ import React64 from "react";
10097
10140
  import { useDialog } from "@react-aria/dialog";
10098
10141
  import { Overlay as Overlay2, useModalOverlay } from "@react-aria/overlays";
10099
10142
  import { useId } from "@react-aria/utils";
@@ -10120,10 +10163,10 @@ var DIALOG_ICONS_AND_COLORS = {
10120
10163
  };
10121
10164
 
10122
10165
  // src/atoms/Modal/Modal.tsx
10123
- import React62 from "react";
10166
+ import React63 from "react";
10124
10167
  var Modal = (_a) => {
10125
10168
  var _b = _a, { children, className, open } = _b, rest = __objRest(_b, ["children", "className", "open"]);
10126
- return open ? /* @__PURE__ */ React62.createElement("div", __spreadProps(__spreadValues({}, rest), {
10169
+ return open ? /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
10127
10170
  className: classNames(
10128
10171
  tw("inset-0 overflow-y-auto z-modal flex justify-center items-center fixed py-7"),
10129
10172
  className
@@ -10132,14 +10175,14 @@ var Modal = (_a) => {
10132
10175
  };
10133
10176
  Modal.BackDrop = (_a) => {
10134
10177
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10135
- return /* @__PURE__ */ React62.createElement("div", __spreadProps(__spreadValues({}, rest), {
10178
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
10136
10179
  className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-navyBlue-100 opacity-70"), className)
10137
10180
  }));
10138
10181
  };
10139
- Modal.Dialog = React62.forwardRef(
10182
+ Modal.Dialog = React63.forwardRef(
10140
10183
  (_a, ref) => {
10141
10184
  var _b = _a, { children, className, size = "sm" } = _b, rest = __objRest(_b, ["children", "className", "size"]);
10142
- return /* @__PURE__ */ React62.createElement("div", __spreadProps(__spreadValues({
10185
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({
10143
10186
  ref,
10144
10187
  "aria-modal": "true"
10145
10188
  }, rest), {
@@ -10157,31 +10200,31 @@ Modal.Dialog = React62.forwardRef(
10157
10200
  );
10158
10201
  Modal.Header = (_a) => {
10159
10202
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10160
- return /* @__PURE__ */ React62.createElement("div", __spreadProps(__spreadValues({}, rest), {
10203
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
10161
10204
  className: classNames(tw("px-7 py-6 gap-3 flex items-center"), className)
10162
10205
  }), children);
10163
10206
  };
10164
10207
  Modal.HeaderImage = (_a) => {
10165
10208
  var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
10166
10209
  const common = tw("h-[120px] min-h-[120px] w-full ");
10167
- return backgroundImage ? /* @__PURE__ */ React62.createElement("img", __spreadProps(__spreadValues({
10210
+ return backgroundImage ? /* @__PURE__ */ React63.createElement("img", __spreadProps(__spreadValues({
10168
10211
  "aria-hidden": true,
10169
10212
  src: backgroundImage != null ? backgroundImage : void 0
10170
10213
  }, rest), {
10171
10214
  className: classNames(common, tw("object-cover"), className)
10172
- })) : /* @__PURE__ */ React62.createElement("div", {
10215
+ })) : /* @__PURE__ */ React63.createElement("div", {
10173
10216
  className: classNames(common, tw("bg-grey-5"), className)
10174
10217
  });
10175
10218
  };
10176
10219
  Modal.CloseButtonContainer = (_a) => {
10177
10220
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
10178
- return /* @__PURE__ */ React62.createElement("div", __spreadProps(__spreadValues({}, rest), {
10221
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
10179
10222
  className: classNames(tw("absolute top-[20px] right-[28px]"), className)
10180
10223
  }));
10181
10224
  };
10182
10225
  Modal.Title = (_a) => {
10183
10226
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10184
- return /* @__PURE__ */ React62.createElement(Typography, __spreadValues({
10227
+ return /* @__PURE__ */ React63.createElement(Typography, __spreadValues({
10185
10228
  htmlTag: "h2",
10186
10229
  variant: "subheading",
10187
10230
  color: "grey-90",
@@ -10190,52 +10233,52 @@ Modal.Title = (_a) => {
10190
10233
  };
10191
10234
  Modal.Subtitle = (_a) => {
10192
10235
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
10193
- return /* @__PURE__ */ React62.createElement(Typography, __spreadValues({
10236
+ return /* @__PURE__ */ React63.createElement(Typography, __spreadValues({
10194
10237
  variant: "small",
10195
10238
  color: "grey-60"
10196
10239
  }, rest), children);
10197
10240
  };
10198
10241
  Modal.TitleContainer = (_a) => {
10199
10242
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10200
- return /* @__PURE__ */ React62.createElement("div", __spreadProps(__spreadValues({}, rest), {
10243
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
10201
10244
  className: classNames(tw("flex flex-col grow gap-2"), className)
10202
10245
  }), children);
10203
10246
  };
10204
10247
  Modal.Body = (_a) => {
10205
10248
  var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
10206
- return /* @__PURE__ */ React62.createElement("div", __spreadProps(__spreadValues({}, rest), {
10249
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
10207
10250
  className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
10208
10251
  style: __spreadValues({ maxHeight }, style)
10209
10252
  }), children);
10210
10253
  };
10211
10254
  Modal.Footer = (_a) => {
10212
10255
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10213
- return /* @__PURE__ */ React62.createElement("div", __spreadProps(__spreadValues({}, rest), {
10256
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
10214
10257
  className: classNames(tw("px-7 py-6"), className)
10215
10258
  }), children);
10216
10259
  };
10217
10260
  Modal.Actions = (_a) => {
10218
10261
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
10219
- return /* @__PURE__ */ React62.createElement("div", __spreadProps(__spreadValues({}, rest), {
10262
+ return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({}, rest), {
10220
10263
  className: classNames(tw("flex gap-4 justify-end"), className)
10221
10264
  }), children);
10222
10265
  };
10223
10266
 
10224
10267
  // src/molecules/Dialog/Dialog.tsx
10225
10268
  var Dialog = (props) => {
10226
- const ref = React63.useRef(null);
10269
+ const ref = React64.useRef(null);
10227
10270
  const state = useOverlayTriggerState2({ isOpen: props.open });
10228
10271
  const { modalProps, underlayProps } = useModalOverlay({}, state, ref);
10229
10272
  if (!state.isOpen) {
10230
10273
  return null;
10231
10274
  }
10232
- return /* @__PURE__ */ React63.createElement(Overlay2, null, /* @__PURE__ */ React63.createElement(Modal, {
10275
+ return /* @__PURE__ */ React64.createElement(Overlay2, null, /* @__PURE__ */ React64.createElement(Modal, {
10233
10276
  className: "Aquarium-Dialog",
10234
10277
  open: true
10235
- }, /* @__PURE__ */ React63.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React63.createElement(Modal.Dialog, __spreadValues({
10278
+ }, /* @__PURE__ */ React64.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React64.createElement(Modal.Dialog, __spreadValues({
10236
10279
  ref,
10237
10280
  size: "sm"
10238
- }, modalProps), /* @__PURE__ */ React63.createElement(DialogWrapper, __spreadValues({}, props)))));
10281
+ }, modalProps), /* @__PURE__ */ React64.createElement(DialogWrapper, __spreadValues({}, props)))));
10239
10282
  };
10240
10283
  var DialogWrapper = ({
10241
10284
  title,
@@ -10244,36 +10287,36 @@ var DialogWrapper = ({
10244
10287
  primaryAction,
10245
10288
  secondaryAction
10246
10289
  }) => {
10247
- const ref = React63.useRef(null);
10290
+ const ref = React64.useRef(null);
10248
10291
  const labelledBy = useId();
10249
10292
  const describedBy = useId();
10250
10293
  const { dialogProps } = useDialog(
10251
10294
  { "role": "alertdialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
10252
10295
  ref
10253
10296
  );
10254
- return /* @__PURE__ */ React63.createElement("div", __spreadProps(__spreadValues({
10297
+ return /* @__PURE__ */ React64.createElement("div", __spreadProps(__spreadValues({
10255
10298
  ref
10256
10299
  }, dialogProps), {
10257
10300
  className: tw("outline-none")
10258
- }), /* @__PURE__ */ React63.createElement(Modal.Header, null, /* @__PURE__ */ React63.createElement(Icon, {
10301
+ }), /* @__PURE__ */ React64.createElement(Modal.Header, null, /* @__PURE__ */ React64.createElement(Icon, {
10259
10302
  icon: DIALOG_ICONS_AND_COLORS[type].icon,
10260
10303
  color: DIALOG_ICONS_AND_COLORS[type].color,
10261
10304
  fontSize: 20
10262
- }), /* @__PURE__ */ React63.createElement(Modal.Title, {
10305
+ }), /* @__PURE__ */ React64.createElement(Modal.Title, {
10263
10306
  id: labelledBy,
10264
10307
  variant: "large-strong",
10265
10308
  color: DIALOG_ICONS_AND_COLORS[type].color
10266
- }, title)), /* @__PURE__ */ React63.createElement(Modal.Body, {
10309
+ }, title)), /* @__PURE__ */ React64.createElement(Modal.Body, {
10267
10310
  id: describedBy
10268
- }, children), /* @__PURE__ */ React63.createElement(Modal.Footer, null, /* @__PURE__ */ React63.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React63.createElement(Button.Ghost, __spreadValues({
10311
+ }, children), /* @__PURE__ */ React64.createElement(Modal.Footer, null, /* @__PURE__ */ React64.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React64.createElement(Button.Ghost, __spreadValues({
10269
10312
  key: secondaryAction.text
10270
- }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React63.createElement(Button.Secondary, __spreadValues({
10313
+ }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React64.createElement(Button.Secondary, __spreadValues({
10271
10314
  key: primaryAction.text
10272
10315
  }, omit8(primaryAction, "text")), primaryAction.text))));
10273
10316
  };
10274
10317
 
10275
10318
  // src/molecules/Divider/Divider.tsx
10276
- import React64 from "react";
10319
+ import React65 from "react";
10277
10320
  var sizeClasses = {
10278
10321
  horizontal: {
10279
10322
  1: "h-1px",
@@ -10295,7 +10338,7 @@ var sizeClasses = {
10295
10338
  var Divider2 = (_a) => {
10296
10339
  var _b = _a, { direction = "horizontal", size = 1 } = _b, props = __objRest(_b, ["direction", "size"]);
10297
10340
  const sizeClass = sizeClasses[direction][size];
10298
- return /* @__PURE__ */ React64.createElement("div", __spreadProps(__spreadValues({}, props), {
10341
+ return /* @__PURE__ */ React65.createElement("div", __spreadProps(__spreadValues({}, props), {
10299
10342
  className: classNames(
10300
10343
  "Aquarium-Divider",
10301
10344
  tw(`bg-grey-5 ${sizeClass}`, {
@@ -10307,10 +10350,10 @@ var Divider2 = (_a) => {
10307
10350
  };
10308
10351
 
10309
10352
  // src/molecules/Dropdown/Dropdown.tsx
10310
- import React67 from "react";
10353
+ import React68 from "react";
10311
10354
 
10312
10355
  // src/molecules/Popover/Popover.tsx
10313
- import React66, { useRef as useRef7 } from "react";
10356
+ import React67, { useRef as useRef7 } from "react";
10314
10357
  import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
10315
10358
  import { useOverlayTrigger } from "@react-aria/overlays";
10316
10359
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
@@ -10318,12 +10361,12 @@ import { useOverlayTriggerState as useOverlayTriggerState3 } from "@react-statel
10318
10361
  import classNames7 from "classnames";
10319
10362
 
10320
10363
  // src/molecules/Popover/Dialog.tsx
10321
- import React65 from "react";
10364
+ import React66 from "react";
10322
10365
  import { useDialog as useDialog2 } from "@react-aria/dialog";
10323
10366
  var Dialog2 = ({ children }) => {
10324
- const ref = React65.useRef(null);
10367
+ const ref = React66.useRef(null);
10325
10368
  const { dialogProps } = useDialog2({}, ref);
10326
- return /* @__PURE__ */ React65.createElement("div", __spreadProps(__spreadValues({
10369
+ return /* @__PURE__ */ React66.createElement("div", __spreadProps(__spreadValues({
10327
10370
  ref
10328
10371
  }, dialogProps), {
10329
10372
  className: tw("outline-none")
@@ -10357,21 +10400,21 @@ var Popover2 = (props) => {
10357
10400
  const triggerRef = useRef7(null);
10358
10401
  const state = useOverlayTriggerState3(props);
10359
10402
  const { triggerProps, overlayProps } = useOverlayTrigger({ type: type != null ? type : "dialog" }, state, triggerRef);
10360
- return /* @__PURE__ */ React66.createElement(PopoverContext.Provider, {
10403
+ return /* @__PURE__ */ React67.createElement(PopoverContext.Provider, {
10361
10404
  value: {
10362
10405
  state
10363
10406
  }
10364
- }, React66.Children.map(props.children, (child) => {
10407
+ }, React67.Children.map(props.children, (child) => {
10365
10408
  if (isComponentType(child, Popover2.Trigger)) {
10366
- return /* @__PURE__ */ React66.createElement(PressResponder2, __spreadValues({
10409
+ return /* @__PURE__ */ React67.createElement(PressResponder2, __spreadValues({
10367
10410
  ref: triggerRef
10368
- }, triggerProps), /* @__PURE__ */ React66.createElement(PopoverTriggerWrapper, {
10411
+ }, triggerProps), /* @__PURE__ */ React67.createElement(PopoverTriggerWrapper, {
10369
10412
  "data-testid": props["data-testid"],
10370
10413
  "aria-controls": id
10371
10414
  }, child.props.children));
10372
10415
  }
10373
10416
  if (isComponentType(child, Popover2.Panel)) {
10374
- return state.isOpen && /* @__PURE__ */ React66.createElement(PopoverOverlay, __spreadValues({
10417
+ return state.isOpen && /* @__PURE__ */ React67.createElement(PopoverOverlay, __spreadValues({
10375
10418
  triggerRef: targetRef != null ? targetRef : triggerRef,
10376
10419
  state,
10377
10420
  placement,
@@ -10382,7 +10425,7 @@ var Popover2 = (props) => {
10382
10425
  offset,
10383
10426
  crossOffset,
10384
10427
  shouldFlip
10385
- }, overlayProps), containFocus ? /* @__PURE__ */ React66.createElement(Dialog2, null, child.props.children) : child.props.children);
10428
+ }, overlayProps), containFocus ? /* @__PURE__ */ React67.createElement(Dialog2, null, child.props.children) : child.props.children);
10386
10429
  }
10387
10430
  throw new Error("Invalid children element type");
10388
10431
  }));
@@ -10401,7 +10444,7 @@ var asPopoverButton = (Component, displayName) => {
10401
10444
  state.close();
10402
10445
  onClick == null ? void 0 : onClick(e);
10403
10446
  };
10404
- return /* @__PURE__ */ React66.createElement(Component, __spreadProps(__spreadValues({}, props), {
10447
+ return /* @__PURE__ */ React67.createElement(Component, __spreadProps(__spreadValues({}, props), {
10405
10448
  onClick: handleClick
10406
10449
  }));
10407
10450
  };
@@ -10414,9 +10457,9 @@ var PopoverTriggerWrapper = (_a) => {
10414
10457
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
10415
10458
  var _a2;
10416
10459
  const ref = useRef7(null);
10417
- const trigger = React66.Children.only(children);
10460
+ const trigger = React67.Children.only(children);
10418
10461
  const { pressProps } = usePress2(__spreadProps(__spreadValues({}, rest), { ref }));
10419
- return React66.cloneElement(trigger, __spreadProps(__spreadValues({
10462
+ return React67.cloneElement(trigger, __spreadProps(__spreadValues({
10420
10463
  "ref": ref
10421
10464
  }, mergeProps3(pressProps, trigger.props)), {
10422
10465
  "aria-controls": (_a2 = rest["aria-controls"]) != null ? _a2 : pressProps["aria-controls"]
@@ -10425,10 +10468,10 @@ var PopoverTriggerWrapper = (_a) => {
10425
10468
 
10426
10469
  // src/molecules/Dropdown/Dropdown.tsx
10427
10470
  var Dropdown = ({ children, content, placement = "bottom-left" }) => {
10428
- return /* @__PURE__ */ React67.createElement(Popover2, {
10471
+ return /* @__PURE__ */ React68.createElement(Popover2, {
10429
10472
  type: "menu",
10430
10473
  placement
10431
- }, /* @__PURE__ */ React67.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React67.createElement(Popover2.Panel, {
10474
+ }, /* @__PURE__ */ React68.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React68.createElement(Popover2.Panel, {
10432
10475
  className: "Aquarium-Dropdown"
10433
10476
  }, content));
10434
10477
  };
@@ -10439,26 +10482,26 @@ var DropdownMenu3 = ({
10439
10482
  triggerId,
10440
10483
  setClose = () => void 0
10441
10484
  }) => {
10442
- const menuRef = React67.useRef(null);
10443
- React67.useEffect(() => {
10485
+ const menuRef = React68.useRef(null);
10486
+ React68.useEffect(() => {
10444
10487
  const id = setTimeout(() => {
10445
10488
  var _a, _b, _c;
10446
10489
  return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
10447
10490
  });
10448
10491
  return () => clearTimeout(id);
10449
10492
  }, [menuRef.current]);
10450
- return /* @__PURE__ */ React67.createElement("div", {
10493
+ return /* @__PURE__ */ React68.createElement("div", {
10451
10494
  style: { minWidth: "250px" },
10452
10495
  className: tw("py-3 bg-white")
10453
- }, !!title && /* @__PURE__ */ React67.createElement("div", {
10496
+ }, !!title && /* @__PURE__ */ React68.createElement("div", {
10454
10497
  className: tw("px-4 py-4 text-left text-grey-100 typography-default-strong")
10455
- }, title), /* @__PURE__ */ React67.createElement("ol", {
10498
+ }, title), /* @__PURE__ */ React68.createElement("ol", {
10456
10499
  role: "menu",
10457
10500
  ref: menuRef,
10458
10501
  id: contentId,
10459
10502
  "aria-labelledby": triggerId
10460
- }, React67.Children.map(children, (child) => {
10461
- return React67.cloneElement(child, { setClose });
10503
+ }, React68.Children.map(children, (child) => {
10504
+ return React68.cloneElement(child, { setClose });
10462
10505
  })));
10463
10506
  };
10464
10507
  var DropdownItem = (_a) => {
@@ -10513,10 +10556,10 @@ var DropdownItem = (_a) => {
10513
10556
  handleSelect();
10514
10557
  }
10515
10558
  };
10516
- const itemContent = /* @__PURE__ */ React67.createElement("div", {
10559
+ const itemContent = /* @__PURE__ */ React68.createElement("div", {
10517
10560
  className: tw("py-3 px-4")
10518
10561
  }, children);
10519
- return /* @__PURE__ */ React67.createElement("li", __spreadProps(__spreadValues({
10562
+ return /* @__PURE__ */ React68.createElement("li", __spreadProps(__spreadValues({
10520
10563
  role: "menuitem",
10521
10564
  tabIndex: -1,
10522
10565
  onClick: handleClick,
@@ -10527,11 +10570,11 @@ var DropdownItem = (_a) => {
10527
10570
  "text-grey-10 cursor-not-allowed": disabled,
10528
10571
  "text-primary-70 hover:text-primary-80": color === "danger" && !disabled
10529
10572
  })
10530
- }), tooltip ? /* @__PURE__ */ React67.createElement(Tooltip, {
10573
+ }), tooltip ? /* @__PURE__ */ React68.createElement(Tooltip, {
10531
10574
  content: tooltip,
10532
10575
  placement: tooltipPlacement,
10533
10576
  inline: false
10534
- }, /* @__PURE__ */ React67.createElement("div", {
10577
+ }, /* @__PURE__ */ React68.createElement("div", {
10535
10578
  tabIndex: 0,
10536
10579
  className: tw("grow")
10537
10580
  }, itemContent)) : itemContent);
@@ -10540,11 +10583,11 @@ Dropdown.Menu = DropdownMenu3;
10540
10583
  Dropdown.Item = DropdownItem;
10541
10584
 
10542
10585
  // src/molecules/EmptyState/EmptyState.tsx
10543
- import React69 from "react";
10586
+ import React70 from "react";
10544
10587
  import omit9 from "lodash/omit";
10545
10588
 
10546
10589
  // src/molecules/Flexbox/FlexboxItem.tsx
10547
- import React68 from "react";
10590
+ import React69 from "react";
10548
10591
  var FlexboxItem = Tailwindify(
10549
10592
  ({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
10550
10593
  const hookStyle = useStyle({
@@ -10556,7 +10599,7 @@ var FlexboxItem = Tailwindify(
10556
10599
  alignSelf
10557
10600
  });
10558
10601
  const HtmlElement = htmlTag;
10559
- return /* @__PURE__ */ React68.createElement(HtmlElement, {
10602
+ return /* @__PURE__ */ React69.createElement(HtmlElement, {
10560
10603
  style: __spreadValues(__spreadValues({}, hookStyle), style),
10561
10604
  className
10562
10605
  }, children);
@@ -10614,7 +10657,7 @@ var EmptyState = ({
10614
10657
  borderStyle = "dashed"
10615
10658
  }) => {
10616
10659
  const template = layoutStyle(layout);
10617
- return /* @__PURE__ */ React69.createElement(Box, {
10660
+ return /* @__PURE__ */ React70.createElement(Box, {
10618
10661
  className: classNames(
10619
10662
  "Aquarium-EmptyState",
10620
10663
  tw("rounded", {
@@ -10627,38 +10670,42 @@ var EmptyState = ({
10627
10670
  backgroundColor: "transparent",
10628
10671
  borderColor: "grey-10",
10629
10672
  padding: "9"
10630
- }, /* @__PURE__ */ React69.createElement(Flexbox, {
10673
+ }, /* @__PURE__ */ React70.createElement(Flexbox, {
10631
10674
  direction: template.layout,
10632
10675
  justifyContent: template.justifyContent,
10633
10676
  alignItems: template.layout === "row" ? "center" : template.alignItems,
10634
10677
  colGap: "l5",
10635
10678
  rowGap: "8"
10636
- }, image && /* @__PURE__ */ React69.createElement(FlexboxItem, null, /* @__PURE__ */ React69.createElement("img", {
10679
+ }, image && /* @__PURE__ */ React70.createElement(FlexboxItem, null, /* @__PURE__ */ React70.createElement("img", {
10637
10680
  src: image,
10638
10681
  alt: imageAlt,
10639
10682
  style: { width: imageWidth ? `${imageWidth}px` : void 0, height: "auto" }
10640
- })), /* @__PURE__ */ React69.createElement(Flexbox, {
10683
+ })), /* @__PURE__ */ React70.createElement(Flexbox, {
10641
10684
  style: { maxWidth: "610px" },
10642
10685
  direction: "column",
10643
10686
  justifyContent: template.justifyContent,
10644
10687
  alignItems: template.alignItems
10645
- }, /* @__PURE__ */ React69.createElement(Typography2, {
10688
+ }, /* @__PURE__ */ React70.createElement(Typography2, {
10646
10689
  variant: "heading",
10647
10690
  htmlTag: "h2"
10648
- }, title), (description || children) && /* @__PURE__ */ React69.createElement(Box, {
10691
+ }, title), (description || children) && /* @__PURE__ */ React70.createElement(Box, {
10649
10692
  marginTop: "5"
10650
- }, /* @__PURE__ */ React69.createElement(Typography2, {
10693
+ }, /* @__PURE__ */ React70.createElement(Typography2, {
10651
10694
  variant: "default",
10652
10695
  color: "grey-60"
10653
- }, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React69.createElement(Flexbox, {
10696
+ }, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React70.createElement(Flexbox, {
10654
10697
  marginTop: "7",
10655
10698
  gap: "4",
10656
10699
  justifyContent: "center",
10657
10700
  alignItems: "center",
10658
10701
  wrap: "wrap"
10659
- }, primaryAction && /* @__PURE__ */ React69.createElement(Button.Primary, __spreadValues({}, omit9(primaryAction, "text")), primaryAction.text), secondaryAction && /* @__PURE__ */ React69.createElement(Button.Secondary, __spreadValues({}, omit9(secondaryAction, "text")), secondaryAction.text)), footer && /* @__PURE__ */ React69.createElement(Box, {
10702
+ }, primaryAction && /* @__PURE__ */ React70.createElement(React70.Fragment, null, !isLink(primaryAction) && /* @__PURE__ */ React70.createElement(Button.Primary, __spreadValues({}, omit9(primaryAction, "text")), primaryAction.text), isLink(primaryAction) && /* @__PURE__ */ React70.createElement(Button.ExternalLink, __spreadValues({
10703
+ kind: "primary"
10704
+ }, omit9(primaryAction, "text")), primaryAction.text)), secondaryAction && /* @__PURE__ */ React70.createElement(React70.Fragment, null, !isLink(secondaryAction) && /* @__PURE__ */ React70.createElement(Button.Secondary, __spreadValues({}, omit9(secondaryAction, "text")), secondaryAction.text), isLink(secondaryAction) && /* @__PURE__ */ React70.createElement(Button.ExternalLink, __spreadValues({
10705
+ kind: "secondary"
10706
+ }, omit9(secondaryAction, "text")), secondaryAction.text))), footer && /* @__PURE__ */ React70.createElement(Box, {
10660
10707
  marginTop: "7"
10661
- }, /* @__PURE__ */ React69.createElement(Typography2, {
10708
+ }, /* @__PURE__ */ React70.createElement(Typography2, {
10662
10709
  htmlTag: "div",
10663
10710
  variant: "small",
10664
10711
  color: "grey-60"
@@ -10666,7 +10713,7 @@ var EmptyState = ({
10666
10713
  };
10667
10714
 
10668
10715
  // src/molecules/Grid/GridItem.tsx
10669
- import React70 from "react";
10716
+ import React71 from "react";
10670
10717
  var GridItem = Tailwindify(
10671
10718
  ({
10672
10719
  htmlTag = "div",
@@ -10697,7 +10744,7 @@ var GridItem = Tailwindify(
10697
10744
  gridRowEnd: rowEnd
10698
10745
  });
10699
10746
  const HtmlElement = htmlTag;
10700
- return /* @__PURE__ */ React70.createElement(HtmlElement, {
10747
+ return /* @__PURE__ */ React71.createElement(HtmlElement, {
10701
10748
  style: __spreadValues(__spreadValues({}, hookStyle), style),
10702
10749
  className
10703
10750
  }, children);
@@ -10705,7 +10752,7 @@ var GridItem = Tailwindify(
10705
10752
  );
10706
10753
 
10707
10754
  // src/molecules/LineClamp/LineClamp.tsx
10708
- import React71 from "react";
10755
+ import React72 from "react";
10709
10756
  var LineClamp2 = ({
10710
10757
  lines,
10711
10758
  children,
@@ -10714,10 +10761,10 @@ var LineClamp2 = ({
10714
10761
  collapseLabel,
10715
10762
  onClampedChange
10716
10763
  }) => {
10717
- const ref = React71.useRef(null);
10718
- const [clamped, setClamped] = React71.useState(true);
10719
- const [isClampingEnabled, setClampingEnabled] = React71.useState(false);
10720
- React71.useEffect(() => {
10764
+ const ref = React72.useRef(null);
10765
+ const [clamped, setClamped] = React72.useState(true);
10766
+ const [isClampingEnabled, setClampingEnabled] = React72.useState(false);
10767
+ React72.useEffect(() => {
10721
10768
  var _a, _b;
10722
10769
  const el = ref.current;
10723
10770
  setClampingEnabled(((_a = el == null ? void 0 : el.scrollHeight) != null ? _a : 0) > ((_b = el == null ? void 0 : el.clientHeight) != null ? _b : 0));
@@ -10726,28 +10773,28 @@ var LineClamp2 = ({
10726
10773
  setClamped(!clamped);
10727
10774
  onClampedChange == null ? void 0 : onClampedChange(!clamped);
10728
10775
  };
10729
- return /* @__PURE__ */ React71.createElement("div", {
10776
+ return /* @__PURE__ */ React72.createElement("div", {
10730
10777
  className: "Aquarium-LineClamp"
10731
- }, /* @__PURE__ */ React71.createElement(LineClamp, {
10778
+ }, /* @__PURE__ */ React72.createElement(LineClamp, {
10732
10779
  ref,
10733
10780
  lines,
10734
10781
  clamped,
10735
10782
  wordBreak
10736
- }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React71.createElement(Button.Ghost, {
10783
+ }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React72.createElement(Button.Ghost, {
10737
10784
  dense: true,
10738
10785
  onClick: handleClampedChange
10739
10786
  }, clamped ? expandLabel : collapseLabel));
10740
10787
  };
10741
10788
 
10742
10789
  // src/molecules/Link/Link.tsx
10743
- import React73 from "react";
10790
+ import React74 from "react";
10744
10791
  import classNames8 from "classnames";
10745
10792
 
10746
10793
  // src/atoms/Link/Link.tsx
10747
- import React72 from "react";
10794
+ import React73 from "react";
10748
10795
  var Link = (_a) => {
10749
10796
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
10750
- return /* @__PURE__ */ React72.createElement("a", __spreadValues({
10797
+ return /* @__PURE__ */ React73.createElement("a", __spreadValues({
10751
10798
  className: classNames(className, linkStyle)
10752
10799
  }, props), children);
10753
10800
  };
@@ -10755,22 +10802,22 @@ var Link = (_a) => {
10755
10802
  // src/molecules/Link/Link.tsx
10756
10803
  var Link2 = (_a) => {
10757
10804
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
10758
- return /* @__PURE__ */ React73.createElement(Link, __spreadValues({
10805
+ return /* @__PURE__ */ React74.createElement(Link, __spreadValues({
10759
10806
  className: classNames8("Aquarium-Link", className)
10760
10807
  }, props));
10761
10808
  };
10762
10809
 
10763
10810
  // src/molecules/ListItem/ListItem.tsx
10764
- import React74 from "react";
10811
+ import React75 from "react";
10765
10812
  var ListItem = ({ name, icon, active = false }) => {
10766
- return /* @__PURE__ */ React74.createElement(Flexbox, {
10813
+ return /* @__PURE__ */ React75.createElement(Flexbox, {
10767
10814
  alignItems: "center"
10768
- }, /* @__PURE__ */ React74.createElement(Typography2, {
10815
+ }, /* @__PURE__ */ React75.createElement(Typography2, {
10769
10816
  variant: active ? "small-strong" : "small",
10770
10817
  color: "grey-70",
10771
10818
  htmlTag: "span",
10772
10819
  className: `px-4 py-2 rounded-full ${active ? "bg-grey-5" : "hover:bg-grey-0"}`
10773
- }, /* @__PURE__ */ React74.createElement("img", {
10820
+ }, /* @__PURE__ */ React75.createElement("img", {
10774
10821
  src: icon,
10775
10822
  alt: name,
10776
10823
  className: "inline mr-4",
@@ -10780,7 +10827,7 @@ var ListItem = ({ name, icon, active = false }) => {
10780
10827
  };
10781
10828
 
10782
10829
  // src/molecules/Modal/Modal.tsx
10783
- import React76 from "react";
10830
+ import React77 from "react";
10784
10831
  import { useDialog as useDialog3 } from "@react-aria/dialog";
10785
10832
  import { Overlay as Overlay3, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
10786
10833
  import { useId as useId2 } from "@react-aria/utils";
@@ -10789,18 +10836,18 @@ import castArray from "lodash/castArray";
10789
10836
  import omit10 from "lodash/omit";
10790
10837
 
10791
10838
  // src/molecules/Tabs/Tabs.tsx
10792
- import React75, { useEffect as useEffect7, useLayoutEffect as useLayoutEffect2, useRef as useRef8, useState as useState7 } from "react";
10839
+ import React76, { useEffect as useEffect7, useLayoutEffect as useLayoutEffect2, useRef as useRef8, useState as useState7 } from "react";
10793
10840
  import isNumber5 from "lodash/isNumber";
10794
10841
  import kebabCase from "lodash/kebabCase";
10795
10842
  var import_chevronLeft3 = __toESM(require_chevronLeft());
10796
10843
  var import_chevronRight3 = __toESM(require_chevronRight());
10797
10844
  var import_warningSign4 = __toESM(require_warningSign());
10798
10845
  var isTabComponent = (c) => {
10799
- return React75.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
10846
+ return React76.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
10800
10847
  };
10801
- var Tab = React75.forwardRef(
10848
+ var Tab = React76.forwardRef(
10802
10849
  ({ className, id, title, children }, ref) => {
10803
- return /* @__PURE__ */ React75.createElement("div", {
10850
+ return /* @__PURE__ */ React76.createElement("div", {
10804
10851
  ref,
10805
10852
  id: `${id != null ? id : kebabCase(title)}-panel`,
10806
10853
  className,
@@ -10812,14 +10859,14 @@ var Tab = React75.forwardRef(
10812
10859
  );
10813
10860
  var TabContainer = (_a) => {
10814
10861
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
10815
- return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
10862
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
10816
10863
  className: classNames("py-6 z-0", className)
10817
10864
  }), children);
10818
10865
  };
10819
10866
  var ModalTab = Tab;
10820
10867
  var ModalTabContainer = TabContainer;
10821
10868
  var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
10822
- const Tab2 = React75.forwardRef(
10869
+ const Tab2 = React76.forwardRef(
10823
10870
  (_a, ref) => {
10824
10871
  var _b = _a, {
10825
10872
  id,
@@ -10849,17 +10896,17 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
10849
10896
  const _id = id != null ? id : kebabCase(title);
10850
10897
  let statusIcon = void 0;
10851
10898
  if (status === "warning") {
10852
- statusIcon = /* @__PURE__ */ React75.createElement(InlineIcon, {
10899
+ statusIcon = /* @__PURE__ */ React76.createElement(InlineIcon, {
10853
10900
  icon: import_warningSign4.default,
10854
10901
  color: "warning-80"
10855
10902
  });
10856
10903
  } else if (status === "error") {
10857
- statusIcon = /* @__PURE__ */ React75.createElement(InlineIcon, {
10904
+ statusIcon = /* @__PURE__ */ React76.createElement(InlineIcon, {
10858
10905
  icon: import_warningSign4.default,
10859
10906
  color: "error-50"
10860
10907
  });
10861
10908
  }
10862
- const tab = /* @__PURE__ */ React75.createElement(Component, __spreadValues({
10909
+ const tab = /* @__PURE__ */ React76.createElement(Component, __spreadValues({
10863
10910
  ref,
10864
10911
  id: `${_id}-tab`,
10865
10912
  onClick: () => !disabled && onSelected(value != null ? value : index),
@@ -10876,24 +10923,24 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
10876
10923
  "aria-selected": selected,
10877
10924
  "aria-controls": `${_id}-panel`,
10878
10925
  tabIndex: disabled ? void 0 : 0
10879
- }, rest), /* @__PURE__ */ React75.createElement(Typography2, {
10926
+ }, rest), /* @__PURE__ */ React76.createElement(Typography2, {
10880
10927
  htmlTag: "div",
10881
10928
  variant: "small",
10882
10929
  color: selected ? "primary-80" : disabled ? "grey-20" : "current",
10883
10930
  className: tw("inline-flex items-center gap-3")
10884
- }, /* @__PURE__ */ React75.createElement("span", {
10931
+ }, /* @__PURE__ */ React76.createElement("span", {
10885
10932
  className: tw("whitespace-nowrap")
10886
- }, title), isNumber5(badge) && /* @__PURE__ */ React75.createElement(Typography2, {
10933
+ }, title), isNumber5(badge) && /* @__PURE__ */ React76.createElement(Typography2, {
10887
10934
  htmlTag: "span",
10888
10935
  variant: "small",
10889
10936
  color: selected ? "primary-80" : "grey-5",
10890
10937
  className: "leading-none"
10891
- }, /* @__PURE__ */ React75.createElement(TabBadge, {
10938
+ }, /* @__PURE__ */ React76.createElement(TabBadge, {
10892
10939
  kind: "filled",
10893
10940
  value: badge,
10894
10941
  textClassname: classNames({ "text-white": selected, "text-grey-50": !selected })
10895
10942
  })), statusIcon));
10896
- return tooltip ? /* @__PURE__ */ React75.createElement(Tooltip, {
10943
+ return tooltip ? /* @__PURE__ */ React76.createElement(Tooltip, {
10897
10944
  content: tooltip
10898
10945
  }, tab) : tab;
10899
10946
  }
@@ -10907,7 +10954,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
10907
10954
  const Tabs2 = (props) => {
10908
10955
  var _a, _b;
10909
10956
  const { className, value, defaultValue, onChange, children } = props;
10910
- const childArr = React75.Children.toArray(children);
10957
+ const childArr = React76.Children.toArray(children);
10911
10958
  const firstTab = childArr[0];
10912
10959
  const firstTabValue = isTabComponent(firstTab) ? firstTab.props.value : -1;
10913
10960
  const [selected, setSelected] = useState7((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
@@ -10920,7 +10967,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
10920
10967
  var _a2, _b2;
10921
10968
  const container = containerRef.current;
10922
10969
  const tabs = tabsRef.current;
10923
- const values = React75.Children.map(
10970
+ const values = React76.Children.map(
10924
10971
  children,
10925
10972
  (tab, i) => {
10926
10973
  var _a3;
@@ -10961,7 +11008,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
10961
11008
  updateCarets();
10962
11009
  setSelected(value);
10963
11010
  revealSelectedTab({ smooth: value !== selected });
10964
- }, [value, React75.Children.count(children)]);
11011
+ }, [value, React76.Children.count(children)]);
10965
11012
  useLayoutEffect2(() => {
10966
11013
  var _a2;
10967
11014
  updateCarets();
@@ -11025,27 +11072,27 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
11025
11072
  const handleSelected = (key) => {
11026
11073
  (onChange != null ? onChange : setSelected)(key);
11027
11074
  };
11028
- React75.Children.forEach(children, (c) => {
11075
+ React76.Children.forEach(children, (c) => {
11029
11076
  if (c && !isTabComponent(c)) {
11030
11077
  throw new Error("<Tabs> can only have <Tabs.Tab> components as children");
11031
11078
  }
11032
11079
  });
11033
- return /* @__PURE__ */ React75.createElement("div", {
11080
+ return /* @__PURE__ */ React76.createElement("div", {
11034
11081
  ref: parentRef,
11035
11082
  className: classNames("Aquarium-Tabs", tw("h-full"), className)
11036
- }, /* @__PURE__ */ React75.createElement("div", {
11083
+ }, /* @__PURE__ */ React76.createElement("div", {
11037
11084
  className: tw("relative flex items-center h-full border-b-2 border-grey-10")
11038
- }, /* @__PURE__ */ React75.createElement("div", {
11085
+ }, /* @__PURE__ */ React76.createElement("div", {
11039
11086
  ref: containerRef,
11040
11087
  className: tw("overflow-y-auto scrollbar-hide h-full mb-[-2px]")
11041
- }, /* @__PURE__ */ React75.createElement("div", {
11088
+ }, /* @__PURE__ */ React76.createElement("div", {
11042
11089
  ref: tabsRef,
11043
11090
  role: "tablist",
11044
11091
  "aria-label": "tabs",
11045
11092
  className: tw("inline-flex items-center cursor-pointer font-normal h-full")
11046
- }, React75.Children.map(
11093
+ }, React76.Children.map(
11047
11094
  children,
11048
- (tab, index) => tab ? /* @__PURE__ */ React75.createElement(TabItemComponent, __spreadProps(__spreadValues({
11095
+ (tab, index) => tab ? /* @__PURE__ */ React76.createElement(TabItemComponent, __spreadProps(__spreadValues({
11049
11096
  key: tab.props.value
11050
11097
  }, tab.props), {
11051
11098
  index,
@@ -11053,20 +11100,20 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
11053
11100
  onKeyDown: handleKeyDown,
11054
11101
  onSelected: handleSelected
11055
11102
  })) : void 0
11056
- ))), leftCaret && /* @__PURE__ */ React75.createElement("div", {
11103
+ ))), leftCaret && /* @__PURE__ */ React76.createElement("div", {
11057
11104
  className: tw("absolute left-0 bg-gradient-to-r from-white via-white z-20 py-3 pr-4")
11058
- }, /* @__PURE__ */ React75.createElement("div", {
11105
+ }, /* @__PURE__ */ React76.createElement("div", {
11059
11106
  onClick: () => handleScrollToNext("left"),
11060
11107
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
11061
- }, /* @__PURE__ */ React75.createElement(InlineIcon, {
11108
+ }, /* @__PURE__ */ React76.createElement(InlineIcon, {
11062
11109
  icon: import_chevronLeft3.default
11063
- }))), rightCaret && /* @__PURE__ */ React75.createElement("div", {
11110
+ }))), rightCaret && /* @__PURE__ */ React76.createElement("div", {
11064
11111
  onClick: () => handleScrollToNext("right"),
11065
11112
  className: tw("absolute right-0 bg-gradient-to-l from-white via-white z-20 py-3 pl-4")
11066
- }, /* @__PURE__ */ React75.createElement("div", {
11113
+ }, /* @__PURE__ */ React76.createElement("div", {
11067
11114
  onClick: () => handleScrollToNext("right"),
11068
11115
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
11069
- }, /* @__PURE__ */ React75.createElement(InlineIcon, {
11116
+ }, /* @__PURE__ */ React76.createElement(InlineIcon, {
11070
11117
  icon: import_chevronRight3.default
11071
11118
  })))), renderChildren(children, selected, props));
11072
11119
  };
@@ -11074,7 +11121,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
11074
11121
  Tabs2.Tab = TabComponent;
11075
11122
  return Tabs2;
11076
11123
  };
11077
- var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React75.createElement(TabContainer, null, children.find(
11124
+ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React76.createElement(TabContainer, null, children.find(
11078
11125
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
11079
11126
  )));
11080
11127
 
@@ -11083,7 +11130,7 @@ var import_cross6 = __toESM(require_cross());
11083
11130
  var Modal2 = (_a) => {
11084
11131
  var _b = _a, { closeOnEsc = true } = _b, props = __objRest(_b, ["closeOnEsc"]);
11085
11132
  const { open, onClose, size, portalContainer } = props;
11086
- const ref = React76.useRef(null);
11133
+ const ref = React77.useRef(null);
11087
11134
  const state = useOverlayTriggerState4({ isOpen: open, onOpenChange: (isOpen) => !isOpen && onClose() });
11088
11135
  const { modalProps, underlayProps } = useModalOverlay2(
11089
11136
  { isDismissable: false, isKeyboardDismissDisabled: !closeOnEsc },
@@ -11093,17 +11140,17 @@ var Modal2 = (_a) => {
11093
11140
  if (!state.isOpen) {
11094
11141
  return null;
11095
11142
  }
11096
- return /* @__PURE__ */ React76.createElement(Overlay3, {
11143
+ return /* @__PURE__ */ React77.createElement(Overlay3, {
11097
11144
  portalContainer
11098
- }, /* @__PURE__ */ React76.createElement(Modal, {
11145
+ }, /* @__PURE__ */ React77.createElement(Modal, {
11099
11146
  className: "Aquarium-Modal",
11100
11147
  open: true
11101
- }, /* @__PURE__ */ React76.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React76.createElement(ModalWrapper, __spreadValues(__spreadValues({
11148
+ }, /* @__PURE__ */ React77.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React77.createElement(ModalWrapper, __spreadValues(__spreadValues({
11102
11149
  ref,
11103
11150
  size
11104
11151
  }, props), modalProps))));
11105
11152
  };
11106
- var ModalWrapper = React76.forwardRef(
11153
+ var ModalWrapper = React77.forwardRef(
11107
11154
  (_a, ref) => {
11108
11155
  var _b = _a, { title, subtitle, headerImage, primaryAction, secondaryActions, children, onClose } = _b, props = __objRest(_b, ["title", "subtitle", "headerImage", "primaryAction", "secondaryActions", "children", "onClose"]);
11109
11156
  const labelledBy = useId2();
@@ -11112,30 +11159,30 @@ var ModalWrapper = React76.forwardRef(
11112
11159
  { "role": "dialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
11113
11160
  ref
11114
11161
  );
11115
- return /* @__PURE__ */ React76.createElement(Modal.Dialog, __spreadProps(__spreadValues(__spreadValues({
11162
+ return /* @__PURE__ */ React77.createElement(Modal.Dialog, __spreadProps(__spreadValues(__spreadValues({
11116
11163
  ref
11117
11164
  }, props), dialogProps), {
11118
11165
  tabIndex: -1
11119
- }), /* @__PURE__ */ React76.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React76.createElement(IconButton, {
11166
+ }), /* @__PURE__ */ React77.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React77.createElement(IconButton, {
11120
11167
  "aria-label": "Close",
11121
11168
  icon: import_cross6.default,
11122
11169
  onClick: onClose
11123
- })), headerImage !== void 0 && /* @__PURE__ */ React76.createElement(Modal.HeaderImage, {
11170
+ })), headerImage !== void 0 && /* @__PURE__ */ React77.createElement(Modal.HeaderImage, {
11124
11171
  backgroundImage: headerImage
11125
- }), /* @__PURE__ */ React76.createElement(Modal.Header, {
11172
+ }), /* @__PURE__ */ React77.createElement(Modal.Header, {
11126
11173
  className: tw({ "pb-3": isComponentType(children, ModalTabs) })
11127
- }, /* @__PURE__ */ React76.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React76.createElement(Modal.Title, {
11174
+ }, /* @__PURE__ */ React77.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React77.createElement(Modal.Title, {
11128
11175
  id: labelledBy
11129
- }, title), subtitle && /* @__PURE__ */ React76.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React76.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React76.createElement(Modal.Body, {
11176
+ }, title), subtitle && /* @__PURE__ */ React77.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React77.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React77.createElement(Modal.Body, {
11130
11177
  id: describedBy,
11131
11178
  tabIndex: 0,
11132
11179
  noFooter: !(secondaryActions || primaryAction)
11133
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React76.createElement(Modal.Footer, null, /* @__PURE__ */ React76.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a2) => {
11180
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React77.createElement(Modal.Footer, null, /* @__PURE__ */ React77.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a2) => {
11134
11181
  var _b2 = _a2, { text } = _b2, action = __objRest(_b2, ["text"]);
11135
- return /* @__PURE__ */ React76.createElement(Button.Secondary, __spreadValues({
11182
+ return /* @__PURE__ */ React77.createElement(Button.Secondary, __spreadValues({
11136
11183
  key: text
11137
11184
  }, action), text);
11138
- }), primaryAction && /* @__PURE__ */ React76.createElement(Button.Primary, __spreadValues({
11185
+ }), primaryAction && /* @__PURE__ */ React77.createElement(Button.Primary, __spreadValues({
11139
11186
  key: primaryAction.text
11140
11187
  }, omit10(primaryAction, "text")), primaryAction.text))));
11141
11188
  }
@@ -11144,24 +11191,24 @@ var ModalTabs = createTabsComponent(
11144
11191
  ModalTab,
11145
11192
  TabItem,
11146
11193
  "ModalTabs",
11147
- (children, selected, props) => /* @__PURE__ */ React76.createElement(Modal.Body, {
11194
+ (children, selected, props) => /* @__PURE__ */ React77.createElement(Modal.Body, {
11148
11195
  maxHeight: props.maxHeight
11149
- }, /* @__PURE__ */ React76.createElement(ModalTabContainer, null, children.find(
11196
+ }, /* @__PURE__ */ React77.createElement(ModalTabContainer, null, children.find(
11150
11197
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
11151
11198
  )))
11152
11199
  );
11153
11200
 
11154
11201
  // src/molecules/MultiInput/MultiInput.tsx
11155
- import React78, { useEffect as useEffect8, useRef as useRef9, useState as useState8 } from "react";
11202
+ import React79, { useEffect as useEffect8, useRef as useRef9, useState as useState8 } from "react";
11156
11203
  import castArray2 from "lodash/castArray";
11157
11204
  import identity from "lodash/identity";
11158
11205
  import omit11 from "lodash/omit";
11159
11206
  import uniqueId4 from "lodash/uniqueId";
11160
11207
 
11161
11208
  // src/molecules/MultiInput/InputChip.tsx
11162
- import React77 from "react";
11209
+ import React78 from "react";
11163
11210
  var import_smallCross2 = __toESM(require_smallCross());
11164
- var InputChip = React77.forwardRef(
11211
+ var InputChip = React78.forwardRef(
11165
11212
  (_a, ref) => {
11166
11213
  var _b = _a, { invalid = false, disabled, readOnly, className, onClick: _onClick, children } = _b, props = __objRest(_b, ["invalid", "disabled", "readOnly", "className", "onClick", "children"]);
11167
11214
  const onClick = (e) => {
@@ -11169,18 +11216,18 @@ var InputChip = React77.forwardRef(
11169
11216
  _onClick == null ? void 0 : _onClick(e);
11170
11217
  }
11171
11218
  };
11172
- return /* @__PURE__ */ React77.createElement("div", {
11219
+ return /* @__PURE__ */ React78.createElement("div", {
11173
11220
  className: classNames(className, "inline-flex align-middle mx-1 items-stretch rounded-sm break-all", {
11174
11221
  "bg-error-0 ": invalid,
11175
11222
  "bg-grey-0 ": !invalid && !disabled,
11176
11223
  "bg-grey-5": disabled
11177
11224
  })
11178
- }, /* @__PURE__ */ React77.createElement("div", {
11225
+ }, /* @__PURE__ */ React78.createElement("div", {
11179
11226
  className: tw("px-2 py-1")
11180
- }, /* @__PURE__ */ React77.createElement(Typography2, {
11227
+ }, /* @__PURE__ */ React78.createElement(Typography2, {
11181
11228
  variant: "small",
11182
11229
  color: invalid ? "error-80" : disabled ? "grey-40" : "grey-70"
11183
- }, children)), !readOnly && /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({
11230
+ }, children)), !readOnly && /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({
11184
11231
  ref
11185
11232
  }, props), {
11186
11233
  onClick,
@@ -11191,7 +11238,7 @@ var InputChip = React77.forwardRef(
11191
11238
  }),
11192
11239
  role: "button",
11193
11240
  "aria-label": `Remove ${children}`
11194
- }), /* @__PURE__ */ React77.createElement(Icon, {
11241
+ }), /* @__PURE__ */ React78.createElement(Icon, {
11195
11242
  icon: import_smallCross2.default,
11196
11243
  className: tw({
11197
11244
  "text-error-70": invalid,
@@ -11332,7 +11379,7 @@ var MultiInputBase = (_a) => {
11332
11379
  };
11333
11380
  const renderChips = () => items == null ? void 0 : items.map((item, index) => {
11334
11381
  var _a3;
11335
- return /* @__PURE__ */ React78.createElement(InputChip, {
11382
+ return /* @__PURE__ */ React79.createElement(InputChip, {
11336
11383
  key: `${itemToString(item)}.${index}`,
11337
11384
  invalid: !((_a3 = isItemValid == null ? void 0 : isItemValid(item, index)) != null ? _a3 : true),
11338
11385
  readOnly,
@@ -11343,13 +11390,13 @@ var MultiInputBase = (_a) => {
11343
11390
  }
11344
11391
  }, itemToString(item));
11345
11392
  });
11346
- return /* @__PURE__ */ React78.createElement("div", {
11393
+ return /* @__PURE__ */ React79.createElement("div", {
11347
11394
  className: "Aquarium-MultiInputBase"
11348
- }, /* @__PURE__ */ React78.createElement(Select.InputContainer, {
11395
+ }, /* @__PURE__ */ React79.createElement(Select.InputContainer, {
11349
11396
  variant: disabled ? "disabled" : valid === false ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
11350
- }, /* @__PURE__ */ React78.createElement("div", {
11397
+ }, /* @__PURE__ */ React79.createElement("div", {
11351
11398
  className: "grow inline-flex flex-row flex-wrap gap-y-2"
11352
- }, inline && renderChips(), /* @__PURE__ */ React78.createElement(Select.Input, __spreadProps(__spreadValues({
11399
+ }, inline && renderChips(), /* @__PURE__ */ React79.createElement(Select.Input, __spreadProps(__spreadValues({
11353
11400
  ref: inputRef,
11354
11401
  id: id != null ? id : name,
11355
11402
  name,
@@ -11367,11 +11414,11 @@ var MultiInputBase = (_a) => {
11367
11414
  onFocus: handleFocus,
11368
11415
  onBlur: handleBlur,
11369
11416
  autoComplete: "off"
11370
- }))), endAdornment && /* @__PURE__ */ React78.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React78.createElement("div", {
11417
+ }))), endAdornment && /* @__PURE__ */ React79.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React79.createElement("div", {
11371
11418
  className: tw("flex flex-row flex-wrap gap-y-2 mt-2")
11372
11419
  }, renderChips()));
11373
11420
  };
11374
- var BaseMultiInputSkeleton = () => /* @__PURE__ */ React78.createElement(Skeleton, {
11421
+ var BaseMultiInputSkeleton = () => /* @__PURE__ */ React79.createElement(Skeleton, {
11375
11422
  height: 38
11376
11423
  });
11377
11424
  MultiInputBase.Skeleton = BaseMultiInputSkeleton;
@@ -11388,7 +11435,7 @@ var MultiInput = (props) => {
11388
11435
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
11389
11436
  const labelControlProps = getLabelControlProps(props);
11390
11437
  const baseProps = omit11(props, Object.keys(labelControlProps));
11391
- return /* @__PURE__ */ React78.createElement(LabelControl, __spreadProps(__spreadValues({
11438
+ return /* @__PURE__ */ React79.createElement(LabelControl, __spreadProps(__spreadValues({
11392
11439
  id: `${id.current}-label`,
11393
11440
  htmlFor: `${id.current}-input`,
11394
11441
  messageId: errorMessageId
@@ -11396,7 +11443,7 @@ var MultiInput = (props) => {
11396
11443
  length: value.length,
11397
11444
  maxLength,
11398
11445
  className: "Aquarium-MultiInput"
11399
- }), /* @__PURE__ */ React78.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
11446
+ }), /* @__PURE__ */ React79.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
11400
11447
  id: `${id.current}-input`,
11401
11448
  onChange: (value2) => {
11402
11449
  var _a2;
@@ -11408,12 +11455,12 @@ var MultiInput = (props) => {
11408
11455
  valid: props.valid
11409
11456
  })));
11410
11457
  };
11411
- var MultiInputSkeleton = () => /* @__PURE__ */ React78.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React78.createElement(MultiInputBase.Skeleton, null));
11458
+ var MultiInputSkeleton = () => /* @__PURE__ */ React79.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React79.createElement(MultiInputBase.Skeleton, null));
11412
11459
  MultiInput.Skeleton = MultiInputSkeleton;
11413
11460
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
11414
11461
 
11415
11462
  // src/molecules/MultiSelect/MultiSelect.tsx
11416
- import React79, { useEffect as useEffect9, useRef as useRef10, useState as useState9 } from "react";
11463
+ import React80, { useEffect as useEffect9, useRef as useRef10, useState as useState9 } from "react";
11417
11464
  import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
11418
11465
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
11419
11466
  import isEqual from "lodash/isEqual";
@@ -11558,7 +11605,7 @@ var MultiSelectBase = (_a) => {
11558
11605
  }
11559
11606
  }, [state.isOpen, inputRef, popoverRef]);
11560
11607
  const renderChips = () => {
11561
- return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React79.createElement(InputChip, __spreadProps(__spreadValues({
11608
+ return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React80.createElement(InputChip, __spreadProps(__spreadValues({
11562
11609
  key: `${itemToString(selectedItem)}.chip`,
11563
11610
  className: tw("mx-0"),
11564
11611
  disabled,
@@ -11574,14 +11621,14 @@ var MultiSelectBase = (_a) => {
11574
11621
  const hasNoResults = options.length === 0 || filteredOptions.length === 0;
11575
11622
  const inputProps = getInputProps(getDropdownProps({ ref: inputRef, disabled: disabled || readOnly }));
11576
11623
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
11577
- return /* @__PURE__ */ React79.createElement("div", {
11624
+ return /* @__PURE__ */ React80.createElement("div", {
11578
11625
  className: classNames("Aquarium-MultiSelectBase", tw("relative"))
11579
- }, /* @__PURE__ */ React79.createElement(Select.InputContainer, {
11626
+ }, /* @__PURE__ */ React80.createElement(Select.InputContainer, {
11580
11627
  ref: targetRef,
11581
11628
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
11582
- }, /* @__PURE__ */ React79.createElement("div", {
11629
+ }, /* @__PURE__ */ React80.createElement("div", {
11583
11630
  className: "grow inline-flex flex-row flex-wrap gap-2"
11584
- }, !hideChips && inline && renderChips(), /* @__PURE__ */ React79.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
11631
+ }, !hideChips && inline && renderChips(), /* @__PURE__ */ React80.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
11585
11632
  id,
11586
11633
  ref: inputRef,
11587
11634
  name,
@@ -11603,12 +11650,12 @@ var MultiSelectBase = (_a) => {
11603
11650
  setFocus(false);
11604
11651
  (_a3 = inputProps.onBlur) == null ? void 0 : _a3.call(inputProps, e);
11605
11652
  }
11606
- }))), !readOnly && /* @__PURE__ */ React79.createElement(Select.Toggle, __spreadValues({
11653
+ }))), !readOnly && /* @__PURE__ */ React80.createElement(Select.Toggle, __spreadValues({
11607
11654
  hasFocus,
11608
11655
  isOpen
11609
- }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React79.createElement("div", {
11656
+ }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React80.createElement("div", {
11610
11657
  className: tw("flex flex-row flex-wrap gap-2 mt-2")
11611
- }, renderChips()), isOpen && /* @__PURE__ */ React79.createElement(PopoverOverlay, {
11658
+ }, renderChips()), isOpen && /* @__PURE__ */ React80.createElement(PopoverOverlay, {
11612
11659
  ref: popoverRef,
11613
11660
  triggerRef: targetRef,
11614
11661
  state,
@@ -11616,16 +11663,16 @@ var MultiSelectBase = (_a) => {
11616
11663
  shouldFlip: true,
11617
11664
  isNonModal: true,
11618
11665
  style: { width: (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth }
11619
- }, /* @__PURE__ */ React79.createElement(Select.Menu, __spreadValues({
11666
+ }, /* @__PURE__ */ React80.createElement(Select.Menu, __spreadValues({
11620
11667
  ref: menuRef,
11621
11668
  maxHeight
11622
- }, menuProps), hasNoResults && /* @__PURE__ */ React79.createElement(Select.NoResults, null, noResults), filteredOptions.map((item, index) => /* @__PURE__ */ React79.createElement(Select.Item, __spreadValues({
11669
+ }, menuProps), hasNoResults && /* @__PURE__ */ React80.createElement(Select.NoResults, null, noResults), filteredOptions.map((item, index) => /* @__PURE__ */ React80.createElement(Select.Item, __spreadValues({
11623
11670
  key: itemToString(item),
11624
11671
  highlighted: index === highlightedIndex,
11625
11672
  selected: selectedItems.includes(item)
11626
11673
  }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
11627
11674
  };
11628
- var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React79.createElement(Skeleton, {
11675
+ var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React80.createElement(Skeleton, {
11629
11676
  height: 38
11630
11677
  });
11631
11678
  MultiSelectBase.Skeleton = MultiSelectBaseSkeleton;
@@ -11643,13 +11690,13 @@ var MultiSelect = (_a) => {
11643
11690
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
11644
11691
  const labelControlProps = getLabelControlProps(props);
11645
11692
  const baseProps = omit12(props, Object.keys(labelControlProps));
11646
- return /* @__PURE__ */ React79.createElement(LabelControl, __spreadProps(__spreadValues({
11693
+ return /* @__PURE__ */ React80.createElement(LabelControl, __spreadProps(__spreadValues({
11647
11694
  id: `${id.current}-label`,
11648
11695
  htmlFor: `${id.current}-input`,
11649
11696
  messageId: errorMessageId
11650
11697
  }, labelControlProps), {
11651
11698
  className: "Aquarium-MultiSelect"
11652
- }), /* @__PURE__ */ React79.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
11699
+ }), /* @__PURE__ */ React80.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
11653
11700
  id: id.current,
11654
11701
  options,
11655
11702
  noResults,
@@ -11657,16 +11704,16 @@ var MultiSelect = (_a) => {
11657
11704
  valid: props.valid
11658
11705
  })));
11659
11706
  };
11660
- var MultiSelectSkeleton = () => /* @__PURE__ */ React79.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React79.createElement(MultiSelectBase.Skeleton, null));
11707
+ var MultiSelectSkeleton = () => /* @__PURE__ */ React80.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React80.createElement(MultiSelectBase.Skeleton, null));
11661
11708
  MultiSelect.Skeleton = MultiSelectSkeleton;
11662
11709
  MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
11663
11710
 
11664
11711
  // src/molecules/NativeSelect/NativeSelect.tsx
11665
- import React80, { useRef as useRef11 } from "react";
11712
+ import React81, { useRef as useRef11 } from "react";
11666
11713
  import omit13 from "lodash/omit";
11667
11714
  import uniqueId6 from "lodash/uniqueId";
11668
11715
  var import_caretDown2 = __toESM(require_caretDown());
11669
- var NativeSelectBase = React80.forwardRef(
11716
+ var NativeSelectBase = React81.forwardRef(
11670
11717
  (_a, ref) => {
11671
11718
  var _b = _a, { children, disabled = false, required = false, valid = true, readOnly = false } = _b, props = __objRest(_b, ["children", "disabled", "required", "valid", "readOnly"]);
11672
11719
  const placeholderValue = uniqueId6("default_value_for_placeholder");
@@ -11683,16 +11730,16 @@ var NativeSelectBase = React80.forwardRef(
11683
11730
  (_b2 = props.onBlur) == null ? void 0 : _b2.call(props, event);
11684
11731
  }
11685
11732
  };
11686
- return /* @__PURE__ */ React80.createElement("span", {
11733
+ return /* @__PURE__ */ React81.createElement("span", {
11687
11734
  className: classNames("Aquarium-NativeSelectBase", tw("relative block"))
11688
- }, !readOnly && /* @__PURE__ */ React80.createElement("span", {
11735
+ }, !readOnly && /* @__PURE__ */ React81.createElement("span", {
11689
11736
  className: tw(
11690
11737
  "absolute right-0 inset-y-0 mr-4 text-grey-40 flex ml-3 pointer-events-none typography-default-strong mt-4"
11691
11738
  )
11692
- }, /* @__PURE__ */ React80.createElement(Icon, {
11739
+ }, /* @__PURE__ */ React81.createElement(Icon, {
11693
11740
  icon: import_caretDown2.default,
11694
11741
  "data-testid": "icon-dropdown"
11695
- })), /* @__PURE__ */ React80.createElement("select", __spreadProps(__spreadValues({
11742
+ })), /* @__PURE__ */ React81.createElement("select", __spreadProps(__spreadValues({
11696
11743
  ref,
11697
11744
  disabled: disabled || readOnly,
11698
11745
  required
@@ -11711,16 +11758,16 @@ var NativeSelectBase = React80.forwardRef(
11711
11758
  ),
11712
11759
  props.className
11713
11760
  )
11714
- }), props.placeholder && /* @__PURE__ */ React80.createElement("option", {
11761
+ }), props.placeholder && /* @__PURE__ */ React81.createElement("option", {
11715
11762
  value: placeholderValue,
11716
11763
  disabled: true
11717
11764
  }, props.placeholder), children));
11718
11765
  }
11719
11766
  );
11720
- NativeSelectBase.Skeleton = () => /* @__PURE__ */ React80.createElement(Skeleton, {
11767
+ NativeSelectBase.Skeleton = () => /* @__PURE__ */ React81.createElement(Skeleton, {
11721
11768
  height: 38
11722
11769
  });
11723
- var NativeSelect = React80.forwardRef(
11770
+ var NativeSelect = React81.forwardRef(
11724
11771
  (_a, ref) => {
11725
11772
  var _b = _a, { readOnly } = _b, props = __objRest(_b, ["readOnly"]);
11726
11773
  var _a2;
@@ -11729,13 +11776,13 @@ var NativeSelect = React80.forwardRef(
11729
11776
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
11730
11777
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
11731
11778
  const baseProps = omit13(props, Object.keys(labelControlProps));
11732
- return /* @__PURE__ */ React80.createElement(LabelControl, __spreadProps(__spreadValues({
11779
+ return /* @__PURE__ */ React81.createElement(LabelControl, __spreadProps(__spreadValues({
11733
11780
  id: `${id.current}-label`,
11734
11781
  htmlFor: id.current,
11735
11782
  messageId: errorMessageId
11736
11783
  }, labelControlProps), {
11737
11784
  className: "Aquarium-NativeSelect"
11738
- }), /* @__PURE__ */ React80.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
11785
+ }), /* @__PURE__ */ React81.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
11739
11786
  ref
11740
11787
  }, baseProps), errorProps), {
11741
11788
  id: id.current,
@@ -11749,63 +11796,63 @@ var NativeSelect = React80.forwardRef(
11749
11796
  }
11750
11797
  );
11751
11798
  NativeSelect.displayName = "NativeSelect";
11752
- var Option = React80.forwardRef((_a, ref) => {
11799
+ var Option = React81.forwardRef((_a, ref) => {
11753
11800
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
11754
- return /* @__PURE__ */ React80.createElement("option", __spreadValues({
11801
+ return /* @__PURE__ */ React81.createElement("option", __spreadValues({
11755
11802
  ref
11756
11803
  }, props), children);
11757
11804
  });
11758
11805
  Option.displayName = "Option";
11759
- var NativeSelectSkeleton = () => /* @__PURE__ */ React80.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React80.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React80.createElement("div", {
11806
+ var NativeSelectSkeleton = () => /* @__PURE__ */ React81.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React81.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React81.createElement("div", {
11760
11807
  style: { height: "1px" }
11761
11808
  }));
11762
11809
  NativeSelect.Skeleton = NativeSelectSkeleton;
11763
11810
  NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
11764
11811
 
11765
11812
  // src/molecules/Navigation/Navigation.tsx
11766
- import React82 from "react";
11813
+ import React83 from "react";
11767
11814
  import classNames9 from "classnames";
11768
11815
 
11769
11816
  // src/atoms/Navigation/Navigation.tsx
11770
- import React81 from "react";
11817
+ import React82 from "react";
11771
11818
  var Navigation = (_a) => {
11772
11819
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
11773
- return /* @__PURE__ */ React81.createElement("nav", {
11820
+ return /* @__PURE__ */ React82.createElement("nav", {
11774
11821
  className: classNames(tw("bg-grey-0 h-full"))
11775
- }, /* @__PURE__ */ React81.createElement("ul", __spreadProps(__spreadValues({}, rest), {
11822
+ }, /* @__PURE__ */ React82.createElement("ul", __spreadProps(__spreadValues({}, rest), {
11776
11823
  className: classNames(tw("flex flex-col h-full"), className),
11777
11824
  role: "menu"
11778
11825
  }), children));
11779
11826
  };
11780
11827
  var Header = (_a) => {
11781
11828
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11782
- return /* @__PURE__ */ React81.createElement("li", __spreadProps(__spreadValues({}, rest), {
11829
+ return /* @__PURE__ */ React82.createElement("li", __spreadProps(__spreadValues({}, rest), {
11783
11830
  role: "presentation",
11784
11831
  className: classNames(tw("px-6 py-5"), className)
11785
11832
  }));
11786
11833
  };
11787
11834
  var Footer = (_a) => {
11788
11835
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11789
- return /* @__PURE__ */ React81.createElement("li", __spreadProps(__spreadValues({}, rest), {
11836
+ return /* @__PURE__ */ React82.createElement("li", __spreadProps(__spreadValues({}, rest), {
11790
11837
  role: "presentation",
11791
11838
  className: classNames(tw("px-6 py-5 mt-auto"), className)
11792
11839
  }));
11793
11840
  };
11794
11841
  var Section2 = (_a) => {
11795
11842
  var _b = _a, { title, className } = _b, rest = __objRest(_b, ["title", "className"]);
11796
- return /* @__PURE__ */ React81.createElement("li", {
11843
+ return /* @__PURE__ */ React82.createElement("li", {
11797
11844
  role: "presentation",
11798
11845
  className: tw("py-5")
11799
- }, title && /* @__PURE__ */ React81.createElement("div", {
11846
+ }, title && /* @__PURE__ */ React82.createElement("div", {
11800
11847
  className: classNames(className, "py-2 px-6 text-grey-40 uppercase cursor-default typography-caption")
11801
- }, title), /* @__PURE__ */ React81.createElement("ul", __spreadProps(__spreadValues({}, rest), {
11848
+ }, title), /* @__PURE__ */ React82.createElement("ul", __spreadProps(__spreadValues({}, rest), {
11802
11849
  role: "group",
11803
11850
  className: classNames(tw("flex flex-col"), className)
11804
11851
  })));
11805
11852
  };
11806
11853
  var Divider3 = (_a) => {
11807
11854
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
11808
- return /* @__PURE__ */ React81.createElement("li", __spreadProps(__spreadValues({
11855
+ return /* @__PURE__ */ React82.createElement("li", __spreadProps(__spreadValues({
11809
11856
  role: "separator"
11810
11857
  }, rest), {
11811
11858
  className: classNames(tw("border-t-2 border-grey-5"), className)
@@ -11813,9 +11860,9 @@ var Divider3 = (_a) => {
11813
11860
  };
11814
11861
  var Item5 = (_a) => {
11815
11862
  var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
11816
- return /* @__PURE__ */ React81.createElement("li", {
11863
+ return /* @__PURE__ */ React82.createElement("li", {
11817
11864
  role: "presentation"
11818
- }, /* @__PURE__ */ React81.createElement("a", __spreadProps(__spreadValues({}, rest), {
11865
+ }, /* @__PURE__ */ React82.createElement("a", __spreadProps(__spreadValues({}, rest), {
11819
11866
  role: "menuitem",
11820
11867
  className: classNames(
11821
11868
  tw("py-3 px-6 hover:bg-grey-5 cursor-pointer flex gap-4 items-center typography-small focusable", {
@@ -11835,13 +11882,13 @@ Navigation.Divider = Divider3;
11835
11882
  // src/molecules/Navigation/Navigation.tsx
11836
11883
  var Navigation2 = (_a) => {
11837
11884
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11838
- return /* @__PURE__ */ React82.createElement(Navigation, __spreadValues({
11885
+ return /* @__PURE__ */ React83.createElement(Navigation, __spreadValues({
11839
11886
  className: classNames9("Aquarium-Navigation", className)
11840
11887
  }, props));
11841
11888
  };
11842
11889
  var Item6 = (_a) => {
11843
11890
  var _b = _a, { children, icon } = _b, rest = __objRest(_b, ["children", "icon"]);
11844
- return /* @__PURE__ */ React82.createElement(Navigation.Item, __spreadValues({}, rest), icon && /* @__PURE__ */ React82.createElement(InlineIcon, {
11891
+ return /* @__PURE__ */ React83.createElement(Navigation.Item, __spreadValues({}, rest), icon && /* @__PURE__ */ React83.createElement(InlineIcon, {
11845
11892
  icon,
11846
11893
  width: "20px",
11847
11894
  height: "20px"
@@ -11854,51 +11901,51 @@ Navigation2.Header = Navigation.Header;
11854
11901
  Navigation2.Section = Navigation.Section;
11855
11902
 
11856
11903
  // src/molecules/PageHeader/PageHeader.tsx
11857
- import React84 from "react";
11904
+ import React85 from "react";
11858
11905
  import castArray3 from "lodash/castArray";
11859
11906
  import omit14 from "lodash/omit";
11860
11907
 
11861
11908
  // src/atoms/PageHeader/PageHeader.tsx
11862
- import React83 from "react";
11909
+ import React84 from "react";
11863
11910
  var PageHeader = (_a) => {
11864
11911
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11865
- return /* @__PURE__ */ React83.createElement("div", __spreadValues({
11912
+ return /* @__PURE__ */ React84.createElement("div", __spreadValues({
11866
11913
  className: classNames(tw("flex flex-row gap-4 pb-6"), className)
11867
11914
  }, rest), children);
11868
11915
  };
11869
11916
  PageHeader.Container = (_a) => {
11870
11917
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11871
- return /* @__PURE__ */ React83.createElement("div", __spreadValues({
11918
+ return /* @__PURE__ */ React84.createElement("div", __spreadValues({
11872
11919
  className: classNames(tw("flex flex-col grow gap-0"), className)
11873
11920
  }, rest), children);
11874
11921
  };
11875
11922
  PageHeader.TitleContainer = (_a) => {
11876
11923
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11877
- return /* @__PURE__ */ React83.createElement("div", __spreadValues({
11924
+ return /* @__PURE__ */ React84.createElement("div", __spreadValues({
11878
11925
  className: classNames(tw("flex flex-col justify-center gap-2"), className)
11879
11926
  }, rest), children);
11880
11927
  };
11881
11928
  PageHeader.Title = (_a) => {
11882
11929
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
11883
- return /* @__PURE__ */ React83.createElement(Typography2.Heading, __spreadProps(__spreadValues({}, rest), {
11930
+ return /* @__PURE__ */ React84.createElement(Typography2.Heading, __spreadProps(__spreadValues({}, rest), {
11884
11931
  color: "grey-100"
11885
11932
  }), children);
11886
11933
  };
11887
11934
  PageHeader.Subtitle = (_a) => {
11888
11935
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
11889
- return /* @__PURE__ */ React83.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
11936
+ return /* @__PURE__ */ React84.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
11890
11937
  color: "grey-70"
11891
11938
  }), children);
11892
11939
  };
11893
11940
  PageHeader.Chips = (_a) => {
11894
11941
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11895
- return /* @__PURE__ */ React83.createElement("div", __spreadValues({
11942
+ return /* @__PURE__ */ React84.createElement("div", __spreadValues({
11896
11943
  className: classNames(tw("flex gap-3"), className)
11897
11944
  }, rest), children);
11898
11945
  };
11899
11946
  PageHeader.Actions = (_a) => {
11900
11947
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
11901
- return /* @__PURE__ */ React83.createElement("div", __spreadValues({
11948
+ return /* @__PURE__ */ React84.createElement("div", __spreadValues({
11902
11949
  className: classNames(tw("flex flex-row gap-4 self-start"), className)
11903
11950
  }, rest), children);
11904
11951
  };
@@ -11914,36 +11961,41 @@ var PageHeader2 = ({
11914
11961
  chips = [],
11915
11962
  breadcrumbs
11916
11963
  }) => {
11917
- return /* @__PURE__ */ React84.createElement(PageHeader, {
11964
+ return /* @__PURE__ */ React85.createElement(PageHeader, {
11918
11965
  className: "Aquarium-PageHeader"
11919
- }, /* @__PURE__ */ React84.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React84.createElement(Box, {
11966
+ }, /* @__PURE__ */ React85.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React85.createElement(Box, {
11920
11967
  marginBottom: image ? "3" : void 0
11921
- }, /* @__PURE__ */ React84.createElement(Breadcrumbs, null, breadcrumbs)), /* @__PURE__ */ React84.createElement(Flexbox, {
11968
+ }, /* @__PURE__ */ React85.createElement(Breadcrumbs, null, breadcrumbs)), /* @__PURE__ */ React85.createElement(Flexbox, {
11922
11969
  gap: "5"
11923
- }, image && /* @__PURE__ */ React84.createElement("img", {
11970
+ }, image && /* @__PURE__ */ React85.createElement("img", {
11924
11971
  src: image,
11925
11972
  alt: imageAlt,
11926
11973
  className: tw("w-[56px] h-[56px]")
11927
- }), /* @__PURE__ */ React84.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React84.createElement(PageHeader.Title, null, title), chips.length > 0 && /* @__PURE__ */ React84.createElement(PageHeader.Chips, null, chips.map((chip) => /* @__PURE__ */ React84.createElement(Chip2, {
11974
+ }), /* @__PURE__ */ React85.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React85.createElement(PageHeader.Title, null, title), chips.length > 0 && /* @__PURE__ */ React85.createElement(PageHeader.Chips, null, chips.map((chip) => /* @__PURE__ */ React85.createElement(Chip2, {
11928
11975
  key: chip,
11929
11976
  dense: true,
11930
11977
  text: chip
11931
- }))), subtitle && /* @__PURE__ */ React84.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions || primaryAction) && /* @__PURE__ */ React84.createElement(PageHeader.Actions, null, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a) => {
11932
- var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
11933
- return /* @__PURE__ */ React84.createElement(Button.Secondary, __spreadValues({
11934
- key: text
11935
- }, action), text);
11936
- }), primaryAction && /* @__PURE__ */ React84.createElement(Button.Primary, __spreadValues({
11978
+ }))), subtitle && /* @__PURE__ */ React85.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions || primaryAction) && /* @__PURE__ */ React85.createElement(PageHeader.Actions, null, secondaryActions && castArray3(secondaryActions).filter(Boolean).map(
11979
+ (action) => !isLink(action) ? /* @__PURE__ */ React85.createElement(Button.Secondary, __spreadValues({
11980
+ key: action.text
11981
+ }, omit14(action, "text")), action.text) : /* @__PURE__ */ React85.createElement(Button.ExternalLink, __spreadValues({
11982
+ key: action.text,
11983
+ kind: "secondary"
11984
+ }, omit14(action, "text")), action.text)
11985
+ ), primaryAction && /* @__PURE__ */ React85.createElement(React85.Fragment, null, !isLink(primaryAction) && /* @__PURE__ */ React85.createElement(Button.Primary, __spreadValues({
11937
11986
  key: primaryAction.text
11938
- }, omit14(primaryAction, "text")), primaryAction.text)));
11987
+ }, omit14(primaryAction, "text")), primaryAction.text), isLink(primaryAction) && /* @__PURE__ */ React85.createElement(Button.ExternalLink, __spreadValues({
11988
+ key: primaryAction.text,
11989
+ kind: "primary"
11990
+ }, omit14(primaryAction, "text")), primaryAction.text))));
11939
11991
  };
11940
11992
 
11941
11993
  // src/molecules/Pagination/Pagination.tsx
11942
- import React86 from "react";
11994
+ import React87 from "react";
11943
11995
  import clamp from "lodash/clamp";
11944
11996
 
11945
11997
  // src/molecules/Select/Select.tsx
11946
- import React85, { useRef as useRef12, useState as useState10 } from "react";
11998
+ import React86, { useRef as useRef12, useState as useState10 } from "react";
11947
11999
  import { useSelect } from "downshift";
11948
12000
  import defaults from "lodash/defaults";
11949
12001
  import isArray from "lodash/isArray";
@@ -11959,10 +12011,10 @@ var hasOptionGroups = (val) => {
11959
12011
  };
11960
12012
  var defaultRenderOption = (item, props, { selectedItem }, { getOptionKey, getValue, optionToString = getOptionLabelBuiltin }) => {
11961
12013
  var _a, _b;
11962
- return /* @__PURE__ */ React85.createElement(Select.Item, __spreadValues({
12014
+ return /* @__PURE__ */ React86.createElement(Select.Item, __spreadValues({
11963
12015
  key: (_b = (_a = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a : getValue == null ? void 0 : getValue(item)) != null ? _b : optionToString(item),
11964
12016
  selected: item === selectedItem
11965
- }, props), hasIconProperty(item) && /* @__PURE__ */ React85.createElement(InlineIcon, {
12017
+ }, props), hasIconProperty(item) && /* @__PURE__ */ React86.createElement(InlineIcon, {
11966
12018
  icon: item.icon
11967
12019
  }), optionToString(item));
11968
12020
  };
@@ -12081,13 +12133,13 @@ var _SelectBase = (props) => {
12081
12133
  },
12082
12134
  withDefaults
12083
12135
  );
12084
- const renderGroup = (group) => /* @__PURE__ */ React85.createElement(React85.Fragment, {
12136
+ const renderGroup = (group) => /* @__PURE__ */ React86.createElement(React86.Fragment, {
12085
12137
  key: group.label
12086
- }, /* @__PURE__ */ React85.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
12087
- const input = /* @__PURE__ */ React85.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
12138
+ }, /* @__PURE__ */ React86.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
12139
+ const input = /* @__PURE__ */ React86.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
12088
12140
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default",
12089
12141
  tabIndex: 0
12090
- }), /* @__PURE__ */ React85.createElement(Select.Input, __spreadProps(__spreadValues({
12142
+ }), /* @__PURE__ */ React86.createElement(Select.Input, __spreadProps(__spreadValues({
12091
12143
  id,
12092
12144
  name
12093
12145
  }, rest), {
@@ -12099,26 +12151,26 @@ var _SelectBase = (props) => {
12099
12151
  tabIndex: -1,
12100
12152
  onFocus: () => setFocus(true),
12101
12153
  onBlur: () => setFocus(false)
12102
- })), !readOnly && /* @__PURE__ */ React85.createElement(Select.Toggle, {
12154
+ })), !readOnly && /* @__PURE__ */ React86.createElement(Select.Toggle, {
12103
12155
  disabled,
12104
12156
  isOpen,
12105
12157
  tabIndex: -1
12106
12158
  }));
12107
12159
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
12108
- return /* @__PURE__ */ React85.createElement("div", {
12160
+ return /* @__PURE__ */ React86.createElement("div", {
12109
12161
  className: classNames("Aquarium-SelectBase", tw("relative"))
12110
- }, labelWrapper ? React85.cloneElement(labelWrapper, { children: input }) : input, isOpen && /* @__PURE__ */ React85.createElement(PopoverOverlay, {
12162
+ }, labelWrapper ? React86.cloneElement(labelWrapper, { children: input }) : input, isOpen && /* @__PURE__ */ React86.createElement(PopoverOverlay, {
12111
12163
  state,
12112
12164
  triggerRef: targetRef,
12113
12165
  placement: "bottom-left",
12114
12166
  shouldFlip: true,
12115
12167
  style: { width: (_b = targetRef.current) == null ? void 0 : _b.offsetWidth }
12116
- }, /* @__PURE__ */ React85.createElement(Select.Menu, __spreadValues({
12168
+ }, /* @__PURE__ */ React86.createElement(Select.Menu, __spreadValues({
12117
12169
  ref: menuRef,
12118
12170
  maxHeight
12119
- }, menuProps), options.length === 0 && /* @__PURE__ */ React85.createElement(Select.EmptyStateContainer, null, emptyState), options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), actions.length > 0 && /* @__PURE__ */ React85.createElement(React85.Fragment, null, /* @__PURE__ */ React85.createElement(Select.Divider, {
12171
+ }, menuProps), options.length === 0 && /* @__PURE__ */ React86.createElement(Select.EmptyStateContainer, null, emptyState), options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), actions.length > 0 && /* @__PURE__ */ React86.createElement(React86.Fragment, null, /* @__PURE__ */ React86.createElement(Select.Divider, {
12120
12172
  onMouseOver: () => setHighlightedIndex(-1)
12121
- }), actions.map((act, index) => /* @__PURE__ */ React85.createElement(Select.ActionItem, __spreadProps(__spreadValues({
12173
+ }), actions.map((act, index) => /* @__PURE__ */ React86.createElement(Select.ActionItem, __spreadProps(__spreadValues({
12122
12174
  key: `${index}`
12123
12175
  }, act), {
12124
12176
  onMouseOver: () => setHighlightedIndex(-1),
@@ -12128,10 +12180,10 @@ var _SelectBase = (props) => {
12128
12180
  }
12129
12181
  }), act.label))))));
12130
12182
  };
12131
- var SelectBase = (props) => /* @__PURE__ */ React85.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
12183
+ var SelectBase = (props) => /* @__PURE__ */ React86.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
12132
12184
  labelWrapper: void 0
12133
12185
  }));
12134
- var SelectBaseSkeleton = () => /* @__PURE__ */ React85.createElement(Skeleton, {
12186
+ var SelectBaseSkeleton = () => /* @__PURE__ */ React86.createElement(Skeleton, {
12135
12187
  height: 38
12136
12188
  });
12137
12189
  SelectBase.Skeleton = SelectBaseSkeleton;
@@ -12149,21 +12201,21 @@ var Select2 = (_a) => {
12149
12201
  const baseProps = omit15(props, Object.keys(labelProps));
12150
12202
  const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
12151
12203
  const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
12152
- const label = /* @__PURE__ */ React85.createElement(Label, __spreadValues({
12204
+ const label = /* @__PURE__ */ React86.createElement(Label, __spreadValues({
12153
12205
  id: `${id.current}-label`,
12154
12206
  htmlFor: `${id.current}-input`,
12155
12207
  variant,
12156
12208
  messageId: errorMessageId
12157
12209
  }, labelProps));
12158
- return /* @__PURE__ */ React85.createElement(FormControl, {
12210
+ return /* @__PURE__ */ React86.createElement(FormControl, {
12159
12211
  className: "Aquarium-Select"
12160
- }, /* @__PURE__ */ React85.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
12212
+ }, /* @__PURE__ */ React86.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
12161
12213
  id: `${id.current}-input`,
12162
12214
  options,
12163
12215
  disabled: props.disabled,
12164
12216
  valid: props.valid,
12165
12217
  labelWrapper: label
12166
- })), /* @__PURE__ */ React85.createElement(HelperText, {
12218
+ })), /* @__PURE__ */ React86.createElement(HelperText, {
12167
12219
  messageId: errorMessageId,
12168
12220
  error: !labelProps.valid,
12169
12221
  helperText: labelProps.helperText,
@@ -12172,7 +12224,7 @@ var Select2 = (_a) => {
12172
12224
  reserveSpaceForError: labelProps.reserveSpaceForError
12173
12225
  }));
12174
12226
  };
12175
- var SelectSkeleton = () => /* @__PURE__ */ React85.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React85.createElement(SelectBase.Skeleton, null));
12227
+ var SelectSkeleton = () => /* @__PURE__ */ React86.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React86.createElement(SelectBase.Skeleton, null));
12176
12228
  Select2.Skeleton = SelectSkeleton;
12177
12229
  Select2.Skeleton.displayName = "Select.Skeleton";
12178
12230
 
@@ -12191,23 +12243,23 @@ var Pagination = ({
12191
12243
  pageSizes,
12192
12244
  onPageSizeChange
12193
12245
  }) => {
12194
- const [value, setValue] = React86.useState(currentPage);
12195
- React86.useEffect(() => {
12246
+ const [value, setValue] = React87.useState(currentPage);
12247
+ React87.useEffect(() => {
12196
12248
  setValue(currentPage);
12197
12249
  }, [currentPage]);
12198
- return /* @__PURE__ */ React86.createElement(Box, {
12250
+ return /* @__PURE__ */ React87.createElement(Box, {
12199
12251
  className: classNames("Aquarium-Pagination", tw("grid grid-cols-[200px_1fr_200px]")),
12200
12252
  backgroundColor: "grey-0",
12201
12253
  padding: "4"
12202
- }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React86.createElement(Box, {
12254
+ }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React87.createElement(Box, {
12203
12255
  display: "flex",
12204
12256
  alignItems: "center",
12205
12257
  gap: "4"
12206
- }, /* @__PURE__ */ React86.createElement(Typography2.Small, {
12258
+ }, /* @__PURE__ */ React87.createElement(Typography2.Small, {
12207
12259
  color: "grey-50"
12208
- }, "Items per page "), /* @__PURE__ */ React86.createElement("div", {
12260
+ }, "Items per page "), /* @__PURE__ */ React87.createElement("div", {
12209
12261
  className: tw("max-w-[70px]")
12210
- }, /* @__PURE__ */ React86.createElement(SelectBase, {
12262
+ }, /* @__PURE__ */ React87.createElement(SelectBase, {
12211
12263
  options: pageSizes.map((size) => size.toString()),
12212
12264
  value: pageSize.toString(),
12213
12265
  onChange: (size) => {
@@ -12218,26 +12270,26 @@ var Pagination = ({
12218
12270
  }
12219
12271
  }
12220
12272
  }
12221
- }))) : /* @__PURE__ */ React86.createElement("div", null), /* @__PURE__ */ React86.createElement(Box, {
12273
+ }))) : /* @__PURE__ */ React87.createElement("div", null), /* @__PURE__ */ React87.createElement(Box, {
12222
12274
  display: "flex",
12223
12275
  justifyContent: "center",
12224
12276
  alignItems: "center",
12225
12277
  className: tw("grow")
12226
- }, /* @__PURE__ */ React86.createElement(IconButton, {
12278
+ }, /* @__PURE__ */ React87.createElement(IconButton, {
12227
12279
  "aria-label": "First",
12228
12280
  onClick: () => onPageChange(1),
12229
12281
  icon: import_chevronBackward2.default,
12230
12282
  disabled: !hasPreviousPage
12231
- }), /* @__PURE__ */ React86.createElement(IconButton, {
12283
+ }), /* @__PURE__ */ React87.createElement(IconButton, {
12232
12284
  "aria-label": "Previous",
12233
12285
  onClick: () => onPageChange(currentPage - 1),
12234
12286
  icon: import_chevronLeft4.default,
12235
12287
  disabled: !hasPreviousPage
12236
- }), /* @__PURE__ */ React86.createElement(Box, {
12288
+ }), /* @__PURE__ */ React87.createElement(Box, {
12237
12289
  paddingX: "4"
12238
- }, /* @__PURE__ */ React86.createElement(Typography2.Small, {
12290
+ }, /* @__PURE__ */ React87.createElement(Typography2.Small, {
12239
12291
  color: "grey-60"
12240
- }, "Page")), /* @__PURE__ */ React86.createElement(InputBase, {
12292
+ }, "Page")), /* @__PURE__ */ React87.createElement(InputBase, {
12241
12293
  className: classNames(tw("text-center max-w-[40px]"), "no-arrows"),
12242
12294
  type: "number",
12243
12295
  min: 1,
@@ -12254,45 +12306,45 @@ var Pagination = ({
12254
12306
  const newPage = !isNaN(numberValue) ? clamp(numberValue, 1, totalPages) : 1;
12255
12307
  onPageChange(newPage);
12256
12308
  }
12257
- }), /* @__PURE__ */ React86.createElement(Box, {
12309
+ }), /* @__PURE__ */ React87.createElement(Box, {
12258
12310
  paddingX: "4"
12259
- }, /* @__PURE__ */ React86.createElement(Typography2.Small, {
12311
+ }, /* @__PURE__ */ React87.createElement(Typography2.Small, {
12260
12312
  color: "grey-60"
12261
- }, "of ", totalPages)), /* @__PURE__ */ React86.createElement(IconButton, {
12313
+ }, "of ", totalPages)), /* @__PURE__ */ React87.createElement(IconButton, {
12262
12314
  "aria-label": "Next",
12263
12315
  onClick: () => onPageChange(currentPage + 1),
12264
12316
  icon: import_chevronRight4.default,
12265
12317
  disabled: !hasNextPage
12266
- }), /* @__PURE__ */ React86.createElement(IconButton, {
12318
+ }), /* @__PURE__ */ React87.createElement(IconButton, {
12267
12319
  "aria-label": "Last",
12268
12320
  onClick: () => onPageChange(totalPages),
12269
12321
  icon: import_chevronForward2.default,
12270
12322
  disabled: !hasNextPage
12271
- })), /* @__PURE__ */ React86.createElement("div", null));
12323
+ })), /* @__PURE__ */ React87.createElement("div", null));
12272
12324
  };
12273
12325
 
12274
12326
  // src/molecules/PopoverDialog/PopoverDialog.tsx
12275
- import React88 from "react";
12327
+ import React89 from "react";
12276
12328
  import omit16 from "lodash/omit";
12277
12329
 
12278
12330
  // src/atoms/PopoverDialog/PopoverDialog.tsx
12279
- import React87 from "react";
12331
+ import React88 from "react";
12280
12332
  var Header2 = (_a) => {
12281
12333
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12282
- return /* @__PURE__ */ React87.createElement("div", __spreadProps(__spreadValues({}, rest), {
12334
+ return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
12283
12335
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
12284
12336
  }), children);
12285
12337
  };
12286
12338
  var Title = (_a) => {
12287
12339
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12288
- return /* @__PURE__ */ React87.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
12340
+ return /* @__PURE__ */ React88.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
12289
12341
  htmlTag: "h1",
12290
12342
  variant: "small-strong"
12291
12343
  }), children);
12292
12344
  };
12293
12345
  var Body = (_a) => {
12294
12346
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12295
- return /* @__PURE__ */ React87.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
12347
+ return /* @__PURE__ */ React88.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
12296
12348
  htmlTag: "div",
12297
12349
  variant: "caption",
12298
12350
  className: classNames(tw("px-5 overflow-y-auto"), className)
@@ -12300,13 +12352,13 @@ var Body = (_a) => {
12300
12352
  };
12301
12353
  var Footer2 = (_a) => {
12302
12354
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12303
- return /* @__PURE__ */ React87.createElement("div", __spreadProps(__spreadValues({}, rest), {
12355
+ return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
12304
12356
  className: classNames(tw("p-5"), className)
12305
12357
  }), children);
12306
12358
  };
12307
12359
  var Actions2 = (_a) => {
12308
12360
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12309
- return /* @__PURE__ */ React87.createElement("div", __spreadProps(__spreadValues({}, rest), {
12361
+ return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
12310
12362
  className: classNames(tw("flex gap-4"), className)
12311
12363
  }), children);
12312
12364
  };
@@ -12322,13 +12374,13 @@ var PopoverDialog = {
12322
12374
  var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
12323
12375
  const wrapPromptWithBody = (child) => {
12324
12376
  if (isComponentType(child, PopoverDialog2.Prompt)) {
12325
- return /* @__PURE__ */ React88.createElement(Popover2.Panel, {
12377
+ return /* @__PURE__ */ React89.createElement(Popover2.Panel, {
12326
12378
  className: classNames("Aquarium-PopoverDialog", tw("max-w-[300px]"))
12327
- }, /* @__PURE__ */ React88.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React88.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React88.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React88.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React88.createElement(Popover2.Button, __spreadValues({
12379
+ }, /* @__PURE__ */ React89.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React89.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React89.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React89.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React89.createElement(Popover2.Button, __spreadValues({
12328
12380
  kind: "secondary-ghost",
12329
12381
  key: secondaryAction.text,
12330
12382
  dense: true
12331
- }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React88.createElement(Popover2.Button, __spreadValues({
12383
+ }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React89.createElement(Popover2.Button, __spreadValues({
12332
12384
  kind: "ghost",
12333
12385
  key: primaryAction.text,
12334
12386
  dense: true
@@ -12336,15 +12388,15 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
12336
12388
  }
12337
12389
  return child;
12338
12390
  };
12339
- return /* @__PURE__ */ React88.createElement(Popover2, {
12391
+ return /* @__PURE__ */ React89.createElement(Popover2, {
12340
12392
  type: "dialog",
12341
12393
  isOpen: open,
12342
12394
  placement,
12343
12395
  containFocus: true
12344
- }, React88.Children.map(children, wrapPromptWithBody));
12396
+ }, React89.Children.map(children, wrapPromptWithBody));
12345
12397
  };
12346
12398
  PopoverDialog2.Trigger = Popover2.Trigger;
12347
- var Prompt = ({ children }) => /* @__PURE__ */ React88.createElement(PopoverDialog.Body, null, children);
12399
+ var Prompt = ({ children }) => /* @__PURE__ */ React89.createElement(PopoverDialog.Body, null, children);
12348
12400
  Prompt.displayName = "PopoverDialog.Prompt";
12349
12401
  PopoverDialog2.Prompt = Prompt;
12350
12402
 
@@ -12353,14 +12405,14 @@ import { createPortal } from "react-dom";
12353
12405
  var Portal = ({ children, to }) => createPortal(children, to);
12354
12406
 
12355
12407
  // src/molecules/ProgressBar/ProgressBar.tsx
12356
- import React90 from "react";
12408
+ import React91 from "react";
12357
12409
 
12358
12410
  // src/atoms/ProgressBar/ProgressBar.tsx
12359
- import React89 from "react";
12411
+ import React90 from "react";
12360
12412
  import clamp2 from "lodash/clamp";
12361
12413
  var ProgressBar = (_a) => {
12362
12414
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12363
- return /* @__PURE__ */ React89.createElement("div", __spreadProps(__spreadValues({}, rest), {
12415
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
12364
12416
  className: classNames(
12365
12417
  tw("relative flex items-center w-full bg-grey-0 h-2 rounded-full overflow-hidden"),
12366
12418
  className
@@ -12376,7 +12428,7 @@ var STATUS_COLORS = {
12376
12428
  ProgressBar.Indicator = (_a) => {
12377
12429
  var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
12378
12430
  const completedPercentage = clamp2((value - min) / (max - min) * 100, 0, 100);
12379
- return /* @__PURE__ */ React89.createElement("div", __spreadProps(__spreadValues({}, rest), {
12431
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
12380
12432
  className: classNames(
12381
12433
  tw("h-2 rounded-full transition-all ease-in-out delay-150"),
12382
12434
  STATUS_COLORS[status],
@@ -12392,11 +12444,11 @@ ProgressBar.Indicator = (_a) => {
12392
12444
  };
12393
12445
  ProgressBar.Labels = (_a) => {
12394
12446
  var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
12395
- return /* @__PURE__ */ React89.createElement("div", {
12447
+ return /* @__PURE__ */ React90.createElement("div", {
12396
12448
  className: classNames(tw("flex flex-row"), className)
12397
- }, /* @__PURE__ */ React89.createElement("span", __spreadProps(__spreadValues({}, rest), {
12449
+ }, /* @__PURE__ */ React90.createElement("span", __spreadProps(__spreadValues({}, rest), {
12398
12450
  className: tw("grow text-grey-70 typography-caption")
12399
- }), startLabel), /* @__PURE__ */ React89.createElement("span", __spreadProps(__spreadValues({}, rest), {
12451
+ }), startLabel), /* @__PURE__ */ React90.createElement("span", __spreadProps(__spreadValues({}, rest), {
12400
12452
  className: tw("grow text-grey-70 typography-caption text-right")
12401
12453
  }), endLabel));
12402
12454
  };
@@ -12414,7 +12466,7 @@ var ProgressBar2 = (props) => {
12414
12466
  if (min > max) {
12415
12467
  throw new Error("`min` value provided to `ProgressBar` is greater than `max` value.");
12416
12468
  }
12417
- const progress = /* @__PURE__ */ React90.createElement(ProgressBar, null, /* @__PURE__ */ React90.createElement(ProgressBar.Indicator, {
12469
+ const progress = /* @__PURE__ */ React91.createElement(ProgressBar, null, /* @__PURE__ */ React91.createElement(ProgressBar.Indicator, {
12418
12470
  status: value === max ? completedStatus : progresStatus,
12419
12471
  min,
12420
12472
  max,
@@ -12424,15 +12476,15 @@ var ProgressBar2 = (props) => {
12424
12476
  if (props.dense) {
12425
12477
  return progress;
12426
12478
  }
12427
- return /* @__PURE__ */ React90.createElement("div", {
12479
+ return /* @__PURE__ */ React91.createElement("div", {
12428
12480
  className: "Aquarium-ProgressBar"
12429
- }, progress, /* @__PURE__ */ React90.createElement(ProgressBar.Labels, {
12481
+ }, progress, /* @__PURE__ */ React91.createElement(ProgressBar.Labels, {
12430
12482
  className: tw("py-2"),
12431
12483
  startLabel: props.startLabel,
12432
12484
  endLabel: props.endLabel
12433
12485
  }));
12434
12486
  };
12435
- var ProgressBarSkeleton = () => /* @__PURE__ */ React90.createElement(Skeleton, {
12487
+ var ProgressBarSkeleton = () => /* @__PURE__ */ React91.createElement(Skeleton, {
12436
12488
  height: 4,
12437
12489
  display: "block"
12438
12490
  });
@@ -12440,13 +12492,13 @@ ProgressBar2.Skeleton = ProgressBarSkeleton;
12440
12492
  ProgressBar2.Skeleton.displayName = "ProgressBar.Skeleton";
12441
12493
 
12442
12494
  // src/molecules/RadioButton/RadioButton.tsx
12443
- import React91 from "react";
12444
- var RadioButton2 = React91.forwardRef(
12495
+ import React92 from "react";
12496
+ var RadioButton2 = React92.forwardRef(
12445
12497
  (_a, ref) => {
12446
12498
  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"]);
12447
12499
  var _a2;
12448
12500
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
12449
- return !readOnly || isChecked ? /* @__PURE__ */ React91.createElement(ControlLabel, {
12501
+ return !readOnly || isChecked ? /* @__PURE__ */ React92.createElement(ControlLabel, {
12450
12502
  htmlFor: id,
12451
12503
  label: children,
12452
12504
  "aria-label": ariaLabel,
@@ -12455,7 +12507,7 @@ var RadioButton2 = React91.forwardRef(
12455
12507
  disabled,
12456
12508
  style: { gap: "0 8px" },
12457
12509
  className: "Aquarium-RadioButton"
12458
- }, !readOnly && /* @__PURE__ */ React91.createElement(RadioButton, __spreadProps(__spreadValues({
12510
+ }, !readOnly && /* @__PURE__ */ React92.createElement(RadioButton, __spreadProps(__spreadValues({
12459
12511
  id,
12460
12512
  ref,
12461
12513
  name
@@ -12466,12 +12518,12 @@ var RadioButton2 = React91.forwardRef(
12466
12518
  }
12467
12519
  );
12468
12520
  RadioButton2.displayName = "RadioButton";
12469
- var RadioButtonSkeleton = () => /* @__PURE__ */ React91.createElement("div", {
12521
+ var RadioButtonSkeleton = () => /* @__PURE__ */ React92.createElement("div", {
12470
12522
  className: tw("flex gap-3")
12471
- }, /* @__PURE__ */ React91.createElement(Skeleton, {
12523
+ }, /* @__PURE__ */ React92.createElement(Skeleton, {
12472
12524
  height: 20,
12473
12525
  width: 20
12474
- }), /* @__PURE__ */ React91.createElement(Skeleton, {
12526
+ }), /* @__PURE__ */ React92.createElement(Skeleton, {
12475
12527
  height: 20,
12476
12528
  width: 150
12477
12529
  }));
@@ -12479,10 +12531,10 @@ RadioButton2.Skeleton = RadioButtonSkeleton;
12479
12531
  RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
12480
12532
 
12481
12533
  // src/molecules/RadioButtonGroup/RadioButtonGroup.tsx
12482
- import React92 from "react";
12534
+ import React93 from "react";
12483
12535
  import uniqueId8 from "lodash/uniqueId";
12484
12536
  var isRadioButton = (c) => {
12485
- return React92.isValidElement(c) && c.type === RadioButton2;
12537
+ return React93.isValidElement(c) && c.type === RadioButton2;
12486
12538
  };
12487
12539
  var RadioButtonGroup = (_a) => {
12488
12540
  var _b = _a, {
@@ -12505,7 +12557,7 @@ var RadioButtonGroup = (_a) => {
12505
12557
  "children"
12506
12558
  ]);
12507
12559
  var _a2;
12508
- const [value, setValue] = React92.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
12560
+ const [value, setValue] = React93.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
12509
12561
  const errorMessageId = uniqueId8();
12510
12562
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12511
12563
  const labelControlProps = getLabelControlProps(props);
@@ -12516,14 +12568,14 @@ var RadioButtonGroup = (_a) => {
12516
12568
  setValue(e.target.value);
12517
12569
  onChange == null ? void 0 : onChange(e.target.value);
12518
12570
  };
12519
- const content = React92.Children.map(children, (c) => {
12571
+ const content = React93.Children.map(children, (c) => {
12520
12572
  var _a3, _b2, _c;
12521
12573
  if (!isRadioButton(c)) {
12522
12574
  return null;
12523
12575
  }
12524
12576
  const defaultChecked = defaultValue === void 0 ? void 0 : c.props.value === defaultValue;
12525
12577
  const checked = value === void 0 ? void 0 : c.props.value === value;
12526
- return React92.cloneElement(c, {
12578
+ return React93.cloneElement(c, {
12527
12579
  name,
12528
12580
  defaultChecked: (_a3 = c.props.defaultChecked) != null ? _a3 : defaultChecked,
12529
12581
  checked: (_b2 = c.props.checked) != null ? _b2 : checked,
@@ -12532,13 +12584,13 @@ var RadioButtonGroup = (_a) => {
12532
12584
  readOnly
12533
12585
  });
12534
12586
  });
12535
- return /* @__PURE__ */ React92.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
12587
+ return /* @__PURE__ */ React93.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
12536
12588
  fieldset: true
12537
12589
  }, labelControlProps), errorProps), {
12538
12590
  className: "Aquarium-RadioButtonGroup"
12539
- }), cols && /* @__PURE__ */ React92.createElement(InputGroup, {
12591
+ }), cols && /* @__PURE__ */ React93.createElement(InputGroup, {
12540
12592
  cols
12541
- }, content), !cols && /* @__PURE__ */ React92.createElement(Flexbox, {
12593
+ }, content), !cols && /* @__PURE__ */ React93.createElement(Flexbox, {
12542
12594
  direction,
12543
12595
  alignItems: "flex-start",
12544
12596
  colGap: "8",
@@ -12547,12 +12599,12 @@ var RadioButtonGroup = (_a) => {
12547
12599
  }, content));
12548
12600
  };
12549
12601
  var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
12550
- return /* @__PURE__ */ React92.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React92.createElement("div", {
12602
+ return /* @__PURE__ */ React93.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React93.createElement("div", {
12551
12603
  className: tw("flex flex-wrap", {
12552
12604
  "flex-row gap-8": direction === "row",
12553
12605
  "flex-col gap-2": direction === "column"
12554
12606
  })
12555
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React92.createElement(RadioButton2.Skeleton, {
12607
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React93.createElement(RadioButton2.Skeleton, {
12556
12608
  key
12557
12609
  }))));
12558
12610
  };
@@ -12560,70 +12612,73 @@ RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
12560
12612
  RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
12561
12613
 
12562
12614
  // src/molecules/Section/Section.tsx
12563
- import React94 from "react";
12615
+ import React95 from "react";
12564
12616
  import castArray4 from "lodash/castArray";
12617
+ import omit17 from "lodash/omit";
12565
12618
 
12566
12619
  // src/atoms/Section/Section.tsx
12567
- import React93 from "react";
12620
+ import React94 from "react";
12568
12621
  var Section3 = (_a) => {
12569
12622
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
12570
- return /* @__PURE__ */ React93.createElement(Box, __spreadValues({
12623
+ return /* @__PURE__ */ React94.createElement(Box, __spreadValues({
12571
12624
  borderColor: "grey-5",
12572
12625
  borderWidth: "1px"
12573
12626
  }, rest), children);
12574
12627
  };
12575
12628
  Section3.Header = (_a) => {
12576
12629
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12577
- return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
12630
+ return /* @__PURE__ */ React94.createElement("div", __spreadProps(__spreadValues({}, rest), {
12578
12631
  className: classNames(tw("px-6 py-5 flex gap-5 justify-between items-center"), className)
12579
12632
  }), children);
12580
12633
  };
12581
12634
  Section3.TitleContainer = (_a) => {
12582
12635
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12583
- return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
12636
+ return /* @__PURE__ */ React94.createElement("div", __spreadProps(__spreadValues({}, rest), {
12584
12637
  className: classNames(tw("flex flex-col grow gap-2"), className)
12585
12638
  }), children);
12586
12639
  };
12587
12640
  Section3.Title = (_a) => {
12588
12641
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
12589
- return /* @__PURE__ */ React93.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
12642
+ return /* @__PURE__ */ React94.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
12590
12643
  color: "black"
12591
12644
  }), children);
12592
12645
  };
12593
12646
  Section3.Subtitle = (_a) => {
12594
12647
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
12595
- return /* @__PURE__ */ React93.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
12648
+ return /* @__PURE__ */ React94.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
12596
12649
  color: "grey-70"
12597
12650
  }), children);
12598
12651
  };
12599
12652
  Section3.Actions = (_a) => {
12600
12653
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12601
- return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
12654
+ return /* @__PURE__ */ React94.createElement("div", __spreadProps(__spreadValues({}, rest), {
12602
12655
  className: classNames(tw("flex gap-4 justify-end"), className)
12603
12656
  }), children);
12604
12657
  };
12605
12658
  Section3.Body = (_a) => {
12606
12659
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12607
- return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
12660
+ return /* @__PURE__ */ React94.createElement("div", __spreadProps(__spreadValues({}, rest), {
12608
12661
  className: classNames(tw("p-6"), className)
12609
- }), /* @__PURE__ */ React93.createElement(Typography, {
12662
+ }), /* @__PURE__ */ React94.createElement(Typography, {
12610
12663
  htmlTag: "div",
12611
12664
  color: "grey-70"
12612
12665
  }, children));
12613
12666
  };
12614
12667
 
12615
12668
  // src/molecules/Section/Section.tsx
12616
- var Section4 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React94.createElement(Section3, {
12669
+ var Section4 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React95.createElement(Section3, {
12617
12670
  className: "Aquarium-Section"
12618
- }, title && /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(Section3.Header, null, /* @__PURE__ */ React94.createElement(Section3.TitleContainer, null, /* @__PURE__ */ React94.createElement(Section3.Title, null, title), subtitle && /* @__PURE__ */ React94.createElement(Section3.Subtitle, null, subtitle)), /* @__PURE__ */ React94.createElement(Section3.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
12619
- var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
12620
- return /* @__PURE__ */ React94.createElement(Button.Secondary, __spreadValues({
12621
- key: text
12622
- }, action), text);
12623
- }))), /* @__PURE__ */ React94.createElement(Divider2, null)), /* @__PURE__ */ React94.createElement(Section3.Body, null, children));
12671
+ }, title && /* @__PURE__ */ React95.createElement(React95.Fragment, null, /* @__PURE__ */ React95.createElement(Section3.Header, null, /* @__PURE__ */ React95.createElement(Section3.TitleContainer, null, /* @__PURE__ */ React95.createElement(Section3.Title, null, title), subtitle && /* @__PURE__ */ React95.createElement(Section3.Subtitle, null, subtitle)), /* @__PURE__ */ React95.createElement(Section3.Actions, null, actions && castArray4(actions).filter(Boolean).map(
12672
+ (action) => !isLink(action) ? /* @__PURE__ */ React95.createElement(Button.Secondary, __spreadValues({
12673
+ key: action.text
12674
+ }, omit17(action, "text")), action.text) : /* @__PURE__ */ React95.createElement(Button.ExternalLink, __spreadValues({
12675
+ key: action.text,
12676
+ kind: "secondary"
12677
+ }, omit17(action, "text")), action.text)
12678
+ ))), /* @__PURE__ */ React95.createElement(Divider2, null)), /* @__PURE__ */ React95.createElement(Section3.Body, null, children));
12624
12679
 
12625
12680
  // src/molecules/SegmentedControl/SegmentedControl.tsx
12626
- import React95 from "react";
12681
+ import React96 from "react";
12627
12682
  var SegmentedControl = (_a) => {
12628
12683
  var _b = _a, {
12629
12684
  children,
@@ -12640,7 +12695,7 @@ var SegmentedControl = (_a) => {
12640
12695
  "selected",
12641
12696
  "className"
12642
12697
  ]);
12643
- return /* @__PURE__ */ React95.createElement("button", __spreadProps(__spreadValues({
12698
+ return /* @__PURE__ */ React96.createElement("button", __spreadProps(__spreadValues({
12644
12699
  type: "button"
12645
12700
  }, rest), {
12646
12701
  className: classNames(
@@ -12671,11 +12726,11 @@ var SegmentedControlGroup = (_a) => {
12671
12726
  "border border-grey-20 text-grey-50": variant === "outlined",
12672
12727
  "bg-grey-0": variant === "raised"
12673
12728
  });
12674
- return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
12729
+ return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
12675
12730
  className: classNames("Aquarium-SegmentedControl", classes2, className)
12676
- }), React95.Children.map(
12731
+ }), React96.Children.map(
12677
12732
  children,
12678
- (child) => React95.cloneElement(child, {
12733
+ (child) => React96.cloneElement(child, {
12679
12734
  dense,
12680
12735
  variant,
12681
12736
  onClick: () => onChange(child.props.value),
@@ -12713,14 +12768,14 @@ var getCommonClassNames = (dense, selected) => tw(
12713
12768
  );
12714
12769
 
12715
12770
  // src/molecules/Stepper/Stepper.tsx
12716
- import React97 from "react";
12771
+ import React98 from "react";
12717
12772
 
12718
12773
  // src/atoms/Stepper/Stepper.tsx
12719
- import React96 from "react";
12774
+ import React97 from "react";
12720
12775
  var import_tick6 = __toESM(require_tick());
12721
12776
  var Stepper = (_a) => {
12722
12777
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
12723
- return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
12778
+ return /* @__PURE__ */ React97.createElement("div", __spreadProps(__spreadValues({}, rest), {
12724
12779
  className: classNames(className)
12725
12780
  }));
12726
12781
  };
@@ -12734,7 +12789,7 @@ var ConnectorContainer = (_a) => {
12734
12789
  "completed",
12735
12790
  "dense"
12736
12791
  ]);
12737
- return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
12792
+ return /* @__PURE__ */ React97.createElement("div", __spreadProps(__spreadValues({}, rest), {
12738
12793
  className: classNames(
12739
12794
  tw("absolute w-full -left-1/2", {
12740
12795
  "top-[3px] px-[14px]": Boolean(dense),
@@ -12746,7 +12801,7 @@ var ConnectorContainer = (_a) => {
12746
12801
  };
12747
12802
  var Connector = (_a) => {
12748
12803
  var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
12749
- return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
12804
+ return /* @__PURE__ */ React97.createElement("div", __spreadProps(__spreadValues({}, rest), {
12750
12805
  className: classNames(
12751
12806
  tw("w-full", {
12752
12807
  "bg-grey-20": !completed,
@@ -12760,7 +12815,7 @@ var Connector = (_a) => {
12760
12815
  };
12761
12816
  var Step = (_a) => {
12762
12817
  var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
12763
- return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
12818
+ return /* @__PURE__ */ React97.createElement("div", __spreadProps(__spreadValues({}, rest), {
12764
12819
  className: classNames(
12765
12820
  tw("flex flex-col items-center text-grey-90 relative text-center", {
12766
12821
  "text-grey-20": state === "inactive"
@@ -12781,13 +12836,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
12781
12836
  });
12782
12837
  var Indicator = (_a) => {
12783
12838
  var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
12784
- return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
12839
+ return /* @__PURE__ */ React97.createElement("div", __spreadProps(__spreadValues({}, rest), {
12785
12840
  className: classNames(
12786
12841
  tw("rounded-full flex justify-center items-center mx-2 mb-3"),
12787
12842
  dense ? getDenseClassNames(state) : getClassNames(state),
12788
12843
  className
12789
12844
  )
12790
- }), state === "completed" ? /* @__PURE__ */ React96.createElement(InlineIcon, {
12845
+ }), state === "completed" ? /* @__PURE__ */ React97.createElement(InlineIcon, {
12791
12846
  icon: import_tick6.default
12792
12847
  }) : dense ? null : children);
12793
12848
  };
@@ -12798,26 +12853,26 @@ Stepper.ConnectorContainer = ConnectorContainer;
12798
12853
 
12799
12854
  // src/molecules/Stepper/Stepper.tsx
12800
12855
  var Stepper2 = ({ children, activeIndex, dense }) => {
12801
- const steps = React97.Children.count(children);
12802
- return /* @__PURE__ */ React97.createElement(Stepper, {
12856
+ const steps = React98.Children.count(children);
12857
+ return /* @__PURE__ */ React98.createElement(Stepper, {
12803
12858
  role: "list",
12804
12859
  className: "Aquarium-Stepper"
12805
- }, /* @__PURE__ */ React97.createElement(Template, {
12860
+ }, /* @__PURE__ */ React98.createElement(Template, {
12806
12861
  columns: steps
12807
- }, React97.Children.map(children, (child, index) => {
12862
+ }, React98.Children.map(children, (child, index) => {
12808
12863
  if (!isComponentType(child, Step2)) {
12809
12864
  return new Error("<Stepper> can only have <Stepper.Step> components as children");
12810
12865
  } else {
12811
12866
  const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
12812
- return /* @__PURE__ */ React97.createElement(Stepper.Step, {
12867
+ return /* @__PURE__ */ React98.createElement(Stepper.Step, {
12813
12868
  state,
12814
12869
  "aria-current": state === "active" ? "step" : false,
12815
12870
  role: "listitem"
12816
- }, index > 0 && index <= steps && /* @__PURE__ */ React97.createElement(Stepper.ConnectorContainer, {
12871
+ }, index > 0 && index <= steps && /* @__PURE__ */ React98.createElement(Stepper.ConnectorContainer, {
12817
12872
  dense
12818
- }, /* @__PURE__ */ React97.createElement(Stepper.ConnectorContainer.Connector, {
12873
+ }, /* @__PURE__ */ React98.createElement(Stepper.ConnectorContainer.Connector, {
12819
12874
  completed: state === "completed" || state === "active"
12820
- })), /* @__PURE__ */ React97.createElement(Stepper.Step.Indicator, {
12875
+ })), /* @__PURE__ */ React98.createElement(Stepper.Step.Indicator, {
12821
12876
  state,
12822
12877
  dense
12823
12878
  }, index + 1), child.props.children);
@@ -12830,16 +12885,16 @@ Step2.displayName = "Stepper.Step";
12830
12885
  Stepper2.Step = Step2;
12831
12886
 
12832
12887
  // src/molecules/Switch/Switch.tsx
12833
- import React99 from "react";
12888
+ import React100 from "react";
12834
12889
 
12835
12890
  // src/atoms/Switch/Switch.tsx
12836
- import React98 from "react";
12837
- var Switch = React98.forwardRef(
12891
+ import React99 from "react";
12892
+ var Switch = React99.forwardRef(
12838
12893
  (_a, ref) => {
12839
12894
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
12840
- return /* @__PURE__ */ React98.createElement("span", {
12895
+ return /* @__PURE__ */ React99.createElement("span", {
12841
12896
  className: tw("relative inline-flex justify-center items-center self-center group")
12842
- }, /* @__PURE__ */ React98.createElement("input", __spreadProps(__spreadValues({
12897
+ }, /* @__PURE__ */ React99.createElement("input", __spreadProps(__spreadValues({
12843
12898
  id,
12844
12899
  ref,
12845
12900
  type: "checkbox",
@@ -12858,7 +12913,7 @@ var Switch = React98.forwardRef(
12858
12913
  ),
12859
12914
  readOnly,
12860
12915
  disabled
12861
- })), /* @__PURE__ */ React98.createElement("span", {
12916
+ })), /* @__PURE__ */ React99.createElement("span", {
12862
12917
  className: tw(
12863
12918
  "pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
12864
12919
  "bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
@@ -12871,12 +12926,12 @@ var Switch = React98.forwardRef(
12871
12926
  );
12872
12927
 
12873
12928
  // src/molecules/Switch/Switch.tsx
12874
- var Switch2 = React99.forwardRef(
12929
+ var Switch2 = React100.forwardRef(
12875
12930
  (_a, ref) => {
12876
12931
  var _b = _a, { id, name, caption, readOnly = false, disabled = false, children, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["id", "name", "caption", "readOnly", "disabled", "children", "aria-label"]);
12877
12932
  var _a2;
12878
12933
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
12879
- return !readOnly || isChecked ? /* @__PURE__ */ React99.createElement(ControlLabel, {
12934
+ return !readOnly || isChecked ? /* @__PURE__ */ React100.createElement(ControlLabel, {
12880
12935
  htmlFor: id,
12881
12936
  label: children,
12882
12937
  "aria-label": ariaLabel,
@@ -12885,7 +12940,7 @@ var Switch2 = React99.forwardRef(
12885
12940
  disabled,
12886
12941
  style: { gap: "0 8px" },
12887
12942
  className: "Aquarium-Switch"
12888
- }, !readOnly && /* @__PURE__ */ React99.createElement(Switch, __spreadProps(__spreadValues({
12943
+ }, !readOnly && /* @__PURE__ */ React100.createElement(Switch, __spreadProps(__spreadValues({
12889
12944
  id,
12890
12945
  ref,
12891
12946
  name
@@ -12896,12 +12951,12 @@ var Switch2 = React99.forwardRef(
12896
12951
  }
12897
12952
  );
12898
12953
  Switch2.displayName = "Switch";
12899
- var SwitchSkeleton = () => /* @__PURE__ */ React99.createElement("div", {
12954
+ var SwitchSkeleton = () => /* @__PURE__ */ React100.createElement("div", {
12900
12955
  className: tw("flex gap-3")
12901
- }, /* @__PURE__ */ React99.createElement(Skeleton, {
12956
+ }, /* @__PURE__ */ React100.createElement(Skeleton, {
12902
12957
  height: 20,
12903
12958
  width: 35
12904
- }), /* @__PURE__ */ React99.createElement(Skeleton, {
12959
+ }), /* @__PURE__ */ React100.createElement(Skeleton, {
12905
12960
  height: 20,
12906
12961
  width: 150
12907
12962
  }));
@@ -12909,7 +12964,7 @@ Switch2.Skeleton = SwitchSkeleton;
12909
12964
  Switch2.Skeleton.displayName = "Switch.Skeleton ";
12910
12965
 
12911
12966
  // src/molecules/SwitchGroup/SwitchGroup.tsx
12912
- import React100, { useState as useState11 } from "react";
12967
+ import React101, { useState as useState11 } from "react";
12913
12968
  import uniqueId9 from "lodash/uniqueId";
12914
12969
  var SwitchGroup = (_a) => {
12915
12970
  var _b = _a, {
@@ -12941,13 +12996,13 @@ var SwitchGroup = (_a) => {
12941
12996
  setSelectedItems(updated);
12942
12997
  onChange == null ? void 0 : onChange(updated);
12943
12998
  };
12944
- return /* @__PURE__ */ React100.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
12999
+ return /* @__PURE__ */ React101.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
12945
13000
  fieldset: true
12946
13001
  }, labelControlProps), errorProps), {
12947
13002
  className: "Aquarium-SwitchGroup"
12948
- }), /* @__PURE__ */ React100.createElement(InputGroup, {
13003
+ }), /* @__PURE__ */ React101.createElement(InputGroup, {
12949
13004
  cols
12950
- }, React100.Children.map(children, (c) => {
13005
+ }, React101.Children.map(children, (c) => {
12951
13006
  var _a3, _b2, _c, _d;
12952
13007
  if (!isComponentType(c, Switch2)) {
12953
13008
  return null;
@@ -12955,7 +13010,7 @@ var SwitchGroup = (_a) => {
12955
13010
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
12956
13011
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
12957
13012
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
12958
- return React100.cloneElement(c, {
13013
+ return React101.cloneElement(c, {
12959
13014
  defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
12960
13015
  checked: (_c = c.props.checked) != null ? _c : checked,
12961
13016
  onChange: (_d = c.props.onChange) != null ? _d : handleChange,
@@ -12965,9 +13020,9 @@ var SwitchGroup = (_a) => {
12965
13020
  })));
12966
13021
  };
12967
13022
  var SwitchGroupSkeleton = ({ options = 2 }) => {
12968
- return /* @__PURE__ */ React100.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React100.createElement("div", {
13023
+ return /* @__PURE__ */ React101.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React101.createElement("div", {
12969
13024
  className: tw("flex flex-wrap flex-col gap-2")
12970
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React100.createElement(Switch2.Skeleton, {
13025
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React101.createElement(Switch2.Skeleton, {
12971
13026
  key
12972
13027
  }))));
12973
13028
  };
@@ -12975,10 +13030,10 @@ SwitchGroup.Skeleton = SwitchGroupSkeleton;
12975
13030
  SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
12976
13031
 
12977
13032
  // src/molecules/TagLabel/TagLabel.tsx
12978
- import React101 from "react";
13033
+ import React102 from "react";
12979
13034
  var TagLabel = (_a) => {
12980
13035
  var _b = _a, { title, dense = false } = _b, rest = __objRest(_b, ["title", "dense"]);
12981
- return /* @__PURE__ */ React101.createElement("span", __spreadProps(__spreadValues({}, rest), {
13036
+ return /* @__PURE__ */ React102.createElement("span", __spreadProps(__spreadValues({}, rest), {
12982
13037
  className: classNames(
12983
13038
  "Aquarium-TagLabel",
12984
13039
  tw("rounded-full text-white bg-primary-70", {
@@ -12990,14 +13045,14 @@ var TagLabel = (_a) => {
12990
13045
  };
12991
13046
 
12992
13047
  // src/molecules/Textarea/Textarea.tsx
12993
- import React102, { useRef as useRef13, useState as useState12 } from "react";
12994
- import omit17 from "lodash/omit";
13048
+ import React103, { useRef as useRef13, useState as useState12 } from "react";
13049
+ import omit18 from "lodash/omit";
12995
13050
  import toString2 from "lodash/toString";
12996
13051
  import uniqueId10 from "lodash/uniqueId";
12997
- var TextareaBase = React102.forwardRef(
13052
+ var TextareaBase = React103.forwardRef(
12998
13053
  (_a, ref) => {
12999
13054
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
13000
- return /* @__PURE__ */ React102.createElement("textarea", __spreadProps(__spreadValues({
13055
+ return /* @__PURE__ */ React103.createElement("textarea", __spreadProps(__spreadValues({
13001
13056
  ref
13002
13057
  }, props), {
13003
13058
  readOnly,
@@ -13005,25 +13060,25 @@ var TextareaBase = React102.forwardRef(
13005
13060
  }));
13006
13061
  }
13007
13062
  );
13008
- TextareaBase.Skeleton = () => /* @__PURE__ */ React102.createElement(Skeleton, {
13063
+ TextareaBase.Skeleton = () => /* @__PURE__ */ React103.createElement(Skeleton, {
13009
13064
  height: 58
13010
13065
  });
13011
- var Textarea = React102.forwardRef((props, ref) => {
13066
+ var Textarea = React103.forwardRef((props, ref) => {
13012
13067
  var _a, _b, _c;
13013
13068
  const [value, setValue] = useState12((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
13014
13069
  const id = useRef13((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
13015
13070
  const errorMessageId = uniqueId10();
13016
13071
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13017
13072
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
13018
- const baseProps = omit17(props, Object.keys(labelControlProps));
13019
- return /* @__PURE__ */ React102.createElement(LabelControl, __spreadProps(__spreadValues({
13073
+ const baseProps = omit18(props, Object.keys(labelControlProps));
13074
+ return /* @__PURE__ */ React103.createElement(LabelControl, __spreadProps(__spreadValues({
13020
13075
  id: `${id.current}-label`,
13021
13076
  htmlFor: id.current,
13022
13077
  messageId: errorMessageId,
13023
13078
  length: value !== void 0 ? toString2(value).length : void 0
13024
13079
  }, labelControlProps), {
13025
13080
  className: "Aquarium-Textarea"
13026
- }), /* @__PURE__ */ React102.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
13081
+ }), /* @__PURE__ */ React103.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
13027
13082
  ref
13028
13083
  }, baseProps), errorProps), {
13029
13084
  id: id.current,
@@ -13040,48 +13095,48 @@ var Textarea = React102.forwardRef((props, ref) => {
13040
13095
  })));
13041
13096
  });
13042
13097
  Textarea.displayName = "Textarea";
13043
- var TextAreaSkeleton = () => /* @__PURE__ */ React102.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React102.createElement(TextareaBase.Skeleton, null));
13098
+ var TextAreaSkeleton = () => /* @__PURE__ */ React103.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React103.createElement(TextareaBase.Skeleton, null));
13044
13099
  Textarea.Skeleton = TextAreaSkeleton;
13045
13100
  Textarea.Skeleton.displayName = "Textarea.Skeleton";
13046
13101
 
13047
13102
  // src/molecules/Timeline/Timeline.tsx
13048
- import React104 from "react";
13103
+ import React105 from "react";
13049
13104
 
13050
13105
  // src/atoms/Timeline/Timeline.tsx
13051
- import React103 from "react";
13106
+ import React104 from "react";
13052
13107
  var Timeline = (_a) => {
13053
13108
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
13054
- return /* @__PURE__ */ React103.createElement("div", __spreadProps(__spreadValues({}, rest), {
13109
+ return /* @__PURE__ */ React104.createElement("div", __spreadProps(__spreadValues({}, rest), {
13055
13110
  className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
13056
13111
  }));
13057
13112
  };
13058
13113
  var Content2 = (_a) => {
13059
13114
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
13060
- return /* @__PURE__ */ React103.createElement("div", __spreadProps(__spreadValues({}, rest), {
13115
+ return /* @__PURE__ */ React104.createElement("div", __spreadProps(__spreadValues({}, rest), {
13061
13116
  className: classNames(tw("pb-6"), className)
13062
13117
  }));
13063
13118
  };
13064
13119
  var Separator2 = (_a) => {
13065
13120
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
13066
- return /* @__PURE__ */ React103.createElement("div", __spreadProps(__spreadValues({}, rest), {
13121
+ return /* @__PURE__ */ React104.createElement("div", __spreadProps(__spreadValues({}, rest), {
13067
13122
  className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
13068
13123
  }));
13069
13124
  };
13070
13125
  var LineContainer = (_a) => {
13071
13126
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
13072
- return /* @__PURE__ */ React103.createElement("div", __spreadProps(__spreadValues({}, rest), {
13127
+ return /* @__PURE__ */ React104.createElement("div", __spreadProps(__spreadValues({}, rest), {
13073
13128
  className: classNames(tw("flex justify-center py-1"), className)
13074
13129
  }));
13075
13130
  };
13076
13131
  var Line = (_a) => {
13077
13132
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
13078
- return /* @__PURE__ */ React103.createElement("div", __spreadProps(__spreadValues({}, rest), {
13133
+ return /* @__PURE__ */ React104.createElement("div", __spreadProps(__spreadValues({}, rest), {
13079
13134
  className: classNames(tw("w-1 bg-grey-5 h-full justify-self-center"), className)
13080
13135
  }));
13081
13136
  };
13082
13137
  var Dot = (_a) => {
13083
13138
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
13084
- return /* @__PURE__ */ React103.createElement("div", __spreadProps(__spreadValues({}, rest), {
13139
+ return /* @__PURE__ */ React104.createElement("div", __spreadProps(__spreadValues({}, rest), {
13085
13140
  className: classNames(tw("bg-grey-30 h-[6px] w-[6px] rounded"), className)
13086
13141
  }));
13087
13142
  };
@@ -13096,54 +13151,54 @@ var import_error5 = __toESM(require_error());
13096
13151
  var import_time2 = __toESM(require_time());
13097
13152
  var import_warningSign5 = __toESM(require_warningSign());
13098
13153
  var TimelineItem = () => null;
13099
- var Timeline2 = ({ children }) => /* @__PURE__ */ React104.createElement("div", {
13154
+ var Timeline2 = ({ children }) => /* @__PURE__ */ React105.createElement("div", {
13100
13155
  className: "Aquarium-Timeline"
13101
- }, React104.Children.map(children, (item) => {
13156
+ }, React105.Children.map(children, (item) => {
13102
13157
  if (!isComponentType(item, TimelineItem)) {
13103
13158
  throw new Error("<Timeline> can only have <Timeline.Item> components as children");
13104
13159
  } else {
13105
13160
  const { props, key } = item;
13106
- return /* @__PURE__ */ React104.createElement(Timeline, {
13161
+ return /* @__PURE__ */ React105.createElement(Timeline, {
13107
13162
  key: key != null ? key : props.title
13108
- }, /* @__PURE__ */ React104.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React104.createElement(Icon, {
13163
+ }, /* @__PURE__ */ React105.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React105.createElement(Icon, {
13109
13164
  icon: import_error5.default,
13110
13165
  color: "error-30"
13111
- }) : props.variant === "warning" ? /* @__PURE__ */ React104.createElement(Icon, {
13166
+ }) : props.variant === "warning" ? /* @__PURE__ */ React105.createElement(Icon, {
13112
13167
  icon: import_warningSign5.default,
13113
13168
  color: "warning-30"
13114
- }) : props.variant === "info" ? /* @__PURE__ */ React104.createElement(Icon, {
13169
+ }) : props.variant === "info" ? /* @__PURE__ */ React105.createElement(Icon, {
13115
13170
  icon: import_time2.default,
13116
13171
  color: "info-30"
13117
- }) : /* @__PURE__ */ React104.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React104.createElement(Typography2.Caption, {
13172
+ }) : /* @__PURE__ */ React105.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React105.createElement(Typography2.Caption, {
13118
13173
  color: "grey-50"
13119
- }, props.title), /* @__PURE__ */ React104.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React104.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React104.createElement(Timeline.Content, null, /* @__PURE__ */ React104.createElement(Typography2.Small, null, props.children)));
13174
+ }, props.title), /* @__PURE__ */ React105.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React105.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React105.createElement(Timeline.Content, null, /* @__PURE__ */ React105.createElement(Typography2.Small, null, props.children)));
13120
13175
  }
13121
13176
  }));
13122
- var TimelineItemSkeleton = () => /* @__PURE__ */ React104.createElement(Timeline, null, /* @__PURE__ */ React104.createElement(Timeline.Separator, null, /* @__PURE__ */ React104.createElement(Skeleton, {
13177
+ var TimelineItemSkeleton = () => /* @__PURE__ */ React105.createElement(Timeline, null, /* @__PURE__ */ React105.createElement(Timeline.Separator, null, /* @__PURE__ */ React105.createElement(Skeleton, {
13123
13178
  width: 6,
13124
13179
  height: 6,
13125
13180
  rounded: true
13126
- })), /* @__PURE__ */ React104.createElement(Skeleton, {
13181
+ })), /* @__PURE__ */ React105.createElement(Skeleton, {
13127
13182
  height: 12,
13128
13183
  width: 120
13129
- }), /* @__PURE__ */ React104.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React104.createElement(Skeleton, {
13184
+ }), /* @__PURE__ */ React105.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React105.createElement(Skeleton, {
13130
13185
  width: 2,
13131
13186
  height: "100%"
13132
- })), /* @__PURE__ */ React104.createElement(Timeline.Content, null, /* @__PURE__ */ React104.createElement(Box, {
13187
+ })), /* @__PURE__ */ React105.createElement(Timeline.Content, null, /* @__PURE__ */ React105.createElement(Box, {
13133
13188
  display: "flex",
13134
13189
  flexDirection: "column",
13135
13190
  gap: "3"
13136
- }, /* @__PURE__ */ React104.createElement(Skeleton, {
13191
+ }, /* @__PURE__ */ React105.createElement(Skeleton, {
13137
13192
  height: 32,
13138
13193
  width: "100%"
13139
- }), /* @__PURE__ */ React104.createElement(Skeleton, {
13194
+ }), /* @__PURE__ */ React105.createElement(Skeleton, {
13140
13195
  height: 32,
13141
13196
  width: "73%"
13142
- }), /* @__PURE__ */ React104.createElement(Skeleton, {
13197
+ }), /* @__PURE__ */ React105.createElement(Skeleton, {
13143
13198
  height: 32,
13144
13199
  width: "80%"
13145
13200
  }))));
13146
- var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React104.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React104.createElement(TimelineItemSkeleton, {
13201
+ var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React105.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React105.createElement(TimelineItemSkeleton, {
13147
13202
  key
13148
13203
  })));
13149
13204
  Timeline2.Item = TimelineItem;
@@ -13151,9 +13206,9 @@ Timeline2.Skeleton = TimelineSkeleton;
13151
13206
  Timeline2.Skeleton.displayName = "Timeline.Skeleton";
13152
13207
 
13153
13208
  // src/utils/table/useTableSelect.ts
13154
- import React105 from "react";
13209
+ import React106 from "react";
13155
13210
  var useTableSelect = (data, { key }) => {
13156
- const [selected, setSelected] = React105.useState([]);
13211
+ const [selected, setSelected] = React106.useState([]);
13157
13212
  const allSelected = selected.length === data.length;
13158
13213
  const isSelected = (dot) => selected.includes(dot[key]);
13159
13214
  const selectAll = () => setSelected(data.map((dot) => dot[key]));