@aivenio/aquarium 1.11.0 → 1.13.0-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/_variables.scss +1 -1
  2. package/dist/_variables_timescale.scss +1 -1
  3. package/dist/atoms.cjs +35 -7
  4. package/dist/atoms.mjs +35 -7
  5. package/dist/src/atoms/DropdownMenu/DropdownMenu.js +3 -3
  6. package/dist/src/atoms/Popover/Popover.d.ts +2 -0
  7. package/dist/src/atoms/Popover/Popover.js +6 -2
  8. package/dist/src/molecules/Alert/Alert.d.ts +3 -3
  9. package/dist/src/molecules/Alert/Alert.js +6 -3
  10. package/dist/src/molecules/Button/Button.d.ts +12 -1
  11. package/dist/src/molecules/Button/Button.js +5 -2
  12. package/dist/src/molecules/Card/Compact.js +2 -2
  13. package/dist/src/molecules/Charts/data.d.ts +1 -0
  14. package/dist/src/molecules/Charts/data.js +122 -0
  15. package/dist/src/molecules/Combobox/Combobox.js +25 -24
  16. package/dist/src/molecules/Dialog/Dialog.d.ts +3 -3
  17. package/dist/src/molecules/Dialog/Dialog.js +25 -22
  18. package/dist/src/molecules/Dropdown/Dropdown.js +4 -3
  19. package/dist/src/molecules/DropdownMenu/DropdownMenu.js +4 -13
  20. package/dist/src/molecules/Modal/Modal.d.ts +5 -0
  21. package/dist/src/molecules/Modal/Modal.js +35 -32
  22. package/dist/src/molecules/MultiSelect/MultiSelect.js +26 -25
  23. package/dist/src/molecules/Popover/Dialog.d.ts +2 -0
  24. package/dist/src/molecules/Popover/Dialog.js +9 -0
  25. package/dist/src/molecules/Popover/Popover.d.ts +8 -6
  26. package/dist/src/molecules/Popover/Popover.js +8 -17
  27. package/dist/src/molecules/Popover/PopoverOverlay.d.ts +20 -0
  28. package/dist/src/molecules/Popover/PopoverOverlay.js +35 -0
  29. package/dist/src/molecules/PopoverDialog/PopoverDialog.js +2 -2
  30. package/dist/src/molecules/Select/Select.js +18 -24
  31. package/dist/src/molecules/Tooltip/Tooltip.js +16 -2
  32. package/dist/src/utils/form/Label/Label.js +2 -2
  33. package/dist/styles.css +6 -0
  34. package/dist/styles_timescaledb.css +6 -0
  35. package/dist/system.cjs +722 -676
  36. package/dist/system.mjs +685 -640
  37. package/dist/tsconfig.module.tsbuildinfo +1 -1
  38. package/dist/types/tailwindGenerated.d.ts +1 -1
  39. package/package.json +4 -4
  40. package/dist/src/molecules/Popover/PopoverWrapper.d.ts +0 -16
  41. package/dist/src/molecules/Popover/PopoverWrapper.js +0 -34
