@aivenio/aquarium 1.68.0-rc1 → 1.68.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 (81) hide show
  1. package/dist/_variables.scss +1 -1
  2. package/dist/atoms.cjs +76 -67
  3. package/dist/atoms.mjs +76 -67
  4. package/dist/charts.cjs +2 -2
  5. package/dist/charts.mjs +2 -2
  6. package/dist/src/atoms/Alert/Alert.js +2 -2
  7. package/dist/src/atoms/Banner/Banner.js +2 -2
  8. package/dist/src/atoms/Card/Card.d.ts +3 -3
  9. package/dist/src/atoms/Card/Card.js +2 -2
  10. package/dist/src/atoms/Checkbox/Checkbox.d.ts +1 -1
  11. package/dist/src/atoms/Checkbox/Checkbox.js +2 -2
  12. package/dist/src/atoms/DropdownMenu/DropdownMenu.js +2 -2
  13. package/dist/src/atoms/Modal/Modal.js +2 -2
  14. package/dist/src/atoms/Navigation/Navigation.js +1 -1
  15. package/dist/src/atoms/PageHeader/PageHeader.js +3 -3
  16. package/dist/src/atoms/RadioButton/RadioButton.d.ts +1 -1
  17. package/dist/src/atoms/Section/Section.js +4 -4
  18. package/dist/src/atoms/Stepper/Stepper.js +3 -3
  19. package/dist/src/atoms/Switch/Switch.d.ts +1 -1
  20. package/dist/src/atoms/Table/Table.d.ts +2 -2
  21. package/dist/src/atoms/Table/Table.js +8 -8
  22. package/dist/src/charts/PieChart/ChartValue.js +1 -1
  23. package/dist/src/charts/Tooltip/Tooltip.js +2 -2
  24. package/dist/src/icons/warningSign.js +2 -2
  25. package/dist/src/molecules/Accordion/Accordion.js +2 -2
  26. package/dist/src/molecules/Banner/Banner.d.ts +1 -1
  27. package/dist/src/molecules/Box/Box.d.ts +4 -1
  28. package/dist/src/molecules/Box/Box.js +4 -4
  29. package/dist/src/molecules/Button/Button.d.ts +9 -9
  30. package/dist/src/molecules/Button/Button.js +1 -1
  31. package/dist/src/molecules/Card/Card.js +3 -3
  32. package/dist/src/molecules/Card/Compact.js +3 -3
  33. package/dist/src/molecules/Card/types.d.ts +3 -2
  34. package/dist/src/molecules/Chip/Chip.js +2 -2
  35. package/dist/src/molecules/ChoiceChip/ChoiceChip.js +3 -3
  36. package/dist/src/molecules/ControlLabel/ControlLabel.js +2 -2
  37. package/dist/src/molecules/DataList/DataList.js +65 -55
  38. package/dist/src/molecules/DataList/DataListComponents.d.ts +3 -1
  39. package/dist/src/molecules/DataList/DataListComponents.js +12 -4
  40. package/dist/src/molecules/DataTable/DataTable.js +42 -25
  41. package/dist/src/molecules/DropdownMenu/DropdownMenu.d.ts +3 -3
  42. package/dist/src/molecules/DropdownMenu/DropdownMenu.js +1 -1
  43. package/dist/src/molecules/EmptyState/EmptyState.js +2 -2
  44. package/dist/src/molecules/List/List.js +1 -1
  45. package/dist/src/molecules/ListItem/ListItem.js +1 -1
  46. package/dist/src/molecules/MultiInput/InputChip.js +2 -2
  47. package/dist/src/molecules/Pagination/Pagination.js +4 -4
  48. package/dist/src/molecules/Tabs/Tabs.js +5 -3
  49. package/dist/src/molecules/Timeline/Timeline.js +2 -2
  50. package/dist/src/utils/ContrastRatio.js +7 -7
  51. package/dist/src/utils/stickyStyles.d.ts +64 -0
  52. package/dist/src/utils/stickyStyles.js +74 -0
  53. package/dist/styles.css +13 -15
  54. package/dist/system.cjs +831 -694
  55. package/dist/system.mjs +820 -683
  56. package/dist/tsconfig.module.tsbuildinfo +1 -1
  57. package/dist/types/designTokens.d.ts +2 -0
  58. package/dist/types/tailwindGenerated.d.ts +1 -1
  59. package/package.json +4 -4
  60. package/dist/tailwind/tailwind.backgroundColor.d.ts +0 -43
  61. package/dist/tailwind/tailwind.backgroundColor.js +0 -44
  62. package/dist/tailwind/tailwind.borderColor.d.ts +0 -44
  63. package/dist/tailwind/tailwind.borderColor.js +0 -32
  64. package/dist/tailwind/tailwind.borderRadius.d.ts +0 -1
  65. package/dist/tailwind/tailwind.borderRadius.js +0 -5
  66. package/dist/tailwind/tailwind.colors.d.ts +0 -102
  67. package/dist/tailwind/tailwind.colors.js +0 -106
  68. package/dist/tailwind/tailwind.elevations.d.ts +0 -8
  69. package/dist/tailwind/tailwind.elevations.js +0 -9
  70. package/dist/tailwind/tailwind.margin.d.ts +0 -22
  71. package/dist/tailwind/tailwind.margin.js +0 -23
  72. package/dist/tailwind/tailwind.spacing.d.ts +0 -21
  73. package/dist/tailwind/tailwind.spacing.js +0 -22
  74. package/dist/tailwind/tailwind.textColor.d.ts +0 -56
  75. package/dist/tailwind/tailwind.textColor.js +0 -39
  76. package/dist/tailwind/tailwind.typography.d.ts +0 -14
  77. package/dist/tailwind/tailwind.typography.js +0 -15
  78. package/dist/tailwind/textColor.d.ts +0 -219
  79. package/dist/tailwind/textColor.js +0 -651
  80. package/dist/tailwind/typography.d.ts +0 -219
  81. package/dist/tailwind/typography.js +0 -651
