@aivenio/aquarium 1.6.0 → 1.7.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.
package/dist/system.mjs CHANGED
@@ -1586,6 +1586,7 @@ __export(components_exports, {
1586
1586
  InlineIcon: () => InlineIcon,
1587
1587
  Input: () => Input2,
1588
1588
  InputBase: () => InputBase,
1589
+ LineClamp: () => LineClamp,
1589
1590
  List: () => List,
1590
1591
  ListItem: () => ListItem,
1591
1592
  Modal: () => Modal2,
@@ -6349,7 +6350,7 @@ var MenuWrapper = (_a) => {
6349
6350
  var ItemWrapper = ({ item, state }) => {
6350
6351
  const ref = React59.useRef(null);
6351
6352
  const { menuItemProps, descriptionProps, isSelected, isFocused, isDisabled } = useMenuItem(
6352
- { key: item.key },
6353
+ { key: item.key, closeOnSelect: item.props.closeOnSelect },
6353
6354
  state,
6354
6355
  ref
6355
6356
  );
@@ -6571,24 +6572,44 @@ var GridItem = Tailwindify(
6571
6572
  }
6572
6573
  );
6573
6574
 
6574
- // src/components/List/List.tsx
6575
+ // src/components/LineClamp/LineClamp.tsx
6575
6576
  import React63 from "react";
6576
- var List = ({ items, renderItem, container = React63.Fragment }) => {
6577
+ var LineClamp = ({ lines, children, expandLabel, collapseLabel }) => {
6578
+ const ref = React63.useRef(null);
6579
+ const [clamped, setClamped] = React63.useState(true);
6580
+ const [isClampingEnabled, setClampingEnabled] = React63.useState(false);
6581
+ React63.useEffect(() => {
6582
+ var _a, _b;
6583
+ const el = ref.current;
6584
+ setClampingEnabled(((_a = el == null ? void 0 : el.scrollHeight) != null ? _a : 0) > ((_b = el == null ? void 0 : el.clientHeight) != null ? _b : 0));
6585
+ }, [ref.current]);
6586
+ return /* @__PURE__ */ React63.createElement("div", null, /* @__PURE__ */ React63.createElement("div", {
6587
+ ref,
6588
+ className: classNames({ [`line-clamp-${lines}`]: clamped })
6589
+ }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React63.createElement(GhostButton, {
6590
+ dense: true,
6591
+ onClick: () => setClamped(!clamped)
6592
+ }, clamped ? expandLabel : collapseLabel));
6593
+ };
6594
+
6595
+ // src/components/List/List.tsx
6596
+ import React64 from "react";
6597
+ var List = ({ items, renderItem, container = React64.Fragment }) => {
6577
6598
  const Component = container;
6578
- return /* @__PURE__ */ React63.createElement(Component, null, items.map(renderItem));
6599
+ return /* @__PURE__ */ React64.createElement(Component, null, items.map(renderItem));
6579
6600
  };
6580
6601
 
6581
6602
  // src/components/ListItem/ListItem.tsx
6582
- import React64 from "react";
6603
+ import React65 from "react";
6583
6604
  var ListItem = ({ name, icon, active = false }) => {
6584
- return /* @__PURE__ */ React64.createElement(Flexbox, {
6605
+ return /* @__PURE__ */ React65.createElement(Flexbox, {
6585
6606
  alignItems: "center"
6586
- }, /* @__PURE__ */ React64.createElement(Typography2, {
6607
+ }, /* @__PURE__ */ React65.createElement(Typography2, {
6587
6608
  variant: active ? "small-strong" : "small",
6588
6609
  color: "grey-70",
6589
6610
  htmlTag: "span",
6590
6611
  className: `px-4 py-2 rounded-full ${active ? "bg-grey-5" : "hover:bg-grey-0"}`
6591
- }, /* @__PURE__ */ React64.createElement("img", {
6612
+ }, /* @__PURE__ */ React65.createElement("img", {
6592
6613
  src: icon,
6593
6614
  alt: name,
6594
6615
  className: "inline mr-4",
@@ -6598,7 +6619,7 @@ var ListItem = ({ name, icon, active = false }) => {
6598
6619
  };
6599
6620
 
6600
6621
  // src/components/Modal/Modal.tsx
6601
- import React66 from "react";
6622
+ import React67 from "react";
6602
6623
  import { useDialog as useDialog2 } from "@react-aria/dialog";
6603
6624
  import { FocusScope as FocusScope3 } from "@react-aria/focus";
6604
6625
  import { Overlay as Overlay2, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
@@ -6608,18 +6629,18 @@ import castArray from "lodash/castArray";
6608
6629
  import omit10 from "lodash/omit";
6609
6630
 
6610
6631
  // src/components/Tabs/Tabs.tsx
6611
- import React65, { useEffect as useEffect5, useLayoutEffect as useLayoutEffect2, useRef as useRef6, useState as useState7 } from "react";
6632
+ import React66, { useEffect as useEffect5, useLayoutEffect as useLayoutEffect2, useRef as useRef6, useState as useState7 } from "react";
6612
6633
  import isNumber4 from "lodash/isNumber";
6613
6634
  import kebabCase from "lodash/kebabCase";
6614
6635
  var import_chevronLeft2 = __toESM(require_chevronLeft());
6615
6636
  var import_chevronRight2 = __toESM(require_chevronRight());
6616
6637
  var import_warningSign3 = __toESM(require_warningSign());
6617
6638
  var isTabComponent = (c) => {
6618
- return React65.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
6639
+ return React66.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
6619
6640
  };
6620
- var Tab = React65.forwardRef(
6641
+ var Tab = React66.forwardRef(
6621
6642
  ({ className, id, title, children }, ref) => {
6622
- return /* @__PURE__ */ React65.createElement("div", {
6643
+ return /* @__PURE__ */ React66.createElement("div", {
6623
6644
  ref,
6624
6645
  id: `${id != null ? id : kebabCase(title)}-panel`,
6625
6646
  className,
@@ -6631,14 +6652,14 @@ var Tab = React65.forwardRef(
6631
6652
  );
6632
6653
  var TabContainer = (_a) => {
6633
6654
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
6634
- return /* @__PURE__ */ React65.createElement("div", __spreadProps(__spreadValues({}, rest), {
6655
+ return /* @__PURE__ */ React66.createElement("div", __spreadProps(__spreadValues({}, rest), {
6635
6656
  className: classNames("py-6 z-0", className)
6636
6657
  }), children);
6637
6658
  };
6638
6659
  var ModalTab = Tab;
6639
6660
  var ModalTabContainer = TabContainer;
6640
6661
  var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6641
- const Tab2 = React65.forwardRef(
6662
+ const Tab2 = React66.forwardRef(
6642
6663
  (_a, ref) => {
6643
6664
  var _b = _a, {
6644
6665
  id,
@@ -6668,17 +6689,17 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6668
6689
  const _id = id != null ? id : kebabCase(title);
6669
6690
  let statusIcon = void 0;
6670
6691
  if (status === "warning") {
6671
- statusIcon = /* @__PURE__ */ React65.createElement(InlineIcon, {
6692
+ statusIcon = /* @__PURE__ */ React66.createElement(InlineIcon, {
6672
6693
  icon: import_warningSign3.default,
6673
6694
  color: "warning-80"
6674
6695
  });
6675
6696
  } else if (status === "error") {
6676
- statusIcon = /* @__PURE__ */ React65.createElement(InlineIcon, {
6697
+ statusIcon = /* @__PURE__ */ React66.createElement(InlineIcon, {
6677
6698
  icon: import_warningSign3.default,
6678
6699
  color: "error-50"
6679
6700
  });
6680
6701
  }
6681
- const tab = /* @__PURE__ */ React65.createElement(Component, __spreadValues({
6702
+ const tab = /* @__PURE__ */ React66.createElement(Component, __spreadValues({
6682
6703
  ref,
6683
6704
  id: `${_id}-tab`,
6684
6705
  onClick: () => !disabled && onSelected(value != null ? value : index),
@@ -6695,24 +6716,24 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6695
6716
  "aria-selected": selected,
6696
6717
  "aria-controls": `${_id}-panel`,
6697
6718
  tabIndex: disabled ? void 0 : 0
6698
- }, rest), /* @__PURE__ */ React65.createElement(Typography2, {
6719
+ }, rest), /* @__PURE__ */ React66.createElement(Typography2, {
6699
6720
  htmlTag: "div",
6700
6721
  variant: "small",
6701
6722
  color: selected ? "primary-80" : disabled ? "grey-20" : "current",
6702
6723
  className: tw("inline-flex items-center gap-3")
6703
- }, /* @__PURE__ */ React65.createElement("span", {
6724
+ }, /* @__PURE__ */ React66.createElement("span", {
6704
6725
  className: tw("whitespace-nowrap")
6705
- }, title), isNumber4(badge) && /* @__PURE__ */ React65.createElement(Typography2, {
6726
+ }, title), isNumber4(badge) && /* @__PURE__ */ React66.createElement(Typography2, {
6706
6727
  htmlTag: "span",
6707
6728
  variant: "small",
6708
6729
  color: selected ? "primary-80" : "grey-5",
6709
6730
  className: "leading-none"
6710
- }, /* @__PURE__ */ React65.createElement(TabBadge, {
6731
+ }, /* @__PURE__ */ React66.createElement(TabBadge, {
6711
6732
  kind: "filled",
6712
6733
  value: badge,
6713
6734
  textClassname: classNames({ "text-white": selected, "text-grey-50": !selected })
6714
6735
  })), statusIcon));
6715
- return tooltip ? /* @__PURE__ */ React65.createElement(Tooltip, {
6736
+ return tooltip ? /* @__PURE__ */ React66.createElement(Tooltip, {
6716
6737
  content: tooltip
6717
6738
  }, tab) : tab;
6718
6739
  }
@@ -6726,7 +6747,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6726
6747
  const Tabs2 = (props) => {
6727
6748
  var _a, _b;
6728
6749
  const { className, value, defaultValue, onChange, children } = props;
6729
- const childArr = React65.Children.toArray(children);
6750
+ const childArr = React66.Children.toArray(children);
6730
6751
  const firstTab = childArr[0];
6731
6752
  const firstTabValue = isTabComponent(firstTab) ? firstTab.props.value : -1;
6732
6753
  const [selected, setSelected] = useState7((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
@@ -6739,7 +6760,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6739
6760
  var _a2, _b2;
6740
6761
  const container = containerRef.current;
6741
6762
  const tabs = tabsRef.current;
6742
- const values = React65.Children.map(
6763
+ const values = React66.Children.map(
6743
6764
  children,
6744
6765
  (tab, i) => {
6745
6766
  var _a3;
@@ -6780,7 +6801,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6780
6801
  updateCarets();
6781
6802
  setSelected(value);
6782
6803
  revealSelectedTab({ smooth: value !== selected });
6783
- }, [value, React65.Children.count(children)]);
6804
+ }, [value, React66.Children.count(children)]);
6784
6805
  useLayoutEffect2(() => {
6785
6806
  var _a2;
6786
6807
  updateCarets();
@@ -6844,27 +6865,27 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6844
6865
  const handleSelected = (key) => {
6845
6866
  (onChange != null ? onChange : setSelected)(key);
6846
6867
  };
6847
- React65.Children.forEach(children, (c) => {
6868
+ React66.Children.forEach(children, (c) => {
6848
6869
  if (c && !isTabComponent(c)) {
6849
6870
  throw new Error("<Tabs> can only have <Tabs.Tab> components as children");
6850
6871
  }
6851
6872
  });
6852
- return /* @__PURE__ */ React65.createElement("div", {
6873
+ return /* @__PURE__ */ React66.createElement("div", {
6853
6874
  ref: parentRef,
6854
6875
  className: classNames(tw("h-full"), className)
6855
- }, /* @__PURE__ */ React65.createElement("div", {
6876
+ }, /* @__PURE__ */ React66.createElement("div", {
6856
6877
  className: tw("relative flex items-center h-full border-b-2 border-grey-10")
6857
- }, /* @__PURE__ */ React65.createElement("div", {
6878
+ }, /* @__PURE__ */ React66.createElement("div", {
6858
6879
  ref: containerRef,
6859
6880
  className: tw("overflow-y-auto scrollbar-hide h-full mb-[-2px]")
6860
- }, /* @__PURE__ */ React65.createElement("div", {
6881
+ }, /* @__PURE__ */ React66.createElement("div", {
6861
6882
  ref: tabsRef,
6862
6883
  role: "tablist",
6863
6884
  "aria-label": "tabs",
6864
6885
  className: tw("inline-flex items-center cursor-pointer font-normal h-full")
6865
- }, React65.Children.map(
6886
+ }, React66.Children.map(
6866
6887
  children,
6867
- (tab, index) => tab ? /* @__PURE__ */ React65.createElement(TabItemComponent, __spreadProps(__spreadValues({
6888
+ (tab, index) => tab ? /* @__PURE__ */ React66.createElement(TabItemComponent, __spreadProps(__spreadValues({
6868
6889
  key: tab.props.value
6869
6890
  }, tab.props), {
6870
6891
  index,
@@ -6872,20 +6893,20 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6872
6893
  onKeyDown: handleKeyDown,
6873
6894
  onSelected: handleSelected
6874
6895
  })) : void 0
6875
- ))), leftCaret && /* @__PURE__ */ React65.createElement("div", {
6896
+ ))), leftCaret && /* @__PURE__ */ React66.createElement("div", {
6876
6897
  className: tw("absolute left-0 bg-gradient-to-r from-white via-white z-20 py-3 pr-4")
6877
- }, /* @__PURE__ */ React65.createElement("div", {
6898
+ }, /* @__PURE__ */ React66.createElement("div", {
6878
6899
  onClick: () => handleScrollToNext("left"),
6879
6900
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
6880
- }, /* @__PURE__ */ React65.createElement(InlineIcon, {
6901
+ }, /* @__PURE__ */ React66.createElement(InlineIcon, {
6881
6902
  icon: import_chevronLeft2.default
6882
- }))), rightCaret && /* @__PURE__ */ React65.createElement("div", {
6903
+ }))), rightCaret && /* @__PURE__ */ React66.createElement("div", {
6883
6904
  onClick: () => handleScrollToNext("right"),
6884
6905
  className: tw("absolute right-0 bg-gradient-to-l from-white via-white z-20 py-3 pl-4")
6885
- }, /* @__PURE__ */ React65.createElement("div", {
6906
+ }, /* @__PURE__ */ React66.createElement("div", {
6886
6907
  onClick: () => handleScrollToNext("right"),
6887
6908
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
6888
- }, /* @__PURE__ */ React65.createElement(InlineIcon, {
6909
+ }, /* @__PURE__ */ React66.createElement(InlineIcon, {
6889
6910
  icon: import_chevronRight2.default
6890
6911
  })))), renderChildren(children, selected, props));
6891
6912
  };
@@ -6893,7 +6914,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6893
6914
  Tabs2.Tab = TabComponent;
6894
6915
  return Tabs2;
6895
6916
  };
6896
- var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React65.createElement(TabContainer, null, children.find(
6917
+ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React66.createElement(TabContainer, null, children.find(
6897
6918
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
6898
6919
  )));
6899
6920
 
@@ -6910,7 +6931,7 @@ var Modal2 = ({
6910
6931
  secondaryActions,
6911
6932
  size
6912
6933
  }) => {
6913
- const ref = React66.useRef(null);
6934
+ const ref = React67.useRef(null);
6914
6935
  const state = useOverlayTriggerState4({ isOpen: open });
6915
6936
  const { modalProps, underlayProps } = useModalOverlay2({ isDismissable: false }, state, ref);
6916
6937
  const labelledBy = useId2();
@@ -6922,35 +6943,35 @@ var Modal2 = ({
6922
6943
  if (!open) {
6923
6944
  return null;
6924
6945
  }
6925
- return /* @__PURE__ */ React66.createElement(Overlay2, null, /* @__PURE__ */ React66.createElement(Modal, {
6946
+ return /* @__PURE__ */ React67.createElement(Overlay2, null, /* @__PURE__ */ React67.createElement(Modal, {
6926
6947
  open: state.isOpen
6927
- }, /* @__PURE__ */ React66.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React66.createElement(FocusScope3, {
6948
+ }, /* @__PURE__ */ React67.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React67.createElement(FocusScope3, {
6928
6949
  contain: true,
6929
6950
  restoreFocus: true,
6930
6951
  autoFocus: true
6931
- }, /* @__PURE__ */ React66.createElement(Modal.Dialog, __spreadValues(__spreadValues({
6952
+ }, /* @__PURE__ */ React67.createElement(Modal.Dialog, __spreadValues(__spreadValues({
6932
6953
  ref,
6933
6954
  size
6934
- }, modalProps), dialogProps), /* @__PURE__ */ React66.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React66.createElement(IconButton, {
6955
+ }, modalProps), dialogProps), /* @__PURE__ */ React67.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React67.createElement(IconButton, {
6935
6956
  "aria-label": "Close",
6936
6957
  icon: import_cross5.default,
6937
6958
  onClick: onClose
6938
- })), headerImage !== void 0 && /* @__PURE__ */ React66.createElement(Modal.HeaderImage, {
6959
+ })), headerImage !== void 0 && /* @__PURE__ */ React67.createElement(Modal.HeaderImage, {
6939
6960
  backgroundImage: headerImage
6940
- }), /* @__PURE__ */ React66.createElement(Modal.Header, {
6961
+ }), /* @__PURE__ */ React67.createElement(Modal.Header, {
6941
6962
  className: tw({ "pb-3": isComponentType(children, ModalTabs) })
6942
- }, /* @__PURE__ */ React66.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React66.createElement(Modal.Title, {
6963
+ }, /* @__PURE__ */ React67.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React67.createElement(Modal.Title, {
6943
6964
  id: labelledBy
6944
- }, title), subtitle && /* @__PURE__ */ React66.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React66.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React66.createElement(Modal.Body, {
6965
+ }, title), subtitle && /* @__PURE__ */ React67.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React67.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React67.createElement(Modal.Body, {
6945
6966
  id: describedBy,
6946
6967
  tabIndex: 0,
6947
6968
  noFooter: !(secondaryActions || primaryAction)
6948
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React66.createElement(Modal.Footer, null, /* @__PURE__ */ React66.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a) => {
6969
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React67.createElement(Modal.Footer, null, /* @__PURE__ */ React67.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a) => {
6949
6970
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
6950
- return /* @__PURE__ */ React66.createElement(SecondaryButton, __spreadValues({
6971
+ return /* @__PURE__ */ React67.createElement(SecondaryButton, __spreadValues({
6951
6972
  key: text
6952
6973
  }, action), text);
6953
- }), primaryAction && /* @__PURE__ */ React66.createElement(PrimaryButton, __spreadValues({
6974
+ }), primaryAction && /* @__PURE__ */ React67.createElement(PrimaryButton, __spreadValues({
6954
6975
  key: primaryAction.text
6955
6976
  }, omit10(primaryAction, "text")), primaryAction.text)))))));
6956
6977
  };
@@ -6958,24 +6979,24 @@ var ModalTabs = createTabsComponent(
6958
6979
  ModalTab,
6959
6980
  TabItem,
6960
6981
  "ModalTabs",
6961
- (children, selected, props) => /* @__PURE__ */ React66.createElement(Modal.Body, {
6982
+ (children, selected, props) => /* @__PURE__ */ React67.createElement(Modal.Body, {
6962
6983
  maxHeight: props.maxHeight
6963
- }, /* @__PURE__ */ React66.createElement(ModalTabContainer, null, children.find(
6984
+ }, /* @__PURE__ */ React67.createElement(ModalTabContainer, null, children.find(
6964
6985
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
6965
6986
  )))
6966
6987
  );
6967
6988
 
6968
6989
  // src/components/MultiInput/MultiInput.tsx
6969
- import React68, { useEffect as useEffect6, useRef as useRef7, useState as useState8 } from "react";
6990
+ import React69, { useEffect as useEffect6, useRef as useRef7, useState as useState8 } from "react";
6970
6991
  import castArray2 from "lodash/castArray";
6971
6992
  import identity from "lodash/identity";
6972
6993
  import omit11 from "lodash/omit";
6973
6994
  import uniqueId4 from "lodash/uniqueId";
6974
6995
 
6975
6996
  // src/components/MultiInput/InputChip.tsx
6976
- import React67 from "react";
6997
+ import React68 from "react";
6977
6998
  var import_smallCross = __toESM(require_smallCross());
6978
- var InputChip = React67.forwardRef(
6999
+ var InputChip = React68.forwardRef(
6979
7000
  (_a, ref) => {
6980
7001
  var _b = _a, { invalid = false, disabled, readOnly, className, onClick: _onClick, children } = _b, props = __objRest(_b, ["invalid", "disabled", "readOnly", "className", "onClick", "children"]);
6981
7002
  const onClick = (e) => {
@@ -6983,7 +7004,7 @@ var InputChip = React67.forwardRef(
6983
7004
  _onClick == null ? void 0 : _onClick(e);
6984
7005
  }
6985
7006
  };
6986
- return /* @__PURE__ */ React67.createElement("div", __spreadValues({
7007
+ return /* @__PURE__ */ React68.createElement("div", __spreadValues({
6987
7008
  ref,
6988
7009
  role: "button",
6989
7010
  className: classNames(className, "inline-flex align-middle mx-1 px-2 py-1 items-center rounded-sm break-all", {
@@ -6993,10 +7014,10 @@ var InputChip = React67.forwardRef(
6993
7014
  "bg-grey-5 pointer-events-none": disabled
6994
7015
  }),
6995
7016
  onClick
6996
- }, props), /* @__PURE__ */ React67.createElement(Typography2, {
7017
+ }, props), /* @__PURE__ */ React68.createElement(Typography2, {
6997
7018
  variant: "small",
6998
7019
  color: invalid ? "error-80" : disabled ? "grey-40" : "grey-70"
6999
- }, children), !readOnly && /* @__PURE__ */ React67.createElement("div", null, /* @__PURE__ */ React67.createElement(Icon, {
7020
+ }, children), !readOnly && /* @__PURE__ */ React68.createElement("div", null, /* @__PURE__ */ React68.createElement(Icon, {
7000
7021
  icon: import_smallCross.default,
7001
7022
  className: tw("ml-2", {
7002
7023
  "text-error-70": invalid,
@@ -7024,6 +7045,7 @@ var MultiInputBase = (_a) => {
7024
7045
  itemToString = (val) => String(val),
7025
7046
  createItem = (val) => val,
7026
7047
  onChange,
7048
+ onBlur,
7027
7049
  onInputChange,
7028
7050
  isItemValid,
7029
7051
  disabled = false,
@@ -7045,6 +7067,7 @@ var MultiInputBase = (_a) => {
7045
7067
  "itemToString",
7046
7068
  "createItem",
7047
7069
  "onChange",
7070
+ "onBlur",
7048
7071
  "onInputChange",
7049
7072
  "isItemValid",
7050
7073
  "disabled",
@@ -7131,10 +7154,11 @@ var MultiInputBase = (_a) => {
7131
7154
  if (value2) {
7132
7155
  handleAddItem(value2);
7133
7156
  }
7157
+ onBlur == null ? void 0 : onBlur();
7134
7158
  };
7135
7159
  const renderChips = () => items == null ? void 0 : items.map((item, index) => {
7136
7160
  var _a3;
7137
- return /* @__PURE__ */ React68.createElement(InputChip, {
7161
+ return /* @__PURE__ */ React69.createElement(InputChip, {
7138
7162
  key: `${itemToString(item)}.${index}`,
7139
7163
  invalid: !((_a3 = isItemValid == null ? void 0 : isItemValid(item, index)) != null ? _a3 : true),
7140
7164
  readOnly,
@@ -7145,11 +7169,11 @@ var MultiInputBase = (_a) => {
7145
7169
  }
7146
7170
  }, itemToString(item));
7147
7171
  });
7148
- return /* @__PURE__ */ React68.createElement("div", null, /* @__PURE__ */ React68.createElement(Select.InputContainer, {
7172
+ return /* @__PURE__ */ React69.createElement("div", null, /* @__PURE__ */ React69.createElement(Select.InputContainer, {
7149
7173
  variant: disabled ? "disabled" : valid === false ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
7150
- }, /* @__PURE__ */ React68.createElement("div", {
7174
+ }, /* @__PURE__ */ React69.createElement("div", {
7151
7175
  className: "grow inline-flex flex-row flex-wrap gap-y-2"
7152
- }, inline && renderChips(), /* @__PURE__ */ React68.createElement(Select.Input, __spreadProps(__spreadValues({
7176
+ }, inline && renderChips(), /* @__PURE__ */ React69.createElement(Select.Input, __spreadProps(__spreadValues({
7153
7177
  ref: inputRef,
7154
7178
  id: id != null ? id : name,
7155
7179
  name,
@@ -7167,11 +7191,11 @@ var MultiInputBase = (_a) => {
7167
7191
  onFocus: handleFocus,
7168
7192
  onBlur: handleBlur,
7169
7193
  autoComplete: "off"
7170
- }))), endAdornment && /* @__PURE__ */ React68.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React68.createElement("div", {
7194
+ }))), endAdornment && /* @__PURE__ */ React69.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React69.createElement("div", {
7171
7195
  className: tw("flex flex-row flex-wrap gap-y-2 mt-2")
7172
7196
  }, renderChips()));
7173
7197
  };
7174
- var BaseMultiInputSkeleton = () => /* @__PURE__ */ React68.createElement(Skeleton, {
7198
+ var BaseMultiInputSkeleton = () => /* @__PURE__ */ React69.createElement(Skeleton, {
7175
7199
  height: 38
7176
7200
  });
7177
7201
  MultiInputBase.Skeleton = BaseMultiInputSkeleton;
@@ -7188,14 +7212,14 @@ var MultiInput = (props) => {
7188
7212
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7189
7213
  const labelControlProps = getLabelControlProps(props);
7190
7214
  const baseProps = omit11(props, Object.keys(labelControlProps));
7191
- return /* @__PURE__ */ React68.createElement(LabelControl, __spreadProps(__spreadValues({
7215
+ return /* @__PURE__ */ React69.createElement(LabelControl, __spreadProps(__spreadValues({
7192
7216
  id: `${id.current}-label`,
7193
7217
  htmlFor: `${id.current}-input`,
7194
7218
  messageId: errorMessageId
7195
7219
  }, labelControlProps), {
7196
7220
  length: value.length,
7197
7221
  maxLength
7198
- }), /* @__PURE__ */ React68.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7222
+ }), /* @__PURE__ */ React69.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7199
7223
  id: `${id.current}-input`,
7200
7224
  onChange: (value2) => {
7201
7225
  var _a2;
@@ -7207,12 +7231,12 @@ var MultiInput = (props) => {
7207
7231
  valid: props.valid
7208
7232
  })));
7209
7233
  };
7210
- var MultiInputSkeleton = () => /* @__PURE__ */ React68.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React68.createElement(MultiInputBase.Skeleton, null));
7234
+ var MultiInputSkeleton = () => /* @__PURE__ */ React69.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React69.createElement(MultiInputBase.Skeleton, null));
7211
7235
  MultiInput.Skeleton = MultiInputSkeleton;
7212
7236
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
7213
7237
 
7214
7238
  // src/components/MultiSelect/MultiSelect.tsx
7215
- import React69, { useRef as useRef8, useState as useState9 } from "react";
7239
+ import React70, { useRef as useRef8, useState as useState9 } from "react";
7216
7240
  import { useOverlayPosition as useOverlayPosition5 } from "@react-aria/overlays";
7217
7241
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
7218
7242
  import isNil from "lodash/isNil";
@@ -7340,7 +7364,7 @@ var MultiSelectBase = (_a) => {
7340
7364
  });
7341
7365
  const inputProps = getInputProps(getDropdownProps({ disabled: disabled || readOnly }));
7342
7366
  const renderChips = () => {
7343
- return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React69.createElement(InputChip, __spreadProps(__spreadValues({
7367
+ return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React70.createElement(InputChip, __spreadProps(__spreadValues({
7344
7368
  key: `${itemToString(selectedItem)}.chip`,
7345
7369
  className: tw("mx-0"),
7346
7370
  disabled,
@@ -7356,14 +7380,14 @@ var MultiSelectBase = (_a) => {
7356
7380
  const hasNoResults = options.length === 0 || filteredOptions.length === 0;
7357
7381
  const width = (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth;
7358
7382
  const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
7359
- return /* @__PURE__ */ React69.createElement("div", {
7383
+ return /* @__PURE__ */ React70.createElement("div", {
7360
7384
  className: tw("relative")
7361
- }, /* @__PURE__ */ React69.createElement(Select.InputContainer, {
7385
+ }, /* @__PURE__ */ React70.createElement(Select.InputContainer, {
7362
7386
  ref: targetRef,
7363
7387
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
7364
- }, /* @__PURE__ */ React69.createElement("div", {
7388
+ }, /* @__PURE__ */ React70.createElement("div", {
7365
7389
  className: "grow inline-flex flex-row flex-wrap gap-2"
7366
- }, !hideChips && inline && renderChips(), /* @__PURE__ */ React69.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
7390
+ }, !hideChips && inline && renderChips(), /* @__PURE__ */ React70.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
7367
7391
  id,
7368
7392
  name,
7369
7393
  placeholder: selectedItems.length === 0 && !readOnly ? placeholder : "",
@@ -7384,12 +7408,12 @@ var MultiSelectBase = (_a) => {
7384
7408
  setFocus(false);
7385
7409
  (_a3 = inputProps.onBlur) == null ? void 0 : _a3.call(inputProps, e);
7386
7410
  }
7387
- }))), !readOnly && /* @__PURE__ */ React69.createElement(Select.Toggle, __spreadValues({
7411
+ }))), !readOnly && /* @__PURE__ */ React70.createElement(Select.Toggle, __spreadValues({
7388
7412
  hasFocus,
7389
7413
  isOpen
7390
- }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React69.createElement("div", {
7414
+ }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React70.createElement("div", {
7391
7415
  className: tw("flex flex-row flex-wrap gap-2 mt-2")
7392
- }, renderChips()), /* @__PURE__ */ React69.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7416
+ }, renderChips()), /* @__PURE__ */ React70.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7393
7417
  isOpen: true,
7394
7418
  isDismissable: true,
7395
7419
  autoFocus: true
@@ -7397,15 +7421,15 @@ var MultiSelectBase = (_a) => {
7397
7421
  style,
7398
7422
  onClose: closeMenu,
7399
7423
  className: tw("overflow-y-auto")
7400
- }), /* @__PURE__ */ React69.createElement(Select.Menu, {
7424
+ }), /* @__PURE__ */ React70.createElement(Select.Menu, {
7401
7425
  maxHeight
7402
- }, isOpen && hasNoResults && /* @__PURE__ */ React69.createElement(Select.NoResults, null, noResults), isOpen && filteredOptions.map((item, index) => /* @__PURE__ */ React69.createElement(Select.Item, __spreadValues({
7426
+ }, isOpen && hasNoResults && /* @__PURE__ */ React70.createElement(Select.NoResults, null, noResults), isOpen && filteredOptions.map((item, index) => /* @__PURE__ */ React70.createElement(Select.Item, __spreadValues({
7403
7427
  key: itemToString(item),
7404
7428
  highlighted: index === highlightedIndex,
7405
7429
  selected: selectedItems.includes(item)
7406
7430
  }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
7407
7431
  };
7408
- var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React69.createElement(Skeleton, {
7432
+ var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React70.createElement(Skeleton, {
7409
7433
  height: 38
7410
7434
  });
7411
7435
  MultiSelectBase.Skeleton = MultiSelectBaseSkeleton;
@@ -7423,11 +7447,11 @@ var MultiSelect = (_a) => {
7423
7447
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7424
7448
  const labelControlProps = getLabelControlProps(props);
7425
7449
  const baseProps = omit12(props, Object.keys(labelControlProps));
7426
- return /* @__PURE__ */ React69.createElement(LabelControl, __spreadValues({
7450
+ return /* @__PURE__ */ React70.createElement(LabelControl, __spreadValues({
7427
7451
  id: `${id.current}-label`,
7428
7452
  htmlFor: `${id.current}-input`,
7429
7453
  messageId: errorMessageId
7430
- }, labelControlProps), /* @__PURE__ */ React69.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7454
+ }, labelControlProps), /* @__PURE__ */ React70.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7431
7455
  id: id.current,
7432
7456
  options,
7433
7457
  noResults,
@@ -7435,16 +7459,16 @@ var MultiSelect = (_a) => {
7435
7459
  valid: props.valid
7436
7460
  })));
7437
7461
  };
7438
- var MultiSelectSkeleton = () => /* @__PURE__ */ React69.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React69.createElement(MultiSelectBase.Skeleton, null));
7462
+ var MultiSelectSkeleton = () => /* @__PURE__ */ React70.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React70.createElement(MultiSelectBase.Skeleton, null));
7439
7463
  MultiSelect.Skeleton = MultiSelectSkeleton;
7440
7464
  MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
7441
7465
 
7442
7466
  // src/components/NativeSelect/NativeSelect.tsx
7443
- import React70, { useRef as useRef9 } from "react";
7467
+ import React71, { useRef as useRef9 } from "react";
7444
7468
  import omit13 from "lodash/omit";
7445
7469
  import uniqueId6 from "lodash/uniqueId";
7446
7470
  var import_caretDown = __toESM(require_caretDown());
7447
- var NativeSelectBase = React70.forwardRef(
7471
+ var NativeSelectBase = React71.forwardRef(
7448
7472
  (_a, ref) => {
7449
7473
  var _b = _a, { children, disabled = false, required = false, valid = true, readOnly = false } = _b, props = __objRest(_b, ["children", "disabled", "required", "valid", "readOnly"]);
7450
7474
  const placeholderValue = uniqueId6("default_value_for_placeholder");
@@ -7461,16 +7485,16 @@ var NativeSelectBase = React70.forwardRef(
7461
7485
  (_b2 = props.onBlur) == null ? void 0 : _b2.call(props, event);
7462
7486
  }
7463
7487
  };
7464
- return /* @__PURE__ */ React70.createElement("span", {
7488
+ return /* @__PURE__ */ React71.createElement("span", {
7465
7489
  className: tw("relative block")
7466
- }, !readOnly && /* @__PURE__ */ React70.createElement("span", {
7490
+ }, !readOnly && /* @__PURE__ */ React71.createElement("span", {
7467
7491
  className: tw(
7468
7492
  "absolute right-0 inset-y-0 mr-4 text-grey-40 flex ml-3 pointer-events-none typography-default-strong mt-4"
7469
7493
  )
7470
- }, /* @__PURE__ */ React70.createElement(Icon, {
7494
+ }, /* @__PURE__ */ React71.createElement(Icon, {
7471
7495
  icon: import_caretDown.default,
7472
7496
  "data-testid": "icon-dropdown"
7473
- })), /* @__PURE__ */ React70.createElement("select", __spreadProps(__spreadValues({
7497
+ })), /* @__PURE__ */ React71.createElement("select", __spreadProps(__spreadValues({
7474
7498
  ref,
7475
7499
  disabled: disabled || readOnly,
7476
7500
  required
@@ -7489,16 +7513,16 @@ var NativeSelectBase = React70.forwardRef(
7489
7513
  ),
7490
7514
  props.className
7491
7515
  )
7492
- }), props.placeholder && /* @__PURE__ */ React70.createElement("option", {
7516
+ }), props.placeholder && /* @__PURE__ */ React71.createElement("option", {
7493
7517
  value: placeholderValue,
7494
7518
  disabled: true
7495
7519
  }, props.placeholder), children));
7496
7520
  }
7497
7521
  );
7498
- NativeSelectBase.Skeleton = () => /* @__PURE__ */ React70.createElement(Skeleton, {
7522
+ NativeSelectBase.Skeleton = () => /* @__PURE__ */ React71.createElement(Skeleton, {
7499
7523
  height: 38
7500
7524
  });
7501
- var NativeSelect = React70.forwardRef(
7525
+ var NativeSelect = React71.forwardRef(
7502
7526
  (_a, ref) => {
7503
7527
  var _b = _a, { readOnly } = _b, props = __objRest(_b, ["readOnly"]);
7504
7528
  var _a2;
@@ -7507,11 +7531,11 @@ var NativeSelect = React70.forwardRef(
7507
7531
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7508
7532
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
7509
7533
  const baseProps = omit13(props, Object.keys(labelControlProps));
7510
- return /* @__PURE__ */ React70.createElement(LabelControl, __spreadValues({
7534
+ return /* @__PURE__ */ React71.createElement(LabelControl, __spreadValues({
7511
7535
  id: `${id.current}-label`,
7512
7536
  htmlFor: id.current,
7513
7537
  messageId: errorMessageId
7514
- }, labelControlProps), /* @__PURE__ */ React70.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
7538
+ }, labelControlProps), /* @__PURE__ */ React71.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
7515
7539
  ref
7516
7540
  }, baseProps), errorProps), {
7517
7541
  id: id.current,
@@ -7524,20 +7548,20 @@ var NativeSelect = React70.forwardRef(
7524
7548
  })));
7525
7549
  }
7526
7550
  );
7527
- var Option = React70.forwardRef((_a, ref) => {
7551
+ var Option = React71.forwardRef((_a, ref) => {
7528
7552
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
7529
- return /* @__PURE__ */ React70.createElement("option", __spreadValues({
7553
+ return /* @__PURE__ */ React71.createElement("option", __spreadValues({
7530
7554
  ref
7531
7555
  }, props), children);
7532
7556
  });
7533
- var NativeSelectSkeleton = () => /* @__PURE__ */ React70.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React70.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React70.createElement("div", {
7557
+ var NativeSelectSkeleton = () => /* @__PURE__ */ React71.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React71.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React71.createElement("div", {
7534
7558
  style: { height: "1px" }
7535
7559
  }));
7536
7560
  NativeSelect.Skeleton = NativeSelectSkeleton;
7537
7561
  NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
7538
7562
 
7539
7563
  // src/components/PageHeader/PageHeader.tsx
7540
- import React71 from "react";
7564
+ import React72 from "react";
7541
7565
  import castArray3 from "lodash/castArray";
7542
7566
  import omit14 from "lodash/omit";
7543
7567
  var PageHeader = ({
@@ -7549,48 +7573,48 @@ var PageHeader = ({
7549
7573
  chips = [],
7550
7574
  breadcrumbs
7551
7575
  }) => {
7552
- return /* @__PURE__ */ React71.createElement(Flexbox, {
7576
+ return /* @__PURE__ */ React72.createElement(Flexbox, {
7553
7577
  direction: "row",
7554
7578
  gap: "4",
7555
7579
  paddingBottom: "6"
7556
- }, /* @__PURE__ */ React71.createElement(Flexbox, {
7580
+ }, /* @__PURE__ */ React72.createElement(Flexbox, {
7557
7581
  className: tw("grow"),
7558
7582
  direction: "column",
7559
7583
  gap: "0"
7560
- }, breadcrumbs && /* @__PURE__ */ React71.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React71.createElement(Flexbox, {
7584
+ }, breadcrumbs && /* @__PURE__ */ React72.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React72.createElement(Flexbox, {
7561
7585
  gap: "5"
7562
- }, image && /* @__PURE__ */ React71.createElement("img", {
7586
+ }, image && /* @__PURE__ */ React72.createElement("img", {
7563
7587
  src: image,
7564
7588
  alt: imageAlt,
7565
7589
  className: tw("w-[56px] h-[56px]")
7566
- }), /* @__PURE__ */ React71.createElement(Flexbox, {
7590
+ }), /* @__PURE__ */ React72.createElement(Flexbox, {
7567
7591
  direction: "column",
7568
7592
  justifyContent: "center"
7569
- }, /* @__PURE__ */ React71.createElement(Typography2.Heading, null, title), chips.length > 0 && /* @__PURE__ */ React71.createElement(Flexbox, {
7593
+ }, /* @__PURE__ */ React72.createElement(Typography2.Heading, null, title), chips.length > 0 && /* @__PURE__ */ React72.createElement(Flexbox, {
7570
7594
  gap: "3"
7571
- }, chips.map((chip) => /* @__PURE__ */ React71.createElement(Chip2, {
7595
+ }, chips.map((chip) => /* @__PURE__ */ React72.createElement(Chip2, {
7572
7596
  key: chip,
7573
7597
  dense: true,
7574
7598
  text: chip
7575
- })))))), (secondaryActions || primaryAction) && /* @__PURE__ */ React71.createElement(Flexbox, {
7599
+ })))))), (secondaryActions || primaryAction) && /* @__PURE__ */ React72.createElement(Flexbox, {
7576
7600
  gap: "4",
7577
7601
  className: tw("self-start")
7578
7602
  }, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a) => {
7579
7603
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
7580
- return /* @__PURE__ */ React71.createElement(SecondaryButton, __spreadValues({
7604
+ return /* @__PURE__ */ React72.createElement(SecondaryButton, __spreadValues({
7581
7605
  key: text
7582
7606
  }, action), text);
7583
- }), primaryAction && /* @__PURE__ */ React71.createElement(PrimaryButton, __spreadValues({
7607
+ }), primaryAction && /* @__PURE__ */ React72.createElement(PrimaryButton, __spreadValues({
7584
7608
  key: primaryAction.text
7585
7609
  }, omit14(primaryAction, "text")), primaryAction.text)));
7586
7610
  };
7587
7611
 
7588
7612
  // src/components/Pagination/Pagination.tsx
7589
- import React73 from "react";
7613
+ import React74 from "react";
7590
7614
  import clamp from "lodash/clamp";
7591
7615
 
7592
7616
  // src/components/Select/Select.tsx
7593
- import React72, { useRef as useRef10, useState as useState10 } from "react";
7617
+ import React73, { useRef as useRef10, useState as useState10 } from "react";
7594
7618
  import { useOverlayPosition as useOverlayPosition6 } from "@react-aria/overlays";
7595
7619
  import { useSelect } from "downshift";
7596
7620
  import defaults from "lodash/defaults";
@@ -7607,10 +7631,10 @@ var hasOptionGroups = (val) => {
7607
7631
  };
7608
7632
  var defaultRenderOption = (item, props, { selectedItem }, { getOptionKey, getValue, optionToString = getOptionLabelBuiltin }) => {
7609
7633
  var _a, _b;
7610
- return /* @__PURE__ */ React72.createElement(Select.Item, __spreadValues({
7634
+ return /* @__PURE__ */ React73.createElement(Select.Item, __spreadValues({
7611
7635
  key: (_b = (_a = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a : getValue == null ? void 0 : getValue(item)) != null ? _b : optionToString(item),
7612
7636
  selected: item === selectedItem
7613
- }, props), hasIconProperty(item) && /* @__PURE__ */ React72.createElement(InlineIcon, {
7637
+ }, props), hasIconProperty(item) && /* @__PURE__ */ React73.createElement(InlineIcon, {
7614
7638
  icon: item.icon
7615
7639
  }), optionToString(item));
7616
7640
  };
@@ -7727,13 +7751,13 @@ var _SelectBase = (props) => {
7727
7751
  },
7728
7752
  withDefaults
7729
7753
  );
7730
- const renderGroup = (group) => /* @__PURE__ */ React72.createElement(React72.Fragment, {
7754
+ const renderGroup = (group) => /* @__PURE__ */ React73.createElement(React73.Fragment, {
7731
7755
  key: group.label
7732
- }, /* @__PURE__ */ React72.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
7733
- const input = /* @__PURE__ */ React72.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
7756
+ }, /* @__PURE__ */ React73.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
7757
+ const input = /* @__PURE__ */ React73.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
7734
7758
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default",
7735
7759
  tabIndex: 0
7736
- }), /* @__PURE__ */ React72.createElement(Select.Input, __spreadProps(__spreadValues({
7760
+ }), /* @__PURE__ */ React73.createElement(Select.Input, __spreadProps(__spreadValues({
7737
7761
  id,
7738
7762
  name
7739
7763
  }, rest), {
@@ -7745,16 +7769,16 @@ var _SelectBase = (props) => {
7745
7769
  tabIndex: -1,
7746
7770
  onFocus: () => setFocus(true),
7747
7771
  onBlur: () => setFocus(false)
7748
- })), !readOnly && /* @__PURE__ */ React72.createElement(Select.Toggle, {
7772
+ })), !readOnly && /* @__PURE__ */ React73.createElement(Select.Toggle, {
7749
7773
  disabled,
7750
7774
  isOpen,
7751
7775
  tabIndex: -1
7752
7776
  }));
7753
7777
  const width = (_b = targetRef.current) == null ? void 0 : _b.offsetWidth;
7754
7778
  const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
7755
- return /* @__PURE__ */ React72.createElement("div", {
7779
+ return /* @__PURE__ */ React73.createElement("div", {
7756
7780
  className: tw("relative")
7757
- }, labelWrapper ? React72.cloneElement(labelWrapper, { children: input }) : input, /* @__PURE__ */ React72.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7781
+ }, labelWrapper ? React73.cloneElement(labelWrapper, { children: input }) : input, /* @__PURE__ */ React73.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7758
7782
  isOpen: true,
7759
7783
  isDismissable: true,
7760
7784
  autoFocus: true
@@ -7762,11 +7786,11 @@ var _SelectBase = (props) => {
7762
7786
  style,
7763
7787
  onClose: closeMenu,
7764
7788
  className: tw("overflow-y-auto")
7765
- }), /* @__PURE__ */ React72.createElement(Select.Menu, {
7789
+ }), /* @__PURE__ */ React73.createElement(Select.Menu, {
7766
7790
  maxHeight
7767
- }, isOpen && options.length === 0 && /* @__PURE__ */ React72.createElement(Select.EmptyStateContainer, null, emptyState), isOpen && options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), isOpen && options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), isOpen && actions.length > 0 && /* @__PURE__ */ React72.createElement(React72.Fragment, null, /* @__PURE__ */ React72.createElement(Select.Divider, {
7791
+ }, isOpen && options.length === 0 && /* @__PURE__ */ React73.createElement(Select.EmptyStateContainer, null, emptyState), isOpen && options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), isOpen && options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), isOpen && actions.length > 0 && /* @__PURE__ */ React73.createElement(React73.Fragment, null, /* @__PURE__ */ React73.createElement(Select.Divider, {
7768
7792
  onMouseOver: () => setHighlightedIndex(-1)
7769
- }), actions.map((act, index) => /* @__PURE__ */ React72.createElement(Select.ActionItem, __spreadProps(__spreadValues({
7793
+ }), actions.map((act, index) => /* @__PURE__ */ React73.createElement(Select.ActionItem, __spreadProps(__spreadValues({
7770
7794
  key: `${index}`
7771
7795
  }, act), {
7772
7796
  onMouseOver: () => setHighlightedIndex(-1),
@@ -7776,10 +7800,10 @@ var _SelectBase = (props) => {
7776
7800
  }
7777
7801
  }), act.label))))));
7778
7802
  };
7779
- var SelectBase = (props) => /* @__PURE__ */ React72.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
7803
+ var SelectBase = (props) => /* @__PURE__ */ React73.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
7780
7804
  labelWrapper: void 0
7781
7805
  }));
7782
- var SelectBaseSkeleton = () => /* @__PURE__ */ React72.createElement(Skeleton, {
7806
+ var SelectBaseSkeleton = () => /* @__PURE__ */ React73.createElement(Skeleton, {
7783
7807
  height: 38
7784
7808
  });
7785
7809
  SelectBase.Skeleton = SelectBaseSkeleton;
@@ -7797,19 +7821,19 @@ var Select2 = (_a) => {
7797
7821
  const baseProps = omit15(props, Object.keys(labelProps));
7798
7822
  const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
7799
7823
  const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
7800
- const label = /* @__PURE__ */ React72.createElement(Label, __spreadValues({
7824
+ const label = /* @__PURE__ */ React73.createElement(Label, __spreadValues({
7801
7825
  id: `${id.current}-label`,
7802
7826
  htmlFor: `${id.current}-input`,
7803
7827
  variant,
7804
7828
  messageId: errorMessageId
7805
7829
  }, labelProps));
7806
- return /* @__PURE__ */ React72.createElement(FormControl, null, /* @__PURE__ */ React72.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7830
+ return /* @__PURE__ */ React73.createElement(FormControl, null, /* @__PURE__ */ React73.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7807
7831
  id: `${id.current}-input`,
7808
7832
  options,
7809
7833
  disabled: props.disabled,
7810
7834
  valid: props.valid,
7811
7835
  labelWrapper: label
7812
- })), /* @__PURE__ */ React72.createElement(HelperText, {
7836
+ })), /* @__PURE__ */ React73.createElement(HelperText, {
7813
7837
  messageId: errorMessageId,
7814
7838
  error: !labelProps.valid,
7815
7839
  helperText: labelProps.helperText,
@@ -7818,7 +7842,7 @@ var Select2 = (_a) => {
7818
7842
  reserveSpaceForError: labelProps.reserveSpaceForError
7819
7843
  }));
7820
7844
  };
7821
- var SelectSkeleton = () => /* @__PURE__ */ React72.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React72.createElement(SelectBase.Skeleton, null));
7845
+ var SelectSkeleton = () => /* @__PURE__ */ React73.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React73.createElement(SelectBase.Skeleton, null));
7822
7846
  Select2.Skeleton = SelectSkeleton;
7823
7847
 
7824
7848
  // src/components/Pagination/Pagination.tsx
@@ -7836,25 +7860,25 @@ var Pagination = ({
7836
7860
  pageSizes,
7837
7861
  onPageSizeChange
7838
7862
  }) => {
7839
- const [value, setValue] = React73.useState(currentPage);
7840
- React73.useEffect(() => {
7863
+ const [value, setValue] = React74.useState(currentPage);
7864
+ React74.useEffect(() => {
7841
7865
  setValue(currentPage);
7842
7866
  }, [currentPage]);
7843
- React73.useEffect(() => {
7867
+ React74.useEffect(() => {
7844
7868
  onPageChange(1);
7845
7869
  setValue(1);
7846
7870
  }, [pageSize]);
7847
- return /* @__PURE__ */ React73.createElement(Box, {
7871
+ return /* @__PURE__ */ React74.createElement(Box, {
7848
7872
  className: tw("grid grid-cols-[200px_1fr_200px]"),
7849
7873
  backgroundColor: "grey-0",
7850
7874
  padding: "4"
7851
- }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React73.createElement(Box, {
7875
+ }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React74.createElement(Box, {
7852
7876
  display: "flex",
7853
7877
  alignItems: "center",
7854
7878
  gap: "4"
7855
- }, /* @__PURE__ */ React73.createElement(Typography2.SmallText, null, "Items per page "), /* @__PURE__ */ React73.createElement("div", {
7879
+ }, /* @__PURE__ */ React74.createElement(Typography2.SmallText, null, "Items per page "), /* @__PURE__ */ React74.createElement("div", {
7856
7880
  className: tw("max-w-[70px]")
7857
- }, /* @__PURE__ */ React73.createElement(SelectBase, {
7881
+ }, /* @__PURE__ */ React74.createElement(SelectBase, {
7858
7882
  options: pageSizes.map((size) => size.toString()),
7859
7883
  value: pageSize.toString(),
7860
7884
  onChange: (size) => {
@@ -7865,24 +7889,24 @@ var Pagination = ({
7865
7889
  }
7866
7890
  }
7867
7891
  }
7868
- }))) : /* @__PURE__ */ React73.createElement("div", null), /* @__PURE__ */ React73.createElement(Box, {
7892
+ }))) : /* @__PURE__ */ React74.createElement("div", null), /* @__PURE__ */ React74.createElement(Box, {
7869
7893
  display: "flex",
7870
7894
  justifyContent: "center",
7871
7895
  alignItems: "center",
7872
7896
  className: tw("grow")
7873
- }, /* @__PURE__ */ React73.createElement(IconButton, {
7897
+ }, /* @__PURE__ */ React74.createElement(IconButton, {
7874
7898
  "aria-label": "First",
7875
7899
  onClick: () => onPageChange(1),
7876
7900
  icon: import_chevronBackward.default,
7877
7901
  disabled: !hasPreviousPage
7878
- }), /* @__PURE__ */ React73.createElement(IconButton, {
7902
+ }), /* @__PURE__ */ React74.createElement(IconButton, {
7879
7903
  "aria-label": "Previous",
7880
7904
  onClick: () => onPageChange(currentPage - 1),
7881
7905
  icon: import_chevronLeft3.default,
7882
7906
  disabled: !hasPreviousPage
7883
- }), /* @__PURE__ */ React73.createElement(Box, {
7907
+ }), /* @__PURE__ */ React74.createElement(Box, {
7884
7908
  paddingX: "4"
7885
- }, /* @__PURE__ */ React73.createElement(Typography2.SmallText, null, "Page")), /* @__PURE__ */ React73.createElement(InputBase, {
7909
+ }, /* @__PURE__ */ React74.createElement(Typography2.SmallText, null, "Page")), /* @__PURE__ */ React74.createElement(InputBase, {
7886
7910
  className: classNames(tw("text-center max-w-[40px]"), "no-arrows"),
7887
7911
  type: "number",
7888
7912
  min: 1,
@@ -7905,43 +7929,43 @@ var Pagination = ({
7905
7929
  setValue(1);
7906
7930
  }
7907
7931
  }
7908
- }), /* @__PURE__ */ React73.createElement(Box, {
7932
+ }), /* @__PURE__ */ React74.createElement(Box, {
7909
7933
  paddingX: "4"
7910
- }, /* @__PURE__ */ React73.createElement(Typography2.SmallText, null, "of ", totalPages)), /* @__PURE__ */ React73.createElement(IconButton, {
7934
+ }, /* @__PURE__ */ React74.createElement(Typography2.SmallText, null, "of ", totalPages)), /* @__PURE__ */ React74.createElement(IconButton, {
7911
7935
  "aria-label": "Next",
7912
7936
  onClick: () => onPageChange(currentPage + 1),
7913
7937
  icon: import_chevronRight3.default,
7914
7938
  disabled: !hasNextPage
7915
- }), /* @__PURE__ */ React73.createElement(IconButton, {
7939
+ }), /* @__PURE__ */ React74.createElement(IconButton, {
7916
7940
  "aria-label": "Last",
7917
7941
  onClick: () => onPageChange(totalPages),
7918
7942
  icon: import_chevronForward.default,
7919
7943
  disabled: !hasNextPage
7920
- })), /* @__PURE__ */ React73.createElement("div", null));
7944
+ })), /* @__PURE__ */ React74.createElement("div", null));
7921
7945
  };
7922
7946
 
7923
7947
  // src/components/PopoverDialog/PopoverDialog.tsx
7924
- import React75 from "react";
7948
+ import React76 from "react";
7925
7949
  import omit16 from "lodash/omit";
7926
7950
 
7927
7951
  // src/common/PopoverDialog/PopoverDialog.tsx
7928
- import React74 from "react";
7952
+ import React75 from "react";
7929
7953
  var Header = (_a) => {
7930
7954
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7931
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
7955
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
7932
7956
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
7933
7957
  }), children);
7934
7958
  };
7935
7959
  var Title = (_a) => {
7936
7960
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7937
- return /* @__PURE__ */ React74.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7961
+ return /* @__PURE__ */ React75.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7938
7962
  htmlTag: "h1",
7939
7963
  variant: "small-strong"
7940
7964
  }), children);
7941
7965
  };
7942
7966
  var Body = (_a) => {
7943
7967
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7944
- return /* @__PURE__ */ React74.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7968
+ return /* @__PURE__ */ React75.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7945
7969
  htmlTag: "div",
7946
7970
  variant: "caption",
7947
7971
  className: classNames(tw("px-5 overflow-y-auto"), className)
@@ -7949,13 +7973,13 @@ var Body = (_a) => {
7949
7973
  };
7950
7974
  var Footer = (_a) => {
7951
7975
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7952
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
7976
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
7953
7977
  className: classNames(tw("p-5"), className)
7954
7978
  }), children);
7955
7979
  };
7956
7980
  var Actions2 = (_a) => {
7957
7981
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7958
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
7982
+ return /* @__PURE__ */ React75.createElement("div", __spreadProps(__spreadValues({}, rest), {
7959
7983
  className: classNames(tw("flex gap-4"), className)
7960
7984
  }), children);
7961
7985
  };
@@ -7971,13 +7995,13 @@ var PopoverDialog = {
7971
7995
  var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
7972
7996
  const wrapPromptWithBody = (child) => {
7973
7997
  if (isComponentType(child, PopoverDialog2.Prompt)) {
7974
- return /* @__PURE__ */ React75.createElement(Popover2.Panel, {
7998
+ return /* @__PURE__ */ React76.createElement(Popover2.Panel, {
7975
7999
  className: tw("max-w-[300px]")
7976
- }, /* @__PURE__ */ React75.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React75.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React75.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React75.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React75.createElement(Popover2.Button, __spreadValues({
8000
+ }, /* @__PURE__ */ React76.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React76.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React76.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React76.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React76.createElement(Popover2.Button, __spreadValues({
7977
8001
  kind: "secondary-ghost",
7978
8002
  key: secondaryAction.text,
7979
8003
  dense: true
7980
- }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React75.createElement(Popover2.Button, __spreadValues({
8004
+ }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React76.createElement(Popover2.Button, __spreadValues({
7981
8005
  kind: "ghost",
7982
8006
  key: primaryAction.text,
7983
8007
  dense: true
@@ -7985,7 +8009,7 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
7985
8009
  }
7986
8010
  return child;
7987
8011
  };
7988
- return /* @__PURE__ */ React75.createElement(Popover2, {
8012
+ return /* @__PURE__ */ React76.createElement(Popover2, {
7989
8013
  type: "dialog",
7990
8014
  isOpen: open,
7991
8015
  placement,
@@ -7993,10 +8017,10 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
7993
8017
  isKeyboardDismissDisabled: false,
7994
8018
  autoFocus: true,
7995
8019
  containFocus: true
7996
- }, React75.Children.map(children, wrapPromptWithBody));
8020
+ }, React76.Children.map(children, wrapPromptWithBody));
7997
8021
  };
7998
8022
  PopoverDialog2.Trigger = Popover2.Trigger;
7999
- var Prompt = ({ children }) => /* @__PURE__ */ React75.createElement(PopoverDialog.Body, null, children);
8023
+ var Prompt = ({ children }) => /* @__PURE__ */ React76.createElement(PopoverDialog.Body, null, children);
8000
8024
  Prompt.displayName = "PopoverDialog.Prompt";
8001
8025
  PopoverDialog2.Prompt = Prompt;
8002
8026
 
@@ -8005,14 +8029,14 @@ import { createPortal } from "react-dom";
8005
8029
  var Portal = ({ children, to }) => createPortal(children, to);
8006
8030
 
8007
8031
  // src/components/ProgressBar/ProgressBar.tsx
8008
- import React77 from "react";
8032
+ import React78 from "react";
8009
8033
 
8010
8034
  // src/common/ProgressBar/ProgressBar.tsx
8011
- import React76 from "react";
8035
+ import React77 from "react";
8012
8036
  import clamp2 from "lodash/clamp";
8013
8037
  var ProgressBar = (_a) => {
8014
8038
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8015
- return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
8039
+ return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({}, rest), {
8016
8040
  className: classNames(
8017
8041
  tw("relative flex items-center w-full bg-grey-0 h-2 rounded-full overflow-hidden"),
8018
8042
  className
@@ -8028,7 +8052,7 @@ var STATUS_COLORS = {
8028
8052
  ProgressBar.Indicator = (_a) => {
8029
8053
  var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
8030
8054
  const completedPercentage = clamp2((value - min) / (max - min) * 100, 0, 100);
8031
- return /* @__PURE__ */ React76.createElement("div", __spreadProps(__spreadValues({}, rest), {
8055
+ return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({}, rest), {
8032
8056
  className: classNames(
8033
8057
  tw("h-2 rounded-full transition-all ease-in-out delay-150"),
8034
8058
  STATUS_COLORS[status],
@@ -8044,11 +8068,11 @@ ProgressBar.Indicator = (_a) => {
8044
8068
  };
8045
8069
  ProgressBar.Labels = (_a) => {
8046
8070
  var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
8047
- return /* @__PURE__ */ React76.createElement("div", {
8071
+ return /* @__PURE__ */ React77.createElement("div", {
8048
8072
  className: classNames(tw("flex flex-row"), className)
8049
- }, /* @__PURE__ */ React76.createElement("span", __spreadProps(__spreadValues({}, rest), {
8073
+ }, /* @__PURE__ */ React77.createElement("span", __spreadProps(__spreadValues({}, rest), {
8050
8074
  className: tw("grow text-grey-70 typography-caption")
8051
- }), startLabel), /* @__PURE__ */ React76.createElement("span", __spreadProps(__spreadValues({}, rest), {
8075
+ }), startLabel), /* @__PURE__ */ React77.createElement("span", __spreadProps(__spreadValues({}, rest), {
8052
8076
  className: tw("grow text-grey-70 typography-caption text-right")
8053
8077
  }), endLabel));
8054
8078
  };
@@ -8066,7 +8090,7 @@ var ProgressBar2 = (props) => {
8066
8090
  if (min > max) {
8067
8091
  throw new Error("`min` value provided to `ProgressBar` is greater than `max` value.");
8068
8092
  }
8069
- const progress = /* @__PURE__ */ React77.createElement(ProgressBar, null, /* @__PURE__ */ React77.createElement(ProgressBar.Indicator, {
8093
+ const progress = /* @__PURE__ */ React78.createElement(ProgressBar, null, /* @__PURE__ */ React78.createElement(ProgressBar.Indicator, {
8070
8094
  status: value === max ? completedStatus : progresStatus,
8071
8095
  min,
8072
8096
  max,
@@ -8076,25 +8100,25 @@ var ProgressBar2 = (props) => {
8076
8100
  if (props.dense) {
8077
8101
  return progress;
8078
8102
  }
8079
- return /* @__PURE__ */ React77.createElement("div", null, progress, /* @__PURE__ */ React77.createElement(ProgressBar.Labels, {
8103
+ return /* @__PURE__ */ React78.createElement("div", null, progress, /* @__PURE__ */ React78.createElement(ProgressBar.Labels, {
8080
8104
  className: tw("py-2"),
8081
8105
  startLabel: props.startLabel,
8082
8106
  endLabel: props.endLabel
8083
8107
  }));
8084
8108
  };
8085
- ProgressBar2.Skeleton = () => /* @__PURE__ */ React77.createElement(Skeleton, {
8109
+ ProgressBar2.Skeleton = () => /* @__PURE__ */ React78.createElement(Skeleton, {
8086
8110
  height: 4,
8087
8111
  display: "block"
8088
8112
  });
8089
8113
 
8090
8114
  // src/components/RadioButton/RadioButton.tsx
8091
- import React78 from "react";
8092
- var RadioButton2 = React78.forwardRef(
8115
+ import React79 from "react";
8116
+ var RadioButton2 = React79.forwardRef(
8093
8117
  (_a, ref) => {
8094
8118
  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"]);
8095
8119
  var _a2;
8096
8120
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
8097
- return !readOnly || isChecked ? /* @__PURE__ */ React78.createElement(ControlLabel, {
8121
+ return !readOnly || isChecked ? /* @__PURE__ */ React79.createElement(ControlLabel, {
8098
8122
  htmlFor: id,
8099
8123
  label: children,
8100
8124
  "aria-label": ariaLabel,
@@ -8102,7 +8126,7 @@ var RadioButton2 = React78.forwardRef(
8102
8126
  readOnly,
8103
8127
  disabled,
8104
8128
  style: { gap: "0 8px" }
8105
- }, !readOnly && /* @__PURE__ */ React78.createElement(RadioButton, __spreadProps(__spreadValues({
8129
+ }, !readOnly && /* @__PURE__ */ React79.createElement(RadioButton, __spreadProps(__spreadValues({
8106
8130
  id,
8107
8131
  ref,
8108
8132
  name
@@ -8112,22 +8136,22 @@ var RadioButton2 = React78.forwardRef(
8112
8136
  }))) : null;
8113
8137
  }
8114
8138
  );
8115
- var RadioButtonSkeleton = () => /* @__PURE__ */ React78.createElement("div", {
8139
+ var RadioButtonSkeleton = () => /* @__PURE__ */ React79.createElement("div", {
8116
8140
  className: tw("flex gap-3")
8117
- }, /* @__PURE__ */ React78.createElement(Skeleton, {
8141
+ }, /* @__PURE__ */ React79.createElement(Skeleton, {
8118
8142
  height: 20,
8119
8143
  width: 20
8120
- }), /* @__PURE__ */ React78.createElement(Skeleton, {
8144
+ }), /* @__PURE__ */ React79.createElement(Skeleton, {
8121
8145
  height: 20,
8122
8146
  width: 150
8123
8147
  }));
8124
8148
  RadioButton2.Skeleton = RadioButtonSkeleton;
8125
8149
 
8126
8150
  // src/components/RadioButtonGroup/RadioButtonGroup.tsx
8127
- import React79 from "react";
8151
+ import React80 from "react";
8128
8152
  import uniqueId8 from "lodash/uniqueId";
8129
8153
  var isRadioButton = (c) => {
8130
- return React79.isValidElement(c) && c.type === RadioButton2;
8154
+ return React80.isValidElement(c) && c.type === RadioButton2;
8131
8155
  };
8132
8156
  var RadioButtonGroup = (_a) => {
8133
8157
  var _b = _a, {
@@ -8150,7 +8174,7 @@ var RadioButtonGroup = (_a) => {
8150
8174
  "children"
8151
8175
  ]);
8152
8176
  var _a2;
8153
- const [value, setValue] = React79.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
8177
+ const [value, setValue] = React80.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
8154
8178
  const errorMessageId = uniqueId8();
8155
8179
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8156
8180
  const labelControlProps = getLabelControlProps(props);
@@ -8161,14 +8185,14 @@ var RadioButtonGroup = (_a) => {
8161
8185
  setValue(e.target.value);
8162
8186
  onChange == null ? void 0 : onChange(e.target.value);
8163
8187
  };
8164
- const content = React79.Children.map(children, (c) => {
8188
+ const content = React80.Children.map(children, (c) => {
8165
8189
  var _a3, _b2, _c;
8166
8190
  if (!isRadioButton(c)) {
8167
8191
  return null;
8168
8192
  }
8169
8193
  const defaultChecked = defaultValue === void 0 ? void 0 : c.props.value === defaultValue;
8170
8194
  const checked = value === void 0 ? void 0 : c.props.value === value;
8171
- return React79.cloneElement(c, {
8195
+ return React80.cloneElement(c, {
8172
8196
  name,
8173
8197
  defaultChecked: (_a3 = c.props.defaultChecked) != null ? _a3 : defaultChecked,
8174
8198
  checked: (_b2 = c.props.checked) != null ? _b2 : checked,
@@ -8177,11 +8201,11 @@ var RadioButtonGroup = (_a) => {
8177
8201
  readOnly
8178
8202
  });
8179
8203
  });
8180
- return /* @__PURE__ */ React79.createElement(LabelControl, __spreadValues(__spreadValues({
8204
+ return /* @__PURE__ */ React80.createElement(LabelControl, __spreadValues(__spreadValues({
8181
8205
  fieldset: true
8182
- }, labelControlProps), errorProps), cols && /* @__PURE__ */ React79.createElement(InputGroup, {
8206
+ }, labelControlProps), errorProps), cols && /* @__PURE__ */ React80.createElement(InputGroup, {
8183
8207
  cols
8184
- }, content), !cols && /* @__PURE__ */ React79.createElement(Flexbox, {
8208
+ }, content), !cols && /* @__PURE__ */ React80.createElement(Flexbox, {
8185
8209
  direction,
8186
8210
  alignItems: "flex-start",
8187
8211
  colGap: "8",
@@ -8190,80 +8214,80 @@ var RadioButtonGroup = (_a) => {
8190
8214
  }, content));
8191
8215
  };
8192
8216
  var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
8193
- return /* @__PURE__ */ React79.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React79.createElement("div", {
8217
+ return /* @__PURE__ */ React80.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React80.createElement("div", {
8194
8218
  className: tw("flex flex-wrap", {
8195
8219
  "flex-row gap-8": direction === "row",
8196
8220
  "flex-col gap-2": direction === "column"
8197
8221
  })
8198
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React79.createElement(RadioButton2.Skeleton, {
8222
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React80.createElement(RadioButton2.Skeleton, {
8199
8223
  key
8200
8224
  }))));
8201
8225
  };
8202
8226
  RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
8203
8227
 
8204
8228
  // src/components/Section/Section.tsx
8205
- import React81 from "react";
8229
+ import React82 from "react";
8206
8230
  import castArray4 from "lodash/castArray";
8207
8231
 
8208
8232
  // src/common/Section/Section.tsx
8209
- import React80 from "react";
8233
+ import React81 from "react";
8210
8234
  var Section2 = (_a) => {
8211
8235
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8212
- return /* @__PURE__ */ React80.createElement(Box, __spreadValues({
8236
+ return /* @__PURE__ */ React81.createElement(Box, __spreadValues({
8213
8237
  borderColor: "grey-5",
8214
8238
  borderWidth: "1px"
8215
8239
  }, rest), children);
8216
8240
  };
8217
8241
  Section2.Header = (_a) => {
8218
8242
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8219
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8243
+ return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8220
8244
  className: classNames(tw("px-6 py-5 flex gap-5 justify-between items-center"), className)
8221
8245
  }), children);
8222
8246
  };
8223
8247
  Section2.TitleContainer = (_a) => {
8224
8248
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8225
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8249
+ return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8226
8250
  className: classNames(tw("flex flex-col grow gap-2"), className)
8227
8251
  }), children);
8228
8252
  };
8229
8253
  Section2.Title = (_a) => {
8230
8254
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8231
- return /* @__PURE__ */ React80.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
8255
+ return /* @__PURE__ */ React81.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
8232
8256
  color: "black"
8233
8257
  }), children);
8234
8258
  };
8235
8259
  Section2.Subtitle = (_a) => {
8236
8260
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8237
- return /* @__PURE__ */ React80.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
8261
+ return /* @__PURE__ */ React81.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
8238
8262
  color: "grey-70"
8239
8263
  }), children);
8240
8264
  };
8241
8265
  Section2.Actions = (_a) => {
8242
8266
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8243
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8267
+ return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8244
8268
  className: classNames(tw("flex gap-4 justify-end"), className)
8245
8269
  }), children);
8246
8270
  };
8247
8271
  Section2.Body = (_a) => {
8248
8272
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8249
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8273
+ return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8250
8274
  className: classNames(tw("p-6"), className)
8251
- }), /* @__PURE__ */ React80.createElement(Typography, {
8275
+ }), /* @__PURE__ */ React81.createElement(Typography, {
8252
8276
  htmlTag: "div",
8253
8277
  color: "grey-70"
8254
8278
  }, children));
8255
8279
  };
8256
8280
 
8257
8281
  // src/components/Section/Section.tsx
8258
- var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React81.createElement(Section2, null, title && /* @__PURE__ */ React81.createElement(React81.Fragment, null, /* @__PURE__ */ React81.createElement(Section2.Header, null, /* @__PURE__ */ React81.createElement(Section2.TitleContainer, null, /* @__PURE__ */ React81.createElement(Section2.Title, null, title), subtitle && /* @__PURE__ */ React81.createElement(Section2.Subtitle, null, subtitle)), /* @__PURE__ */ React81.createElement(Section2.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8282
+ var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React82.createElement(Section2, null, title && /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(Section2.Header, null, /* @__PURE__ */ React82.createElement(Section2.TitleContainer, null, /* @__PURE__ */ React82.createElement(Section2.Title, null, title), subtitle && /* @__PURE__ */ React82.createElement(Section2.Subtitle, null, subtitle)), /* @__PURE__ */ React82.createElement(Section2.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8259
8283
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
8260
- return /* @__PURE__ */ React81.createElement(SecondaryButton, __spreadValues({
8284
+ return /* @__PURE__ */ React82.createElement(SecondaryButton, __spreadValues({
8261
8285
  key: text
8262
8286
  }, action), text);
8263
- }))), /* @__PURE__ */ React81.createElement(Divider2, null)), /* @__PURE__ */ React81.createElement(Section2.Body, null, children));
8287
+ }))), /* @__PURE__ */ React82.createElement(Divider2, null)), /* @__PURE__ */ React82.createElement(Section2.Body, null, children));
8264
8288
 
8265
8289
  // src/components/SegmentedControl/SegmentedControl.tsx
8266
- import React82 from "react";
8290
+ import React83 from "react";
8267
8291
  var SegmentedControl = (_a) => {
8268
8292
  var _b = _a, {
8269
8293
  children,
@@ -8280,7 +8304,7 @@ var SegmentedControl = (_a) => {
8280
8304
  "selected",
8281
8305
  "className"
8282
8306
  ]);
8283
- return /* @__PURE__ */ React82.createElement("button", __spreadProps(__spreadValues({
8307
+ return /* @__PURE__ */ React83.createElement("button", __spreadProps(__spreadValues({
8284
8308
  type: "button"
8285
8309
  }, rest), {
8286
8310
  className: classNames(
@@ -8311,11 +8335,11 @@ var SegmentedControlGroup = (_a) => {
8311
8335
  "border border-grey-20 text-grey-50": variant === "outlined",
8312
8336
  "bg-grey-0": variant === "raised"
8313
8337
  });
8314
- return /* @__PURE__ */ React82.createElement("div", __spreadProps(__spreadValues({}, rest), {
8338
+ return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8315
8339
  className: classNames(classes, className)
8316
- }), React82.Children.map(
8340
+ }), React83.Children.map(
8317
8341
  children,
8318
- (child) => React82.cloneElement(child, {
8342
+ (child) => React83.cloneElement(child, {
8319
8343
  dense,
8320
8344
  variant,
8321
8345
  onClick: () => onChange(child.props.value),
@@ -8353,14 +8377,14 @@ var getCommonClassNames = (dense, selected) => tw(
8353
8377
  );
8354
8378
 
8355
8379
  // src/components/Stepper/Stepper.tsx
8356
- import React84 from "react";
8380
+ import React85 from "react";
8357
8381
 
8358
8382
  // src/common/Stepper/Stepper.tsx
8359
- import React83 from "react";
8383
+ import React84 from "react";
8360
8384
  var import_tick5 = __toESM(require_tick());
8361
8385
  var Stepper = (_a) => {
8362
8386
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8363
- return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8387
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8364
8388
  className: classNames(className)
8365
8389
  }));
8366
8390
  };
@@ -8374,7 +8398,7 @@ var ConnectorContainer = (_a) => {
8374
8398
  "completed",
8375
8399
  "dense"
8376
8400
  ]);
8377
- return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8401
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8378
8402
  className: classNames(
8379
8403
  tw("absolute w-full -left-1/2", {
8380
8404
  "top-[3px] px-[14px]": Boolean(dense),
@@ -8386,7 +8410,7 @@ var ConnectorContainer = (_a) => {
8386
8410
  };
8387
8411
  var Connector = (_a) => {
8388
8412
  var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
8389
- return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8413
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8390
8414
  className: classNames(
8391
8415
  tw("w-full", {
8392
8416
  "bg-grey-20": !completed,
@@ -8400,7 +8424,7 @@ var Connector = (_a) => {
8400
8424
  };
8401
8425
  var Step = (_a) => {
8402
8426
  var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
8403
- return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8427
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8404
8428
  className: classNames(
8405
8429
  tw("flex flex-col items-center text-grey-90 relative text-center", {
8406
8430
  "text-grey-20": state === "inactive"
@@ -8421,13 +8445,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
8421
8445
  });
8422
8446
  var Indicator = (_a) => {
8423
8447
  var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
8424
- return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8448
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8425
8449
  className: classNames(
8426
8450
  tw("rounded-full flex justify-center items-center mx-2 mb-3"),
8427
8451
  dense ? getDenseClassNames(state) : getClassNames(state),
8428
8452
  className
8429
8453
  )
8430
- }), state === "completed" ? /* @__PURE__ */ React83.createElement(InlineIcon, {
8454
+ }), state === "completed" ? /* @__PURE__ */ React84.createElement(InlineIcon, {
8431
8455
  icon: import_tick5.default
8432
8456
  }) : dense ? null : children);
8433
8457
  };
@@ -8438,25 +8462,25 @@ Stepper.ConnectorContainer = ConnectorContainer;
8438
8462
 
8439
8463
  // src/components/Stepper/Stepper.tsx
8440
8464
  var Stepper2 = ({ children, activeIndex, dense }) => {
8441
- const steps = React84.Children.count(children);
8442
- return /* @__PURE__ */ React84.createElement(Stepper, {
8465
+ const steps = React85.Children.count(children);
8466
+ return /* @__PURE__ */ React85.createElement(Stepper, {
8443
8467
  role: "list"
8444
- }, /* @__PURE__ */ React84.createElement(Template, {
8468
+ }, /* @__PURE__ */ React85.createElement(Template, {
8445
8469
  columns: steps
8446
- }, React84.Children.map(children, (child, index) => {
8470
+ }, React85.Children.map(children, (child, index) => {
8447
8471
  if (!isComponentType(child, Step2)) {
8448
8472
  return new Error("<Stepper> can only have <Stepper.Step> components as children");
8449
8473
  } else {
8450
8474
  const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
8451
- return /* @__PURE__ */ React84.createElement(Stepper.Step, {
8475
+ return /* @__PURE__ */ React85.createElement(Stepper.Step, {
8452
8476
  state,
8453
8477
  "aria-current": state === "active" ? "step" : false,
8454
8478
  role: "listitem"
8455
- }, index > 0 && index <= steps && /* @__PURE__ */ React84.createElement(Stepper.ConnectorContainer, {
8479
+ }, index > 0 && index <= steps && /* @__PURE__ */ React85.createElement(Stepper.ConnectorContainer, {
8456
8480
  dense
8457
- }, /* @__PURE__ */ React84.createElement(Stepper.ConnectorContainer.Connector, {
8481
+ }, /* @__PURE__ */ React85.createElement(Stepper.ConnectorContainer.Connector, {
8458
8482
  completed: state === "completed" || state === "active"
8459
- })), /* @__PURE__ */ React84.createElement(Stepper.Step.Indicator, {
8483
+ })), /* @__PURE__ */ React85.createElement(Stepper.Step.Indicator, {
8460
8484
  state,
8461
8485
  dense
8462
8486
  }, index + 1), child.props.children);
@@ -8467,16 +8491,16 @@ var Step2 = () => null;
8467
8491
  Stepper2.Step = Step2;
8468
8492
 
8469
8493
  // src/components/Switch/Switch.tsx
8470
- import React86 from "react";
8494
+ import React87 from "react";
8471
8495
 
8472
8496
  // src/common/Switch/Switch.tsx
8473
- import React85 from "react";
8474
- var Switch = React85.forwardRef(
8497
+ import React86 from "react";
8498
+ var Switch = React86.forwardRef(
8475
8499
  (_a, ref) => {
8476
8500
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
8477
- return /* @__PURE__ */ React85.createElement("span", {
8501
+ return /* @__PURE__ */ React86.createElement("span", {
8478
8502
  className: tw("relative inline-flex justify-center items-center self-center group")
8479
- }, /* @__PURE__ */ React85.createElement("input", __spreadProps(__spreadValues({
8503
+ }, /* @__PURE__ */ React86.createElement("input", __spreadProps(__spreadValues({
8480
8504
  id,
8481
8505
  ref,
8482
8506
  type: "checkbox",
@@ -8495,7 +8519,7 @@ var Switch = React85.forwardRef(
8495
8519
  ),
8496
8520
  readOnly,
8497
8521
  disabled
8498
- })), /* @__PURE__ */ React85.createElement("span", {
8522
+ })), /* @__PURE__ */ React86.createElement("span", {
8499
8523
  className: tw(
8500
8524
  "pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
8501
8525
  "bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
@@ -8508,12 +8532,12 @@ var Switch = React85.forwardRef(
8508
8532
  );
8509
8533
 
8510
8534
  // src/components/Switch/Switch.tsx
8511
- var Switch2 = React86.forwardRef(
8535
+ var Switch2 = React87.forwardRef(
8512
8536
  (_a, ref) => {
8513
8537
  var _b = _a, { id, name, caption, readOnly = false, disabled = false, children, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["id", "name", "caption", "readOnly", "disabled", "children", "aria-label"]);
8514
8538
  var _a2;
8515
8539
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
8516
- return !readOnly || isChecked ? /* @__PURE__ */ React86.createElement(ControlLabel, {
8540
+ return !readOnly || isChecked ? /* @__PURE__ */ React87.createElement(ControlLabel, {
8517
8541
  htmlFor: id,
8518
8542
  label: children,
8519
8543
  "aria-label": ariaLabel,
@@ -8521,7 +8545,7 @@ var Switch2 = React86.forwardRef(
8521
8545
  readOnly,
8522
8546
  disabled,
8523
8547
  style: { gap: "0 8px" }
8524
- }, !readOnly && /* @__PURE__ */ React86.createElement(Switch, __spreadProps(__spreadValues({
8548
+ }, !readOnly && /* @__PURE__ */ React87.createElement(Switch, __spreadProps(__spreadValues({
8525
8549
  id,
8526
8550
  ref,
8527
8551
  name
@@ -8531,19 +8555,19 @@ var Switch2 = React86.forwardRef(
8531
8555
  }))) : null;
8532
8556
  }
8533
8557
  );
8534
- var SwitchSkeleton = () => /* @__PURE__ */ React86.createElement("div", {
8558
+ var SwitchSkeleton = () => /* @__PURE__ */ React87.createElement("div", {
8535
8559
  className: tw("flex gap-3")
8536
- }, /* @__PURE__ */ React86.createElement(Skeleton, {
8560
+ }, /* @__PURE__ */ React87.createElement(Skeleton, {
8537
8561
  height: 20,
8538
8562
  width: 35
8539
- }), /* @__PURE__ */ React86.createElement(Skeleton, {
8563
+ }), /* @__PURE__ */ React87.createElement(Skeleton, {
8540
8564
  height: 20,
8541
8565
  width: 150
8542
8566
  }));
8543
8567
  Switch2.Skeleton = SwitchSkeleton;
8544
8568
 
8545
8569
  // src/components/SwitchGroup/SwitchGroup.tsx
8546
- import React87, { useState as useState11 } from "react";
8570
+ import React88, { useState as useState11 } from "react";
8547
8571
  import uniqueId9 from "lodash/uniqueId";
8548
8572
  var SwitchGroup = (_a) => {
8549
8573
  var _b = _a, {
@@ -8575,11 +8599,11 @@ var SwitchGroup = (_a) => {
8575
8599
  setSelectedItems(updated);
8576
8600
  onChange == null ? void 0 : onChange(updated);
8577
8601
  };
8578
- return /* @__PURE__ */ React87.createElement(LabelControl, __spreadValues(__spreadValues({
8602
+ return /* @__PURE__ */ React88.createElement(LabelControl, __spreadValues(__spreadValues({
8579
8603
  fieldset: true
8580
- }, labelControlProps), errorProps), /* @__PURE__ */ React87.createElement(InputGroup, {
8604
+ }, labelControlProps), errorProps), /* @__PURE__ */ React88.createElement(InputGroup, {
8581
8605
  cols
8582
- }, React87.Children.map(children, (c) => {
8606
+ }, React88.Children.map(children, (c) => {
8583
8607
  var _a3, _b2, _c, _d;
8584
8608
  if (!isComponentType(c, Switch2)) {
8585
8609
  return null;
@@ -8587,7 +8611,7 @@ var SwitchGroup = (_a) => {
8587
8611
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
8588
8612
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
8589
8613
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
8590
- return React87.cloneElement(c, {
8614
+ return React88.cloneElement(c, {
8591
8615
  defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
8592
8616
  checked: (_c = c.props.checked) != null ? _c : checked,
8593
8617
  onChange: (_d = c.props.onChange) != null ? _d : handleChange,
@@ -8597,19 +8621,19 @@ var SwitchGroup = (_a) => {
8597
8621
  })));
8598
8622
  };
8599
8623
  var SwitchGroupSkeleton = ({ options = 2 }) => {
8600
- return /* @__PURE__ */ React87.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React87.createElement("div", {
8624
+ return /* @__PURE__ */ React88.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React88.createElement("div", {
8601
8625
  className: tw("flex flex-wrap flex-col gap-2")
8602
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React87.createElement(Switch2.Skeleton, {
8626
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React88.createElement(Switch2.Skeleton, {
8603
8627
  key
8604
8628
  }))));
8605
8629
  };
8606
8630
  SwitchGroup.Skeleton = SwitchGroupSkeleton;
8607
8631
 
8608
8632
  // src/components/TagLabel/TagLabel.tsx
8609
- import React88 from "react";
8633
+ import React89 from "react";
8610
8634
  var TagLabel = (_a) => {
8611
8635
  var _b = _a, { title, dense = false } = _b, rest = __objRest(_b, ["title", "dense"]);
8612
- return /* @__PURE__ */ React88.createElement("span", __spreadProps(__spreadValues({}, rest), {
8636
+ return /* @__PURE__ */ React89.createElement("span", __spreadProps(__spreadValues({}, rest), {
8613
8637
  className: tw("rounded-full text-white bg-primary-70", {
8614
8638
  "py-2 px-4 typography-caption": !dense,
8615
8639
  "py-2 px-3 typography-caption-small": dense
@@ -8618,14 +8642,14 @@ var TagLabel = (_a) => {
8618
8642
  };
8619
8643
 
8620
8644
  // src/components/Textarea/Textarea.tsx
8621
- import React89, { useRef as useRef11, useState as useState12 } from "react";
8645
+ import React90, { useRef as useRef11, useState as useState12 } from "react";
8622
8646
  import omit17 from "lodash/omit";
8623
8647
  import toString2 from "lodash/toString";
8624
8648
  import uniqueId10 from "lodash/uniqueId";
8625
- var TextareaBase = React89.forwardRef(
8649
+ var TextareaBase = React90.forwardRef(
8626
8650
  (_a, ref) => {
8627
8651
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
8628
- return /* @__PURE__ */ React89.createElement("textarea", __spreadProps(__spreadValues({
8652
+ return /* @__PURE__ */ React90.createElement("textarea", __spreadProps(__spreadValues({
8629
8653
  ref
8630
8654
  }, props), {
8631
8655
  readOnly,
@@ -8633,10 +8657,10 @@ var TextareaBase = React89.forwardRef(
8633
8657
  }));
8634
8658
  }
8635
8659
  );
8636
- TextareaBase.Skeleton = () => /* @__PURE__ */ React89.createElement(Skeleton, {
8660
+ TextareaBase.Skeleton = () => /* @__PURE__ */ React90.createElement(Skeleton, {
8637
8661
  height: 58
8638
8662
  });
8639
- var Textarea = React89.forwardRef((props, ref) => {
8663
+ var Textarea = React90.forwardRef((props, ref) => {
8640
8664
  var _a, _b, _c;
8641
8665
  const [value, setValue] = useState12((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
8642
8666
  const id = useRef11((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
@@ -8644,12 +8668,12 @@ var Textarea = React89.forwardRef((props, ref) => {
8644
8668
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8645
8669
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
8646
8670
  const baseProps = omit17(props, Object.keys(labelControlProps));
8647
- return /* @__PURE__ */ React89.createElement(LabelControl, __spreadValues({
8671
+ return /* @__PURE__ */ React90.createElement(LabelControl, __spreadValues({
8648
8672
  id: `${id.current}-label`,
8649
8673
  htmlFor: id.current,
8650
8674
  messageId: errorMessageId,
8651
8675
  length: value !== void 0 ? toString2(value).length : void 0
8652
- }, labelControlProps), /* @__PURE__ */ React89.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
8676
+ }, labelControlProps), /* @__PURE__ */ React90.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
8653
8677
  ref
8654
8678
  }, baseProps), errorProps), {
8655
8679
  id: id.current,
@@ -8665,47 +8689,47 @@ var Textarea = React89.forwardRef((props, ref) => {
8665
8689
  valid: props.valid
8666
8690
  })));
8667
8691
  });
8668
- var TextAreaSkeleton = () => /* @__PURE__ */ React89.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React89.createElement(TextareaBase.Skeleton, null));
8692
+ var TextAreaSkeleton = () => /* @__PURE__ */ React90.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React90.createElement(TextareaBase.Skeleton, null));
8669
8693
  Textarea.Skeleton = TextAreaSkeleton;
8670
8694
 
8671
8695
  // src/components/Timeline/Timeline.tsx
8672
- import React91 from "react";
8696
+ import React92 from "react";
8673
8697
 
8674
8698
  // src/common/Timeline/Timeline.tsx
8675
- import React90 from "react";
8699
+ import React91 from "react";
8676
8700
  var Timeline = (_a) => {
8677
8701
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8678
- return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8702
+ return /* @__PURE__ */ React91.createElement("div", __spreadProps(__spreadValues({}, rest), {
8679
8703
  className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
8680
8704
  }));
8681
8705
  };
8682
8706
  var Content2 = (_a) => {
8683
8707
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8684
- return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8708
+ return /* @__PURE__ */ React91.createElement("div", __spreadProps(__spreadValues({}, rest), {
8685
8709
  className: classNames(tw("pb-6"), className)
8686
8710
  }));
8687
8711
  };
8688
8712
  var Separator2 = (_a) => {
8689
8713
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8690
- return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8714
+ return /* @__PURE__ */ React91.createElement("div", __spreadProps(__spreadValues({}, rest), {
8691
8715
  className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
8692
8716
  }));
8693
8717
  };
8694
8718
  var LineContainer = (_a) => {
8695
8719
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8696
- return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8720
+ return /* @__PURE__ */ React91.createElement("div", __spreadProps(__spreadValues({}, rest), {
8697
8721
  className: classNames(tw("flex justify-center py-1"), className)
8698
8722
  }));
8699
8723
  };
8700
8724
  var Line = (_a) => {
8701
8725
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8702
- return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8726
+ return /* @__PURE__ */ React91.createElement("div", __spreadProps(__spreadValues({}, rest), {
8703
8727
  className: classNames(tw("w-1 bg-grey-5 h-full justify-self-center"), className)
8704
8728
  }));
8705
8729
  };
8706
8730
  var Dot = (_a) => {
8707
8731
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8708
- return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8732
+ return /* @__PURE__ */ React91.createElement("div", __spreadProps(__spreadValues({}, rest), {
8709
8733
  className: classNames(tw("bg-grey-30 h-[6px] w-[6px] rounded"), className)
8710
8734
  }));
8711
8735
  };
@@ -8720,61 +8744,61 @@ var import_error4 = __toESM(require_error());
8720
8744
  var import_time = __toESM(require_time());
8721
8745
  var import_warningSign4 = __toESM(require_warningSign());
8722
8746
  var TimelineItem = () => null;
8723
- var Timeline2 = ({ children }) => /* @__PURE__ */ React91.createElement("div", null, React91.Children.map(children, (item) => {
8747
+ var Timeline2 = ({ children }) => /* @__PURE__ */ React92.createElement("div", null, React92.Children.map(children, (item) => {
8724
8748
  if (!isComponentType(item, TimelineItem)) {
8725
8749
  throw new Error("<Timeline> can only have <Timeline.Item> components as children");
8726
8750
  } else {
8727
8751
  const { props, key } = item;
8728
- return /* @__PURE__ */ React91.createElement(Timeline, {
8752
+ return /* @__PURE__ */ React92.createElement(Timeline, {
8729
8753
  key: key != null ? key : props.title
8730
- }, /* @__PURE__ */ React91.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React91.createElement(Icon, {
8754
+ }, /* @__PURE__ */ React92.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React92.createElement(Icon, {
8731
8755
  icon: import_error4.default,
8732
8756
  color: "error-30"
8733
- }) : props.variant === "warning" ? /* @__PURE__ */ React91.createElement(Icon, {
8757
+ }) : props.variant === "warning" ? /* @__PURE__ */ React92.createElement(Icon, {
8734
8758
  icon: import_warningSign4.default,
8735
8759
  color: "warning-30"
8736
- }) : props.variant === "info" ? /* @__PURE__ */ React91.createElement(Icon, {
8760
+ }) : props.variant === "info" ? /* @__PURE__ */ React92.createElement(Icon, {
8737
8761
  icon: import_time.default,
8738
8762
  color: "info-30"
8739
- }) : /* @__PURE__ */ React91.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React91.createElement(Typography2.Caption, {
8763
+ }) : /* @__PURE__ */ React92.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React92.createElement(Typography2.Caption, {
8740
8764
  color: "grey-50"
8741
- }, props.title), /* @__PURE__ */ React91.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React91.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React91.createElement(Timeline.Content, null, /* @__PURE__ */ React91.createElement(Typography2.Small, null, props.children)));
8765
+ }, props.title), /* @__PURE__ */ React92.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React92.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React92.createElement(Timeline.Content, null, /* @__PURE__ */ React92.createElement(Typography2.Small, null, props.children)));
8742
8766
  }
8743
8767
  }));
8744
- var TimelineItemSkeleton = () => /* @__PURE__ */ React91.createElement(Timeline, null, /* @__PURE__ */ React91.createElement(Timeline.Separator, null, /* @__PURE__ */ React91.createElement(Skeleton, {
8768
+ var TimelineItemSkeleton = () => /* @__PURE__ */ React92.createElement(Timeline, null, /* @__PURE__ */ React92.createElement(Timeline.Separator, null, /* @__PURE__ */ React92.createElement(Skeleton, {
8745
8769
  width: 6,
8746
8770
  height: 6,
8747
8771
  rounded: true
8748
- })), /* @__PURE__ */ React91.createElement(Skeleton, {
8772
+ })), /* @__PURE__ */ React92.createElement(Skeleton, {
8749
8773
  height: 12,
8750
8774
  width: 120
8751
- }), /* @__PURE__ */ React91.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React91.createElement(Skeleton, {
8775
+ }), /* @__PURE__ */ React92.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React92.createElement(Skeleton, {
8752
8776
  width: 2,
8753
8777
  height: "100%"
8754
- })), /* @__PURE__ */ React91.createElement(Timeline.Content, null, /* @__PURE__ */ React91.createElement(Box, {
8778
+ })), /* @__PURE__ */ React92.createElement(Timeline.Content, null, /* @__PURE__ */ React92.createElement(Box, {
8755
8779
  display: "flex",
8756
8780
  flexDirection: "column",
8757
8781
  gap: "3"
8758
- }, /* @__PURE__ */ React91.createElement(Skeleton, {
8782
+ }, /* @__PURE__ */ React92.createElement(Skeleton, {
8759
8783
  height: 32,
8760
8784
  width: "100%"
8761
- }), /* @__PURE__ */ React91.createElement(Skeleton, {
8785
+ }), /* @__PURE__ */ React92.createElement(Skeleton, {
8762
8786
  height: 32,
8763
8787
  width: "73%"
8764
- }), /* @__PURE__ */ React91.createElement(Skeleton, {
8788
+ }), /* @__PURE__ */ React92.createElement(Skeleton, {
8765
8789
  height: 32,
8766
8790
  width: "80%"
8767
8791
  }))));
8768
- var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React91.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React91.createElement(TimelineItemSkeleton, {
8792
+ var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React92.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React92.createElement(TimelineItemSkeleton, {
8769
8793
  key
8770
8794
  })));
8771
8795
  Timeline2.Item = TimelineItem;
8772
8796
  Timeline2.Skeleton = TimelineSkeleton;
8773
8797
 
8774
8798
  // src/utils/table/useTableSelect.ts
8775
- import React92 from "react";
8799
+ import React93 from "react";
8776
8800
  var useTableSelect = (data, { key }) => {
8777
- const [selected, setSelected] = React92.useState([]);
8801
+ const [selected, setSelected] = React93.useState([]);
8778
8802
  const allSelected = selected.length === data.length;
8779
8803
  const isSelected = (dot) => selected.includes(dot[key]);
8780
8804
  const selectAll = () => setSelected(data.map((dot) => dot[key]));
@@ -9002,6 +9026,7 @@ export {
9002
9026
  InputBase,
9003
9027
  Label,
9004
9028
  LabelControl,
9029
+ LineClamp,
9005
9030
  List,
9006
9031
  ListItem,
9007
9032
  Modal2 as Modal,