package/dist/system.mjs CHANGED
@@ -1635,6 +1635,7 @@ __export(molecules_exports, {
1635
1635
  TagLabel: () => TagLabel,
1636
1636
  Tailwindify: () => Tailwindify,
1637
1637
  Template: () => Template,
1638
+ TextButton: () => TextButton,
1638
1639
  Textarea: () => Textarea,
1639
1640
  TextareaBase: () => TextareaBase,
1640
1641
  Timeline: () => Timeline2,
@@ -1877,9 +1878,6 @@ var Select = {
1877
1878
  import React10 from "react";
1878
1879
  import omit from "lodash/omit";
1879
1880
 
1880
- // src/atoms/Alert/Alert.tsx
1881
- import React9 from "react";
1882
-
1883
1881
  // src/molecules/Button/Button.tsx
1884
1882
  import React7 from "react";
1885
1883
 
@@ -2706,6 +2704,7 @@ var Flexbox = Tailwindify(
2706
2704
 
2707
2705
  // src/molecules/Tooltip/Tooltip.tsx
2708
2706
  import React6 from "react";
2707
+ import { useFocusWithin } from "@react-aria/interactions";
2709
2708
  import { OverlayContainer, useOverlayPosition } from "@react-aria/overlays";
2710
2709
  import { useTooltip, useTooltipTrigger } from "@react-aria/tooltip";
2711
2710
  import { mergeProps } from "@react-aria/utils";
@@ -2843,6 +2842,9 @@ var Tooltip = (_a) => {
2843
2842
  shouldFlip,
2844
2843
  offset: ARROW_OFFSET
2845
2844
  });
2845
+ const { focusWithinProps } = useFocusWithin({
2846
+ onFocusWithinChange: (isFocusWithin) => isFocusWithin ? state.open() : state.close()
2847
+ });
2846
2848
  const handleClick = (e) => {
2847
2849
  var _a2, _b2;
2848
2850
  (_a2 = props.onClick) == null ? void 0 : _a2.call(props, e);
@@ -2871,6 +2873,16 @@ var Tooltip = (_a) => {
2871
2873
  return /* @__PURE__ */ React6.createElement("div", __spreadProps(__spreadValues({
2872
2874
  className: tw(`${inline ? "inline-block" : "block"}`)
2873
2875
  }, triggerProps), {
2876
+ onFocus: (e) => {
2877
+ var _a2, _b2;
2878
+ (_a2 = triggerProps.onFocus) == null ? void 0 : _a2.call(triggerProps, e);
2879
+ (_b2 = focusWithinProps.onFocus) == null ? void 0 : _b2.call(focusWithinProps, e);
2880
+ },
2881
+ onBlur: (e) => {
2882
+ var _a2, _b2;
2883
+ (_a2 = triggerProps.onBlur) == null ? void 0 : _a2.call(triggerProps, e);
2884
+ (_b2 = focusWithinProps.onBlur) == null ? void 0 : _b2.call(focusWithinProps, e);
2885
+ },
2874
2886
  onClick: handleClick,
2875
2887
  onMouseDown: handleMouseDown,
2876
2888
  onMouseUp: handleMouseUp,
@@ -2965,6 +2977,7 @@ var COLOR_CLASSNAMES = {
2965
2977
  "hover:ring-grey-50 hover:text-grey-80 disabled:text-grey-30 disabled:bg-grey-0 disabled:ring-grey-20"
2966
2978
  ),
2967
2979
  "ghost": ghostButtonStyle,
2980
+ "text": ghostButtonStyle,
2968
2981
  "secondary-ghost": tw(
2969
2982
  "text-grey-60 active:text-grey-50 focus-visible:text-grey-80 hover:text-grey-80 disabled:text-grey-30"
2970
2983
  )
@@ -3064,7 +3077,7 @@ var asButton = (Component, isDropdownButton) => {
3064
3077
  !isIconOnlyButton && COLOR_CLASSNAMES[kind],
3065
3078
  tw("inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative", {
3066
3079
  "text-grey-70 p-2 active:text-grey-70 active:bg-transparent hover:text-grey-90 hover:bg-grey-0 focus-visible:text-grey-90 focus-visible:bg-grey-0 disabled:text-grey-20 disabled:bg-transparent": isIconOnlyButton,
3067
- "typography-default-strong": !dense && !isIconOnlyButton,
3080
+ "typography-default-strong": !dense && !isIconOnlyButton && kind !== "text",
3068
3081
  "typography-small-strong": dense && !isIconOnlyButton,
3069
3082
  "py-3 px-4": !dense && isButton,
3070
3083
  "py-2 px-3": dense && isButton,
@@ -3118,6 +3131,12 @@ var SecondaryGhostButton = React7.forwardRef((props, ref) => /* @__PURE__ */ Rea
3118
3131
  kind: "secondary-ghost"
3119
3132
  })));
3120
3133
  SecondaryGhostButton.displayName = "SecondaryGhostButton";
3134
+ var TextButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.createElement(Button, __spreadProps(__spreadValues({
3135
+ ref
3136
+ }, props), {
3137
+ kind: "text"
3138
+ })));
3139
+ TextButton.displayName = "TextButton";
3121
3140
  var IconButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.createElement(Button, __spreadProps(__spreadValues({
3122
3141
  ref
3123
3142
  }, props), {
@@ -3149,6 +3168,9 @@ var SecondaryDropdownButton = React7.forwardRef((props, ref) => /* @__PURE__ */
3149
3168
  })));
3150
3169
  SecondaryDropdownButton.displayName = "SecondaryDropdownButton";
3151
3170
 
3171
+ // src/atoms/Alert/Alert.tsx
3172
+ import React9 from "react";
3173
+
3152
3174
  // src/atoms/Typography/Typography.tsx
3153
3175
  var import_resolveTheme = __toESM(require_resolveTheme());
3154
3176
  import React8 from "react";
@@ -3276,14 +3298,18 @@ Alert.Dismiss = (_a) => {
3276
3298
  };
3277
3299
 
3278
3300
  // src/molecules/Alert/Alert.tsx
3279
- var Alert2 = ({ description, type, title, action, onDismiss, children }) => /* @__PURE__ */ React10.createElement(Alert, {
3301
+ var isLink = (action) => action.href !== void 0;
3302
+ var Alert2 = ({ description, type, title, onDismiss, children, action }) => /* @__PURE__ */ React10.createElement(Alert, {
3280
3303
  type,
3281
3304
  dense: Boolean(title)
3282
3305
  }, /* @__PURE__ */ React10.createElement(Alert.Icon, {
3283
3306
  type,
3284
3307
  dense: Boolean(title)
3285
- }), title && /* @__PURE__ */ React10.createElement(Alert.Title, null, title), /* @__PURE__ */ React10.createElement(Alert.Description, null, children || description), action && /* @__PURE__ */ React10.createElement(Alert.Actions, null, /* @__PURE__ */ React10.createElement(GhostButton, __spreadValues({
3308
+ }), title && /* @__PURE__ */ React10.createElement(Alert.Title, null, title), /* @__PURE__ */ React10.createElement(Alert.Description, null, children || description), action && /* @__PURE__ */ React10.createElement(Alert.Actions, null, !isLink(action) && /* @__PURE__ */ React10.createElement(GhostButton, __spreadValues({
3286
3309
  dense: true
3310
+ }, omit(action, "text")), action.text), isLink(action) && /* @__PURE__ */ React10.createElement(ExternalLinkButton, __spreadValues({
3311
+ dense: true,
3312
+ kind: "ghost"
3287
3313
  }, omit(action, "text")), action.text)), onDismiss && /* @__PURE__ */ React10.createElement(Alert.Dismiss, {
3288
3314
  onClick: onDismiss
3289
3315
  }));
@@ -4119,7 +4145,8 @@ var CompactCard = ({
4119
4145
  }), /* @__PURE__ */ React25.createElement(Card.Content, {
4120
4146
  dense: true
4121
4147
  }, clampTitle ? /* @__PURE__ */ React25.createElement(LineClamp, {
4122
- lines: clampTitle
4148
+ lines: clampTitle,
4149
+ wordBreak: "break-all"
4123
4150
  }, titleContent) : titleContent, /* @__PURE__ */ React25.createElement(Typography2.Caption, {
4124
4151
  color: "grey-70"
4125
4152
  }, children))), (action || link) && /* @__PURE__ */ React25.createElement(Card.Actions, {
@@ -4689,6 +4716,7 @@ var LabelText = ({
4689
4716
  content: helpTooltip,
4690
4717
  placement: helpTooltipPlacement
4691
4718
  }, /* @__PURE__ */ React36.createElement("span", {
4719
+ tabIndex: 0,
4692
4720
  className: tw("text-grey-30 flex items-center cursor-pointer ml-2")
4693
4721
  }, /* @__PURE__ */ React36.createElement(InlineIcon, {
4694
4722
  icon: import_questionMark.default,
@@ -4884,18 +4912,16 @@ var ChoiceChip = (_a) => {
4884
4912
  };
4885
4913
 
4886
4914
  // src/molecules/Combobox/Combobox.tsx
4887
- import React41, { useEffect as useEffect4, useRef as useRef5, useState as useState5 } from "react";
4888
- import { useOverlayPosition as useOverlayPosition2 } from "@react-aria/overlays";
4915
+ import React41, { useEffect as useEffect5, useRef as useRef5, useState as useState5 } from "react";
4916
+ import { ariaHideOutside } from "@react-aria/overlays";
4889
4917
  import { useCombobox } from "downshift";
4890
4918
  import omit6 from "lodash/omit";
4891
4919
  import uniqueId2 from "lodash/uniqueId";
4892
4920
  import { matchSorter } from "match-sorter";
4893
4921
 
4894
- // src/molecules/Popover/PopoverWrapper.tsx
4895
- import React40 from "react";
4896
- import { FocusScope } from "@react-aria/focus";
4897
- import { OverlayContainer as OverlayContainer2, useModal, useOverlay } from "@react-aria/overlays";
4898
- import { mergeProps as mergeProps2 } from "@react-aria/utils";
4922
+ // src/molecules/Popover/PopoverOverlay.tsx
4923
+ import React40, { useEffect as useEffect4 } from "react";
4924
+ import { DismissButton, Overlay, usePopover } from "@react-aria/overlays";
4899
4925
 
4900
4926
  // src/atoms/Popover/Popover.tsx
4901
4927
  import React39 from "react";
@@ -4905,69 +4931,83 @@ var PopoverPanel = React39.forwardRef((_a, ref) => {
4905
4931
  ref,
4906
4932
  className: classNames(
4907
4933
  className,
4908
- tw(
4909
- "rounded-sm shadow-16dp bg-white mt-1 overflow-y-auto flex flex-col focus-visible:outline-0 focus-visible:border-info-70 border border-grey-20"
4910
- )
4934
+ tw("rounded-sm shadow-16dp bg-white mt-1 overflow-y-auto flex flex-col border border-grey-20 outline-none")
4911
4935
  )
4912
4936
  }, props), children);
4913
4937
  });
4938
+ PopoverPanel.displayName = "Popover.Panel";
4939
+ var PopoverUnderlay = React39.forwardRef((props, ref) => /* @__PURE__ */ React39.createElement("div", __spreadProps(__spreadValues({
4940
+ ref
4941
+ }, props), {
4942
+ className: tw("fixed inset-0")
4943
+ })));
4944
+ PopoverUnderlay.displayName = "Popover.Underlay";
4914
4945
  var Popover = {
4915
- Panel: PopoverPanel
4946
+ Panel: PopoverPanel,
4947
+ Underlay: PopoverUnderlay
4916
4948
  };
4917
4949
 
4918
- // src/molecules/Popover/PopoverWrapper.tsx
4919
- var PopoverWrapper = React40.forwardRef((props, ref) => {
4920
- const _a = props, {
4921
- id,
4922
- children,
4923
- placement,
4924
- arrowProps,
4925
- isOpen,
4926
- hideArrow,
4927
- shouldCloseOnBlur,
4928
- isKeyboardDismissDisabled,
4929
- isNonModal = true,
4930
- isDismissable,
4931
- autoFocus,
4932
- containFocus,
4933
- className
4934
- } = _a, otherProps = __objRest(_a, [
4935
- "id",
4936
- "children",
4937
- "placement",
4938
- "arrowProps",
4939
- "isOpen",
4940
- "hideArrow",
4941
- "shouldCloseOnBlur",
4942
- "isKeyboardDismissDisabled",
4943
- "isNonModal",
4944
- "isDismissable",
4945
- "autoFocus",
4946
- "containFocus",
4947
- "className"
4948
- ]);
4949
- const { overlayProps } = useOverlay(
4950
- __spreadProps(__spreadValues({}, props), { isDismissable: isDismissable && isOpen }),
4950
+ // src/molecules/Popover/PopoverOverlay.tsx
4951
+ var PopoverOverlay = React40.forwardRef((props, ref) => {
4952
+ return /* @__PURE__ */ React40.createElement(Overlay, null, /* @__PURE__ */ React40.createElement(Wrapper, __spreadValues({
4951
4953
  ref
4952
- );
4953
- const { modalProps } = useModal({
4954
- isDisabled: isNonModal
4955
- });
4956
- if (!props.isOpen) {
4957
- return null;
4958
- }
4959
- return /* @__PURE__ */ React40.createElement(OverlayContainer2, null, /* @__PURE__ */ React40.createElement(FocusScope, {
4960
- restoreFocus: true,
4961
- autoFocus,
4962
- contain: containFocus
4963
- }, /* @__PURE__ */ React40.createElement(Popover.Panel, __spreadProps(__spreadValues({
4964
- ref,
4965
- role: "dialog"
4966
- }, mergeProps2(otherProps, modalProps, overlayProps)), {
4967
- id: id != null ? id : overlayProps.id,
4968
- className
4969
- }), children)));
4954
+ }, props)));
4970
4955
  });
4956
+ var Wrapper = React40.forwardRef(
4957
+ (_a, ref) => {
4958
+ var _b = _a, {
4959
+ id,
4960
+ state,
4961
+ className,
4962
+ style = {},
4963
+ placement = "bottom-left",
4964
+ role,
4965
+ isNonModal = false,
4966
+ autoFocus,
4967
+ containFocus,
4968
+ children,
4969
+ popoverRef: _popoverRef
4970
+ } = _b, props = __objRest(_b, [
4971
+ "id",
4972
+ "state",
4973
+ "className",
4974
+ "style",
4975
+ "placement",
4976
+ "role",
4977
+ "isNonModal",
4978
+ "autoFocus",
4979
+ "containFocus",
4980
+ "children",
4981
+ "popoverRef"
4982
+ ]);
4983
+ const popoverRef = React40.useRef(null);
4984
+ React40.useImperativeHandle(ref, () => popoverRef.current);
4985
+ useEffect4(() => {
4986
+ if (autoFocus && popoverRef.current) {
4987
+ popoverRef.current.focus();
4988
+ }
4989
+ }, []);
4990
+ const { underlayProps, popoverProps } = usePopover(
4991
+ __spreadProps(__spreadValues({}, props), {
4992
+ isNonModal,
4993
+ placement: placement.replace("-", " "),
4994
+ popoverRef
4995
+ }),
4996
+ state
4997
+ );
4998
+ return /* @__PURE__ */ React40.createElement("div", null, !isNonModal && /* @__PURE__ */ React40.createElement(Popover.Underlay, __spreadValues({}, underlayProps)), /* @__PURE__ */ React40.createElement(Popover.Panel, __spreadProps(__spreadValues({
4999
+ ref: popoverRef,
5000
+ tabIndex: 0,
5001
+ role: role != null ? role : "presentation"
5002
+ }, popoverProps), {
5003
+ id: id != null ? id : popoverProps.id,
5004
+ style: __spreadValues(__spreadValues({}, popoverProps.style), style),
5005
+ className
5006
+ }), children, /* @__PURE__ */ React40.createElement(DismissButton, {
5007
+ onDismiss: state.close
5008
+ })));
5009
+ }
5010
+ );
4971
5011
 
4972
5012
  // src/molecules/Combobox/Combobox.tsx
4973
5013
  var ComboboxBase = (_a) => {
@@ -5011,8 +5051,10 @@ var ComboboxBase = (_a) => {
5011
5051
  "readOnly"
5012
5052
  ]);
5013
5053
  var _a2;
5054
+ const popoverRef = useRef5(null);
5014
5055
  const targetRef = useRef5(null);
5015
- const overlayRef = useRef5(null);
5056
+ const menuRef = useRef5(null);
5057
+ const inputRef = useRef5(null);
5016
5058
  const [inputItems, setInputItems] = useState5(options);
5017
5059
  const [hasFocus, setFocus] = useState5(false);
5018
5060
  const updateInputItems = (query) => {
@@ -5021,15 +5063,16 @@ var ComboboxBase = (_a) => {
5021
5063
  };
5022
5064
  const {
5023
5065
  isOpen,
5066
+ openMenu,
5067
+ closeMenu,
5068
+ toggleMenu,
5024
5069
  getToggleButtonProps,
5025
5070
  getMenuProps,
5026
5071
  getInputProps,
5027
5072
  highlightedIndex,
5028
5073
  inputValue,
5029
5074
  getItemProps,
5030
- selectedItem,
5031
- closeMenu,
5032
- openMenu
5075
+ selectedItem
5033
5076
  } = useCombobox({
5034
5077
  id,
5035
5078
  selectedItem: value,
@@ -5050,20 +5093,24 @@ var ComboboxBase = (_a) => {
5050
5093
  onSelectedItemChange: (e) => onChange == null ? void 0 : onChange(e.selectedItem),
5051
5094
  onInputValueChange: ({ inputValue: inputValue2 }) => updateInputItems(inputValue2)
5052
5095
  });
5053
- const { overlayProps } = useOverlayPosition2({
5054
- targetRef,
5055
- overlayRef,
5056
- placement: "bottom start",
5057
- shouldFlip: true,
5058
- isOpen
5059
- });
5060
- useEffect4(() => {
5096
+ const state = {
5097
+ isOpen,
5098
+ close: closeMenu,
5099
+ open: openMenu,
5100
+ toggle: toggleMenu,
5101
+ setOpen: (isOpen2) => isOpen2 ? openMenu() : closeMenu()
5102
+ };
5103
+ useEffect5(() => {
5061
5104
  updateInputItems(inputValue);
5062
5105
  }, [JSON.stringify(options)]);
5063
- const inputProps = getInputProps({ disabled: disabled || readOnly });
5106
+ useEffect5(() => {
5107
+ if (state.isOpen && inputRef.current && popoverRef.current) {
5108
+ return ariaHideOutside([inputRef.current, popoverRef.current]);
5109
+ }
5110
+ }, [state.isOpen, inputRef, popoverRef]);
5111
+ const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
5112
+ const inputProps = getInputProps({ ref: inputRef, disabled: disabled || readOnly });
5064
5113
  const hasNoResults = options.length === 0 || inputItems.length === 0;
5065
- const width = (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth;
5066
- const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
5067
5114
  return /* @__PURE__ */ React41.createElement("div", {
5068
5115
  className: tw("relative")
5069
5116
  }, /* @__PURE__ */ React41.createElement(Select.InputContainer, {
@@ -5071,6 +5118,7 @@ var ComboboxBase = (_a) => {
5071
5118
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
5072
5119
  }, /* @__PURE__ */ React41.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
5073
5120
  id,
5121
+ ref: inputRef,
5074
5122
  name,
5075
5123
  placeholder: readOnly ? void 0 : placeholder
5076
5124
  }, inputProps), props), {
@@ -5094,16 +5142,18 @@ var ComboboxBase = (_a) => {
5094
5142
  })), !readOnly && /* @__PURE__ */ React41.createElement(Select.Toggle, __spreadValues({
5095
5143
  hasFocus,
5096
5144
  isOpen
5097
- }, getToggleButtonProps({ disabled })))), /* @__PURE__ */ React41.createElement(PopoverWrapper, __spreadProps(__spreadValues({
5098
- isOpen: true,
5099
- isDismissable: true,
5100
- autoFocus: true
5101
- }, getMenuProps({ ref: overlayRef })), {
5102
- style,
5103
- onClose: closeMenu
5104
- }), /* @__PURE__ */ React41.createElement(Select.Menu, {
5145
+ }, getToggleButtonProps({ disabled })))), isOpen && /* @__PURE__ */ React41.createElement(PopoverOverlay, {
5146
+ ref: popoverRef,
5147
+ triggerRef: targetRef,
5148
+ state,
5149
+ placement: "bottom-left",
5150
+ shouldFlip: true,
5151
+ isNonModal: true,
5152
+ style: { width: (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth }
5153
+ }, /* @__PURE__ */ React41.createElement(Select.Menu, __spreadValues({
5154
+ ref: menuRef,
5105
5155
  maxHeight
5106
- }, isOpen && hasNoResults && /* @__PURE__ */ React41.createElement(Select.NoResults, null, noResults), isOpen && inputItems.map((item, index) => /* @__PURE__ */ React41.createElement(Select.Item, __spreadValues({
5156
+ }, menuProps), hasNoResults && /* @__PURE__ */ React41.createElement(Select.NoResults, null, noResults), inputItems.map((item, index) => /* @__PURE__ */ React41.createElement(Select.Item, __spreadValues({
5107
5157
  key: itemToString(item),
5108
5158
  selected: item === selectedItem,
5109
5159
  highlighted: index === highlightedIndex
@@ -5572,8 +5622,7 @@ var DataTable = (_a) => {
5572
5622
  // src/molecules/Dialog/Dialog.tsx
5573
5623
  import React53 from "react";
5574
5624
  import { useDialog } from "@react-aria/dialog";
5575
- import { FocusScope as FocusScope2 } from "@react-aria/focus";
5576
- import { Overlay, useModalOverlay } from "@react-aria/overlays";
5625
+ import { Overlay as Overlay2, useModalOverlay } from "@react-aria/overlays";
5577
5626
  import { useId } from "@react-aria/utils";
5578
5627
  import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
5579
5628
  import omit7 from "lodash/omit";
@@ -5700,36 +5749,37 @@ Modal.Actions = (_a) => {
5700
5749
  };
5701
5750
 
5702
5751
  // src/molecules/Dialog/Dialog.tsx
5703
- var Dialog = ({
5752
+ var Dialog = (props) => {
5753
+ const ref = React53.useRef(null);
5754
+ const state = useOverlayTriggerState2({ isOpen: props.open });
5755
+ const { modalProps, underlayProps } = useModalOverlay({}, state, ref);
5756
+ if (!state.isOpen) {
5757
+ return null;
5758
+ }
5759
+ return /* @__PURE__ */ React53.createElement(Overlay2, null, /* @__PURE__ */ React53.createElement(Modal, {
5760
+ open: true
5761
+ }, /* @__PURE__ */ React53.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React53.createElement(Modal.Dialog, __spreadValues({
5762
+ ref,
5763
+ size: "sm"
5764
+ }, modalProps), /* @__PURE__ */ React53.createElement(DialogWrapper, __spreadValues({}, props)))));
5765
+ };
5766
+ var DialogWrapper = ({
5704
5767
  title,
5705
5768
  type = "confirmation",
5706
- open,
5707
5769
  children,
5708
5770
  primaryAction,
5709
5771
  secondaryAction
5710
5772
  }) => {
5711
5773
  const ref = React53.useRef(null);
5712
- const state = useOverlayTriggerState2({ isOpen: open });
5713
- const { modalProps, underlayProps } = useModalOverlay({ isDismissable: false }, state, ref);
5714
5774
  const labelledBy = useId();
5715
5775
  const describedBy = useId();
5716
5776
  const { dialogProps } = useDialog(
5717
5777
  { "role": "alertdialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
5718
5778
  ref
5719
5779
  );
5720
- if (!open) {
5721
- return null;
5722
- }
5723
- return /* @__PURE__ */ React53.createElement(Overlay, null, /* @__PURE__ */ React53.createElement(Modal, {
5724
- open
5725
- }, /* @__PURE__ */ React53.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React53.createElement(FocusScope2, {
5726
- contain: true,
5727
- restoreFocus: true,
5728
- autoFocus: true
5729
- }, /* @__PURE__ */ React53.createElement(Modal.Dialog, __spreadValues(__spreadValues({
5730
- ref,
5731
- size: "sm"
5732
- }, modalProps), dialogProps), /* @__PURE__ */ React53.createElement(Modal.Header, null, /* @__PURE__ */ React53.createElement(Icon, {
5780
+ return /* @__PURE__ */ React53.createElement("div", __spreadValues({
5781
+ ref
5782
+ }, dialogProps), /* @__PURE__ */ React53.createElement(Modal.Header, null, /* @__PURE__ */ React53.createElement(Icon, {
5733
5783
  icon: DIALOG_ICONS_AND_COLORS[type].icon,
5734
5784
  color: DIALOG_ICONS_AND_COLORS[type].color,
5735
5785
  fontSize: 20
@@ -5743,7 +5793,7 @@ var Dialog = ({
5743
5793
  key: secondaryAction.text
5744
5794
  }, omit7(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React53.createElement(SecondaryButton, __spreadValues({
5745
5795
  key: primaryAction.text
5746
- }, omit7(primaryAction, "text")), primaryAction.text)))))));
5796
+ }, omit7(primaryAction, "text")), primaryAction.text))));
5747
5797
  };
5748
5798
 
5749
5799
  // src/molecules/Divider/Divider.tsx
@@ -5778,15 +5828,28 @@ var Divider2 = (_a) => {
5778
5828
  };
5779
5829
 
5780
5830
  // src/molecules/Dropdown/Dropdown.tsx
5781
- import React56 from "react";
5831
+ import React57 from "react";
5782
5832
 
5783
5833
  // src/molecules/Popover/Popover.tsx
5784
- import React55, { useRef as useRef6 } from "react";
5834
+ import React56, { useRef as useRef6 } from "react";
5785
5835
  import { PressResponder, usePress } from "@react-aria/interactions";
5786
- import { useOverlayPosition as useOverlayPosition3, useOverlayTrigger } from "@react-aria/overlays";
5787
- import { mergeProps as mergeProps3 } from "@react-aria/utils";
5836
+ import { useOverlayTrigger } from "@react-aria/overlays";
5837
+ import { mergeProps as mergeProps2 } from "@react-aria/utils";
5788
5838
  import { useOverlayTriggerState as useOverlayTriggerState3 } from "@react-stately/overlays";
5789
5839
 
5840
+ // src/molecules/Popover/Dialog.tsx
5841
+ import React55 from "react";
5842
+ import { useDialog as useDialog2 } from "@react-aria/dialog";
5843
+ var Dialog2 = ({ children }) => {
5844
+ const ref = React55.useRef(null);
5845
+ const { dialogProps } = useDialog2({}, ref);
5846
+ return /* @__PURE__ */ React55.createElement("div", __spreadProps(__spreadValues({
5847
+ ref
5848
+ }, dialogProps), {
5849
+ className: tw("outline-none")
5850
+ }), children);
5851
+ };
5852
+
5790
5853
  // src/molecules/Popover/PopoverContext.tsx
5791
5854
  import { createContext, useContext as useContext2 } from "react";
5792
5855
  var PopoverContext = createContext(null);
@@ -5800,65 +5863,46 @@ var usePopoverContext = () => {
5800
5863
 
5801
5864
  // src/molecules/Popover/Popover.tsx
5802
5865
  var Popover2 = (props) => {
5803
- var _a;
5804
5866
  const {
5805
5867
  id,
5806
- placement: _placement = "bottom-left",
5807
- isDismissable = true,
5808
- isKeyboardDismissDisabled,
5809
- autoFocus = true,
5810
- containFocus = false,
5811
- targetRef
5868
+ type,
5869
+ placement = "bottom-left",
5870
+ containFocus = true,
5871
+ isKeyboardDismissDisabled = false,
5872
+ targetRef,
5873
+ offset,
5874
+ crossOffset,
5875
+ shouldFlip
5812
5876
  } = props;
5813
5877
  const triggerRef = useRef6(null);
5814
- const overlayRef = useRef6(null);
5815
5878
  const state = useOverlayTriggerState3(props);
5816
- const {
5817
- overlayProps: popoverProps,
5818
- placement,
5819
- arrowProps
5820
- } = useOverlayPosition3({
5821
- targetRef: targetRef != null ? targetRef : triggerRef,
5822
- overlayRef,
5823
- placement: _placement.replace("-", " "),
5824
- offset: props.offset,
5825
- shouldFlip: props.shouldFlip,
5826
- isOpen: state.isOpen
5827
- });
5828
- const { triggerProps, overlayProps: otherOverlayProps } = useOverlayTrigger(
5829
- { type: (_a = props.type) != null ? _a : "dialog" },
5830
- state,
5831
- triggerRef
5832
- );
5833
- return /* @__PURE__ */ React55.createElement(PopoverContext.Provider, {
5879
+ const { triggerProps, overlayProps } = useOverlayTrigger({ type: type != null ? type : "dialog" }, state, triggerRef);
5880
+ return /* @__PURE__ */ React56.createElement(PopoverContext.Provider, {
5834
5881
  value: {
5835
5882
  state
5836
5883
  }
5837
- }, React55.Children.map(props.children, (child) => {
5884
+ }, React56.Children.map(props.children, (child) => {
5838
5885
  if (isComponentType(child, Popover2.Trigger)) {
5839
- return /* @__PURE__ */ React55.createElement(PressResponder, __spreadValues({
5840
- ref: triggerRef,
5841
- onPress: state.toggle
5842
- }, triggerProps), /* @__PURE__ */ React55.createElement(PopoverTriggerWrapper, {
5886
+ return /* @__PURE__ */ React56.createElement(PressResponder, __spreadValues({
5887
+ ref: triggerRef
5888
+ }, triggerProps), /* @__PURE__ */ React56.createElement(PopoverTriggerWrapper, {
5843
5889
  "data-testid": props["data-testid"],
5844
5890
  "aria-controls": id
5845
5891
  }, child.props.children));
5846
5892
  }
5847
5893
  if (isComponentType(child, Popover2.Panel)) {
5848
- return /* @__PURE__ */ React55.createElement(PopoverWrapper, __spreadProps(__spreadValues(__spreadValues({
5849
- ref: overlayRef,
5850
- isOpen: state.isOpen,
5851
- onClose: state.close,
5894
+ return state.isOpen && /* @__PURE__ */ React56.createElement(PopoverOverlay, __spreadValues({
5895
+ triggerRef: targetRef != null ? targetRef : triggerRef,
5896
+ state,
5852
5897
  placement,
5853
- arrowProps,
5854
- isDismissable,
5898
+ isNonModal: !containFocus,
5899
+ autoFocus: !containFocus,
5855
5900
  isKeyboardDismissDisabled,
5856
- autoFocus,
5857
- containFocus
5858
- }, popoverProps), otherOverlayProps), {
5859
- id,
5860
- className: child.props.className
5861
- }), child.props.children);
5901
+ className: child.props.className,
5902
+ offset,
5903
+ crossOffset,
5904
+ shouldFlip
5905
+ }, overlayProps), containFocus ? /* @__PURE__ */ React56.createElement(Dialog2, null, child.props.children) : child.props.children);
5862
5906
  }
5863
5907
  throw new Error("Invalid children element type");
5864
5908
  }));
@@ -5877,7 +5921,7 @@ var asPopoverButton = (Component, displayName) => {
5877
5921
  state.close();
5878
5922
  onClick == null ? void 0 : onClick(e);
5879
5923
  };
5880
- return /* @__PURE__ */ React55.createElement(Component, __spreadProps(__spreadValues({}, props), {
5924
+ return /* @__PURE__ */ React56.createElement(Component, __spreadProps(__spreadValues({}, props), {
5881
5925
  onClick: handleClick
5882
5926
  }));
5883
5927
  };
@@ -5890,22 +5934,21 @@ var PopoverTriggerWrapper = (_a) => {
5890
5934
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
5891
5935
  var _a2;
5892
5936
  const ref = useRef6(null);
5893
- const trigger = React55.Children.only(children);
5937
+ const trigger = React56.Children.only(children);
5894
5938
  const { pressProps } = usePress(__spreadProps(__spreadValues({}, rest), { ref }));
5895
- return React55.cloneElement(trigger, __spreadProps(__spreadValues({
5939
+ return React56.cloneElement(trigger, __spreadProps(__spreadValues({
5896
5940
  "ref": ref
5897
- }, mergeProps3(pressProps, trigger.props)), {
5941
+ }, mergeProps2(pressProps, trigger.props)), {
5898
5942
  "aria-controls": (_a2 = rest["aria-controls"]) != null ? _a2 : pressProps["aria-controls"]
5899
5943
  }));
5900
5944
  };
5901
5945
 
5902
5946
  // src/molecules/Dropdown/Dropdown.tsx
5903
5947
  var Dropdown = ({ children, content, placement = "bottom-left" }) => {
5904
- return /* @__PURE__ */ React56.createElement(Popover2, {
5948
+ return /* @__PURE__ */ React57.createElement(Popover2, {
5905
5949
  type: "menu",
5906
- placement,
5907
- autoFocus: true
5908
- }, /* @__PURE__ */ React56.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React56.createElement(Popover2.Panel, null, content));
5950
+ placement
5951
+ }, /* @__PURE__ */ React57.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React57.createElement(Popover2.Panel, null, content));
5909
5952
  };
5910
5953
  var DropdownMenu = ({
5911
5954
  title,
@@ -5914,26 +5957,26 @@ var DropdownMenu = ({
5914
5957
  triggerId,
5915
5958
  setClose = () => void 0
5916
5959
  }) => {
5917
- const menuRef = React56.useRef(null);
5918
- React56.useEffect(() => {
5960
+ const menuRef = React57.useRef(null);
5961
+ React57.useEffect(() => {
5919
5962
  const id = setTimeout(() => {
5920
5963
  var _a, _b, _c;
5921
5964
  return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
5922
5965
  });
5923
5966
  return () => clearTimeout(id);
5924
5967
  }, [menuRef.current]);
5925
- return /* @__PURE__ */ React56.createElement("div", {
5968
+ return /* @__PURE__ */ React57.createElement("div", {
5926
5969
  style: { minWidth: "250px" },
5927
5970
  className: tw("py-3 bg-white")
5928
- }, !!title && /* @__PURE__ */ React56.createElement("div", {
5971
+ }, !!title && /* @__PURE__ */ React57.createElement("div", {
5929
5972
  className: tw("px-4 py-4 text-left text-grey-100 typography-default-strong")
5930
- }, title), /* @__PURE__ */ React56.createElement("ol", {
5973
+ }, title), /* @__PURE__ */ React57.createElement("ol", {
5931
5974
  role: "menu",
5932
5975
  ref: menuRef,
5933
5976
  id: contentId,
5934
5977
  "aria-labelledby": triggerId
5935
- }, React56.Children.map(children, (child) => {
5936
- return React56.cloneElement(child, { setClose });
5978
+ }, React57.Children.map(children, (child) => {
5979
+ return React57.cloneElement(child, { setClose });
5937
5980
  })));
5938
5981
  };
5939
5982
  var DropdownItem = (_a) => {
@@ -5988,10 +6031,10 @@ var DropdownItem = (_a) => {
5988
6031
  handleSelect();
5989
6032
  }
5990
6033
  };
5991
- const itemContent = /* @__PURE__ */ React56.createElement("div", {
6034
+ const itemContent = /* @__PURE__ */ React57.createElement("div", {
5992
6035
  className: tw("py-3 px-4")
5993
6036
  }, children);
5994
- return /* @__PURE__ */ React56.createElement("li", __spreadProps(__spreadValues({
6037
+ return /* @__PURE__ */ React57.createElement("li", __spreadProps(__spreadValues({
5995
6038
  role: "menuitem",
5996
6039
  tabIndex: -1,
5997
6040
  onClick: handleClick,
@@ -6002,59 +6045,61 @@ var DropdownItem = (_a) => {
6002
6045
  "text-grey-10 cursor-not-allowed": disabled,
6003
6046
  "text-primary-70 hover:text-primary-80": color === "danger" && !disabled
6004
6047
  })
6005
- }), tooltip ? /* @__PURE__ */ React56.createElement(Tooltip, {
6048
+ }), tooltip ? /* @__PURE__ */ React57.createElement(Tooltip, {
6006
6049
  content: tooltip,
6007
6050
  placement: tooltipPlacement,
6008
6051
  inline: false
6009
- }, itemContent) : itemContent);
6052
+ }, /* @__PURE__ */ React57.createElement("div", {
6053
+ tabIndex: 0,
6054
+ className: tw("grow")
6055
+ }, itemContent)) : itemContent);
6010
6056
  };
6011
6057
  Dropdown.Menu = DropdownMenu;
6012
6058
  Dropdown.Item = DropdownItem;
6013
6059
 
6014
6060
  // src/molecules/DropdownMenu/DropdownMenu.tsx
6015
- import React60 from "react";
6061
+ import React61 from "react";
6016
6062
  import { useFilter } from "@react-aria/i18n";
6017
6063
  import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
6018
6064
  import { useMenu, useMenuItem, useMenuSection, useMenuTrigger } from "@react-aria/menu";
6019
- import { useOverlayPosition as useOverlayPosition4 } from "@react-aria/overlays";
6020
6065
  import { useSeparator } from "@react-aria/separator";
6021
- import { mergeProps as mergeProps4 } from "@react-aria/utils";
6066
+ import { mergeProps as mergeProps3 } from "@react-aria/utils";
6022
6067
  import { Item as Item4, Section } from "@react-stately/collections";
6023
6068
  import { useMenuTriggerState } from "@react-stately/menu";
6024
6069
  import { useTreeState } from "@react-stately/tree";
6025
6070
 
6026
6071
  // src/molecules/Input/Input.tsx
6027
- import React58, { forwardRef, useImperativeHandle, useRef as useRef7, useState as useState6 } from "react";
6072
+ import React59, { forwardRef, useImperativeHandle, useRef as useRef7, useState as useState6 } from "react";
6028
6073
  import omit8 from "lodash/omit";
6029
6074
  import toString from "lodash/toString";
6030
6075
  import uniqueId3 from "lodash/uniqueId";
6031
6076
 
6032
6077
  // src/utils/form/InputAdornment/InputAdornment.tsx
6033
- import React57 from "react";
6078
+ import React58 from "react";
6034
6079
  var import_cross4 = __toESM(require_cross());
6035
6080
  var import_error3 = __toESM(require_error());
6036
6081
  var import_search2 = __toESM(require_search());
6037
6082
  var import_tick3 = __toESM(require_tick());
6038
6083
  var InputAdornment = ({ placement = "right", className, dense, children }) => {
6039
- return /* @__PURE__ */ React57.createElement("span", {
6084
+ return /* @__PURE__ */ React58.createElement("span", {
6040
6085
  className: classNames(className, "absolute inset-y-0 grow-0 text-grey-40 flex items-center mx-3", {
6041
6086
  "right-0": placement === "right",
6042
6087
  "left-0": placement === "left",
6043
6088
  "typography-small": dense,
6044
6089
  "typography-default-strong": !dense
6045
6090
  })
6046
- }, /* @__PURE__ */ React57.createElement(Flexbox, {
6091
+ }, /* @__PURE__ */ React58.createElement(Flexbox, {
6047
6092
  gap: "3",
6048
6093
  wrap: "wrap"
6049
6094
  }, children));
6050
6095
  };
6051
- var SearchIcon = ({ onClick }) => /* @__PURE__ */ React57.createElement(Icon, {
6096
+ var SearchIcon = ({ onClick }) => /* @__PURE__ */ React58.createElement(Icon, {
6052
6097
  icon: import_search2.default,
6053
6098
  color: "grey-30",
6054
6099
  "data-testid": "icon-search",
6055
6100
  onClick
6056
6101
  });
6057
- var ResetIcon = ({ onClick }) => /* @__PURE__ */ React57.createElement(Icon, {
6102
+ var ResetIcon = ({ onClick }) => /* @__PURE__ */ React58.createElement(Icon, {
6058
6103
  className: "hover:cursor-pointer",
6059
6104
  icon: import_cross4.default,
6060
6105
  color: "grey-30",
@@ -6084,7 +6129,7 @@ var createInput = (displayName, opts = {}) => {
6084
6129
  "readOnly"
6085
6130
  ]);
6086
6131
  var _a2;
6087
- const inputRef = React58.useRef(null);
6132
+ const inputRef = React59.useRef(null);
6088
6133
  useImperativeHandle(ref, () => inputRef.current);
6089
6134
  const handleReset = () => {
6090
6135
  var _a3;
@@ -6097,11 +6142,11 @@ var createInput = (displayName, opts = {}) => {
6097
6142
  el.focus();
6098
6143
  }
6099
6144
  };
6100
- return /* @__PURE__ */ React58.createElement("span", {
6145
+ return /* @__PURE__ */ React59.createElement("span", {
6101
6146
  className: tw("relative block")
6102
- }, opts.adornment && /* @__PURE__ */ React58.createElement(InputAdornment, {
6147
+ }, opts.adornment && /* @__PURE__ */ React59.createElement(InputAdornment, {
6103
6148
  placement: "left"
6104
- }, opts.adornment), /* @__PURE__ */ React58.createElement("input", __spreadProps(__spreadValues({
6149
+ }, opts.adornment), /* @__PURE__ */ React59.createElement("input", __spreadProps(__spreadValues({
6105
6150
  ref: inputRef,
6106
6151
  type
6107
6152
  }, props), {
@@ -6116,20 +6161,20 @@ var createInput = (displayName, opts = {}) => {
6116
6161
  getCommonInputStyles({ readOnly, valid }),
6117
6162
  props.className
6118
6163
  )
6119
- })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React58.createElement(InputAdornment, null, /* @__PURE__ */ React58.createElement(ResetIcon, {
6164
+ })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React59.createElement(InputAdornment, null, /* @__PURE__ */ React59.createElement(ResetIcon, {
6120
6165
  onClick: handleReset
6121
- })), !opts.canReset && endAdornment && /* @__PURE__ */ React58.createElement(InputAdornment, null, endAdornment));
6166
+ })), !opts.canReset && endAdornment && /* @__PURE__ */ React59.createElement(InputAdornment, null, endAdornment));
6122
6167
  }
6123
6168
  );
6124
6169
  InputComponent.displayName = displayName;
6125
- InputComponent.Skeleton = () => /* @__PURE__ */ React58.createElement(Skeleton, {
6170
+ InputComponent.Skeleton = () => /* @__PURE__ */ React59.createElement(Skeleton, {
6126
6171
  height: 38
6127
6172
  });
6128
6173
  return InputComponent;
6129
6174
  };
6130
6175
  var InputBase = createInput("InputBase");
6131
- var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React58.createElement(SearchIcon, null), canReset: true });
6132
- var Input2 = React58.forwardRef((_a, ref) => {
6176
+ var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React59.createElement(SearchIcon, null), canReset: true });
6177
+ var Input2 = React59.forwardRef((_a, ref) => {
6133
6178
  var _b = _a, { readOnly = false } = _b, props = __objRest(_b, ["readOnly"]);
6134
6179
  var _a2, _b2, _c;
6135
6180
  const [value, setValue] = useState6((_b2 = (_a2 = props.value) != null ? _a2 : props.defaultValue) != null ? _b2 : "");
@@ -6138,12 +6183,12 @@ var Input2 = React58.forwardRef((_a, ref) => {
6138
6183
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
6139
6184
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
6140
6185
  const baseProps = omit8(props, Object.keys(labelControlProps));
6141
- return /* @__PURE__ */ React58.createElement(LabelControl, __spreadValues({
6186
+ return /* @__PURE__ */ React59.createElement(LabelControl, __spreadValues({
6142
6187
  id: `${id.current}-label`,
6143
6188
  htmlFor: id.current,
6144
6189
  messageId: errorMessageId,
6145
6190
  length: value !== void 0 ? toString(value).length : void 0
6146
- }, labelControlProps), /* @__PURE__ */ React58.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
6191
+ }, labelControlProps), /* @__PURE__ */ React59.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
6147
6192
  ref
6148
6193
  }, baseProps), errorProps), {
6149
6194
  id: id.current,
@@ -6161,41 +6206,42 @@ var Input2 = React58.forwardRef((_a, ref) => {
6161
6206
  })));
6162
6207
  });
6163
6208
  Input2.displayName = "Input";
6164
- Input2.Skeleton = () => /* @__PURE__ */ React58.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React58.createElement(InputBase.Skeleton, null));
6209
+ Input2.Skeleton = () => /* @__PURE__ */ React59.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React59.createElement(InputBase.Skeleton, null));
6165
6210
  Input2.Skeleton.displayName = "Input.Skeleton";
6166
6211
 
6167
6212
  // src/atoms/DropdownMenu/DropdownMenu.tsx
6168
- import React59 from "react";
6213
+ import React60 from "react";
6169
6214
  var import_tick4 = __toESM(require_tick());
6170
- var DropdownMenu2 = React59.forwardRef(
6215
+ var DropdownMenu2 = React60.forwardRef(
6171
6216
  (_a, ref) => {
6172
6217
  var _b = _a, { maxHeight = "450px", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["maxHeight", "minWidth", "maxWidth", "className", "children"]);
6173
- return /* @__PURE__ */ React59.createElement("div", __spreadValues({
6218
+ return /* @__PURE__ */ React60.createElement("div", __spreadValues({
6174
6219
  ref,
6175
6220
  style: { maxHeight, minWidth, maxWidth },
6176
6221
  className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-grey-70")
6177
6222
  }, props), children);
6178
6223
  }
6179
6224
  );
6180
- var ContentContainer = ({ children }) => /* @__PURE__ */ React59.createElement("div", {
6225
+ var ContentContainer = ({ children }) => /* @__PURE__ */ React60.createElement("div", {
6181
6226
  className: tw("p-3 overflow-y-auto overflow-x-hidden")
6182
6227
  }, children);
6183
6228
  DropdownMenu2.ContentContainer = ContentContainer;
6184
- var List2 = React59.forwardRef(
6229
+ var List2 = React60.forwardRef(
6185
6230
  (_a, ref) => {
6186
- var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
6187
- return /* @__PURE__ */ React59.createElement("ul", __spreadValues({
6188
- ref
6231
+ var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
6232
+ return /* @__PURE__ */ React60.createElement("ul", __spreadValues({
6233
+ ref,
6234
+ className: classNames(className, "outline-none ring-0")
6189
6235
  }, props), children);
6190
6236
  }
6191
6237
  );
6192
6238
  DropdownMenu2.List = List2;
6193
- var Group2 = React59.forwardRef(
6239
+ var Group2 = React60.forwardRef(
6194
6240
  (_a, ref) => {
6195
6241
  var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
6196
- return /* @__PURE__ */ React59.createElement("li", __spreadValues({
6242
+ return /* @__PURE__ */ React60.createElement("li", __spreadValues({
6197
6243
  ref
6198
- }, props), title && /* @__PURE__ */ React59.createElement("div", __spreadValues({
6244
+ }, props), title && /* @__PURE__ */ React60.createElement("div", __spreadValues({
6199
6245
  className: classNames(className, "p-3 text-grey-40 uppercase cursor-default typography-caption", {
6200
6246
  "text-grey-20": props.disabled
6201
6247
  })
@@ -6203,10 +6249,10 @@ var Group2 = React59.forwardRef(
6203
6249
  }
6204
6250
  );
6205
6251
  DropdownMenu2.Group = Group2;
6206
- var Item3 = React59.forwardRef(
6252
+ var Item3 = React60.forwardRef(
6207
6253
  (_a, ref) => {
6208
6254
  var _b = _a, { kind, highlighted, selected, className, icon, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "children"]);
6209
- return /* @__PURE__ */ React59.createElement("li", __spreadValues({
6255
+ return /* @__PURE__ */ React60.createElement("li", __spreadValues({
6210
6256
  ref,
6211
6257
  className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
6212
6258
  "cursor-pointer hover:bg-grey-0": !props.disabled,
@@ -6214,30 +6260,30 @@ var Item3 = React59.forwardRef(
6214
6260
  "text-primary-80": kind === "action",
6215
6261
  "text-grey-20 cursor-not-allowed": props.disabled
6216
6262
  })
6217
- }, props), icon && /* @__PURE__ */ React59.createElement(InlineIcon, {
6263
+ }, props), icon && /* @__PURE__ */ React60.createElement(InlineIcon, {
6218
6264
  icon
6219
- }), /* @__PURE__ */ React59.createElement("span", {
6265
+ }), /* @__PURE__ */ React60.createElement("span", {
6220
6266
  className: tw("grow")
6221
- }, children), selected && /* @__PURE__ */ React59.createElement(InlineIcon, {
6267
+ }, children), selected && /* @__PURE__ */ React60.createElement(InlineIcon, {
6222
6268
  icon: import_tick4.default
6223
6269
  }));
6224
6270
  }
6225
6271
  );
6226
6272
  DropdownMenu2.Item = Item3;
6227
- var Description = ({ disabled, children }) => /* @__PURE__ */ React59.createElement(Typography2.Caption, {
6273
+ var Description = ({ disabled, children }) => /* @__PURE__ */ React60.createElement(Typography2.Caption, {
6228
6274
  color: disabled ? "grey-20" : "grey-40"
6229
6275
  }, children);
6230
6276
  DropdownMenu2.Description = Description;
6231
6277
  var Separator = (_a) => {
6232
6278
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6233
- return /* @__PURE__ */ React59.createElement("li", __spreadProps(__spreadValues({}, props), {
6279
+ return /* @__PURE__ */ React60.createElement("li", __spreadProps(__spreadValues({}, props), {
6234
6280
  className: classNames(className, tw("m-3 block bg-grey-5 h-[1px]"))
6235
6281
  }));
6236
6282
  };
6237
6283
  DropdownMenu2.Separator = Separator;
6238
6284
  var EmptyStateContainer2 = (_a) => {
6239
6285
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6240
- return /* @__PURE__ */ React59.createElement("div", __spreadValues({
6286
+ return /* @__PURE__ */ React60.createElement("div", __spreadValues({
6241
6287
  className: classNames(tw("border border-dashed border-grey-10 p-3"), className)
6242
6288
  }, props), children);
6243
6289
  };
@@ -6292,29 +6338,18 @@ var DropdownMenu3 = (_a) => {
6292
6338
  "footer",
6293
6339
  "children"
6294
6340
  ]);
6295
- const triggerRef = React60.useRef(null);
6296
- const overlayRef = React60.useRef(null);
6341
+ const triggerRef = React61.useRef(null);
6297
6342
  const [trigger, items] = extractTriggerAndItems(children);
6298
6343
  const state = useMenuTriggerState(props);
6299
6344
  const { menuTriggerProps, menuProps } = useMenuTrigger({}, state, triggerRef);
6300
- const { overlayProps } = useOverlayPosition4({
6301
- targetRef: triggerRef,
6302
- overlayRef,
6303
- placement: placement.replace("-", " "),
6304
- shouldFlip: true,
6305
- isOpen: state.isOpen
6306
- });
6307
- return /* @__PURE__ */ React60.createElement("div", null, /* @__PURE__ */ React60.createElement(PressResponder2, __spreadValues({
6345
+ return /* @__PURE__ */ React61.createElement("div", null, /* @__PURE__ */ React61.createElement(PressResponder2, __spreadValues({
6308
6346
  ref: triggerRef,
6309
6347
  onPress: () => state.toggle()
6310
- }, menuTriggerProps), /* @__PURE__ */ React60.createElement(TriggerWrapper, null, trigger.props.children)), /* @__PURE__ */ React60.createElement(PopoverWrapper, __spreadValues({
6311
- ref: overlayRef,
6312
- isDismissable: true,
6313
- autoFocus: true,
6314
- containFocus: true,
6315
- isOpen: state.isOpen,
6316
- onClose: state.close
6317
- }, overlayProps), /* @__PURE__ */ React60.createElement(MenuWrapper, __spreadValues({
6348
+ }, menuTriggerProps), /* @__PURE__ */ React61.createElement(TriggerWrapper, null, trigger.props.children)), state.isOpen && /* @__PURE__ */ React61.createElement(PopoverOverlay, {
6349
+ triggerRef,
6350
+ state,
6351
+ placement
6352
+ }, /* @__PURE__ */ React61.createElement(MenuWrapper, __spreadValues({
6318
6353
  onAction,
6319
6354
  selectionMode,
6320
6355
  selection,
@@ -6339,13 +6374,13 @@ DropdownMenu3.Section = Section;
6339
6374
  DropdownMenu3.Section.displayName = "DropdownMenu.Section";
6340
6375
  var TriggerWrapper = (_a) => {
6341
6376
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
6342
- const ref = React60.useRef(null);
6377
+ const ref = React61.useRef(null);
6343
6378
  const { pressProps } = usePress2(__spreadProps(__spreadValues({}, props), { ref }));
6344
- const trigger = React60.Children.only(children);
6345
- if (!trigger || !React60.isValidElement(trigger)) {
6379
+ const trigger = React61.Children.only(children);
6380
+ if (!trigger || !React61.isValidElement(trigger)) {
6346
6381
  throw new Error("<DropdownMenu.Trigger> must have valid child");
6347
6382
  }
6348
- return React60.cloneElement(trigger, __spreadValues({ ref }, mergeProps4(pressProps, props)));
6383
+ return React61.cloneElement(trigger, __spreadValues({ ref }, mergeProps3(pressProps, props)));
6349
6384
  };
6350
6385
  var isSectionNode = (item) => item.type === "section";
6351
6386
  var isItemNode = (item) => item.type === "item";
@@ -6367,7 +6402,7 @@ var MenuWrapper = (_a) => {
6367
6402
  "header",
6368
6403
  "footer"
6369
6404
  ]);
6370
- const ref = React60.useRef(null);
6405
+ const ref = React61.useRef(null);
6371
6406
  const disabledKeys = getDisabledItemKeys(props.children);
6372
6407
  const state = useTreeState(__spreadValues({
6373
6408
  disabledKeys,
@@ -6375,30 +6410,30 @@ var MenuWrapper = (_a) => {
6375
6410
  }, props));
6376
6411
  const { menuProps } = useMenu(props, state, ref);
6377
6412
  const { contains } = useFilter({ sensitivity: "base" });
6378
- const [search, setSearch] = React60.useState("");
6379
- const filteredCollection = React60.useMemo(
6413
+ const [search, setSearch] = React61.useState("");
6414
+ const filteredCollection = React61.useMemo(
6380
6415
  () => searchable ? filterCollection(state.collection, search, contains) : state.collection,
6381
6416
  [state.collection, search, contains]
6382
6417
  );
6383
- return /* @__PURE__ */ React60.createElement(DropdownMenu2, {
6418
+ return /* @__PURE__ */ React61.createElement(DropdownMenu2, {
6384
6419
  minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
6385
6420
  maxWidth: maxWidth !== void 0 ? `${maxWidth}px` : void 0
6386
- }, header, /* @__PURE__ */ React60.createElement(DropdownMenu2.ContentContainer, null, searchable && /* @__PURE__ */ React60.createElement(SearchInput, {
6421
+ }, header, /* @__PURE__ */ React61.createElement(DropdownMenu2.ContentContainer, null, searchable && /* @__PURE__ */ React61.createElement(SearchInput, {
6387
6422
  "aria-label": "search",
6388
6423
  value: search,
6389
6424
  onChange: (e) => setSearch(e.target.value),
6390
6425
  className: tw("mb-5")
6391
- }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React60.createElement(DropdownMenu2.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React60.createElement(DropdownMenu2.List, __spreadValues({
6426
+ }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React61.createElement(DropdownMenu2.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React61.createElement(DropdownMenu2.List, __spreadValues({
6392
6427
  ref
6393
6428
  }, menuProps), Array.from(filteredCollection).map((item) => {
6394
6429
  if (isSectionNode(item)) {
6395
- return /* @__PURE__ */ React60.createElement(SectionWrapper, {
6430
+ return /* @__PURE__ */ React61.createElement(SectionWrapper, {
6396
6431
  key: item.key,
6397
6432
  section: item,
6398
6433
  state
6399
6434
  });
6400
6435
  } else if (isItemNode(item)) {
6401
- return /* @__PURE__ */ React60.createElement(ItemWrapper, {
6436
+ return /* @__PURE__ */ React61.createElement(ItemWrapper, {
6402
6437
  key: item.key,
6403
6438
  item,
6404
6439
  state
@@ -6407,14 +6442,14 @@ var MenuWrapper = (_a) => {
6407
6442
  }))), footer);
6408
6443
  };
6409
6444
  var ItemWrapper = ({ item, state }) => {
6410
- const ref = React60.useRef(null);
6445
+ const ref = React61.useRef(null);
6411
6446
  const { menuItemProps, descriptionProps, isSelected, isFocused, isDisabled } = useMenuItem(
6412
6447
  { key: item.key, closeOnSelect: item.props.closeOnSelect },
6413
6448
  state,
6414
6449
  ref
6415
6450
  );
6416
6451
  const { icon, description, kind = "default" } = item.props;
6417
- return /* @__PURE__ */ React60.createElement(DropdownMenu2.Item, __spreadProps(__spreadValues({
6452
+ return /* @__PURE__ */ React61.createElement(DropdownMenu2.Item, __spreadProps(__spreadValues({
6418
6453
  ref
6419
6454
  }, menuItemProps), {
6420
6455
  kind,
@@ -6422,7 +6457,7 @@ var ItemWrapper = ({ item, state }) => {
6422
6457
  highlighted: isFocused,
6423
6458
  disabled: isDisabled,
6424
6459
  icon
6425
- }), item.rendered, description && /* @__PURE__ */ React60.createElement(DropdownMenu2.Description, __spreadValues({
6460
+ }), item.rendered, description && /* @__PURE__ */ React61.createElement(DropdownMenu2.Description, __spreadValues({
6426
6461
  disabled: isDisabled
6427
6462
  }, descriptionProps), description));
6428
6463
  };
@@ -6434,24 +6469,24 @@ var SectionWrapper = ({ section, state }) => {
6434
6469
  const { separatorProps } = useSeparator({
6435
6470
  elementType: "li"
6436
6471
  });
6437
- return /* @__PURE__ */ React60.createElement(React60.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React60.createElement(DropdownMenu2.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React60.createElement(DropdownMenu2.Group, __spreadValues({
6472
+ return /* @__PURE__ */ React61.createElement(React61.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React61.createElement(DropdownMenu2.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React61.createElement(DropdownMenu2.Group, __spreadValues({
6438
6473
  title: section.rendered,
6439
6474
  titleProps: headingProps
6440
- }, itemProps), /* @__PURE__ */ React60.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React60.createElement(ItemWrapper, {
6475
+ }, itemProps), /* @__PURE__ */ React61.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React61.createElement(ItemWrapper, {
6441
6476
  key: node.key,
6442
6477
  item: node,
6443
6478
  state
6444
6479
  })))));
6445
6480
  };
6446
6481
  var extractTriggerAndItems = (children) => {
6447
- const [trigger, items] = React60.Children.toArray(children);
6482
+ const [trigger, items] = React61.Children.toArray(children);
6448
6483
  if (!isComponentType(trigger, MenuTrigger) || !isComponentType(items, MenuItems)) {
6449
6484
  throw new Error("<DropdownMenu> must have <DropdownMenu.Trigger> and <DropdownMenu.Items> defined");
6450
6485
  }
6451
6486
  return [trigger, items];
6452
6487
  };
6453
6488
  var getDisabledItemKeys = (children) => {
6454
- const keys = React60.Children.map(children, (child) => {
6489
+ const keys = React61.Children.map(children, (child) => {
6455
6490
  var _a, _b;
6456
6491
  if (!child || typeof child === "function") {
6457
6492
  return null;
@@ -6468,11 +6503,11 @@ var getDisabledItemKeys = (children) => {
6468
6503
  };
6469
6504
 
6470
6505
  // src/molecules/EmptyState/EmptyState.tsx
6471
- import React62 from "react";
6506
+ import React63 from "react";
6472
6507
  import omit9 from "lodash/omit";
6473
6508
 
6474
6509
  // src/molecules/Flexbox/FlexboxItem.tsx
6475
- import React61 from "react";
6510
+ import React62 from "react";
6476
6511
  var FlexboxItem = Tailwindify(
6477
6512
  ({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
6478
6513
  const hookStyle = useStyle({
@@ -6484,7 +6519,7 @@ var FlexboxItem = Tailwindify(
6484
6519
  alignSelf
6485
6520
  });
6486
6521
  const HtmlElement = htmlTag;
6487
- return /* @__PURE__ */ React61.createElement(HtmlElement, {
6522
+ return /* @__PURE__ */ React62.createElement(HtmlElement, {
6488
6523
  style: __spreadValues(__spreadValues({}, hookStyle), style),
6489
6524
  className
6490
6525
  }, children);
@@ -6542,7 +6577,7 @@ var EmptyState = ({
6542
6577
  borderStyle = "dashed"
6543
6578
  }) => {
6544
6579
  const template = layoutStyle(layout);
6545
- return /* @__PURE__ */ React62.createElement(Box, {
6580
+ return /* @__PURE__ */ React63.createElement(Box, {
6546
6581
  className: classNames(
6547
6582
  tw("rounded", {
6548
6583
  "border border-dashed": borderStyle === "dashed",
@@ -6554,38 +6589,38 @@ var EmptyState = ({
6554
6589
  backgroundColor: "transparent",
6555
6590
  borderColor: "grey-10",
6556
6591
  padding: "9"
6557
- }, /* @__PURE__ */ React62.createElement(Flexbox, {
6592
+ }, /* @__PURE__ */ React63.createElement(Flexbox, {
6558
6593
  direction: template.layout,
6559
6594
  justifyContent: template.justifyContent,
6560
6595
  alignItems: template.layout === "row" ? "center" : template.alignItems,
6561
6596
  colGap: "l5",
6562
6597
  rowGap: "8"
6563
- }, image && /* @__PURE__ */ React62.createElement(FlexboxItem, null, /* @__PURE__ */ React62.createElement("img", {
6598
+ }, image && /* @__PURE__ */ React63.createElement(FlexboxItem, null, /* @__PURE__ */ React63.createElement("img", {
6564
6599
  src: image,
6565
6600
  alt: imageAlt,
6566
6601
  style: { width: imageWidth ? `${imageWidth}px` : void 0, height: "auto" }
6567
- })), /* @__PURE__ */ React62.createElement(Flexbox, {
6602
+ })), /* @__PURE__ */ React63.createElement(Flexbox, {
6568
6603
  style: { maxWidth: "610px" },
6569
6604
  direction: "column",
6570
6605
  justifyContent: template.justifyContent,
6571
6606
  alignItems: template.alignItems
6572
- }, /* @__PURE__ */ React62.createElement(Typography2, {
6607
+ }, /* @__PURE__ */ React63.createElement(Typography2, {
6573
6608
  variant: "heading",
6574
6609
  htmlTag: "h2"
6575
- }, title), (description || children) && /* @__PURE__ */ React62.createElement(Box, {
6610
+ }, title), (description || children) && /* @__PURE__ */ React63.createElement(Box, {
6576
6611
  marginTop: "5"
6577
- }, /* @__PURE__ */ React62.createElement(Typography2, {
6612
+ }, /* @__PURE__ */ React63.createElement(Typography2, {
6578
6613
  variant: "default",
6579
6614
  color: "grey-60"
6580
- }, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React62.createElement(Flexbox, {
6615
+ }, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React63.createElement(Flexbox, {
6581
6616
  marginTop: "7",
6582
6617
  gap: "4",
6583
6618
  justifyContent: "center",
6584
6619
  alignItems: "center",
6585
6620
  wrap: "wrap"
6586
- }, primaryAction && /* @__PURE__ */ React62.createElement(PrimaryButton, __spreadValues({}, omit9(primaryAction, "text")), primaryAction.text), secondaryAction && /* @__PURE__ */ React62.createElement(SecondaryButton, __spreadValues({}, omit9(secondaryAction, "text")), secondaryAction.text)), footer && /* @__PURE__ */ React62.createElement(Box, {
6621
+ }, primaryAction && /* @__PURE__ */ React63.createElement(PrimaryButton, __spreadValues({}, omit9(primaryAction, "text")), primaryAction.text), secondaryAction && /* @__PURE__ */ React63.createElement(SecondaryButton, __spreadValues({}, omit9(secondaryAction, "text")), secondaryAction.text)), footer && /* @__PURE__ */ React63.createElement(Box, {
6587
6622
  marginTop: "7"
6588
- }, /* @__PURE__ */ React62.createElement(Typography2, {
6623
+ }, /* @__PURE__ */ React63.createElement(Typography2, {
6589
6624
  htmlTag: "div",
6590
6625
  variant: "small",
6591
6626
  color: "grey-60"
@@ -6593,7 +6628,7 @@ var EmptyState = ({
6593
6628
  };
6594
6629
 
6595
6630
  // src/molecules/Grid/GridItem.tsx
6596
- import React63 from "react";
6631
+ import React64 from "react";
6597
6632
  var GridItem = Tailwindify(
6598
6633
  ({
6599
6634
  htmlTag = "div",
@@ -6624,7 +6659,7 @@ var GridItem = Tailwindify(
6624
6659
  gridRowEnd: rowEnd
6625
6660
  });
6626
6661
  const HtmlElement = htmlTag;
6627
- return /* @__PURE__ */ React63.createElement(HtmlElement, {
6662
+ return /* @__PURE__ */ React64.createElement(HtmlElement, {
6628
6663
  style: __spreadValues(__spreadValues({}, hookStyle), style),
6629
6664
  className
6630
6665
  }, children);
@@ -6632,7 +6667,7 @@ var GridItem = Tailwindify(
6632
6667
  );
6633
6668
 
6634
6669
  // src/molecules/LineClamp/LineClamp.tsx
6635
- import React64 from "react";
6670
+ import React65 from "react";
6636
6671
  var LineClamp2 = ({
6637
6672
  lines,
6638
6673
  children,
@@ -6641,10 +6676,10 @@ var LineClamp2 = ({
6641
6676
  collapseLabel,
6642
6677
  onClampedChange
6643
6678
  }) => {
6644
- const ref = React64.useRef(null);
6645
- const [clamped, setClamped] = React64.useState(true);
6646
- const [isClampingEnabled, setClampingEnabled] = React64.useState(false);
6647
- React64.useEffect(() => {
6679
+ const ref = React65.useRef(null);
6680
+ const [clamped, setClamped] = React65.useState(true);
6681
+ const [isClampingEnabled, setClampingEnabled] = React65.useState(false);
6682
+ React65.useEffect(() => {
6648
6683
  var _a, _b;
6649
6684
  const el = ref.current;
6650
6685
  setClampingEnabled(((_a = el == null ? void 0 : el.scrollHeight) != null ? _a : 0) > ((_b = el == null ? void 0 : el.clientHeight) != null ? _b : 0));
@@ -6653,50 +6688,50 @@ var LineClamp2 = ({
6653
6688
  setClamped(!clamped);
6654
6689
  onClampedChange == null ? void 0 : onClampedChange(!clamped);
6655
6690
  };
6656
- return /* @__PURE__ */ React64.createElement("div", null, /* @__PURE__ */ React64.createElement(LineClamp, {
6691
+ return /* @__PURE__ */ React65.createElement("div", null, /* @__PURE__ */ React65.createElement(LineClamp, {
6657
6692
  ref,
6658
6693
  lines,
6659
6694
  clamped,
6660
6695
  wordBreak
6661
- }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React64.createElement(GhostButton, {
6696
+ }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React65.createElement(GhostButton, {
6662
6697
  dense: true,
6663
6698
  onClick: handleClampedChange
6664
6699
  }, clamped ? expandLabel : collapseLabel));
6665
6700
  };
6666
6701
 
6667
6702
  // src/molecules/Link/Link.tsx
6668
- import React66 from "react";
6703
+ import React67 from "react";
6669
6704
 
6670
6705
  // src/atoms/Link/Link.tsx
6671
- import React65 from "react";
6706
+ import React66 from "react";
6672
6707
  var Link = (_a) => {
6673
6708
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
6674
- return /* @__PURE__ */ React65.createElement("a", __spreadValues({
6709
+ return /* @__PURE__ */ React66.createElement("a", __spreadValues({
6675
6710
  className: classNames(className, linkStyle)
6676
6711
  }, props), children);
6677
6712
  };
6678
6713
 
6679
6714
  // src/molecules/Link/Link.tsx
6680
- var Link2 = (props) => /* @__PURE__ */ React66.createElement(Link, __spreadValues({}, props));
6715
+ var Link2 = (props) => /* @__PURE__ */ React67.createElement(Link, __spreadValues({}, props));
6681
6716
 
6682
6717
  // src/molecules/List/List.tsx
6683
- import React67 from "react";
6684
- var List = ({ items, renderItem, container = React67.Fragment }) => {
6718
+ import React68 from "react";
6719
+ var List = ({ items, renderItem, container = React68.Fragment }) => {
6685
6720
  const Component = container;
6686
- return /* @__PURE__ */ React67.createElement(Component, null, items.map(renderItem));
6721
+ return /* @__PURE__ */ React68.createElement(Component, null, items.map(renderItem));
6687
6722
  };
6688
6723
 
6689
6724
  // src/molecules/ListItem/ListItem.tsx
6690
- import React68 from "react";
6725
+ import React69 from "react";
6691
6726
  var ListItem = ({ name, icon, active = false }) => {
6692
- return /* @__PURE__ */ React68.createElement(Flexbox, {
6727
+ return /* @__PURE__ */ React69.createElement(Flexbox, {
6693
6728
  alignItems: "center"
6694
- }, /* @__PURE__ */ React68.createElement(Typography2, {
6729
+ }, /* @__PURE__ */ React69.createElement(Typography2, {
6695
6730
  variant: active ? "small-strong" : "small",
6696
6731
  color: "grey-70",
6697
6732
  htmlTag: "span",
6698
6733
  className: `px-4 py-2 rounded-full ${active ? "bg-grey-5" : "hover:bg-grey-0"}`
6699
- }, /* @__PURE__ */ React68.createElement("img", {
6734
+ }, /* @__PURE__ */ React69.createElement("img", {
6700
6735
  src: icon,
6701
6736
  alt: name,
6702
6737
  className: "inline mr-4",
@@ -6706,28 +6741,27 @@ var ListItem = ({ name, icon, active = false }) => {
6706
6741
  };
6707
6742
 
6708
6743
  // src/molecules/Modal/Modal.tsx
6709
- import React70 from "react";
6710
- import { useDialog as useDialog2 } from "@react-aria/dialog";
6711
- import { FocusScope as FocusScope3 } from "@react-aria/focus";
6712
- import { Overlay as Overlay2, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
6744
+ import React71 from "react";
6745
+ import { useDialog as useDialog3 } from "@react-aria/dialog";
6746
+ import { Overlay as Overlay3, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
6713
6747
  import { useId as useId2 } from "@react-aria/utils";
6714
6748
  import { useOverlayTriggerState as useOverlayTriggerState4 } from "@react-stately/overlays";
6715
6749
  import castArray from "lodash/castArray";
6716
6750
  import omit10 from "lodash/omit";
6717
6751
 
6718
6752
  // src/molecules/Tabs/Tabs.tsx
6719
- import React69, { useEffect as useEffect5, useLayoutEffect as useLayoutEffect2, useRef as useRef8, useState as useState7 } from "react";
6753
+ import React70, { useEffect as useEffect6, useLayoutEffect as useLayoutEffect2, useRef as useRef8, useState as useState7 } from "react";
6720
6754
  import isNumber5 from "lodash/isNumber";
6721
6755
  import kebabCase from "lodash/kebabCase";
6722
6756
  var import_chevronLeft2 = __toESM(require_chevronLeft());
6723
6757
  var import_chevronRight2 = __toESM(require_chevronRight());
6724
6758
  var import_warningSign3 = __toESM(require_warningSign());
6725
6759
  var isTabComponent = (c) => {
6726
- return React69.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
6760
+ return React70.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
6727
6761
  };
6728
- var Tab = React69.forwardRef(
6762
+ var Tab = React70.forwardRef(
6729
6763
  ({ className, id, title, children }, ref) => {
6730
- return /* @__PURE__ */ React69.createElement("div", {
6764
+ return /* @__PURE__ */ React70.createElement("div", {
6731
6765
  ref,
6732
6766
  id: `${id != null ? id : kebabCase(title)}-panel`,
6733
6767
  className,
@@ -6739,14 +6773,14 @@ var Tab = React69.forwardRef(
6739
6773
  );
6740
6774
  var TabContainer = (_a) => {
6741
6775
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
6742
- return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
6776
+ return /* @__PURE__ */ React70.createElement("div", __spreadProps(__spreadValues({}, rest), {
6743
6777
  className: classNames("py-6 z-0", className)
6744
6778
  }), children);
6745
6779
  };
6746
6780
  var ModalTab = Tab;
6747
6781
  var ModalTabContainer = TabContainer;
6748
6782
  var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6749
- const Tab2 = React69.forwardRef(
6783
+ const Tab2 = React70.forwardRef(
6750
6784
  (_a, ref) => {
6751
6785
  var _b = _a, {
6752
6786
  id,
@@ -6776,17 +6810,17 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6776
6810
  const _id = id != null ? id : kebabCase(title);
6777
6811
  let statusIcon = void 0;
6778
6812
  if (status === "warning") {
6779
- statusIcon = /* @__PURE__ */ React69.createElement(InlineIcon, {
6813
+ statusIcon = /* @__PURE__ */ React70.createElement(InlineIcon, {
6780
6814
  icon: import_warningSign3.default,
6781
6815
  color: "warning-80"
6782
6816
  });
6783
6817
  } else if (status === "error") {
6784
- statusIcon = /* @__PURE__ */ React69.createElement(InlineIcon, {
6818
+ statusIcon = /* @__PURE__ */ React70.createElement(InlineIcon, {
6785
6819
  icon: import_warningSign3.default,
6786
6820
  color: "error-50"
6787
6821
  });
6788
6822
  }
6789
- const tab = /* @__PURE__ */ React69.createElement(Component, __spreadValues({
6823
+ const tab = /* @__PURE__ */ React70.createElement(Component, __spreadValues({
6790
6824
  ref,
6791
6825
  id: `${_id}-tab`,
6792
6826
  onClick: () => !disabled && onSelected(value != null ? value : index),
@@ -6803,24 +6837,24 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6803
6837
  "aria-selected": selected,
6804
6838
  "aria-controls": `${_id}-panel`,
6805
6839
  tabIndex: disabled ? void 0 : 0
6806
- }, rest), /* @__PURE__ */ React69.createElement(Typography2, {
6840
+ }, rest), /* @__PURE__ */ React70.createElement(Typography2, {
6807
6841
  htmlTag: "div",
6808
6842
  variant: "small",
6809
6843
  color: selected ? "primary-80" : disabled ? "grey-20" : "current",
6810
6844
  className: tw("inline-flex items-center gap-3")
6811
- }, /* @__PURE__ */ React69.createElement("span", {
6845
+ }, /* @__PURE__ */ React70.createElement("span", {
6812
6846
  className: tw("whitespace-nowrap")
6813
- }, title), isNumber5(badge) && /* @__PURE__ */ React69.createElement(Typography2, {
6847
+ }, title), isNumber5(badge) && /* @__PURE__ */ React70.createElement(Typography2, {
6814
6848
  htmlTag: "span",
6815
6849
  variant: "small",
6816
6850
  color: selected ? "primary-80" : "grey-5",
6817
6851
  className: "leading-none"
6818
- }, /* @__PURE__ */ React69.createElement(TabBadge, {
6852
+ }, /* @__PURE__ */ React70.createElement(TabBadge, {
6819
6853
  kind: "filled",
6820
6854
  value: badge,
6821
6855
  textClassname: classNames({ "text-white": selected, "text-grey-50": !selected })
6822
6856
  })), statusIcon));
6823
- return tooltip ? /* @__PURE__ */ React69.createElement(Tooltip, {
6857
+ return tooltip ? /* @__PURE__ */ React70.createElement(Tooltip, {
6824
6858
  content: tooltip
6825
6859
  }, tab) : tab;
6826
6860
  }
@@ -6834,7 +6868,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6834
6868
  const Tabs2 = (props) => {
6835
6869
  var _a, _b;
6836
6870
  const { className, value, defaultValue, onChange, children } = props;
6837
- const childArr = React69.Children.toArray(children);
6871
+ const childArr = React70.Children.toArray(children);
6838
6872
  const firstTab = childArr[0];
6839
6873
  const firstTabValue = isTabComponent(firstTab) ? firstTab.props.value : -1;
6840
6874
  const [selected, setSelected] = useState7((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
@@ -6847,7 +6881,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6847
6881
  var _a2, _b2;
6848
6882
  const container = containerRef.current;
6849
6883
  const tabs = tabsRef.current;
6850
- const values = React69.Children.map(
6884
+ const values = React70.Children.map(
6851
6885
  children,
6852
6886
  (tab, i) => {
6853
6887
  var _a3;
@@ -6881,14 +6915,14 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6881
6915
  showLeftCaret(hasLeftCaret);
6882
6916
  showRightCaret(hasRightCaret);
6883
6917
  };
6884
- useEffect5(() => {
6918
+ useEffect6(() => {
6885
6919
  if (value === void 0) {
6886
6920
  return;
6887
6921
  }
6888
6922
  updateCarets();
6889
6923
  setSelected(value);
6890
6924
  revealSelectedTab({ smooth: value !== selected });
6891
- }, [value, React69.Children.count(children)]);
6925
+ }, [value, React70.Children.count(children)]);
6892
6926
  useLayoutEffect2(() => {
6893
6927
  var _a2;
6894
6928
  updateCarets();
@@ -6952,27 +6986,27 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6952
6986
  const handleSelected = (key) => {
6953
6987
  (onChange != null ? onChange : setSelected)(key);
6954
6988
  };
6955
- React69.Children.forEach(children, (c) => {
6989
+ React70.Children.forEach(children, (c) => {
6956
6990
  if (c && !isTabComponent(c)) {
6957
6991
  throw new Error("<Tabs> can only have <Tabs.Tab> components as children");
6958
6992
  }
6959
6993
  });
6960
- return /* @__PURE__ */ React69.createElement("div", {
6994
+ return /* @__PURE__ */ React70.createElement("div", {
6961
6995
  ref: parentRef,
6962
6996
  className: classNames(tw("h-full"), className)
6963
- }, /* @__PURE__ */ React69.createElement("div", {
6997
+ }, /* @__PURE__ */ React70.createElement("div", {
6964
6998
  className: tw("relative flex items-center h-full border-b-2 border-grey-10")
6965
- }, /* @__PURE__ */ React69.createElement("div", {
6999
+ }, /* @__PURE__ */ React70.createElement("div", {
6966
7000
  ref: containerRef,
6967
7001
  className: tw("overflow-y-auto scrollbar-hide h-full mb-[-2px]")
6968
- }, /* @__PURE__ */ React69.createElement("div", {
7002
+ }, /* @__PURE__ */ React70.createElement("div", {
6969
7003
  ref: tabsRef,
6970
7004
  role: "tablist",
6971
7005
  "aria-label": "tabs",
6972
7006
  className: tw("inline-flex items-center cursor-pointer font-normal h-full")
6973
- }, React69.Children.map(
7007
+ }, React70.Children.map(
6974
7008
  children,
6975
- (tab, index) => tab ? /* @__PURE__ */ React69.createElement(TabItemComponent, __spreadProps(__spreadValues({
7009
+ (tab, index) => tab ? /* @__PURE__ */ React70.createElement(TabItemComponent, __spreadProps(__spreadValues({
6976
7010
  key: tab.props.value
6977
7011
  }, tab.props), {
6978
7012
  index,
@@ -6980,20 +7014,20 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6980
7014
  onKeyDown: handleKeyDown,
6981
7015
  onSelected: handleSelected
6982
7016
  })) : void 0
6983
- ))), leftCaret && /* @__PURE__ */ React69.createElement("div", {
7017
+ ))), leftCaret && /* @__PURE__ */ React70.createElement("div", {
6984
7018
  className: tw("absolute left-0 bg-gradient-to-r from-white via-white z-20 py-3 pr-4")
6985
- }, /* @__PURE__ */ React69.createElement("div", {
7019
+ }, /* @__PURE__ */ React70.createElement("div", {
6986
7020
  onClick: () => handleScrollToNext("left"),
6987
7021
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
6988
- }, /* @__PURE__ */ React69.createElement(InlineIcon, {
7022
+ }, /* @__PURE__ */ React70.createElement(InlineIcon, {
6989
7023
  icon: import_chevronLeft2.default
6990
- }))), rightCaret && /* @__PURE__ */ React69.createElement("div", {
7024
+ }))), rightCaret && /* @__PURE__ */ React70.createElement("div", {
6991
7025
  onClick: () => handleScrollToNext("right"),
6992
7026
  className: tw("absolute right-0 bg-gradient-to-l from-white via-white z-20 py-3 pl-4")
6993
- }, /* @__PURE__ */ React69.createElement("div", {
7027
+ }, /* @__PURE__ */ React70.createElement("div", {
6994
7028
  onClick: () => handleScrollToNext("right"),
6995
7029
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
6996
- }, /* @__PURE__ */ React69.createElement(InlineIcon, {
7030
+ }, /* @__PURE__ */ React70.createElement(InlineIcon, {
6997
7031
  icon: import_chevronRight2.default
6998
7032
  })))), renderChildren(children, selected, props));
6999
7033
  };
@@ -7001,89 +7035,92 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
7001
7035
  Tabs2.Tab = TabComponent;
7002
7036
  return Tabs2;
7003
7037
  };
7004
- var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React69.createElement(TabContainer, null, children.find(
7038
+ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React70.createElement(TabContainer, null, children.find(
7005
7039
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
7006
7040
  )));
7007
7041
 
7008
7042
  // src/molecules/Modal/Modal.tsx
7009
7043
  var import_cross5 = __toESM(require_cross());
7010
- var Modal2 = ({
7011
- title,
7012
- open,
7013
- subtitle,
7014
- headerImage,
7015
- onClose,
7016
- children,
7017
- primaryAction,
7018
- secondaryActions,
7019
- size
7020
- }) => {
7021
- const ref = React70.useRef(null);
7022
- const state = useOverlayTriggerState4({ isOpen: open });
7023
- const { modalProps, underlayProps } = useModalOverlay2({ isDismissable: false }, state, ref);
7024
- const labelledBy = useId2();
7025
- const describedBy = useId2();
7026
- const { dialogProps } = useDialog2(
7027
- { "role": "dialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
7044
+ var Modal2 = (props) => {
7045
+ const { open, onClose, size, portalContainer } = props;
7046
+ const ref = React71.useRef(null);
7047
+ const state = useOverlayTriggerState4({ isOpen: open, onOpenChange: (isOpen) => !isOpen && onClose() });
7048
+ const { modalProps, underlayProps } = useModalOverlay2(
7049
+ { isDismissable: true, isKeyboardDismissDisabled: false },
7050
+ state,
7028
7051
  ref
7029
7052
  );
7030
- if (!open) {
7053
+ if (!state.isOpen) {
7031
7054
  return null;
7032
7055
  }
7033
- return /* @__PURE__ */ React70.createElement(Overlay2, null, /* @__PURE__ */ React70.createElement(Modal, {
7034
- open: state.isOpen
7035
- }, /* @__PURE__ */ React70.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React70.createElement(FocusScope3, {
7036
- contain: true,
7037
- restoreFocus: true,
7038
- autoFocus: true
7039
- }, /* @__PURE__ */ React70.createElement(Modal.Dialog, __spreadValues(__spreadValues({
7056
+ return /* @__PURE__ */ React71.createElement(Overlay3, {
7057
+ portalContainer
7058
+ }, /* @__PURE__ */ React71.createElement(Modal, {
7059
+ open: true
7060
+ }, /* @__PURE__ */ React71.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React71.createElement(ModalWrapper, __spreadValues(__spreadValues({
7040
7061
  ref,
7041
7062
  size
7042
- }, modalProps), dialogProps), /* @__PURE__ */ React70.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React70.createElement(IconButton, {
7043
- "aria-label": "Close",
7044
- icon: import_cross5.default,
7045
- onClick: onClose
7046
- })), headerImage !== void 0 && /* @__PURE__ */ React70.createElement(Modal.HeaderImage, {
7047
- backgroundImage: headerImage
7048
- }), /* @__PURE__ */ React70.createElement(Modal.Header, {
7049
- className: tw({ "pb-3": isComponentType(children, ModalTabs) })
7050
- }, /* @__PURE__ */ React70.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React70.createElement(Modal.Title, {
7051
- id: labelledBy
7052
- }, title), subtitle && /* @__PURE__ */ React70.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React70.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React70.createElement(Modal.Body, {
7053
- id: describedBy,
7054
- tabIndex: 0,
7055
- noFooter: !(secondaryActions || primaryAction)
7056
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React70.createElement(Modal.Footer, null, /* @__PURE__ */ React70.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a) => {
7057
- var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
7058
- return /* @__PURE__ */ React70.createElement(SecondaryButton, __spreadValues({
7059
- key: text
7060
- }, action), text);
7061
- }), primaryAction && /* @__PURE__ */ React70.createElement(PrimaryButton, __spreadValues({
7062
- key: primaryAction.text
7063
- }, omit10(primaryAction, "text")), primaryAction.text)))))));
7063
+ }, props), modalProps))));
7064
7064
  };
7065
+ var ModalWrapper = React71.forwardRef(
7066
+ (_a, ref) => {
7067
+ var _b = _a, { title, subtitle, headerImage, primaryAction, secondaryActions, children, onClose } = _b, props = __objRest(_b, ["title", "subtitle", "headerImage", "primaryAction", "secondaryActions", "children", "onClose"]);
7068
+ const labelledBy = useId2();
7069
+ const describedBy = useId2();
7070
+ const { dialogProps } = useDialog3(
7071
+ { "role": "dialog", "aria-labelledby": labelledBy, "aria-describedby": describedBy },
7072
+ ref
7073
+ );
7074
+ return /* @__PURE__ */ React71.createElement(Modal.Dialog, __spreadProps(__spreadValues(__spreadValues({
7075
+ ref
7076
+ }, props), dialogProps), {
7077
+ tabIndex: -1
7078
+ }), /* @__PURE__ */ React71.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React71.createElement(IconButton, {
7079
+ "aria-label": "Close",
7080
+ icon: import_cross5.default,
7081
+ onClick: onClose
7082
+ })), headerImage !== void 0 && /* @__PURE__ */ React71.createElement(Modal.HeaderImage, {
7083
+ backgroundImage: headerImage
7084
+ }), /* @__PURE__ */ React71.createElement(Modal.Header, {
7085
+ className: tw({ "pb-3": isComponentType(children, ModalTabs) })
7086
+ }, /* @__PURE__ */ React71.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React71.createElement(Modal.Title, {
7087
+ id: labelledBy
7088
+ }, title), subtitle && /* @__PURE__ */ React71.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React71.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React71.createElement(Modal.Body, {
7089
+ id: describedBy,
7090
+ tabIndex: 0,
7091
+ noFooter: !(secondaryActions || primaryAction)
7092
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React71.createElement(Modal.Footer, null, /* @__PURE__ */ React71.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a2) => {
7093
+ var _b2 = _a2, { text } = _b2, action = __objRest(_b2, ["text"]);
7094
+ return /* @__PURE__ */ React71.createElement(SecondaryButton, __spreadValues({
7095
+ key: text
7096
+ }, action), text);
7097
+ }), primaryAction && /* @__PURE__ */ React71.createElement(PrimaryButton, __spreadValues({
7098
+ key: primaryAction.text
7099
+ }, omit10(primaryAction, "text")), primaryAction.text))));
7100
+ }
7101
+ );
7065
7102
  var ModalTabs = createTabsComponent(
7066
7103
  ModalTab,
7067
7104
  TabItem,
7068
7105
  "ModalTabs",
7069
- (children, selected, props) => /* @__PURE__ */ React70.createElement(Modal.Body, {
7106
+ (children, selected, props) => /* @__PURE__ */ React71.createElement(Modal.Body, {
7070
7107
  maxHeight: props.maxHeight
7071
- }, /* @__PURE__ */ React70.createElement(ModalTabContainer, null, children.find(
7108
+ }, /* @__PURE__ */ React71.createElement(ModalTabContainer, null, children.find(
7072
7109
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
7073
7110
  )))
7074
7111
  );
7075
7112
 
7076
7113
  // src/molecules/MultiInput/MultiInput.tsx
7077
- import React72, { useEffect as useEffect6, useRef as useRef9, useState as useState8 } from "react";
7114
+ import React73, { useEffect as useEffect7, useRef as useRef9, useState as useState8 } from "react";
7078
7115
  import castArray2 from "lodash/castArray";
7079
7116
  import identity from "lodash/identity";
7080
7117
  import omit11 from "lodash/omit";
7081
7118
  import uniqueId4 from "lodash/uniqueId";
7082
7119
 
7083
7120
  // src/molecules/MultiInput/InputChip.tsx
7084
- import React71 from "react";
7121
+ import React72 from "react";
7085
7122
  var import_smallCross = __toESM(require_smallCross());
7086
- var InputChip = React71.forwardRef(
7123
+ var InputChip = React72.forwardRef(
7087
7124
  (_a, ref) => {
7088
7125
  var _b = _a, { invalid = false, disabled, readOnly, className, onClick: _onClick, children } = _b, props = __objRest(_b, ["invalid", "disabled", "readOnly", "className", "onClick", "children"]);
7089
7126
  const onClick = (e) => {
@@ -7091,7 +7128,7 @@ var InputChip = React71.forwardRef(
7091
7128
  _onClick == null ? void 0 : _onClick(e);
7092
7129
  }
7093
7130
  };
7094
- return /* @__PURE__ */ React71.createElement("div", __spreadValues({
7131
+ return /* @__PURE__ */ React72.createElement("div", __spreadValues({
7095
7132
  ref,
7096
7133
  role: "button",
7097
7134
  className: classNames(className, "inline-flex align-middle mx-1 px-2 py-1 items-center rounded-sm break-all", {
@@ -7101,10 +7138,10 @@ var InputChip = React71.forwardRef(
7101
7138
  "bg-grey-5 pointer-events-none": disabled
7102
7139
  }),
7103
7140
  onClick
7104
- }, props), /* @__PURE__ */ React71.createElement(Typography2, {
7141
+ }, props), /* @__PURE__ */ React72.createElement(Typography2, {
7105
7142
  variant: "small",
7106
7143
  color: invalid ? "error-80" : disabled ? "grey-40" : "grey-70"
7107
- }, children), !readOnly && /* @__PURE__ */ React71.createElement("div", null, /* @__PURE__ */ React71.createElement(Icon, {
7144
+ }, children), !readOnly && /* @__PURE__ */ React72.createElement("div", null, /* @__PURE__ */ React72.createElement(Icon, {
7108
7145
  icon: import_smallCross.default,
7109
7146
  className: tw("ml-2", {
7110
7147
  "text-error-70": invalid,
@@ -7166,7 +7203,7 @@ var MultiInputBase = (_a) => {
7166
7203
  const [items, setItems] = useState8((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
7167
7204
  const [hasFocus, setFocus] = useState8(false);
7168
7205
  const keyCodes = [delimiter !== "enter" ? " " : null, delimiter !== "space" ? "Enter" : null].filter(identity);
7169
- useEffect6(() => {
7206
+ useEffect7(() => {
7170
7207
  const requiresUpdate = value !== void 0 || defaultValue === void 0;
7171
7208
  if (requiresUpdate && JSON.stringify(value) !== JSON.stringify(items)) {
7172
7209
  setItems(value != null ? value : []);
@@ -7245,7 +7282,7 @@ var MultiInputBase = (_a) => {
7245
7282
  };
7246
7283
  const renderChips = () => items == null ? void 0 : items.map((item, index) => {
7247
7284
  var _a3;
7248
- return /* @__PURE__ */ React72.createElement(InputChip, {
7285
+ return /* @__PURE__ */ React73.createElement(InputChip, {
7249
7286
  key: `${itemToString(item)}.${index}`,
7250
7287
  invalid: !((_a3 = isItemValid == null ? void 0 : isItemValid(item, index)) != null ? _a3 : true),
7251
7288
  readOnly,
@@ -7256,11 +7293,11 @@ var MultiInputBase = (_a) => {
7256
7293
  }
7257
7294
  }, itemToString(item));
7258
7295
  });
7259
- return /* @__PURE__ */ React72.createElement("div", null, /* @__PURE__ */ React72.createElement(Select.InputContainer, {
7296
+ return /* @__PURE__ */ React73.createElement("div", null, /* @__PURE__ */ React73.createElement(Select.InputContainer, {
7260
7297
  variant: disabled ? "disabled" : valid === false ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
7261
- }, /* @__PURE__ */ React72.createElement("div", {
7298
+ }, /* @__PURE__ */ React73.createElement("div", {
7262
7299
  className: "grow inline-flex flex-row flex-wrap gap-y-2"
7263
- }, inline && renderChips(), /* @__PURE__ */ React72.createElement(Select.Input, __spreadProps(__spreadValues({
7300
+ }, inline && renderChips(), /* @__PURE__ */ React73.createElement(Select.Input, __spreadProps(__spreadValues({
7264
7301
  ref: inputRef,
7265
7302
  id: id != null ? id : name,
7266
7303
  name,
@@ -7278,11 +7315,11 @@ var MultiInputBase = (_a) => {
7278
7315
  onFocus: handleFocus,
7279
7316
  onBlur: handleBlur,
7280
7317
  autoComplete: "off"
7281
- }))), endAdornment && /* @__PURE__ */ React72.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React72.createElement("div", {
7318
+ }))), endAdornment && /* @__PURE__ */ React73.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React73.createElement("div", {
7282
7319
  className: tw("flex flex-row flex-wrap gap-y-2 mt-2")
7283
7320
  }, renderChips()));
7284
7321
  };
7285
- var BaseMultiInputSkeleton = () => /* @__PURE__ */ React72.createElement(Skeleton, {
7322
+ var BaseMultiInputSkeleton = () => /* @__PURE__ */ React73.createElement(Skeleton, {
7286
7323
  height: 38
7287
7324
  });
7288
7325
  MultiInputBase.Skeleton = BaseMultiInputSkeleton;
@@ -7290,7 +7327,7 @@ var MultiInput = (props) => {
7290
7327
  var _a, _b, _c, _d, _e;
7291
7328
  const maxLength = (_a = props.maxLength) != null ? _a : props.max;
7292
7329
  const [value, setValue] = useState8((_c = (_b = props.value) != null ? _b : props.defaultValue) != null ? _c : []);
7293
- useEffect6(() => {
7330
+ useEffect7(() => {
7294
7331
  var _a2;
7295
7332
  setValue((_a2 = props.value) != null ? _a2 : []);
7296
7333
  }, [JSON.stringify(props.value)]);
@@ -7299,14 +7336,14 @@ var MultiInput = (props) => {
7299
7336
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7300
7337
  const labelControlProps = getLabelControlProps(props);
7301
7338
  const baseProps = omit11(props, Object.keys(labelControlProps));
7302
- return /* @__PURE__ */ React72.createElement(LabelControl, __spreadProps(__spreadValues({
7339
+ return /* @__PURE__ */ React73.createElement(LabelControl, __spreadProps(__spreadValues({
7303
7340
  id: `${id.current}-label`,
7304
7341
  htmlFor: `${id.current}-input`,
7305
7342
  messageId: errorMessageId
7306
7343
  }, labelControlProps), {
7307
7344
  length: value.length,
7308
7345
  maxLength
7309
- }), /* @__PURE__ */ React72.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7346
+ }), /* @__PURE__ */ React73.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7310
7347
  id: `${id.current}-input`,
7311
7348
  onChange: (value2) => {
7312
7349
  var _a2;
@@ -7318,13 +7355,13 @@ var MultiInput = (props) => {
7318
7355
  valid: props.valid
7319
7356
  })));
7320
7357
  };
7321
- var MultiInputSkeleton = () => /* @__PURE__ */ React72.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React72.createElement(MultiInputBase.Skeleton, null));
7358
+ var MultiInputSkeleton = () => /* @__PURE__ */ React73.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React73.createElement(MultiInputBase.Skeleton, null));
7322
7359
  MultiInput.Skeleton = MultiInputSkeleton;
7323
7360
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
7324
7361
 
7325
7362
  // src/molecules/MultiSelect/MultiSelect.tsx
7326
- import React73, { useRef as useRef10, useState as useState9 } from "react";
7327
- import { useOverlayPosition as useOverlayPosition5 } from "@react-aria/overlays";
7363
+ import React74, { useEffect as useEffect8, useRef as useRef10, useState as useState9 } from "react";
7364
+ import { ariaHideOutside as ariaHideOutside2 } from "@react-aria/overlays";
7328
7365
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
7329
7366
  import isEqual from "lodash/isEqual";
7330
7367
  import isNil from "lodash/isNil";
@@ -7379,8 +7416,10 @@ var MultiSelectBase = (_a) => {
7379
7416
  "children"
7380
7417
  ]);
7381
7418
  var _a2;
7419
+ const popoverRef = useRef10(null);
7382
7420
  const targetRef = useRef10(null);
7383
- const overlayRef = useRef10(null);
7421
+ const menuRef = useRef10(null);
7422
+ const inputRef = useRef10(null);
7384
7423
  const [inputValue, setInputValue] = useState9("");
7385
7424
  const [hasFocus, setFocus] = useState9(false);
7386
7425
  const { selectedItems, addSelectedItem, removeSelectedItem, getDropdownProps, getSelectedItemProps } = useMultipleSelection(
@@ -7402,6 +7441,7 @@ var MultiSelectBase = (_a) => {
7402
7441
  isOpen,
7403
7442
  openMenu,
7404
7443
  closeMenu,
7444
+ toggleMenu,
7405
7445
  highlightedIndex,
7406
7446
  getInputProps,
7407
7447
  getMenuProps,
@@ -7452,16 +7492,20 @@ var MultiSelectBase = (_a) => {
7452
7492
  }
7453
7493
  }
7454
7494
  });
7455
- const { overlayProps } = useOverlayPosition5({
7456
- targetRef,
7457
- overlayRef,
7458
- placement: "bottom start",
7459
- shouldFlip: true,
7460
- isOpen
7461
- });
7462
- const inputProps = getInputProps(getDropdownProps({ disabled: disabled || readOnly }));
7495
+ const state = {
7496
+ isOpen,
7497
+ close: closeMenu,
7498
+ open: openMenu,
7499
+ toggle: toggleMenu,
7500
+ setOpen: (isOpen2) => isOpen2 ? openMenu() : closeMenu()
7501
+ };
7502
+ useEffect8(() => {
7503
+ if (state.isOpen && inputRef.current && popoverRef.current) {
7504
+ return ariaHideOutside2([inputRef.current, popoverRef.current]);
7505
+ }
7506
+ }, [state.isOpen, inputRef, popoverRef]);
7463
7507
  const renderChips = () => {
7464
- return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React73.createElement(InputChip, __spreadProps(__spreadValues({
7508
+ return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React74.createElement(InputChip, __spreadProps(__spreadValues({
7465
7509
  key: `${itemToString(selectedItem)}.chip`,
7466
7510
  className: tw("mx-0"),
7467
7511
  disabled,
@@ -7475,17 +7519,18 @@ var MultiSelectBase = (_a) => {
7475
7519
  }), itemToString(selectedItem)));
7476
7520
  };
7477
7521
  const hasNoResults = options.length === 0 || filteredOptions.length === 0;
7478
- const width = (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth;
7479
- const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
7480
- return /* @__PURE__ */ React73.createElement("div", {
7522
+ const inputProps = getInputProps(getDropdownProps({ ref: inputRef, disabled: disabled || readOnly }));
7523
+ const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
7524
+ return /* @__PURE__ */ React74.createElement("div", {
7481
7525
  className: tw("relative")
7482
- }, /* @__PURE__ */ React73.createElement(Select.InputContainer, {
7526
+ }, /* @__PURE__ */ React74.createElement(Select.InputContainer, {
7483
7527
  ref: targetRef,
7484
7528
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
7485
- }, /* @__PURE__ */ React73.createElement("div", {
7529
+ }, /* @__PURE__ */ React74.createElement("div", {
7486
7530
  className: "grow inline-flex flex-row flex-wrap gap-2"
7487
- }, !hideChips && inline && renderChips(), /* @__PURE__ */ React73.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
7531
+ }, !hideChips && inline && renderChips(), /* @__PURE__ */ React74.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
7488
7532
  id,
7533
+ ref: inputRef,
7489
7534
  name,
7490
7535
  placeholder: selectedItems.length === 0 && !readOnly ? placeholder : "",
7491
7536
  value: inputValue != null ? inputValue : ""
@@ -7505,27 +7550,29 @@ var MultiSelectBase = (_a) => {
7505
7550
  setFocus(false);
7506
7551
  (_a3 = inputProps.onBlur) == null ? void 0 : _a3.call(inputProps, e);
7507
7552
  }
7508
- }))), !readOnly && /* @__PURE__ */ React73.createElement(Select.Toggle, __spreadValues({
7553
+ }))), !readOnly && /* @__PURE__ */ React74.createElement(Select.Toggle, __spreadValues({
7509
7554
  hasFocus,
7510
7555
  isOpen
7511
- }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React73.createElement("div", {
7556
+ }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React74.createElement("div", {
7512
7557
  className: tw("flex flex-row flex-wrap gap-2 mt-2")
7513
- }, renderChips()), /* @__PURE__ */ React73.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7514
- isOpen: true,
7515
- isDismissable: true,
7516
- autoFocus: true
7517
- }, getMenuProps({ ref: overlayRef })), {
7518
- style,
7519
- onClose: closeMenu
7520
- }), /* @__PURE__ */ React73.createElement(Select.Menu, {
7558
+ }, renderChips()), isOpen && /* @__PURE__ */ React74.createElement(PopoverOverlay, {
7559
+ ref: popoverRef,
7560
+ triggerRef: targetRef,
7561
+ state,
7562
+ placement: "bottom-left",
7563
+ shouldFlip: true,
7564
+ isNonModal: true,
7565
+ style: { width: (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth }
7566
+ }, /* @__PURE__ */ React74.createElement(Select.Menu, __spreadValues({
7567
+ ref: menuRef,
7521
7568
  maxHeight
7522
- }, isOpen && hasNoResults && /* @__PURE__ */ React73.createElement(Select.NoResults, null, noResults), isOpen && filteredOptions.map((item, index) => /* @__PURE__ */ React73.createElement(Select.Item, __spreadValues({
7569
+ }, menuProps), hasNoResults && /* @__PURE__ */ React74.createElement(Select.NoResults, null, noResults), filteredOptions.map((item, index) => /* @__PURE__ */ React74.createElement(Select.Item, __spreadValues({
7523
7570
  key: itemToString(item),
7524
7571
  highlighted: index === highlightedIndex,
7525
7572
  selected: selectedItems.includes(item)
7526
7573
  }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
7527
7574
  };
7528
- var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React73.createElement(Skeleton, {
7575
+ var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React74.createElement(Skeleton, {
7529
7576
  height: 38
7530
7577
  });
7531
7578
  MultiSelectBase.Skeleton = MultiSelectBaseSkeleton;
@@ -7543,11 +7590,11 @@ var MultiSelect = (_a) => {
7543
7590
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7544
7591
  const labelControlProps = getLabelControlProps(props);
7545
7592
  const baseProps = omit12(props, Object.keys(labelControlProps));
7546
- return /* @__PURE__ */ React73.createElement(LabelControl, __spreadValues({
7593
+ return /* @__PURE__ */ React74.createElement(LabelControl, __spreadValues({
7547
7594
  id: `${id.current}-label`,
7548
7595
  htmlFor: `${id.current}-input`,
7549
7596
  messageId: errorMessageId
7550
- }, labelControlProps), /* @__PURE__ */ React73.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7597
+ }, labelControlProps), /* @__PURE__ */ React74.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7551
7598
  id: id.current,
7552
7599
  options,
7553
7600
  noResults,
@@ -7555,16 +7602,16 @@ var MultiSelect = (_a) => {
7555
7602
  valid: props.valid
7556
7603
  })));
7557
7604
  };
7558
- var MultiSelectSkeleton = () => /* @__PURE__ */ React73.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React73.createElement(MultiSelectBase.Skeleton, null));
7605
+ var MultiSelectSkeleton = () => /* @__PURE__ */ React74.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React74.createElement(MultiSelectBase.Skeleton, null));
7559
7606
  MultiSelect.Skeleton = MultiSelectSkeleton;
7560
7607
  MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
7561
7608
 
7562
7609
  // src/molecules/NativeSelect/NativeSelect.tsx
7563
- import React74, { useRef as useRef11 } from "react";
7610
+ import React75, { useRef as useRef11 } from "react";
7564
7611
  import omit13 from "lodash/omit";
7565
7612
  import uniqueId6 from "lodash/uniqueId";
7566
7613
  var import_caretDown = __toESM(require_caretDown());
7567
- var NativeSelectBase = React74.forwardRef(
7614
+ var NativeSelectBase = React75.forwardRef(
7568
7615
  (_a, ref) => {
7569
7616
  var _b = _a, { children, disabled = false, required = false, valid = true, readOnly = false } = _b, props = __objRest(_b, ["children", "disabled", "required", "valid", "readOnly"]);
7570
7617
  const placeholderValue = uniqueId6("default_value_for_placeholder");
@@ -7581,16 +7628,16 @@ var NativeSelectBase = React74.forwardRef(
7581
7628
  (_b2 = props.onBlur) == null ? void 0 : _b2.call(props, event);
7582
7629
  }
7583
7630
  };
7584
- return /* @__PURE__ */ React74.createElement("span", {
7631
+ return /* @__PURE__ */ React75.createElement("span", {
7585
7632
  className: tw("relative block")
7586
- }, !readOnly && /* @__PURE__ */ React74.createElement("span", {
7633
+ }, !readOnly && /* @__PURE__ */ React75.createElement("span", {
7587
7634
  className: tw(
7588
7635
  "absolute right-0 inset-y-0 mr-4 text-grey-40 flex ml-3 pointer-events-none typography-default-strong mt-4"
7589
7636
  )
7590
- }, /* @__PURE__ */ React74.createElement(Icon, {
7637
+ }, /* @__PURE__ */ React75.createElement(Icon, {
7591
7638
  icon: import_caretDown.default,
7592
7639
  "data-testid": "icon-dropdown"
7593
- })), /* @__PURE__ */ React74.createElement("select", __spreadProps(__spreadValues({
7640
+ })), /* @__PURE__ */ React75.createElement("select", __spreadProps(__spreadValues({
7594
7641
  ref,
7595
7642
  disabled: disabled || readOnly,
7596
7643
  required
@@ -7609,16 +7656,16 @@ var NativeSelectBase = React74.forwardRef(
7609
7656
  ),
7610
7657
  props.className
7611
7658
  )
7612
- }), props.placeholder && /* @__PURE__ */ React74.createElement("option", {
7659
+ }), props.placeholder && /* @__PURE__ */ React75.createElement("option", {
7613
7660
  value: placeholderValue,
7614
7661
  disabled: true
7615
7662
  }, props.placeholder), children));
7616
7663
  }
7617
7664
  );
7618
- NativeSelectBase.Skeleton = () => /* @__PURE__ */ React74.createElement(Skeleton, {
7665
+ NativeSelectBase.Skeleton = () => /* @__PURE__ */ React75.createElement(Skeleton, {
7619
7666
  height: 38
7620
7667
  });
7621
- var NativeSelect = React74.forwardRef(
7668
+ var NativeSelect = React75.forwardRef(
7622
7669
  (_a, ref) => {
7623
7670
  var _b = _a, { readOnly } = _b, props = __objRest(_b, ["readOnly"]);
7624
7671
  var _a2;
@@ -7627,11 +7674,11 @@ var NativeSelect = React74.forwardRef(
7627
7674
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7628
7675
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
7629
7676
  const baseProps = omit13(props, Object.keys(labelControlProps));
7630
- return /* @__PURE__ */ React74.createElement(LabelControl, __spreadValues({
7677
+ return /* @__PURE__ */ React75.createElement(LabelControl, __spreadValues({
7631
7678
  id: `${id.current}-label`,
7632
7679
  htmlFor: id.current,
7633
7680
  messageId: errorMessageId
7634
- }, labelControlProps), /* @__PURE__ */ React74.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
7681
+ }, labelControlProps), /* @__PURE__ */ React75.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
7635
7682
  ref
7636
7683
  }, baseProps), errorProps), {
7637
7684
  id: id.current,
@@ -7645,21 +7692,21 @@ var NativeSelect = React74.forwardRef(
7645
7692
  }
7646
7693
  );
7647
7694
  NativeSelect.displayName = "NativeSelect";
7648
- var Option = React74.forwardRef((_a, ref) => {
7695
+ var Option = React75.forwardRef((_a, ref) => {
7649
7696
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
7650
- return /* @__PURE__ */ React74.createElement("option", __spreadValues({
7697
+ return /* @__PURE__ */ React75.createElement("option", __spreadValues({
7651
7698
  ref
7652
7699
  }, props), children);
7653
7700
  });
7654
7701
  Option.displayName = "Option";
7655
- var NativeSelectSkeleton = () => /* @__PURE__ */ React74.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React74.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React74.createElement("div", {
7702
+ var NativeSelectSkeleton = () => /* @__PURE__ */ React75.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React75.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React75.createElement("div", {
7656
7703
  style: { height: "1px" }
7657
7704
  }));
7658
7705
  NativeSelect.Skeleton = NativeSelectSkeleton;
7659
7706
  NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
7660
7707
 
7661
7708
  // src/molecules/PageHeader/PageHeader.tsx
7662
- import React75 from "react";
7709
+ import React76 from "react";
7663
7710
  import castArray3 from "lodash/castArray";
7664
7711
  import omit14 from "lodash/omit";
7665
7712
  var PageHeader = ({
@@ -7671,49 +7718,48 @@ var PageHeader = ({
7671
7718
  chips = [],
7672
7719
  breadcrumbs
7673
7720
  }) => {
7674
- return /* @__PURE__ */ React75.createElement(Flexbox, {
7721
+ return /* @__PURE__ */ React76.createElement(Flexbox, {
7675
7722
  direction: "row",
7676
7723
  gap: "4",
7677
7724
  paddingBottom: "6"
7678
- }, /* @__PURE__ */ React75.createElement(Flexbox, {
7725
+ }, /* @__PURE__ */ React76.createElement(Flexbox, {
7679
7726
  className: tw("grow"),
7680
7727
  direction: "column",
7681
7728
  gap: "0"
7682
- }, breadcrumbs && /* @__PURE__ */ React75.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React75.createElement(Flexbox, {
7729
+ }, breadcrumbs && /* @__PURE__ */ React76.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React76.createElement(Flexbox, {
7683
7730
  gap: "5"
7684
- }, image && /* @__PURE__ */ React75.createElement("img", {
7731
+ }, image && /* @__PURE__ */ React76.createElement("img", {
7685
7732
  src: image,
7686
7733
  alt: imageAlt,
7687
7734
  className: tw("w-[56px] h-[56px]")
7688
- }), /* @__PURE__ */ React75.createElement(Flexbox, {
7735
+ }), /* @__PURE__ */ React76.createElement(Flexbox, {
7689
7736
  direction: "column",
7690
7737
  justifyContent: "center"
7691
- }, /* @__PURE__ */ React75.createElement(Typography2.Heading, null, title), chips.length > 0 && /* @__PURE__ */ React75.createElement(Flexbox, {
7738
+ }, /* @__PURE__ */ React76.createElement(Typography2.Heading, null, title), chips.length > 0 && /* @__PURE__ */ React76.createElement(Flexbox, {
7692
7739
  gap: "3"
7693
- }, chips.map((chip) => /* @__PURE__ */ React75.createElement(Chip2, {
7740
+ }, chips.map((chip) => /* @__PURE__ */ React76.createElement(Chip2, {
7694
7741
  key: chip,
7695
7742
  dense: true,
7696
7743
  text: chip
7697
- })))))), (secondaryActions || primaryAction) && /* @__PURE__ */ React75.createElement(Flexbox, {
7744
+ })))))), (secondaryActions || primaryAction) && /* @__PURE__ */ React76.createElement(Flexbox, {
7698
7745
  gap: "4",
7699
7746
  className: tw("self-start")
7700
7747
  }, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a) => {
7701
7748
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
7702
- return /* @__PURE__ */ React75.createElement(SecondaryButton, __spreadValues({
7749
+ return /* @__PURE__ */ React76.createElement(SecondaryButton, __spreadValues({
7703
7750
  key: text
7704
7751
  }, action), text);
7705
- }), primaryAction && /* @__PURE__ */ React75.createElement(PrimaryButton, __spreadValues({
7752
+ }), primaryAction && /* @__PURE__ */ React76.createElement(PrimaryButton, __spreadValues({
7706
7753
  key: primaryAction.text
7707
7754
  }, omit14(primaryAction, "text")), primaryAction.text)));
7708
7755
  };
7709
7756
 
7710
7757
  // src/molecules/Pagination/Pagination.tsx
7711
- import React77 from "react";
7758
+ import React78 from "react";
7712
7759
  import clamp from "lodash/clamp";
7713
7760
 
7714
7761
  // src/molecules/Select/Select.tsx
7715
- import React76, { useRef as useRef12, useState as useState10 } from "react";
7716
- import { useOverlayPosition as useOverlayPosition6 } from "@react-aria/overlays";
7762
+ import React77, { useRef as useRef12, useState as useState10 } from "react";
7717
7763
  import { useSelect } from "downshift";
7718
7764
  import defaults from "lodash/defaults";
7719
7765
  import isArray from "lodash/isArray";
@@ -7729,10 +7775,10 @@ var hasOptionGroups = (val) => {
7729
7775
  };
7730
7776
  var defaultRenderOption = (item, props, { selectedItem }, { getOptionKey, getValue, optionToString = getOptionLabelBuiltin }) => {
7731
7777
  var _a, _b;
7732
- return /* @__PURE__ */ React76.createElement(Select.Item, __spreadValues({
7778
+ return /* @__PURE__ */ React77.createElement(Select.Item, __spreadValues({
7733
7779
  key: (_b = (_a = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a : getValue == null ? void 0 : getValue(item)) != null ? _b : optionToString(item),
7734
7780
  selected: item === selectedItem
7735
- }, props), hasIconProperty(item) && /* @__PURE__ */ React76.createElement(InlineIcon, {
7781
+ }, props), hasIconProperty(item) && /* @__PURE__ */ React77.createElement(InlineIcon, {
7736
7782
  icon: item.icon
7737
7783
  }), optionToString(item));
7738
7784
  };
@@ -7805,7 +7851,7 @@ var _SelectBase = (props) => {
7805
7851
  ]);
7806
7852
  const [hasFocus, setFocus] = useState10(false);
7807
7853
  const targetRef = useRef12(null);
7808
- const overlayRef = useRef12(null);
7854
+ const menuRef = useRef12(null);
7809
7855
  const items = hasOptionGroups(options) ? options.flatMap((g) => g.options) : options;
7810
7856
  const findItemByValue = (val) => {
7811
7857
  if (val === null) {
@@ -7815,7 +7861,9 @@ var _SelectBase = (props) => {
7815
7861
  };
7816
7862
  const {
7817
7863
  isOpen,
7864
+ openMenu,
7818
7865
  closeMenu,
7866
+ toggleMenu,
7819
7867
  selectItem,
7820
7868
  selectedItem,
7821
7869
  highlightedIndex,
@@ -7830,13 +7878,13 @@ var _SelectBase = (props) => {
7830
7878
  itemToString,
7831
7879
  onSelectedItemChange: (e) => onChange == null ? void 0 : onChange(e.selectedItem)
7832
7880
  });
7833
- const { overlayProps } = useOverlayPosition6({
7834
- targetRef,
7835
- overlayRef,
7836
- placement: "bottom start",
7837
- shouldFlip: true,
7838
- isOpen
7839
- });
7881
+ const state = {
7882
+ isOpen,
7883
+ close: closeMenu,
7884
+ open: openMenu,
7885
+ toggle: toggleMenu,
7886
+ setOpen: (isOpen2) => isOpen2 ? openMenu() : closeMenu()
7887
+ };
7840
7888
  const renderItem = (item, index) => UNSAFE_renderOption(
7841
7889
  item,
7842
7890
  __spreadValues({
@@ -7849,13 +7897,13 @@ var _SelectBase = (props) => {
7849
7897
  },
7850
7898
  withDefaults
7851
7899
  );
7852
- const renderGroup = (group) => /* @__PURE__ */ React76.createElement(React76.Fragment, {
7900
+ const renderGroup = (group) => /* @__PURE__ */ React77.createElement(React77.Fragment, {
7853
7901
  key: group.label
7854
- }, /* @__PURE__ */ React76.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
7855
- const input = /* @__PURE__ */ React76.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
7902
+ }, /* @__PURE__ */ React77.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
7903
+ const input = /* @__PURE__ */ React77.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
7856
7904
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default",
7857
7905
  tabIndex: 0
7858
- }), /* @__PURE__ */ React76.createElement(Select.Input, __spreadProps(__spreadValues({
7906
+ }), /* @__PURE__ */ React77.createElement(Select.Input, __spreadProps(__spreadValues({
7859
7907
  id,
7860
7908
  name
7861
7909
  }, rest), {
@@ -7867,27 +7915,26 @@ var _SelectBase = (props) => {
7867
7915
  tabIndex: -1,
7868
7916
  onFocus: () => setFocus(true),
7869
7917
  onBlur: () => setFocus(false)
7870
- })), !readOnly && /* @__PURE__ */ React76.createElement(Select.Toggle, {
7918
+ })), !readOnly && /* @__PURE__ */ React77.createElement(Select.Toggle, {
7871
7919
  disabled,
7872
7920
  isOpen,
7873
7921
  tabIndex: -1
7874
7922
  }));
7875
- const width = (_b = targetRef.current) == null ? void 0 : _b.offsetWidth;
7876
- const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
7877
- return /* @__PURE__ */ React76.createElement("div", {
7923
+ const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
7924
+ return /* @__PURE__ */ React77.createElement("div", {
7878
7925
  className: tw("relative")
7879
- }, labelWrapper ? React76.cloneElement(labelWrapper, { children: input }) : input, /* @__PURE__ */ React76.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7880
- isOpen: true,
7881
- isDismissable: true,
7882
- autoFocus: true
7883
- }, getMenuProps({ ref: overlayRef })), {
7884
- style,
7885
- onClose: closeMenu
7886
- }), /* @__PURE__ */ React76.createElement(Select.Menu, {
7926
+ }, labelWrapper ? React77.cloneElement(labelWrapper, { children: input }) : input, isOpen && /* @__PURE__ */ React77.createElement(PopoverOverlay, {
7927
+ state,
7928
+ triggerRef: targetRef,
7929
+ placement: "bottom-left",
7930
+ shouldFlip: true,
7931
+ style: { width: (_b = targetRef.current) == null ? void 0 : _b.offsetWidth }
7932
+ }, /* @__PURE__ */ React77.createElement(Select.Menu, __spreadValues({
7933
+ ref: menuRef,
7887
7934
  maxHeight
7888
- }, isOpen && options.length === 0 && /* @__PURE__ */ React76.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__ */ React76.createElement(React76.Fragment, null, /* @__PURE__ */ React76.createElement(Select.Divider, {
7935
+ }, menuProps), options.length === 0 && /* @__PURE__ */ React77.createElement(Select.EmptyStateContainer, null, emptyState), options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), actions.length > 0 && /* @__PURE__ */ React77.createElement(React77.Fragment, null, /* @__PURE__ */ React77.createElement(Select.Divider, {
7889
7936
  onMouseOver: () => setHighlightedIndex(-1)
7890
- }), actions.map((act, index) => /* @__PURE__ */ React76.createElement(Select.ActionItem, __spreadProps(__spreadValues({
7937
+ }), actions.map((act, index) => /* @__PURE__ */ React77.createElement(Select.ActionItem, __spreadProps(__spreadValues({
7891
7938
  key: `${index}`
7892
7939
  }, act), {
7893
7940
  onMouseOver: () => setHighlightedIndex(-1),
@@ -7897,10 +7944,10 @@ var _SelectBase = (props) => {
7897
7944
  }
7898
7945
  }), act.label))))));
7899
7946
  };
7900
- var SelectBase = (props) => /* @__PURE__ */ React76.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
7947
+ var SelectBase = (props) => /* @__PURE__ */ React77.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
7901
7948
  labelWrapper: void 0
7902
7949
  }));
7903
- var SelectBaseSkeleton = () => /* @__PURE__ */ React76.createElement(Skeleton, {
7950
+ var SelectBaseSkeleton = () => /* @__PURE__ */ React77.createElement(Skeleton, {
7904
7951
  height: 38
7905
7952
  });
7906
7953
  SelectBase.Skeleton = SelectBaseSkeleton;
@@ -7918,19 +7965,19 @@ var Select2 = (_a) => {
7918
7965
  const baseProps = omit15(props, Object.keys(labelProps));
7919
7966
  const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
7920
7967
  const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
7921
- const label = /* @__PURE__ */ React76.createElement(Label, __spreadValues({
7968
+ const label = /* @__PURE__ */ React77.createElement(Label, __spreadValues({
7922
7969
  id: `${id.current}-label`,
7923
7970
  htmlFor: `${id.current}-input`,
7924
7971
  variant,
7925
7972
  messageId: errorMessageId
7926
7973
  }, labelProps));
7927
- return /* @__PURE__ */ React76.createElement(FormControl, null, /* @__PURE__ */ React76.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7974
+ return /* @__PURE__ */ React77.createElement(FormControl, null, /* @__PURE__ */ React77.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7928
7975
  id: `${id.current}-input`,
7929
7976
  options,
7930
7977
  disabled: props.disabled,
7931
7978
  valid: props.valid,
7932
7979
  labelWrapper: label
7933
- })), /* @__PURE__ */ React76.createElement(HelperText, {
7980
+ })), /* @__PURE__ */ React77.createElement(HelperText, {
7934
7981
  messageId: errorMessageId,
7935
7982
  error: !labelProps.valid,
7936
7983
  helperText: labelProps.helperText,
@@ -7939,7 +7986,7 @@ var Select2 = (_a) => {
7939
7986
  reserveSpaceForError: labelProps.reserveSpaceForError
7940
7987
  }));
7941
7988
  };
7942
- var SelectSkeleton = () => /* @__PURE__ */ React76.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React76.createElement(SelectBase.Skeleton, null));
7989
+ var SelectSkeleton = () => /* @__PURE__ */ React77.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React77.createElement(SelectBase.Skeleton, null));
7943
7990
  Select2.Skeleton = SelectSkeleton;
7944
7991
  Select2.Skeleton.displayName = "Select.Skeleton";
7945
7992
 
@@ -7958,23 +8005,23 @@ var Pagination = ({
7958
8005
  pageSizes,
7959
8006
  onPageSizeChange
7960
8007
  }) => {
7961
- const [value, setValue] = React77.useState(currentPage);
7962
- React77.useEffect(() => {
8008
+ const [value, setValue] = React78.useState(currentPage);
8009
+ React78.useEffect(() => {
7963
8010
  setValue(currentPage);
7964
8011
  }, [currentPage]);
7965
- return /* @__PURE__ */ React77.createElement(Box, {
8012
+ return /* @__PURE__ */ React78.createElement(Box, {
7966
8013
  className: tw("grid grid-cols-[200px_1fr_200px]"),
7967
8014
  backgroundColor: "grey-0",
7968
8015
  padding: "4"
7969
- }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React77.createElement(Box, {
8016
+ }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React78.createElement(Box, {
7970
8017
  display: "flex",
7971
8018
  alignItems: "center",
7972
8019
  gap: "4"
7973
- }, /* @__PURE__ */ React77.createElement(Typography2.Small, {
8020
+ }, /* @__PURE__ */ React78.createElement(Typography2.Small, {
7974
8021
  color: "grey-50"
7975
- }, "Items per page "), /* @__PURE__ */ React77.createElement("div", {
8022
+ }, "Items per page "), /* @__PURE__ */ React78.createElement("div", {
7976
8023
  className: tw("max-w-[70px]")
7977
- }, /* @__PURE__ */ React77.createElement(SelectBase, {
8024
+ }, /* @__PURE__ */ React78.createElement(SelectBase, {
7978
8025
  options: pageSizes.map((size) => size.toString()),
7979
8026
  value: pageSize.toString(),
7980
8027
  onChange: (size) => {
@@ -7985,26 +8032,26 @@ var Pagination = ({
7985
8032
  }
7986
8033
  }
7987
8034
  }
7988
- }))) : /* @__PURE__ */ React77.createElement("div", null), /* @__PURE__ */ React77.createElement(Box, {
8035
+ }))) : /* @__PURE__ */ React78.createElement("div", null), /* @__PURE__ */ React78.createElement(Box, {
7989
8036
  display: "flex",
7990
8037
  justifyContent: "center",
7991
8038
  alignItems: "center",
7992
8039
  className: tw("grow")
7993
- }, /* @__PURE__ */ React77.createElement(IconButton, {
8040
+ }, /* @__PURE__ */ React78.createElement(IconButton, {
7994
8041
  "aria-label": "First",
7995
8042
  onClick: () => onPageChange(1),
7996
8043
  icon: import_chevronBackward.default,
7997
8044
  disabled: !hasPreviousPage
7998
- }), /* @__PURE__ */ React77.createElement(IconButton, {
8045
+ }), /* @__PURE__ */ React78.createElement(IconButton, {
7999
8046
  "aria-label": "Previous",
8000
8047
  onClick: () => onPageChange(currentPage - 1),
8001
8048
  icon: import_chevronLeft3.default,
8002
8049
  disabled: !hasPreviousPage
8003
- }), /* @__PURE__ */ React77.createElement(Box, {
8050
+ }), /* @__PURE__ */ React78.createElement(Box, {
8004
8051
  paddingX: "4"
8005
- }, /* @__PURE__ */ React77.createElement(Typography2.Small, {
8052
+ }, /* @__PURE__ */ React78.createElement(Typography2.Small, {
8006
8053
  color: "grey-60"
8007
- }, "Page")), /* @__PURE__ */ React77.createElement(InputBase, {
8054
+ }, "Page")), /* @__PURE__ */ React78.createElement(InputBase, {
8008
8055
  className: classNames(tw("text-center max-w-[40px]"), "no-arrows"),
8009
8056
  type: "number",
8010
8057
  min: 1,
@@ -8021,45 +8068,45 @@ var Pagination = ({
8021
8068
  const newPage = !isNaN(numberValue) ? clamp(numberValue, 1, totalPages) : 1;
8022
8069
  onPageChange(newPage);
8023
8070
  }
8024
- }), /* @__PURE__ */ React77.createElement(Box, {
8071
+ }), /* @__PURE__ */ React78.createElement(Box, {
8025
8072
  paddingX: "4"
8026
- }, /* @__PURE__ */ React77.createElement(Typography2.Small, {
8073
+ }, /* @__PURE__ */ React78.createElement(Typography2.Small, {
8027
8074
  color: "grey-60"
8028
- }, "of ", totalPages)), /* @__PURE__ */ React77.createElement(IconButton, {
8075
+ }, "of ", totalPages)), /* @__PURE__ */ React78.createElement(IconButton, {
8029
8076
  "aria-label": "Next",
8030
8077
  onClick: () => onPageChange(currentPage + 1),
8031
8078
  icon: import_chevronRight3.default,
8032
8079
  disabled: !hasNextPage
8033
- }), /* @__PURE__ */ React77.createElement(IconButton, {
8080
+ }), /* @__PURE__ */ React78.createElement(IconButton, {
8034
8081
  "aria-label": "Last",
8035
8082
  onClick: () => onPageChange(totalPages),
8036
8083
  icon: import_chevronForward.default,
8037
8084
  disabled: !hasNextPage
8038
- })), /* @__PURE__ */ React77.createElement("div", null));
8085
+ })), /* @__PURE__ */ React78.createElement("div", null));
8039
8086
  };
8040
8087
 
8041
8088
  // src/molecules/PopoverDialog/PopoverDialog.tsx
8042
- import React79 from "react";
8089
+ import React80 from "react";
8043
8090
  import omit16 from "lodash/omit";
8044
8091
 
8045
8092
  // src/atoms/PopoverDialog/PopoverDialog.tsx
8046
- import React78 from "react";
8093
+ import React79 from "react";
8047
8094
  var Header = (_a) => {
8048
8095
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8049
- return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({}, rest), {
8096
+ return /* @__PURE__ */ React79.createElement("div", __spreadProps(__spreadValues({}, rest), {
8050
8097
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
8051
8098
  }), children);
8052
8099
  };
8053
8100
  var Title = (_a) => {
8054
8101
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8055
- return /* @__PURE__ */ React78.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8102
+ return /* @__PURE__ */ React79.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8056
8103
  htmlTag: "h1",
8057
8104
  variant: "small-strong"
8058
8105
  }), children);
8059
8106
  };
8060
8107
  var Body = (_a) => {
8061
8108
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8062
- return /* @__PURE__ */ React78.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8109
+ return /* @__PURE__ */ React79.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8063
8110
  htmlTag: "div",
8064
8111
  variant: "caption",
8065
8112
  className: classNames(tw("px-5 overflow-y-auto"), className)
@@ -8067,13 +8114,13 @@ var Body = (_a) => {
8067
8114
  };
8068
8115
  var Footer = (_a) => {
8069
8116
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8070
- return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({}, rest), {
8117
+ return /* @__PURE__ */ React79.createElement("div", __spreadProps(__spreadValues({}, rest), {
8071
8118
  className: classNames(tw("p-5"), className)
8072
8119
  }), children);
8073
8120
  };
8074
8121
  var Actions2 = (_a) => {
8075
8122
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8076
- return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({}, rest), {
8123
+ return /* @__PURE__ */ React79.createElement("div", __spreadProps(__spreadValues({}, rest), {
8077
8124
  className: classNames(tw("flex gap-4"), className)
8078
8125
  }), children);
8079
8126
  };
@@ -8089,13 +8136,13 @@ var PopoverDialog = {
8089
8136
  var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
8090
8137
  const wrapPromptWithBody = (child) => {
8091
8138
  if (isComponentType(child, PopoverDialog2.Prompt)) {
8092
- return /* @__PURE__ */ React79.createElement(Popover2.Panel, {
8139
+ return /* @__PURE__ */ React80.createElement(Popover2.Panel, {
8093
8140
  className: tw("max-w-[300px]")
8094
- }, /* @__PURE__ */ React79.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React79.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React79.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React79.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React79.createElement(Popover2.Button, __spreadValues({
8141
+ }, /* @__PURE__ */ React80.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React80.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React80.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React80.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React80.createElement(Popover2.Button, __spreadValues({
8095
8142
  kind: "secondary-ghost",
8096
8143
  key: secondaryAction.text,
8097
8144
  dense: true
8098
- }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React79.createElement(Popover2.Button, __spreadValues({
8145
+ }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React80.createElement(Popover2.Button, __spreadValues({
8099
8146
  kind: "ghost",
8100
8147
  key: primaryAction.text,
8101
8148
  dense: true
@@ -8103,18 +8150,15 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
8103
8150
  }
8104
8151
  return child;
8105
8152
  };
8106
- return /* @__PURE__ */ React79.createElement(Popover2, {
8153
+ return /* @__PURE__ */ React80.createElement(Popover2, {
8107
8154
  type: "dialog",
8108
8155
  isOpen: open,
8109
8156
  placement,
8110
- isDismissable: true,
8111
- isKeyboardDismissDisabled: false,
8112
- autoFocus: true,
8113
8157
  containFocus: true
8114
- }, React79.Children.map(children, wrapPromptWithBody));
8158
+ }, React80.Children.map(children, wrapPromptWithBody));
8115
8159
  };
8116
8160
  PopoverDialog2.Trigger = Popover2.Trigger;
8117
- var Prompt = ({ children }) => /* @__PURE__ */ React79.createElement(PopoverDialog.Body, null, children);
8161
+ var Prompt = ({ children }) => /* @__PURE__ */ React80.createElement(PopoverDialog.Body, null, children);
8118
8162
  Prompt.displayName = "PopoverDialog.Prompt";
8119
8163
  PopoverDialog2.Prompt = Prompt;
8120
8164
 
@@ -8123,14 +8167,14 @@ import { createPortal } from "react-dom";
8123
8167
  var Portal = ({ children, to }) => createPortal(children, to);
8124
8168
 
8125
8169
  // src/molecules/ProgressBar/ProgressBar.tsx
8126
- import React81 from "react";
8170
+ import React82 from "react";
8127
8171
 
8128
8172
  // src/atoms/ProgressBar/ProgressBar.tsx
8129
- import React80 from "react";
8173
+ import React81 from "react";
8130
8174
  import clamp2 from "lodash/clamp";
8131
8175
  var ProgressBar = (_a) => {
8132
8176
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8133
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8177
+ return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8134
8178
  className: classNames(
8135
8179
  tw("relative flex items-center w-full bg-grey-0 h-2 rounded-full overflow-hidden"),
8136
8180
  className
@@ -8146,7 +8190,7 @@ var STATUS_COLORS = {
8146
8190
  ProgressBar.Indicator = (_a) => {
8147
8191
  var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
8148
8192
  const completedPercentage = clamp2((value - min) / (max - min) * 100, 0, 100);
8149
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8193
+ return /* @__PURE__ */ React81.createElement("div", __spreadProps(__spreadValues({}, rest), {
8150
8194
  className: classNames(
8151
8195
  tw("h-2 rounded-full transition-all ease-in-out delay-150"),
8152
8196
  STATUS_COLORS[status],
@@ -8162,11 +8206,11 @@ ProgressBar.Indicator = (_a) => {
8162
8206
  };
8163
8207
  ProgressBar.Labels = (_a) => {
8164
8208
  var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
8165
- return /* @__PURE__ */ React80.createElement("div", {
8209
+ return /* @__PURE__ */ React81.createElement("div", {
8166
8210
  className: classNames(tw("flex flex-row"), className)
8167
- }, /* @__PURE__ */ React80.createElement("span", __spreadProps(__spreadValues({}, rest), {
8211
+ }, /* @__PURE__ */ React81.createElement("span", __spreadProps(__spreadValues({}, rest), {
8168
8212
  className: tw("grow text-grey-70 typography-caption")
8169
- }), startLabel), /* @__PURE__ */ React80.createElement("span", __spreadProps(__spreadValues({}, rest), {
8213
+ }), startLabel), /* @__PURE__ */ React81.createElement("span", __spreadProps(__spreadValues({}, rest), {
8170
8214
  className: tw("grow text-grey-70 typography-caption text-right")
8171
8215
  }), endLabel));
8172
8216
  };
@@ -8184,7 +8228,7 @@ var ProgressBar2 = (props) => {
8184
8228
  if (min > max) {
8185
8229
  throw new Error("`min` value provided to `ProgressBar` is greater than `max` value.");
8186
8230
  }
8187
- const progress = /* @__PURE__ */ React81.createElement(ProgressBar, null, /* @__PURE__ */ React81.createElement(ProgressBar.Indicator, {
8231
+ const progress = /* @__PURE__ */ React82.createElement(ProgressBar, null, /* @__PURE__ */ React82.createElement(ProgressBar.Indicator, {
8188
8232
  status: value === max ? completedStatus : progresStatus,
8189
8233
  min,
8190
8234
  max,
@@ -8194,13 +8238,13 @@ var ProgressBar2 = (props) => {
8194
8238
  if (props.dense) {
8195
8239
  return progress;
8196
8240
  }
8197
- return /* @__PURE__ */ React81.createElement("div", null, progress, /* @__PURE__ */ React81.createElement(ProgressBar.Labels, {
8241
+ return /* @__PURE__ */ React82.createElement("div", null, progress, /* @__PURE__ */ React82.createElement(ProgressBar.Labels, {
8198
8242
  className: tw("py-2"),
8199
8243
  startLabel: props.startLabel,
8200
8244
  endLabel: props.endLabel
8201
8245
  }));
8202
8246
  };
8203
- var ProgressBarSkeleton = () => /* @__PURE__ */ React81.createElement(Skeleton, {
8247
+ var ProgressBarSkeleton = () => /* @__PURE__ */ React82.createElement(Skeleton, {
8204
8248
  height: 4,
8205
8249
  display: "block"
8206
8250
  });
@@ -8208,13 +8252,13 @@ ProgressBar2.Skeleton = ProgressBarSkeleton;
8208
8252
  ProgressBar2.Skeleton.displayName = "ProgressBar.Skeleton";
8209
8253
 
8210
8254
  // src/molecules/RadioButton/RadioButton.tsx
8211
- import React82 from "react";
8212
- var RadioButton2 = React82.forwardRef(
8255
+ import React83 from "react";
8256
+ var RadioButton2 = React83.forwardRef(
8213
8257
  (_a, ref) => {
8214
8258
  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"]);
8215
8259
  var _a2;
8216
8260
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
8217
- return !readOnly || isChecked ? /* @__PURE__ */ React82.createElement(ControlLabel, {
8261
+ return !readOnly || isChecked ? /* @__PURE__ */ React83.createElement(ControlLabel, {
8218
8262
  htmlFor: id,
8219
8263
  label: children,
8220
8264
  "aria-label": ariaLabel,
@@ -8222,7 +8266,7 @@ var RadioButton2 = React82.forwardRef(
8222
8266
  readOnly,
8223
8267
  disabled,
8224
8268
  style: { gap: "0 8px" }
8225
- }, !readOnly && /* @__PURE__ */ React82.createElement(RadioButton, __spreadProps(__spreadValues({
8269
+ }, !readOnly && /* @__PURE__ */ React83.createElement(RadioButton, __spreadProps(__spreadValues({
8226
8270
  id,
8227
8271
  ref,
8228
8272
  name
@@ -8233,12 +8277,12 @@ var RadioButton2 = React82.forwardRef(
8233
8277
  }
8234
8278
  );
8235
8279
  RadioButton2.displayName = "RadioButton";
8236
- var RadioButtonSkeleton = () => /* @__PURE__ */ React82.createElement("div", {
8280
+ var RadioButtonSkeleton = () => /* @__PURE__ */ React83.createElement("div", {
8237
8281
  className: tw("flex gap-3")
8238
- }, /* @__PURE__ */ React82.createElement(Skeleton, {
8282
+ }, /* @__PURE__ */ React83.createElement(Skeleton, {
8239
8283
  height: 20,
8240
8284
  width: 20
8241
- }), /* @__PURE__ */ React82.createElement(Skeleton, {
8285
+ }), /* @__PURE__ */ React83.createElement(Skeleton, {
8242
8286
  height: 20,
8243
8287
  width: 150
8244
8288
  }));
@@ -8246,10 +8290,10 @@ RadioButton2.Skeleton = RadioButtonSkeleton;
8246
8290
  RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
8247
8291
 
8248
8292
  // src/molecules/RadioButtonGroup/RadioButtonGroup.tsx
8249
- import React83 from "react";
8293
+ import React84 from "react";
8250
8294
  import uniqueId8 from "lodash/uniqueId";
8251
8295
  var isRadioButton = (c) => {
8252
- return React83.isValidElement(c) && c.type === RadioButton2;
8296
+ return React84.isValidElement(c) && c.type === RadioButton2;
8253
8297
  };
8254
8298
  var RadioButtonGroup = (_a) => {
8255
8299
  var _b = _a, {
@@ -8272,7 +8316,7 @@ var RadioButtonGroup = (_a) => {
8272
8316
  "children"
8273
8317
  ]);
8274
8318
  var _a2;
8275
- const [value, setValue] = React83.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
8319
+ const [value, setValue] = React84.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
8276
8320
  const errorMessageId = uniqueId8();
8277
8321
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8278
8322
  const labelControlProps = getLabelControlProps(props);
@@ -8283,14 +8327,14 @@ var RadioButtonGroup = (_a) => {
8283
8327
  setValue(e.target.value);
8284
8328
  onChange == null ? void 0 : onChange(e.target.value);
8285
8329
  };
8286
- const content = React83.Children.map(children, (c) => {
8330
+ const content = React84.Children.map(children, (c) => {
8287
8331
  var _a3, _b2, _c;
8288
8332
  if (!isRadioButton(c)) {
8289
8333
  return null;
8290
8334
  }
8291
8335
  const defaultChecked = defaultValue === void 0 ? void 0 : c.props.value === defaultValue;
8292
8336
  const checked = value === void 0 ? void 0 : c.props.value === value;
8293
- return React83.cloneElement(c, {
8337
+ return React84.cloneElement(c, {
8294
8338
  name,
8295
8339
  defaultChecked: (_a3 = c.props.defaultChecked) != null ? _a3 : defaultChecked,
8296
8340
  checked: (_b2 = c.props.checked) != null ? _b2 : checked,
@@ -8299,11 +8343,11 @@ var RadioButtonGroup = (_a) => {
8299
8343
  readOnly
8300
8344
  });
8301
8345
  });
8302
- return /* @__PURE__ */ React83.createElement(LabelControl, __spreadValues(__spreadValues({
8346
+ return /* @__PURE__ */ React84.createElement(LabelControl, __spreadValues(__spreadValues({
8303
8347
  fieldset: true
8304
- }, labelControlProps), errorProps), cols && /* @__PURE__ */ React83.createElement(InputGroup, {
8348
+ }, labelControlProps), errorProps), cols && /* @__PURE__ */ React84.createElement(InputGroup, {
8305
8349
  cols
8306
- }, content), !cols && /* @__PURE__ */ React83.createElement(Flexbox, {
8350
+ }, content), !cols && /* @__PURE__ */ React84.createElement(Flexbox, {
8307
8351
  direction,
8308
8352
  alignItems: "flex-start",
8309
8353
  colGap: "8",
@@ -8312,12 +8356,12 @@ var RadioButtonGroup = (_a) => {
8312
8356
  }, content));
8313
8357
  };
8314
8358
  var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
8315
- return /* @__PURE__ */ React83.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React83.createElement("div", {
8359
+ return /* @__PURE__ */ React84.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React84.createElement("div", {
8316
8360
  className: tw("flex flex-wrap", {
8317
8361
  "flex-row gap-8": direction === "row",
8318
8362
  "flex-col gap-2": direction === "column"
8319
8363
  })
8320
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React83.createElement(RadioButton2.Skeleton, {
8364
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React84.createElement(RadioButton2.Skeleton, {
8321
8365
  key
8322
8366
  }))));
8323
8367
  };
@@ -8325,68 +8369,68 @@ RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
8325
8369
  RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
8326
8370
 
8327
8371
  // src/molecules/Section/Section.tsx
8328
- import React85 from "react";
8372
+ import React86 from "react";
8329
8373
  import castArray4 from "lodash/castArray";
8330
8374
 
8331
8375
  // src/atoms/Section/Section.tsx
8332
- import React84 from "react";
8376
+ import React85 from "react";
8333
8377
  var Section2 = (_a) => {
8334
8378
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8335
- return /* @__PURE__ */ React84.createElement(Box, __spreadValues({
8379
+ return /* @__PURE__ */ React85.createElement(Box, __spreadValues({
8336
8380
  borderColor: "grey-5",
8337
8381
  borderWidth: "1px"
8338
8382
  }, rest), children);
8339
8383
  };
8340
8384
  Section2.Header = (_a) => {
8341
8385
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8342
- return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8386
+ return /* @__PURE__ */ React85.createElement("div", __spreadProps(__spreadValues({}, rest), {
8343
8387
  className: classNames(tw("px-6 py-5 flex gap-5 justify-between items-center"), className)
8344
8388
  }), children);
8345
8389
  };
8346
8390
  Section2.TitleContainer = (_a) => {
8347
8391
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8348
- return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8392
+ return /* @__PURE__ */ React85.createElement("div", __spreadProps(__spreadValues({}, rest), {
8349
8393
  className: classNames(tw("flex flex-col grow gap-2"), className)
8350
8394
  }), children);
8351
8395
  };
8352
8396
  Section2.Title = (_a) => {
8353
8397
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8354
- return /* @__PURE__ */ React84.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
8398
+ return /* @__PURE__ */ React85.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
8355
8399
  color: "black"
8356
8400
  }), children);
8357
8401
  };
8358
8402
  Section2.Subtitle = (_a) => {
8359
8403
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8360
- return /* @__PURE__ */ React84.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
8404
+ return /* @__PURE__ */ React85.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
8361
8405
  color: "grey-70"
8362
8406
  }), children);
8363
8407
  };
8364
8408
  Section2.Actions = (_a) => {
8365
8409
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8366
- return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8410
+ return /* @__PURE__ */ React85.createElement("div", __spreadProps(__spreadValues({}, rest), {
8367
8411
  className: classNames(tw("flex gap-4 justify-end"), className)
8368
8412
  }), children);
8369
8413
  };
8370
8414
  Section2.Body = (_a) => {
8371
8415
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8372
- return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8416
+ return /* @__PURE__ */ React85.createElement("div", __spreadProps(__spreadValues({}, rest), {
8373
8417
  className: classNames(tw("p-6"), className)
8374
- }), /* @__PURE__ */ React84.createElement(Typography, {
8418
+ }), /* @__PURE__ */ React85.createElement(Typography, {
8375
8419
  htmlTag: "div",
8376
8420
  color: "grey-70"
8377
8421
  }, children));
8378
8422
  };
8379
8423
 
8380
8424
  // src/molecules/Section/Section.tsx
8381
- var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React85.createElement(Section2, null, title && /* @__PURE__ */ React85.createElement(React85.Fragment, null, /* @__PURE__ */ React85.createElement(Section2.Header, null, /* @__PURE__ */ React85.createElement(Section2.TitleContainer, null, /* @__PURE__ */ React85.createElement(Section2.Title, null, title), subtitle && /* @__PURE__ */ React85.createElement(Section2.Subtitle, null, subtitle)), /* @__PURE__ */ React85.createElement(Section2.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8425
+ var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React86.createElement(Section2, null, title && /* @__PURE__ */ React86.createElement(React86.Fragment, null, /* @__PURE__ */ React86.createElement(Section2.Header, null, /* @__PURE__ */ React86.createElement(Section2.TitleContainer, null, /* @__PURE__ */ React86.createElement(Section2.Title, null, title), subtitle && /* @__PURE__ */ React86.createElement(Section2.Subtitle, null, subtitle)), /* @__PURE__ */ React86.createElement(Section2.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8382
8426
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
8383
- return /* @__PURE__ */ React85.createElement(SecondaryButton, __spreadValues({
8427
+ return /* @__PURE__ */ React86.createElement(SecondaryButton, __spreadValues({
8384
8428
  key: text
8385
8429
  }, action), text);
8386
- }))), /* @__PURE__ */ React85.createElement(Divider2, null)), /* @__PURE__ */ React85.createElement(Section2.Body, null, children));
8430
+ }))), /* @__PURE__ */ React86.createElement(Divider2, null)), /* @__PURE__ */ React86.createElement(Section2.Body, null, children));
8387
8431
 
8388
8432
  // src/molecules/SegmentedControl/SegmentedControl.tsx
8389
- import React86 from "react";
8433
+ import React87 from "react";
8390
8434
  var SegmentedControl = (_a) => {
8391
8435
  var _b = _a, {
8392
8436
  children,
@@ -8403,7 +8447,7 @@ var SegmentedControl = (_a) => {
8403
8447
  "selected",
8404
8448
  "className"
8405
8449
  ]);
8406
- return /* @__PURE__ */ React86.createElement("button", __spreadProps(__spreadValues({
8450
+ return /* @__PURE__ */ React87.createElement("button", __spreadProps(__spreadValues({
8407
8451
  type: "button"
8408
8452
  }, rest), {
8409
8453
  className: classNames(
@@ -8434,11 +8478,11 @@ var SegmentedControlGroup = (_a) => {
8434
8478
  "border border-grey-20 text-grey-50": variant === "outlined",
8435
8479
  "bg-grey-0": variant === "raised"
8436
8480
  });
8437
- return /* @__PURE__ */ React86.createElement("div", __spreadProps(__spreadValues({}, rest), {
8481
+ return /* @__PURE__ */ React87.createElement("div", __spreadProps(__spreadValues({}, rest), {
8438
8482
  className: classNames(classes2, className)
8439
- }), React86.Children.map(
8483
+ }), React87.Children.map(
8440
8484
  children,
8441
- (child) => React86.cloneElement(child, {
8485
+ (child) => React87.cloneElement(child, {
8442
8486
  dense,
8443
8487
  variant,
8444
8488
  onClick: () => onChange(child.props.value),
@@ -8476,10 +8520,10 @@ var getCommonClassNames = (dense, selected) => tw(
8476
8520
  );
8477
8521
 
8478
8522
  // src/molecules/Spacing/Spacing.tsx
8479
- import React87 from "react";
8523
+ import React88 from "react";
8480
8524
  var Spacing = (_a) => {
8481
8525
  var _b = _a, { gap, row } = _b, rest = __objRest(_b, ["gap", "row"]);
8482
- return /* @__PURE__ */ React87.createElement(Box, __spreadProps(__spreadValues({}, rest), {
8526
+ return /* @__PURE__ */ React88.createElement(Box, __spreadProps(__spreadValues({}, rest), {
8483
8527
  display: "flex",
8484
8528
  flexDirection: row ? "row" : "column",
8485
8529
  gap
@@ -8487,14 +8531,14 @@ var Spacing = (_a) => {
8487
8531
  };
8488
8532
 
8489
8533
  // src/molecules/Stepper/Stepper.tsx
8490
- import React89 from "react";
8534
+ import React90 from "react";
8491
8535
 
8492
8536
  // src/atoms/Stepper/Stepper.tsx
8493
- import React88 from "react";
8537
+ import React89 from "react";
8494
8538
  var import_tick5 = __toESM(require_tick());
8495
8539
  var Stepper = (_a) => {
8496
8540
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8497
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8541
+ return /* @__PURE__ */ React89.createElement("div", __spreadProps(__spreadValues({}, rest), {
8498
8542
  className: classNames(className)
8499
8543
  }));
8500
8544
  };
@@ -8508,7 +8552,7 @@ var ConnectorContainer = (_a) => {
8508
8552
  "completed",
8509
8553
  "dense"
8510
8554
  ]);
8511
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8555
+ return /* @__PURE__ */ React89.createElement("div", __spreadProps(__spreadValues({}, rest), {
8512
8556
  className: classNames(
8513
8557
  tw("absolute w-full -left-1/2", {
8514
8558
  "top-[3px] px-[14px]": Boolean(dense),
@@ -8520,7 +8564,7 @@ var ConnectorContainer = (_a) => {
8520
8564
  };
8521
8565
  var Connector = (_a) => {
8522
8566
  var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
8523
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8567
+ return /* @__PURE__ */ React89.createElement("div", __spreadProps(__spreadValues({}, rest), {
8524
8568
  className: classNames(
8525
8569
  tw("w-full", {
8526
8570
  "bg-grey-20": !completed,
@@ -8534,7 +8578,7 @@ var Connector = (_a) => {
8534
8578
  };
8535
8579
  var Step = (_a) => {
8536
8580
  var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
8537
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8581
+ return /* @__PURE__ */ React89.createElement("div", __spreadProps(__spreadValues({}, rest), {
8538
8582
  className: classNames(
8539
8583
  tw("flex flex-col items-center text-grey-90 relative text-center", {
8540
8584
  "text-grey-20": state === "inactive"
@@ -8555,13 +8599,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
8555
8599
  });
8556
8600
  var Indicator = (_a) => {
8557
8601
  var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
8558
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8602
+ return /* @__PURE__ */ React89.createElement("div", __spreadProps(__spreadValues({}, rest), {
8559
8603
  className: classNames(
8560
8604
  tw("rounded-full flex justify-center items-center mx-2 mb-3"),
8561
8605
  dense ? getDenseClassNames(state) : getClassNames(state),
8562
8606
  className
8563
8607
  )
8564
- }), state === "completed" ? /* @__PURE__ */ React88.createElement(InlineIcon, {
8608
+ }), state === "completed" ? /* @__PURE__ */ React89.createElement(InlineIcon, {
8565
8609
  icon: import_tick5.default
8566
8610
  }) : dense ? null : children);
8567
8611
  };
@@ -8572,25 +8616,25 @@ Stepper.ConnectorContainer = ConnectorContainer;
8572
8616
 
8573
8617
  // src/molecules/Stepper/Stepper.tsx
8574
8618
  var Stepper2 = ({ children, activeIndex, dense }) => {
8575
- const steps = React89.Children.count(children);
8576
- return /* @__PURE__ */ React89.createElement(Stepper, {
8619
+ const steps = React90.Children.count(children);
8620
+ return /* @__PURE__ */ React90.createElement(Stepper, {
8577
8621
  role: "list"
8578
- }, /* @__PURE__ */ React89.createElement(Template, {
8622
+ }, /* @__PURE__ */ React90.createElement(Template, {
8579
8623
  columns: steps
8580
- }, React89.Children.map(children, (child, index) => {
8624
+ }, React90.Children.map(children, (child, index) => {
8581
8625
  if (!isComponentType(child, Step2)) {
8582
8626
  return new Error("<Stepper> can only have <Stepper.Step> components as children");
8583
8627
  } else {
8584
8628
  const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
8585
- return /* @__PURE__ */ React89.createElement(Stepper.Step, {
8629
+ return /* @__PURE__ */ React90.createElement(Stepper.Step, {
8586
8630
  state,
8587
8631
  "aria-current": state === "active" ? "step" : false,
8588
8632
  role: "listitem"
8589
- }, index > 0 && index <= steps && /* @__PURE__ */ React89.createElement(Stepper.ConnectorContainer, {
8633
+ }, index > 0 && index <= steps && /* @__PURE__ */ React90.createElement(Stepper.ConnectorContainer, {
8590
8634
  dense
8591
- }, /* @__PURE__ */ React89.createElement(Stepper.ConnectorContainer.Connector, {
8635
+ }, /* @__PURE__ */ React90.createElement(Stepper.ConnectorContainer.Connector, {
8592
8636
  completed: state === "completed" || state === "active"
8593
- })), /* @__PURE__ */ React89.createElement(Stepper.Step.Indicator, {
8637
+ })), /* @__PURE__ */ React90.createElement(Stepper.Step.Indicator, {
8594
8638
  state,
8595
8639
  dense
8596
8640
  }, index + 1), child.props.children);
@@ -8602,16 +8646,16 @@ Step2.displayName = "Stepper.Step";
8602
8646
  Stepper2.Step = Step2;
8603
8647
 
8604
8648
  // src/molecules/Switch/Switch.tsx
8605
- import React91 from "react";
8649
+ import React92 from "react";
8606
8650
 
8607
8651
  // src/atoms/Switch/Switch.tsx
8608
- import React90 from "react";
8609
- var Switch = React90.forwardRef(
8652
+ import React91 from "react";
8653
+ var Switch = React91.forwardRef(
8610
8654
  (_a, ref) => {
8611
8655
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
8612
- return /* @__PURE__ */ React90.createElement("span", {
8656
+ return /* @__PURE__ */ React91.createElement("span", {
8613
8657
  className: tw("relative inline-flex justify-center items-center self-center group")
8614
- }, /* @__PURE__ */ React90.createElement("input", __spreadProps(__spreadValues({
8658
+ }, /* @__PURE__ */ React91.createElement("input", __spreadProps(__spreadValues({
8615
8659
  id,
8616
8660
  ref,
8617
8661
  type: "checkbox",
@@ -8630,7 +8674,7 @@ var Switch = React90.forwardRef(
8630
8674
  ),
8631
8675
  readOnly,
8632
8676
  disabled
8633
- })), /* @__PURE__ */ React90.createElement("span", {
8677
+ })), /* @__PURE__ */ React91.createElement("span", {
8634
8678
  className: tw(
8635
8679
  "pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
8636
8680
  "bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
@@ -8643,12 +8687,12 @@ var Switch = React90.forwardRef(
8643
8687
  );
8644
8688
 
8645
8689
  // src/molecules/Switch/Switch.tsx
8646
- var Switch2 = React91.forwardRef(
8690
+ var Switch2 = React92.forwardRef(
8647
8691
  (_a, ref) => {
8648
8692
  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"]);
8649
8693
  var _a2;
8650
8694
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
8651
- return !readOnly || isChecked ? /* @__PURE__ */ React91.createElement(ControlLabel, {
8695
+ return !readOnly || isChecked ? /* @__PURE__ */ React92.createElement(ControlLabel, {
8652
8696
  htmlFor: id,
8653
8697
  label: children,
8654
8698
  "aria-label": ariaLabel,
@@ -8656,7 +8700,7 @@ var Switch2 = React91.forwardRef(
8656
8700
  readOnly,
8657
8701
  disabled,
8658
8702
  style: { gap: "0 8px" }
8659
- }, !readOnly && /* @__PURE__ */ React91.createElement(Switch, __spreadProps(__spreadValues({
8703
+ }, !readOnly && /* @__PURE__ */ React92.createElement(Switch, __spreadProps(__spreadValues({
8660
8704
  id,
8661
8705
  ref,
8662
8706
  name
@@ -8667,12 +8711,12 @@ var Switch2 = React91.forwardRef(
8667
8711
  }
8668
8712
  );
8669
8713
  Switch2.displayName = "Switch";
8670
- var SwitchSkeleton = () => /* @__PURE__ */ React91.createElement("div", {
8714
+ var SwitchSkeleton = () => /* @__PURE__ */ React92.createElement("div", {
8671
8715
  className: tw("flex gap-3")
8672
- }, /* @__PURE__ */ React91.createElement(Skeleton, {
8716
+ }, /* @__PURE__ */ React92.createElement(Skeleton, {
8673
8717
  height: 20,
8674
8718
  width: 35
8675
- }), /* @__PURE__ */ React91.createElement(Skeleton, {
8719
+ }), /* @__PURE__ */ React92.createElement(Skeleton, {
8676
8720
  height: 20,
8677
8721
  width: 150
8678
8722
  }));
@@ -8680,7 +8724,7 @@ Switch2.Skeleton = SwitchSkeleton;
8680
8724
  Switch2.Skeleton.displayName = "Switch.Skeleton ";
8681
8725
 
8682
8726
  // src/molecules/SwitchGroup/SwitchGroup.tsx
8683
- import React92, { useState as useState11 } from "react";
8727
+ import React93, { useState as useState11 } from "react";
8684
8728
  import uniqueId9 from "lodash/uniqueId";
8685
8729
  var SwitchGroup = (_a) => {
8686
8730
  var _b = _a, {
@@ -8712,11 +8756,11 @@ var SwitchGroup = (_a) => {
8712
8756
  setSelectedItems(updated);
8713
8757
  onChange == null ? void 0 : onChange(updated);
8714
8758
  };
8715
- return /* @__PURE__ */ React92.createElement(LabelControl, __spreadValues(__spreadValues({
8759
+ return /* @__PURE__ */ React93.createElement(LabelControl, __spreadValues(__spreadValues({
8716
8760
  fieldset: true
8717
- }, labelControlProps), errorProps), /* @__PURE__ */ React92.createElement(InputGroup, {
8761
+ }, labelControlProps), errorProps), /* @__PURE__ */ React93.createElement(InputGroup, {
8718
8762
  cols
8719
- }, React92.Children.map(children, (c) => {
8763
+ }, React93.Children.map(children, (c) => {
8720
8764
  var _a3, _b2, _c, _d;
8721
8765
  if (!isComponentType(c, Switch2)) {
8722
8766
  return null;
@@ -8724,7 +8768,7 @@ var SwitchGroup = (_a) => {
8724
8768
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
8725
8769
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
8726
8770
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
8727
- return React92.cloneElement(c, {
8771
+ return React93.cloneElement(c, {
8728
8772
  defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
8729
8773
  checked: (_c = c.props.checked) != null ? _c : checked,
8730
8774
  onChange: (_d = c.props.onChange) != null ? _d : handleChange,
@@ -8734,9 +8778,9 @@ var SwitchGroup = (_a) => {
8734
8778
  })));
8735
8779
  };
8736
8780
  var SwitchGroupSkeleton = ({ options = 2 }) => {
8737
- return /* @__PURE__ */ React92.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React92.createElement("div", {
8781
+ return /* @__PURE__ */ React93.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React93.createElement("div", {
8738
8782
  className: tw("flex flex-wrap flex-col gap-2")
8739
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React92.createElement(Switch2.Skeleton, {
8783
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React93.createElement(Switch2.Skeleton, {
8740
8784
  key
8741
8785
  }))));
8742
8786
  };
@@ -8744,10 +8788,10 @@ SwitchGroup.Skeleton = SwitchGroupSkeleton;
8744
8788
  SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
8745
8789
 
8746
8790
  // src/molecules/TagLabel/TagLabel.tsx
8747
- import React93 from "react";
8791
+ import React94 from "react";
8748
8792
  var TagLabel = (_a) => {
8749
8793
  var _b = _a, { title, dense = false } = _b, rest = __objRest(_b, ["title", "dense"]);
8750
- return /* @__PURE__ */ React93.createElement("span", __spreadProps(__spreadValues({}, rest), {
8794
+ return /* @__PURE__ */ React94.createElement("span", __spreadProps(__spreadValues({}, rest), {
8751
8795
  className: tw("rounded-full text-white bg-primary-70", {
8752
8796
  "py-2 px-4 typography-caption": !dense,
8753
8797
  "py-2 px-3 typography-caption-small": dense
@@ -8756,14 +8800,14 @@ var TagLabel = (_a) => {
8756
8800
  };
8757
8801
 
8758
8802
  // src/molecules/Textarea/Textarea.tsx
8759
- import React94, { useRef as useRef13, useState as useState12 } from "react";
8803
+ import React95, { useRef as useRef13, useState as useState12 } from "react";
8760
8804
  import omit17 from "lodash/omit";
8761
8805
  import toString2 from "lodash/toString";
8762
8806
  import uniqueId10 from "lodash/uniqueId";
8763
- var TextareaBase = React94.forwardRef(
8807
+ var TextareaBase = React95.forwardRef(
8764
8808
  (_a, ref) => {
8765
8809
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
8766
- return /* @__PURE__ */ React94.createElement("textarea", __spreadProps(__spreadValues({
8810
+ return /* @__PURE__ */ React95.createElement("textarea", __spreadProps(__spreadValues({
8767
8811
  ref
8768
8812
  }, props), {
8769
8813
  readOnly,
@@ -8771,10 +8815,10 @@ var TextareaBase = React94.forwardRef(
8771
8815
  }));
8772
8816
  }
8773
8817
  );
8774
- TextareaBase.Skeleton = () => /* @__PURE__ */ React94.createElement(Skeleton, {
8818
+ TextareaBase.Skeleton = () => /* @__PURE__ */ React95.createElement(Skeleton, {
8775
8819
  height: 58
8776
8820
  });
8777
- var Textarea = React94.forwardRef((props, ref) => {
8821
+ var Textarea = React95.forwardRef((props, ref) => {
8778
8822
  var _a, _b, _c;
8779
8823
  const [value, setValue] = useState12((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
8780
8824
  const id = useRef13((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
@@ -8782,12 +8826,12 @@ var Textarea = React94.forwardRef((props, ref) => {
8782
8826
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8783
8827
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
8784
8828
  const baseProps = omit17(props, Object.keys(labelControlProps));
8785
- return /* @__PURE__ */ React94.createElement(LabelControl, __spreadValues({
8829
+ return /* @__PURE__ */ React95.createElement(LabelControl, __spreadValues({
8786
8830
  id: `${id.current}-label`,
8787
8831
  htmlFor: id.current,
8788
8832
  messageId: errorMessageId,
8789
8833
  length: value !== void 0 ? toString2(value).length : void 0
8790
- }, labelControlProps), /* @__PURE__ */ React94.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
8834
+ }, labelControlProps), /* @__PURE__ */ React95.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
8791
8835
  ref
8792
8836
  }, baseProps), errorProps), {
8793
8837
  id: id.current,
@@ -8804,48 +8848,48 @@ var Textarea = React94.forwardRef((props, ref) => {
8804
8848
  })));
8805
8849
  });
8806
8850
  Textarea.displayName = "Textarea";
8807
- var TextAreaSkeleton = () => /* @__PURE__ */ React94.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React94.createElement(TextareaBase.Skeleton, null));
8851
+ var TextAreaSkeleton = () => /* @__PURE__ */ React95.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React95.createElement(TextareaBase.Skeleton, null));
8808
8852
  Textarea.Skeleton = TextAreaSkeleton;
8809
8853
  Textarea.Skeleton.displayName = "Textarea.Skeleton";
8810
8854
 
8811
8855
  // src/molecules/Timeline/Timeline.tsx
8812
- import React96 from "react";
8856
+ import React97 from "react";
8813
8857
 
8814
8858
  // src/atoms/Timeline/Timeline.tsx
8815
- import React95 from "react";
8859
+ import React96 from "react";
8816
8860
  var Timeline = (_a) => {
8817
8861
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8818
- return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
8862
+ return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
8819
8863
  className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
8820
8864
  }));
8821
8865
  };
8822
8866
  var Content2 = (_a) => {
8823
8867
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8824
- return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
8868
+ return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
8825
8869
  className: classNames(tw("pb-6"), className)
8826
8870
  }));
8827
8871
  };
8828
8872
  var Separator2 = (_a) => {
8829
8873
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8830
- return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
8874
+ return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
8831
8875
  className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
8832
8876
  }));
8833
8877
  };
8834
8878
  var LineContainer = (_a) => {
8835
8879
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8836
- return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
8880
+ return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
8837
8881
  className: classNames(tw("flex justify-center py-1"), className)
8838
8882
  }));
8839
8883
  };
8840
8884
  var Line = (_a) => {
8841
8885
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8842
- return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
8886
+ return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
8843
8887
  className: classNames(tw("w-1 bg-grey-5 h-full justify-self-center"), className)
8844
8888
  }));
8845
8889
  };
8846
8890
  var Dot = (_a) => {
8847
8891
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8848
- return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
8892
+ return /* @__PURE__ */ React96.createElement("div", __spreadProps(__spreadValues({}, rest), {
8849
8893
  className: classNames(tw("bg-grey-30 h-[6px] w-[6px] rounded"), className)
8850
8894
  }));
8851
8895
  };
@@ -8860,52 +8904,52 @@ var import_error4 = __toESM(require_error());
8860
8904
  var import_time = __toESM(require_time());
8861
8905
  var import_warningSign4 = __toESM(require_warningSign());
8862
8906
  var TimelineItem = () => null;
8863
- var Timeline2 = ({ children }) => /* @__PURE__ */ React96.createElement("div", null, React96.Children.map(children, (item) => {
8907
+ var Timeline2 = ({ children }) => /* @__PURE__ */ React97.createElement("div", null, React97.Children.map(children, (item) => {
8864
8908
  if (!isComponentType(item, TimelineItem)) {
8865
8909
  throw new Error("<Timeline> can only have <Timeline.Item> components as children");
8866
8910
  } else {
8867
8911
  const { props, key } = item;
8868
- return /* @__PURE__ */ React96.createElement(Timeline, {
8912
+ return /* @__PURE__ */ React97.createElement(Timeline, {
8869
8913
  key: key != null ? key : props.title
8870
- }, /* @__PURE__ */ React96.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React96.createElement(Icon, {
8914
+ }, /* @__PURE__ */ React97.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React97.createElement(Icon, {
8871
8915
  icon: import_error4.default,
8872
8916
  color: "error-30"
8873
- }) : props.variant === "warning" ? /* @__PURE__ */ React96.createElement(Icon, {
8917
+ }) : props.variant === "warning" ? /* @__PURE__ */ React97.createElement(Icon, {
8874
8918
  icon: import_warningSign4.default,
8875
8919
  color: "warning-30"
8876
- }) : props.variant === "info" ? /* @__PURE__ */ React96.createElement(Icon, {
8920
+ }) : props.variant === "info" ? /* @__PURE__ */ React97.createElement(Icon, {
8877
8921
  icon: import_time.default,
8878
8922
  color: "info-30"
8879
- }) : /* @__PURE__ */ React96.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React96.createElement(Typography2.Caption, {
8923
+ }) : /* @__PURE__ */ React97.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React97.createElement(Typography2.Caption, {
8880
8924
  color: "grey-50"
8881
- }, props.title), /* @__PURE__ */ React96.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React96.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React96.createElement(Timeline.Content, null, /* @__PURE__ */ React96.createElement(Typography2.Small, null, props.children)));
8925
+ }, props.title), /* @__PURE__ */ React97.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React97.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React97.createElement(Timeline.Content, null, /* @__PURE__ */ React97.createElement(Typography2.Small, null, props.children)));
8882
8926
  }
8883
8927
  }));
8884
- var TimelineItemSkeleton = () => /* @__PURE__ */ React96.createElement(Timeline, null, /* @__PURE__ */ React96.createElement(Timeline.Separator, null, /* @__PURE__ */ React96.createElement(Skeleton, {
8928
+ var TimelineItemSkeleton = () => /* @__PURE__ */ React97.createElement(Timeline, null, /* @__PURE__ */ React97.createElement(Timeline.Separator, null, /* @__PURE__ */ React97.createElement(Skeleton, {
8885
8929
  width: 6,
8886
8930
  height: 6,
8887
8931
  rounded: true
8888
- })), /* @__PURE__ */ React96.createElement(Skeleton, {
8932
+ })), /* @__PURE__ */ React97.createElement(Skeleton, {
8889
8933
  height: 12,
8890
8934
  width: 120
8891
- }), /* @__PURE__ */ React96.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React96.createElement(Skeleton, {
8935
+ }), /* @__PURE__ */ React97.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React97.createElement(Skeleton, {
8892
8936
  width: 2,
8893
8937
  height: "100%"
8894
- })), /* @__PURE__ */ React96.createElement(Timeline.Content, null, /* @__PURE__ */ React96.createElement(Box, {
8938
+ })), /* @__PURE__ */ React97.createElement(Timeline.Content, null, /* @__PURE__ */ React97.createElement(Box, {
8895
8939
  display: "flex",
8896
8940
  flexDirection: "column",
8897
8941
  gap: "3"
8898
- }, /* @__PURE__ */ React96.createElement(Skeleton, {
8942
+ }, /* @__PURE__ */ React97.createElement(Skeleton, {
8899
8943
  height: 32,
8900
8944
  width: "100%"
8901
- }), /* @__PURE__ */ React96.createElement(Skeleton, {
8945
+ }), /* @__PURE__ */ React97.createElement(Skeleton, {
8902
8946
  height: 32,
8903
8947
  width: "73%"
8904
- }), /* @__PURE__ */ React96.createElement(Skeleton, {
8948
+ }), /* @__PURE__ */ React97.createElement(Skeleton, {
8905
8949
  height: 32,
8906
8950
  width: "80%"
8907
8951
  }))));
8908
- var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React96.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React96.createElement(TimelineItemSkeleton, {
8952
+ var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React97.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React97.createElement(TimelineItemSkeleton, {
8909
8953
  key
8910
8954
  })));
8911
8955
  Timeline2.Item = TimelineItem;
@@ -8913,9 +8957,9 @@ Timeline2.Skeleton = TimelineSkeleton;
8913
8957
  Timeline2.Skeleton.displayName = "Timeline.Skeleton";
8914
8958
 
8915
8959
  // src/utils/table/useTableSelect.ts
8916
- import React97 from "react";
8960
+ import React98 from "react";
8917
8961
  var useTableSelect = (data, { key }) => {
8918
- const [selected, setSelected] = React97.useState([]);
8962
+ const [selected, setSelected] = React98.useState([]);
8919
8963
  const allSelected = selected.length === data.length;
8920
8964
  const isSelected = (dot) => selected.includes(dot[key]);
8921
8965
  const selectAll = () => setSelected(data.map((dot) => dot[key]));
@@ -8940,7 +8984,7 @@ var useTableSelect = (data, { key }) => {
8940
8984
  };
8941
8985
 
8942
8986
  // src/molecules/Pagination/usePagination.tsx
8943
- import { useEffect as useEffect7, useState as useState13 } from "react";
8987
+ import { useEffect as useEffect9, useState as useState13 } from "react";
8944
8988
  import clamp3 from "lodash/clamp";
8945
8989
  var initialState = {
8946
8990
  currentPage: 1,
@@ -8959,7 +9003,7 @@ var usePagination = (items, options) => {
8959
9003
  setPageSize(pageSize2);
8960
9004
  setCurrentPage(clamp3((options == null ? void 0 : options.initialPage) || initialState.currentPage, 1, newTotalPages));
8961
9005
  };
8962
- useEffect7(() => {
9006
+ useEffect9(() => {
8963
9007
  setCurrentPage(clamp3((options == null ? void 0 : options.initialPage) || initialState.currentPage, 1, totalPages));
8964
9008
  }, [items.length]);
8965
9009
  return [
@@ -9195,6 +9239,7 @@ export {
9195
9239
  TagLabel,
9196
9240
  Tailwindify,
9197
9241
  Template,
9242
+ TextButton,
9198
9243
  Textarea,
9199
9244
  TextareaBase,
9200
9245
  Timeline2 as Timeline,