package/dist/system.mjs CHANGED
@@ -4709,7 +4709,7 @@ var require_warningSign = __commonJS({
4709
4709
  "src/icons/warningSign.js"(exports) {
4710
4710
  "use strict";
4711
4711
  var data = {
4712
- "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 8.25v3.667m0 3.666h.009M9.731 3.567 2.19 16.59c-.418.723-.627 1.084-.596 1.38a.917.917 0 00.372.646c.241.176.659.176 1.493.176h15.08c.834 0 1.251 0 1.492-.176a.917.917 0 00.373-.646c.03-.296-.178-.657-.596-1.38l-7.54-13.023c-.417-.72-.625-1.08-.897-1.2a.917.917 0 00-.745 0c-.271.12-.48.48-.896 1.2Z"/>',
4712
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11 8.25v3.667M11 16l.009-1.5M9.73 3.567 2.191 16.59c-.418.723-.627 1.084-.596 1.38a.917.917 0 00.372.646c.241.176.659.176 1.493.176h15.08c.834 0 1.251 0 1.492-.176a.917.917 0 00.373-.646c.03-.296-.178-.657-.596-1.38l-7.54-13.023c-.417-.72-.625-1.08-.897-1.2a.917.917 0 00-.745 0c-.272.12-.48.48-.897 1.2Z"/>',
4713
4713
  "left": 0,
4714
4714
  "top": 0,
4715
4715
  "width": 22,
@@ -4861,8 +4861,8 @@ import {
4861
4861
 
4862
4862
  // src/utils/tailwind.ts
4863
4863
  import originalClassNames from "classnames";
4864
- function cleanClassNames(classNames11) {
4865
- const tokens = classNames11.split(/\s+/);
4864
+ function cleanClassNames(classNames12) {
4865
+ const tokens = classNames12.split(/\s+/);
4866
4866
  return tokens.filter((item) => item).join(" ");
4867
4867
  }
4868
4868
  function tw(classesOrModifiers1, classesOrModifiers2, classesOrModifiers3, classesOrModifiers4, classesOrModifiers5, classesOrModifiers6, classesOrModifiers7, classesOrModifiers8, classesOrModifiers9, classesOrModifiers10) {
@@ -6077,8 +6077,8 @@ var Box = (_a) => {
6077
6077
  const styles = useStyle({
6078
6078
  padding,
6079
6079
  display,
6080
- color,
6081
- borderColor: borderColor ? tailwind_theme_default.backgroundColor[borderColor] : "",
6080
+ color: color ? tailwind_theme_default.textColor[color] : "",
6081
+ borderColor: borderColor ? tailwind_theme_default.borderColor[borderColor] : "",
6082
6082
  borderRadius,
6083
6083
  borderWidth,
6084
6084
  justifyContent,
@@ -6120,11 +6120,7 @@ var FlexBox = (props) => /* @__PURE__ */ React5.createElement(Box, __spreadValue
6120
6120
  }, props));
6121
6121
  FlexBox.displayName = "Box.Flex";
6122
6122
  Box.Flex = FlexBox;
6123
- var BorderBox = createSimpleComponent(
6124
- Box,
6125
- { className: "rounded border", borderColor: "grey-10" },
6126
- "BorderBox"
6127
- );
6123
+ var BorderBox = createSimpleComponent(Box, { className: "rounded border", borderColor: "muted" }, "BorderBox");
6128
6124
 
6129
6125
  // src/molecules/Spacing/Spacing.tsx
6130
6126
  var Spacing = (_a) => {
@@ -7084,7 +7080,7 @@ var COLOR_CLASSNAMES = {
7084
7080
  "ghost": ghostButtonStyle,
7085
7081
  "text": linkStyle,
7086
7082
  "secondary-ghost": tw(
7087
- "text-grey-60 active:text-muted focus-visible:text-intense hover:text-intense disabled:text-inactive"
7083
+ "text-default active:text-muted focus-visible:text-intense hover:text-intense disabled:text-inactive"
7088
7084
  )
7089
7085
  };
7090
7086
  var LoadingSpinner = ({ size = "20px" }) => {
@@ -7539,7 +7535,7 @@ Alert.Title = (_a) => {
7539
7535
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7540
7536
  return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7541
7537
  variant: "default-strong",
7542
- color: "grey-80",
7538
+ color: "intense",
7543
7539
  className: classNames(tw("col-start-2"), className)
7544
7540
  }), children);
7545
7541
  };
@@ -7547,7 +7543,7 @@ Alert.Description = (_a) => {
7547
7543
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7548
7544
  return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7549
7545
  variant: "small",
7550
- color: "grey-60",
7546
+ color: "default",
7551
7547
  className: classNames(tw("col-start-2"), className)
7552
7548
  }), children);
7553
7549
  };
@@ -7923,7 +7919,7 @@ Banner3.Title = (_a) => {
7923
7919
  var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
7924
7920
  return /* @__PURE__ */ React23.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7925
7921
  variant: "subheading",
7926
- color: "grey-100",
7922
+ color: "intense",
7927
7923
  className: classNames(
7928
7924
  className,
7929
7925
  tw({
@@ -8158,7 +8154,7 @@ var Chip2 = (_a) => {
8158
8154
  "Aquarium-Chip",
8159
8155
  tw({
8160
8156
  "bg-muted text-default": !locked,
8161
- "bg-grey-5 text-inactive": locked
8157
+ "bg-muted text-inactive": locked
8162
8158
  })
8163
8159
  )
8164
8160
  }, rest), icon && /* @__PURE__ */ React27.createElement(InlineIcon, {
@@ -8294,7 +8290,13 @@ var Label = (props) => {
8294
8290
  }), children);
8295
8291
  };
8296
8292
  var ColorHighlight = (_a) => {
8297
- var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
8293
+ var _b = _a, {
8294
+ color,
8295
+ className
8296
+ } = _b, rest = __objRest(_b, [
8297
+ "color",
8298
+ "className"
8299
+ ]);
8298
8300
  return /* @__PURE__ */ React29.createElement(Box, __spreadProps(__spreadValues({}, rest), {
8299
8301
  backgroundColor: color,
8300
8302
  className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
@@ -8344,7 +8346,7 @@ Card.Content = Content;
8344
8346
  Card.Actions = Actions;
8345
8347
  Card.ImageContainer = ImageContainer;
8346
8348
  Card.Image = Image;
8347
- Card.ColorHiglight = ColorHighlight;
8349
+ Card.ColorHighlight = ColorHighlight;
8348
8350
  var isCardTitleComponent = (c) => {
8349
8351
  return React29.isValidElement(c) && c.type === Card.Title;
8350
8352
  };
@@ -8597,7 +8599,7 @@ var CompactCard = ({
8597
8599
  disabled
8598
8600
  };
8599
8601
  const checkableElement = isRadioButton2 ? /* @__PURE__ */ React36.createElement(RadioButton, __spreadValues({}, inputProps)) : checkable ? /* @__PURE__ */ React36.createElement(Checkbox, __spreadValues({}, inputProps)) : void 0;
8600
- const commonContent = /* @__PURE__ */ React36.createElement(React36.Fragment, null, color && /* @__PURE__ */ React36.createElement(Card.ColorHiglight, {
8602
+ const commonContent = /* @__PURE__ */ React36.createElement(React36.Fragment, null, color && /* @__PURE__ */ React36.createElement(Card.ColorHighlight, {
8601
8603
  color
8602
8604
  }), chipElements ? /* @__PURE__ */ React36.createElement(CardInputWrapper, {
8603
8605
  input: checkableElement
@@ -8611,7 +8613,7 @@ var CompactCard = ({
8611
8613
  }, !chipElements ? /* @__PURE__ */ React36.createElement(CardInputWrapper, {
8612
8614
  input: checkableElement
8613
8615
  }, getTitleContent({ title, clampTitle })) : getTitleContent({ title, clampTitle }), /* @__PURE__ */ React36.createElement(Typography2.Caption, {
8614
- color: "grey-70"
8616
+ color: "default"
8615
8617
  }, children))));
8616
8618
  const commonProps = {
8617
8619
  fullWidth,
@@ -8746,7 +8748,7 @@ var Card2 = ({
8746
8748
  disabled
8747
8749
  };
8748
8750
  const checkableElement = isRadioButton2 ? /* @__PURE__ */ React37.createElement(RadioButton, __spreadValues({}, inputProps)) : checkable ? /* @__PURE__ */ React37.createElement(Checkbox, __spreadValues({}, inputProps)) : void 0;
8749
- const commonContent = /* @__PURE__ */ React37.createElement(React37.Fragment, null, color && /* @__PURE__ */ React37.createElement(Card.ColorHiglight, {
8751
+ const commonContent = /* @__PURE__ */ React37.createElement(React37.Fragment, null, color && /* @__PURE__ */ React37.createElement(Card.ColorHighlight, {
8750
8752
  color
8751
8753
  }), chipElements && /* @__PURE__ */ React37.createElement(CardInputWrapper, {
8752
8754
  input: checkableElement
@@ -8755,7 +8757,7 @@ var Card2 = ({
8755
8757
  }, iconElements) : iconElements, imageElement, /* @__PURE__ */ React37.createElement(Card.Content, null, !chipElements && !iconElements ? /* @__PURE__ */ React37.createElement(CardInputWrapper, {
8756
8758
  input: checkableElement
8757
8759
  }, getTitleContent({ title, clampTitle })) : getTitleContent({ title, clampTitle }), /* @__PURE__ */ React37.createElement(Typography2.Caption, {
8758
- color: "grey-70"
8760
+ color: "default"
8759
8761
  }, children || description)));
8760
8762
  const commonProps = {
8761
8763
  fullWidth,
@@ -8994,7 +8996,7 @@ var ControlLabel = (_a) => {
8994
8996
  }, rest), rtl ? labelEl : children, rtl ? children : labelEl, caption && /* @__PURE__ */ React39.createElement(Typography2, {
8995
8997
  className: tw({ "col-start-2": !rtl }),
8996
8998
  variant: "caption",
8997
- color: disabled ? "grey-40" : "grey-50"
8999
+ color: disabled ? "inactive" : "default"
8998
9000
  }, caption));
8999
9001
  };
9000
9002
 
@@ -9501,8 +9503,8 @@ var ChoiceChip = (_a) => {
9501
9503
  className: classNames(
9502
9504
  "Aquarium-ChoiceChip",
9503
9505
  tw("inline-flex items-center border rounded-sm transition whitespace-nowrap cursor-pointer", {
9504
- "bg-body border-default text-grey-60": !selected,
9505
- "bg-muted border-grey-100 text-intense": selected,
9506
+ "bg-body border-default text-default": !selected,
9507
+ "bg-muted border-intense text-intense": selected,
9506
9508
  "typography-small py-2 px-3 gap-x-3": !dense,
9507
9509
  "typography-caption py-1 px-2 gap-x-2": Boolean(dense)
9508
9510
  })
@@ -9837,7 +9839,7 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React52.crea
9837
9839
  }, children);
9838
9840
 
9839
9841
  // src/molecules/DataList/DataList.tsx
9840
- import React71 from "react";
9842
+ import React72, { useRef as useRef7 } from "react";
9841
9843
  import { useControlledState } from "@react-stately/utils";
9842
9844
  import castArray2 from "lodash/castArray";
9843
9845
  import compact from "lodash/compact";
@@ -10012,7 +10014,7 @@ var AccordionSummary = (_a) => {
10012
10014
  padding: "4",
10013
10015
  id: `${id}-summary`
10014
10016
  }, rest), /* @__PURE__ */ React55.createElement(Typography2, null, title), /* @__PURE__ */ React55.createElement(Typography2.Small, {
10015
- color: "grey-40"
10017
+ color: "muted"
10016
10018
  }, description), toggle);
10017
10019
  };
10018
10020
  var AccordionContainer = (_a) => {
@@ -10477,7 +10479,7 @@ var Pagination = ({
10477
10479
  alignItems: "center",
10478
10480
  gap: "4"
10479
10481
  }, /* @__PURE__ */ React59.createElement(Typography2.Small, {
10480
- color: "grey-50"
10482
+ color: "muted"
10481
10483
  }, "Items per page "), /* @__PURE__ */ React59.createElement("div", {
10482
10484
  className: tw("max-w-[70px]")
10483
10485
  }, /* @__PURE__ */ React59.createElement(SelectBase, {
@@ -10510,7 +10512,7 @@ var Pagination = ({
10510
10512
  }), /* @__PURE__ */ React59.createElement(Box, {
10511
10513
  paddingX: "4"
10512
10514
  }, /* @__PURE__ */ React59.createElement(Typography2.Small, {
10513
- color: "grey-60"
10515
+ color: "default"
10514
10516
  }, "Page")), /* @__PURE__ */ React59.createElement(InputBase, {
10515
10517
  "aria-label": "Page",
10516
10518
  className: classNames(tw("text-center max-w-[40px]"), "no-arrows"),
@@ -10532,7 +10534,7 @@ var Pagination = ({
10532
10534
  }), /* @__PURE__ */ React59.createElement(Box, {
10533
10535
  paddingX: "4"
10534
10536
  }, /* @__PURE__ */ React59.createElement(Typography2.Small, {
10535
- color: "grey-60"
10537
+ color: "default"
10536
10538
  }, "of ", totalPages)), /* @__PURE__ */ React59.createElement(Button.Icon, {
10537
10539
  "aria-label": "Next",
10538
10540
  onClick: () => onPageChange(currentPage + 1),
@@ -10686,7 +10688,7 @@ var List = (_a) => {
10686
10688
  icon: import_loading3.default,
10687
10689
  className: tw("text-muted")
10688
10690
  }), /* @__PURE__ */ React61.createElement(Typography2.Small, {
10689
- color: "grey-70"
10691
+ color: "default"
10690
10692
  }, loadingIndicator)), pagination && /* @__PURE__ */ React61.createElement(Pagination, __spreadValues(__spreadValues({}, paginationState), paginationProps))));
10691
10693
  };
10692
10694
 
@@ -10698,7 +10700,7 @@ import React62 from "react";
10698
10700
  var import_chevronDown4 = __toESM(require_chevronDown());
10699
10701
  var import_chevronUp3 = __toESM(require_chevronUp());
10700
10702
  var HeadContext = React62.createContext(null);
10701
- var tableClassNames = tw("w-full relative typography-default border-spacing-0");
10703
+ var tableClassNames = tw("w-full relative typography-default border-spacing-0 border-separate");
10702
10704
  var Table = (_a) => {
10703
10705
  var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
10704
10706
  return /* @__PURE__ */ React62.createElement("table", __spreadProps(__spreadValues({}, rest), {
@@ -10746,25 +10748,29 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
10746
10748
  })
10747
10749
  ) : common;
10748
10750
  };
10749
- var TableCell = (_a) => {
10750
- var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
10751
- const headContext = React62.useContext(HeadContext);
10752
- return headContext ? /* @__PURE__ */ React62.createElement("th", __spreadProps(__spreadValues({}, rest), {
10753
- className: classNames(
10754
- cellClassNames,
10755
- getHeadCellClassNames(headContext.sticky, stickyColumn),
10756
- getAlignClassNames(align),
10757
- className
10758
- )
10759
- }), children) : /* @__PURE__ */ React62.createElement("td", __spreadProps(__spreadValues({}, rest), {
10760
- className: classNames(
10761
- cellClassNames,
10762
- getBodyCellClassNames(true, stickyColumn),
10763
- getAlignClassNames(align),
10764
- className
10765
- )
10766
- }), children);
10767
- };
10751
+ var TableCell = React62.forwardRef(
10752
+ (_a, ref) => {
10753
+ var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
10754
+ const headContext = React62.useContext(HeadContext);
10755
+ return headContext ? /* @__PURE__ */ React62.createElement("th", __spreadProps(__spreadValues({}, rest), {
10756
+ ref,
10757
+ className: classNames(
10758
+ cellClassNames,
10759
+ getHeadCellClassNames(headContext.sticky, stickyColumn),
10760
+ getAlignClassNames(align),
10761
+ className
10762
+ )
10763
+ }), children) : /* @__PURE__ */ React62.createElement("td", __spreadProps(__spreadValues({}, rest), {
10764
+ ref,
10765
+ className: classNames(
10766
+ cellClassNames,
10767
+ getBodyCellClassNames(true, stickyColumn),
10768
+ getAlignClassNames(align),
10769
+ className
10770
+ )
10771
+ }), children);
10772
+ }
10773
+ );
10768
10774
  var TableSelectCell = (_a) => {
10769
10775
  var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
10770
10776
  return /* @__PURE__ */ React62.createElement(Table.Cell, {
@@ -10779,28 +10785,31 @@ var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4
10779
10785
  var getSortCellIconClassNames = (active) => {
10780
10786
  return tw("text-[9px]", active ? "text-default" : "text-inactive");
10781
10787
  };
10782
- var TableSortCell = (_a) => {
10783
- var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
10784
- return /* @__PURE__ */ React62.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
10785
- "aria-sort": direction
10786
- }), /* @__PURE__ */ React62.createElement("span", {
10787
- className: getSortCellButtonClassNames(rest.align),
10788
- role: "button",
10789
- tabIndex: -1,
10790
- onClick
10791
- }, children, /* @__PURE__ */ React62.createElement("div", {
10792
- "data-sort-icons": true,
10793
- className: tw("flex flex-col", {
10794
- "invisible group-hover:visible": direction === "none"
10795
- })
10796
- }, /* @__PURE__ */ React62.createElement(InlineIcon, {
10797
- icon: import_chevronUp3.default,
10798
- className: getSortCellIconClassNames(direction === "ascending")
10799
- }), /* @__PURE__ */ React62.createElement(InlineIcon, {
10800
- icon: import_chevronDown4.default,
10801
- className: getSortCellIconClassNames(direction === "descending")
10802
- }))));
10803
- };
10788
+ var TableSortCell = React62.forwardRef(
10789
+ (_a, ref) => {
10790
+ var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
10791
+ return /* @__PURE__ */ React62.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
10792
+ "aria-sort": direction,
10793
+ ref
10794
+ }), /* @__PURE__ */ React62.createElement("span", {
10795
+ className: getSortCellButtonClassNames(rest.align),
10796
+ role: "button",
10797
+ tabIndex: -1,
10798
+ onClick
10799
+ }, children, /* @__PURE__ */ React62.createElement("div", {
10800
+ "data-sort-icons": true,
10801
+ className: tw("flex flex-col", {
10802
+ "invisible group-hover:visible": direction === "none"
10803
+ })
10804
+ }, /* @__PURE__ */ React62.createElement(InlineIcon, {
10805
+ icon: import_chevronUp3.default,
10806
+ className: getSortCellIconClassNames(direction === "ascending")
10807
+ }), /* @__PURE__ */ React62.createElement(InlineIcon, {
10808
+ icon: import_chevronDown4.default,
10809
+ className: getSortCellIconClassNames(direction === "descending")
10810
+ }))));
10811
+ }
10812
+ );
10804
10813
  var Caption = ({ children }) => /* @__PURE__ */ React62.createElement(Typography2.Caption, {
10805
10814
  htmlTag: "caption"
10806
10815
  }, children);
@@ -10992,6 +11001,98 @@ DataList.Toolbar = {
10992
11001
  SelectionCount: ToolbarSelectionCount
10993
11002
  };
10994
11003
 
11004
+ // src/utils/stickyStyles.tsx
11005
+ import React64, { useMemo as useMemo3, useState as useState10 } from "react";
11006
+ import { animated as animated4, useScroll, useSpring as useSpring3 } from "@react-spring/web";
11007
+ import throttle from "lodash/throttle";
11008
+ function useStickyStyles(scrollProgress, axis, { borderColor, boxShadowColor }) {
11009
+ const { startValue, endValue } = useMemo3(() => {
11010
+ if (scrollProgress === null) {
11011
+ return { startValue: 0, endValue: 0 };
11012
+ }
11013
+ const startValue2 = scrollProgress;
11014
+ const endValue2 = 1 - scrollProgress;
11015
+ return { startValue: startValue2, endValue: endValue2 };
11016
+ }, [scrollProgress]);
11017
+ const springStyles = useSpring3({
11018
+ borderColorStart: `rgba(${borderColor}, ${startValue})`,
11019
+ borderColorEnd: `rgba(${borderColor}, ${endValue})`,
11020
+ boxShadowColorStart: `rgba(${boxShadowColor}, ${Math.min(startValue / 0.3, 0.1)})`,
11021
+ boxShadowColorEnd: `rgba(${boxShadowColor}, ${Math.min(endValue / 0.3, 0.1)})`
11022
+ });
11023
+ return axis === "horizontal" ? {
11024
+ left: {
11025
+ borderRight: springStyles.borderColorStart.to(
11026
+ (borderColor2) => `${Math.min(startValue / 0.3, 1)}px solid ${borderColor2}`
11027
+ ),
11028
+ boxShadow: springStyles.boxShadowColorStart.to((boxShadowColor2) => `${boxShadowColor2} 7px 0px 5px 0px`)
11029
+ },
11030
+ right: {
11031
+ borderLeft: springStyles.borderColorEnd.to(
11032
+ (borderColor2) => `${Math.min(endValue / 0.3, 1)}px solid ${borderColor2}`
11033
+ ),
11034
+ boxShadow: springStyles.boxShadowColorEnd.to((boxShadowColor2) => `${boxShadowColor2} -7px 0px 5px 0px`)
11035
+ }
11036
+ } : {
11037
+ top: {
11038
+ borderBottom: springStyles.borderColorStart.to(
11039
+ (borderColor2) => `${Math.min(startValue / 0.3, 1)}px solid ${borderColor2}`
11040
+ ),
11041
+ boxShadow: springStyles.boxShadowColorStart.to((boxShadowColor2) => `${boxShadowColor2} 0px 7px 5px 0px`)
11042
+ },
11043
+ bottom: {
11044
+ borderTop: springStyles.borderColorEnd.to(
11045
+ (borderColor2) => `${Math.min(endValue / 0.3, 1)}px solid ${borderColor2}`
11046
+ ),
11047
+ boxShadow: springStyles.boxShadowColorEnd.to((boxShadowColor2) => `${boxShadowColor2} 0px -7px 5px 0px`)
11048
+ }
11049
+ };
11050
+ }
11051
+ function useScrollProgress({ containerRef, skip }) {
11052
+ const [scrollState, setScrollState] = useState10(null);
11053
+ const throttledSetScrollState = throttle(({ scrollX, scrollXProgress }) => {
11054
+ setScrollState({ scrollX, scrollXProgress });
11055
+ }, 50);
11056
+ useScroll({
11057
+ container: containerRef,
11058
+ onChange: ({ value: { scrollX, scrollXProgress } }) => {
11059
+ throttledSetScrollState({ scrollX, scrollXProgress });
11060
+ },
11061
+ default: {
11062
+ immediate: true
11063
+ },
11064
+ pause: skip
11065
+ });
11066
+ const isContainerUnscrollable = scrollState && scrollState.scrollX === 0 && (scrollState == null ? void 0 : scrollState.scrollXProgress) === 1;
11067
+ if (!scrollState || isContainerUnscrollable) {
11068
+ return null;
11069
+ }
11070
+ return scrollState.scrollXProgress;
11071
+ }
11072
+ function createAnimatedCell({
11073
+ cellElement,
11074
+ stickyStyles,
11075
+ stickyColumn
11076
+ }) {
11077
+ if (!stickyColumn || !stickyStyles) {
11078
+ return cellElement;
11079
+ }
11080
+ const AnimatedCell = animated4(cellElement.type);
11081
+ return /* @__PURE__ */ React64.createElement(AnimatedCell, __spreadProps(__spreadValues({}, cellElement.props), {
11082
+ key: cellElement.key,
11083
+ style: __spreadValues(__spreadValues({}, cellElement.props.style), stickyStyles[stickyColumn])
11084
+ }), cellElement.props.children);
11085
+ }
11086
+ function useScrollStyles({
11087
+ containerRef,
11088
+ skip = false,
11089
+ direction = "horizontal",
11090
+ options = { borderColor: "210, 210, 214", boxShadowColor: "58, 58, 68" }
11091
+ }) {
11092
+ const scrollXProgress = useScrollProgress({ containerRef, skip });
11093
+ return useStickyStyles(scrollXProgress, direction, options);
11094
+ }
11095
+
10995
11096
  // src/utils/table/types.ts
10996
11097
  import isArray2 from "lodash/isArray";
10997
11098
  var areRowsGrouped = (rows) => {
@@ -11027,11 +11128,11 @@ function isOnSortChangedDirection(value) {
11027
11128
  }
11028
11129
 
11029
11130
  // src/utils/table/useTableSort.tsx
11030
- import React64 from "react";
11131
+ import React65 from "react";
11031
11132
  var getDefaultSort = (props) => "defaultSort" in props ? props.defaultSort : "column" in props && "direction" in props && Object.keys(props).length === 2 ? { column: props.column, direction: props.direction } : void 0;
11032
11133
  var useTableSort = (props) => {
11033
11134
  const onSortChanged = props && "onSortChanged" in props ? props.onSortChanged : void 0;
11034
- const [sort, setSort] = React64.useState(props && getDefaultSort(props));
11135
+ const [sort, setSort] = React65.useState(props && getDefaultSort(props));
11035
11136
  const setSortAndEmitOnSortChangedEvent = (sort2) => {
11036
11137
  setSort(sort2);
11037
11138
  if (onSortChanged) {
@@ -11072,11 +11173,11 @@ var sortRowsBy = (rows, sort) => {
11072
11173
  };
11073
11174
 
11074
11175
  // src/molecules/DataList/DataListComponents.tsx
11075
- import React67 from "react";
11176
+ import React68 from "react";
11076
11177
  import isFunction from "lodash/isFunction";
11077
11178
 
11078
11179
  // src/molecules/DropdownMenu/DropdownMenu.tsx
11079
- import React66 from "react";
11180
+ import React67 from "react";
11080
11181
  import { useFilter } from "@react-aria/i18n";
11081
11182
  import { PressResponder, usePress } from "@react-aria/interactions";
11082
11183
  import { useMenu, useMenuItem, useMenuSection, useMenuTrigger } from "@react-aria/menu";
@@ -11088,12 +11189,12 @@ import { useTreeState } from "@react-stately/tree";
11088
11189
  import omit7 from "lodash/omit";
11089
11190
 
11090
11191
  // src/atoms/DropdownMenu/DropdownMenu.tsx
11091
- import React65 from "react";
11192
+ import React66 from "react";
11092
11193
  var import_tick5 = __toESM(require_tick());
11093
- var DropdownMenu = React65.forwardRef(
11194
+ var DropdownMenu = React66.forwardRef(
11094
11195
  (_a, ref) => {
11095
11196
  var _b = _a, { minHeight, maxHeight = "100%", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["minHeight", "maxHeight", "minWidth", "maxWidth", "className", "children"]);
11096
- return /* @__PURE__ */ React65.createElement("div", __spreadValues({
11197
+ return /* @__PURE__ */ React66.createElement("div", __spreadValues({
11097
11198
  ref,
11098
11199
  style: { minHeight, maxHeight, minWidth, maxWidth },
11099
11200
  className: classNames(
@@ -11103,35 +11204,35 @@ var DropdownMenu = React65.forwardRef(
11103
11204
  }, props), children);
11104
11205
  }
11105
11206
  );
11106
- var ContentContainer = ({ children }) => /* @__PURE__ */ React65.createElement("div", {
11207
+ var ContentContainer = ({ children }) => /* @__PURE__ */ React66.createElement("div", {
11107
11208
  className: tw("p-3 overflow-y-auto overflow-x-hidden")
11108
11209
  }, children);
11109
11210
  DropdownMenu.ContentContainer = ContentContainer;
11110
- var List2 = React65.forwardRef(
11211
+ var List2 = React66.forwardRef(
11111
11212
  (_a, ref) => {
11112
11213
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
11113
- return /* @__PURE__ */ React65.createElement("ul", __spreadValues({
11214
+ return /* @__PURE__ */ React66.createElement("ul", __spreadValues({
11114
11215
  ref,
11115
11216
  className: classNames(className, "outline-none ring-0")
11116
11217
  }, props), children);
11117
11218
  }
11118
11219
  );
11119
11220
  DropdownMenu.List = List2;
11120
- var Group2 = React65.forwardRef(
11221
+ var Group2 = React66.forwardRef(
11121
11222
  (_a, ref) => {
11122
11223
  var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
11123
- return /* @__PURE__ */ React65.createElement("li", __spreadValues({
11224
+ return /* @__PURE__ */ React66.createElement("li", __spreadValues({
11124
11225
  ref
11125
- }, props), title && /* @__PURE__ */ React65.createElement("div", __spreadValues({
11226
+ }, props), title && /* @__PURE__ */ React66.createElement("div", __spreadValues({
11126
11227
  className: classNames(className, "p-3 text-inactive uppercase cursor-default typography-caption")
11127
11228
  }, titleProps), title), children);
11128
11229
  }
11129
11230
  );
11130
11231
  DropdownMenu.Group = Group2;
11131
- var Item3 = React65.forwardRef(
11232
+ var Item3 = React66.forwardRef(
11132
11233
  (_a, ref) => {
11133
11234
  var _b = _a, { kind, highlighted, selected, className, icon, showNotification = false, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "showNotification", "children"]);
11134
- return /* @__PURE__ */ React65.createElement("li", __spreadValues({
11235
+ return /* @__PURE__ */ React66.createElement("li", __spreadValues({
11135
11236
  ref,
11136
11237
  className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
11137
11238
  "cursor-pointer hover:bg-muted": !props.disabled,
@@ -11139,32 +11240,32 @@ var Item3 = React65.forwardRef(
11139
11240
  "text-primary-intense": kind === "action",
11140
11241
  "text-inactive cursor-not-allowed": props.disabled
11141
11242
  })
11142
- }, props), icon && showNotification && /* @__PURE__ */ React65.createElement(Badge.Notification, null, /* @__PURE__ */ React65.createElement(InlineIcon, {
11243
+ }, props), icon && showNotification && /* @__PURE__ */ React66.createElement(Badge.Notification, null, /* @__PURE__ */ React66.createElement(InlineIcon, {
11143
11244
  icon
11144
- })), icon && !showNotification && /* @__PURE__ */ React65.createElement(InlineIcon, {
11245
+ })), icon && !showNotification && /* @__PURE__ */ React66.createElement(InlineIcon, {
11145
11246
  icon
11146
- }), /* @__PURE__ */ React65.createElement("span", {
11247
+ }), /* @__PURE__ */ React66.createElement("span", {
11147
11248
  className: tw("grow")
11148
- }, children), selected && /* @__PURE__ */ React65.createElement(InlineIcon, {
11249
+ }, children), selected && /* @__PURE__ */ React66.createElement(InlineIcon, {
11149
11250
  icon: import_tick5.default
11150
11251
  }));
11151
11252
  }
11152
11253
  );
11153
11254
  DropdownMenu.Item = Item3;
11154
- var Description = ({ disabled, children }) => /* @__PURE__ */ React65.createElement(Typography2.Caption, {
11155
- color: disabled ? "grey-20" : "grey-40"
11255
+ var Description = ({ disabled, children }) => /* @__PURE__ */ React66.createElement(Typography2.Caption, {
11256
+ color: disabled ? "inactive" : "muted"
11156
11257
  }, children);
11157
11258
  DropdownMenu.Description = Description;
11158
11259
  var Separator = (_a) => {
11159
11260
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
11160
- return /* @__PURE__ */ React65.createElement("li", __spreadProps(__spreadValues({}, props), {
11261
+ return /* @__PURE__ */ React66.createElement("li", __spreadProps(__spreadValues({}, props), {
11161
11262
  className: classNames(className, tw("m-3 block bg-default h-[1px]"))
11162
11263
  }));
11163
11264
  };
11164
11265
  DropdownMenu.Separator = Separator;
11165
11266
  var EmptyStateContainer2 = (_a) => {
11166
11267
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
11167
- return /* @__PURE__ */ React65.createElement("div", __spreadValues({
11268
+ return /* @__PURE__ */ React66.createElement("div", __spreadValues({
11168
11269
  className: classNames(tw("border border-dashed border-default p-3"), className)
11169
11270
  }, props), children);
11170
11271
  };
@@ -11226,23 +11327,23 @@ var DropdownMenu2 = (_a) => {
11226
11327
  "footer",
11227
11328
  "children"
11228
11329
  ]);
11229
- const triggerRef = React66.useRef(null);
11330
+ const triggerRef = React67.useRef(null);
11230
11331
  const [trigger, items] = extractTriggerAndItems(children);
11231
11332
  const state = useMenuTriggerState(props);
11232
11333
  const { menuTriggerProps, menuProps } = useMenuTrigger({}, state, triggerRef);
11233
- return /* @__PURE__ */ React66.createElement("div", null, /* @__PURE__ */ React66.createElement(PressResponder, __spreadValues({
11334
+ return /* @__PURE__ */ React67.createElement("div", null, /* @__PURE__ */ React67.createElement(PressResponder, __spreadValues({
11234
11335
  ref: triggerRef,
11235
11336
  onPress: () => state.toggle()
11236
- }, omit7(menuTriggerProps, ["id", "aria-expanded"])), /* @__PURE__ */ React66.createElement(TriggerWrapper, {
11337
+ }, omit7(menuTriggerProps, ["id", "aria-expanded"])), /* @__PURE__ */ React67.createElement(TriggerWrapper, {
11237
11338
  "aria-expanded": menuTriggerProps["aria-expanded"],
11238
11339
  disabled
11239
- }, trigger.props.children)), state.isOpen && /* @__PURE__ */ React66.createElement(PopoverOverlay, {
11340
+ }, trigger.props.children)), state.isOpen && /* @__PURE__ */ React67.createElement(PopoverOverlay, {
11240
11341
  className: "Aquarium-DropdownMenu",
11241
11342
  triggerRef,
11242
11343
  state,
11243
11344
  placement,
11244
11345
  focusable: false
11245
- }, /* @__PURE__ */ React66.createElement(MenuWrapper, __spreadValues({
11346
+ }, /* @__PURE__ */ React67.createElement(MenuWrapper, __spreadValues({
11246
11347
  onAction,
11247
11348
  selectionMode,
11248
11349
  selection,
@@ -11270,13 +11371,13 @@ DropdownMenu2.Section = Section;
11270
11371
  DropdownMenu2.Section.displayName = "DropdownMenu.Section";
11271
11372
  var TriggerWrapper = (_a) => {
11272
11373
  var _b = _a, { children, disabled } = _b, props = __objRest(_b, ["children", "disabled"]);
11273
- const ref = React66.useRef(null);
11374
+ const ref = React67.useRef(null);
11274
11375
  const { pressProps } = usePress(__spreadProps(__spreadValues({}, props), { isDisabled: disabled, ref }));
11275
- const trigger = React66.Children.only(children);
11276
- if (!trigger || !React66.isValidElement(trigger)) {
11376
+ const trigger = React67.Children.only(children);
11377
+ if (!trigger || !React67.isValidElement(trigger)) {
11277
11378
  throw new Error("<DropdownMenu.Trigger> must have valid child");
11278
11379
  }
11279
- return React66.cloneElement(trigger, __spreadValues({ ref }, mergeProps2(pressProps, props)));
11380
+ return React67.cloneElement(trigger, __spreadValues({ ref }, mergeProps2(pressProps, props)));
11280
11381
  };
11281
11382
  var isSectionNode = (item) => item.type === "section";
11282
11383
  var isItemNode = (item) => item.type === "item";
@@ -11302,7 +11403,7 @@ var MenuWrapper = (_a) => {
11302
11403
  "header",
11303
11404
  "footer"
11304
11405
  ]);
11305
- const ref = React66.useRef(null);
11406
+ const ref = React67.useRef(null);
11306
11407
  const disabledKeys = getDisabledItemKeys(props.children);
11307
11408
  const state = useTreeState(__spreadValues({
11308
11409
  disabledKeys,
@@ -11310,40 +11411,40 @@ var MenuWrapper = (_a) => {
11310
11411
  }, props));
11311
11412
  const { menuProps } = useMenu(props, state, ref);
11312
11413
  const { contains } = useFilter({ sensitivity: "base" });
11313
- const [search, setSearch] = React66.useState("");
11314
- const searchInputRef = React66.useRef(null);
11315
- const filteredCollection = React66.useMemo(
11414
+ const [search, setSearch] = React67.useState("");
11415
+ const searchInputRef = React67.useRef(null);
11416
+ const filteredCollection = React67.useMemo(
11316
11417
  () => searchable ? filterCollection(state.collection, search, contains) : state.collection,
11317
11418
  [searchable, state.collection, search, contains]
11318
11419
  );
11319
- React66.useEffect(() => {
11420
+ React67.useEffect(() => {
11320
11421
  var _a2;
11321
11422
  if (searchable) {
11322
11423
  (_a2 = searchInputRef.current) == null ? void 0 : _a2.focus();
11323
11424
  }
11324
11425
  }, [searchable]);
11325
- return /* @__PURE__ */ React66.createElement(DropdownMenu, {
11426
+ return /* @__PURE__ */ React67.createElement(DropdownMenu, {
11326
11427
  minWidth,
11327
11428
  maxWidth,
11328
11429
  minHeight,
11329
11430
  maxHeight
11330
- }, header, /* @__PURE__ */ React66.createElement(DropdownMenu.ContentContainer, null, searchable && /* @__PURE__ */ React66.createElement(SearchInput, {
11431
+ }, header, /* @__PURE__ */ React67.createElement(DropdownMenu.ContentContainer, null, searchable && /* @__PURE__ */ React67.createElement(SearchInput, {
11331
11432
  "aria-label": "search",
11332
11433
  value: search,
11333
11434
  onChange: (e) => setSearch(e.target.value),
11334
11435
  className: tw("mb-5"),
11335
11436
  ref: searchInputRef
11336
- }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React66.createElement(DropdownMenu.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React66.createElement(DropdownMenu.List, __spreadValues({
11437
+ }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React67.createElement(DropdownMenu.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React67.createElement(DropdownMenu.List, __spreadValues({
11337
11438
  ref
11338
11439
  }, menuProps), Array.from(filteredCollection).map((item) => {
11339
11440
  if (isSectionNode(item)) {
11340
- return /* @__PURE__ */ React66.createElement(SectionWrapper, {
11441
+ return /* @__PURE__ */ React67.createElement(SectionWrapper, {
11341
11442
  key: item.key,
11342
11443
  section: item,
11343
11444
  state
11344
11445
  });
11345
11446
  } else if (isItemNode(item)) {
11346
- return /* @__PURE__ */ React66.createElement(ItemWrapper, {
11447
+ return /* @__PURE__ */ React67.createElement(ItemWrapper, {
11347
11448
  key: item.key,
11348
11449
  item,
11349
11450
  state
@@ -11352,14 +11453,14 @@ var MenuWrapper = (_a) => {
11352
11453
  }))), footer);
11353
11454
  };
11354
11455
  var ItemWrapper = ({ item, state }) => {
11355
- const ref = React66.useRef(null);
11456
+ const ref = React67.useRef(null);
11356
11457
  const { menuItemProps, descriptionProps, isSelected, isFocused, isDisabled } = useMenuItem(
11357
11458
  { key: item.key, closeOnSelect: item.props.closeOnSelect, ["aria-label"]: item["aria-label"] },
11358
11459
  state,
11359
11460
  ref
11360
11461
  );
11361
11462
  const { icon, description, kind = "default", showNotification = false } = item.props;
11362
- return /* @__PURE__ */ React66.createElement(DropdownMenu.Item, __spreadProps(__spreadValues({
11463
+ return /* @__PURE__ */ React67.createElement(DropdownMenu.Item, __spreadProps(__spreadValues({
11363
11464
  ref
11364
11465
  }, menuItemProps), {
11365
11466
  kind,
@@ -11368,7 +11469,7 @@ var ItemWrapper = ({ item, state }) => {
11368
11469
  disabled: isDisabled,
11369
11470
  icon,
11370
11471
  showNotification
11371
- }), item.rendered, description && /* @__PURE__ */ React66.createElement(DropdownMenu.Description, __spreadValues({
11472
+ }), item.rendered, description && /* @__PURE__ */ React67.createElement(DropdownMenu.Description, __spreadValues({
11372
11473
  disabled: isDisabled
11373
11474
  }, descriptionProps), description));
11374
11475
  };
@@ -11380,24 +11481,24 @@ var SectionWrapper = ({ section, state }) => {
11380
11481
  const { separatorProps } = useSeparator({
11381
11482
  elementType: "li"
11382
11483
  });
11383
- return /* @__PURE__ */ React66.createElement(React66.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React66.createElement(DropdownMenu.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React66.createElement(DropdownMenu.Group, __spreadValues({
11484
+ return /* @__PURE__ */ React67.createElement(React67.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React67.createElement(DropdownMenu.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React67.createElement(DropdownMenu.Group, __spreadValues({
11384
11485
  title: section.rendered,
11385
11486
  titleProps: headingProps
11386
- }, itemProps), /* @__PURE__ */ React66.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React66.createElement(ItemWrapper, {
11487
+ }, itemProps), /* @__PURE__ */ React67.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React67.createElement(ItemWrapper, {
11387
11488
  key: node.key,
11388
11489
  item: node,
11389
11490
  state
11390
11491
  })))));
11391
11492
  };
11392
11493
  var extractTriggerAndItems = (children) => {
11393
- const [trigger, items] = React66.Children.toArray(children);
11494
+ const [trigger, items] = React67.Children.toArray(children);
11394
11495
  if (!isComponentType(trigger, MenuTrigger) || !isComponentType(items, MenuItems)) {
11395
11496
  throw new Error("<DropdownMenu> must have <DropdownMenu.Trigger> and <DropdownMenu.Items> defined");
11396
11497
  }
11397
11498
  return [trigger, items];
11398
11499
  };
11399
11500
  var getDisabledItemKeys = (children) => {
11400
- const keys = React66.Children.map(children, (child) => {
11501
+ const keys = React67.Children.map(children, (child) => {
11401
11502
  var _a, _b;
11402
11503
  if (!child || typeof child === "function") {
11403
11504
  return null;
@@ -11438,13 +11539,13 @@ var DataListRowMenu = ({
11438
11539
  return null;
11439
11540
  }
11440
11541
  const menuContent = isFunction(menu) ? menu(row, index) : menu;
11441
- return /* @__PURE__ */ React67.createElement(DataList.Cell, {
11542
+ return /* @__PURE__ */ React68.createElement(DataList.Cell, {
11442
11543
  align: "right"
11443
- }, menuContent && /* @__PURE__ */ React67.createElement(DropdownMenu2, {
11544
+ }, menuContent && /* @__PURE__ */ React68.createElement(DropdownMenu2, {
11444
11545
  placement: defaultContextualMenuPlacement,
11445
11546
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
11446
11547
  onOpenChange: onMenuOpenChange
11447
- }, /* @__PURE__ */ React67.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React67.createElement(Button.Icon, {
11548
+ }, /* @__PURE__ */ React68.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React68.createElement(Button.Icon, {
11448
11549
  "aria-label": menuAriaLabel,
11449
11550
  icon: import_more2.default
11450
11551
  })), menuContent));
@@ -11459,22 +11560,30 @@ var DataListRow = ({
11459
11560
  disabled,
11460
11561
  renderFirstColumn,
11461
11562
  additionalRowProps = () => ({}),
11462
- additionalColumnProps = () => ({})
11563
+ additionalColumnProps = () => ({}),
11564
+ stickyStyles
11463
11565
  }) => {
11464
11566
  var _a;
11465
11567
  const isRowDisabled = (_a = disabled == null ? void 0 : disabled(row, index, rows)) != null ? _a : false;
11466
- return /* @__PURE__ */ React67.createElement(DataList.Row, __spreadValues({
11568
+ return /* @__PURE__ */ React68.createElement(DataList.Row, __spreadValues({
11467
11569
  key: row.id,
11468
11570
  disabled: isRowDisabled,
11469
11571
  active
11470
- }, additionalRowProps(row, index, rows)), renderFirstColumn == null ? void 0 : renderFirstColumn(row, index, rows), /* @__PURE__ */ React67.createElement(List, {
11572
+ }, additionalRowProps(row, index, rows)), renderFirstColumn == null ? void 0 : renderFirstColumn(row, index, rows), /* @__PURE__ */ React68.createElement(List, {
11471
11573
  items: columns,
11472
- renderItem: (column, columnIndex) => /* @__PURE__ */ React67.createElement(DataList.Cell, __spreadValues(__spreadValues({}, cellProps(column)), additionalColumnProps(column, columnIndex, columns, row)), /* @__PURE__ */ React67.createElement(DataListCell, {
11473
- column,
11474
- row,
11475
- index,
11476
- rows
11477
- }))
11574
+ renderItem: (column, columnIndex) => {
11575
+ const cell = /* @__PURE__ */ React68.createElement(DataList.Cell, __spreadValues(__spreadValues({}, cellProps(column)), additionalColumnProps(column, columnIndex, columns, row)), /* @__PURE__ */ React68.createElement(DataListCell, {
11576
+ column,
11577
+ row,
11578
+ index,
11579
+ rows
11580
+ }));
11581
+ return createAnimatedCell({
11582
+ cellElement: cell,
11583
+ stickyStyles,
11584
+ stickyColumn: cellProps(column).stickyColumn
11585
+ });
11586
+ }
11478
11587
  }), menu);
11479
11588
  };
11480
11589
  var DEFAULT_CONTENT = "";
@@ -11490,7 +11599,7 @@ var DataListCell = ({
11490
11599
  case "status": {
11491
11600
  const status = column.status(row, index, rows);
11492
11601
  if (status) {
11493
- cellContent = /* @__PURE__ */ React67.createElement(StatusChip, __spreadValues({
11602
+ cellContent = /* @__PURE__ */ React68.createElement(StatusChip, __spreadValues({
11494
11603
  dense: true
11495
11604
  }, status));
11496
11605
  }
@@ -11499,7 +11608,7 @@ var DataListCell = ({
11499
11608
  case "action": {
11500
11609
  const action = renameProperty("text", "children", column.action(row, index, rows));
11501
11610
  if (action) {
11502
- cellContent = /* @__PURE__ */ React67.createElement(Button.Secondary, __spreadValues({
11611
+ cellContent = /* @__PURE__ */ React68.createElement(Button.Secondary, __spreadValues({
11503
11612
  dense: true
11504
11613
  }, action));
11505
11614
  }
@@ -11512,7 +11621,7 @@ var DataListCell = ({
11512
11621
  case "item": {
11513
11622
  const item = column.item(row, index, rows);
11514
11623
  if (item) {
11515
- cellContent = /* @__PURE__ */ React67.createElement(Item2, __spreadValues({}, item));
11624
+ cellContent = /* @__PURE__ */ React68.createElement(Item2, __spreadValues({}, item));
11516
11625
  }
11517
11626
  break;
11518
11627
  }
@@ -11524,7 +11633,7 @@ var DataListCell = ({
11524
11633
  }
11525
11634
  break;
11526
11635
  }
11527
- return column.tooltip ? /* @__PURE__ */ React67.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : /* @__PURE__ */ React67.createElement(React67.Fragment, null, cellContent);
11636
+ return column.tooltip ? /* @__PURE__ */ React68.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : /* @__PURE__ */ React68.createElement(React68.Fragment, null, cellContent);
11528
11637
  };
11529
11638
 
11530
11639
  // src/molecules/DataList/DataListContext.tsx
@@ -11542,7 +11651,7 @@ var useDataListContext = () => {
11542
11651
  };
11543
11652
 
11544
11653
  // src/molecules/DataList/DataListGroup.tsx
11545
- import React68 from "react";
11654
+ import React69 from "react";
11546
11655
  import isFunction2 from "lodash/isFunction";
11547
11656
  var import_infoSign3 = __toESM(require_infoSign());
11548
11657
 
@@ -11555,8 +11664,8 @@ var INDENTATION = 28;
11555
11664
  var sortGroupKeys = (groupKeys) => [...groupKeys].sort((a) => a === "undefined" ? -1 : 1);
11556
11665
  var getDefaultRowCheckboxLabel = () => "Select row";
11557
11666
  var getDefaultGroupCheckboxLabel = (key) => `Select ${key}`;
11558
- var renderDefaultGroupName = (key) => /* @__PURE__ */ React68.createElement(React68.Fragment, null, "Group: ", /* @__PURE__ */ React68.createElement("b", null, key));
11559
- var renderDefaultEmptyGroup = () => /* @__PURE__ */ React68.createElement(DataList.EmptyGroup, {
11667
+ var renderDefaultGroupName = (key) => /* @__PURE__ */ React69.createElement(React69.Fragment, null, "Group: ", /* @__PURE__ */ React69.createElement("b", null, key));
11668
+ var renderDefaultEmptyGroup = () => /* @__PURE__ */ React69.createElement(DataList.EmptyGroup, {
11560
11669
  icon: import_infoSign3.default
11561
11670
  }, "This group is empty");
11562
11671
  var DataListGroup = (_a) => {
@@ -11593,28 +11702,28 @@ var DataListGroup = (_a) => {
11593
11702
  const hasCustomRowForGroup = isFunction2(getGroupRow);
11594
11703
  if (!areRowsGrouped(groups)) {
11595
11704
  if (groups.length === 0 && groupKey && groupKey !== "undefined") {
11596
- return /* @__PURE__ */ React68.createElement(DataList.Row, null, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null), /* @__PURE__ */ React68.createElement(DataList.Cell, {
11705
+ return /* @__PURE__ */ React69.createElement(DataList.Row, null, selectable && /* @__PURE__ */ React69.createElement(DataList.Cell, null), /* @__PURE__ */ React69.createElement(DataList.Cell, {
11597
11706
  style: { paddingLeft: `${2 + GAP + level * INDENTATION}px`, gridColumn: `${selectable ? 2 : 1} / -1` }
11598
- }, /* @__PURE__ */ React68.createElement(Typography, {
11707
+ }, /* @__PURE__ */ React69.createElement(Typography, {
11599
11708
  variant: "small",
11600
11709
  color: "muted"
11601
11710
  }, renderEmptyGroup(groupKey))));
11602
11711
  }
11603
- return /* @__PURE__ */ React68.createElement(List, {
11712
+ return /* @__PURE__ */ React69.createElement(List, {
11604
11713
  items: groups,
11605
11714
  renderItem: (row, index) => {
11606
11715
  var _a2;
11607
11716
  const isChecked = (_a2 = selectedRows == null ? void 0 : selectedRows.includes(row.id)) != null ? _a2 : false;
11608
11717
  const isDisabled = disabled == null ? void 0 : disabled(row, index, rows);
11609
11718
  const isSelectionDisabled = selectionDisabled(row, index, rows);
11610
- return /* @__PURE__ */ React68.createElement(DataListRow, {
11719
+ return /* @__PURE__ */ React69.createElement(DataListRow, {
11611
11720
  key: row.id,
11612
11721
  columns,
11613
11722
  row,
11614
11723
  index,
11615
11724
  rows,
11616
11725
  active: selectable && isChecked,
11617
- menu: /* @__PURE__ */ React68.createElement(DataListRowMenu, {
11726
+ menu: /* @__PURE__ */ React69.createElement(DataListRowMenu, {
11618
11727
  row,
11619
11728
  index,
11620
11729
  menu,
@@ -11632,7 +11741,7 @@ var DataListGroup = (_a) => {
11632
11741
  }
11633
11742
  } : {},
11634
11743
  renderFirstColumn: (row2, index2) => {
11635
- return /* @__PURE__ */ React68.createElement(React68.Fragment, null, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null, /* @__PURE__ */ React68.createElement(Checkbox, {
11744
+ return /* @__PURE__ */ React69.createElement(React69.Fragment, null, selectable && /* @__PURE__ */ React69.createElement(DataList.Cell, null, /* @__PURE__ */ React69.createElement(Checkbox, {
11636
11745
  "aria-label": getRowCheckboxLabel(row2, index2, isChecked, rows),
11637
11746
  onChange: onSelectionChange(row2.id),
11638
11747
  checked: isChecked,
@@ -11646,13 +11755,13 @@ var DataListGroup = (_a) => {
11646
11755
  if (!groupKeys) {
11647
11756
  return null;
11648
11757
  }
11649
- return /* @__PURE__ */ React68.createElement(List, {
11758
+ return /* @__PURE__ */ React69.createElement(List, {
11650
11759
  items: sortGroupKeys(groupKeys),
11651
11760
  renderItem: (key, index) => {
11652
11761
  var _a2, _b2;
11653
11762
  const group = groups[key];
11654
11763
  if (key === "undefined" || key === void 0) {
11655
- return /* @__PURE__ */ React68.createElement(DataListGroup, __spreadProps(__spreadValues({
11764
+ return /* @__PURE__ */ React69.createElement(DataListGroup, __spreadProps(__spreadValues({
11656
11765
  key: "undefined",
11657
11766
  groupKey: "undefined",
11658
11767
  level
@@ -11665,57 +11774,57 @@ var DataListGroup = (_a) => {
11665
11774
  const nestedSelectedIds = (_b2 = selectedRows == null ? void 0 : selectedRows.filter((id) => nestedRowIds.includes(id))) != null ? _b2 : [];
11666
11775
  const allSelected = nestedRowIds.length === nestedSelectedIds.length;
11667
11776
  const isChecked = nestedSelectedIds.length > 0;
11668
- return /* @__PURE__ */ React68.createElement(Accordion, {
11777
+ return /* @__PURE__ */ React69.createElement(Accordion, {
11669
11778
  key,
11670
11779
  openPanelId
11671
- }, hasCustomRowForGroup && /* @__PURE__ */ React68.createElement(DataList.Row, {
11780
+ }, hasCustomRowForGroup && /* @__PURE__ */ React69.createElement(DataList.Row, {
11672
11781
  active: !!openPanelId || selectable && isChecked
11673
- }, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null, /* @__PURE__ */ React68.createElement(Checkbox, {
11782
+ }, selectable && /* @__PURE__ */ React69.createElement(DataList.Cell, null, /* @__PURE__ */ React69.createElement(Checkbox, {
11674
11783
  "aria-label": getGroupCheckboxLabel(key, group, index, isChecked, rows),
11675
11784
  checked: isChecked,
11676
11785
  indeterminate: isChecked && !allSelected,
11677
11786
  disabled: group.length === 0,
11678
11787
  onChange: onSelectionChange(nestedRowIds)
11679
- })), /* @__PURE__ */ React68.createElement(List, {
11788
+ })), /* @__PURE__ */ React69.createElement(List, {
11680
11789
  items: columns,
11681
- renderItem: (column, idx) => /* @__PURE__ */ React68.createElement(DataList.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
11790
+ renderItem: (column, idx) => /* @__PURE__ */ React69.createElement(DataList.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
11682
11791
  className: tw("gap-3"),
11683
11792
  style: idx === 0 ? { paddingLeft: `${GAP + level * INDENTATION}px` } : void 0
11684
- }), idx === 0 && /* @__PURE__ */ React68.createElement(Accordion.Toggle, {
11793
+ }), idx === 0 && /* @__PURE__ */ React69.createElement(Accordion.Toggle, {
11685
11794
  panelId: key,
11686
11795
  onChange: onGroupToggled
11687
- }), /* @__PURE__ */ React68.createElement(DataListCell, {
11796
+ }), /* @__PURE__ */ React69.createElement(DataListCell, {
11688
11797
  column,
11689
11798
  row: getGroupRow(key, group),
11690
11799
  index: -1,
11691
11800
  rows: []
11692
11801
  }))
11693
- }), /* @__PURE__ */ React68.createElement(DataListRowMenu, {
11802
+ }), /* @__PURE__ */ React69.createElement(DataListRowMenu, {
11694
11803
  row: getGroupRow(key, group),
11695
11804
  index: -1,
11696
11805
  menu,
11697
11806
  onAction,
11698
11807
  onMenuOpenChange,
11699
11808
  menuAriaLabel
11700
- })), !hasCustomRowForGroup && /* @__PURE__ */ React68.createElement(DataList.Row, {
11809
+ })), !hasCustomRowForGroup && /* @__PURE__ */ React69.createElement(DataList.Row, {
11701
11810
  active: !!openPanelId || selectable && isChecked
11702
- }, selectable && /* @__PURE__ */ React68.createElement(DataList.Cell, null, /* @__PURE__ */ React68.createElement(Checkbox, {
11811
+ }, selectable && /* @__PURE__ */ React69.createElement(DataList.Cell, null, /* @__PURE__ */ React69.createElement(Checkbox, {
11703
11812
  "aria-label": getGroupCheckboxLabel(key, group, index, isChecked, rows),
11704
11813
  checked: isChecked,
11705
11814
  indeterminate: isChecked && !allSelected,
11706
11815
  disabled: group.length === 0,
11707
11816
  onChange: onSelectionChange(nestedRowIds)
11708
- })), /* @__PURE__ */ React68.createElement(DataList.Cell, {
11817
+ })), /* @__PURE__ */ React69.createElement(DataList.Cell, {
11709
11818
  className: tw("gap-3"),
11710
11819
  style: { paddingLeft: `${GAP + level * INDENTATION}px`, gridColumn: `${selectable ? 2 : 1} / -1` }
11711
- }, /* @__PURE__ */ React68.createElement(Accordion.Toggle, {
11820
+ }, /* @__PURE__ */ React69.createElement(Accordion.Toggle, {
11712
11821
  panelId: key,
11713
11822
  onChange: onGroupToggled
11714
- }), renderGroupName(key, group))), /* @__PURE__ */ React68.createElement(DataList.Row, {
11823
+ }), renderGroupName(key, group))), /* @__PURE__ */ React69.createElement(DataList.Row, {
11715
11824
  subgroup: true
11716
- }, /* @__PURE__ */ React68.createElement(Accordion.UnanimatedPanel, {
11825
+ }, /* @__PURE__ */ React69.createElement(Accordion.UnanimatedPanel, {
11717
11826
  panelId: key
11718
- }, /* @__PURE__ */ React68.createElement(DataListGroup, __spreadProps(__spreadValues({
11827
+ }, /* @__PURE__ */ React69.createElement(DataListGroup, __spreadProps(__spreadValues({
11719
11828
  key,
11720
11829
  groupKey: key,
11721
11830
  level: level + 1
@@ -11727,26 +11836,26 @@ var DataListGroup = (_a) => {
11727
11836
  };
11728
11837
 
11729
11838
  // src/molecules/DataList/DataListSkeleton.tsx
11730
- import React69 from "react";
11839
+ import React70 from "react";
11731
11840
  var DataListSkeleton = ({ columns = ["1", "2", "2", 52], rows = 5 }) => {
11732
11841
  const columnsAmount = [...Array(typeof columns === "number" ? columns : columns.length).keys()];
11733
- return /* @__PURE__ */ React69.createElement(Template, {
11842
+ return /* @__PURE__ */ React70.createElement(Template, {
11734
11843
  role: "table",
11735
11844
  columns
11736
- }, /* @__PURE__ */ React69.createElement(DataList.Row, null, columnsAmount.map((_, index) => /* @__PURE__ */ React69.createElement(DataList.HeadCell, {
11845
+ }, /* @__PURE__ */ React70.createElement(DataList.Row, null, columnsAmount.map((_, index) => /* @__PURE__ */ React70.createElement(DataList.HeadCell, {
11737
11846
  key: index
11738
- }, /* @__PURE__ */ React69.createElement(Skeleton, {
11847
+ }, /* @__PURE__ */ React70.createElement(Skeleton, {
11739
11848
  width: "100%",
11740
11849
  height: 17.5
11741
- })))), /* @__PURE__ */ React69.createElement(List, {
11850
+ })))), /* @__PURE__ */ React70.createElement(List, {
11742
11851
  items: [...Array(rows).keys()],
11743
- renderItem: (item) => /* @__PURE__ */ React69.createElement(DataList.Row, {
11852
+ renderItem: (item) => /* @__PURE__ */ React70.createElement(DataList.Row, {
11744
11853
  key: item
11745
- }, /* @__PURE__ */ React69.createElement(List, {
11854
+ }, /* @__PURE__ */ React70.createElement(List, {
11746
11855
  items: columnsAmount,
11747
- renderItem: (key) => /* @__PURE__ */ React69.createElement(DataList.Cell, {
11856
+ renderItem: (key) => /* @__PURE__ */ React70.createElement(DataList.Cell, {
11748
11857
  key
11749
- }, /* @__PURE__ */ React69.createElement(Skeleton, {
11858
+ }, /* @__PURE__ */ React70.createElement(Skeleton, {
11750
11859
  width: "100%",
11751
11860
  height: 17.5
11752
11861
  }))
@@ -11755,7 +11864,7 @@ var DataListSkeleton = ({ columns = ["1", "2", "2", 52], rows = 5 }) => {
11755
11864
  };
11756
11865
 
11757
11866
  // src/molecules/DataList/DataListToolbar.tsx
11758
- import React70 from "react";
11867
+ import React71 from "react";
11759
11868
  import castArray from "lodash/castArray";
11760
11869
  var DataListToolbar = ({
11761
11870
  actions: _actions,
@@ -11768,19 +11877,19 @@ var DataListToolbar = ({
11768
11877
  var _a;
11769
11878
  const { selectedRows } = useDataListContext();
11770
11879
  const actions = castArray(_actions).filter(Boolean);
11771
- return /* @__PURE__ */ React70.createElement(DataList.Toolbar.Container, {
11880
+ return /* @__PURE__ */ React71.createElement(DataList.Toolbar.Container, {
11772
11881
  sticky
11773
- }, /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DataList.Toolbar.SelectionCount, null, (_a = selectedRows == null ? void 0 : selectedRows.length) != null ? _a : 0, " selected")), actions.length > 0 && /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DataList.Toolbar.Actions, null, actions.map(
11882
+ }, /* @__PURE__ */ React71.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React71.createElement(DataList.Toolbar.SelectionCount, null, (_a = selectedRows == null ? void 0 : selectedRows.length) != null ? _a : 0, " selected")), actions.length > 0 && /* @__PURE__ */ React71.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React71.createElement(DataList.Toolbar.Actions, null, actions.map(
11774
11883
  (action) => renderAction({
11775
11884
  kind: "ghost",
11776
11885
  dense: true,
11777
11886
  action: __spreadProps(__spreadValues({}, action), { onClick: () => action.onClick(selectedRows != null ? selectedRows : []) })
11778
11887
  })
11779
- ))), menu && /* @__PURE__ */ React70.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React70.createElement(DropdownMenu2, {
11888
+ ))), menu && /* @__PURE__ */ React71.createElement(DataList.Toolbar.Group, null, /* @__PURE__ */ React71.createElement(DropdownMenu2, {
11780
11889
  placement: defaultContextualMenuPlacement,
11781
11890
  onAction: (key) => onAction == null ? void 0 : onAction(key, selectedRows != null ? selectedRows : []),
11782
11891
  onOpenChange: onMenuOpenChange
11783
- }, /* @__PURE__ */ React70.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React70.createElement(Button.GhostDropdown, {
11892
+ }, /* @__PURE__ */ React71.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React71.createElement(Button.GhostDropdown, {
11784
11893
  dense: true
11785
11894
  }, menuLabel)), menu)));
11786
11895
  };
@@ -11814,7 +11923,7 @@ var DataList2 = (_a) => {
11814
11923
  getRowCheckboxLabel = getDefaultRowCheckboxLabel,
11815
11924
  getGroupCheckboxLabel = getDefaultGroupCheckboxLabel,
11816
11925
  selectedRows,
11817
- defaultSelectedRows = [],
11926
+ defaultSelectedRows,
11818
11927
  onSelectionChange,
11819
11928
  toolbar
11820
11929
  } = _b, rest = __objRest(_b, [
@@ -11848,6 +11957,9 @@ var DataList2 = (_a) => {
11848
11957
  "toolbar"
11849
11958
  ]);
11850
11959
  var _a2, _b2;
11960
+ const containerRef = useRef7(null);
11961
+ const hasStickyColumns = columns.some((column) => column.sticky);
11962
+ const stickyStyles = useScrollStyles({ containerRef, skip: !hasStickyColumns });
11851
11963
  const [selected, setSelected] = useControlledState(
11852
11964
  selectedRows,
11853
11965
  defaultSelectedRows,
@@ -11870,11 +11982,11 @@ var DataList2 = (_a) => {
11870
11982
  }),
11871
11983
  menu ? "fit-content(28px)" : void 0
11872
11984
  ]);
11873
- const PaginationFooter = React71.useCallback(
11874
- ({ children }) => /* @__PURE__ */ React71.createElement("div", {
11985
+ const PaginationFooter = React72.useCallback(
11986
+ ({ children }) => /* @__PURE__ */ React72.createElement("div", {
11875
11987
  style: { gridColumn: "1 / -1" },
11876
11988
  role: "row"
11877
- }, /* @__PURE__ */ React71.createElement("div", {
11989
+ }, /* @__PURE__ */ React72.createElement("div", {
11878
11990
  role: "cell"
11879
11991
  }, children)),
11880
11992
  []
@@ -11890,26 +12002,27 @@ var DataList2 = (_a) => {
11890
12002
  const allRows = flattenRows(rows);
11891
12003
  const totalSelected = (_b2 = selected == null ? void 0 : selected.length) != null ? _b2 : 0;
11892
12004
  const allEnabledRowIds = compact(
11893
- allRows.map(
11894
- (row, index) => (disabled == null ? void 0 : disabled(row, index, sortedRows)) || (selectionDisabled == null ? void 0 : selectionDisabled(row, index, sortedRows)) ? void 0 : row.id
11895
- )
12005
+ allRows.map((row, index) => (disabled == null ? void 0 : disabled(row, index, sortedRows)) ? void 0 : row.id)
11896
12006
  );
11897
12007
  const allRowsSelected = totalSelected >= allEnabledRowIds.length;
11898
- return /* @__PURE__ */ React71.createElement(DataListContext.Provider, {
12008
+ return /* @__PURE__ */ React72.createElement(DataListContext.Provider, {
11899
12009
  value: {
11900
12010
  rows: isArray3(rows) ? sortedRows : rows,
11901
12011
  selectedRows: selected
11902
12012
  }
11903
- }, /* @__PURE__ */ React71.createElement(Template, {
12013
+ }, /* @__PURE__ */ React72.createElement("div", {
12014
+ className: "relative w-full overflow-x-auto",
12015
+ ref: containerRef
12016
+ }, /* @__PURE__ */ React72.createElement(Template, {
11904
12017
  className: "Aquarium-DataList",
11905
12018
  columns: templateColumns,
11906
12019
  role: "table"
11907
- }, !hideHeader && /* @__PURE__ */ React71.createElement(React71.Fragment, null, /* @__PURE__ */ React71.createElement(DataList.Row, {
12020
+ }, !hideHeader && /* @__PURE__ */ React72.createElement(React72.Fragment, null, /* @__PURE__ */ React72.createElement(DataList.Row, {
11908
12021
  header: true
11909
- }, selectable && /* @__PURE__ */ React71.createElement(DataList.HeadCell, {
12022
+ }, selectable && /* @__PURE__ */ React72.createElement(DataList.HeadCell, {
11910
12023
  align: "left",
11911
12024
  sticky
11912
- }, /* @__PURE__ */ React71.createElement(Checkbox, {
12025
+ }, /* @__PURE__ */ React72.createElement(Checkbox, {
11913
12026
  "aria-label": "Select all rows",
11914
12027
  indeterminate: totalSelected > 0 && totalSelected < allRows.length,
11915
12028
  checked: totalSelected > 0,
@@ -11920,36 +12033,41 @@ var DataList2 = (_a) => {
11920
12033
  setSelected([]);
11921
12034
  }
11922
12035
  }
11923
- })), isCollapsible && /* @__PURE__ */ React71.createElement(DataList.HeadCell, {
12036
+ })), isCollapsible && /* @__PURE__ */ React72.createElement(DataList.HeadCell, {
11924
12037
  align: "left",
11925
12038
  sticky
11926
12039
  }), columns.map((column) => {
11927
- const content = column.headerTooltip ? /* @__PURE__ */ React71.createElement(Tooltip, {
12040
+ const content = column.headerTooltip ? /* @__PURE__ */ React72.createElement(Tooltip, {
11928
12041
  placement: column.headerTooltip.placement,
11929
12042
  content: column.headerTooltip.content
11930
12043
  }, column.headerName) : column.headerName;
11931
- const headerContentAndIcon = column.icon ? /* @__PURE__ */ React71.createElement(Box.Flex, {
12044
+ const headerContentAndIcon = column.icon ? /* @__PURE__ */ React72.createElement(Box.Flex, {
11932
12045
  flexDirection: "row",
11933
12046
  gap: "3",
11934
12047
  alignItems: "center"
11935
- }, /* @__PURE__ */ React71.createElement(InlineIcon, {
12048
+ }, /* @__PURE__ */ React72.createElement(InlineIcon, {
11936
12049
  icon: column.icon,
11937
12050
  height: "22",
11938
12051
  color: "default",
11939
12052
  "aria-hidden": true
11940
12053
  }), content) : content;
11941
- return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React71.createElement(DataList.SortCell, __spreadValues({
12054
+ const cell = columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React72.createElement(DataList.SortCell, __spreadValues({
11942
12055
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
11943
12056
  onClick: () => updateSort(column),
11944
12057
  sticky
11945
- }, cellProps(column)), headerContentAndIcon) : /* @__PURE__ */ React71.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
12058
+ }, cellProps(column)), headerContentAndIcon) : /* @__PURE__ */ React72.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
11946
12059
  sticky
11947
12060
  }), headerContentAndIcon);
11948
- }), menu && /* @__PURE__ */ React71.createElement(DataList.HeadCell, {
12061
+ return createAnimatedCell({
12062
+ cellElement: cell,
12063
+ stickyStyles,
12064
+ stickyColumn: cellProps(column).stickyColumn
12065
+ });
12066
+ }), menu && /* @__PURE__ */ React72.createElement(DataList.HeadCell, {
11949
12067
  align: "right",
11950
12068
  "aria-label": menuAriaLabel,
11951
12069
  sticky
11952
- }, menuHeaderName)), toolbar), groups && /* @__PURE__ */ React71.createElement(DataListGroup, {
12070
+ }, menuHeaderName)), toolbar), groups && /* @__PURE__ */ React72.createElement(DataListGroup, {
11953
12071
  columns,
11954
12072
  disabled,
11955
12073
  getGroupRow,
@@ -11971,7 +12089,7 @@ var DataList2 = (_a) => {
11971
12089
  groups,
11972
12090
  groupKey: void 0,
11973
12091
  level: 0
11974
- }), !groups && /* @__PURE__ */ React71.createElement(List, __spreadProps(__spreadValues({}, rest), {
12092
+ }), !groups && /* @__PURE__ */ React72.createElement(List, __spreadProps(__spreadValues({}, rest), {
11975
12093
  paginationContainer: PaginationFooter,
11976
12094
  items: sortedRows,
11977
12095
  renderItem: (row, index) => {
@@ -11980,14 +12098,15 @@ var DataList2 = (_a) => {
11980
12098
  const isChecked = (_a3 = selected == null ? void 0 : selected.includes(row.id)) != null ? _a3 : false;
11981
12099
  const isSelectionDisabled = selectionDisabled == null ? void 0 : selectionDisabled(row, index, sortedRows);
11982
12100
  const isDisabled = disabled == null ? void 0 : disabled(row, index, sortedRows);
11983
- const content = /* @__PURE__ */ React71.createElement(DataListRow, {
12101
+ const content = /* @__PURE__ */ React72.createElement(DataListRow, {
11984
12102
  key: row.id,
11985
12103
  columns,
11986
12104
  row,
11987
12105
  index,
11988
12106
  rows: sortedRows,
11989
12107
  active: selectable && isChecked,
11990
- menu: /* @__PURE__ */ React71.createElement(DataListRowMenu, {
12108
+ stickyStyles,
12109
+ menu: /* @__PURE__ */ React72.createElement(DataListRowMenu, {
11991
12110
  row,
11992
12111
  index,
11993
12112
  menu,
@@ -12003,12 +12122,12 @@ var DataList2 = (_a) => {
12003
12122
  } : {};
12004
12123
  },
12005
12124
  renderFirstColumn: (row2, index2) => {
12006
- return /* @__PURE__ */ React71.createElement(React71.Fragment, null, selectable && /* @__PURE__ */ React71.createElement(DataList.Cell, null, /* @__PURE__ */ React71.createElement(Checkbox, {
12125
+ return /* @__PURE__ */ React72.createElement(React72.Fragment, null, selectable && /* @__PURE__ */ React72.createElement(DataList.Cell, null, /* @__PURE__ */ React72.createElement(Checkbox, {
12007
12126
  "aria-label": getRowCheckboxLabel(row2, index2, isChecked, sortedRows),
12008
12127
  onChange: handleSelectionChange(row2.id),
12009
12128
  checked: isChecked,
12010
12129
  disabled: isDisabled || isSelectionDisabled
12011
- })), rowDetails !== void 0 && /* @__PURE__ */ React71.createElement(DataList.Cell, null, details && /* @__PURE__ */ React71.createElement(Accordion.Toggle, {
12130
+ })), rowDetails !== void 0 && /* @__PURE__ */ React72.createElement(DataList.Cell, null, details && /* @__PURE__ */ React72.createElement(Accordion.Toggle, {
12012
12131
  panelId: row2.id.toString(),
12013
12132
  onChange: onGroupToggled
12014
12133
  })));
@@ -12017,36 +12136,37 @@ var DataList2 = (_a) => {
12017
12136
  if (!details) {
12018
12137
  return content;
12019
12138
  }
12020
- return /* @__PURE__ */ React71.createElement(Accordion, {
12139
+ return /* @__PURE__ */ React72.createElement(Accordion, {
12021
12140
  key: row.id,
12022
12141
  openPanelId: expandedGroupIds ? expandedGroupIds.find((id) => id === row.id) || null : void 0
12023
- }, content, /* @__PURE__ */ React71.createElement(Accordion.Panel, {
12142
+ }, content, /* @__PURE__ */ React72.createElement(Accordion.Panel, {
12024
12143
  role: "row",
12025
12144
  panelId: row.id.toString(),
12026
12145
  className: tw("col-span-full bg-muted border-b border-default"),
12027
12146
  "aria-label": `row ${row.id.toString()} details`
12028
- }, /* @__PURE__ */ React71.createElement("div", {
12147
+ }, /* @__PURE__ */ React72.createElement("div", {
12029
12148
  role: "cell"
12030
12149
  }, details)));
12031
12150
  }
12032
- }))));
12151
+ })))));
12033
12152
  };
12034
12153
  DataList2.Skeleton = DataListSkeleton;
12035
12154
  DataList2.Toolbar = DataListToolbar;
12036
12155
 
12037
12156
  // src/molecules/DataTable/DataTable.tsx
12038
- import React74 from "react";
12157
+ import React75, { useRef as useRef8 } from "react";
12158
+ import classNames8 from "classnames";
12039
12159
  import compact2 from "lodash/compact";
12040
12160
  import isFunction4 from "lodash/isFunction";
12041
12161
 
12042
12162
  // src/molecules/Table/Table.tsx
12043
- import React73 from "react";
12163
+ import React74 from "react";
12044
12164
 
12045
12165
  // src/utils/table/useScrollTarget.ts
12046
- import React72 from "react";
12166
+ import React73 from "react";
12047
12167
  var useScrollTarget = (callback) => {
12048
- const targetRef = React72.useRef(null);
12049
- React72.useLayoutEffect(() => {
12168
+ const targetRef = React73.useRef(null);
12169
+ React73.useLayoutEffect(() => {
12050
12170
  const observer = new IntersectionObserver((entries) => entries[0].isIntersecting && callback && callback(), {
12051
12171
  root: null,
12052
12172
  rootMargin: `0px 0px 200px 0px`
@@ -12064,12 +12184,12 @@ var Table2 = (_a) => {
12064
12184
  var _b = _a, { children, onPrev, onNext } = _b, rest = __objRest(_b, ["children", "onPrev", "onNext"]);
12065
12185
  const bottomRef = useScrollTarget(onNext);
12066
12186
  const topRef = useScrollTarget(onPrev);
12067
- return /* @__PURE__ */ React73.createElement("div", {
12187
+ return /* @__PURE__ */ React74.createElement("div", {
12068
12188
  className: classNames("Aquarium-Table", tw("relative w-full"))
12069
- }, /* @__PURE__ */ React73.createElement("div", {
12189
+ }, /* @__PURE__ */ React74.createElement("div", {
12070
12190
  ref: topRef,
12071
12191
  className: tw("absolute top-0 h-1 w-full left-0 bg-transparent")
12072
- }), /* @__PURE__ */ React73.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React73.createElement("div", {
12192
+ }), /* @__PURE__ */ React74.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React74.createElement("div", {
12073
12193
  ref: bottomRef,
12074
12194
  className: tw("absolute bottom-0 h-1 w-full left-0 bg-transparent")
12075
12195
  }));
@@ -12123,6 +12243,9 @@ var DataTable = (_a) => {
12123
12243
  "onPrev"
12124
12244
  ]);
12125
12245
  var _a2;
12246
+ const containerRef = useRef8(null);
12247
+ const hasStickyColumns = columns.some((column) => column.sticky);
12248
+ const stickyStyles = useScrollStyles({ containerRef, skip: !hasStickyColumns });
12126
12249
  const defaultSortedColumn = columns.find((c) => c.headerName === (defaultSort == null ? void 0 : defaultSort.headerName));
12127
12250
  const initialSortState = defaultSortedColumn ? { column: defaultSortedColumn, direction: (_a2 = defaultSort == null ? void 0 : defaultSort.direction) != null ? _a2 : "ascending" } : void 0;
12128
12251
  const [sort, updateSort] = useTableSort(
@@ -12130,17 +12253,20 @@ var DataTable = (_a) => {
12130
12253
  );
12131
12254
  const sortedRows = sortRowsBy(rows, sort);
12132
12255
  const amountOfColumns = columns.length + (menu ? 1 : 0);
12133
- const PaginationFooter = React74.useCallback(
12134
- ({ children }) => /* @__PURE__ */ React74.createElement("tfoot", null, /* @__PURE__ */ React74.createElement("tr", null, /* @__PURE__ */ React74.createElement("td", {
12256
+ const PaginationFooter = React75.useCallback(
12257
+ ({ children }) => /* @__PURE__ */ React75.createElement("tfoot", null, /* @__PURE__ */ React75.createElement("tr", null, /* @__PURE__ */ React75.createElement("td", {
12135
12258
  colSpan: amountOfColumns
12136
12259
  }, children))),
12137
12260
  [amountOfColumns]
12138
12261
  );
12139
- return /* @__PURE__ */ React74.createElement(Table2, {
12262
+ return /* @__PURE__ */ React75.createElement("div", {
12263
+ className: "relative w-full overflow-x-auto",
12264
+ ref: containerRef
12265
+ }, /* @__PURE__ */ React75.createElement(Table2, {
12140
12266
  ariaLabel,
12141
12267
  onNext,
12142
12268
  onPrev,
12143
- className: classNames(
12269
+ className: classNames8(
12144
12270
  "Aquarium-DataTable",
12145
12271
  tw({
12146
12272
  "whitespace-nowrap": noWrap,
@@ -12148,40 +12274,45 @@ var DataTable = (_a) => {
12148
12274
  "table-fixed": layout === "fixed"
12149
12275
  })
12150
12276
  )
12151
- }, /* @__PURE__ */ React74.createElement(Table2.Head, {
12277
+ }, /* @__PURE__ */ React75.createElement(Table2.Head, {
12152
12278
  sticky
12153
12279
  }, compact2([
12154
12280
  ...columns.map((column) => {
12155
- const content = column.headerTooltip && !column.headerInvisible ? /* @__PURE__ */ React74.createElement(Tooltip, {
12281
+ const content = column.headerTooltip && !column.headerInvisible ? /* @__PURE__ */ React75.createElement(Tooltip, {
12156
12282
  placement: column.headerTooltip.placement,
12157
12283
  content: column.headerTooltip.content
12158
12284
  }, column.headerName) : !column.headerInvisible && column.headerName;
12159
- const headerContentAndIcon = !column.headerInvisible && column.icon ? /* @__PURE__ */ React74.createElement(Box.Flex, {
12285
+ const headerContentAndIcon = !column.headerInvisible && column.icon ? /* @__PURE__ */ React75.createElement(Box.Flex, {
12160
12286
  flexDirection: "row",
12161
12287
  gap: "3",
12162
12288
  alignItems: "center"
12163
- }, /* @__PURE__ */ React74.createElement(InlineIcon, {
12289
+ }, /* @__PURE__ */ React75.createElement(InlineIcon, {
12164
12290
  icon: column.icon,
12165
12291
  height: "22",
12166
12292
  color: "default",
12167
12293
  "aria-hidden": true
12168
12294
  }), content) : content;
12169
- return columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React74.createElement(Table2.SortCell, __spreadValues({
12295
+ const cell = columnIsFieldColumn(column) && column.sortable || column.sort ? /* @__PURE__ */ React75.createElement(Table2.SortCell, __spreadValues({
12170
12296
  direction: sort && sort.column.headerName === column.headerName ? sort.direction : "none",
12171
12297
  onClick: () => updateSort(column),
12172
12298
  style: { width: column.width },
12173
12299
  "aria-label": column.headerInvisible ? column.headerName : void 0
12174
- }, cellProps(column)), headerContentAndIcon) : /* @__PURE__ */ React74.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
12300
+ }, cellProps(column)), headerContentAndIcon) : /* @__PURE__ */ React75.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
12175
12301
  style: { width: column.width },
12176
12302
  "aria-label": column.headerInvisible ? column.headerName : void 0
12177
12303
  }), headerContentAndIcon);
12304
+ return createAnimatedCell({
12305
+ cellElement: cell,
12306
+ stickyStyles,
12307
+ stickyColumn: cellProps(column).stickyColumn
12308
+ });
12178
12309
  }),
12179
- menu ? /* @__PURE__ */ React74.createElement(Table2.Cell, {
12310
+ menu ? /* @__PURE__ */ React75.createElement(Table2.Cell, {
12180
12311
  key: "__contextMenu",
12181
12312
  align: "right",
12182
12313
  "aria-label": menuAriaLabel
12183
12314
  }, menuHeaderName) : null
12184
- ])), /* @__PURE__ */ React74.createElement(List, __spreadProps(__spreadValues({
12315
+ ])), /* @__PURE__ */ React75.createElement(List, __spreadProps(__spreadValues({
12185
12316
  container: Table2.Body,
12186
12317
  paginationContainer: PaginationFooter
12187
12318
  }, rest), {
@@ -12189,15 +12320,21 @@ var DataTable = (_a) => {
12189
12320
  renderItem: (row, index) => {
12190
12321
  var _a3;
12191
12322
  const isRowDisabled = (_a3 = disabled == null ? void 0 : disabled(row, index, sortedRows)) != null ? _a3 : false;
12192
- return /* @__PURE__ */ React74.createElement(Table2.Row, {
12323
+ return /* @__PURE__ */ React75.createElement(Table2.Row, {
12193
12324
  key: row.id,
12194
12325
  disabled: isRowDisabled
12195
- }, /* @__PURE__ */ React74.createElement(List, {
12326
+ }, /* @__PURE__ */ React75.createElement(List, {
12196
12327
  items: columns,
12197
- renderItem: (column) => /* @__PURE__ */ React74.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), renderCell(column, row, index, sortedRows))
12328
+ renderItem: (column) => {
12329
+ return createAnimatedCell({
12330
+ cellElement: /* @__PURE__ */ React75.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), renderCell(column, row, index, sortedRows)),
12331
+ stickyStyles,
12332
+ stickyColumn: cellProps(column).stickyColumn
12333
+ });
12334
+ }
12198
12335
  }), renderRowMenu(row, index, { menu, menuAriaLabel, onAction, onMenuOpenChange }));
12199
12336
  }
12200
- })));
12337
+ }))));
12201
12338
  };
12202
12339
  var renderRowMenu = (row, index, {
12203
12340
  menu,
@@ -12207,13 +12344,13 @@ var renderRowMenu = (row, index, {
12207
12344
  }) => {
12208
12345
  if (menu) {
12209
12346
  const menuContent = isFunction4(menu) ? menu(row, index) : menu;
12210
- return /* @__PURE__ */ React74.createElement(Table2.Cell, {
12347
+ return /* @__PURE__ */ React75.createElement(Table2.Cell, {
12211
12348
  align: "right"
12212
- }, menuContent && /* @__PURE__ */ React74.createElement(DropdownMenu2, {
12349
+ }, menuContent && /* @__PURE__ */ React75.createElement(DropdownMenu2, {
12213
12350
  placement: defaultContextualMenuPlacement,
12214
12351
  onAction: (action) => onAction == null ? void 0 : onAction(action, row, index),
12215
12352
  onOpenChange: onMenuOpenChange
12216
- }, /* @__PURE__ */ React74.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React74.createElement(Button.Icon, {
12353
+ }, /* @__PURE__ */ React75.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React75.createElement(Button.Icon, {
12217
12354
  "aria-label": menuAriaLabel,
12218
12355
  icon: import_more3.default
12219
12356
  })), menuContent));
@@ -12226,14 +12363,14 @@ var renderCell = (column, row, index, rows) => {
12226
12363
  if (column.type === "status") {
12227
12364
  const status = column.status(row, index, rows);
12228
12365
  if (status) {
12229
- cellContent = /* @__PURE__ */ React74.createElement(StatusChip, __spreadValues({
12366
+ cellContent = /* @__PURE__ */ React75.createElement(StatusChip, __spreadValues({
12230
12367
  dense: true
12231
12368
  }, status));
12232
12369
  }
12233
12370
  } else if (column.type === "action") {
12234
12371
  const action = renameProperty("text", "children", column.action(row, index, rows));
12235
12372
  if (action) {
12236
- cellContent = /* @__PURE__ */ React74.createElement(Button.Secondary, __spreadValues({
12373
+ cellContent = /* @__PURE__ */ React75.createElement(Button.Secondary, __spreadValues({
12237
12374
  dense: true
12238
12375
  }, action));
12239
12376
  }
@@ -12242,19 +12379,19 @@ var renderCell = (column, row, index, rows) => {
12242
12379
  } else if (column.type === "item") {
12243
12380
  const item = column.item(row, index, rows);
12244
12381
  if (item) {
12245
- cellContent = /* @__PURE__ */ React74.createElement(Item2, __spreadValues({}, item));
12382
+ cellContent = /* @__PURE__ */ React75.createElement(Item2, __spreadValues({}, item));
12246
12383
  }
12247
12384
  } else if (column.formatter) {
12248
12385
  cellContent = column.formatter(row[column.field], row, index, rows);
12249
12386
  } else {
12250
12387
  cellContent = row[column.field];
12251
12388
  }
12252
- return column.tooltip ? /* @__PURE__ */ React74.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : cellContent;
12389
+ return column.tooltip ? /* @__PURE__ */ React75.createElement(Tooltip, __spreadValues({}, column.tooltip(row, index, rows)), cellContent) : cellContent;
12253
12390
  };
12254
12391
  DataTable.Skeleton = DataListSkeleton;
12255
12392
 
12256
12393
  // src/molecules/Dialog/Dialog.tsx
12257
- import React76 from "react";
12394
+ import React77 from "react";
12258
12395
  import { useDialog } from "@react-aria/dialog";
12259
12396
  import { Overlay as Overlay2, useModalOverlay } from "@react-aria/overlays";
12260
12397
  import { useId as useId9 } from "@react-aria/utils";
@@ -12281,7 +12418,7 @@ var DIALOG_ICONS_AND_COLORS = {
12281
12418
  };
12282
12419
 
12283
12420
  // src/atoms/Modal/Modal.tsx
12284
- import React75 from "react";
12421
+ import React76 from "react";
12285
12422
  var Modal = (_a) => {
12286
12423
  var _b = _a, {
12287
12424
  children,
@@ -12294,7 +12431,7 @@ var Modal = (_a) => {
12294
12431
  "className",
12295
12432
  "open"
12296
12433
  ]);
12297
- return open ? /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
12434
+ return open ? /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
12298
12435
  className: classNames(
12299
12436
  tw("inset-0 overflow-y-auto z-modal fixed"),
12300
12437
  {
@@ -12306,11 +12443,11 @@ var Modal = (_a) => {
12306
12443
  };
12307
12444
  Modal.BackDrop = (_a) => {
12308
12445
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
12309
- return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
12446
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
12310
12447
  className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-primary-intense opacity-60"), className)
12311
12448
  }));
12312
12449
  };
12313
- Modal.Dialog = React75.forwardRef(
12450
+ Modal.Dialog = React76.forwardRef(
12314
12451
  (_a, ref) => {
12315
12452
  var _b = _a, { kind = "dialog", children, className, size = "sm" } = _b, rest = __objRest(_b, ["kind", "children", "className", "size"]);
12316
12453
  const commonClasses = tw("bg-popover-content max-h-full flex flex-col");
@@ -12324,7 +12461,7 @@ Modal.Dialog = React75.forwardRef(
12324
12461
  "w-[560px]": size === "md",
12325
12462
  "w-[1080px]": size === "full"
12326
12463
  });
12327
- return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({
12464
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({
12328
12465
  ref,
12329
12466
  "aria-modal": "true"
12330
12467
  }, rest), {
@@ -12334,34 +12471,34 @@ Modal.Dialog = React75.forwardRef(
12334
12471
  );
12335
12472
  Modal.Header = (_a) => {
12336
12473
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12337
- return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
12474
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
12338
12475
  className: classNames(tw("pl-7 pr-[64px] py-6 gap-3 flex items-center"), className)
12339
12476
  }), children);
12340
12477
  };
12341
12478
  Modal.HeaderImage = (_a) => {
12342
12479
  var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
12343
12480
  const common = tw("h-[120px] min-h-[120px] w-full ");
12344
- return backgroundImage ? /* @__PURE__ */ React75.createElement("img", __spreadProps(__spreadValues({
12481
+ return backgroundImage ? /* @__PURE__ */ React76.createElement("img", __spreadProps(__spreadValues({
12345
12482
  "aria-hidden": true,
12346
12483
  src: backgroundImage != null ? backgroundImage : void 0
12347
12484
  }, rest), {
12348
12485
  className: classNames(common, tw("object-cover"), className)
12349
- })) : /* @__PURE__ */ React75.createElement("div", {
12486
+ })) : /* @__PURE__ */ React76.createElement("div", {
12350
12487
  className: classNames(common, tw("bg-default"), className)
12351
12488
  });
12352
12489
  };
12353
12490
  Modal.CloseButtonContainer = (_a) => {
12354
12491
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
12355
- return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
12492
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
12356
12493
  className: classNames(tw("absolute top-[24px] right-[28px]"), className)
12357
12494
  }));
12358
12495
  };
12359
12496
  Modal.Title = (_a) => {
12360
12497
  var _b = _a, { kind = "dialog", children, className } = _b, rest = __objRest(_b, ["kind", "children", "className"]);
12361
- return /* @__PURE__ */ React75.createElement(Typography, __spreadValues({
12498
+ return /* @__PURE__ */ React76.createElement(Typography, __spreadValues({
12362
12499
  htmlTag: "h2",
12363
12500
  variant: "subheading",
12364
- color: "grey-90",
12501
+ color: "intense",
12365
12502
  className: classNames(
12366
12503
  tw({
12367
12504
  "text-ellipsis overflow-x-hidden whitespace-nowrap": kind === "drawer"
@@ -12372,40 +12509,40 @@ Modal.Title = (_a) => {
12372
12509
  };
12373
12510
  Modal.Subtitle = (_a) => {
12374
12511
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
12375
- return /* @__PURE__ */ React75.createElement(Typography, __spreadValues({
12512
+ return /* @__PURE__ */ React76.createElement(Typography, __spreadValues({
12376
12513
  variant: "small",
12377
- color: "grey-60"
12514
+ color: "default"
12378
12515
  }, rest), children);
12379
12516
  };
12380
12517
  Modal.TitleContainer = (_a) => {
12381
12518
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12382
- return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
12519
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
12383
12520
  className: classNames(tw("flex flex-col grow"), className)
12384
12521
  }), children);
12385
12522
  };
12386
12523
  Modal.Body = (_a) => {
12387
12524
  var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
12388
- return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
12525
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
12389
12526
  className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
12390
12527
  style: __spreadValues({ maxHeight }, style)
12391
12528
  }), children);
12392
12529
  };
12393
12530
  Modal.Footer = (_a) => {
12394
12531
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12395
- return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
12532
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
12396
12533
  className: classNames(tw("px-7 py-6"), className)
12397
12534
  }), children);
12398
12535
  };
12399
12536
  Modal.Actions = (_a) => {
12400
12537
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
12401
- return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
12538
+ return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
12402
12539
  className: classNames(tw("flex gap-4 justify-end"), className)
12403
12540
  }), children);
12404
12541
  };
12405
12542
 
12406
12543
  // src/molecules/Dialog/Dialog.tsx
12407
12544
  var Dialog = (props) => {
12408
- const ref = React76.useRef(null);
12545
+ const ref = React77.useRef(null);
12409
12546
  const { open, onClose } = props;
12410
12547
  const state = useOverlayTriggerState2({ isOpen: open, onOpenChange: (isOpen) => !isOpen && (onClose == null ? void 0 : onClose()) });
12411
12548
  const { modalProps, underlayProps } = useModalOverlay(
@@ -12416,13 +12553,13 @@ var Dialog = (props) => {
12416
12553
  if (!state.isOpen) {
12417
12554
  return null;
12418
12555
  }
12419
- return /* @__PURE__ */ React76.createElement(Overlay2, null, /* @__PURE__ */ React76.createElement(Modal, {
12556
+ return /* @__PURE__ */ React77.createElement(Overlay2, null, /* @__PURE__ */ React77.createElement(Modal, {
12420
12557
  className: "Aquarium-Dialog",
12421
12558
  open: true
12422
- }, /* @__PURE__ */ React76.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React76.createElement(Modal.Dialog, __spreadValues({
12559
+ }, /* @__PURE__ */ React77.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React77.createElement(Modal.Dialog, __spreadValues({
12423
12560
  ref,
12424
12561
  size: "sm"
12425
- }, modalProps), /* @__PURE__ */ React76.createElement(DialogWrapper, __spreadValues({}, props)))));
12562
+ }, modalProps), /* @__PURE__ */ React77.createElement(DialogWrapper, __spreadValues({}, props)))));
12426
12563
  };
12427
12564
  var DialogWrapper = ({
12428
12565
  title,
@@ -12431,7 +12568,7 @@ var DialogWrapper = ({
12431
12568
  primaryAction,
12432
12569
  secondaryAction
12433
12570
  }) => {
12434
- const ref = React76.useRef(null);
12571
+ const ref = React77.useRef(null);
12435
12572
  const labelledBy = useId9();
12436
12573
  const describedBy = useId9();
12437
12574
  const { dialogProps } = useDialog(
@@ -12442,52 +12579,52 @@ var DialogWrapper = ({
12442
12579
  },
12443
12580
  ref
12444
12581
  );
12445
- return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({
12582
+ return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({
12446
12583
  ref
12447
12584
  }, dialogProps), {
12448
12585
  className: tw("outline-none")
12449
- }), /* @__PURE__ */ React76.createElement(Modal.Header, {
12586
+ }), /* @__PURE__ */ React77.createElement(Modal.Header, {
12450
12587
  className: tw("icon-stroke-2")
12451
- }, /* @__PURE__ */ React76.createElement(Icon, {
12588
+ }, /* @__PURE__ */ React77.createElement(Icon, {
12452
12589
  icon: DIALOG_ICONS_AND_COLORS[type].icon,
12453
12590
  color: DIALOG_ICONS_AND_COLORS[type].color,
12454
12591
  fontSize: 20
12455
- }), /* @__PURE__ */ React76.createElement(Modal.Title, {
12592
+ }), /* @__PURE__ */ React77.createElement(Modal.Title, {
12456
12593
  id: labelledBy,
12457
12594
  variant: "large",
12458
12595
  color: DIALOG_ICONS_AND_COLORS[type].color
12459
- }, title)), /* @__PURE__ */ React76.createElement(Modal.Body, {
12596
+ }, title)), /* @__PURE__ */ React77.createElement(Modal.Body, {
12460
12597
  id: describedBy
12461
- }, /* @__PURE__ */ React76.createElement(Typography2.Default, null, children)), /* @__PURE__ */ React76.createElement(Modal.Footer, null, /* @__PURE__ */ React76.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React76.createElement(Button.Ghost, __spreadValues({
12598
+ }, /* @__PURE__ */ React77.createElement(Typography2.Default, null, children)), /* @__PURE__ */ React77.createElement(Modal.Footer, null, /* @__PURE__ */ React77.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React77.createElement(Button.Ghost, __spreadValues({
12462
12599
  key: secondaryAction.text
12463
- }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React76.createElement(Button.Secondary, __spreadValues({
12600
+ }, omit8(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React77.createElement(Button.Secondary, __spreadValues({
12464
12601
  key: primaryAction.text
12465
12602
  }, omit8(primaryAction, "text")), primaryAction.text))));
12466
12603
  };
12467
12604
 
12468
12605
  // src/molecules/Drawer/Drawer.tsx
12469
- import React78 from "react";
12606
+ import React79 from "react";
12470
12607
  import { useOverlayTriggerState as useOverlayTriggerState3 } from "react-stately";
12471
12608
  import { useDialog as useDialog2 } from "@react-aria/dialog";
12472
12609
  import { Overlay as Overlay3, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
12473
12610
  import { useId as useId10 } from "@react-aria/utils";
12474
- import { animated as animated4, useSpring as useSpring3 } from "@react-spring/web";
12611
+ import { animated as animated5, useSpring as useSpring4 } from "@react-spring/web";
12475
12612
  import castArray3 from "lodash/castArray";
12476
12613
  import omit9 from "lodash/omit";
12477
12614
 
12478
12615
  // src/molecules/Tabs/Tabs.tsx
12479
- import React77, { useEffect as useEffect8, useLayoutEffect as useLayoutEffect2, useRef as useRef7, useState as useState10 } from "react";
12616
+ import React78, { useEffect as useEffect8, useLayoutEffect as useLayoutEffect2, useRef as useRef9, useState as useState11 } from "react";
12480
12617
  import isNumber5 from "lodash/isNumber";
12481
12618
  import kebabCase from "lodash/kebabCase";
12482
12619
  var import_chevronLeft4 = __toESM(require_chevronLeft());
12483
12620
  var import_chevronRight4 = __toESM(require_chevronRight());
12484
12621
  var import_warningSign4 = __toESM(require_warningSign());
12485
12622
  var isTabComponent = (c) => {
12486
- return React77.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
12623
+ return React78.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
12487
12624
  };
12488
- var Tab = React77.forwardRef(
12625
+ var Tab = React78.forwardRef(
12489
12626
  ({ className, id, title, children }, ref) => {
12490
- return /* @__PURE__ */ React77.createElement("div", {
12627
+ return /* @__PURE__ */ React78.createElement("div", {
12491
12628
  ref,
12492
12629
  id: `${id != null ? id : kebabCase(title)}-panel`,
12493
12630
  className,
@@ -12499,14 +12636,14 @@ var Tab = React77.forwardRef(
12499
12636
  );
12500
12637
  var TabContainer = (_a) => {
12501
12638
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
12502
- return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({}, rest), {
12639
+ return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({}, rest), {
12503
12640
  className: classNames("py-6 z-0", className)
12504
12641
  }), children);
12505
12642
  };
12506
12643
  var ModalTab = Tab;
12507
12644
  var ModalTabContainer = TabContainer;
12508
12645
  var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
12509
- const Tab2 = React77.forwardRef(
12646
+ const Tab2 = React78.forwardRef(
12510
12647
  (_a, ref) => {
12511
12648
  var _b = _a, {
12512
12649
  id,
@@ -12538,17 +12675,17 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
12538
12675
  const _id = id != null ? id : kebabCase(title);
12539
12676
  let statusIcon = void 0;
12540
12677
  if (status === "warning") {
12541
- statusIcon = /* @__PURE__ */ React77.createElement(InlineIcon, {
12678
+ statusIcon = /* @__PURE__ */ React78.createElement(InlineIcon, {
12542
12679
  icon: import_warningSign4.default,
12543
12680
  color: selected ? void 0 : "warning-default"
12544
12681
  });
12545
12682
  } else if (status === "error") {
12546
- statusIcon = /* @__PURE__ */ React77.createElement(InlineIcon, {
12683
+ statusIcon = /* @__PURE__ */ React78.createElement(InlineIcon, {
12547
12684
  icon: import_warningSign4.default,
12548
12685
  color: selected ? void 0 : "danger-default"
12549
12686
  });
12550
12687
  }
12551
- const tab = /* @__PURE__ */ React77.createElement(Component, __spreadValues({
12688
+ const tab = /* @__PURE__ */ React78.createElement(Component, __spreadValues({
12552
12689
  ref,
12553
12690
  id: `${_id}-tab`,
12554
12691
  onClick: () => !disabled && onSelected(value != null ? value : index),
@@ -12565,29 +12702,29 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
12565
12702
  "aria-selected": selected,
12566
12703
  "aria-controls": `${_id}-panel`,
12567
12704
  tabIndex: disabled ? void 0 : 0
12568
- }, rest), /* @__PURE__ */ React77.createElement(Typography2, {
12705
+ }, rest), /* @__PURE__ */ React78.createElement(Typography2, {
12569
12706
  htmlTag: "div",
12570
12707
  variant: "small-strong",
12571
- color: selected ? "primary-80" : disabled ? "grey-20" : "current",
12708
+ color: selected ? "primary-default" : disabled ? "default" : "current",
12572
12709
  className: tw("inline-flex items-center gap-3")
12573
- }, showNotification ? /* @__PURE__ */ React77.createElement(Badge.Notification, {
12710
+ }, showNotification ? /* @__PURE__ */ React78.createElement(Badge.Notification, {
12574
12711
  right: "-4px",
12575
12712
  top: "3px"
12576
- }, /* @__PURE__ */ React77.createElement("span", {
12713
+ }, /* @__PURE__ */ React78.createElement("span", {
12577
12714
  className: tw("whitespace-nowrap")
12578
- }, title)) : /* @__PURE__ */ React77.createElement("span", {
12715
+ }, title)) : /* @__PURE__ */ React78.createElement("span", {
12579
12716
  className: tw("whitespace-nowrap")
12580
- }, title), isNumber5(badge) && /* @__PURE__ */ React77.createElement(Typography2, {
12717
+ }, title), isNumber5(badge) && /* @__PURE__ */ React78.createElement(Typography2, {
12581
12718
  htmlTag: "span",
12582
12719
  variant: "small",
12583
- color: selected ? "primary-80" : "grey-5",
12720
+ color: selected ? "primary-intense" : "grey-5",
12584
12721
  className: "leading-none"
12585
- }, /* @__PURE__ */ React77.createElement(TabBadge, {
12722
+ }, /* @__PURE__ */ React78.createElement(TabBadge, {
12586
12723
  kind: "filled",
12587
12724
  value: badge,
12588
12725
  textClassname: classNames({ "text-white": selected, "text-muted": !selected })
12589
12726
  })), statusIcon));
12590
- return tooltip ? /* @__PURE__ */ React77.createElement(Tooltip, {
12727
+ return tooltip ? /* @__PURE__ */ React78.createElement(Tooltip, {
12591
12728
  content: tooltip
12592
12729
  }, tab) : tab;
12593
12730
  }
@@ -12601,20 +12738,20 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12601
12738
  const Tabs2 = (props) => {
12602
12739
  var _a, _b;
12603
12740
  const { className, value, defaultValue, onChange, children } = props;
12604
- const childArr = React77.Children.toArray(children);
12741
+ const childArr = React78.Children.toArray(children);
12605
12742
  const firstTab = childArr[0];
12606
12743
  const firstTabValue = isTabComponent(firstTab) ? firstTab.props.value : -1;
12607
- const [selected, setSelected] = useState10((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
12608
- const [leftCaret, showLeftCaret] = useState10(false);
12609
- const [rightCaret, showRightCaret] = useState10(false);
12610
- const parentRef = useRef7(null);
12611
- const containerRef = useRef7(null);
12612
- const tabsRef = useRef7(null);
12744
+ const [selected, setSelected] = useState11((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
12745
+ const [leftCaret, showLeftCaret] = useState11(false);
12746
+ const [rightCaret, showRightCaret] = useState11(false);
12747
+ const parentRef = useRef9(null);
12748
+ const containerRef = useRef9(null);
12749
+ const tabsRef = useRef9(null);
12613
12750
  const revealSelectedTab = ({ smooth }) => {
12614
12751
  var _a2, _b2;
12615
12752
  const container = containerRef.current;
12616
12753
  const tabs = tabsRef.current;
12617
- const values = React77.Children.map(
12754
+ const values = React78.Children.map(
12618
12755
  children,
12619
12756
  (tab, i) => {
12620
12757
  var _a3;
@@ -12655,7 +12792,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12655
12792
  updateCarets();
12656
12793
  setSelected(value);
12657
12794
  revealSelectedTab({ smooth: value !== selected });
12658
- }, [value, React77.Children.count(children)]);
12795
+ }, [value, React78.Children.count(children)]);
12659
12796
  useLayoutEffect2(() => {
12660
12797
  var _a2;
12661
12798
  updateCarets();
@@ -12719,27 +12856,27 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12719
12856
  const handleSelected = (key) => {
12720
12857
  (onChange != null ? onChange : setSelected)(key);
12721
12858
  };
12722
- React77.Children.forEach(children, (c) => {
12859
+ React78.Children.forEach(children, (c) => {
12723
12860
  if (c && !isTabComponent(c)) {
12724
12861
  throw new Error("<Tabs> can only have <Tabs.Tab> components as children");
12725
12862
  }
12726
12863
  });
12727
- return /* @__PURE__ */ React77.createElement("div", {
12864
+ return /* @__PURE__ */ React78.createElement("div", {
12728
12865
  ref: parentRef,
12729
12866
  className: classNames("Aquarium-Tabs", tw("h-full"), className)
12730
- }, /* @__PURE__ */ React77.createElement("div", {
12867
+ }, /* @__PURE__ */ React78.createElement("div", {
12731
12868
  className: tw("relative flex items-center border-b-2 border-default")
12732
- }, /* @__PURE__ */ React77.createElement("div", {
12869
+ }, /* @__PURE__ */ React78.createElement("div", {
12733
12870
  ref: containerRef,
12734
12871
  className: tw("overflow-y-auto scrollbar-hide mb-[-2px] h-auto")
12735
- }, /* @__PURE__ */ React77.createElement("div", {
12872
+ }, /* @__PURE__ */ React78.createElement("div", {
12736
12873
  ref: tabsRef,
12737
12874
  role: "tablist",
12738
12875
  "aria-label": "tabs",
12739
12876
  className: tw("inline-flex items-center cursor-pointer font-normal h-full")
12740
- }, React77.Children.map(
12877
+ }, React78.Children.map(
12741
12878
  children,
12742
- (tab, index) => tab ? /* @__PURE__ */ React77.createElement(TabItemComponent, __spreadProps(__spreadValues({
12879
+ (tab, index) => tab ? /* @__PURE__ */ React78.createElement(TabItemComponent, __spreadProps(__spreadValues({
12743
12880
  key: tab.props.value
12744
12881
  }, tab.props), {
12745
12882
  index,
@@ -12747,20 +12884,20 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12747
12884
  onKeyDown: handleKeyDown,
12748
12885
  onSelected: handleSelected
12749
12886
  })) : void 0
12750
- ))), leftCaret && /* @__PURE__ */ React77.createElement("div", {
12887
+ ))), leftCaret && /* @__PURE__ */ React78.createElement("div", {
12751
12888
  className: tw("absolute left-0 bg-gradient-to-r from-white via-white z-20 py-3 pr-4")
12752
- }, /* @__PURE__ */ React77.createElement("div", {
12889
+ }, /* @__PURE__ */ React78.createElement("div", {
12753
12890
  onClick: () => handleScrollToNext("left"),
12754
12891
  className: tw("hover:bg-muted p-2 leading-none cursor-pointer")
12755
- }, /* @__PURE__ */ React77.createElement(InlineIcon, {
12892
+ }, /* @__PURE__ */ React78.createElement(InlineIcon, {
12756
12893
  icon: import_chevronLeft4.default
12757
- }))), rightCaret && /* @__PURE__ */ React77.createElement("div", {
12894
+ }))), rightCaret && /* @__PURE__ */ React78.createElement("div", {
12758
12895
  onClick: () => handleScrollToNext("right"),
12759
12896
  className: tw("absolute right-0 bg-gradient-to-l from-white via-white z-20 py-3 pl-4")
12760
- }, /* @__PURE__ */ React77.createElement("div", {
12897
+ }, /* @__PURE__ */ React78.createElement("div", {
12761
12898
  onClick: () => handleScrollToNext("right"),
12762
12899
  className: tw("hover:bg-muted p-2 leading-none cursor-pointer")
12763
- }, /* @__PURE__ */ React77.createElement(InlineIcon, {
12900
+ }, /* @__PURE__ */ React78.createElement(InlineIcon, {
12764
12901
  icon: import_chevronRight4.default
12765
12902
  })))), renderChildren(children, selected, props));
12766
12903
  };
@@ -12768,15 +12905,15 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
12768
12905
  Tabs2.Tab = TabComponent;
12769
12906
  return Tabs2;
12770
12907
  };
12771
- var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React77.createElement(TabContainer, null, children.find(
12908
+ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React78.createElement(TabContainer, null, children.find(
12772
12909
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
12773
12910
  )));
12774
12911
 
12775
12912
  // src/molecules/Drawer/Drawer.tsx
12776
12913
  var import_cross6 = __toESM(require_cross());
12777
12914
  var import_more4 = __toESM(require_more());
12778
- var AnimatedBackDrop = animated4(Modal.BackDrop);
12779
- var AnimatedDialog = animated4(Modal.Dialog);
12915
+ var AnimatedBackDrop = animated5(Modal.BackDrop);
12916
+ var AnimatedDialog = animated5(Modal.Dialog);
12780
12917
  var WIDTHS = {
12781
12918
  sm: 360,
12782
12919
  md: 560,
@@ -12785,8 +12922,8 @@ var WIDTHS = {
12785
12922
  var Drawer = (_a) => {
12786
12923
  var _b = _a, { open, closeOnEsc = true } = _b, props = __objRest(_b, ["open", "closeOnEsc"]);
12787
12924
  const { onClose, size = "sm", portalContainer } = props;
12788
- const [hidden, setHidden] = React78.useState(!open);
12789
- const ref = React78.useRef(null);
12925
+ const [hidden, setHidden] = React79.useState(!open);
12926
+ const ref = React79.useRef(null);
12790
12927
  const state = useOverlayTriggerState3({ isOpen: !hidden, onOpenChange: (isOpen) => !isOpen && onClose() });
12791
12928
  if (open && hidden) {
12792
12929
  setHidden(!open);
@@ -12796,7 +12933,7 @@ var Drawer = (_a) => {
12796
12933
  state,
12797
12934
  ref
12798
12935
  );
12799
- const { opacity, right } = useSpring3({
12936
+ const { opacity, right } = useSpring4({
12800
12937
  right: open ? "0px" : `-${WIDTHS[size]}px`,
12801
12938
  opacity: open ? 0.6 : 0,
12802
12939
  config: {
@@ -12813,21 +12950,21 @@ var Drawer = (_a) => {
12813
12950
  if (!state.isOpen) {
12814
12951
  return null;
12815
12952
  }
12816
- return /* @__PURE__ */ React78.createElement(Overlay3, {
12953
+ return /* @__PURE__ */ React79.createElement(Overlay3, {
12817
12954
  portalContainer
12818
- }, /* @__PURE__ */ React78.createElement(Modal, {
12955
+ }, /* @__PURE__ */ React79.createElement(Modal, {
12819
12956
  kind: "drawer",
12820
12957
  className: "Aquarium-Drawer overflow-x-hidden",
12821
12958
  open: true
12822
- }, /* @__PURE__ */ React78.createElement(AnimatedBackDrop, __spreadValues({
12959
+ }, /* @__PURE__ */ React79.createElement(AnimatedBackDrop, __spreadValues({
12823
12960
  style: { opacity }
12824
- }, underlayProps)), /* @__PURE__ */ React78.createElement(DrawerWrapper, __spreadProps(__spreadValues(__spreadValues({
12961
+ }, underlayProps)), /* @__PURE__ */ React79.createElement(DrawerWrapper, __spreadProps(__spreadValues(__spreadValues({
12825
12962
  ref
12826
12963
  }, props), modalProps), {
12827
12964
  spring: { right }
12828
12965
  }))));
12829
12966
  };
12830
- var DrawerWrapper = React78.forwardRef(
12967
+ var DrawerWrapper = React79.forwardRef(
12831
12968
  (_a, ref) => {
12832
12969
  var _b = _a, {
12833
12970
  title,
@@ -12864,76 +13001,76 @@ var DrawerWrapper = React78.forwardRef(
12864
13001
  ref
12865
13002
  );
12866
13003
  const dialogSize = size === "lg" ? "full" : size;
12867
- const childElements = React78.Children.toArray(children).filter(React78.isValidElement);
13004
+ const childElements = React79.Children.toArray(children).filter(React79.isValidElement);
12868
13005
  const onlyChild = childElements.length === 1 ? childElements[0] : null;
12869
13006
  const hasTabs = isComponentType(onlyChild, Tabs);
12870
- return /* @__PURE__ */ React78.createElement(AnimatedDialog, __spreadProps(__spreadValues(__spreadValues({
13007
+ return /* @__PURE__ */ React79.createElement(AnimatedDialog, __spreadProps(__spreadValues(__spreadValues({
12871
13008
  ref,
12872
13009
  kind: "drawer",
12873
13010
  "aria-modal": "true",
12874
13011
  size: dialogSize
12875
13012
  }, props), dialogProps), {
12876
13013
  style: { position: "fixed", right: spring.right }
12877
- }), /* @__PURE__ */ React78.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React78.createElement(Button.Icon, {
13014
+ }), /* @__PURE__ */ React79.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React79.createElement(Button.Icon, {
12878
13015
  "aria-label": "Close",
12879
13016
  icon: import_cross6.default,
12880
13017
  onClick: onClose
12881
- })), /* @__PURE__ */ React78.createElement(Modal.Header, {
13018
+ })), /* @__PURE__ */ React79.createElement(Modal.Header, {
12882
13019
  className: tw({ "pb-3": hasTabs })
12883
- }, /* @__PURE__ */ React78.createElement(Modal.Title, {
13020
+ }, /* @__PURE__ */ React79.createElement(Modal.Title, {
12884
13021
  id: labelledBy,
12885
13022
  kind: "drawer"
12886
- }, title)), hasTabs ? /* @__PURE__ */ React78.createElement(DrawerTabs, __spreadProps(__spreadValues({}, onlyChild.props), {
13023
+ }, title)), hasTabs ? /* @__PURE__ */ React79.createElement(DrawerTabs, __spreadProps(__spreadValues({}, onlyChild.props), {
12887
13024
  className: tw("[&>div:first-child]:px-5 grow flex flex-col overflow-y-auto")
12888
- })) : /* @__PURE__ */ React78.createElement(Modal.Body, {
13025
+ })) : /* @__PURE__ */ React79.createElement(Modal.Body, {
12889
13026
  id: describedBy,
12890
13027
  tabIndex: 0,
12891
13028
  noFooter: !(secondaryActions || primaryAction)
12892
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React78.createElement(Modal.Footer, null, /* @__PURE__ */ React78.createElement(Modal.Actions, {
13029
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React79.createElement(Modal.Footer, null, /* @__PURE__ */ React79.createElement(Modal.Actions, {
12893
13030
  className: size === "sm" ? tw("flex-col") : void 0
12894
- }, size !== "sm" && menu && /* @__PURE__ */ React78.createElement(Box.Flex, {
13031
+ }, size !== "sm" && menu && /* @__PURE__ */ React79.createElement(Box.Flex, {
12895
13032
  alignItems: "center"
12896
- }, /* @__PURE__ */ React78.createElement(DropdownMenu2, {
13033
+ }, /* @__PURE__ */ React79.createElement(DropdownMenu2, {
12897
13034
  onAction: (action) => onAction == null ? void 0 : onAction(action),
12898
13035
  onOpenChange: onMenuOpenChange
12899
- }, /* @__PURE__ */ React78.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React78.createElement(Button.Icon, {
13036
+ }, /* @__PURE__ */ React79.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React79.createElement(Button.Icon, {
12900
13037
  "aria-label": (_a2 = menuAriaLabel != null ? menuAriaLabel : menuLabel) != null ? _a2 : "Context menu",
12901
13038
  icon: import_more4.default
12902
13039
  })), menu)), secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_b2) => {
12903
13040
  var _c = _b2, { text } = _c, action = __objRest(_c, ["text"]);
12904
- return /* @__PURE__ */ React78.createElement(Button.Secondary, __spreadValues({
13041
+ return /* @__PURE__ */ React79.createElement(Button.Secondary, __spreadValues({
12905
13042
  key: text
12906
13043
  }, action), text);
12907
- }), primaryAction && /* @__PURE__ */ React78.createElement(Button.Primary, __spreadValues({
13044
+ }), primaryAction && /* @__PURE__ */ React79.createElement(Button.Primary, __spreadValues({
12908
13045
  key: primaryAction.text
12909
13046
  }, omit9(primaryAction, "text")), primaryAction.text))));
12910
13047
  }
12911
13048
  );
12912
- var DrawerTabs = createTabsComponent(ModalTab, TabItem, "DrawerTabs", (children, selected) => /* @__PURE__ */ React78.createElement(Modal.Body, {
13049
+ var DrawerTabs = createTabsComponent(ModalTab, TabItem, "DrawerTabs", (children, selected) => /* @__PURE__ */ React79.createElement(Modal.Body, {
12913
13050
  className: tw("h-full")
12914
- }, /* @__PURE__ */ React78.createElement(ModalTabContainer, null, children.find(
13051
+ }, /* @__PURE__ */ React79.createElement(ModalTabContainer, null, children.find(
12915
13052
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
12916
13053
  ))));
12917
13054
 
12918
13055
  // src/molecules/Dropdown/Dropdown.tsx
12919
- import React81 from "react";
13056
+ import React82 from "react";
12920
13057
 
12921
13058
  // src/molecules/Popover/Popover.tsx
12922
- import React80, { useRef as useRef8 } from "react";
13059
+ import React81, { useRef as useRef10 } from "react";
12923
13060
  import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
12924
13061
  import { useOverlayTrigger } from "@react-aria/overlays";
12925
13062
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
12926
13063
  import { useOverlayTriggerState as useOverlayTriggerState4 } from "@react-stately/overlays";
12927
- import classNames8 from "classnames";
13064
+ import classNames9 from "classnames";
12928
13065
  import omit10 from "lodash/omit";
12929
13066
 
12930
13067
  // src/molecules/Popover/Dialog.tsx
12931
- import React79 from "react";
13068
+ import React80 from "react";
12932
13069
  import { useDialog as useDialog3 } from "@react-aria/dialog";
12933
13070
  var Dialog2 = ({ children }) => {
12934
- const ref = React79.useRef(null);
13071
+ const ref = React80.useRef(null);
12935
13072
  const { dialogProps } = useDialog3({}, ref);
12936
- return /* @__PURE__ */ React79.createElement("div", __spreadProps(__spreadValues({
13073
+ return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({
12937
13074
  ref
12938
13075
  }, dialogProps), {
12939
13076
  className: tw("outline-none")
@@ -12964,36 +13101,36 @@ var Popover2 = (props) => {
12964
13101
  crossOffset,
12965
13102
  shouldFlip
12966
13103
  } = props;
12967
- const triggerRef = useRef8(null);
13104
+ const triggerRef = useRef10(null);
12968
13105
  const state = useOverlayTriggerState4(props);
12969
13106
  const { triggerProps, overlayProps } = useOverlayTrigger({ type: type != null ? type : "dialog" }, state, triggerRef);
12970
- return /* @__PURE__ */ React80.createElement(PopoverContext.Provider, {
13107
+ return /* @__PURE__ */ React81.createElement(PopoverContext.Provider, {
12971
13108
  value: {
12972
13109
  state
12973
13110
  }
12974
- }, React80.Children.map(props.children, (child) => {
13111
+ }, React81.Children.map(props.children, (child) => {
12975
13112
  if (isComponentType(child, Popover2.Trigger)) {
12976
- return /* @__PURE__ */ React80.createElement(PressResponder2, __spreadValues({
13113
+ return /* @__PURE__ */ React81.createElement(PressResponder2, __spreadValues({
12977
13114
  ref: triggerRef
12978
- }, omit10(triggerProps, "aria-expanded")), /* @__PURE__ */ React80.createElement(PopoverTriggerWrapper, {
13115
+ }, omit10(triggerProps, "aria-expanded")), /* @__PURE__ */ React81.createElement(PopoverTriggerWrapper, {
12979
13116
  "data-testid": props["data-testid"],
12980
13117
  "aria-controls": id,
12981
13118
  "aria-expanded": triggerProps["aria-expanded"]
12982
13119
  }, child.props.children));
12983
13120
  }
12984
13121
  if (isComponentType(child, Popover2.Panel)) {
12985
- return state.isOpen && /* @__PURE__ */ React80.createElement(PopoverOverlay, __spreadValues({
13122
+ return state.isOpen && /* @__PURE__ */ React81.createElement(PopoverOverlay, __spreadValues({
12986
13123
  triggerRef: targetRef != null ? targetRef : triggerRef,
12987
13124
  state,
12988
13125
  placement,
12989
13126
  isNonModal: !containFocus,
12990
13127
  autoFocus: !containFocus,
12991
13128
  isKeyboardDismissDisabled,
12992
- className: classNames8("Aquarium-Popover", child.props.className),
13129
+ className: classNames9("Aquarium-Popover", child.props.className),
12993
13130
  offset,
12994
13131
  crossOffset,
12995
13132
  shouldFlip
12996
- }, overlayProps), containFocus ? /* @__PURE__ */ React80.createElement(Dialog2, null, child.props.children) : child.props.children);
13133
+ }, overlayProps), containFocus ? /* @__PURE__ */ React81.createElement(Dialog2, null, child.props.children) : child.props.children);
12997
13134
  }
12998
13135
  throw new Error("Invalid children element type");
12999
13136
  }));
@@ -13012,7 +13149,7 @@ var asPopoverButton = (Component, displayName) => {
13012
13149
  state.close();
13013
13150
  onClick == null ? void 0 : onClick(e);
13014
13151
  };
13015
- return /* @__PURE__ */ React80.createElement(Component, __spreadProps(__spreadValues({}, props), {
13152
+ return /* @__PURE__ */ React81.createElement(Component, __spreadProps(__spreadValues({}, props), {
13016
13153
  onClick: handleClick
13017
13154
  }));
13018
13155
  };
@@ -13024,10 +13161,10 @@ Popover2.Button = PopoverButton;
13024
13161
  var PopoverTriggerWrapper = (_a) => {
13025
13162
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
13026
13163
  var _a2;
13027
- const ref = useRef8(null);
13028
- const trigger = React80.Children.only(children);
13164
+ const ref = useRef10(null);
13165
+ const trigger = React81.Children.only(children);
13029
13166
  const { pressProps } = usePress2(__spreadProps(__spreadValues({}, rest), { ref }));
13030
- return React80.cloneElement(trigger, __spreadProps(__spreadValues({
13167
+ return React81.cloneElement(trigger, __spreadProps(__spreadValues({
13031
13168
  "ref": ref
13032
13169
  }, mergeProps3(pressProps, trigger.props)), {
13033
13170
  "aria-controls": (_a2 = rest["aria-controls"]) != null ? _a2 : pressProps["aria-controls"]
@@ -13036,10 +13173,10 @@ var PopoverTriggerWrapper = (_a) => {
13036
13173
 
13037
13174
  // src/molecules/Dropdown/Dropdown.tsx
13038
13175
  var Dropdown = ({ children, content, placement = "bottom-left" }) => {
13039
- return /* @__PURE__ */ React81.createElement(Popover2, {
13176
+ return /* @__PURE__ */ React82.createElement(Popover2, {
13040
13177
  type: "menu",
13041
13178
  placement
13042
- }, /* @__PURE__ */ React81.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React81.createElement(Popover2.Panel, {
13179
+ }, /* @__PURE__ */ React82.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React82.createElement(Popover2.Panel, {
13043
13180
  className: "Aquarium-Dropdown"
13044
13181
  }, content));
13045
13182
  };
@@ -13050,26 +13187,26 @@ var DropdownMenu3 = ({
13050
13187
  triggerId,
13051
13188
  setClose = () => void 0
13052
13189
  }) => {
13053
- const menuRef = React81.useRef(null);
13054
- React81.useEffect(() => {
13190
+ const menuRef = React82.useRef(null);
13191
+ React82.useEffect(() => {
13055
13192
  const id = setTimeout(() => {
13056
13193
  var _a, _b, _c;
13057
13194
  return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
13058
13195
  });
13059
13196
  return () => clearTimeout(id);
13060
13197
  }, [menuRef.current]);
13061
- return /* @__PURE__ */ React81.createElement("div", {
13198
+ return /* @__PURE__ */ React82.createElement("div", {
13062
13199
  style: { minWidth: "250px" },
13063
13200
  className: tw("py-3 bg-popover-content")
13064
- }, !!title && /* @__PURE__ */ React81.createElement("div", {
13201
+ }, !!title && /* @__PURE__ */ React82.createElement("div", {
13065
13202
  className: tw("px-4 py-4 text-left text-intense typography-default-strong")
13066
- }, title), /* @__PURE__ */ React81.createElement("ol", {
13203
+ }, title), /* @__PURE__ */ React82.createElement("ol", {
13067
13204
  role: "menu",
13068
13205
  ref: menuRef,
13069
13206
  id: contentId,
13070
13207
  "aria-labelledby": triggerId
13071
- }, React81.Children.map(children, (child) => {
13072
- return React81.cloneElement(child, { setClose });
13208
+ }, React82.Children.map(children, (child) => {
13209
+ return React82.cloneElement(child, { setClose });
13073
13210
  })));
13074
13211
  };
13075
13212
  var DropdownItem = (_a) => {
@@ -13124,10 +13261,10 @@ var DropdownItem = (_a) => {
13124
13261
  handleSelect();
13125
13262
  }
13126
13263
  };
13127
- const itemContent = /* @__PURE__ */ React81.createElement("div", {
13264
+ const itemContent = /* @__PURE__ */ React82.createElement("div", {
13128
13265
  className: tw("py-3 px-4")
13129
13266
  }, children);
13130
- return /* @__PURE__ */ React81.createElement("li", __spreadProps(__spreadValues({
13267
+ return /* @__PURE__ */ React82.createElement("li", __spreadProps(__spreadValues({
13131
13268
  role: "menuitem",
13132
13269
  tabIndex: -1,
13133
13270
  onClick: handleClick,
@@ -13138,11 +13275,11 @@ var DropdownItem = (_a) => {
13138
13275
  "text-inactive cursor-not-allowed": disabled,
13139
13276
  "text-primary-default hover:text-primary-intense": color === "danger" && !disabled
13140
13277
  })
13141
- }), tooltip ? /* @__PURE__ */ React81.createElement(Tooltip, {
13278
+ }), tooltip ? /* @__PURE__ */ React82.createElement(Tooltip, {
13142
13279
  content: tooltip,
13143
13280
  placement: tooltipPlacement,
13144
13281
  inline: false
13145
- }, /* @__PURE__ */ React81.createElement("div", {
13282
+ }, /* @__PURE__ */ React82.createElement("div", {
13146
13283
  tabIndex: 0,
13147
13284
  className: tw("grow")
13148
13285
  }, itemContent)) : itemContent);
@@ -13151,7 +13288,7 @@ Dropdown.Menu = DropdownMenu3;
13151
13288
  Dropdown.Item = DropdownItem;
13152
13289
 
13153
13290
  // src/molecules/EmptyState/EmptyState.tsx
13154
- import React82 from "react";
13291
+ import React83 from "react";
13155
13292
  var EmptyStateLayout = /* @__PURE__ */ ((EmptyStateLayout2) => {
13156
13293
  EmptyStateLayout2["Vertical"] = "vertical";
13157
13294
  EmptyStateLayout2["Horizontal"] = "horizontal";
@@ -13208,7 +13345,7 @@ var EmptyState = ({
13208
13345
  fullHeight = isVerticalLayout(layout) ? true : false
13209
13346
  }) => {
13210
13347
  const template = layoutStyle(layout);
13211
- return /* @__PURE__ */ React82.createElement(Box, {
13348
+ return /* @__PURE__ */ React83.createElement(Box, {
13212
13349
  className: classNames(
13213
13350
  "Aquarium-EmptyState",
13214
13351
  tw("rounded p-[56px]", {
@@ -13220,40 +13357,40 @@ var EmptyState = ({
13220
13357
  })
13221
13358
  ),
13222
13359
  backgroundColor: "transparent",
13223
- borderColor: "grey-10"
13224
- }, /* @__PURE__ */ React82.createElement(Box.Flex, {
13360
+ borderColor: "default"
13361
+ }, /* @__PURE__ */ React83.createElement(Box.Flex, {
13225
13362
  style: { gap: "56px" },
13226
13363
  flexDirection: template.layout,
13227
13364
  justifyContent: template.justifyContent,
13228
13365
  alignItems: template.layout === "row" ? "center" : template.alignItems,
13229
13366
  height: fullHeight ? "full" : void 0
13230
- }, image && /* @__PURE__ */ React82.createElement("img", {
13367
+ }, image && /* @__PURE__ */ React83.createElement("img", {
13231
13368
  src: image,
13232
13369
  alt: imageAlt,
13233
13370
  style: { width: imageWidth ? `${imageWidth}px` : void 0, height: "auto" }
13234
- }), /* @__PURE__ */ React82.createElement(Box.Flex, {
13371
+ }), /* @__PURE__ */ React83.createElement(Box.Flex, {
13235
13372
  flexDirection: "column",
13236
13373
  justifyContent: template.justifyContent,
13237
13374
  alignItems: template.alignItems
13238
- }, /* @__PURE__ */ React82.createElement(Typography2.Heading, {
13375
+ }, /* @__PURE__ */ React83.createElement(Typography2.Heading, {
13239
13376
  htmlTag: "h2"
13240
- }, title), (description || children) && /* @__PURE__ */ React82.createElement(Box, {
13377
+ }, title), (description || children) && /* @__PURE__ */ React83.createElement(Box, {
13241
13378
  marginTop: "5"
13242
- }, /* @__PURE__ */ React82.createElement(Typography2.Default, null, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React82.createElement(Box.Flex, {
13379
+ }, /* @__PURE__ */ React83.createElement(Typography2.Default, null, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React83.createElement(Box.Flex, {
13243
13380
  marginTop: "7",
13244
13381
  gap: "4",
13245
13382
  justifyContent: "center",
13246
13383
  alignItems: "center",
13247
13384
  flexWrap: "wrap"
13248
- }, primaryAction && renderAction({ kind: "primary", action: primaryAction }), secondaryAction && renderAction({ kind: "secondary", action: secondaryAction })), footer && /* @__PURE__ */ React82.createElement(Box, {
13385
+ }, primaryAction && renderAction({ kind: "primary", action: primaryAction }), secondaryAction && renderAction({ kind: "secondary", action: secondaryAction })), footer && /* @__PURE__ */ React83.createElement(Box, {
13249
13386
  marginTop: "5"
13250
- }, /* @__PURE__ */ React82.createElement(Typography2.Small, {
13251
- color: "grey-60"
13387
+ }, /* @__PURE__ */ React83.createElement(Typography2.Small, {
13388
+ color: "default"
13252
13389
  }, footer)))));
13253
13390
  };
13254
13391
 
13255
13392
  // src/molecules/Flexbox/FlexboxItem.tsx
13256
- import React83 from "react";
13393
+ import React84 from "react";
13257
13394
  var FlexboxItem = Tailwindify(
13258
13395
  ({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
13259
13396
  const hookStyle = useStyle({
@@ -13265,7 +13402,7 @@ var FlexboxItem = Tailwindify(
13265
13402
  alignSelf
13266
13403
  });
13267
13404
  const HtmlElement = htmlTag;
13268
- return /* @__PURE__ */ React83.createElement(HtmlElement, {
13405
+ return /* @__PURE__ */ React84.createElement(HtmlElement, {
13269
13406
  style: __spreadValues(__spreadValues({}, hookStyle), style),
13270
13407
  className
13271
13408
  }, children);
@@ -13273,7 +13410,7 @@ var FlexboxItem = Tailwindify(
13273
13410
  );
13274
13411
 
13275
13412
  // src/molecules/Grid/GridItem.tsx
13276
- import React84 from "react";
13413
+ import React85 from "react";
13277
13414
  var GridItem2 = Tailwindify(
13278
13415
  ({
13279
13416
  htmlTag = "div",
@@ -13304,7 +13441,7 @@ var GridItem2 = Tailwindify(
13304
13441
  gridRowEnd: rowEnd
13305
13442
  });
13306
13443
  const HtmlElement = htmlTag;
13307
- return /* @__PURE__ */ React84.createElement(HtmlElement, {
13444
+ return /* @__PURE__ */ React85.createElement(HtmlElement, {
13308
13445
  style: __spreadValues(__spreadValues({}, hookStyle), style),
13309
13446
  className
13310
13447
  }, children);
@@ -13312,7 +13449,7 @@ var GridItem2 = Tailwindify(
13312
13449
  );
13313
13450
 
13314
13451
  // src/molecules/LineClamp/LineClamp.tsx
13315
- import React85 from "react";
13452
+ import React86 from "react";
13316
13453
  var LineClamp2 = ({
13317
13454
  lines,
13318
13455
  children,
@@ -13321,10 +13458,10 @@ var LineClamp2 = ({
13321
13458
  collapseLabel,
13322
13459
  onClampedChange
13323
13460
  }) => {
13324
- const ref = React85.useRef(null);
13325
- const [clamped, setClamped] = React85.useState(true);
13326
- const [isClampingEnabled, setClampingEnabled] = React85.useState(false);
13327
- React85.useEffect(() => {
13461
+ const ref = React86.useRef(null);
13462
+ const [clamped, setClamped] = React86.useState(true);
13463
+ const [isClampingEnabled, setClampingEnabled] = React86.useState(false);
13464
+ React86.useEffect(() => {
13328
13465
  var _a, _b;
13329
13466
  const el = ref.current;
13330
13467
  setClampingEnabled(((_a = el == null ? void 0 : el.scrollHeight) != null ? _a : 0) > ((_b = el == null ? void 0 : el.clientHeight) != null ? _b : 0));
@@ -13333,28 +13470,28 @@ var LineClamp2 = ({
13333
13470
  setClamped(!clamped);
13334
13471
  onClampedChange == null ? void 0 : onClampedChange(!clamped);
13335
13472
  };
13336
- return /* @__PURE__ */ React85.createElement("div", {
13473
+ return /* @__PURE__ */ React86.createElement("div", {
13337
13474
  className: "Aquarium-LineClamp"
13338
- }, /* @__PURE__ */ React85.createElement(LineClamp, {
13475
+ }, /* @__PURE__ */ React86.createElement(LineClamp, {
13339
13476
  ref,
13340
13477
  lines,
13341
13478
  clamped,
13342
13479
  wordBreak
13343
- }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React85.createElement(Button.Ghost, {
13480
+ }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React86.createElement(Button.Ghost, {
13344
13481
  dense: true,
13345
13482
  onClick: handleClampedChange
13346
13483
  }, clamped ? expandLabel : collapseLabel));
13347
13484
  };
13348
13485
 
13349
13486
  // src/molecules/Link/Link.tsx
13350
- import React87 from "react";
13351
- import classNames9 from "classnames";
13487
+ import React88 from "react";
13488
+ import classNames10 from "classnames";
13352
13489
 
13353
13490
  // src/atoms/Link/Link.tsx
13354
- import React86 from "react";
13491
+ import React87 from "react";
13355
13492
  var Link = (_a) => {
13356
13493
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
13357
- return /* @__PURE__ */ React86.createElement("a", __spreadValues({
13494
+ return /* @__PURE__ */ React87.createElement("a", __spreadValues({
13358
13495
  className: classNames(className, linkStyle)
13359
13496
  }, props), children);
13360
13497
  };
@@ -13362,27 +13499,27 @@ var Link = (_a) => {
13362
13499
  // src/molecules/Link/Link.tsx
13363
13500
  var Link2 = (_a) => {
13364
13501
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
13365
- return /* @__PURE__ */ React87.createElement(Link, __spreadValues({
13366
- className: classNames9("Aquarium-Link", className)
13502
+ return /* @__PURE__ */ React88.createElement(Link, __spreadValues({
13503
+ className: classNames10("Aquarium-Link", className)
13367
13504
  }, props));
13368
13505
  };
13369
13506
 
13370
13507
  // src/molecules/List/useStaticInfiniteList.ts
13371
- import React88 from "react";
13508
+ import React89 from "react";
13372
13509
  var useStaticInfiniteList = ({
13373
13510
  items,
13374
13511
  pageSize,
13375
13512
  autoReset = true
13376
13513
  }) => {
13377
- const [currentPage, setCurrentPage] = React88.useState(1);
13514
+ const [currentPage, setCurrentPage] = React89.useState(1);
13378
13515
  const numberOfVisible = currentPage * pageSize;
13379
- const next = React88.useCallback(() => {
13516
+ const next = React89.useCallback(() => {
13380
13517
  setCurrentPage((page) => page + 1);
13381
13518
  }, [setCurrentPage]);
13382
- const reset = React88.useCallback(() => {
13519
+ const reset = React89.useCallback(() => {
13383
13520
  setCurrentPage(1);
13384
13521
  }, [setCurrentPage]);
13385
- React88.useEffect(() => {
13522
+ React89.useEffect(() => {
13386
13523
  if (autoReset) {
13387
13524
  setCurrentPage(1);
13388
13525
  }
@@ -13397,17 +13534,17 @@ var useStaticInfiniteList = ({
13397
13534
  };
13398
13535
 
13399
13536
  // src/molecules/ListItem/ListItem.tsx
13400
- import React89 from "react";
13537
+ import React90 from "react";
13401
13538
  var ListItem = ({ name, icon, active = false }) => {
13402
- return /* @__PURE__ */ React89.createElement(Box.Flex, {
13539
+ return /* @__PURE__ */ React90.createElement(Box.Flex, {
13403
13540
  className: "Aquarium-ListItem",
13404
13541
  alignItems: "center"
13405
- }, /* @__PURE__ */ React89.createElement(Typography2, {
13542
+ }, /* @__PURE__ */ React90.createElement(Typography2, {
13406
13543
  variant: active ? "small-strong" : "small",
13407
- color: "grey-70",
13544
+ color: "default",
13408
13545
  htmlTag: "span",
13409
13546
  className: `px-4 py-2 rounded-full ${active ? "bg-default" : "hover:bg-muted"}`
13410
- }, /* @__PURE__ */ React89.createElement("img", {
13547
+ }, /* @__PURE__ */ React90.createElement("img", {
13411
13548
  src: icon,
13412
13549
  alt: "",
13413
13550
  className: "inline mr-4",
@@ -13417,7 +13554,7 @@ var ListItem = ({ name, icon, active = false }) => {
13417
13554
  };
13418
13555
 
13419
13556
  // src/molecules/Modal/Modal.tsx
13420
- import React90 from "react";
13557
+ import React91 from "react";
13421
13558
  import { useDialog as useDialog4 } from "@react-aria/dialog";
13422
13559
  import { Overlay as Overlay4, useModalOverlay as useModalOverlay3 } from "@react-aria/overlays";
13423
13560
  import { useId as useId11 } from "@react-aria/utils";
@@ -13428,7 +13565,7 @@ var import_cross7 = __toESM(require_cross());
13428
13565
  var Modal2 = (_a) => {
13429
13566
  var _b = _a, { closeOnEsc = true } = _b, props = __objRest(_b, ["closeOnEsc"]);
13430
13567
  const { open, onClose, size, portalContainer } = props;
13431
- const ref = React90.useRef(null);
13568
+ const ref = React91.useRef(null);
13432
13569
  const state = useOverlayTriggerState5({ isOpen: open, onOpenChange: (isOpen) => !isOpen && onClose() });
13433
13570
  const { modalProps, underlayProps } = useModalOverlay3(
13434
13571
  { isDismissable: false, isKeyboardDismissDisabled: !closeOnEsc },
@@ -13438,17 +13575,17 @@ var Modal2 = (_a) => {
13438
13575
  if (!state.isOpen) {
13439
13576
  return null;
13440
13577
  }
13441
- return /* @__PURE__ */ React90.createElement(Overlay4, {
13578
+ return /* @__PURE__ */ React91.createElement(Overlay4, {
13442
13579
  portalContainer
13443
- }, /* @__PURE__ */ React90.createElement(Modal, {
13580
+ }, /* @__PURE__ */ React91.createElement(Modal, {
13444
13581
  className: "Aquarium-Modal",
13445
13582
  open: true
13446
- }, /* @__PURE__ */ React90.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React90.createElement(ModalWrapper, __spreadValues(__spreadValues({
13583
+ }, /* @__PURE__ */ React91.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React91.createElement(ModalWrapper, __spreadValues(__spreadValues({
13447
13584
  ref,
13448
13585
  size
13449
13586
  }, props), modalProps))));
13450
13587
  };
13451
- var ModalWrapper = React90.forwardRef(
13588
+ var ModalWrapper = React91.forwardRef(
13452
13589
  (_a, ref) => {
13453
13590
  var _b = _a, { title, subtitle, headerImage, primaryAction, secondaryActions, children, onClose } = _b, props = __objRest(_b, ["title", "subtitle", "headerImage", "primaryAction", "secondaryActions", "children", "onClose"]);
13454
13591
  const labelledBy = useId11();
@@ -13457,30 +13594,30 @@ var ModalWrapper = React90.forwardRef(
13457
13594
  { "role": "dialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
13458
13595
  ref
13459
13596
  );
13460
- return /* @__PURE__ */ React90.createElement(Modal.Dialog, __spreadProps(__spreadValues(__spreadValues({
13597
+ return /* @__PURE__ */ React91.createElement(Modal.Dialog, __spreadProps(__spreadValues(__spreadValues({
13461
13598
  ref
13462
13599
  }, props), dialogProps), {
13463
13600
  tabIndex: -1
13464
- }), /* @__PURE__ */ React90.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React90.createElement(IconButton, {
13601
+ }), /* @__PURE__ */ React91.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React91.createElement(IconButton, {
13465
13602
  "aria-label": "Close",
13466
13603
  icon: import_cross7.default,
13467
13604
  onClick: onClose
13468
- })), headerImage !== void 0 && /* @__PURE__ */ React90.createElement(Modal.HeaderImage, {
13605
+ })), headerImage !== void 0 && /* @__PURE__ */ React91.createElement(Modal.HeaderImage, {
13469
13606
  backgroundImage: headerImage
13470
- }), /* @__PURE__ */ React90.createElement(Modal.Header, {
13607
+ }), /* @__PURE__ */ React91.createElement(Modal.Header, {
13471
13608
  className: tw({ "pb-3": isComponentType(children, ModalTabs) })
13472
- }, /* @__PURE__ */ React90.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React90.createElement(Modal.Title, {
13609
+ }, /* @__PURE__ */ React91.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React91.createElement(Modal.Title, {
13473
13610
  id: labelledBy
13474
- }, title), subtitle && /* @__PURE__ */ React90.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React90.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React90.createElement(Modal.Body, {
13611
+ }, title), subtitle && /* @__PURE__ */ React91.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React91.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React91.createElement(Modal.Body, {
13475
13612
  id: describedBy,
13476
13613
  tabIndex: 0,
13477
13614
  noFooter: !(secondaryActions || primaryAction)
13478
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React90.createElement(Modal.Footer, null, /* @__PURE__ */ React90.createElement(Modal.Actions, null, secondaryActions && castArray4(secondaryActions).filter(Boolean).map((_a2) => {
13615
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React91.createElement(Modal.Footer, null, /* @__PURE__ */ React91.createElement(Modal.Actions, null, secondaryActions && castArray4(secondaryActions).filter(Boolean).map((_a2) => {
13479
13616
  var _b2 = _a2, { text } = _b2, action = __objRest(_b2, ["text"]);
13480
- return /* @__PURE__ */ React90.createElement(Button.Secondary, __spreadValues({
13617
+ return /* @__PURE__ */ React91.createElement(Button.Secondary, __spreadValues({
13481
13618
  key: text
13482
13619
  }, action), text);
13483
- }), primaryAction && /* @__PURE__ */ React90.createElement(Button.Primary, __spreadValues({
13620
+ }), primaryAction && /* @__PURE__ */ React91.createElement(Button.Primary, __spreadValues({
13484
13621
  key: primaryAction.text
13485
13622
  }, omit11(primaryAction, "text")), primaryAction.text))));
13486
13623
  }
@@ -13489,24 +13626,24 @@ var ModalTabs = createTabsComponent(
13489
13626
  ModalTab,
13490
13627
  TabItem,
13491
13628
  "ModalTabs",
13492
- (children, selected, props) => /* @__PURE__ */ React90.createElement(Modal.Body, {
13629
+ (children, selected, props) => /* @__PURE__ */ React91.createElement(Modal.Body, {
13493
13630
  maxHeight: props.maxHeight
13494
- }, /* @__PURE__ */ React90.createElement(ModalTabContainer, null, children.find(
13631
+ }, /* @__PURE__ */ React91.createElement(ModalTabContainer, null, children.find(
13495
13632
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
13496
13633
  )))
13497
13634
  );
13498
13635
 
13499
13636
  // src/molecules/MultiInput/MultiInput.tsx
13500
- import React92, { useEffect as useEffect9, useRef as useRef9, useState as useState11 } from "react";
13637
+ import React93, { useEffect as useEffect9, useRef as useRef11, useState as useState12 } from "react";
13501
13638
  import { useId as useId12 } from "@react-aria/utils";
13502
13639
  import castArray5 from "lodash/castArray";
13503
13640
  import identity from "lodash/identity";
13504
13641
  import omit12 from "lodash/omit";
13505
13642
 
13506
13643
  // src/molecules/MultiInput/InputChip.tsx
13507
- import React91 from "react";
13644
+ import React92 from "react";
13508
13645
  var import_smallCross2 = __toESM(require_smallCross());
13509
- var InputChip = React91.forwardRef(
13646
+ var InputChip = React92.forwardRef(
13510
13647
  (_a, ref) => {
13511
13648
  var _b = _a, { invalid = false, disabled, readOnly, className, onClick: _onClick, children } = _b, props = __objRest(_b, ["invalid", "disabled", "readOnly", "className", "onClick", "children"]);
13512
13649
  const onClick = (e) => {
@@ -13514,18 +13651,18 @@ var InputChip = React91.forwardRef(
13514
13651
  _onClick == null ? void 0 : _onClick(e);
13515
13652
  }
13516
13653
  };
13517
- return /* @__PURE__ */ React91.createElement("div", {
13654
+ return /* @__PURE__ */ React92.createElement("div", {
13518
13655
  className: classNames(className, "inline-flex align-middle mx-1 items-stretch rounded-sm break-all", {
13519
13656
  "bg-status-danger ": invalid,
13520
13657
  "bg-muted ": !invalid && !disabled,
13521
13658
  "bg-default": disabled
13522
13659
  })
13523
- }, /* @__PURE__ */ React91.createElement("div", {
13660
+ }, /* @__PURE__ */ React92.createElement("div", {
13524
13661
  className: tw("px-2 py-1")
13525
- }, /* @__PURE__ */ React91.createElement(Typography2, {
13662
+ }, /* @__PURE__ */ React92.createElement(Typography2, {
13526
13663
  variant: "small",
13527
- color: invalid ? "error-80" : disabled ? "grey-40" : "grey-70"
13528
- }, children)), !readOnly && /* @__PURE__ */ React91.createElement("div", __spreadProps(__spreadValues({
13664
+ color: invalid ? "warning-default" : disabled ? "inactive" : "default"
13665
+ }, children)), !readOnly && /* @__PURE__ */ React92.createElement("div", __spreadProps(__spreadValues({
13529
13666
  ref
13530
13667
  }, props), {
13531
13668
  onClick,
@@ -13536,7 +13673,7 @@ var InputChip = React91.forwardRef(
13536
13673
  }),
13537
13674
  role: "button",
13538
13675
  "aria-label": `Remove ${String(children)}`
13539
- }), !disabled && /* @__PURE__ */ React91.createElement(Icon, {
13676
+ }), !disabled && /* @__PURE__ */ React92.createElement(Icon, {
13540
13677
  icon: import_smallCross2.default,
13541
13678
  className: tw({
13542
13679
  "text-danger-default": invalid,
@@ -13594,9 +13731,9 @@ var MultiInputBase = (_a) => {
13594
13731
  "valid"
13595
13732
  ]);
13596
13733
  var _a2;
13597
- const inputRef = useRef9(null);
13598
- const [items, setItems] = useState11((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
13599
- const [hasFocus, setFocus] = useState11(false);
13734
+ const inputRef = useRef11(null);
13735
+ const [items, setItems] = useState12((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
13736
+ const [hasFocus, setFocus] = useState12(false);
13600
13737
  const keyCodes = [delimiter !== "enter" ? " " : null, delimiter !== "space" ? "Enter" : null].filter(identity);
13601
13738
  useEffect9(() => {
13602
13739
  const requiresUpdate = value !== void 0 || defaultValue === void 0;
@@ -13677,7 +13814,7 @@ var MultiInputBase = (_a) => {
13677
13814
  };
13678
13815
  const renderChips = () => items == null ? void 0 : items.map((item, index) => {
13679
13816
  var _a3;
13680
- return /* @__PURE__ */ React92.createElement(InputChip, {
13817
+ return /* @__PURE__ */ React93.createElement(InputChip, {
13681
13818
  key: `${itemToString(item)}.${index}`,
13682
13819
  invalid: !((_a3 = isItemValid == null ? void 0 : isItemValid(item, index)) != null ? _a3 : true),
13683
13820
  readOnly,
@@ -13688,13 +13825,13 @@ var MultiInputBase = (_a) => {
13688
13825
  }
13689
13826
  }, itemToString(item));
13690
13827
  });
13691
- return /* @__PURE__ */ React92.createElement("div", {
13828
+ return /* @__PURE__ */ React93.createElement("div", {
13692
13829
  className: "Aquarium-MultiInputBase"
13693
- }, /* @__PURE__ */ React92.createElement(Select.InputContainer, {
13830
+ }, /* @__PURE__ */ React93.createElement(Select.InputContainer, {
13694
13831
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
13695
- }, /* @__PURE__ */ React92.createElement("div", {
13832
+ }, /* @__PURE__ */ React93.createElement("div", {
13696
13833
  className: "grow inline-flex flex-row flex-wrap gap-y-2"
13697
- }, inline && renderChips(), /* @__PURE__ */ React92.createElement(Select.Input, __spreadProps(__spreadValues({
13834
+ }, inline && renderChips(), /* @__PURE__ */ React93.createElement(Select.Input, __spreadProps(__spreadValues({
13698
13835
  ref: inputRef,
13699
13836
  id: id != null ? id : name,
13700
13837
  name,
@@ -13712,18 +13849,18 @@ var MultiInputBase = (_a) => {
13712
13849
  onFocus: handleFocus,
13713
13850
  onBlur: handleBlur,
13714
13851
  autoComplete: "off"
13715
- }))), endAdornment && /* @__PURE__ */ React92.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React92.createElement("div", {
13852
+ }))), endAdornment && /* @__PURE__ */ React93.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React93.createElement("div", {
13716
13853
  className: tw("flex flex-row flex-wrap gap-y-2 mt-2")
13717
13854
  }, renderChips()));
13718
13855
  };
13719
- var BaseMultiInputSkeleton = () => /* @__PURE__ */ React92.createElement(Skeleton, {
13856
+ var BaseMultiInputSkeleton = () => /* @__PURE__ */ React93.createElement(Skeleton, {
13720
13857
  height: 38
13721
13858
  });
13722
13859
  MultiInputBase.Skeleton = BaseMultiInputSkeleton;
13723
13860
  var MultiInput = (props) => {
13724
13861
  var _a, _b, _c, _d, _e;
13725
13862
  const maxLength = (_a = props.maxLength) != null ? _a : props.max;
13726
- const [value, setValue] = useState11((_c = (_b = props.value) != null ? _b : props.defaultValue) != null ? _c : []);
13863
+ const [value, setValue] = useState12((_c = (_b = props.value) != null ? _b : props.defaultValue) != null ? _c : []);
13727
13864
  useEffect9(() => {
13728
13865
  var _a2;
13729
13866
  setValue((_a2 = props.value) != null ? _a2 : []);
@@ -13734,7 +13871,7 @@ var MultiInput = (props) => {
13734
13871
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13735
13872
  const labelControlProps = getLabelControlProps(props);
13736
13873
  const baseProps = omit12(props, Object.keys(labelControlProps));
13737
- return /* @__PURE__ */ React92.createElement(LabelControl, __spreadProps(__spreadValues({
13874
+ return /* @__PURE__ */ React93.createElement(LabelControl, __spreadProps(__spreadValues({
13738
13875
  id: `${id}-label`,
13739
13876
  htmlFor: `${id}-input`,
13740
13877
  messageId: errorMessageId
@@ -13742,7 +13879,7 @@ var MultiInput = (props) => {
13742
13879
  length: value.length,
13743
13880
  maxLength,
13744
13881
  className: "Aquarium-MultiInput"
13745
- }), /* @__PURE__ */ React92.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
13882
+ }), /* @__PURE__ */ React93.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
13746
13883
  id: `${id}-input`,
13747
13884
  onChange: (value2) => {
13748
13885
  var _a2;
@@ -13754,12 +13891,12 @@ var MultiInput = (props) => {
13754
13891
  valid: props.valid
13755
13892
  })));
13756
13893
  };
13757
- var MultiInputSkeleton = () => /* @__PURE__ */ React92.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React92.createElement(MultiInputBase.Skeleton, null));
13894
+ var MultiInputSkeleton = () => /* @__PURE__ */ React93.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React93.createElement(MultiInputBase.Skeleton, null));
13758
13895
  MultiInput.Skeleton = MultiInputSkeleton;
13759
13896
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
13760
13897
 
13761
13898
  // src/molecules/MultiSelect/MultiSelect.tsx
13762
- import React93, { useEffect as useEffect10, useRef as useRef10, useState as useState12 } from "react";
13899
+ import React94, { useEffect as useEffect10, useRef as useRef12, useState as useState13 } from "react";
13763
13900
  import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
13764
13901
  import { useId as useId13 } from "@react-aria/utils";
13765
13902
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
@@ -13825,12 +13962,12 @@ var MultiSelectBase = (_a) => {
13825
13962
  "children"
13826
13963
  ]);
13827
13964
  var _a2;
13828
- const popoverRef = useRef10(null);
13829
- const targetRef = useRef10(null);
13830
- const menuRef = useRef10(null);
13831
- const inputRef = useRef10(null);
13832
- const [inputValue, setInputValue] = useState12("");
13833
- const [hasFocus, setFocus] = useState12(false);
13965
+ const popoverRef = useRef12(null);
13966
+ const targetRef = useRef12(null);
13967
+ const menuRef = useRef12(null);
13968
+ const inputRef = useRef12(null);
13969
+ const [inputValue, setInputValue] = useState13("");
13970
+ const [hasFocus, setFocus] = useState13(false);
13834
13971
  const { selectedItems, addSelectedItem, removeSelectedItem, getDropdownProps, getSelectedItemProps } = useMultipleSelection(
13835
13972
  omitBy(
13836
13973
  {
@@ -13919,16 +14056,16 @@ var MultiSelectBase = (_a) => {
13919
14056
  return ariaHideOutside2([inputRef.current, popoverRef.current]);
13920
14057
  }
13921
14058
  }, [state.isOpen, inputRef, popoverRef]);
13922
- const renderItem = (item, index) => /* @__PURE__ */ React93.createElement(Select.Item, __spreadValues({
14059
+ const renderItem = (item, index) => /* @__PURE__ */ React94.createElement(Select.Item, __spreadValues({
13923
14060
  key: itemToString(item),
13924
14061
  highlighted: index === highlightedIndex,
13925
14062
  selected: selectedItems.includes(item)
13926
14063
  }, getItemProps({ item, index })), renderOption(item));
13927
- const renderGroup = (group) => group.options.length ? /* @__PURE__ */ React93.createElement(React93.Fragment, {
14064
+ const renderGroup = (group) => group.options.length ? /* @__PURE__ */ React94.createElement(React94.Fragment, {
13928
14065
  key: group.label
13929
- }, /* @__PURE__ */ React93.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, flattenedOptions.indexOf(opt)))) : null;
14066
+ }, /* @__PURE__ */ React94.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, flattenedOptions.indexOf(opt)))) : null;
13930
14067
  const renderChips = () => {
13931
- return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React93.createElement(InputChip, __spreadProps(__spreadValues({
14068
+ return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React94.createElement(InputChip, __spreadProps(__spreadValues({
13932
14069
  key: `${itemToString(selectedItem)}.chip`,
13933
14070
  className: tw("mx-0"),
13934
14071
  disabled,
@@ -13946,14 +14083,14 @@ var MultiSelectBase = (_a) => {
13946
14083
  getDropdownProps({ ref: inputRef, disabled: disabled || readOnly, value: inputValue })
13947
14084
  );
13948
14085
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
13949
- return /* @__PURE__ */ React93.createElement("div", {
14086
+ return /* @__PURE__ */ React94.createElement("div", {
13950
14087
  className: classNames("Aquarium-MultiSelectBase", tw("relative"))
13951
- }, /* @__PURE__ */ React93.createElement(Select.InputContainer, {
14088
+ }, /* @__PURE__ */ React94.createElement(Select.InputContainer, {
13952
14089
  ref: targetRef,
13953
14090
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
13954
- }, /* @__PURE__ */ React93.createElement("div", {
14091
+ }, /* @__PURE__ */ React94.createElement("div", {
13955
14092
  className: "grow inline-flex flex-row flex-wrap gap-2"
13956
- }, !hideChips && inline && renderChips(), /* @__PURE__ */ React93.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
14093
+ }, !hideChips && inline && renderChips(), /* @__PURE__ */ React94.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
13957
14094
  name,
13958
14095
  placeholder: selectedItems.length === 0 && !readOnly ? placeholder : ""
13959
14096
  }, inputProps), props), {
@@ -13972,12 +14109,12 @@ var MultiSelectBase = (_a) => {
13972
14109
  setFocus(false);
13973
14110
  (_a3 = inputProps.onBlur) == null ? void 0 : _a3.call(inputProps, e);
13974
14111
  }
13975
- }))), !readOnly && /* @__PURE__ */ React93.createElement(Select.Toggle, __spreadValues({
14112
+ }))), !readOnly && /* @__PURE__ */ React94.createElement(Select.Toggle, __spreadValues({
13976
14113
  hasFocus,
13977
14114
  isOpen
13978
- }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React93.createElement("div", {
14115
+ }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React94.createElement("div", {
13979
14116
  className: tw("flex flex-row flex-wrap gap-2 mt-2")
13980
- }, renderChips()), isOpen && /* @__PURE__ */ React93.createElement(PopoverOverlay, {
14117
+ }, renderChips()), isOpen && /* @__PURE__ */ React94.createElement(PopoverOverlay, {
13981
14118
  ref: popoverRef,
13982
14119
  triggerRef: targetRef,
13983
14120
  state,
@@ -13985,13 +14122,13 @@ var MultiSelectBase = (_a) => {
13985
14122
  shouldFlip: true,
13986
14123
  isNonModal: true,
13987
14124
  style: { width: (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth }
13988
- }, /* @__PURE__ */ React93.createElement(Select.Menu, __spreadValues({
14125
+ }, /* @__PURE__ */ React94.createElement(Select.Menu, __spreadValues({
13989
14126
  maxHeight
13990
- }, menuProps), hasNoResults && /* @__PURE__ */ React93.createElement(Select.NoResults, null, emptyState), filteredOptions.map(
14127
+ }, menuProps), hasNoResults && /* @__PURE__ */ React94.createElement(Select.NoResults, null, emptyState), filteredOptions.map(
13991
14128
  (option, index) => isOptionGroup(option) ? renderGroup(option) : renderItem(option, index)
13992
14129
  ))));
13993
14130
  };
13994
- var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React93.createElement(Skeleton, {
14131
+ var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React94.createElement(Skeleton, {
13995
14132
  height: 38
13996
14133
  });
13997
14134
  MultiSelectBase.Skeleton = MultiSelectBaseSkeleton;
@@ -14012,13 +14149,13 @@ var MultiSelect = (_a) => {
14012
14149
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
14013
14150
  const labelControlProps = getLabelControlProps(props);
14014
14151
  const baseProps = omit13(props, Object.keys(labelControlProps));
14015
- return /* @__PURE__ */ React93.createElement(LabelControl, __spreadProps(__spreadValues({
14152
+ return /* @__PURE__ */ React94.createElement(LabelControl, __spreadProps(__spreadValues({
14016
14153
  id: `${id}-label`,
14017
14154
  htmlFor: `${id}-input`,
14018
14155
  messageId: errorMessageId
14019
14156
  }, labelControlProps), {
14020
14157
  className: "Aquarium-MultiSelect"
14021
- }), /* @__PURE__ */ React93.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
14158
+ }), /* @__PURE__ */ React94.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
14022
14159
  id,
14023
14160
  options,
14024
14161
  emptyState,
@@ -14026,17 +14163,17 @@ var MultiSelect = (_a) => {
14026
14163
  valid: props.valid
14027
14164
  })));
14028
14165
  };
14029
- var MultiSelectSkeleton = () => /* @__PURE__ */ React93.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React93.createElement(MultiSelectBase.Skeleton, null));
14166
+ var MultiSelectSkeleton = () => /* @__PURE__ */ React94.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React94.createElement(MultiSelectBase.Skeleton, null));
14030
14167
  MultiSelect.Skeleton = MultiSelectSkeleton;
14031
14168
  MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
14032
14169
 
14033
14170
  // src/molecules/NativeSelect/NativeSelect.tsx
14034
- import React94 from "react";
14171
+ import React95 from "react";
14035
14172
  import { useId as useId14 } from "@react-aria/utils";
14036
14173
  import omit14 from "lodash/omit";
14037
14174
  import uniqueId from "lodash/uniqueId";
14038
14175
  var import_caretDown2 = __toESM(require_caretDown());
14039
- var NativeSelectBase = React94.forwardRef(
14176
+ var NativeSelectBase = React95.forwardRef(
14040
14177
  (_a, ref) => {
14041
14178
  var _b = _a, { children, disabled = false, required = false, valid = true, readOnly = false } = _b, props = __objRest(_b, ["children", "disabled", "required", "valid", "readOnly"]);
14042
14179
  const placeholderValue = uniqueId("default_value_for_placeholder");
@@ -14053,16 +14190,16 @@ var NativeSelectBase = React94.forwardRef(
14053
14190
  (_b2 = props.onBlur) == null ? void 0 : _b2.call(props, event);
14054
14191
  }
14055
14192
  };
14056
- return /* @__PURE__ */ React94.createElement("span", {
14193
+ return /* @__PURE__ */ React95.createElement("span", {
14057
14194
  className: classNames("Aquarium-NativeSelectBase", tw("relative block"))
14058
- }, !readOnly && /* @__PURE__ */ React94.createElement("span", {
14195
+ }, !readOnly && /* @__PURE__ */ React95.createElement("span", {
14059
14196
  className: tw(
14060
14197
  "absolute right-0 inset-y-0 mr-4 text-inactive flex ml-3 pointer-events-none typography-default-strong mt-4"
14061
14198
  )
14062
- }, /* @__PURE__ */ React94.createElement(Icon, {
14199
+ }, /* @__PURE__ */ React95.createElement(Icon, {
14063
14200
  icon: import_caretDown2.default,
14064
14201
  "data-testid": "icon-dropdown"
14065
- })), /* @__PURE__ */ React94.createElement("select", __spreadProps(__spreadValues({
14202
+ })), /* @__PURE__ */ React95.createElement("select", __spreadProps(__spreadValues({
14066
14203
  ref,
14067
14204
  disabled: disabled || readOnly,
14068
14205
  required
@@ -14081,16 +14218,16 @@ var NativeSelectBase = React94.forwardRef(
14081
14218
  ),
14082
14219
  props.className
14083
14220
  )
14084
- }), props.placeholder && /* @__PURE__ */ React94.createElement("option", {
14221
+ }), props.placeholder && /* @__PURE__ */ React95.createElement("option", {
14085
14222
  value: placeholderValue,
14086
14223
  disabled: true
14087
14224
  }, props.placeholder), children));
14088
14225
  }
14089
14226
  );
14090
- NativeSelectBase.Skeleton = () => /* @__PURE__ */ React94.createElement(Skeleton, {
14227
+ NativeSelectBase.Skeleton = () => /* @__PURE__ */ React95.createElement(Skeleton, {
14091
14228
  height: 38
14092
14229
  });
14093
- var NativeSelect = React94.forwardRef(
14230
+ var NativeSelect = React95.forwardRef(
14094
14231
  (_a, ref) => {
14095
14232
  var _b = _a, { readOnly } = _b, props = __objRest(_b, ["readOnly"]);
14096
14233
  var _a2;
@@ -14100,13 +14237,13 @@ var NativeSelect = React94.forwardRef(
14100
14237
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
14101
14238
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
14102
14239
  const baseProps = omit14(props, Object.keys(labelControlProps));
14103
- return /* @__PURE__ */ React94.createElement(LabelControl, __spreadProps(__spreadValues({
14240
+ return /* @__PURE__ */ React95.createElement(LabelControl, __spreadProps(__spreadValues({
14104
14241
  id: `${id}-label`,
14105
14242
  htmlFor: id,
14106
14243
  messageId: errorMessageId
14107
14244
  }, labelControlProps), {
14108
14245
  className: "Aquarium-NativeSelect"
14109
- }), /* @__PURE__ */ React94.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
14246
+ }), /* @__PURE__ */ React95.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
14110
14247
  ref
14111
14248
  }, baseProps), errorProps), {
14112
14249
  id,
@@ -14120,63 +14257,63 @@ var NativeSelect = React94.forwardRef(
14120
14257
  }
14121
14258
  );
14122
14259
  NativeSelect.displayName = "NativeSelect";
14123
- var Option = React94.forwardRef((_a, ref) => {
14260
+ var Option = React95.forwardRef((_a, ref) => {
14124
14261
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
14125
- return /* @__PURE__ */ React94.createElement("option", __spreadValues({
14262
+ return /* @__PURE__ */ React95.createElement("option", __spreadValues({
14126
14263
  ref
14127
14264
  }, props), children);
14128
14265
  });
14129
14266
  Option.displayName = "Option";
14130
- var NativeSelectSkeleton = () => /* @__PURE__ */ React94.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React94.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React94.createElement("div", {
14267
+ var NativeSelectSkeleton = () => /* @__PURE__ */ React95.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React95.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React95.createElement("div", {
14131
14268
  style: { height: "1px" }
14132
14269
  }));
14133
14270
  NativeSelect.Skeleton = NativeSelectSkeleton;
14134
14271
  NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
14135
14272
 
14136
14273
  // src/molecules/Navigation/Navigation.tsx
14137
- import React96 from "react";
14138
- import classNames10 from "classnames";
14274
+ import React97 from "react";
14275
+ import classNames11 from "classnames";
14139
14276
 
14140
14277
  // src/atoms/Navigation/Navigation.tsx
14141
- import React95 from "react";
14278
+ import React96 from "react";
14142
14279
  var Navigation = (_a) => {
14143
14280
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
14144
- return /* @__PURE__ */ React95.createElement("nav", {
14281
+ return /* @__PURE__ */ React96.createElement("nav", {
14145
14282
  className: classNames(tw("bg-muted h-full"))
14146
- }, /* @__PURE__ */ React95.createElement("ul", __spreadProps(__spreadValues({}, rest), {
14283
+ }, /* @__PURE__ */ React96.createElement("ul", __spreadProps(__spreadValues({}, rest), {
14147
14284
  className: classNames(tw("flex flex-col h-full"), className),
14148
14285
  role: "menubar"
14149
14286
  }), children));
14150
14287
  };
14151
14288
  var Header = (_a) => {
14152
14289
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14153
- return /* @__PURE__ */ React95.createElement("li", __spreadProps(__spreadValues({}, rest), {
14290
+ return /* @__PURE__ */ React96.createElement("li", __spreadProps(__spreadValues({}, rest), {
14154
14291
  role: "presentation",
14155
14292
  className: classNames(tw("px-6 py-5"), className)
14156
14293
  }));
14157
14294
  };
14158
14295
  var Footer = (_a) => {
14159
14296
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14160
- return /* @__PURE__ */ React95.createElement("li", __spreadProps(__spreadValues({}, rest), {
14297
+ return /* @__PURE__ */ React96.createElement("li", __spreadProps(__spreadValues({}, rest), {
14161
14298
  role: "presentation",
14162
14299
  className: classNames(tw("px-6 py-5 mt-auto"), className)
14163
14300
  }));
14164
14301
  };
14165
14302
  var Section2 = (_a) => {
14166
14303
  var _b = _a, { title, className } = _b, rest = __objRest(_b, ["title", "className"]);
14167
- return /* @__PURE__ */ React95.createElement("li", {
14304
+ return /* @__PURE__ */ React96.createElement("li", {
14168
14305
  role: "presentation",
14169
14306
  className: tw("py-5")
14170
- }, title && /* @__PURE__ */ React95.createElement("div", {
14307
+ }, title && /* @__PURE__ */ React96.createElement("div", {
14171
14308
  className: classNames(className, "py-2 px-6 text-inactive uppercase cursor-default typography-caption")
14172
- }, title), /* @__PURE__ */ React95.createElement("ul", __spreadProps(__spreadValues({}, rest), {
14309
+ }, title), /* @__PURE__ */ React96.createElement("ul", __spreadProps(__spreadValues({}, rest), {
14173
14310
  role: "group",
14174
14311
  className: classNames(tw("flex flex-col"), className)
14175
14312
  })));
14176
14313
  };
14177
14314
  var Divider3 = (_a) => {
14178
14315
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
14179
- return /* @__PURE__ */ React95.createElement("li", __spreadProps(__spreadValues({
14316
+ return /* @__PURE__ */ React96.createElement("li", __spreadProps(__spreadValues({
14180
14317
  role: "separator"
14181
14318
  }, rest), {
14182
14319
  className: classNames(tw("border-t-2 border-muted"), className)
@@ -14184,13 +14321,13 @@ var Divider3 = (_a) => {
14184
14321
  };
14185
14322
  var Item5 = (_a) => {
14186
14323
  var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
14187
- return /* @__PURE__ */ React95.createElement("li", {
14324
+ return /* @__PURE__ */ React96.createElement("li", {
14188
14325
  role: "presentation"
14189
- }, /* @__PURE__ */ React95.createElement("a", __spreadProps(__spreadValues({}, rest), {
14326
+ }, /* @__PURE__ */ React96.createElement("a", __spreadProps(__spreadValues({}, rest), {
14190
14327
  role: "menuitem",
14191
14328
  className: classNames(
14192
14329
  tw("py-3 px-6 hover:bg-default cursor-pointer flex gap-4 items-center typography-small focusable", {
14193
- "text-grey-60": !active,
14330
+ "text-default": !active,
14194
14331
  "text-primary-intense": !!active
14195
14332
  }),
14196
14333
  className
@@ -14206,8 +14343,8 @@ Navigation.Divider = Divider3;
14206
14343
  // src/molecules/Navigation/Navigation.tsx
14207
14344
  var Navigation2 = (_a) => {
14208
14345
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
14209
- return /* @__PURE__ */ React96.createElement(Navigation, __spreadValues({
14210
- className: classNames10("Aquarium-Navigation", className)
14346
+ return /* @__PURE__ */ React97.createElement(Navigation, __spreadValues({
14347
+ className: classNames11("Aquarium-Navigation", className)
14211
14348
  }, props));
14212
14349
  };
14213
14350
  var Item6 = (_a) => {
@@ -14220,11 +14357,11 @@ var Item6 = (_a) => {
14220
14357
  "icon",
14221
14358
  "showNotification"
14222
14359
  ]);
14223
- return /* @__PURE__ */ React96.createElement(Navigation.Item, __spreadValues({}, rest), icon && showNotification && /* @__PURE__ */ React96.createElement(Badge.Notification, null, /* @__PURE__ */ React96.createElement(InlineIcon, {
14360
+ return /* @__PURE__ */ React97.createElement(Navigation.Item, __spreadValues({}, rest), icon && showNotification && /* @__PURE__ */ React97.createElement(Badge.Notification, null, /* @__PURE__ */ React97.createElement(InlineIcon, {
14224
14361
  icon,
14225
14362
  width: "20px",
14226
14363
  height: "20px"
14227
- })), icon && !showNotification && /* @__PURE__ */ React96.createElement(InlineIcon, {
14364
+ })), icon && !showNotification && /* @__PURE__ */ React97.createElement(InlineIcon, {
14228
14365
  icon,
14229
14366
  width: "20px",
14230
14367
  height: "20px"
@@ -14237,52 +14374,52 @@ Navigation2.Header = Navigation.Header;
14237
14374
  Navigation2.Section = Navigation.Section;
14238
14375
 
14239
14376
  // src/molecules/PageHeader/PageHeader.tsx
14240
- import React98 from "react";
14377
+ import React99 from "react";
14241
14378
  import castArray6 from "lodash/castArray";
14242
14379
 
14243
14380
  // src/atoms/PageHeader/PageHeader.tsx
14244
- import React97 from "react";
14381
+ import React98 from "react";
14245
14382
  var PageHeader = (_a) => {
14246
14383
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14247
- return /* @__PURE__ */ React97.createElement("div", __spreadValues({
14384
+ return /* @__PURE__ */ React98.createElement("div", __spreadValues({
14248
14385
  className: classNames(tw("flex flex-row gap-4 pb-6"), className)
14249
14386
  }, rest), children);
14250
14387
  };
14251
14388
  PageHeader.Container = (_a) => {
14252
14389
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14253
- return /* @__PURE__ */ React97.createElement("div", __spreadValues({
14390
+ return /* @__PURE__ */ React98.createElement("div", __spreadValues({
14254
14391
  className: classNames(tw("flex flex-col grow gap-0"), className)
14255
14392
  }, rest), children);
14256
14393
  };
14257
14394
  PageHeader.TitleContainer = (_a) => {
14258
14395
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14259
- return /* @__PURE__ */ React97.createElement("div", __spreadValues({
14396
+ return /* @__PURE__ */ React98.createElement("div", __spreadValues({
14260
14397
  className: classNames(tw("flex flex-col justify-center gap-2"), className)
14261
14398
  }, rest), children);
14262
14399
  };
14263
14400
  PageHeader.Title = (_a) => {
14264
14401
  var _b = _a, { isSubHeader = false, children } = _b, rest = __objRest(_b, ["isSubHeader", "children"]);
14265
- return /* @__PURE__ */ React97.createElement(Typography2, __spreadProps(__spreadValues({}, rest), {
14266
- color: "grey-100",
14402
+ return /* @__PURE__ */ React98.createElement(Typography2, __spreadProps(__spreadValues({}, rest), {
14403
+ color: "intense",
14267
14404
  variant: isSubHeader ? "subheading" : "heading",
14268
14405
  htmlTag: isSubHeader ? "h2" : "h1"
14269
14406
  }), children);
14270
14407
  };
14271
14408
  PageHeader.Subtitle = (_a) => {
14272
14409
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
14273
- return /* @__PURE__ */ React97.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
14274
- color: "grey-70"
14410
+ return /* @__PURE__ */ React98.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
14411
+ color: "default"
14275
14412
  }), children);
14276
14413
  };
14277
14414
  PageHeader.Chips = (_a) => {
14278
14415
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14279
- return /* @__PURE__ */ React97.createElement("div", __spreadValues({
14416
+ return /* @__PURE__ */ React98.createElement("div", __spreadValues({
14280
14417
  className: classNames(tw("flex gap-3"), className)
14281
14418
  }, rest), children);
14282
14419
  };
14283
14420
  PageHeader.Actions = (_a) => {
14284
14421
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14285
- return /* @__PURE__ */ React97.createElement("div", __spreadValues({
14422
+ return /* @__PURE__ */ React98.createElement("div", __spreadValues({
14286
14423
  className: classNames(tw("flex flex-row gap-4 self-start"), className)
14287
14424
  }, rest), children);
14288
14425
  };
@@ -14306,64 +14443,64 @@ var CommonPageHeader = ({
14306
14443
  onMenuOpenChange,
14307
14444
  isSubHeader = false
14308
14445
  }) => {
14309
- return /* @__PURE__ */ React98.createElement(PageHeader, {
14446
+ return /* @__PURE__ */ React99.createElement(PageHeader, {
14310
14447
  className: "Aquarium-PageHeader"
14311
- }, /* @__PURE__ */ React98.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React98.createElement(Box, {
14448
+ }, /* @__PURE__ */ React99.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React99.createElement(Box, {
14312
14449
  marginBottom: "3"
14313
- }, /* @__PURE__ */ React98.createElement(Breadcrumbs, null, breadcrumbs)), /* @__PURE__ */ React98.createElement(Spacing, {
14450
+ }, /* @__PURE__ */ React99.createElement(Breadcrumbs, null, breadcrumbs)), /* @__PURE__ */ React99.createElement(Spacing, {
14314
14451
  row: true,
14315
14452
  gap: "5"
14316
- }, image && /* @__PURE__ */ React98.createElement("img", {
14453
+ }, image && /* @__PURE__ */ React99.createElement("img", {
14317
14454
  src: image,
14318
14455
  alt: imageAlt != null ? imageAlt : "",
14319
14456
  className: tw("w-[56px] h-[56px]")
14320
- }), /* @__PURE__ */ React98.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React98.createElement(PageHeader.Title, {
14457
+ }), /* @__PURE__ */ React99.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React99.createElement(PageHeader.Title, {
14321
14458
  isSubHeader
14322
- }, title), chips.length > 0 && /* @__PURE__ */ React98.createElement(PageHeader.Chips, null, chips.map((chip) => /* @__PURE__ */ React98.createElement(Chip2, {
14459
+ }, title), chips.length > 0 && /* @__PURE__ */ React99.createElement(PageHeader.Chips, null, chips.map((chip) => /* @__PURE__ */ React99.createElement(Chip2, {
14323
14460
  key: chip,
14324
14461
  dense: true,
14325
14462
  text: chip
14326
- }))), subtitle && /* @__PURE__ */ React98.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions || primaryAction || secondaryAction || menu) && /* @__PURE__ */ React98.createElement(PageHeader.Actions, null, menu && /* @__PURE__ */ React98.createElement(Box.Flex, {
14463
+ }))), subtitle && /* @__PURE__ */ React99.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions || primaryAction || secondaryAction || menu) && /* @__PURE__ */ React99.createElement(PageHeader.Actions, null, menu && /* @__PURE__ */ React99.createElement(Box.Flex, {
14327
14464
  alignItems: "center"
14328
- }, /* @__PURE__ */ React98.createElement(DropdownMenu2, {
14465
+ }, /* @__PURE__ */ React99.createElement(DropdownMenu2, {
14329
14466
  placement: defaultContextualMenuPlacement,
14330
14467
  onAction: (action) => onAction == null ? void 0 : onAction(action),
14331
14468
  onOpenChange: onMenuOpenChange
14332
- }, /* @__PURE__ */ React98.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React98.createElement(Button.Icon, {
14469
+ }, /* @__PURE__ */ React99.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React99.createElement(Button.Icon, {
14333
14470
  "aria-label": menuAriaLabel,
14334
14471
  icon: import_more5.default
14335
14472
  })), menu)), secondaryActions && castArray6(secondaryActions).filter(Boolean).map((secondaryAction2) => renderAction({ kind: "secondary", action: secondaryAction2 })), primaryAction && renderAction({ kind: "primary", action: primaryAction })));
14336
14473
  };
14337
- var PageHeader2 = (props) => /* @__PURE__ */ React98.createElement(CommonPageHeader, __spreadValues({}, props));
14474
+ var PageHeader2 = (props) => /* @__PURE__ */ React99.createElement(CommonPageHeader, __spreadValues({}, props));
14338
14475
  PageHeader2.displayName = "PageHeader";
14339
- var SubHeader = (props) => /* @__PURE__ */ React98.createElement(CommonPageHeader, __spreadProps(__spreadValues({}, props), {
14476
+ var SubHeader = (props) => /* @__PURE__ */ React99.createElement(CommonPageHeader, __spreadProps(__spreadValues({}, props), {
14340
14477
  isSubHeader: true
14341
14478
  }));
14342
14479
  PageHeader2.SubHeader = SubHeader;
14343
14480
  PageHeader2.SubHeader.displayName = "PageHeader.SubHeader";
14344
14481
 
14345
14482
  // src/molecules/PopoverDialog/PopoverDialog.tsx
14346
- import React100 from "react";
14483
+ import React101 from "react";
14347
14484
  import omit15 from "lodash/omit";
14348
14485
 
14349
14486
  // src/atoms/PopoverDialog/PopoverDialog.tsx
14350
- import React99 from "react";
14487
+ import React100 from "react";
14351
14488
  var Header2 = (_a) => {
14352
14489
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14353
- return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
14490
+ return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
14354
14491
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
14355
14492
  }), children);
14356
14493
  };
14357
14494
  var Title2 = (_a) => {
14358
14495
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14359
- return /* @__PURE__ */ React99.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
14496
+ return /* @__PURE__ */ React100.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
14360
14497
  htmlTag: "h1",
14361
14498
  variant: "small-strong"
14362
14499
  }), children);
14363
14500
  };
14364
14501
  var Body = (_a) => {
14365
14502
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14366
- return /* @__PURE__ */ React99.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
14503
+ return /* @__PURE__ */ React100.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
14367
14504
  htmlTag: "div",
14368
14505
  variant: "caption",
14369
14506
  className: classNames(tw("px-5 overflow-y-auto"), className)
@@ -14371,13 +14508,13 @@ var Body = (_a) => {
14371
14508
  };
14372
14509
  var Footer2 = (_a) => {
14373
14510
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14374
- return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
14511
+ return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
14375
14512
  className: classNames(tw("p-5"), className)
14376
14513
  }), children);
14377
14514
  };
14378
14515
  var Actions2 = (_a) => {
14379
14516
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14380
- return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
14517
+ return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
14381
14518
  className: classNames(tw("flex gap-4"), className)
14382
14519
  }), children);
14383
14520
  };
@@ -14393,13 +14530,13 @@ var PopoverDialog = {
14393
14530
  var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
14394
14531
  const wrapPromptWithBody = (child) => {
14395
14532
  if (isComponentType(child, PopoverDialog2.Prompt)) {
14396
- return /* @__PURE__ */ React100.createElement(Popover2.Panel, {
14533
+ return /* @__PURE__ */ React101.createElement(Popover2.Panel, {
14397
14534
  className: classNames("Aquarium-PopoverDialog", tw("max-w-[300px]"))
14398
- }, /* @__PURE__ */ React100.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React100.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React100.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React100.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React100.createElement(Popover2.Button, __spreadValues({
14535
+ }, /* @__PURE__ */ React101.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React101.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React101.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React101.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React101.createElement(Popover2.Button, __spreadValues({
14399
14536
  kind: "secondary-ghost",
14400
14537
  key: secondaryAction.text,
14401
14538
  dense: true
14402
- }, omit15(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React100.createElement(Popover2.Button, __spreadValues({
14539
+ }, omit15(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React101.createElement(Popover2.Button, __spreadValues({
14403
14540
  kind: "ghost",
14404
14541
  key: primaryAction.text,
14405
14542
  dense: true
@@ -14407,15 +14544,15 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
14407
14544
  }
14408
14545
  return child;
14409
14546
  };
14410
- return /* @__PURE__ */ React100.createElement(Popover2, {
14547
+ return /* @__PURE__ */ React101.createElement(Popover2, {
14411
14548
  type: "dialog",
14412
14549
  isOpen: open,
14413
14550
  placement,
14414
14551
  containFocus: true
14415
- }, React100.Children.map(children, wrapPromptWithBody));
14552
+ }, React101.Children.map(children, wrapPromptWithBody));
14416
14553
  };
14417
14554
  PopoverDialog2.Trigger = Popover2.Trigger;
14418
- var Prompt = ({ children }) => /* @__PURE__ */ React100.createElement(PopoverDialog.Body, null, children);
14555
+ var Prompt = ({ children }) => /* @__PURE__ */ React101.createElement(PopoverDialog.Body, null, children);
14419
14556
  Prompt.displayName = "PopoverDialog.Prompt";
14420
14557
  PopoverDialog2.Prompt = Prompt;
14421
14558
 
@@ -14424,14 +14561,14 @@ import { createPortal } from "react-dom";
14424
14561
  var Portal = ({ children, to }) => createPortal(children, to);
14425
14562
 
14426
14563
  // src/molecules/ProgressBar/ProgressBar.tsx
14427
- import React102 from "react";
14564
+ import React103 from "react";
14428
14565
 
14429
14566
  // src/atoms/ProgressBar/ProgressBar.tsx
14430
- import React101 from "react";
14567
+ import React102 from "react";
14431
14568
  import clamp3 from "lodash/clamp";
14432
14569
  var ProgressBar = (_a) => {
14433
14570
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14434
- return /* @__PURE__ */ React101.createElement("div", __spreadProps(__spreadValues({}, rest), {
14571
+ return /* @__PURE__ */ React102.createElement("div", __spreadProps(__spreadValues({}, rest), {
14435
14572
  className: classNames(tw("relative flex items-center w-full bg-muted h-2 rounded-full overflow-hidden"), className)
14436
14573
  }), children);
14437
14574
  };
@@ -14444,7 +14581,7 @@ var STATUS_COLORS = {
14444
14581
  ProgressBar.Indicator = (_a) => {
14445
14582
  var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
14446
14583
  const completedPercentage = clamp3((value - min) / (max - min) * 100, 0, 100);
14447
- return /* @__PURE__ */ React101.createElement("div", __spreadProps(__spreadValues({}, rest), {
14584
+ return /* @__PURE__ */ React102.createElement("div", __spreadProps(__spreadValues({}, rest), {
14448
14585
  className: classNames(
14449
14586
  tw("h-2 rounded-full transition-all ease-in-out delay-150"),
14450
14587
  STATUS_COLORS[status],
@@ -14460,11 +14597,11 @@ ProgressBar.Indicator = (_a) => {
14460
14597
  };
14461
14598
  ProgressBar.Labels = (_a) => {
14462
14599
  var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
14463
- return /* @__PURE__ */ React101.createElement("div", {
14600
+ return /* @__PURE__ */ React102.createElement("div", {
14464
14601
  className: classNames(tw("flex flex-row"), className)
14465
- }, /* @__PURE__ */ React101.createElement("span", __spreadProps(__spreadValues({}, rest), {
14602
+ }, /* @__PURE__ */ React102.createElement("span", __spreadProps(__spreadValues({}, rest), {
14466
14603
  className: tw("grow text-default typography-caption")
14467
- }), startLabel), /* @__PURE__ */ React101.createElement("span", __spreadProps(__spreadValues({}, rest), {
14604
+ }), startLabel), /* @__PURE__ */ React102.createElement("span", __spreadProps(__spreadValues({}, rest), {
14468
14605
  className: tw("grow text-default typography-caption text-right")
14469
14606
  }), endLabel));
14470
14607
  };
@@ -14482,7 +14619,7 @@ var ProgressBar2 = (props) => {
14482
14619
  if (min > max) {
14483
14620
  throw new Error("`min` value provided to `ProgressBar` is greater than `max` value.");
14484
14621
  }
14485
- const progress = /* @__PURE__ */ React102.createElement(ProgressBar, null, /* @__PURE__ */ React102.createElement(ProgressBar.Indicator, {
14622
+ const progress = /* @__PURE__ */ React103.createElement(ProgressBar, null, /* @__PURE__ */ React103.createElement(ProgressBar.Indicator, {
14486
14623
  status: value === max ? completedStatus : progresStatus,
14487
14624
  min,
14488
14625
  max,
@@ -14492,15 +14629,15 @@ var ProgressBar2 = (props) => {
14492
14629
  if (props.dense) {
14493
14630
  return progress;
14494
14631
  }
14495
- return /* @__PURE__ */ React102.createElement("div", {
14632
+ return /* @__PURE__ */ React103.createElement("div", {
14496
14633
  className: "Aquarium-ProgressBar"
14497
- }, progress, /* @__PURE__ */ React102.createElement(ProgressBar.Labels, {
14634
+ }, progress, /* @__PURE__ */ React103.createElement(ProgressBar.Labels, {
14498
14635
  className: tw("py-2"),
14499
14636
  startLabel: props.startLabel,
14500
14637
  endLabel: props.endLabel
14501
14638
  }));
14502
14639
  };
14503
- var ProgressBarSkeleton = () => /* @__PURE__ */ React102.createElement(Skeleton, {
14640
+ var ProgressBarSkeleton = () => /* @__PURE__ */ React103.createElement(Skeleton, {
14504
14641
  height: 4,
14505
14642
  display: "block"
14506
14643
  });
@@ -14508,13 +14645,13 @@ ProgressBar2.Skeleton = ProgressBarSkeleton;
14508
14645
  ProgressBar2.Skeleton.displayName = "ProgressBar.Skeleton";
14509
14646
 
14510
14647
  // src/molecules/RadioButton/RadioButton.tsx
14511
- import React103 from "react";
14512
- var RadioButton2 = React103.forwardRef(
14648
+ import React104 from "react";
14649
+ var RadioButton2 = React104.forwardRef(
14513
14650
  (_a, ref) => {
14514
14651
  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"]);
14515
14652
  var _a2;
14516
14653
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
14517
- return !readOnly || isChecked ? /* @__PURE__ */ React103.createElement(ControlLabel, {
14654
+ return !readOnly || isChecked ? /* @__PURE__ */ React104.createElement(ControlLabel, {
14518
14655
  htmlFor: id,
14519
14656
  label: children,
14520
14657
  "aria-label": ariaLabel,
@@ -14523,7 +14660,7 @@ var RadioButton2 = React103.forwardRef(
14523
14660
  disabled,
14524
14661
  style: { gap: "0 8px" },
14525
14662
  className: "Aquarium-RadioButton"
14526
- }, !readOnly && /* @__PURE__ */ React103.createElement(RadioButton, __spreadProps(__spreadValues({
14663
+ }, !readOnly && /* @__PURE__ */ React104.createElement(RadioButton, __spreadProps(__spreadValues({
14527
14664
  id,
14528
14665
  ref,
14529
14666
  name
@@ -14534,12 +14671,12 @@ var RadioButton2 = React103.forwardRef(
14534
14671
  }
14535
14672
  );
14536
14673
  RadioButton2.displayName = "RadioButton";
14537
- var RadioButtonSkeleton = () => /* @__PURE__ */ React103.createElement("div", {
14674
+ var RadioButtonSkeleton = () => /* @__PURE__ */ React104.createElement("div", {
14538
14675
  className: tw("flex gap-3")
14539
- }, /* @__PURE__ */ React103.createElement(Skeleton, {
14676
+ }, /* @__PURE__ */ React104.createElement(Skeleton, {
14540
14677
  height: 20,
14541
14678
  width: 20
14542
- }), /* @__PURE__ */ React103.createElement(Skeleton, {
14679
+ }), /* @__PURE__ */ React104.createElement(Skeleton, {
14543
14680
  height: 20,
14544
14681
  width: 150
14545
14682
  }));
@@ -14547,10 +14684,10 @@ RadioButton2.Skeleton = RadioButtonSkeleton;
14547
14684
  RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
14548
14685
 
14549
14686
  // src/molecules/RadioButtonGroup/RadioButtonGroup.tsx
14550
- import React104 from "react";
14687
+ import React105 from "react";
14551
14688
  import { useId as useId15 } from "@react-aria/utils";
14552
14689
  var isRadioButton = (c) => {
14553
- return React104.isValidElement(c) && c.type === RadioButton2;
14690
+ return React105.isValidElement(c) && c.type === RadioButton2;
14554
14691
  };
14555
14692
  var RadioButtonGroup = (_a) => {
14556
14693
  var _b = _a, {
@@ -14573,7 +14710,7 @@ var RadioButtonGroup = (_a) => {
14573
14710
  "children"
14574
14711
  ]);
14575
14712
  var _a2;
14576
- const [value, setValue] = React104.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
14713
+ const [value, setValue] = React105.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
14577
14714
  const errorMessageId = useId15();
14578
14715
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
14579
14716
  const labelControlProps = getLabelControlProps(props);
@@ -14584,14 +14721,14 @@ var RadioButtonGroup = (_a) => {
14584
14721
  setValue(e.target.value);
14585
14722
  onChange == null ? void 0 : onChange(e.target.value);
14586
14723
  };
14587
- const content = React104.Children.map(children, (c) => {
14724
+ const content = React105.Children.map(children, (c) => {
14588
14725
  var _a3, _b2, _c;
14589
14726
  if (!isRadioButton(c)) {
14590
14727
  return null;
14591
14728
  }
14592
14729
  const defaultChecked = defaultValue === void 0 ? void 0 : c.props.value === defaultValue;
14593
14730
  const checked = value === void 0 ? void 0 : c.props.value === value;
14594
- return React104.cloneElement(c, {
14731
+ return React105.cloneElement(c, {
14595
14732
  name,
14596
14733
  defaultChecked: (_a3 = c.props.defaultChecked) != null ? _a3 : defaultChecked,
14597
14734
  checked: (_b2 = c.props.checked) != null ? _b2 : checked,
@@ -14600,13 +14737,13 @@ var RadioButtonGroup = (_a) => {
14600
14737
  readOnly
14601
14738
  });
14602
14739
  });
14603
- return /* @__PURE__ */ React104.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
14740
+ return /* @__PURE__ */ React105.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
14604
14741
  fieldset: true
14605
14742
  }, labelControlProps), errorProps), {
14606
14743
  className: "Aquarium-RadioButtonGroup"
14607
- }), cols && /* @__PURE__ */ React104.createElement(InputGroup, {
14744
+ }), cols && /* @__PURE__ */ React105.createElement(InputGroup, {
14608
14745
  cols
14609
- }, content), !cols && /* @__PURE__ */ React104.createElement(Flexbox, {
14746
+ }, content), !cols && /* @__PURE__ */ React105.createElement(Flexbox, {
14610
14747
  direction,
14611
14748
  alignItems: "flex-start",
14612
14749
  colGap: "8",
@@ -14615,12 +14752,12 @@ var RadioButtonGroup = (_a) => {
14615
14752
  }, content));
14616
14753
  };
14617
14754
  var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
14618
- return /* @__PURE__ */ React104.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React104.createElement("div", {
14755
+ return /* @__PURE__ */ React105.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React105.createElement("div", {
14619
14756
  className: tw("flex flex-wrap", {
14620
14757
  "flex-row gap-8": direction === "row",
14621
14758
  "flex-col gap-2": direction === "column"
14622
14759
  })
14623
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React104.createElement(RadioButton2.Skeleton, {
14760
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React105.createElement(RadioButton2.Skeleton, {
14624
14761
  key
14625
14762
  }))));
14626
14763
  };
@@ -14628,24 +14765,24 @@ RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
14628
14765
  RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
14629
14766
 
14630
14767
  // src/molecules/Section/Section.tsx
14631
- import React109 from "react";
14768
+ import React110 from "react";
14632
14769
  import { useId as useId16 } from "@react-aria/utils";
14633
- import { animated as animated5, useSpring as useSpring4 } from "@react-spring/web";
14770
+ import { animated as animated6, useSpring as useSpring5 } from "@react-spring/web";
14634
14771
  import castArray7 from "lodash/castArray";
14635
14772
  import isUndefined9 from "lodash/isUndefined";
14636
14773
 
14637
14774
  // src/molecules/Switch/Switch.tsx
14638
- import React106 from "react";
14775
+ import React107 from "react";
14639
14776
 
14640
14777
  // src/atoms/Switch/Switch.tsx
14641
- import React105 from "react";
14778
+ import React106 from "react";
14642
14779
  var import_ban2 = __toESM(require_ban());
14643
- var Switch = React105.forwardRef(
14780
+ var Switch = React106.forwardRef(
14644
14781
  (_a, ref) => {
14645
14782
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
14646
- return /* @__PURE__ */ React105.createElement("span", {
14783
+ return /* @__PURE__ */ React106.createElement("span", {
14647
14784
  className: tw("relative inline-flex justify-center items-center self-center group")
14648
- }, /* @__PURE__ */ React105.createElement("input", __spreadProps(__spreadValues({
14785
+ }, /* @__PURE__ */ React106.createElement("input", __spreadProps(__spreadValues({
14649
14786
  id,
14650
14787
  ref,
14651
14788
  type: "checkbox",
@@ -14664,7 +14801,7 @@ var Switch = React105.forwardRef(
14664
14801
  ),
14665
14802
  readOnly,
14666
14803
  disabled
14667
- })), /* @__PURE__ */ React105.createElement("span", {
14804
+ })), /* @__PURE__ */ React106.createElement("span", {
14668
14805
  className: tw(
14669
14806
  "pointer-events-none rounded-full absolute inline-flex justify-center items-center transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
14670
14807
  "bg-white left-2 peer-checked/switch:left-1 text-inactive peer-checked/switch:text-primary-muted",
@@ -14672,7 +14809,7 @@ var Switch = React105.forwardRef(
14672
14809
  "shadow-4dp": !disabled
14673
14810
  }
14674
14811
  )
14675
- }, disabled && /* @__PURE__ */ React105.createElement(Icon, {
14812
+ }, disabled && /* @__PURE__ */ React106.createElement(Icon, {
14676
14813
  icon: import_ban2.default,
14677
14814
  width: "10px",
14678
14815
  height: "10px"
@@ -14681,7 +14818,7 @@ var Switch = React105.forwardRef(
14681
14818
  );
14682
14819
 
14683
14820
  // src/molecules/Switch/Switch.tsx
14684
- var Switch2 = React106.forwardRef(
14821
+ var Switch2 = React107.forwardRef(
14685
14822
  (_a, ref) => {
14686
14823
  var _b = _a, {
14687
14824
  id,
@@ -14704,7 +14841,7 @@ var Switch2 = React106.forwardRef(
14704
14841
  ]);
14705
14842
  var _a2;
14706
14843
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
14707
- return !readOnly || isChecked ? /* @__PURE__ */ React106.createElement(ControlLabel, {
14844
+ return !readOnly || isChecked ? /* @__PURE__ */ React107.createElement(ControlLabel, {
14708
14845
  htmlFor: id,
14709
14846
  label: children,
14710
14847
  "aria-label": ariaLabel,
@@ -14714,7 +14851,7 @@ var Switch2 = React106.forwardRef(
14714
14851
  style: { gap: "0 8px" },
14715
14852
  labelPlacement,
14716
14853
  className: "Aquarium-Switch"
14717
- }, !readOnly && /* @__PURE__ */ React106.createElement(Switch, __spreadProps(__spreadValues({
14854
+ }, !readOnly && /* @__PURE__ */ React107.createElement(Switch, __spreadProps(__spreadValues({
14718
14855
  id,
14719
14856
  ref,
14720
14857
  name
@@ -14725,12 +14862,12 @@ var Switch2 = React106.forwardRef(
14725
14862
  }
14726
14863
  );
14727
14864
  Switch2.displayName = "Switch";
14728
- var SwitchSkeleton = () => /* @__PURE__ */ React106.createElement("div", {
14865
+ var SwitchSkeleton = () => /* @__PURE__ */ React107.createElement("div", {
14729
14866
  className: tw("flex gap-3")
14730
- }, /* @__PURE__ */ React106.createElement(Skeleton, {
14867
+ }, /* @__PURE__ */ React107.createElement(Skeleton, {
14731
14868
  height: 20,
14732
14869
  width: 35
14733
- }), /* @__PURE__ */ React106.createElement(Skeleton, {
14870
+ }), /* @__PURE__ */ React107.createElement(Skeleton, {
14734
14871
  height: 20,
14735
14872
  width: 150
14736
14873
  }));
@@ -14738,7 +14875,7 @@ Switch2.Skeleton = SwitchSkeleton;
14738
14875
  Switch2.Skeleton.displayName = "Switch.Skeleton ";
14739
14876
 
14740
14877
  // src/molecules/TagLabel/TagLabel.tsx
14741
- import React107 from "react";
14878
+ import React108 from "react";
14742
14879
  var getVariantClassNames = (variant = "primary") => {
14743
14880
  switch (variant) {
14744
14881
  case "danger":
@@ -14752,7 +14889,7 @@ var getVariantClassNames = (variant = "primary") => {
14752
14889
  };
14753
14890
  var TagLabel = (_a) => {
14754
14891
  var _b = _a, { title, dense = false, variant } = _b, rest = __objRest(_b, ["title", "dense", "variant"]);
14755
- return /* @__PURE__ */ React107.createElement("span", __spreadProps(__spreadValues({}, rest), {
14892
+ return /* @__PURE__ */ React108.createElement("span", __spreadProps(__spreadValues({}, rest), {
14756
14893
  className: classNames(
14757
14894
  "Aquarium-TagLabel",
14758
14895
  getVariantClassNames(variant),
@@ -14765,11 +14902,11 @@ var TagLabel = (_a) => {
14765
14902
  };
14766
14903
 
14767
14904
  // src/atoms/Section/Section.tsx
14768
- import React108 from "react";
14905
+ import React109 from "react";
14769
14906
  var import_caretUp2 = __toESM(require_caretUp());
14770
14907
  var Section3 = (_a) => {
14771
14908
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
14772
- return /* @__PURE__ */ React108.createElement(Box, __spreadValues({
14909
+ return /* @__PURE__ */ React109.createElement(Box, __spreadValues({
14773
14910
  component: "section",
14774
14911
  borderColor: "grey-5",
14775
14912
  borderWidth: "1px"
@@ -14777,7 +14914,7 @@ var Section3 = (_a) => {
14777
14914
  };
14778
14915
  Section3.Header = (_a) => {
14779
14916
  var _b = _a, { children, className, expanded } = _b, rest = __objRest(_b, ["children", "className", "expanded"]);
14780
- return /* @__PURE__ */ React108.createElement("div", __spreadProps(__spreadValues({}, rest), {
14917
+ return /* @__PURE__ */ React109.createElement("div", __spreadProps(__spreadValues({}, rest), {
14781
14918
  className: classNames(
14782
14919
  tw("px-6 flex gap-5 justify-between items-center h-[72px]", { "bg-muted": expanded }),
14783
14920
  className
@@ -14786,45 +14923,45 @@ Section3.Header = (_a) => {
14786
14923
  };
14787
14924
  Section3.TitleContainer = (_a) => {
14788
14925
  var _b = _a, { children, className, collapsible } = _b, rest = __objRest(_b, ["children", "className", "collapsible"]);
14789
- return /* @__PURE__ */ React108.createElement("div", __spreadProps(__spreadValues({}, rest), {
14926
+ return /* @__PURE__ */ React109.createElement("div", __spreadProps(__spreadValues({}, rest), {
14790
14927
  className: classNames(
14791
14928
  tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", { "cursor-pointer": collapsible }),
14792
14929
  className
14793
14930
  )
14794
14931
  }), children);
14795
14932
  };
14796
- Section3.Toggle = (props) => /* @__PURE__ */ React108.createElement(Icon, __spreadProps(__spreadValues({}, props), {
14933
+ Section3.Toggle = (props) => /* @__PURE__ */ React109.createElement(Icon, __spreadProps(__spreadValues({}, props), {
14797
14934
  icon: import_caretUp2.default,
14798
14935
  height: 22,
14799
14936
  width: 22
14800
14937
  }));
14801
14938
  Section3.Title = (_a) => {
14802
14939
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
14803
- return /* @__PURE__ */ React108.createElement(Typography2.Large, __spreadProps(__spreadValues({}, rest), {
14940
+ return /* @__PURE__ */ React109.createElement(Typography2.Large, __spreadProps(__spreadValues({}, rest), {
14804
14941
  htmlTag: "h2",
14805
- color: "black",
14942
+ color: "intense",
14806
14943
  className: "flex gap-3 items-center"
14807
14944
  }), children);
14808
14945
  };
14809
14946
  Section3.Subtitle = (_a) => {
14810
14947
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
14811
- return /* @__PURE__ */ React108.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
14812
- color: "grey-70"
14948
+ return /* @__PURE__ */ React109.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
14949
+ color: "default"
14813
14950
  }), children);
14814
14951
  };
14815
14952
  Section3.Actions = (_a) => {
14816
14953
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14817
- return /* @__PURE__ */ React108.createElement("div", __spreadProps(__spreadValues({}, rest), {
14954
+ return /* @__PURE__ */ React109.createElement("div", __spreadProps(__spreadValues({}, rest), {
14818
14955
  className: classNames(tw("flex gap-4 justify-end"), className)
14819
14956
  }), children);
14820
14957
  };
14821
14958
  Section3.Body = (_a) => {
14822
14959
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14823
- return /* @__PURE__ */ React108.createElement("div", __spreadProps(__spreadValues({}, rest), {
14960
+ return /* @__PURE__ */ React109.createElement("div", __spreadProps(__spreadValues({}, rest), {
14824
14961
  className: classNames(tw("p-6"), className)
14825
- }), /* @__PURE__ */ React108.createElement(Typography, {
14962
+ }), /* @__PURE__ */ React109.createElement(Typography, {
14826
14963
  htmlTag: "div",
14827
- color: "grey-70"
14964
+ color: "default"
14828
14965
  }, children));
14829
14966
  };
14830
14967
 
@@ -14836,7 +14973,7 @@ var Section4 = (props) => {
14836
14973
  const _collapsible = title ? (_a = props.collapsible) != null ? _a : false : false;
14837
14974
  const _collapsed = title ? props.collapsed : void 0;
14838
14975
  const _defaultCollapsed = title ? (_b = props.defaultCollapsed) != null ? _b : false : false;
14839
- const [isCollapsed, setCollapsed] = React109.useState(_collapsed != null ? _collapsed : _defaultCollapsed);
14976
+ const [isCollapsed, setCollapsed] = React110.useState(_collapsed != null ? _collapsed : _defaultCollapsed);
14840
14977
  const [ref, { height }] = useMeasure();
14841
14978
  const menu = title ? (_c = props.menu) != null ? _c : void 0 : void 0;
14842
14979
  const menuAriaLabel = title ? (_e = (_d = props.menuAriaLabel) != null ? _d : props.menuLabel) != null ? _e : "Context menu" : void 0;
@@ -14857,7 +14994,7 @@ var Section4 = (props) => {
14857
14994
  }
14858
14995
  };
14859
14996
  const targetHeight = isCollapsed ? "0px" : `${height != null ? height : 0}px`;
14860
- const _f = useSpring4({
14997
+ const _f = useSpring5({
14861
14998
  height: height !== null ? targetHeight : void 0,
14862
14999
  opacity: isCollapsed ? 0 : 1,
14863
15000
  transform: `rotate(${isCollapsed ? 90 : 180}deg)`,
@@ -14871,61 +15008,61 @@ var Section4 = (props) => {
14871
15008
  const regionId = useId16();
14872
15009
  const titleId = useId16();
14873
15010
  const hasTabs = isComponentType(children, Tabs);
14874
- return /* @__PURE__ */ React109.createElement(Section3, {
15011
+ return /* @__PURE__ */ React110.createElement(Section3, {
14875
15012
  "aria-label": title,
14876
15013
  className: "Aquarium-Section"
14877
- }, title && /* @__PURE__ */ React109.createElement(React109.Fragment, null, /* @__PURE__ */ React109.createElement(Section3.Header, {
15014
+ }, title && /* @__PURE__ */ React110.createElement(React110.Fragment, null, /* @__PURE__ */ React110.createElement(Section3.Header, {
14878
15015
  expanded: _collapsible && !isCollapsed
14879
- }, /* @__PURE__ */ React109.createElement(Section3.TitleContainer, {
15016
+ }, /* @__PURE__ */ React110.createElement(Section3.TitleContainer, {
14880
15017
  role: _collapsible ? "button" : void 0,
14881
15018
  id: toggleId,
14882
15019
  collapsible: _collapsible,
14883
15020
  onClick: handleTitleClick,
14884
15021
  "aria-expanded": _collapsible ? !isCollapsed : void 0,
14885
15022
  "aria-controls": _collapsible ? regionId : void 0
14886
- }, _collapsible && /* @__PURE__ */ React109.createElement(animated5.div, {
15023
+ }, _collapsible && /* @__PURE__ */ React110.createElement(animated6.div, {
14887
15024
  style: { transform }
14888
- }, /* @__PURE__ */ React109.createElement(Section3.Toggle, null)), /* @__PURE__ */ React109.createElement(Section3.Title, {
15025
+ }, /* @__PURE__ */ React110.createElement(Section3.Toggle, null)), /* @__PURE__ */ React110.createElement(Section3.Title, {
14889
15026
  id: titleId
14890
- }, /* @__PURE__ */ React109.createElement(LineClamp2, {
15027
+ }, /* @__PURE__ */ React110.createElement(LineClamp2, {
14891
15028
  lines: 1
14892
- }, title), props.tag && /* @__PURE__ */ React109.createElement(TagLabel, __spreadValues({}, props.tag)), props.badge && /* @__PURE__ */ React109.createElement(Chip2, {
15029
+ }, title), props.tag && /* @__PURE__ */ React110.createElement(TagLabel, __spreadValues({}, props.tag)), props.badge && /* @__PURE__ */ React110.createElement(Chip2, {
14893
15030
  text: props.badge
14894
- }), props.chip && /* @__PURE__ */ React109.createElement(StatusChip, __spreadValues({}, props.chip))), subtitle && /* @__PURE__ */ React109.createElement(Section3.Subtitle, {
15031
+ }), props.chip && /* @__PURE__ */ React110.createElement(StatusChip, __spreadValues({}, props.chip))), subtitle && /* @__PURE__ */ React110.createElement(Section3.Subtitle, {
14895
15032
  className: tw("row-start-2", { "col-start-2": _collapsible })
14896
- }, /* @__PURE__ */ React109.createElement(LineClamp2, {
15033
+ }, /* @__PURE__ */ React110.createElement(LineClamp2, {
14897
15034
  lines: 1
14898
- }, subtitle))), !isCollapsed && /* @__PURE__ */ React109.createElement(Section3.Actions, null, menu && /* @__PURE__ */ React109.createElement(Box.Flex, {
15035
+ }, subtitle))), !isCollapsed && /* @__PURE__ */ React110.createElement(Section3.Actions, null, menu && /* @__PURE__ */ React110.createElement(Box.Flex, {
14899
15036
  alignItems: "center"
14900
- }, /* @__PURE__ */ React109.createElement(DropdownMenu2, {
15037
+ }, /* @__PURE__ */ React110.createElement(DropdownMenu2, {
14901
15038
  onAction: (action) => onAction == null ? void 0 : onAction(action),
14902
15039
  onOpenChange: onMenuOpenChange,
14903
15040
  placement: defaultContextualMenuPlacement
14904
- }, /* @__PURE__ */ React109.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React109.createElement(Button.Icon, {
15041
+ }, /* @__PURE__ */ React110.createElement(DropdownMenu2.Trigger, null, /* @__PURE__ */ React110.createElement(Button.Icon, {
14905
15042
  "aria-label": menuAriaLabel,
14906
15043
  icon: import_more6.default
14907
- })), menu)), props.actions && castArray7(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.switch && /* @__PURE__ */ React109.createElement(Switch2, __spreadValues({}, props.switch)), props.select && /* @__PURE__ */ React109.createElement(SelectBase, __spreadValues({
15044
+ })), menu)), props.actions && castArray7(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.switch && /* @__PURE__ */ React110.createElement(Switch2, __spreadValues({}, props.switch)), props.select && /* @__PURE__ */ React110.createElement(SelectBase, __spreadValues({
14908
15045
  "aria-labelledby": titleId
14909
- }, props.select)))), !hasTabs && /* @__PURE__ */ React109.createElement(animated5.div, {
15046
+ }, props.select)))), !hasTabs && /* @__PURE__ */ React110.createElement(animated6.div, {
14910
15047
  className: tw(`h-[1px]`),
14911
15048
  style: { backgroundColor }
14912
- })), /* @__PURE__ */ React109.createElement(animated5.div, {
15049
+ })), /* @__PURE__ */ React110.createElement(animated6.div, {
14913
15050
  id: regionId,
14914
15051
  "aria-hidden": _collapsible ? isCollapsed ? true : void 0 : void 0,
14915
15052
  style: spring,
14916
15053
  className: tw({ "overflow-hidden": _collapsible })
14917
- }, /* @__PURE__ */ React109.createElement("div", {
15054
+ }, /* @__PURE__ */ React110.createElement("div", {
14918
15055
  ref
14919
- }, hasTabs ? /* @__PURE__ */ React109.createElement(SectionTabs, __spreadProps(__spreadValues({}, children.props), {
15056
+ }, hasTabs ? /* @__PURE__ */ React110.createElement(SectionTabs, __spreadProps(__spreadValues({}, children.props), {
14920
15057
  className: tw("[&>div:first-child]:px-3 grow flex flex-col overflow-y-auto", { "mt-4": _collapsible })
14921
- })) : /* @__PURE__ */ React109.createElement(Section3.Body, null, children))));
15058
+ })) : /* @__PURE__ */ React110.createElement(Section3.Body, null, children))));
14922
15059
  };
14923
- var SectionTabs = createTabsComponent(ModalTab, TabItem, "SectionTabs", (children, selected) => /* @__PURE__ */ React109.createElement(Section3.Body, null, children.find(
15060
+ var SectionTabs = createTabsComponent(ModalTab, TabItem, "SectionTabs", (children, selected) => /* @__PURE__ */ React110.createElement(Section3.Body, null, children.find(
14924
15061
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
14925
15062
  )));
14926
15063
 
14927
15064
  // src/molecules/SegmentedControl/SegmentedControl.tsx
14928
- import React110 from "react";
15065
+ import React111 from "react";
14929
15066
  var SegmentedControl = (_a) => {
14930
15067
  var _b = _a, {
14931
15068
  children,
@@ -14942,7 +15079,7 @@ var SegmentedControl = (_a) => {
14942
15079
  "selected",
14943
15080
  "className"
14944
15081
  ]);
14945
- return /* @__PURE__ */ React110.createElement("li", null, /* @__PURE__ */ React110.createElement("button", __spreadProps(__spreadValues({
15082
+ return /* @__PURE__ */ React111.createElement("li", null, /* @__PURE__ */ React111.createElement("button", __spreadProps(__spreadValues({
14946
15083
  type: "button"
14947
15084
  }, rest), {
14948
15085
  className: classNames(
@@ -14976,12 +15113,12 @@ var SegmentedControlGroup = (_a) => {
14976
15113
  "border border-default text-muted": variant === "outlined",
14977
15114
  "bg-muted": variant === "raised"
14978
15115
  });
14979
- return /* @__PURE__ */ React110.createElement("ul", __spreadProps(__spreadValues({}, rest), {
15116
+ return /* @__PURE__ */ React111.createElement("ul", __spreadProps(__spreadValues({}, rest), {
14980
15117
  "aria-label": ariaLabel,
14981
15118
  className: classNames("Aquarium-SegmentedControl", classes2, className)
14982
- }), React110.Children.map(
15119
+ }), React111.Children.map(
14983
15120
  children,
14984
- (child) => React110.cloneElement(child, {
15121
+ (child) => React111.cloneElement(child, {
14985
15122
  dense,
14986
15123
  variant,
14987
15124
  onClick: () => onChange(child.props.value),
@@ -15019,14 +15156,14 @@ var getCommonClassNames = (dense, selected) => tw(
15019
15156
  );
15020
15157
 
15021
15158
  // src/molecules/Stepper/Stepper.tsx
15022
- import React112 from "react";
15159
+ import React113 from "react";
15023
15160
 
15024
15161
  // src/atoms/Stepper/Stepper.tsx
15025
- import React111 from "react";
15162
+ import React112 from "react";
15026
15163
  var import_tick6 = __toESM(require_tick());
15027
15164
  var Stepper = (_a) => {
15028
15165
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
15029
- return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
15166
+ return /* @__PURE__ */ React112.createElement("div", __spreadProps(__spreadValues({}, rest), {
15030
15167
  className: classNames(className)
15031
15168
  }));
15032
15169
  };
@@ -15040,7 +15177,7 @@ var ConnectorContainer = (_a) => {
15040
15177
  "completed",
15041
15178
  "dense"
15042
15179
  ]);
15043
- return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
15180
+ return /* @__PURE__ */ React112.createElement("div", __spreadProps(__spreadValues({}, rest), {
15044
15181
  className: classNames(
15045
15182
  tw("absolute w-full -left-1/2", {
15046
15183
  "top-[3px] px-[14px]": Boolean(dense),
@@ -15052,7 +15189,7 @@ var ConnectorContainer = (_a) => {
15052
15189
  };
15053
15190
  var Connector = (_a) => {
15054
15191
  var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
15055
- return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
15192
+ return /* @__PURE__ */ React112.createElement("div", __spreadProps(__spreadValues({}, rest), {
15056
15193
  className: classNames(
15057
15194
  tw("w-full", {
15058
15195
  "bg-intense": !completed,
@@ -15066,7 +15203,7 @@ var Connector = (_a) => {
15066
15203
  };
15067
15204
  var Step = (_a) => {
15068
15205
  var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
15069
- return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
15206
+ return /* @__PURE__ */ React112.createElement("div", __spreadProps(__spreadValues({}, rest), {
15070
15207
  className: classNames(
15071
15208
  tw("flex flex-col items-center relative text-center", {
15072
15209
  "text-intense": state !== "inactive",
@@ -15077,8 +15214,8 @@ var Step = (_a) => {
15077
15214
  }));
15078
15215
  };
15079
15216
  var getClassNames = (state) => tw("h-[32px] w-[32px] border-2", {
15080
- "border-grey-90 bg-body": state === "active",
15081
- "border-default bg-body": state === "inactive",
15217
+ "border-intense": state === "active",
15218
+ "border-default": state === "inactive",
15082
15219
  "text-white bg-success-default border-success-intense": state === "completed"
15083
15220
  });
15084
15221
  var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
@@ -15088,13 +15225,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
15088
15225
  });
15089
15226
  var Indicator = (_a) => {
15090
15227
  var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
15091
- return /* @__PURE__ */ React111.createElement("div", __spreadProps(__spreadValues({}, rest), {
15228
+ return /* @__PURE__ */ React112.createElement("div", __spreadProps(__spreadValues({}, rest), {
15092
15229
  className: classNames(
15093
15230
  tw("rounded-full flex justify-center items-center mx-2 mb-3"),
15094
15231
  dense ? getDenseClassNames(state) : getClassNames(state),
15095
15232
  className
15096
15233
  )
15097
- }), state === "completed" ? /* @__PURE__ */ React111.createElement(InlineIcon, {
15234
+ }), state === "completed" ? /* @__PURE__ */ React112.createElement(InlineIcon, {
15098
15235
  icon: import_tick6.default
15099
15236
  }) : dense ? null : children);
15100
15237
  };
@@ -15105,26 +15242,26 @@ Stepper.ConnectorContainer = ConnectorContainer;
15105
15242
 
15106
15243
  // src/molecules/Stepper/Stepper.tsx
15107
15244
  var Stepper2 = ({ children, activeIndex, dense }) => {
15108
- const steps = React112.Children.count(children);
15109
- return /* @__PURE__ */ React112.createElement(Stepper, {
15245
+ const steps = React113.Children.count(children);
15246
+ return /* @__PURE__ */ React113.createElement(Stepper, {
15110
15247
  role: "list",
15111
15248
  className: "Aquarium-Stepper"
15112
- }, /* @__PURE__ */ React112.createElement(Template, {
15249
+ }, /* @__PURE__ */ React113.createElement(Template, {
15113
15250
  columns: steps
15114
- }, React112.Children.map(children, (child, index) => {
15251
+ }, React113.Children.map(children, (child, index) => {
15115
15252
  if (!isComponentType(child, Step2)) {
15116
15253
  throw new Error("<Stepper> can only have <Stepper.Step> components as children");
15117
15254
  } else {
15118
15255
  const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
15119
- return /* @__PURE__ */ React112.createElement(Stepper.Step, {
15256
+ return /* @__PURE__ */ React113.createElement(Stepper.Step, {
15120
15257
  state,
15121
15258
  "aria-current": state === "active" ? "step" : false,
15122
15259
  role: "listitem"
15123
- }, index > 0 && index <= steps && /* @__PURE__ */ React112.createElement(Stepper.ConnectorContainer, {
15260
+ }, index > 0 && index <= steps && /* @__PURE__ */ React113.createElement(Stepper.ConnectorContainer, {
15124
15261
  dense
15125
- }, /* @__PURE__ */ React112.createElement(Stepper.ConnectorContainer.Connector, {
15262
+ }, /* @__PURE__ */ React113.createElement(Stepper.ConnectorContainer.Connector, {
15126
15263
  completed: state === "completed" || state === "active"
15127
- })), /* @__PURE__ */ React112.createElement(Stepper.Step.Indicator, {
15264
+ })), /* @__PURE__ */ React113.createElement(Stepper.Step.Indicator, {
15128
15265
  state,
15129
15266
  dense
15130
15267
  }, index + 1), child.props.children);
@@ -15137,7 +15274,7 @@ Step2.displayName = "Stepper.Step";
15137
15274
  Stepper2.Step = Step2;
15138
15275
 
15139
15276
  // src/molecules/SwitchGroup/SwitchGroup.tsx
15140
- import React113, { useState as useState13 } from "react";
15277
+ import React114, { useState as useState14 } from "react";
15141
15278
  import { useId as useId17 } from "@react-aria/utils";
15142
15279
  var SwitchGroup = (_a) => {
15143
15280
  var _b = _a, {
@@ -15156,7 +15293,7 @@ var SwitchGroup = (_a) => {
15156
15293
  "children"
15157
15294
  ]);
15158
15295
  var _a2;
15159
- const [selectedItems, setSelectedItems] = useState13((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
15296
+ const [selectedItems, setSelectedItems] = useState14((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
15160
15297
  if (value !== void 0 && value !== selectedItems) {
15161
15298
  setSelectedItems(value);
15162
15299
  }
@@ -15169,13 +15306,13 @@ var SwitchGroup = (_a) => {
15169
15306
  setSelectedItems(updated);
15170
15307
  onChange == null ? void 0 : onChange(updated);
15171
15308
  };
15172
- return /* @__PURE__ */ React113.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
15309
+ return /* @__PURE__ */ React114.createElement(LabelControl, __spreadProps(__spreadValues(__spreadValues({
15173
15310
  fieldset: true
15174
15311
  }, labelControlProps), errorProps), {
15175
15312
  className: "Aquarium-SwitchGroup"
15176
- }), /* @__PURE__ */ React113.createElement(InputGroup, {
15313
+ }), /* @__PURE__ */ React114.createElement(InputGroup, {
15177
15314
  cols
15178
- }, React113.Children.map(children, (c) => {
15315
+ }, React114.Children.map(children, (c) => {
15179
15316
  var _a3, _b2, _c, _d;
15180
15317
  if (!isComponentType(c, Switch2)) {
15181
15318
  return null;
@@ -15183,7 +15320,7 @@ var SwitchGroup = (_a) => {
15183
15320
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
15184
15321
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
15185
15322
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
15186
- return React113.cloneElement(c, {
15323
+ return React114.cloneElement(c, {
15187
15324
  defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
15188
15325
  checked: (_c = c.props.checked) != null ? _c : checked,
15189
15326
  onChange: (_d = c.props.onChange) != null ? _d : handleChange,
@@ -15193,9 +15330,9 @@ var SwitchGroup = (_a) => {
15193
15330
  })));
15194
15331
  };
15195
15332
  var SwitchGroupSkeleton = ({ options = 2 }) => {
15196
- return /* @__PURE__ */ React113.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React113.createElement("div", {
15333
+ return /* @__PURE__ */ React114.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React114.createElement("div", {
15197
15334
  className: tw("flex flex-wrap flex-col gap-2")
15198
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React113.createElement(Switch2.Skeleton, {
15335
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React114.createElement(Switch2.Skeleton, {
15199
15336
  key
15200
15337
  }))));
15201
15338
  };
@@ -15203,14 +15340,14 @@ SwitchGroup.Skeleton = SwitchGroupSkeleton;
15203
15340
  SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
15204
15341
 
15205
15342
  // src/molecules/Textarea/Textarea.tsx
15206
- import React114, { useState as useState14 } from "react";
15343
+ import React115, { useState as useState15 } from "react";
15207
15344
  import { useId as useId18 } from "@react-aria/utils";
15208
15345
  import omit16 from "lodash/omit";
15209
15346
  import toString2 from "lodash/toString";
15210
- var TextareaBase = React114.forwardRef(
15347
+ var TextareaBase = React115.forwardRef(
15211
15348
  (_a, ref) => {
15212
15349
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
15213
- return /* @__PURE__ */ React114.createElement("textarea", __spreadProps(__spreadValues({
15350
+ return /* @__PURE__ */ React115.createElement("textarea", __spreadProps(__spreadValues({
15214
15351
  ref
15215
15352
  }, props), {
15216
15353
  readOnly,
@@ -15218,26 +15355,26 @@ var TextareaBase = React114.forwardRef(
15218
15355
  }));
15219
15356
  }
15220
15357
  );
15221
- TextareaBase.Skeleton = () => /* @__PURE__ */ React114.createElement(Skeleton, {
15358
+ TextareaBase.Skeleton = () => /* @__PURE__ */ React115.createElement(Skeleton, {
15222
15359
  height: 58
15223
15360
  });
15224
- var Textarea = React114.forwardRef((props, ref) => {
15361
+ var Textarea = React115.forwardRef((props, ref) => {
15225
15362
  var _a, _b, _c;
15226
- const [value, setValue] = useState14((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
15363
+ const [value, setValue] = useState15((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
15227
15364
  const defaultId = useId18();
15228
15365
  const id = (_c = props.id) != null ? _c : defaultId;
15229
15366
  const errorMessageId = useId18();
15230
15367
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
15231
15368
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
15232
15369
  const baseProps = omit16(props, Object.keys(labelControlProps));
15233
- return /* @__PURE__ */ React114.createElement(LabelControl, __spreadProps(__spreadValues({
15370
+ return /* @__PURE__ */ React115.createElement(LabelControl, __spreadProps(__spreadValues({
15234
15371
  id: `${id}-label`,
15235
15372
  htmlFor: id,
15236
15373
  messageId: errorMessageId,
15237
15374
  length: value !== void 0 ? toString2(value).length : void 0
15238
15375
  }, labelControlProps), {
15239
15376
  className: "Aquarium-Textarea"
15240
- }), /* @__PURE__ */ React114.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
15377
+ }), /* @__PURE__ */ React115.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
15241
15378
  ref
15242
15379
  }, baseProps), errorProps), {
15243
15380
  id,
@@ -15254,48 +15391,48 @@ var Textarea = React114.forwardRef((props, ref) => {
15254
15391
  })));
15255
15392
  });
15256
15393
  Textarea.displayName = "Textarea";
15257
- var TextAreaSkeleton = () => /* @__PURE__ */ React114.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React114.createElement(TextareaBase.Skeleton, null));
15394
+ var TextAreaSkeleton = () => /* @__PURE__ */ React115.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React115.createElement(TextareaBase.Skeleton, null));
15258
15395
  Textarea.Skeleton = TextAreaSkeleton;
15259
15396
  Textarea.Skeleton.displayName = "Textarea.Skeleton";
15260
15397
 
15261
15398
  // src/molecules/Timeline/Timeline.tsx
15262
- import React116 from "react";
15399
+ import React117 from "react";
15263
15400
 
15264
15401
  // src/atoms/Timeline/Timeline.tsx
15265
- import React115 from "react";
15402
+ import React116 from "react";
15266
15403
  var Timeline = (_a) => {
15267
15404
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
15268
- return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
15405
+ return /* @__PURE__ */ React116.createElement("div", __spreadProps(__spreadValues({}, rest), {
15269
15406
  className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
15270
15407
  }));
15271
15408
  };
15272
15409
  var Content2 = (_a) => {
15273
15410
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
15274
- return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
15411
+ return /* @__PURE__ */ React116.createElement("div", __spreadProps(__spreadValues({}, rest), {
15275
15412
  className: classNames(tw("pb-6"), className)
15276
15413
  }));
15277
15414
  };
15278
15415
  var Separator2 = (_a) => {
15279
15416
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
15280
- return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
15417
+ return /* @__PURE__ */ React116.createElement("div", __spreadProps(__spreadValues({}, rest), {
15281
15418
  className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
15282
15419
  }));
15283
15420
  };
15284
15421
  var LineContainer = (_a) => {
15285
15422
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
15286
- return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
15423
+ return /* @__PURE__ */ React116.createElement("div", __spreadProps(__spreadValues({}, rest), {
15287
15424
  className: classNames(tw("flex justify-center py-1"), className)
15288
15425
  }));
15289
15426
  };
15290
15427
  var Line = (_a) => {
15291
15428
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
15292
- return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
15429
+ return /* @__PURE__ */ React116.createElement("div", __spreadProps(__spreadValues({}, rest), {
15293
15430
  className: classNames(tw("w-1 bg-default h-full justify-self-center"), className)
15294
15431
  }));
15295
15432
  };
15296
15433
  var Dot = (_a) => {
15297
15434
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
15298
- return /* @__PURE__ */ React115.createElement("div", __spreadProps(__spreadValues({}, rest), {
15435
+ return /* @__PURE__ */ React116.createElement("div", __spreadProps(__spreadValues({}, rest), {
15299
15436
  className: classNames(tw("bg-intense h-[6px] w-[6px] rounded"), className)
15300
15437
  }));
15301
15438
  };
@@ -15310,54 +15447,54 @@ var import_error5 = __toESM(require_error());
15310
15447
  var import_time2 = __toESM(require_time());
15311
15448
  var import_warningSign5 = __toESM(require_warningSign());
15312
15449
  var TimelineItem = () => null;
15313
- var Timeline2 = ({ children }) => /* @__PURE__ */ React116.createElement("div", {
15450
+ var Timeline2 = ({ children }) => /* @__PURE__ */ React117.createElement("div", {
15314
15451
  className: "Aquarium-Timeline"
15315
- }, React116.Children.map(children, (item) => {
15452
+ }, React117.Children.map(children, (item) => {
15316
15453
  if (!isComponentType(item, TimelineItem)) {
15317
15454
  throw new Error("<Timeline> can only have <Timeline.Item> components as children");
15318
15455
  } else {
15319
15456
  const { props, key } = item;
15320
- return /* @__PURE__ */ React116.createElement(Timeline, {
15457
+ return /* @__PURE__ */ React117.createElement(Timeline, {
15321
15458
  key: key != null ? key : props.title
15322
- }, /* @__PURE__ */ React116.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React116.createElement(Icon, {
15459
+ }, /* @__PURE__ */ React117.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React117.createElement(Icon, {
15323
15460
  icon: import_error5.default,
15324
15461
  color: "danger-default"
15325
- }) : props.variant === "warning" ? /* @__PURE__ */ React116.createElement(Icon, {
15462
+ }) : props.variant === "warning" ? /* @__PURE__ */ React117.createElement(Icon, {
15326
15463
  icon: import_warningSign5.default,
15327
15464
  color: "warning-default"
15328
- }) : props.variant === "info" ? /* @__PURE__ */ React116.createElement(Icon, {
15465
+ }) : props.variant === "info" ? /* @__PURE__ */ React117.createElement(Icon, {
15329
15466
  icon: import_time2.default,
15330
15467
  color: "info-default"
15331
- }) : /* @__PURE__ */ React116.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React116.createElement(Typography2.Caption, {
15332
- color: "grey-50"
15333
- }, props.title), /* @__PURE__ */ React116.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React116.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React116.createElement(Timeline.Content, null, /* @__PURE__ */ React116.createElement(Typography2.Small, null, props.children)));
15468
+ }) : /* @__PURE__ */ React117.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React117.createElement(Typography2.Caption, {
15469
+ color: "muted"
15470
+ }, props.title), /* @__PURE__ */ React117.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React117.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React117.createElement(Timeline.Content, null, /* @__PURE__ */ React117.createElement(Typography2.Small, null, props.children)));
15334
15471
  }
15335
15472
  }));
15336
- var TimelineItemSkeleton = () => /* @__PURE__ */ React116.createElement(Timeline, null, /* @__PURE__ */ React116.createElement(Timeline.Separator, null, /* @__PURE__ */ React116.createElement(Skeleton, {
15473
+ var TimelineItemSkeleton = () => /* @__PURE__ */ React117.createElement(Timeline, null, /* @__PURE__ */ React117.createElement(Timeline.Separator, null, /* @__PURE__ */ React117.createElement(Skeleton, {
15337
15474
  width: 6,
15338
15475
  height: 6,
15339
15476
  rounded: true
15340
- })), /* @__PURE__ */ React116.createElement(Skeleton, {
15477
+ })), /* @__PURE__ */ React117.createElement(Skeleton, {
15341
15478
  height: 12,
15342
15479
  width: 120
15343
- }), /* @__PURE__ */ React116.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React116.createElement(Skeleton, {
15480
+ }), /* @__PURE__ */ React117.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React117.createElement(Skeleton, {
15344
15481
  width: 2,
15345
15482
  height: "100%"
15346
- })), /* @__PURE__ */ React116.createElement(Timeline.Content, null, /* @__PURE__ */ React116.createElement(Box, {
15483
+ })), /* @__PURE__ */ React117.createElement(Timeline.Content, null, /* @__PURE__ */ React117.createElement(Box, {
15347
15484
  display: "flex",
15348
15485
  flexDirection: "column",
15349
15486
  gap: "3"
15350
- }, /* @__PURE__ */ React116.createElement(Skeleton, {
15487
+ }, /* @__PURE__ */ React117.createElement(Skeleton, {
15351
15488
  height: 32,
15352
15489
  width: "100%"
15353
- }), /* @__PURE__ */ React116.createElement(Skeleton, {
15490
+ }), /* @__PURE__ */ React117.createElement(Skeleton, {
15354
15491
  height: 32,
15355
15492
  width: "73%"
15356
- }), /* @__PURE__ */ React116.createElement(Skeleton, {
15493
+ }), /* @__PURE__ */ React117.createElement(Skeleton, {
15357
15494
  height: 32,
15358
15495
  width: "80%"
15359
15496
  }))));
15360
- var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React116.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React116.createElement(TimelineItemSkeleton, {
15497
+ var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React117.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React117.createElement(TimelineItemSkeleton, {
15361
15498
  key
15362
15499
  })));
15363
15500
  Timeline2.Item = TimelineItem;
@@ -15365,9 +15502,9 @@ Timeline2.Skeleton = TimelineSkeleton;
15365
15502
  Timeline2.Skeleton.displayName = "Timeline.Skeleton";
15366
15503
 
15367
15504
  // src/utils/table/useTableSelect.ts
15368
- import React117 from "react";
15505
+ import React118 from "react";
15369
15506
  var useTableSelect = (data, { key }) => {
15370
- const [selected, setSelected] = React117.useState([]);
15507
+ const [selected, setSelected] = React118.useState([]);
15371
15508
  const allSelected = selected.length === data.length;
15372
15509
  const isSelected = (dot) => selected.includes(dot[key]);
15373
15510
  const selectAll = () => setSelected(data.map((dot) => dot[key]));