@aivenio/aquarium 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/_variables.scss +20 -2
  2. package/dist/_variables_timescale.scss +20 -2
  3. package/dist/atoms.cjs +4102 -76
  4. package/dist/atoms.mjs +4094 -74
  5. package/dist/src/common/Banner/Banner.js +7 -4
  6. package/dist/src/common/DataList/DataList.d.ts +24 -0
  7. package/dist/src/common/DataList/DataList.js +54 -0
  8. package/dist/src/common/DropdownMenu/DropdownMenu.d.ts +3 -1
  9. package/dist/src/common/DropdownMenu/DropdownMenu.js +5 -3
  10. package/dist/src/common/Table/Table.d.ts +8 -3
  11. package/dist/src/common/Table/Table.js +20 -10
  12. package/dist/src/components/Carousel/Carousel.d.ts +16 -0
  13. package/dist/src/components/Carousel/Carousel.js +89 -0
  14. package/dist/src/components/Chip/Chip.d.ts +1 -0
  15. package/dist/src/components/Chip/Chip.js +2 -2
  16. package/dist/src/components/DataList/DataList.d.ts +13 -0
  17. package/dist/src/components/DataList/DataList.js +24 -0
  18. package/dist/src/components/DataTable/DataTable.d.ts +5 -92
  19. package/dist/src/components/DataTable/DataTable.js +9 -28
  20. package/dist/src/components/Dropdown/Dropdown.js +1 -1
  21. package/dist/src/components/DropdownMenu/DropdownMenu.d.ts +8 -0
  22. package/dist/src/components/DropdownMenu/DropdownMenu.js +18 -15
  23. package/dist/src/components/Section/Section.js +2 -2
  24. package/dist/src/components/Table/Table.js +2 -2
  25. package/dist/src/components/Template/Template.d.ts +6 -1
  26. package/dist/src/components/Template/Template.js +7 -2
  27. package/dist/src/components/index.d.ts +6 -1
  28. package/dist/src/components/index.js +7 -2
  29. package/dist/src/utils/Blueprint.d.ts +6 -1
  30. package/dist/src/utils/Blueprint.js +4 -2
  31. package/dist/src/utils/table/types.d.ts +129 -0
  32. package/dist/src/utils/table/types.js +6 -0
  33. package/dist/src/utils/table/useScrollTarget.d.ts +2 -0
  34. package/dist/src/utils/table/useScrollTarget.js +16 -0
  35. package/dist/src/{common/Table/Table.utils.d.ts → utils/table/useTableSelect.d.ts} +0 -3
  36. package/dist/src/utils/table/useTableSelect.js +27 -0
  37. package/dist/src/utils/table/useTableSort.d.ts +2 -0
  38. package/dist/src/utils/table/useTableSort.js +19 -0
  39. package/dist/styles.css +63 -6
  40. package/dist/styles_timescaledb.css +63 -6
  41. package/dist/system.cjs +937 -675
  42. package/dist/system.mjs +931 -673
  43. package/dist/tsconfig.module.tsbuildinfo +1 -1
  44. package/dist/types/ActionType.d.ts +2 -0
  45. package/dist/types/tailwindGenerated.d.ts +1 -1
  46. package/dist/types/utils.d.ts +3 -0
  47. package/package.json +3 -3
  48. package/dist/src/common/Table/Table.utils.js +0 -41
package/dist/system.mjs CHANGED
@@ -1133,12 +1133,12 @@ var require_lock = __commonJS({
1133
1133
  }
1134
1134
  });
1135
1135
 
1136
- // src/icons/minus.js
1137
- var require_minus = __commonJS({
1138
- "src/icons/minus.js"(exports) {
1136
+ // src/icons/chevronLeft.js
1137
+ var require_chevronLeft = __commonJS({
1138
+ "src/icons/chevronLeft.js"(exports) {
1139
1139
  "use strict";
1140
1140
  var data = {
1141
- "body": '<path fill="currentColor" fill-rule="evenodd" d="M16 9H4c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1Z" clip-rule="evenodd"/>',
1141
+ "body": '<path fill="currentColor" fill-rule="evenodd" d="m8.41 10 5.29-5.29c.19-.18.3-.43.3-.71a1.003 1.003 0 00-1.71-.71l-6 6c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l6 6a1.003 1.003 0 001.42-1.42L8.41 10Z" clip-rule="evenodd"/>',
1142
1142
  "left": 0,
1143
1143
  "top": 0,
1144
1144
  "width": 20,
@@ -1149,28 +1149,28 @@ var require_minus = __commonJS({
1149
1149
  }
1150
1150
  });
1151
1151
 
1152
- // src/icons/questionMark.js
1153
- var require_questionMark = __commonJS({
1154
- "src/icons/questionMark.js"(exports) {
1152
+ // src/icons/chevronRight.js
1153
+ var require_chevronRight = __commonJS({
1154
+ "src/icons/chevronRight.js"(exports) {
1155
1155
  "use strict";
1156
1156
  var data = {
1157
- "body": '<path fill="currentColor" d="M7 0C3.136 0 0 3.136 0 7s3.136 7 7 7 7-3.136 7-7-3.136-7-7-7ZM5.187 3.234c.455-.378 1.057-.574 1.792-.574a2.9 2.9 0 011.036.175c.308.119.581.273.798.476.224.203.392.441.518.714.119.273.182.574.182.889 0 .315-.056.609-.168.861-.112.259-.28.511-.497.777l-.847 1.106c-.098.119-.196.231-.224.336a1.285 1.285 0 00-.077.42v.679H6.3v-1.4s.042-.406.168-.567l.847-1.148c.175-.21.287-.392.357-.539.07-.147.098-.308.098-.469a.825.825 0 00-.224-.595c-.147-.154-.35-.231-.616-.231-.259 0-.469.077-.623.231-.154.161-.259.378-.322.658-.021.084-.077.119-.161.112l-1.365-.203c-.084-.007-.112-.056-.098-.154.091-.651.364-1.169.826-1.554ZM6.3 9.8h1.414L7.7 11.2H6.3V9.8Z"/>',
1157
+ "body": '<path fill="currentColor" fill-rule="evenodd" d="m13.71 9.29-6-6a1.003 1.003 0 00-1.42 1.42l5.3 5.29-5.29 5.29c-.19.18-.3.43-.3.71a1.003 1.003 0 001.71.71l6-6c.18-.18.29-.43.29-.71 0-.28-.11-.53-.29-.71Z" clip-rule="evenodd"/>',
1158
1158
  "left": 0,
1159
1159
  "top": 0,
1160
- "width": 14,
1161
- "height": 14
1160
+ "width": 20,
1161
+ "height": 20
1162
1162
  };
1163
1163
  exports.__esModule = true;
1164
1164
  exports.default = data;
1165
1165
  }
1166
1166
  });
1167
1167
 
1168
- // src/icons/chevronLeft.js
1169
- var require_chevronLeft = __commonJS({
1170
- "src/icons/chevronLeft.js"(exports) {
1168
+ // src/icons/minus.js
1169
+ var require_minus = __commonJS({
1170
+ "src/icons/minus.js"(exports) {
1171
1171
  "use strict";
1172
1172
  var data = {
1173
- "body": '<path fill="currentColor" fill-rule="evenodd" d="m8.41 10 5.29-5.29c.19-.18.3-.43.3-.71a1.003 1.003 0 00-1.71-.71l-6 6c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l6 6a1.003 1.003 0 001.42-1.42L8.41 10Z" clip-rule="evenodd"/>',
1173
+ "body": '<path fill="currentColor" fill-rule="evenodd" d="M16 9H4c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1Z" clip-rule="evenodd"/>',
1174
1174
  "left": 0,
1175
1175
  "top": 0,
1176
1176
  "width": 20,
@@ -1181,16 +1181,16 @@ var require_chevronLeft = __commonJS({
1181
1181
  }
1182
1182
  });
1183
1183
 
1184
- // src/icons/chevronRight.js
1185
- var require_chevronRight = __commonJS({
1186
- "src/icons/chevronRight.js"(exports) {
1184
+ // src/icons/questionMark.js
1185
+ var require_questionMark = __commonJS({
1186
+ "src/icons/questionMark.js"(exports) {
1187
1187
  "use strict";
1188
1188
  var data = {
1189
- "body": '<path fill="currentColor" fill-rule="evenodd" d="m13.71 9.29-6-6a1.003 1.003 0 00-1.42 1.42l5.3 5.29-5.29 5.29c-.19.18-.3.43-.3.71a1.003 1.003 0 001.71.71l6-6c.18-.18.29-.43.29-.71 0-.28-.11-.53-.29-.71Z" clip-rule="evenodd"/>',
1189
+ "body": '<path fill="currentColor" d="M7 0C3.136 0 0 3.136 0 7s3.136 7 7 7 7-3.136 7-7-3.136-7-7-7ZM5.187 3.234c.455-.378 1.057-.574 1.792-.574a2.9 2.9 0 011.036.175c.308.119.581.273.798.476.224.203.392.441.518.714.119.273.182.574.182.889 0 .315-.056.609-.168.861-.112.259-.28.511-.497.777l-.847 1.106c-.098.119-.196.231-.224.336a1.285 1.285 0 00-.077.42v.679H6.3v-1.4s.042-.406.168-.567l.847-1.148c.175-.21.287-.392.357-.539.07-.147.098-.308.098-.469a.825.825 0 00-.224-.595c-.147-.154-.35-.231-.616-.231-.259 0-.469.077-.623.231-.154.161-.259.378-.322.658-.021.084-.077.119-.161.112l-1.365-.203c-.084-.007-.112-.056-.098-.154.091-.651.364-1.169.826-1.554ZM6.3 9.8h1.414L7.7 11.2H6.3V9.8Z"/>',
1190
1190
  "left": 0,
1191
1191
  "top": 0,
1192
- "width": 20,
1193
- "height": 20
1192
+ "width": 14,
1193
+ "height": 14
1194
1194
  };
1195
1195
  exports.__esModule = true;
1196
1196
  exports.default = data;
@@ -1293,6 +1293,7 @@ __export(components_exports, {
1293
1293
  Breadcrumbs: () => Breadcrumbs,
1294
1294
  Button: () => Button,
1295
1295
  Card: () => Card,
1296
+ Carousel: () => Carousel,
1296
1297
  Checkbox: () => Checkbox2,
1297
1298
  CheckboxGroup: () => CheckboxGroup,
1298
1299
  Chip: () => Chip2,
@@ -1302,6 +1303,7 @@ __export(components_exports, {
1302
1303
  ComboboxBase: () => ComboboxBase,
1303
1304
  Context: () => Context,
1304
1305
  ControlLabel: () => ControlLabel,
1306
+ DataList: () => DataList2,
1305
1307
  DataTable: () => DataTable,
1306
1308
  DesignSystemContext: () => DesignSystemContext,
1307
1309
  Dialog: () => Dialog,
@@ -1378,7 +1380,9 @@ __export(components_exports, {
1378
1380
  asCrumb: () => asCrumb,
1379
1381
  asPopoverButton: () => asPopoverButton,
1380
1382
  asTabItem: () => asTabItem,
1383
+ cellProps: () => cellProps,
1381
1384
  createTabsComponent: () => createTabsComponent,
1385
+ toSortDirection: () => toSortDirection,
1382
1386
  usePagination: () => usePagination,
1383
1387
  usePopoverContext: () => usePopoverContext,
1384
1388
  useScrollTarget: () => useScrollTarget,
@@ -3289,7 +3293,10 @@ import React18 from "react";
3289
3293
 
3290
3294
  // src/common/Banner/Banner.tsx
3291
3295
  import React17 from "react";
3292
- var spacingAroundBanner = "6";
3296
+ var spacing = {
3297
+ spacingAroundBanner: "p-6",
3298
+ omitSpacingAroundBanner: "-6"
3299
+ };
3293
3300
  var Banner = (_a) => {
3294
3301
  var _b = _a, {
3295
3302
  children,
@@ -3305,7 +3312,7 @@ var Banner = (_a) => {
3305
3312
  return /* @__PURE__ */ React17.createElement("div", __spreadProps(__spreadValues({}, rest), {
3306
3313
  className: classNames(
3307
3314
  className,
3308
- tw(`rounded flex justify-between gap-7 flex-nowrap p-${spacingAroundBanner}`, {
3315
+ tw(`rounded flex justify-between gap-7 flex-nowrap ${spacing.spacingAroundBanner}`, {
3309
3316
  "items-center": layout === "horizontal",
3310
3317
  "bg-grey-0": variant === "default",
3311
3318
  "bg-white border border-grey-5": variant === "outlined"
@@ -3352,7 +3359,7 @@ Banner.ImageContainer = (_a) => {
3352
3359
  return /* @__PURE__ */ React17.createElement(Box, __spreadProps(__spreadValues({}, rest), {
3353
3360
  display: "inline-flex",
3354
3361
  alignItems: "center",
3355
- margin: `-${spacingAroundBanner}`,
3362
+ margin: spacing.omitSpacingAroundBanner,
3356
3363
  marginLeft: "0"
3357
3364
  }), children);
3358
3365
  };
@@ -3566,8 +3573,8 @@ var Chip2 = (_a) => {
3566
3573
  icon: import_lock.default
3567
3574
  }));
3568
3575
  };
3569
- var ChipSkeleton = ({ dense = false }) => /* @__PURE__ */ React21.createElement(Skeleton, {
3570
- width: dense ? 34 : 46,
3576
+ var ChipSkeleton = ({ dense = false, width = dense ? 34 : 56 }) => /* @__PURE__ */ React21.createElement(Skeleton, {
3577
+ width,
3571
3578
  height: dense ? 20 : 28
3572
3579
  });
3573
3580
  Chip2.Skeleton = ChipSkeleton;
@@ -3778,11 +3785,111 @@ var CardActions = ({ children }) => /* @__PURE__ */ React23.createElement(Box, {
3778
3785
  alignItems: "center"
3779
3786
  }, children);
3780
3787
 
3788
+ // src/components/Carousel/Carousel.tsx
3789
+ import React24, { useRef as useRef2, useLayoutEffect, useState as useState2, useEffect as useEffect3 } from "react";
3790
+ var import_chevronLeft = __toESM(require_chevronLeft());
3791
+ var import_chevronRight = __toESM(require_chevronRight());
3792
+ var Carousel = ({
3793
+ defaultPage = 1,
3794
+ currentPage: currentPageProp,
3795
+ onPageChange,
3796
+ children
3797
+ }) => {
3798
+ const containerRef = useRef2(null);
3799
+ const scrollbarContainerRef = useRef2(null);
3800
+ const items = React24.Children.toArray(children);
3801
+ const [width, setWidth] = useState2(0);
3802
+ const [isUpdating, setIsUpdating] = useState2(false);
3803
+ const [currentPage, setCurrentPage] = useState2(currentPageProp != null ? currentPageProp : defaultPage);
3804
+ useLayoutEffect(() => {
3805
+ const updateContainerWidth = () => {
3806
+ var _a;
3807
+ const containerWidth = (_a = containerRef.current) == null ? void 0 : _a.getBoundingClientRect().width;
3808
+ if (containerWidth !== void 0 && width !== containerWidth) {
3809
+ setWidth(containerWidth);
3810
+ }
3811
+ };
3812
+ updateContainerWidth();
3813
+ window.addEventListener("resize", updateContainerWidth);
3814
+ return () => {
3815
+ window.removeEventListener("resize", updateContainerWidth);
3816
+ };
3817
+ }, [containerRef.current]);
3818
+ if (typeof currentPageProp === "number" && currentPageProp !== currentPage && onPageChange && width !== 0) {
3819
+ setCurrentPage(currentPageProp);
3820
+ }
3821
+ useEffect3(() => {
3822
+ var _a, _b;
3823
+ if (width === 0) {
3824
+ return;
3825
+ }
3826
+ const currentPageX = (currentPage - 1) * width;
3827
+ if (((_a = scrollbarContainerRef.current) == null ? void 0 : _a.scrollLeft) !== currentPageX) {
3828
+ setIsUpdating(true);
3829
+ (_b = scrollbarContainerRef.current) == null ? void 0 : _b.scrollTo({ left: currentPageX, behavior: "smooth" });
3830
+ }
3831
+ }, [currentPage, scrollbarContainerRef.current]);
3832
+ const handleNavigationClick = (direction) => {
3833
+ const nextItem = currentPage + (direction === "left" ? -1 : 1);
3834
+ !onPageChange && setCurrentPage(nextItem);
3835
+ onPageChange && onPageChange(nextItem);
3836
+ };
3837
+ const handleScroll = () => {
3838
+ var _a, _b;
3839
+ const currentPageX = (currentPage - 1) * width;
3840
+ if (isUpdating && ((_a = scrollbarContainerRef.current) == null ? void 0 : _a.scrollLeft) === currentPageX) {
3841
+ setIsUpdating(false);
3842
+ }
3843
+ const scrollBarX = (_b = scrollbarContainerRef.current) == null ? void 0 : _b.scrollLeft;
3844
+ if (typeof scrollBarX === "number" && scrollBarX % width === 0 && currentPageX !== scrollBarX && !isUpdating) {
3845
+ const newPage = scrollBarX / width + 1;
3846
+ !onPageChange && setCurrentPage(newPage);
3847
+ onPageChange && onPageChange(newPage);
3848
+ }
3849
+ };
3850
+ return items.length > 0 ? /* @__PURE__ */ React24.createElement("div", {
3851
+ className: tw("w-full flex flex-col"),
3852
+ ref: containerRef
3853
+ }, containerRef !== null && /* @__PURE__ */ React24.createElement("ul", {
3854
+ ref: scrollbarContainerRef,
3855
+ tabIndex: 0,
3856
+ onScroll: handleScroll,
3857
+ className: tw(
3858
+ "grid items-stretch grid-flow-col overflow-x-scroll scroll-smooth snap-x snap-mandatory scrollbar-hide focus-visible:outline-0 focus-visible:ring-1 focus-visible:ring-info-70"
3859
+ )
3860
+ }, width !== 0 && React24.Children.map(children, (child, index) => /* @__PURE__ */ React24.createElement(CarouselItem, {
3861
+ key: index,
3862
+ width,
3863
+ ariaHidden: index + 1 === currentPage ? void 0 : true
3864
+ }, child))), /* @__PURE__ */ React24.createElement(Flexbox, {
3865
+ direction: "row",
3866
+ justifyContent: "flex-end",
3867
+ alignItems: "center"
3868
+ }, /* @__PURE__ */ React24.createElement(IconButton, {
3869
+ "aria-label": "Previous",
3870
+ onClick: () => handleNavigationClick("left"),
3871
+ icon: import_chevronLeft.default,
3872
+ disabled: currentPage === 1
3873
+ }), /* @__PURE__ */ React24.createElement(Typography2.Caption, null, `${currentPage}/${React24.Children.count(children)}`), /* @__PURE__ */ React24.createElement(IconButton, {
3874
+ "aria-label": "Next",
3875
+ onClick: () => handleNavigationClick("right"),
3876
+ icon: import_chevronRight.default,
3877
+ disabled: currentPage === items.length
3878
+ }))) : null;
3879
+ };
3880
+ var CarouselItem = ({ width, children, ariaHidden }) => {
3881
+ return /* @__PURE__ */ React24.createElement("li", {
3882
+ style: { width },
3883
+ "aria-hidden": ariaHidden,
3884
+ className: tw("flex justify-center snap-start")
3885
+ }, children);
3886
+ };
3887
+
3781
3888
  // src/components/Checkbox/Checkbox.tsx
3782
- import React26 from "react";
3889
+ import React27 from "react";
3783
3890
 
3784
3891
  // src/components/ControlLabel/ControlLabel.tsx
3785
- import React24 from "react";
3892
+ import React25 from "react";
3786
3893
  var ControlLabel = (_a) => {
3787
3894
  var _b = _a, {
3788
3895
  label,
@@ -3800,7 +3907,7 @@ var ControlLabel = (_a) => {
3800
3907
  "style"
3801
3908
  ]);
3802
3909
  const textClass = disabled ? "text-grey-40" : "text-grey-100";
3803
- return /* @__PURE__ */ React24.createElement("label", __spreadValues({
3910
+ return /* @__PURE__ */ React25.createElement("label", __spreadValues({
3804
3911
  className: tw(
3805
3912
  "inline-grid grid-cols-[auto_1fr]",
3806
3913
  {
@@ -3810,9 +3917,9 @@ var ControlLabel = (_a) => {
3810
3917
  textClass
3811
3918
  ),
3812
3919
  style: __spreadValues({}, style)
3813
- }, rest), children, label && /* @__PURE__ */ React24.createElement("span", {
3920
+ }, rest), children, label && /* @__PURE__ */ React25.createElement("span", {
3814
3921
  className: tw("typography-body-small self-center")
3815
- }, label), caption && /* @__PURE__ */ React24.createElement(Typography2, {
3922
+ }, label), caption && /* @__PURE__ */ React25.createElement(Typography2, {
3816
3923
  className: tw("col-start-2"),
3817
3924
  variant: "caption-default",
3818
3925
  color: disabled ? "grey-40" : "grey-50"
@@ -3820,20 +3927,20 @@ var ControlLabel = (_a) => {
3820
3927
  };
3821
3928
 
3822
3929
  // src/common/Checkbox/Checkbox.tsx
3823
- import React25 from "react";
3930
+ import React26 from "react";
3824
3931
  var import_tick2 = __toESM(require_tick());
3825
3932
  var import_minus = __toESM(require_minus());
3826
- var Checkbox = React25.forwardRef(
3933
+ var Checkbox = React26.forwardRef(
3827
3934
  (_a, ref) => {
3828
3935
  var _b = _a, { id, children, name, checked, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "checked", "disabled", "readOnly", "indeterminate"]);
3829
- return /* @__PURE__ */ React25.createElement("span", {
3936
+ return /* @__PURE__ */ React26.createElement("span", {
3830
3937
  className: classNames(
3831
3938
  tw("inline-flex justify-center items-center relative self-center", {
3832
3939
  "text-grey-30": disabled,
3833
3940
  "text-grey-100 cursor-pointer": !disabled
3834
3941
  })
3835
3942
  )
3836
- }, /* @__PURE__ */ React25.createElement("input", __spreadProps(__spreadValues({
3943
+ }, /* @__PURE__ */ React26.createElement("input", __spreadProps(__spreadValues({
3837
3944
  id,
3838
3945
  ref,
3839
3946
  type: "checkbox",
@@ -3854,7 +3961,7 @@ var Checkbox = React25.forwardRef(
3854
3961
  style: __spreadValues({ width: 16, height: 16 }, props.style),
3855
3962
  readOnly,
3856
3963
  disabled
3857
- })), (checked || indeterminate) && /* @__PURE__ */ React25.createElement(Icon, {
3964
+ })), (checked || indeterminate) && /* @__PURE__ */ React26.createElement(Icon, {
3858
3965
  className: tw("absolute top-2 left-2 w-3 h-3 pointer-events-none [&>path]:stroke-2", {
3859
3966
  "text-white [&>path]:stroke-white": !disabled,
3860
3967
  "text-grey-30 [&>path]:stroke-grey-30": disabled
@@ -3865,7 +3972,7 @@ var Checkbox = React25.forwardRef(
3865
3972
  );
3866
3973
 
3867
3974
  // src/components/Checkbox/Checkbox.tsx
3868
- var Checkbox2 = React26.forwardRef(
3975
+ var Checkbox2 = React27.forwardRef(
3869
3976
  (_a, ref) => {
3870
3977
  var _b = _a, {
3871
3978
  id,
@@ -3891,11 +3998,11 @@ var Checkbox2 = React26.forwardRef(
3891
3998
  "aria-label"
3892
3999
  ]);
3893
4000
  var _a2;
3894
- const [checked, setChecked] = React26.useState((_a2 = _checked != null ? _checked : defaultChecked) != null ? _a2 : false);
4001
+ const [checked, setChecked] = React27.useState((_a2 = _checked != null ? _checked : defaultChecked) != null ? _a2 : false);
3895
4002
  if (_checked !== void 0 && checked !== _checked) {
3896
4003
  setChecked(_checked);
3897
4004
  }
3898
- return !readOnly || checked ? /* @__PURE__ */ React26.createElement(ControlLabel, {
4005
+ return !readOnly || checked ? /* @__PURE__ */ React27.createElement(ControlLabel, {
3899
4006
  htmlFor: id,
3900
4007
  label: children,
3901
4008
  "aria-label": ariaLabel,
@@ -3903,7 +4010,7 @@ var Checkbox2 = React26.forwardRef(
3903
4010
  readOnly,
3904
4011
  disabled,
3905
4012
  style: { gap: "0 8px" }
3906
- }, !readOnly && /* @__PURE__ */ React26.createElement(Checkbox, __spreadProps(__spreadValues({
4013
+ }, !readOnly && /* @__PURE__ */ React27.createElement(Checkbox, __spreadProps(__spreadValues({
3907
4014
  id,
3908
4015
  ref,
3909
4016
  name
@@ -3918,29 +4025,29 @@ var Checkbox2 = React26.forwardRef(
3918
4025
  }))) : null;
3919
4026
  }
3920
4027
  );
3921
- var CheckboxSkeleton = () => /* @__PURE__ */ React26.createElement("div", {
4028
+ var CheckboxSkeleton = () => /* @__PURE__ */ React27.createElement("div", {
3922
4029
  className: tw("flex gap-3")
3923
- }, /* @__PURE__ */ React26.createElement(Skeleton, {
4030
+ }, /* @__PURE__ */ React27.createElement(Skeleton, {
3924
4031
  height: 20,
3925
4032
  width: 20
3926
- }), /* @__PURE__ */ React26.createElement(Skeleton, {
4033
+ }), /* @__PURE__ */ React27.createElement(Skeleton, {
3927
4034
  height: 20,
3928
4035
  width: 150
3929
4036
  }));
3930
4037
  Checkbox2.Skeleton = CheckboxSkeleton;
3931
4038
 
3932
4039
  // src/components/CheckboxGroup/CheckboxGroup.tsx
3933
- import React33, { useState as useState2 } from "react";
4040
+ import React34, { useState as useState3 } from "react";
3934
4041
  import uniqueId from "lodash/uniqueId";
3935
4042
 
3936
4043
  // src/utils/form/Label/Label.tsx
3937
- import React30 from "react";
4044
+ import React31 from "react";
3938
4045
  var import_questionMark = __toESM(require_questionMark());
3939
4046
 
3940
4047
  // src/utils/form/FormControl/FormControl.tsx
3941
- import React27 from "react";
4048
+ import React28 from "react";
3942
4049
  var FormControl = ({ className, inline, children }) => {
3943
- return /* @__PURE__ */ React27.createElement(Flexbox, {
4050
+ return /* @__PURE__ */ React28.createElement(Flexbox, {
3944
4051
  direction: "column",
3945
4052
  display: inline ? "inline-flex" : "flex",
3946
4053
  className
@@ -3948,13 +4055,13 @@ var FormControl = ({ className, inline, children }) => {
3948
4055
  };
3949
4056
 
3950
4057
  // src/utils/form/HelperText/HelperText.tsx
3951
- import React29 from "react";
4058
+ import React30 from "react";
3952
4059
  import isNumber3 from "lodash/isNumber";
3953
4060
 
3954
4061
  // src/utils/form/CharCounter/CharCounter.tsx
3955
- import React28 from "react";
4062
+ import React29 from "react";
3956
4063
  var CharCounter = ({ dense = true, length, maxLength, valid = true }) => {
3957
- return /* @__PURE__ */ React28.createElement("span", {
4064
+ return /* @__PURE__ */ React29.createElement("span", {
3958
4065
  className: tw(
3959
4066
  `whitespace-nowrap`,
3960
4067
  valid ? "text-grey-50" : "text-error-70",
@@ -3977,34 +4084,34 @@ var HelperText = ({
3977
4084
  const hasMaxLength = isNumber3(maxLength) && maxLength > 0;
3978
4085
  const showMessage = hasError || hasMaxLength;
3979
4086
  if (!showMessage) {
3980
- return reserveSpaceForError ? /* @__PURE__ */ React29.createElement("p", {
4087
+ return reserveSpaceForError ? /* @__PURE__ */ React30.createElement("p", {
3981
4088
  className: tw("block mt-1 mb-3 typography-caption-default")
3982
4089
  }, "\xA0") : null;
3983
4090
  }
3984
- return /* @__PURE__ */ React29.createElement(Grid, {
4091
+ return /* @__PURE__ */ React30.createElement(Grid, {
3985
4092
  cols: "1",
3986
4093
  rows: "1",
3987
4094
  colGap: "3",
3988
4095
  alignItems: "start",
3989
4096
  autoCols: "min",
3990
4097
  className: tw("mt-1 mb-3")
3991
- }, /* @__PURE__ */ React29.createElement(GridItem, {
4098
+ }, /* @__PURE__ */ React30.createElement(GridItem, {
3992
4099
  colStart: "1",
3993
4100
  colEnd: "2"
3994
- }, hasError && /* @__PURE__ */ React29.createElement("p", {
4101
+ }, hasError && /* @__PURE__ */ React30.createElement("p", {
3995
4102
  id: messageId,
3996
4103
  className: tw("text-error-50 block typography-caption-default")
3997
- }, helperText)), /* @__PURE__ */ React29.createElement(GridItem, {
4104
+ }, helperText)), /* @__PURE__ */ React30.createElement(GridItem, {
3998
4105
  colStart: "2",
3999
4106
  colEnd: "3",
4000
4107
  display: "flex"
4001
- }, isNumber3(length) && hasMaxLength && /* @__PURE__ */ React29.createElement(CharCounter, {
4108
+ }, isNumber3(length) && hasMaxLength && /* @__PURE__ */ React30.createElement(CharCounter, {
4002
4109
  length,
4003
4110
  maxLength,
4004
4111
  valid: !error2
4005
4112
  })));
4006
4113
  };
4007
- var Skeleton2 = ({ className, children }) => /* @__PURE__ */ React29.createElement("div", {
4114
+ var Skeleton2 = ({ className, children }) => /* @__PURE__ */ React30.createElement("div", {
4008
4115
  className: classNames3(className, "h-[25px]")
4009
4116
  }, children);
4010
4117
  HelperText.Skeleton = Skeleton2;
@@ -4017,35 +4124,35 @@ var LabelText = ({
4017
4124
  helpTooltip,
4018
4125
  helpTooltipPlacement
4019
4126
  }) => {
4020
- return /* @__PURE__ */ React30.createElement("span", {
4127
+ return /* @__PURE__ */ React31.createElement("span", {
4021
4128
  className: tw("inline-block mb-2 font-medium typography-body-small", {
4022
4129
  "text-grey-60": variant === "default",
4023
4130
  "text-error-50": variant === "error",
4024
4131
  "text-grey-40": variant === "disabled"
4025
4132
  })
4026
- }, labelText, required && /* @__PURE__ */ React30.createElement("span", {
4133
+ }, labelText, required && /* @__PURE__ */ React31.createElement("span", {
4027
4134
  className: tw("text-error-50")
4028
- }, "*"), helpTooltip && /* @__PURE__ */ React30.createElement(Tooltip, {
4135
+ }, "*"), helpTooltip && /* @__PURE__ */ React31.createElement(Tooltip, {
4029
4136
  content: helpTooltip,
4030
4137
  placement: helpTooltipPlacement
4031
- }, /* @__PURE__ */ React30.createElement("span", {
4138
+ }, /* @__PURE__ */ React31.createElement("span", {
4032
4139
  className: tw("text-grey-30 flex items-center cursor-pointer ml-2")
4033
- }, /* @__PURE__ */ React30.createElement(InlineIcon, {
4140
+ }, /* @__PURE__ */ React31.createElement(InlineIcon, {
4034
4141
  icon: import_questionMark.default,
4035
4142
  "data-testid": "icon-info"
4036
4143
  }))));
4037
4144
  };
4038
4145
  var Label = (props) => {
4039
4146
  const _a = props, { id, htmlFor, labelText, labelProps: _b = {} } = _a, labelProps = __objRest(_b, []), { "data-testid": dataTestid, children } = _a;
4040
- return /* @__PURE__ */ React30.createElement("label", __spreadValues({
4147
+ return /* @__PURE__ */ React31.createElement("label", __spreadValues({
4041
4148
  id,
4042
4149
  className: tw("w-full"),
4043
4150
  "data-testid": dataTestid,
4044
4151
  htmlFor
4045
- }, labelProps), labelText && /* @__PURE__ */ React30.createElement(LabelText, __spreadValues({}, props)), children);
4152
+ }, labelProps), labelText && /* @__PURE__ */ React31.createElement(LabelText, __spreadValues({}, props)), children);
4046
4153
  };
4047
4154
  var LabelSkeleton = () => {
4048
- return /* @__PURE__ */ React30.createElement(Skeleton, {
4155
+ return /* @__PURE__ */ React31.createElement(Skeleton, {
4049
4156
  height: 20,
4050
4157
  width: 100,
4051
4158
  className: tw("mb-[7px]")
@@ -4078,15 +4185,15 @@ var LabelControl = (_a) => {
4078
4185
  ]);
4079
4186
  const legacyError = error2 !== void 0 && valid === false;
4080
4187
  const variant = !valid || legacyError ? "error" : disabled ? "disabled" : "default";
4081
- return /* @__PURE__ */ React30.createElement(FormControl, null, !fieldset && /* @__PURE__ */ React30.createElement(Label, __spreadProps(__spreadValues({}, rest), {
4188
+ return /* @__PURE__ */ React31.createElement(FormControl, null, !fieldset && /* @__PURE__ */ React31.createElement(Label, __spreadProps(__spreadValues({}, rest), {
4082
4189
  variant
4083
- }), children), fieldset && /* @__PURE__ */ React30.createElement("fieldset", {
4190
+ }), children), fieldset && /* @__PURE__ */ React31.createElement("fieldset", {
4084
4191
  id: rest.id
4085
- }, /* @__PURE__ */ React30.createElement("legend", {
4192
+ }, /* @__PURE__ */ React31.createElement("legend", {
4086
4193
  className: tw("w-full mb-2")
4087
- }, /* @__PURE__ */ React30.createElement(LabelText, __spreadProps(__spreadValues({}, rest), {
4194
+ }, /* @__PURE__ */ React31.createElement(LabelText, __spreadProps(__spreadValues({}, rest), {
4088
4195
  variant
4089
- }))), children), /* @__PURE__ */ React30.createElement(HelperText, {
4196
+ }))), children), /* @__PURE__ */ React31.createElement(HelperText, {
4090
4197
  messageId,
4091
4198
  error: !valid,
4092
4199
  helperText,
@@ -4095,7 +4202,7 @@ var LabelControl = (_a) => {
4095
4202
  reserveSpaceForError
4096
4203
  }));
4097
4204
  };
4098
- var LabelControlSkeleton = ({ children }) => /* @__PURE__ */ React30.createElement("div", null, /* @__PURE__ */ React30.createElement(Label.Skeleton, null), children, /* @__PURE__ */ React30.createElement(HelperText.Skeleton, null));
4205
+ var LabelControlSkeleton = ({ children }) => /* @__PURE__ */ React31.createElement("div", null, /* @__PURE__ */ React31.createElement(Label.Skeleton, null), children, /* @__PURE__ */ React31.createElement(HelperText.Skeleton, null));
4099
4206
  LabelControl.Skeleton = LabelControlSkeleton;
4100
4207
  var getLabelControlProps = (_a) => {
4101
4208
  var _b = _a, {
@@ -4130,10 +4237,10 @@ var getLabelControlProps = (_a) => {
4130
4237
  };
4131
4238
 
4132
4239
  // src/common/InputGroup/InputGroup.tsx
4133
- import React32 from "react";
4240
+ import React33 from "react";
4134
4241
 
4135
4242
  // src/components/Grid/Grid.tsx
4136
- import React31 from "react";
4243
+ import React32 from "react";
4137
4244
  var Grid = Tailwindify(
4138
4245
  ({
4139
4246
  htmlTag = "div",
@@ -4186,7 +4293,7 @@ var Grid = Tailwindify(
4186
4293
  gridRowEnd: rowEnd
4187
4294
  });
4188
4295
  const HtmlElement = htmlTag;
4189
- return /* @__PURE__ */ React31.createElement(HtmlElement, {
4296
+ return /* @__PURE__ */ React32.createElement(HtmlElement, {
4190
4297
  style: __spreadValues(__spreadValues({}, hookStyle), style),
4191
4298
  className
4192
4299
  }, children);
@@ -4202,7 +4309,7 @@ var gridColumnStyles = {
4202
4309
  };
4203
4310
  var InputGroup = (_a) => {
4204
4311
  var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
4205
- return /* @__PURE__ */ React32.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
4312
+ return /* @__PURE__ */ React33.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
4206
4313
  display: "inline-grid",
4207
4314
  colGap: "l4",
4208
4315
  rowGap: "3",
@@ -4213,7 +4320,7 @@ var InputGroup = (_a) => {
4213
4320
 
4214
4321
  // src/components/CheckboxGroup/CheckboxGroup.tsx
4215
4322
  var isCheckbox = (c) => {
4216
- return React33.isValidElement(c) && c.type === Checkbox2;
4323
+ return React34.isValidElement(c) && c.type === Checkbox2;
4217
4324
  };
4218
4325
  var CheckboxGroup = (_a) => {
4219
4326
  var _b = _a, {
@@ -4232,7 +4339,7 @@ var CheckboxGroup = (_a) => {
4232
4339
  "children"
4233
4340
  ]);
4234
4341
  var _a2;
4235
- const [selectedItems, setSelectedItems] = useState2((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
4342
+ const [selectedItems, setSelectedItems] = useState3((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
4236
4343
  if (value !== void 0 && value !== selectedItems) {
4237
4344
  setSelectedItems(value);
4238
4345
  }
@@ -4245,11 +4352,11 @@ var CheckboxGroup = (_a) => {
4245
4352
  setSelectedItems(updated);
4246
4353
  onChange == null ? void 0 : onChange(updated);
4247
4354
  };
4248
- return /* @__PURE__ */ React33.createElement(LabelControl, __spreadValues(__spreadValues({
4355
+ return /* @__PURE__ */ React34.createElement(LabelControl, __spreadValues(__spreadValues({
4249
4356
  fieldset: true
4250
- }, labelControlProps), errorProps), /* @__PURE__ */ React33.createElement(InputGroup, {
4357
+ }, labelControlProps), errorProps), /* @__PURE__ */ React34.createElement(InputGroup, {
4251
4358
  cols
4252
- }, React33.Children.map(children, (c) => {
4359
+ }, React34.Children.map(children, (c) => {
4253
4360
  var _a3, _b2;
4254
4361
  if (!isCheckbox(c)) {
4255
4362
  return null;
@@ -4257,7 +4364,7 @@ var CheckboxGroup = (_a) => {
4257
4364
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
4258
4365
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
4259
4366
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
4260
- return React33.cloneElement(c, {
4367
+ return React34.cloneElement(c, {
4261
4368
  defaultChecked,
4262
4369
  checked,
4263
4370
  onChange: (_b2 = c.props.onChange) != null ? _b2 : handleChange,
@@ -4267,21 +4374,21 @@ var CheckboxGroup = (_a) => {
4267
4374
  })));
4268
4375
  };
4269
4376
  var CheckboxGroupSkeleton = ({ options = 2 }) => {
4270
- return /* @__PURE__ */ React33.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React33.createElement("div", {
4377
+ return /* @__PURE__ */ React34.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React34.createElement("div", {
4271
4378
  className: tw("flex flex-wrap flex-col gap-2")
4272
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React33.createElement(Checkbox2.Skeleton, {
4379
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React34.createElement(Checkbox2.Skeleton, {
4273
4380
  key
4274
4381
  }))));
4275
4382
  };
4276
4383
  CheckboxGroup.Skeleton = CheckboxGroupSkeleton;
4277
4384
 
4278
4385
  // src/components/ChoiceChip/ChoiceChip.tsx
4279
- import React34, { useState as useState3 } from "react";
4386
+ import React35, { useState as useState4 } from "react";
4280
4387
  var ChoiceChip = (_a) => {
4281
4388
  var _b = _a, { text, dense, defaultValue, value, onChange } = _b, rest = __objRest(_b, ["text", "dense", "defaultValue", "value", "onChange"]);
4282
4389
  var _a2;
4283
- const [prevValue, setPrevValue] = useState3(value != null ? value : defaultValue);
4284
- const [selected, setSelected] = useState3((_a2 = value != null ? value : defaultValue) != null ? _a2 : false);
4390
+ const [prevValue, setPrevValue] = useState4(value != null ? value : defaultValue);
4391
+ const [selected, setSelected] = useState4((_a2 = value != null ? value : defaultValue) != null ? _a2 : false);
4285
4392
  if (value !== prevValue) {
4286
4393
  setSelected(value != null ? value : false);
4287
4394
  setPrevValue(value);
@@ -4290,7 +4397,7 @@ var ChoiceChip = (_a) => {
4290
4397
  setSelected(!selected);
4291
4398
  onChange == null ? void 0 : onChange(!selected);
4292
4399
  };
4293
- return /* @__PURE__ */ React34.createElement("span", __spreadProps(__spreadValues({
4400
+ return /* @__PURE__ */ React35.createElement("span", __spreadProps(__spreadValues({
4294
4401
  role: "button",
4295
4402
  "aria-pressed": selected
4296
4403
  }, rest), {
@@ -4305,7 +4412,7 @@ var ChoiceChip = (_a) => {
4305
4412
  };
4306
4413
 
4307
4414
  // src/components/Combobox/Combobox.tsx
4308
- import React37, { useState as useState4, useEffect as useEffect3, useRef as useRef2 } from "react";
4415
+ import React38, { useState as useState5, useEffect as useEffect4, useRef as useRef3 } from "react";
4309
4416
  import { useCombobox } from "downshift";
4310
4417
  import { matchSorter } from "match-sorter";
4311
4418
  import uniqueId2 from "lodash/uniqueId";
@@ -4313,16 +4420,16 @@ import omit5 from "lodash/omit";
4313
4420
  import { useOverlayPosition as useOverlayPosition2 } from "@react-aria/overlays";
4314
4421
 
4315
4422
  // src/components/Popover/PopoverWrapper.tsx
4316
- import React36 from "react";
4423
+ import React37 from "react";
4317
4424
  import { FocusScope } from "@react-aria/focus";
4318
4425
  import { DismissButton, OverlayContainer as OverlayContainer2, useModal, useOverlay } from "@react-aria/overlays";
4319
4426
  import { mergeProps as mergeProps2 } from "@react-aria/utils";
4320
4427
 
4321
4428
  // src/common/Popover/Popover.tsx
4322
- import React35 from "react";
4323
- var PopoverPanel = React35.forwardRef((_a, ref) => {
4429
+ import React36 from "react";
4430
+ var PopoverPanel = React36.forwardRef((_a, ref) => {
4324
4431
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
4325
- return /* @__PURE__ */ React35.createElement("div", __spreadValues({
4432
+ return /* @__PURE__ */ React36.createElement("div", __spreadValues({
4326
4433
  ref,
4327
4434
  className: classNames(
4328
4435
  className,
@@ -4337,7 +4444,7 @@ var Popover = {
4337
4444
  };
4338
4445
 
4339
4446
  // src/components/Popover/PopoverWrapper.tsx
4340
- var PopoverWrapper = React36.forwardRef((props, ref) => {
4447
+ var PopoverWrapper = React37.forwardRef((props, ref) => {
4341
4448
  const _a = props, {
4342
4449
  id,
4343
4450
  children,
@@ -4375,16 +4482,16 @@ var PopoverWrapper = React36.forwardRef((props, ref) => {
4375
4482
  if (!props.isOpen) {
4376
4483
  return null;
4377
4484
  }
4378
- return /* @__PURE__ */ React36.createElement(OverlayContainer2, null, /* @__PURE__ */ React36.createElement(FocusScope, {
4485
+ return /* @__PURE__ */ React37.createElement(OverlayContainer2, null, /* @__PURE__ */ React37.createElement(FocusScope, {
4379
4486
  restoreFocus: true,
4380
4487
  autoFocus,
4381
4488
  contain: containFocus
4382
- }, /* @__PURE__ */ React36.createElement(Popover.Panel, __spreadProps(__spreadValues({
4489
+ }, /* @__PURE__ */ React37.createElement(Popover.Panel, __spreadProps(__spreadValues({
4383
4490
  ref,
4384
4491
  role: "dialog"
4385
4492
  }, mergeProps2(otherProps, modalProps, overlayProps)), {
4386
4493
  id: id != null ? id : overlayProps.id
4387
- }), children, /* @__PURE__ */ React36.createElement(DismissButton, {
4494
+ }), children, /* @__PURE__ */ React37.createElement(DismissButton, {
4388
4495
  onDismiss: props.onClose
4389
4496
  }))));
4390
4497
  });
@@ -4431,10 +4538,10 @@ var ComboboxBase = (_a) => {
4431
4538
  "readOnly"
4432
4539
  ]);
4433
4540
  var _a2;
4434
- const targetRef = useRef2(null);
4435
- const overlayRef = useRef2(null);
4436
- const [inputItems, setInputItems] = useState4(options);
4437
- const [hasFocus, setFocus] = useState4(false);
4541
+ const targetRef = useRef3(null);
4542
+ const overlayRef = useRef3(null);
4543
+ const [inputItems, setInputItems] = useState5(options);
4544
+ const [hasFocus, setFocus] = useState5(false);
4438
4545
  const updateInputItems = (query) => {
4439
4546
  const keys = typeof options[0] === "string" ? void 0 : optionKeys;
4440
4547
  setInputItems(query ? matchSorter(options, query, { keys }) : options);
@@ -4476,19 +4583,19 @@ var ComboboxBase = (_a) => {
4476
4583
  shouldFlip: true,
4477
4584
  isOpen
4478
4585
  });
4479
- useEffect3(() => {
4586
+ useEffect4(() => {
4480
4587
  updateInputItems(inputValue);
4481
4588
  }, [JSON.stringify(options)]);
4482
4589
  const inputProps = getInputProps({ disabled: disabled || readOnly });
4483
4590
  const hasNoResults = options.length === 0 || inputItems.length === 0;
4484
4591
  const width = (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth;
4485
4592
  const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
4486
- return /* @__PURE__ */ React37.createElement("div", {
4593
+ return /* @__PURE__ */ React38.createElement("div", {
4487
4594
  className: tw("relative")
4488
- }, /* @__PURE__ */ React37.createElement(Select.InputContainer, {
4595
+ }, /* @__PURE__ */ React38.createElement(Select.InputContainer, {
4489
4596
  ref: targetRef,
4490
4597
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
4491
- }, /* @__PURE__ */ React37.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
4598
+ }, /* @__PURE__ */ React38.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
4492
4599
  id,
4493
4600
  name,
4494
4601
  placeholder: readOnly ? void 0 : placeholder
@@ -4511,25 +4618,25 @@ var ComboboxBase = (_a) => {
4511
4618
  (_a3 = inputProps.onKeyDown) == null ? void 0 : _a3.call(inputProps, e);
4512
4619
  },
4513
4620
  onKeyUp: (e) => e.stopPropagation()
4514
- })), !readOnly && /* @__PURE__ */ React37.createElement(Select.Toggle, __spreadValues({
4621
+ })), !readOnly && /* @__PURE__ */ React38.createElement(Select.Toggle, __spreadValues({
4515
4622
  hasFocus,
4516
4623
  isOpen
4517
- }, getToggleButtonProps({ disabled })))), /* @__PURE__ */ React37.createElement(PopoverWrapper, __spreadProps(__spreadValues({
4624
+ }, getToggleButtonProps({ disabled })))), /* @__PURE__ */ React38.createElement(PopoverWrapper, __spreadProps(__spreadValues({
4518
4625
  isOpen: true,
4519
4626
  isDismissable: true,
4520
4627
  autoFocus: true
4521
4628
  }, getMenuProps({ ref: overlayRef })), {
4522
4629
  style,
4523
4630
  onClose: closeMenu
4524
- }), /* @__PURE__ */ React37.createElement(Select.Menu, {
4631
+ }), /* @__PURE__ */ React38.createElement(Select.Menu, {
4525
4632
  maxHeight
4526
- }, isOpen && hasNoResults && /* @__PURE__ */ React37.createElement(Select.NoResults, null, noResults), isOpen && inputItems.map((item, index) => /* @__PURE__ */ React37.createElement(Select.Item, __spreadValues({
4633
+ }, isOpen && hasNoResults && /* @__PURE__ */ React38.createElement(Select.NoResults, null, noResults), isOpen && inputItems.map((item, index) => /* @__PURE__ */ React38.createElement(Select.Item, __spreadValues({
4527
4634
  key: itemToString(item),
4528
4635
  selected: item === selectedItem,
4529
4636
  highlighted: index === highlightedIndex
4530
4637
  }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
4531
4638
  };
4532
- var ComboboxSkeleton = () => /* @__PURE__ */ React37.createElement(Skeleton, {
4639
+ var ComboboxSkeleton = () => /* @__PURE__ */ React38.createElement(Skeleton, {
4533
4640
  height: 38
4534
4641
  });
4535
4642
  ComboboxBase.Skeleton = ComboboxSkeleton;
@@ -4542,16 +4649,16 @@ var Combobox = (_a) => {
4542
4649
  "noResults"
4543
4650
  ]);
4544
4651
  var _a2;
4545
- const id = useRef2((_a2 = props.id) != null ? _a2 : `combobox-${uniqueId2()}`);
4652
+ const id = useRef3((_a2 = props.id) != null ? _a2 : `combobox-${uniqueId2()}`);
4546
4653
  const errorMessageId = uniqueId2();
4547
4654
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
4548
4655
  const labelControlProps = getLabelControlProps(props);
4549
4656
  const baseProps = omit5(props, Object.keys(labelControlProps));
4550
- return /* @__PURE__ */ React37.createElement(LabelControl, __spreadValues({
4657
+ return /* @__PURE__ */ React38.createElement(LabelControl, __spreadValues({
4551
4658
  id: `${id.current}-label`,
4552
4659
  htmlFor: `${id.current}-input`,
4553
4660
  messageId: errorMessageId
4554
- }, labelControlProps), /* @__PURE__ */ React37.createElement(ComboboxBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
4661
+ }, labelControlProps), /* @__PURE__ */ React38.createElement(ComboboxBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
4555
4662
  id: id.current,
4556
4663
  options,
4557
4664
  noResults,
@@ -4559,30 +4666,37 @@ var Combobox = (_a) => {
4559
4666
  valid: props.valid
4560
4667
  })));
4561
4668
  };
4562
- Combobox.Skeleton = () => /* @__PURE__ */ React37.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React37.createElement(ComboboxBase.Skeleton, null));
4669
+ Combobox.Skeleton = () => /* @__PURE__ */ React38.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React38.createElement(ComboboxBase.Skeleton, null));
4563
4670
 
4564
- // src/components/DataTable/DataTable.tsx
4565
- import React42 from "react";
4671
+ // src/components/DataList/DataList.tsx
4672
+ import React44 from "react";
4566
4673
 
4567
- // src/components/Table/Table.tsx
4674
+ // src/utils/table/types.ts
4675
+ var toSortDirection = (direction) => direction === "ascending" ? "asc" : direction === "descending" ? "desc" : false;
4676
+ var cellProps = (column) => ({
4677
+ key: column.headerName,
4678
+ align: column.type === "number" || column.type === "action" ? "right" : "left"
4679
+ });
4680
+
4681
+ // src/common/DataList/DataList.tsx
4568
4682
  import React41 from "react";
4569
4683
 
4570
4684
  // src/common/Table/Table.tsx
4571
- import React39 from "react";
4685
+ import React40 from "react";
4572
4686
 
4573
4687
  // src/common/RadioButton/RadioButton.tsx
4574
- import React38 from "react";
4575
- var RadioButton = React38.forwardRef(
4688
+ import React39 from "react";
4689
+ var RadioButton = React39.forwardRef(
4576
4690
  (_a, ref) => {
4577
4691
  var _b = _a, { id, children, name, checked = false, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "checked", "disabled", "readOnly"]);
4578
- return /* @__PURE__ */ React38.createElement("span", {
4692
+ return /* @__PURE__ */ React39.createElement("span", {
4579
4693
  className: classNames(
4580
4694
  tw("inline-flex justify-center items-center relative self-center", {
4581
4695
  "text-grey-30": disabled,
4582
4696
  "text-grey-100": !disabled
4583
4697
  })
4584
4698
  )
4585
- }, /* @__PURE__ */ React38.createElement("input", __spreadProps(__spreadValues({
4699
+ }, /* @__PURE__ */ React39.createElement("input", __spreadProps(__spreadValues({
4586
4700
  id,
4587
4701
  ref,
4588
4702
  type: "radio",
@@ -4601,7 +4715,7 @@ var RadioButton = React38.forwardRef(
4601
4715
  style: __spreadValues({ width: 16, height: 16 }, props.style),
4602
4716
  readOnly,
4603
4717
  disabled
4604
- })), /* @__PURE__ */ React38.createElement("span", {
4718
+ })), /* @__PURE__ */ React39.createElement("span", {
4605
4719
  style: { backgroundColor: "currentcolor" },
4606
4720
  className: tw("absolute w-3 h-3 rounded-full bg-navyBlue-100 pointer-events-none", {
4607
4721
  "opacity-0": !checked,
@@ -4614,34 +4728,37 @@ var RadioButton = React38.forwardRef(
4614
4728
  // src/common/Table/Table.tsx
4615
4729
  var import_chevronUp2 = __toESM(require_chevronUp());
4616
4730
  var import_chevronDown3 = __toESM(require_chevronDown());
4617
- var HeadContext = React39.createContext(null);
4731
+ var HeadContext = React40.createContext(null);
4618
4732
  var tableClassNames = tw("w-full relative typography-body-default border-spacing-0");
4619
4733
  var Table = (_a) => {
4620
4734
  var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
4621
- return /* @__PURE__ */ React39.createElement("table", __spreadProps(__spreadValues({}, rest), {
4735
+ return /* @__PURE__ */ React40.createElement("table", __spreadProps(__spreadValues({}, rest), {
4622
4736
  className: classNames(tableClassNames, className),
4623
4737
  "aria-label": ariaLabel
4624
4738
  }), children);
4625
4739
  };
4626
4740
  var TableHead = (_a) => {
4627
4741
  var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
4628
- return /* @__PURE__ */ React39.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React39.createElement("tr", null, /* @__PURE__ */ React39.createElement(HeadContext.Provider, {
4742
+ return /* @__PURE__ */ React40.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React40.createElement("tr", null, /* @__PURE__ */ React40.createElement(HeadContext.Provider, {
4629
4743
  value: { children, sticky }
4630
4744
  }, children)));
4631
4745
  };
4632
4746
  var TableBody = (_a) => {
4633
4747
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
4634
- return /* @__PURE__ */ React39.createElement("tbody", __spreadValues({}, rest), children);
4748
+ return /* @__PURE__ */ React40.createElement("tbody", __spreadValues({}, rest), children);
4635
4749
  };
4636
4750
  var rowClassNames = tw("children:border-grey-10 children:last:border-b-0 hover:bg-grey-0");
4637
4751
  var TableRow = (_a) => {
4638
4752
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
4639
- return /* @__PURE__ */ React39.createElement("tr", __spreadProps(__spreadValues({}, rest), {
4753
+ return /* @__PURE__ */ React40.createElement("tr", __spreadProps(__spreadValues({}, rest), {
4640
4754
  className: classNames(rowClassNames, className)
4641
4755
  }), children);
4642
4756
  };
4643
- var cellClassNames = tw("px-4 border-b typography-body-small-medium leading-[18px]");
4644
- var bodyCellClassNames = tw("text-grey-70 py-3 h-[50px]");
4757
+ var cellClassNames = tw("px-4 border-b typography-body-small leading-[18px]");
4758
+ var getBodyCellClassNames = (table = true) => tw("text-grey-70 py-3", {
4759
+ "h-[50px]": table,
4760
+ "min-h-[50px]": !table
4761
+ });
4645
4762
  var getAlignClassNames = (align) => tw({ "text-right": align === "right", "text-center": align === "center" });
4646
4763
  var getHeadCellClassNames = (sticky = true) => {
4647
4764
  const common = tw("py-[14px] text-left bg-white border-grey-40 text-grey-50 font-normal");
@@ -4649,90 +4766,245 @@ var getHeadCellClassNames = (sticky = true) => {
4649
4766
  };
4650
4767
  var TableCell = (_a) => {
4651
4768
  var _b = _a, { children, className, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "align"]);
4652
- const headContext = React39.useContext(HeadContext);
4653
- return headContext ? /* @__PURE__ */ React39.createElement("th", __spreadProps(__spreadValues({}, rest), {
4769
+ const headContext = React40.useContext(HeadContext);
4770
+ return headContext ? /* @__PURE__ */ React40.createElement("th", __spreadProps(__spreadValues({}, rest), {
4654
4771
  className: classNames(
4655
4772
  cellClassNames,
4656
4773
  getHeadCellClassNames(headContext.sticky),
4657
4774
  getAlignClassNames(align),
4658
4775
  className
4659
4776
  )
4660
- }), children) : /* @__PURE__ */ React39.createElement("td", __spreadProps(__spreadValues({}, rest), {
4661
- className: classNames(cellClassNames, bodyCellClassNames, getAlignClassNames(align), className)
4777
+ }), children) : /* @__PURE__ */ React40.createElement("td", __spreadProps(__spreadValues({}, rest), {
4778
+ className: classNames(cellClassNames, getBodyCellClassNames(), getAlignClassNames(align), className)
4662
4779
  }), children);
4663
4780
  };
4664
4781
  var TableSelectCell = (_a) => {
4665
4782
  var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
4666
- return /* @__PURE__ */ React39.createElement(Table.Cell, {
4783
+ return /* @__PURE__ */ React40.createElement(Table.Cell, {
4667
4784
  className: tw("leading-[0px]")
4668
- }, props.type === "radio" ? /* @__PURE__ */ React39.createElement(RadioButton, __spreadValues({
4785
+ }, props.type === "radio" ? /* @__PURE__ */ React40.createElement(RadioButton, __spreadValues({
4669
4786
  "aria-label": ariaLabel
4670
- }, props)) : /* @__PURE__ */ React39.createElement(Checkbox, __spreadValues({
4787
+ }, props)) : /* @__PURE__ */ React40.createElement(Checkbox, __spreadValues({
4671
4788
  "aria-label": ariaLabel
4672
4789
  }, props)));
4673
4790
  };
4674
- var sortCellButtonClassNames = tw("group inline-flex items-center text-grey-50");
4791
+ var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4 text-grey-50", { "flex-row-reverse": align === "right" });
4675
4792
  var getSortCellIconClassNames = (active) => {
4676
4793
  return tw("text-[9px]", active ? "text-grey-70" : "text-grey-30");
4677
4794
  };
4678
4795
  var TableSortCell = (_a) => {
4679
4796
  var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
4680
- return /* @__PURE__ */ React39.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
4797
+ return /* @__PURE__ */ React40.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
4681
4798
  "aria-sort": direction
4682
- }), /* @__PURE__ */ React39.createElement("span", {
4683
- className: sortCellButtonClassNames,
4799
+ }), /* @__PURE__ */ React40.createElement("span", {
4800
+ className: getSortCellButtonClassNames(rest.align),
4684
4801
  role: "button",
4685
4802
  tabIndex: -1,
4686
4803
  onClick
4687
- }, children, /* @__PURE__ */ React39.createElement("div", {
4804
+ }, children, /* @__PURE__ */ React40.createElement("div", {
4688
4805
  "data-sort-icons": true,
4689
- className: tw("flex flex-col ml-4", {
4806
+ className: tw("flex flex-col", {
4690
4807
  "invisible group-hover:visible": direction === "none"
4691
4808
  })
4692
- }, /* @__PURE__ */ React39.createElement(InlineIcon, {
4809
+ }, /* @__PURE__ */ React40.createElement(InlineIcon, {
4693
4810
  icon: import_chevronUp2.default,
4694
4811
  className: getSortCellIconClassNames(direction === "descending")
4695
- }), /* @__PURE__ */ React39.createElement(InlineIcon, {
4812
+ }), /* @__PURE__ */ React40.createElement(InlineIcon, {
4696
4813
  icon: import_chevronDown3.default,
4697
4814
  className: getSortCellIconClassNames(direction === "ascending")
4698
4815
  }))));
4699
4816
  };
4700
- Table.Head = React39.memo(TableHead);
4701
- Table.Body = React39.memo(TableBody);
4702
- Table.Row = React39.memo(TableRow);
4703
- Table.Cell = React39.memo(TableCell);
4704
- Table.SortCell = React39.memo(TableSortCell);
4705
- Table.SelectCell = React39.memo(TableSelectCell);
4817
+ var Item2 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React40.createElement("div", {
4818
+ className: tw("flex gap-4 items-center")
4819
+ }, image && /* @__PURE__ */ React40.createElement("img", {
4820
+ src: image,
4821
+ alt: imageAlt,
4822
+ style: { width: imageSize, height: imageSize }
4823
+ }), /* @__PURE__ */ React40.createElement("div", null, title, caption && /* @__PURE__ */ React40.createElement(Typography2.Caption, null, caption)));
4824
+ Table.Head = React40.memo(TableHead);
4825
+ Table.Body = React40.memo(TableBody);
4826
+ Table.Row = React40.memo(TableRow);
4827
+ Table.Cell = React40.memo(TableCell);
4828
+ Table.SortCell = React40.memo(TableSortCell);
4829
+ Table.SelectCell = React40.memo(TableSelectCell);
4830
+
4831
+ // src/common/DataList/DataList.tsx
4832
+ var import_chevronUp3 = __toESM(require_chevronUp());
4833
+ var import_chevronDown4 = __toESM(require_chevronDown());
4834
+ var getAlignClassNames2 = (align) => tw("flex items-center", {
4835
+ "justify-end": align === "right",
4836
+ "justify-center": align === "center",
4837
+ "justify-start": align === "left" || align === void 0
4838
+ });
4839
+ var DataList = (_a) => {
4840
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
4841
+ return /* @__PURE__ */ React41.createElement("div", __spreadValues({}, rest));
4842
+ };
4843
+ var HeadCell = (_a) => {
4844
+ var _b = _a, {
4845
+ className,
4846
+ sticky,
4847
+ align
4848
+ } = _b, rest = __objRest(_b, [
4849
+ "className",
4850
+ "sticky",
4851
+ "align"
4852
+ ]);
4853
+ return /* @__PURE__ */ React41.createElement("div", __spreadProps(__spreadValues({}, rest), {
4854
+ role: "cell",
4855
+ className: classNames(cellClassNames, getHeadCellClassNames(sticky), getAlignClassNames2(align), className)
4856
+ }));
4857
+ };
4858
+ var Cell = (_a) => {
4859
+ var _b = _a, { className, align } = _b, rest = __objRest(_b, ["className", "align"]);
4860
+ return /* @__PURE__ */ React41.createElement("div", __spreadProps(__spreadValues({}, rest), {
4861
+ role: "cell",
4862
+ className: classNames(
4863
+ cellClassNames,
4864
+ getBodyCellClassNames(false),
4865
+ getAlignClassNames2(align),
4866
+ tw("border-grey-10 group-hover:bg-grey-0 group-last:border-b-0"),
4867
+ className
4868
+ )
4869
+ }));
4870
+ };
4871
+ var Row = (_a) => {
4872
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
4873
+ return /* @__PURE__ */ React41.createElement("div", __spreadProps(__spreadValues({}, rest), {
4874
+ className: classNames(tw("contents group"), className),
4875
+ role: "row"
4876
+ }));
4877
+ };
4878
+ var SortCell = (_a) => {
4879
+ var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
4880
+ return /* @__PURE__ */ React41.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
4881
+ "aria-sort": direction,
4882
+ role: "cell"
4883
+ }), /* @__PURE__ */ React41.createElement("span", {
4884
+ className: getSortCellButtonClassNames(rest.align),
4885
+ role: "button",
4886
+ tabIndex: -1,
4887
+ onClick
4888
+ }, children, /* @__PURE__ */ React41.createElement("div", {
4889
+ "data-sort-icons": true,
4890
+ className: tw("flex flex-col", {
4891
+ "invisible group-hover:visible": direction === "none"
4892
+ })
4893
+ }, /* @__PURE__ */ React41.createElement(InlineIcon, {
4894
+ icon: import_chevronUp3.default,
4895
+ className: getSortCellIconClassNames(direction === "descending")
4896
+ }), /* @__PURE__ */ React41.createElement(InlineIcon, {
4897
+ icon: import_chevronDown4.default,
4898
+ className: getSortCellIconClassNames(direction === "ascending")
4899
+ }))));
4900
+ };
4901
+ DataList.HeadCell = HeadCell;
4902
+ DataList.SortCell = SortCell;
4903
+ DataList.Cell = Cell;
4904
+ DataList.Row = Row;
4706
4905
 
4707
- // src/common/Table/Table.utils.ts
4708
- import React40 from "react";
4709
- var useTableSelect = (data, { key }) => {
4710
- const [selected, setSelected] = React40.useState([]);
4711
- const allSelected = selected.length === data.length;
4712
- const isSelected = (dot) => selected.includes(dot[key]);
4713
- const selectAll = () => setSelected(data.map((dot) => dot[key]));
4714
- const selectOnlyOne = (dot) => setSelected([dot[key]]);
4715
- const unselectAll = () => setSelected([]);
4716
- const toggle = (dot) => {
4717
- if (isSelected(dot)) {
4718
- setSelected((current) => current.filter((selectedDot) => selectedDot !== dot[key]));
4906
+ // src/components/Template/Template.tsx
4907
+ import React42 from "react";
4908
+ var Template = ({
4909
+ children,
4910
+ columns,
4911
+ alignSelf,
4912
+ alignContent,
4913
+ alignItems,
4914
+ justifySelf,
4915
+ gap,
4916
+ columnGap,
4917
+ rowGap,
4918
+ fullHeight
4919
+ }) => {
4920
+ const gridTemplateColumns = typeof columns === "number" ? "1fr ".repeat(columns) : columns.map((column) => typeof column === "number" ? `${column}px` : column === "auto" ? column : `${column}fr`).join(" ");
4921
+ const styles = useStyle({
4922
+ height: fullHeight ? "100%" : void 0,
4923
+ display: "grid",
4924
+ gridTemplateColumns,
4925
+ alignSelf,
4926
+ alignContent,
4927
+ alignItems,
4928
+ justifySelf,
4929
+ gap,
4930
+ rowGap,
4931
+ columnGap
4932
+ });
4933
+ return /* @__PURE__ */ React42.createElement("div", {
4934
+ style: __spreadValues({}, styles)
4935
+ }, children);
4936
+ };
4937
+
4938
+ // src/utils/object.ts
4939
+ var renameProperty = (oldProp, newProp, _a) => {
4940
+ var _b = _a, { [oldProp]: oldValue } = _b, rest = __objRest(_b, [__restKey(oldProp)]);
4941
+ return __spreadValues({
4942
+ [newProp]: oldValue
4943
+ }, rest);
4944
+ };
4945
+
4946
+ // src/components/DataList/DataList.tsx
4947
+ import orderBy2 from "lodash/orderBy";
4948
+
4949
+ // src/utils/table/useTableSort.tsx
4950
+ import React43 from "react";
4951
+ var useTableSort = () => {
4952
+ const [sort, setSort] = React43.useState();
4953
+ const handleSortClick = (field) => {
4954
+ if ((sort == null ? void 0 : sort.key) === field) {
4955
+ if (sort.direction === "ascending") {
4956
+ setSort({ key: field, direction: "descending" });
4957
+ } else {
4958
+ setSort(void 0);
4959
+ }
4719
4960
  } else {
4720
- setSelected((current) => [...current, dot[key]]);
4961
+ setSort({ key: field, direction: "ascending" });
4721
4962
  }
4722
4963
  };
4723
- const toggleAll = () => allSelected ? unselectAll() : selectAll();
4724
- return {
4725
- selected,
4726
- allSelected,
4727
- toggle,
4728
- toggleAll,
4729
- isSelected,
4730
- selectOnlyOne
4731
- };
4964
+ return [sort, handleSortClick];
4732
4965
  };
4966
+
4967
+ // src/components/DataList/DataList.tsx
4968
+ var DataList2 = ({ columns, rows }) => {
4969
+ const [sort, updateSort] = useTableSort();
4970
+ const sortedRows = orderBy2(rows, [sort == null ? void 0 : sort.key], [toSortDirection(sort == null ? void 0 : sort.direction)]);
4971
+ const templateColumns = columns.map((column) => {
4972
+ var _a;
4973
+ return (_a = column.width) != null ? _a : "auto";
4974
+ });
4975
+ return /* @__PURE__ */ React44.createElement(Template, {
4976
+ columns: templateColumns
4977
+ }, columns.map(
4978
+ (column) => (column.type === "text" || column.type === "number") && column.sortable ? /* @__PURE__ */ React44.createElement(DataList.SortCell, __spreadValues({
4979
+ direction: sort && sort.key === column.field ? sort.direction : "none",
4980
+ onClick: () => updateSort(column.field)
4981
+ }, cellProps(column)), column.headerName) : /* @__PURE__ */ React44.createElement(DataList.HeadCell, __spreadValues({}, cellProps(column)), column.headerName)
4982
+ ), /* @__PURE__ */ React44.createElement(List, {
4983
+ items: sortedRows,
4984
+ renderItem: (row, index) => /* @__PURE__ */ React44.createElement(DataList.Row, {
4985
+ key: row.id
4986
+ }, /* @__PURE__ */ React44.createElement(List, {
4987
+ items: columns,
4988
+ renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React44.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React44.createElement(StatusChip, __spreadValues({
4989
+ dense: true
4990
+ }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React44.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React44.createElement(SecondaryButton, __spreadValues({
4991
+ dense: true
4992
+ }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React44.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React44.createElement(DataList.Cell, null, /* @__PURE__ */ React44.createElement(Item2, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React44.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
4993
+ }))
4994
+ }));
4995
+ };
4996
+
4997
+ // src/components/DataTable/DataTable.tsx
4998
+ import React47 from "react";
4999
+
5000
+ // src/components/Table/Table.tsx
5001
+ import React46 from "react";
5002
+
5003
+ // src/utils/table/useScrollTarget.ts
5004
+ import React45 from "react";
4733
5005
  var useScrollTarget = (callback) => {
4734
- const targetRef = React40.useRef(null);
4735
- React40.useLayoutEffect(() => {
5006
+ const targetRef = React45.useRef(null);
5007
+ React45.useLayoutEffect(() => {
4736
5008
  const observer = new IntersectionObserver((entries) => entries[0].isIntersecting && callback && callback(), {
4737
5009
  root: null,
4738
5010
  rootMargin: `0px 0px 200px 0px`
@@ -4750,12 +5022,12 @@ var Table2 = (_a) => {
4750
5022
  var _b = _a, { children, onPrev, onNext } = _b, rest = __objRest(_b, ["children", "onPrev", "onNext"]);
4751
5023
  const bottomRef = useScrollTarget(onNext);
4752
5024
  const topRef = useScrollTarget(onPrev);
4753
- return /* @__PURE__ */ React41.createElement("div", {
5025
+ return /* @__PURE__ */ React46.createElement("div", {
4754
5026
  className: "relative w-full"
4755
- }, /* @__PURE__ */ React41.createElement("div", {
5027
+ }, /* @__PURE__ */ React46.createElement("div", {
4756
5028
  ref: topRef,
4757
5029
  className: tw("absolute top-0 h-1 w-full left-0 bg-transparent")
4758
- }), /* @__PURE__ */ React41.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React41.createElement("div", {
5030
+ }), /* @__PURE__ */ React46.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React46.createElement("div", {
4759
5031
  ref: bottomRef,
4760
5032
  className: tw("absolute bottom-0 h-1 w-full left-0 bg-transparent")
4761
5033
  }));
@@ -4767,37 +5039,8 @@ Table2.Cell = Table.Cell;
4767
5039
  Table2.SortCell = Table.SortCell;
4768
5040
  Table2.SelectCell = Table.SelectCell;
4769
5041
 
4770
- // src/utils/object.ts
4771
- var renameProperty = (oldProp, newProp, _a) => {
4772
- var _b = _a, { [oldProp]: oldValue } = _b, rest = __objRest(_b, [__restKey(oldProp)]);
4773
- return __spreadValues({
4774
- [newProp]: oldValue
4775
- }, rest);
4776
- };
4777
-
4778
5042
  // src/components/DataTable/DataTable.tsx
4779
- import orderBy2 from "lodash/orderBy";
4780
- var toSortDirection = (direction) => direction === "ascending" ? "asc" : direction === "descending" ? "desc" : false;
4781
- var isFieldColumn = (column) => Boolean(column.field);
4782
- var isNumberColumn = (column) => column.type === "number";
4783
- var isStatusColumn = (column) => column.type === "status";
4784
- var isActionColumn = (column) => column.type === "action";
4785
- var isCustomColumn = (column) => column.type === "custom";
4786
- var useTableSort = () => {
4787
- const [sort, setSort] = React42.useState();
4788
- const handleSortClick = (field) => {
4789
- if ((sort == null ? void 0 : sort.key) === field) {
4790
- if (sort.direction === "ascending") {
4791
- setSort({ key: field, direction: "descending" });
4792
- } else {
4793
- setSort(void 0);
4794
- }
4795
- } else {
4796
- setSort({ key: field, direction: "ascending" });
4797
- }
4798
- };
4799
- return [sort, handleSortClick];
4800
- };
5043
+ import orderBy3 from "lodash/orderBy";
4801
5044
  var DataTable = (_a) => {
4802
5045
  var _b = _a, {
4803
5046
  columns,
@@ -4811,52 +5054,38 @@ var DataTable = (_a) => {
4811
5054
  "layout"
4812
5055
  ]);
4813
5056
  const [sort, updateSort] = useTableSort();
4814
- const sortedRows = orderBy2(rows, [sort == null ? void 0 : sort.key], [toSortDirection(sort == null ? void 0 : sort.direction)]);
4815
- return /* @__PURE__ */ React42.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
5057
+ const sortedRows = orderBy3(rows, [sort == null ? void 0 : sort.key], [toSortDirection(sort == null ? void 0 : sort.direction)]);
5058
+ return /* @__PURE__ */ React47.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
4816
5059
  className: tw({
4817
5060
  "whitespace-nowrap": noWrap,
4818
5061
  "table-auto": layout === "auto",
4819
5062
  "table-fixed": layout === "fixed"
4820
5063
  })
4821
- }), /* @__PURE__ */ React42.createElement(Table2.Head, null, columns.map(
4822
- (column) => isFieldColumn(column) && column.sortable ? /* @__PURE__ */ React42.createElement(Table2.SortCell, {
4823
- key: column.headerName,
5064
+ }), /* @__PURE__ */ React47.createElement(Table2.Head, null, columns.map(
5065
+ (column) => (column.type === "text" || column.type === "number") && column.sortable ? /* @__PURE__ */ React47.createElement(Table2.SortCell, __spreadValues({
4824
5066
  direction: sort && sort.key === column.field ? sort.direction : "none",
4825
5067
  onClick: () => updateSort(column.field),
4826
- align: isNumberColumn(column) ? "right" : "left",
4827
5068
  style: { width: column.width }
4828
- }, column.headerName) : /* @__PURE__ */ React42.createElement(Table2.Cell, {
4829
- align: isNumberColumn(column) ? "right" : "left",
4830
- key: column.headerName,
5069
+ }, cellProps(column)), column.headerName) : /* @__PURE__ */ React47.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
4831
5070
  style: { width: column.width }
4832
- }, column.headerName)
4833
- )), /* @__PURE__ */ React42.createElement(Table2.Body, null, /* @__PURE__ */ React42.createElement(List, {
5071
+ }), column.headerName)
5072
+ )), /* @__PURE__ */ React47.createElement(Table2.Body, null, /* @__PURE__ */ React47.createElement(List, {
4834
5073
  items: sortedRows,
4835
- renderItem: (row, index) => /* @__PURE__ */ React42.createElement(Table2.Row, {
5074
+ renderItem: (row, index) => /* @__PURE__ */ React47.createElement(Table2.Row, {
4836
5075
  key: row.id
4837
- }, /* @__PURE__ */ React42.createElement(List, {
5076
+ }, /* @__PURE__ */ React47.createElement(List, {
4838
5077
  items: columns,
4839
- renderItem: (column) => isStatusColumn(column) ? /* @__PURE__ */ React42.createElement(Table2.Cell, {
4840
- key: column.headerName
4841
- }, /* @__PURE__ */ React42.createElement(StatusChip, __spreadValues({
5078
+ renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React47.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React47.createElement(StatusChip, __spreadValues({
4842
5079
  dense: true
4843
- }, column.status(row, index, sortedRows)))) : isActionColumn(column) ? /* @__PURE__ */ React42.createElement(Table2.Cell, {
4844
- align: "right",
4845
- key: column.headerName
4846
- }, /* @__PURE__ */ React42.createElement(SecondaryButton, __spreadValues({
5080
+ }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React47.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React47.createElement(SecondaryButton, __spreadValues({
4847
5081
  dense: true
4848
- }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : isCustomColumn(column) ? /* @__PURE__ */ React42.createElement(Table2.Cell, {
4849
- key: column.headerName
4850
- }, column.UNSAFE_render(row, index, sortedRows)) : /* @__PURE__ */ React42.createElement(Table2.Cell, {
4851
- key: column.headerName,
4852
- align: isNumberColumn(column) ? "right" : "left"
4853
- }, column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
5082
+ }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React47.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React47.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React47.createElement(Item2, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React47.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
4854
5083
  }))
4855
5084
  })));
4856
5085
  };
4857
5086
 
4858
5087
  // src/components/Dialog/Dialog.tsx
4859
- import React44 from "react";
5088
+ import React49 from "react";
4860
5089
  import omit6 from "lodash/omit";
4861
5090
  import { Overlay, useModalOverlay } from "@react-aria/overlays";
4862
5091
  import { useDialog } from "@react-aria/dialog";
@@ -4865,10 +5094,10 @@ import { useId } from "@react-aria/utils";
4865
5094
  import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
4866
5095
 
4867
5096
  // src/common/Modal/Modal.tsx
4868
- import React43 from "react";
5097
+ import React48 from "react";
4869
5098
  var Modal = (_a) => {
4870
5099
  var _b = _a, { children, className, open } = _b, rest = __objRest(_b, ["children", "className", "open"]);
4871
- return open ? /* @__PURE__ */ React43.createElement("div", __spreadProps(__spreadValues({}, rest), {
5100
+ return open ? /* @__PURE__ */ React48.createElement("div", __spreadProps(__spreadValues({}, rest), {
4872
5101
  className: classNames(
4873
5102
  tw("inset-0 overflow-y-auto z-modal flex justify-center items-center fixed py-7"),
4874
5103
  className
@@ -4877,14 +5106,14 @@ var Modal = (_a) => {
4877
5106
  };
4878
5107
  Modal.BackDrop = (_a) => {
4879
5108
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
4880
- return /* @__PURE__ */ React43.createElement("div", __spreadProps(__spreadValues({}, rest), {
5109
+ return /* @__PURE__ */ React48.createElement("div", __spreadProps(__spreadValues({}, rest), {
4881
5110
  className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-navyBlue-100 opacity-70"), className)
4882
5111
  }));
4883
5112
  };
4884
- Modal.Dialog = React43.forwardRef(
5113
+ Modal.Dialog = React48.forwardRef(
4885
5114
  (_a, ref) => {
4886
5115
  var _b = _a, { children, className, size = "sm" } = _b, rest = __objRest(_b, ["children", "className", "size"]);
4887
- return /* @__PURE__ */ React43.createElement("div", __spreadProps(__spreadValues({
5116
+ return /* @__PURE__ */ React48.createElement("div", __spreadProps(__spreadValues({
4888
5117
  ref,
4889
5118
  "aria-modal": "true"
4890
5119
  }, rest), {
@@ -4902,13 +5131,13 @@ Modal.Dialog = React43.forwardRef(
4902
5131
  );
4903
5132
  Modal.Header = (_a) => {
4904
5133
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
4905
- return /* @__PURE__ */ React43.createElement("div", __spreadProps(__spreadValues({}, rest), {
5134
+ return /* @__PURE__ */ React48.createElement("div", __spreadProps(__spreadValues({}, rest), {
4906
5135
  className: classNames(tw("px-7 py-6 gap-3 flex items-center"), className)
4907
5136
  }), children);
4908
5137
  };
4909
5138
  Modal.Title = (_a) => {
4910
5139
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
4911
- return /* @__PURE__ */ React43.createElement(Typography, __spreadValues({
5140
+ return /* @__PURE__ */ React48.createElement(Typography, __spreadValues({
4912
5141
  htmlTag: "h2",
4913
5142
  variant: "heading-large",
4914
5143
  color: "grey-90",
@@ -4917,33 +5146,33 @@ Modal.Title = (_a) => {
4917
5146
  };
4918
5147
  Modal.Subtitle = (_a) => {
4919
5148
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
4920
- return /* @__PURE__ */ React43.createElement(Typography, __spreadValues({
5149
+ return /* @__PURE__ */ React48.createElement(Typography, __spreadValues({
4921
5150
  variant: "body-small",
4922
5151
  color: "grey-60"
4923
5152
  }, rest), children);
4924
5153
  };
4925
5154
  Modal.TitleContainer = (_a) => {
4926
5155
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
4927
- return /* @__PURE__ */ React43.createElement("div", __spreadProps(__spreadValues({}, rest), {
5156
+ return /* @__PURE__ */ React48.createElement("div", __spreadProps(__spreadValues({}, rest), {
4928
5157
  className: classNames(tw("flex flex-col grow gap-2"), className)
4929
5158
  }), children);
4930
5159
  };
4931
5160
  Modal.Body = (_a) => {
4932
5161
  var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
4933
- return /* @__PURE__ */ React43.createElement("div", __spreadProps(__spreadValues({}, rest), {
5162
+ return /* @__PURE__ */ React48.createElement("div", __spreadProps(__spreadValues({}, rest), {
4934
5163
  className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
4935
5164
  style: __spreadValues({ maxHeight }, style)
4936
5165
  }), children);
4937
5166
  };
4938
5167
  Modal.Footer = (_a) => {
4939
5168
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
4940
- return /* @__PURE__ */ React43.createElement("div", __spreadProps(__spreadValues({}, rest), {
5169
+ return /* @__PURE__ */ React48.createElement("div", __spreadProps(__spreadValues({}, rest), {
4941
5170
  className: classNames(tw("px-7 py-6"), className)
4942
5171
  }), children);
4943
5172
  };
4944
5173
  Modal.Actions = (_a) => {
4945
5174
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
4946
- return /* @__PURE__ */ React43.createElement("div", __spreadProps(__spreadValues({}, rest), {
5175
+ return /* @__PURE__ */ React48.createElement("div", __spreadProps(__spreadValues({}, rest), {
4947
5176
  className: classNames(tw("flex gap-4 justify-end"), className)
4948
5177
  }), children);
4949
5178
  };
@@ -4976,7 +5205,7 @@ var Dialog = ({
4976
5205
  primaryAction,
4977
5206
  secondaryAction
4978
5207
  }) => {
4979
- const ref = React44.useRef(null);
5208
+ const ref = React49.useRef(null);
4980
5209
  const state = useOverlayTriggerState2({ isOpen: open });
4981
5210
  const { modalProps, underlayProps } = useModalOverlay({ isDismissable: false }, state, ref);
4982
5211
  const labelledBy = useId();
@@ -4988,34 +5217,34 @@ var Dialog = ({
4988
5217
  if (!open) {
4989
5218
  return null;
4990
5219
  }
4991
- return /* @__PURE__ */ React44.createElement(Overlay, null, /* @__PURE__ */ React44.createElement(Modal, {
5220
+ return /* @__PURE__ */ React49.createElement(Overlay, null, /* @__PURE__ */ React49.createElement(Modal, {
4992
5221
  open
4993
- }, /* @__PURE__ */ React44.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React44.createElement(FocusScope2, {
5222
+ }, /* @__PURE__ */ React49.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React49.createElement(FocusScope2, {
4994
5223
  contain: true,
4995
5224
  restoreFocus: true,
4996
5225
  autoFocus: true
4997
- }, /* @__PURE__ */ React44.createElement(Modal.Dialog, __spreadValues(__spreadValues({
5226
+ }, /* @__PURE__ */ React49.createElement(Modal.Dialog, __spreadValues(__spreadValues({
4998
5227
  ref,
4999
5228
  size: "sm"
5000
- }, modalProps), dialogProps), /* @__PURE__ */ React44.createElement(Modal.Header, null, /* @__PURE__ */ React44.createElement(Icon, {
5229
+ }, modalProps), dialogProps), /* @__PURE__ */ React49.createElement(Modal.Header, null, /* @__PURE__ */ React49.createElement(Icon, {
5001
5230
  icon: DIALOG_ICONS_AND_COLORS[type].icon,
5002
5231
  color: DIALOG_ICONS_AND_COLORS[type].color,
5003
5232
  fontSize: 20
5004
- }), /* @__PURE__ */ React44.createElement(Modal.Title, {
5233
+ }), /* @__PURE__ */ React49.createElement(Modal.Title, {
5005
5234
  id: labelledBy,
5006
5235
  variant: "body-large",
5007
5236
  color: DIALOG_ICONS_AND_COLORS[type].color
5008
- }, title)), /* @__PURE__ */ React44.createElement(Modal.Body, {
5237
+ }, title)), /* @__PURE__ */ React49.createElement(Modal.Body, {
5009
5238
  id: describedBy
5010
- }, children), /* @__PURE__ */ React44.createElement(Modal.Footer, null, /* @__PURE__ */ React44.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React44.createElement(GhostButton, __spreadValues({
5239
+ }, children), /* @__PURE__ */ React49.createElement(Modal.Footer, null, /* @__PURE__ */ React49.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React49.createElement(GhostButton, __spreadValues({
5011
5240
  key: secondaryAction.text
5012
- }, omit6(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React44.createElement(SecondaryButton, __spreadValues({
5241
+ }, omit6(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React49.createElement(SecondaryButton, __spreadValues({
5013
5242
  key: primaryAction.text
5014
5243
  }, omit6(primaryAction, "text")), primaryAction.text)))))));
5015
5244
  };
5016
5245
 
5017
5246
  // src/components/Divider/Divider.tsx
5018
- import React45 from "react";
5247
+ import React50 from "react";
5019
5248
  var sizeClasses = {
5020
5249
  horizontal: {
5021
5250
  1: "h-1px",
@@ -5037,7 +5266,7 @@ var sizeClasses = {
5037
5266
  var Divider2 = (_a) => {
5038
5267
  var _b = _a, { direction = "horizontal", size = 1 } = _b, props = __objRest(_b, ["direction", "size"]);
5039
5268
  const sizeClass = sizeClasses[direction][size];
5040
- return /* @__PURE__ */ React45.createElement("div", __spreadProps(__spreadValues({}, props), {
5269
+ return /* @__PURE__ */ React50.createElement("div", __spreadProps(__spreadValues({}, props), {
5041
5270
  className: tw(`bg-grey-5 ${sizeClass}`, {
5042
5271
  "block w-full": direction === "horizontal",
5043
5272
  "inline-block h-full": direction === "vertical"
@@ -5046,10 +5275,10 @@ var Divider2 = (_a) => {
5046
5275
  };
5047
5276
 
5048
5277
  // src/components/Dropdown/Dropdown.tsx
5049
- import React47 from "react";
5278
+ import React52 from "react";
5050
5279
 
5051
5280
  // src/components/Popover/Popover.tsx
5052
- import React46, { useRef as useRef3 } from "react";
5281
+ import React51, { useRef as useRef4 } from "react";
5053
5282
  import { usePress, PressResponder } from "@react-aria/interactions";
5054
5283
  import { useOverlayPosition as useOverlayPosition3, useOverlayTrigger } from "@react-aria/overlays";
5055
5284
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
@@ -5078,8 +5307,8 @@ var Popover2 = (props) => {
5078
5307
  containFocus = false,
5079
5308
  targetRef
5080
5309
  } = props;
5081
- const triggerRef = useRef3(null);
5082
- const overlayRef = useRef3(null);
5310
+ const triggerRef = useRef4(null);
5311
+ const overlayRef = useRef4(null);
5083
5312
  const state = useOverlayTriggerState3(props);
5084
5313
  const {
5085
5314
  overlayProps: popoverProps,
@@ -5098,22 +5327,22 @@ var Popover2 = (props) => {
5098
5327
  state,
5099
5328
  triggerRef
5100
5329
  );
5101
- return /* @__PURE__ */ React46.createElement(PopoverContext.Provider, {
5330
+ return /* @__PURE__ */ React51.createElement(PopoverContext.Provider, {
5102
5331
  value: {
5103
5332
  state
5104
5333
  }
5105
- }, React46.Children.map(props.children, (child) => {
5334
+ }, React51.Children.map(props.children, (child) => {
5106
5335
  if (isComponentType(child, Popover2.Trigger)) {
5107
- return /* @__PURE__ */ React46.createElement(PressResponder, __spreadValues({
5336
+ return /* @__PURE__ */ React51.createElement(PressResponder, __spreadValues({
5108
5337
  ref: triggerRef,
5109
5338
  onPress: state.toggle
5110
- }, triggerProps), /* @__PURE__ */ React46.createElement(PopoverTriggerWrapper, {
5339
+ }, triggerProps), /* @__PURE__ */ React51.createElement(PopoverTriggerWrapper, {
5111
5340
  "data-testid": props["data-testid"],
5112
5341
  "aria-controls": id
5113
5342
  }, child.props.children));
5114
5343
  }
5115
5344
  if (isComponentType(child, Popover2.Panel)) {
5116
- return /* @__PURE__ */ React46.createElement(PopoverWrapper, __spreadProps(__spreadValues(__spreadValues({
5345
+ return /* @__PURE__ */ React51.createElement(PopoverWrapper, __spreadProps(__spreadValues(__spreadValues({
5117
5346
  ref: overlayRef,
5118
5347
  isOpen: state.isOpen,
5119
5348
  onClose: state.close,
@@ -5144,7 +5373,7 @@ var asPopoverButton = (Component, displayName) => {
5144
5373
  state.close();
5145
5374
  onClick == null ? void 0 : onClick(e);
5146
5375
  };
5147
- return /* @__PURE__ */ React46.createElement(Component, __spreadProps(__spreadValues({}, props), {
5376
+ return /* @__PURE__ */ React51.createElement(Component, __spreadProps(__spreadValues({}, props), {
5148
5377
  onClick: handleClick
5149
5378
  }));
5150
5379
  };
@@ -5156,10 +5385,10 @@ Popover2.Button = PopoverButton;
5156
5385
  var PopoverTriggerWrapper = (_a) => {
5157
5386
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
5158
5387
  var _a2;
5159
- const ref = useRef3(null);
5160
- const trigger = React46.Children.only(children);
5388
+ const ref = useRef4(null);
5389
+ const trigger = React51.Children.only(children);
5161
5390
  const { pressProps } = usePress(__spreadProps(__spreadValues({}, rest), { ref }));
5162
- return React46.cloneElement(trigger, __spreadProps(__spreadValues({
5391
+ return React51.cloneElement(trigger, __spreadProps(__spreadValues({
5163
5392
  "ref": ref
5164
5393
  }, mergeProps3(pressProps, trigger.props)), {
5165
5394
  "aria-controls": (_a2 = rest["aria-controls"]) != null ? _a2 : pressProps["aria-controls"]
@@ -5168,11 +5397,11 @@ var PopoverTriggerWrapper = (_a) => {
5168
5397
 
5169
5398
  // src/components/Dropdown/Dropdown.tsx
5170
5399
  var Dropdown = ({ children, content, placement = "bottom-left" }) => {
5171
- return /* @__PURE__ */ React47.createElement(Popover2, {
5400
+ return /* @__PURE__ */ React52.createElement(Popover2, {
5172
5401
  type: "menu",
5173
5402
  placement,
5174
5403
  autoFocus: true
5175
- }, /* @__PURE__ */ React47.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React47.createElement(Popover2.Panel, null, content));
5404
+ }, /* @__PURE__ */ React52.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React52.createElement(Popover2.Panel, null, content));
5176
5405
  };
5177
5406
  var DropdownMenu = ({
5178
5407
  title,
@@ -5181,26 +5410,26 @@ var DropdownMenu = ({
5181
5410
  triggerId,
5182
5411
  setClose = () => void 0
5183
5412
  }) => {
5184
- const menuRef = React47.useRef(null);
5185
- React47.useEffect(() => {
5413
+ const menuRef = React52.useRef(null);
5414
+ React52.useEffect(() => {
5186
5415
  const id = setTimeout(() => {
5187
5416
  var _a, _b, _c;
5188
5417
  return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
5189
5418
  });
5190
5419
  return () => clearTimeout(id);
5191
5420
  }, [menuRef.current]);
5192
- return /* @__PURE__ */ React47.createElement("div", {
5421
+ return /* @__PURE__ */ React52.createElement("div", {
5193
5422
  style: { minWidth: "250px" },
5194
5423
  className: tw("py-3 bg-white")
5195
- }, !!title && /* @__PURE__ */ React47.createElement("div", {
5424
+ }, !!title && /* @__PURE__ */ React52.createElement("div", {
5196
5425
  className: tw("px-4 py-4 text-left text-grey-100 typography-body-default-medium font-semibold")
5197
- }, title), /* @__PURE__ */ React47.createElement("ol", {
5426
+ }, title), /* @__PURE__ */ React52.createElement("ol", {
5198
5427
  role: "menu",
5199
5428
  ref: menuRef,
5200
5429
  id: contentId,
5201
5430
  "aria-labelledby": triggerId
5202
- }, React47.Children.map(children, (child) => {
5203
- return React47.cloneElement(child, { setClose });
5431
+ }, React52.Children.map(children, (child) => {
5432
+ return React52.cloneElement(child, { setClose });
5204
5433
  })));
5205
5434
  };
5206
5435
  var DropdownItem = (_a) => {
@@ -5255,10 +5484,10 @@ var DropdownItem = (_a) => {
5255
5484
  handleSelect();
5256
5485
  }
5257
5486
  };
5258
- const itemContent = /* @__PURE__ */ React47.createElement("div", {
5487
+ const itemContent = /* @__PURE__ */ React52.createElement("div", {
5259
5488
  className: tw("py-3 px-4")
5260
5489
  }, children);
5261
- return /* @__PURE__ */ React47.createElement("li", __spreadProps(__spreadValues({
5490
+ return /* @__PURE__ */ React52.createElement("li", __spreadProps(__spreadValues({
5262
5491
  role: "menuitem",
5263
5492
  tabIndex: -1,
5264
5493
  onClick: handleClick,
@@ -5269,7 +5498,7 @@ var DropdownItem = (_a) => {
5269
5498
  "text-grey-10 cursor-not-allowed": disabled,
5270
5499
  "text-primary-70 hover:text-primary-80": color === "danger" && !disabled
5271
5500
  })
5272
- }), tooltip ? /* @__PURE__ */ React47.createElement(Tooltip, {
5501
+ }), tooltip ? /* @__PURE__ */ React52.createElement(Tooltip, {
5273
5502
  content: tooltip,
5274
5503
  placement: tooltipPlacement,
5275
5504
  inline: false
@@ -5279,9 +5508,9 @@ Dropdown.Menu = DropdownMenu;
5279
5508
  Dropdown.Item = DropdownItem;
5280
5509
 
5281
5510
  // src/components/DropdownMenu/DropdownMenu.tsx
5282
- import React51 from "react";
5511
+ import React56 from "react";
5283
5512
  import { useFilter } from "@react-aria/i18n";
5284
- import { Item as Item3, Section } from "@react-stately/collections";
5513
+ import { Item as Item4, Section } from "@react-stately/collections";
5285
5514
  import { useTreeState } from "@react-stately/tree";
5286
5515
  import { useMenuTriggerState } from "@react-stately/menu";
5287
5516
  import { useOverlayPosition as useOverlayPosition4 } from "@react-aria/overlays";
@@ -5291,36 +5520,40 @@ import { usePress as usePress2, PressResponder as PressResponder2 } from "@react
5291
5520
  import { mergeProps as mergeProps4 } from "@react-aria/utils";
5292
5521
 
5293
5522
  // src/common/DropdownMenu/DropdownMenu.tsx
5294
- import React48 from "react";
5523
+ import React53 from "react";
5295
5524
  var import_tick3 = __toESM(require_tick());
5296
- var DropdownMenu2 = React48.forwardRef(
5525
+ var DropdownMenu2 = React53.forwardRef(
5297
5526
  (_a, ref) => {
5298
5527
  var _b = _a, { maxHeight = "450px", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["maxHeight", "minWidth", "maxWidth", "className", "children"]);
5299
- return /* @__PURE__ */ React48.createElement("div", __spreadValues({
5528
+ return /* @__PURE__ */ React53.createElement("div", __spreadValues({
5300
5529
  ref,
5301
5530
  style: { maxHeight, minWidth, maxWidth },
5302
5531
  className: classNames(
5303
5532
  className,
5304
- "p-3 bg-white w-full overflow-y-auto overflow-x-hidden typography-body-small-medium text-grey-70"
5533
+ "bg-white w-full overflow-y-auto overflow-x-hidden typography-body-small-medium text-grey-70"
5305
5534
  )
5306
5535
  }, props), children);
5307
5536
  }
5308
5537
  );
5309
- var List2 = React48.forwardRef(
5538
+ var ContentContainer = ({ children }) => /* @__PURE__ */ React53.createElement("div", {
5539
+ className: tw("p-3")
5540
+ }, children);
5541
+ DropdownMenu2.ContentContainer = ContentContainer;
5542
+ var List2 = React53.forwardRef(
5310
5543
  (_a, ref) => {
5311
5544
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
5312
- return /* @__PURE__ */ React48.createElement("ul", __spreadValues({
5545
+ return /* @__PURE__ */ React53.createElement("ul", __spreadValues({
5313
5546
  ref
5314
5547
  }, props), children);
5315
5548
  }
5316
5549
  );
5317
5550
  DropdownMenu2.List = List2;
5318
- var Group2 = React48.forwardRef(
5551
+ var Group2 = React53.forwardRef(
5319
5552
  (_a, ref) => {
5320
5553
  var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
5321
- return /* @__PURE__ */ React48.createElement("li", __spreadValues({
5554
+ return /* @__PURE__ */ React53.createElement("li", __spreadValues({
5322
5555
  ref
5323
- }, props), title && /* @__PURE__ */ React48.createElement("div", __spreadValues({
5556
+ }, props), title && /* @__PURE__ */ React53.createElement("div", __spreadValues({
5324
5557
  className: classNames(
5325
5558
  className,
5326
5559
  "p-3 text-grey-40 uppercase cursor-default typography-caption-default font-medium",
@@ -5332,10 +5565,10 @@ var Group2 = React48.forwardRef(
5332
5565
  }
5333
5566
  );
5334
5567
  DropdownMenu2.Group = Group2;
5335
- var Item2 = React48.forwardRef(
5568
+ var Item3 = React53.forwardRef(
5336
5569
  (_a, ref) => {
5337
5570
  var _b = _a, { kind, highlighted, selected, className, icon, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "children"]);
5338
- return /* @__PURE__ */ React48.createElement("li", __spreadValues({
5571
+ return /* @__PURE__ */ React53.createElement("li", __spreadValues({
5339
5572
  ref,
5340
5573
  className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
5341
5574
  "cursor-pointer hover:bg-grey-0": !props.disabled,
@@ -5343,30 +5576,30 @@ var Item2 = React48.forwardRef(
5343
5576
  "text-primary-80": kind === "action",
5344
5577
  "text-grey-20 cursor-not-allowed": props.disabled
5345
5578
  })
5346
- }, props), icon && /* @__PURE__ */ React48.createElement(InlineIcon, {
5579
+ }, props), icon && /* @__PURE__ */ React53.createElement(InlineIcon, {
5347
5580
  icon
5348
- }), /* @__PURE__ */ React48.createElement("span", {
5581
+ }), /* @__PURE__ */ React53.createElement("span", {
5349
5582
  className: tw("grow")
5350
- }, children), selected && /* @__PURE__ */ React48.createElement(InlineIcon, {
5583
+ }, children), selected && /* @__PURE__ */ React53.createElement(InlineIcon, {
5351
5584
  icon: import_tick3.default
5352
5585
  }));
5353
5586
  }
5354
5587
  );
5355
- DropdownMenu2.Item = Item2;
5356
- var Description = ({ disabled, children }) => /* @__PURE__ */ React48.createElement(Typography2.Caption, {
5588
+ DropdownMenu2.Item = Item3;
5589
+ var Description = ({ disabled, children }) => /* @__PURE__ */ React53.createElement(Typography2.Caption, {
5357
5590
  color: disabled ? "grey-20" : "grey-40"
5358
5591
  }, children);
5359
5592
  DropdownMenu2.Description = Description;
5360
5593
  var Separator = (_a) => {
5361
5594
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5362
- return /* @__PURE__ */ React48.createElement("li", __spreadProps(__spreadValues({}, props), {
5595
+ return /* @__PURE__ */ React53.createElement("li", __spreadProps(__spreadValues({}, props), {
5363
5596
  className: classNames(className, tw("m-3 block bg-grey-5 h-[1px]"))
5364
5597
  }));
5365
5598
  };
5366
5599
  DropdownMenu2.Separator = Separator;
5367
5600
  var EmptyStateContainer2 = (_a) => {
5368
5601
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
5369
- return /* @__PURE__ */ React48.createElement("div", __spreadValues({
5602
+ return /* @__PURE__ */ React53.createElement("div", __spreadValues({
5370
5603
  className: classNames(tw("border border-dashed border-grey-10 p-3"), className)
5371
5604
  }, props), children);
5372
5605
  };
@@ -5376,7 +5609,7 @@ DropdownMenu2.EmptyStateContainer = EmptyStateContainer2;
5376
5609
  import uniqueId3 from "lodash/uniqueId";
5377
5610
  import toString from "lodash/toString";
5378
5611
  import omit7 from "lodash/omit";
5379
- import React50, { forwardRef, useState as useState5, useImperativeHandle, useRef as useRef4 } from "react";
5612
+ import React55, { forwardRef, useState as useState6, useImperativeHandle, useRef as useRef5 } from "react";
5380
5613
 
5381
5614
  // src/utils/constants.ts
5382
5615
  var getCommonInputStyles = ({ readOnly, valid }) => tw(
@@ -5390,31 +5623,31 @@ var getCommonInputStyles = ({ readOnly, valid }) => tw(
5390
5623
  );
5391
5624
 
5392
5625
  // src/utils/form/InputAdornment/InputAdornment.tsx
5393
- import React49 from "react";
5626
+ import React54 from "react";
5394
5627
  var import_tick4 = __toESM(require_tick());
5395
5628
  var import_error3 = __toESM(require_error());
5396
5629
  var import_search2 = __toESM(require_search());
5397
5630
  var import_cross4 = __toESM(require_cross());
5398
5631
  var InputAdornment = ({ placement = "right", className, dense, children }) => {
5399
- return /* @__PURE__ */ React49.createElement("span", {
5632
+ return /* @__PURE__ */ React54.createElement("span", {
5400
5633
  className: classNames(className, "absolute inset-y-0 grow-0 text-grey-40 flex items-center mx-3", {
5401
5634
  "right-0": placement === "right",
5402
5635
  "left-0": placement === "left",
5403
5636
  "typography-body-small": dense,
5404
5637
  "typography-body-default-medium": !dense
5405
5638
  })
5406
- }, /* @__PURE__ */ React49.createElement(Flexbox, {
5639
+ }, /* @__PURE__ */ React54.createElement(Flexbox, {
5407
5640
  gap: "3",
5408
5641
  wrap: "wrap"
5409
5642
  }, children));
5410
5643
  };
5411
- var SearchIcon = ({ onClick }) => /* @__PURE__ */ React49.createElement(Icon, {
5644
+ var SearchIcon = ({ onClick }) => /* @__PURE__ */ React54.createElement(Icon, {
5412
5645
  icon: import_search2.default,
5413
5646
  color: "grey-30",
5414
5647
  "data-testid": "icon-search",
5415
5648
  onClick
5416
5649
  });
5417
- var ResetIcon = ({ onClick }) => /* @__PURE__ */ React49.createElement(Icon, {
5650
+ var ResetIcon = ({ onClick }) => /* @__PURE__ */ React54.createElement(Icon, {
5418
5651
  className: "hover:cursor-pointer",
5419
5652
  icon: import_cross4.default,
5420
5653
  color: "grey-30",
@@ -5444,7 +5677,7 @@ var createInput = (displayName, opts = {}) => {
5444
5677
  "readOnly"
5445
5678
  ]);
5446
5679
  var _a2;
5447
- const inputRef = React50.useRef(null);
5680
+ const inputRef = React55.useRef(null);
5448
5681
  useImperativeHandle(ref, () => inputRef.current);
5449
5682
  const handleReset = () => {
5450
5683
  var _a3;
@@ -5457,11 +5690,11 @@ var createInput = (displayName, opts = {}) => {
5457
5690
  el.focus();
5458
5691
  }
5459
5692
  };
5460
- return /* @__PURE__ */ React50.createElement("span", {
5693
+ return /* @__PURE__ */ React55.createElement("span", {
5461
5694
  className: tw("relative block")
5462
- }, opts.adornment && /* @__PURE__ */ React50.createElement(InputAdornment, {
5695
+ }, opts.adornment && /* @__PURE__ */ React55.createElement(InputAdornment, {
5463
5696
  placement: "left"
5464
- }, opts.adornment), /* @__PURE__ */ React50.createElement("input", __spreadProps(__spreadValues({
5697
+ }, opts.adornment), /* @__PURE__ */ React55.createElement("input", __spreadProps(__spreadValues({
5465
5698
  ref: inputRef,
5466
5699
  type
5467
5700
  }, props), {
@@ -5476,34 +5709,34 @@ var createInput = (displayName, opts = {}) => {
5476
5709
  getCommonInputStyles({ readOnly, valid }),
5477
5710
  props.className
5478
5711
  )
5479
- })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React50.createElement(InputAdornment, null, /* @__PURE__ */ React50.createElement(ResetIcon, {
5712
+ })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React55.createElement(InputAdornment, null, /* @__PURE__ */ React55.createElement(ResetIcon, {
5480
5713
  onClick: handleReset
5481
- })), !opts.canReset && endAdornment && /* @__PURE__ */ React50.createElement(InputAdornment, null, endAdornment));
5714
+ })), !opts.canReset && endAdornment && /* @__PURE__ */ React55.createElement(InputAdornment, null, endAdornment));
5482
5715
  }
5483
5716
  );
5484
5717
  InputComponent.displayName = displayName;
5485
- InputComponent.Skeleton = () => /* @__PURE__ */ React50.createElement(Skeleton, {
5718
+ InputComponent.Skeleton = () => /* @__PURE__ */ React55.createElement(Skeleton, {
5486
5719
  height: 38
5487
5720
  });
5488
5721
  return InputComponent;
5489
5722
  };
5490
5723
  var InputBase = createInput("InputBase");
5491
- var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React50.createElement(SearchIcon, null), canReset: true });
5492
- var Input2 = React50.forwardRef((_a, ref) => {
5724
+ var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React55.createElement(SearchIcon, null), canReset: true });
5725
+ var Input2 = React55.forwardRef((_a, ref) => {
5493
5726
  var _b = _a, { readOnly = false } = _b, props = __objRest(_b, ["readOnly"]);
5494
5727
  var _a2, _b2, _c;
5495
- const [value, setValue] = useState5((_b2 = (_a2 = props.value) != null ? _a2 : props.defaultValue) != null ? _b2 : "");
5496
- const id = useRef4((_c = props.id) != null ? _c : `input-${uniqueId3()}`);
5728
+ const [value, setValue] = useState6((_b2 = (_a2 = props.value) != null ? _a2 : props.defaultValue) != null ? _b2 : "");
5729
+ const id = useRef5((_c = props.id) != null ? _c : `input-${uniqueId3()}`);
5497
5730
  const errorMessageId = uniqueId3();
5498
5731
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
5499
5732
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
5500
5733
  const baseProps = omit7(props, Object.keys(labelControlProps));
5501
- return /* @__PURE__ */ React50.createElement(LabelControl, __spreadValues({
5734
+ return /* @__PURE__ */ React55.createElement(LabelControl, __spreadValues({
5502
5735
  id: `${id.current}-label`,
5503
5736
  htmlFor: id.current,
5504
5737
  messageId: errorMessageId,
5505
5738
  length: value !== void 0 ? toString(value).length : void 0
5506
- }, labelControlProps), /* @__PURE__ */ React50.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
5739
+ }, labelControlProps), /* @__PURE__ */ React55.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
5507
5740
  ref
5508
5741
  }, baseProps), errorProps), {
5509
5742
  id: id.current,
@@ -5521,7 +5754,7 @@ var Input2 = React50.forwardRef((_a, ref) => {
5521
5754
  })));
5522
5755
  });
5523
5756
  Input2.displayName = "Input";
5524
- Input2.Skeleton = () => /* @__PURE__ */ React50.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React50.createElement(InputBase.Skeleton, null));
5757
+ Input2.Skeleton = () => /* @__PURE__ */ React55.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React55.createElement(InputBase.Skeleton, null));
5525
5758
  Input2.Skeleton.displayName = "Input.Skeleton";
5526
5759
 
5527
5760
  // src/components/DropdownMenu/utils.ts
@@ -5556,6 +5789,8 @@ var DropdownMenu3 = (_a) => {
5556
5789
  maxWidth,
5557
5790
  searchable = false,
5558
5791
  emptyState,
5792
+ header,
5793
+ footer,
5559
5794
  children
5560
5795
  } = _b, props = __objRest(_b, [
5561
5796
  "onAction",
@@ -5567,10 +5802,12 @@ var DropdownMenu3 = (_a) => {
5567
5802
  "maxWidth",
5568
5803
  "searchable",
5569
5804
  "emptyState",
5805
+ "header",
5806
+ "footer",
5570
5807
  "children"
5571
5808
  ]);
5572
- const triggerRef = React51.useRef(null);
5573
- const overlayRef = React51.useRef(null);
5809
+ const triggerRef = React56.useRef(null);
5810
+ const overlayRef = React56.useRef(null);
5574
5811
  const [trigger, items] = extractTriggerAndItems(children);
5575
5812
  const state = useMenuTriggerState(props);
5576
5813
  const { menuTriggerProps, menuProps } = useMenuTrigger({}, state, triggerRef);
@@ -5581,17 +5818,17 @@ var DropdownMenu3 = (_a) => {
5581
5818
  shouldFlip: true,
5582
5819
  isOpen: state.isOpen
5583
5820
  });
5584
- return /* @__PURE__ */ React51.createElement("div", null, /* @__PURE__ */ React51.createElement(PressResponder2, __spreadValues({
5821
+ return /* @__PURE__ */ React56.createElement("div", null, /* @__PURE__ */ React56.createElement(PressResponder2, __spreadValues({
5585
5822
  ref: triggerRef,
5586
5823
  onPress: () => state.toggle()
5587
- }, menuTriggerProps), /* @__PURE__ */ React51.createElement(TriggerWrapper, null, trigger.props.children)), /* @__PURE__ */ React51.createElement(PopoverWrapper, __spreadValues({
5824
+ }, menuTriggerProps), /* @__PURE__ */ React56.createElement(TriggerWrapper, null, trigger.props.children)), /* @__PURE__ */ React56.createElement(PopoverWrapper, __spreadValues({
5588
5825
  ref: overlayRef,
5589
5826
  isDismissable: true,
5590
5827
  autoFocus: true,
5591
5828
  containFocus: true,
5592
5829
  isOpen: state.isOpen,
5593
5830
  onClose: state.close
5594
- }, overlayProps), /* @__PURE__ */ React51.createElement(MenuWrapper, __spreadValues({
5831
+ }, overlayProps), /* @__PURE__ */ React56.createElement(MenuWrapper, __spreadValues({
5595
5832
  onAction,
5596
5833
  selectionMode,
5597
5834
  selection,
@@ -5599,24 +5836,26 @@ var DropdownMenu3 = (_a) => {
5599
5836
  searchable,
5600
5837
  emptyState,
5601
5838
  minWidth,
5602
- maxWidth
5839
+ maxWidth,
5840
+ header,
5841
+ footer
5603
5842
  }, menuProps), items.props.children)));
5604
5843
  };
5605
5844
  var MenuTrigger = () => null;
5606
5845
  var MenuItems = () => null;
5607
5846
  DropdownMenu3.Trigger = MenuTrigger;
5608
5847
  DropdownMenu3.Items = MenuItems;
5609
- DropdownMenu3.Item = Item3;
5848
+ DropdownMenu3.Item = Item4;
5610
5849
  DropdownMenu3.Section = Section;
5611
5850
  var TriggerWrapper = (_a) => {
5612
5851
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
5613
- const ref = React51.useRef(null);
5852
+ const ref = React56.useRef(null);
5614
5853
  const { pressProps } = usePress2(__spreadProps(__spreadValues({}, props), { ref }));
5615
- const trigger = React51.Children.only(children);
5616
- if (!trigger || !React51.isValidElement(trigger)) {
5854
+ const trigger = React56.Children.only(children);
5855
+ if (!trigger || !React56.isValidElement(trigger)) {
5617
5856
  throw new Error("<DropdownMenu.Trigger> must have valid child");
5618
5857
  }
5619
- return React51.cloneElement(trigger, __spreadValues({ ref }, mergeProps4(pressProps, props)));
5858
+ return React56.cloneElement(trigger, __spreadValues({ ref }, mergeProps4(pressProps, props)));
5620
5859
  };
5621
5860
  var isSectionNode = (item) => item.type === "section";
5622
5861
  var isItemNode = (item) => item.type === "item";
@@ -5626,15 +5865,19 @@ var MenuWrapper = (_a) => {
5626
5865
  minWidth,
5627
5866
  maxWidth,
5628
5867
  searchable,
5629
- emptyState
5868
+ emptyState,
5869
+ header,
5870
+ footer
5630
5871
  } = _b, props = __objRest(_b, [
5631
5872
  "selection",
5632
5873
  "minWidth",
5633
5874
  "maxWidth",
5634
5875
  "searchable",
5635
- "emptyState"
5876
+ "emptyState",
5877
+ "header",
5878
+ "footer"
5636
5879
  ]);
5637
- const ref = React51.useRef(null);
5880
+ const ref = React56.useRef(null);
5638
5881
  const disabledKeys = getDisabledItemKeys(props.children);
5639
5882
  const state = useTreeState(__spreadValues({
5640
5883
  disabledKeys,
@@ -5642,46 +5885,46 @@ var MenuWrapper = (_a) => {
5642
5885
  }, props));
5643
5886
  const { menuProps } = useMenu(props, state, ref);
5644
5887
  const { contains } = useFilter({ sensitivity: "base" });
5645
- const [search, setSearch] = React51.useState("");
5646
- const filteredCollection = React51.useMemo(
5888
+ const [search, setSearch] = React56.useState("");
5889
+ const filteredCollection = React56.useMemo(
5647
5890
  () => searchable ? filterCollection(state.collection, search, contains) : state.collection,
5648
5891
  [state.collection, search, contains]
5649
5892
  );
5650
- return /* @__PURE__ */ React51.createElement(DropdownMenu2, {
5893
+ return /* @__PURE__ */ React56.createElement(DropdownMenu2, {
5651
5894
  minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
5652
5895
  maxWidth: maxWidth !== void 0 ? `${maxWidth}px` : void 0
5653
- }, searchable && /* @__PURE__ */ React51.createElement(SearchInput, {
5896
+ }, header, /* @__PURE__ */ React56.createElement(DropdownMenu2.ContentContainer, null, searchable && /* @__PURE__ */ React56.createElement(SearchInput, {
5654
5897
  "aria-label": "search",
5655
5898
  value: search,
5656
5899
  onChange: (e) => setSearch(e.target.value),
5657
5900
  className: tw("mb-5")
5658
- }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React51.createElement(DropdownMenu2.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React51.createElement(DropdownMenu2.List, __spreadValues({
5901
+ }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React56.createElement(DropdownMenu2.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React56.createElement(DropdownMenu2.List, __spreadValues({
5659
5902
  ref
5660
5903
  }, menuProps), Array.from(filteredCollection).map((item) => {
5661
5904
  if (isSectionNode(item)) {
5662
- return /* @__PURE__ */ React51.createElement(SectionWrapper, {
5905
+ return /* @__PURE__ */ React56.createElement(SectionWrapper, {
5663
5906
  key: item.key,
5664
5907
  section: item,
5665
5908
  state
5666
5909
  });
5667
5910
  } else if (isItemNode(item)) {
5668
- return /* @__PURE__ */ React51.createElement(ItemWrapper, {
5911
+ return /* @__PURE__ */ React56.createElement(ItemWrapper, {
5669
5912
  key: item.key,
5670
5913
  item,
5671
5914
  state
5672
5915
  });
5673
5916
  }
5674
- })));
5917
+ }))), footer);
5675
5918
  };
5676
5919
  var ItemWrapper = ({ item, state }) => {
5677
- const ref = React51.useRef(null);
5920
+ const ref = React56.useRef(null);
5678
5921
  const { menuItemProps, descriptionProps, isSelected, isFocused, isDisabled } = useMenuItem(
5679
5922
  { key: item.key },
5680
5923
  state,
5681
5924
  ref
5682
5925
  );
5683
5926
  const { icon, description, kind = "default" } = item.props;
5684
- return /* @__PURE__ */ React51.createElement(DropdownMenu2.Item, __spreadProps(__spreadValues({
5927
+ return /* @__PURE__ */ React56.createElement(DropdownMenu2.Item, __spreadProps(__spreadValues({
5685
5928
  ref
5686
5929
  }, menuItemProps), {
5687
5930
  kind,
@@ -5689,7 +5932,7 @@ var ItemWrapper = ({ item, state }) => {
5689
5932
  highlighted: isFocused,
5690
5933
  disabled: isDisabled,
5691
5934
  icon
5692
- }), item.rendered, description && /* @__PURE__ */ React51.createElement(DropdownMenu2.Description, __spreadValues({
5935
+ }), item.rendered, description && /* @__PURE__ */ React56.createElement(DropdownMenu2.Description, __spreadValues({
5693
5936
  disabled: isDisabled
5694
5937
  }, descriptionProps), description));
5695
5938
  };
@@ -5701,29 +5944,29 @@ var SectionWrapper = ({ section, state }) => {
5701
5944
  const { separatorProps } = useSeparator({
5702
5945
  elementType: "li"
5703
5946
  });
5704
- return /* @__PURE__ */ React51.createElement(React51.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React51.createElement(DropdownMenu2.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React51.createElement(DropdownMenu2.Group, __spreadValues({
5947
+ return /* @__PURE__ */ React56.createElement(React56.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React56.createElement(DropdownMenu2.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React56.createElement(DropdownMenu2.Group, __spreadValues({
5705
5948
  title: section.rendered,
5706
5949
  titleProps: headingProps
5707
- }, itemProps), /* @__PURE__ */ React51.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React51.createElement(ItemWrapper, {
5950
+ }, itemProps), /* @__PURE__ */ React56.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React56.createElement(ItemWrapper, {
5708
5951
  key: node.key,
5709
5952
  item: node,
5710
5953
  state
5711
5954
  })))));
5712
5955
  };
5713
5956
  var extractTriggerAndItems = (children) => {
5714
- const [trigger, items] = React51.Children.toArray(children);
5957
+ const [trigger, items] = React56.Children.toArray(children);
5715
5958
  if (!isComponentType(trigger, MenuTrigger) || !isComponentType(items, MenuItems)) {
5716
5959
  throw new Error("<DropdownMenu> must have <DropdownMenu.Trigger> and <DropdownMenu.Items> defined");
5717
5960
  }
5718
5961
  return [trigger, items];
5719
5962
  };
5720
5963
  var getDisabledItemKeys = (children) => {
5721
- const keys = React51.Children.map(children, (child) => {
5964
+ const keys = React56.Children.map(children, (child) => {
5722
5965
  var _a, _b;
5723
5966
  if (!child || typeof child === "function") {
5724
5967
  return null;
5725
5968
  }
5726
- if (isComponentType(child, Item3) && child.props.disabled) {
5969
+ if (isComponentType(child, Item4) && child.props.disabled) {
5727
5970
  return (_b = (_a = child.key) == null ? void 0 : _a.toString()) != null ? _b : null;
5728
5971
  }
5729
5972
  if (isComponentType(child, Section)) {
@@ -5735,10 +5978,10 @@ var getDisabledItemKeys = (children) => {
5735
5978
  };
5736
5979
 
5737
5980
  // src/components/EmptyState/EmptyState.tsx
5738
- import React53 from "react";
5981
+ import React58 from "react";
5739
5982
 
5740
5983
  // src/components/Flexbox/FlexboxItem.tsx
5741
- import React52 from "react";
5984
+ import React57 from "react";
5742
5985
  var FlexboxItem = Tailwindify(
5743
5986
  ({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
5744
5987
  const hookStyle = useStyle({
@@ -5750,7 +5993,7 @@ var FlexboxItem = Tailwindify(
5750
5993
  alignSelf
5751
5994
  });
5752
5995
  const HtmlElement = htmlTag;
5753
- return /* @__PURE__ */ React52.createElement(HtmlElement, {
5996
+ return /* @__PURE__ */ React57.createElement(HtmlElement, {
5754
5997
  style: __spreadValues(__spreadValues({}, hookStyle), style),
5755
5998
  className
5756
5999
  }, children);
@@ -5808,7 +6051,7 @@ var EmptyState = ({
5808
6051
  borderStyle = "dashed"
5809
6052
  }) => {
5810
6053
  const template = layoutStyle(layout);
5811
- return /* @__PURE__ */ React53.createElement(Box, {
6054
+ return /* @__PURE__ */ React58.createElement(Box, {
5812
6055
  className: classNames(
5813
6056
  tw("rounded", {
5814
6057
  "border border-dashed": borderStyle === "dashed",
@@ -5820,38 +6063,38 @@ var EmptyState = ({
5820
6063
  backgroundColor: "transparent",
5821
6064
  borderColor: "grey-10",
5822
6065
  padding: "9"
5823
- }, /* @__PURE__ */ React53.createElement(Flexbox, {
6066
+ }, /* @__PURE__ */ React58.createElement(Flexbox, {
5824
6067
  direction: template.layout,
5825
6068
  justifyContent: template.justifyContent,
5826
6069
  alignItems: template.layout === "row" ? "center" : template.alignItems,
5827
6070
  colGap: "l5",
5828
6071
  rowGap: "8"
5829
- }, image && /* @__PURE__ */ React53.createElement(FlexboxItem, null, /* @__PURE__ */ React53.createElement("img", {
6072
+ }, image && /* @__PURE__ */ React58.createElement(FlexboxItem, null, /* @__PURE__ */ React58.createElement("img", {
5830
6073
  src: image,
5831
6074
  alt: imageAlt,
5832
6075
  style: { width: imageWidth ? `${imageWidth}px` : void 0, height: "auto" }
5833
- })), /* @__PURE__ */ React53.createElement(Flexbox, {
6076
+ })), /* @__PURE__ */ React58.createElement(Flexbox, {
5834
6077
  style: { maxWidth: "610px" },
5835
6078
  direction: "column",
5836
6079
  justifyContent: template.justifyContent,
5837
6080
  alignItems: template.alignItems
5838
- }, /* @__PURE__ */ React53.createElement(Typography2, {
6081
+ }, /* @__PURE__ */ React58.createElement(Typography2, {
5839
6082
  variant: "heading-xl",
5840
6083
  htmlTag: "h2"
5841
- }, title), description && /* @__PURE__ */ React53.createElement(Box, {
6084
+ }, title), description && /* @__PURE__ */ React58.createElement(Box, {
5842
6085
  marginTop: "5"
5843
- }, /* @__PURE__ */ React53.createElement(Typography2, {
6086
+ }, /* @__PURE__ */ React58.createElement(Typography2, {
5844
6087
  variant: "body-default",
5845
6088
  color: "grey-60"
5846
- }, description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React53.createElement(Flexbox, {
6089
+ }, description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React58.createElement(Flexbox, {
5847
6090
  marginTop: "7",
5848
6091
  gap: "4",
5849
6092
  justifyContent: "center",
5850
6093
  alignItems: "center",
5851
6094
  wrap: "wrap"
5852
- }, primaryAction && /* @__PURE__ */ React53.createElement(PrimaryButton, __spreadValues({}, omit8(primaryAction, "text")), primaryAction.text), secondaryAction && /* @__PURE__ */ React53.createElement(SecondaryButton, __spreadValues({}, omit8(secondaryAction, "text")), secondaryAction.text)), footer && /* @__PURE__ */ React53.createElement(Box, {
6095
+ }, primaryAction && /* @__PURE__ */ React58.createElement(PrimaryButton, __spreadValues({}, omit8(primaryAction, "text")), primaryAction.text), secondaryAction && /* @__PURE__ */ React58.createElement(SecondaryButton, __spreadValues({}, omit8(secondaryAction, "text")), secondaryAction.text)), footer && /* @__PURE__ */ React58.createElement(Box, {
5853
6096
  marginTop: "7"
5854
- }, /* @__PURE__ */ React53.createElement(Typography2, {
6097
+ }, /* @__PURE__ */ React58.createElement(Typography2, {
5855
6098
  htmlTag: "div",
5856
6099
  variant: "body-small",
5857
6100
  color: "grey-60"
@@ -5859,7 +6102,7 @@ var EmptyState = ({
5859
6102
  };
5860
6103
 
5861
6104
  // src/components/Grid/GridItem.tsx
5862
- import React54 from "react";
6105
+ import React59 from "react";
5863
6106
  var GridItem = Tailwindify(
5864
6107
  ({
5865
6108
  htmlTag = "div",
@@ -5890,7 +6133,7 @@ var GridItem = Tailwindify(
5890
6133
  gridRowEnd: rowEnd
5891
6134
  });
5892
6135
  const HtmlElement = htmlTag;
5893
- return /* @__PURE__ */ React54.createElement(HtmlElement, {
6136
+ return /* @__PURE__ */ React59.createElement(HtmlElement, {
5894
6137
  style: __spreadValues(__spreadValues({}, hookStyle), style),
5895
6138
  className
5896
6139
  }, children);
@@ -5898,23 +6141,23 @@ var GridItem = Tailwindify(
5898
6141
  );
5899
6142
 
5900
6143
  // src/components/List/List.tsx
5901
- import React55 from "react";
5902
- var List = ({ items, renderItem, container = React55.Fragment }) => {
6144
+ import React60 from "react";
6145
+ var List = ({ items, renderItem, container = React60.Fragment }) => {
5903
6146
  const Component = container;
5904
- return /* @__PURE__ */ React55.createElement(Component, null, items.map(renderItem));
6147
+ return /* @__PURE__ */ React60.createElement(Component, null, items.map(renderItem));
5905
6148
  };
5906
6149
 
5907
6150
  // src/components/ListItem/ListItem.tsx
5908
- import React56 from "react";
6151
+ import React61 from "react";
5909
6152
  var ListItem = ({ name, icon, active = false }) => {
5910
- return /* @__PURE__ */ React56.createElement(Flexbox, {
6153
+ return /* @__PURE__ */ React61.createElement(Flexbox, {
5911
6154
  alignItems: "center"
5912
- }, /* @__PURE__ */ React56.createElement(Typography2, {
6155
+ }, /* @__PURE__ */ React61.createElement(Typography2, {
5913
6156
  variant: active ? "body-small-medium" : "body-small",
5914
6157
  color: "grey-70",
5915
6158
  htmlTag: "span",
5916
6159
  className: `px-4 py-2 rounded-full ${active ? "bg-grey-5" : "hover:bg-grey-0"}`
5917
- }, /* @__PURE__ */ React56.createElement("img", {
6160
+ }, /* @__PURE__ */ React61.createElement("img", {
5918
6161
  src: icon,
5919
6162
  alt: name,
5920
6163
  className: "inline mr-4",
@@ -5924,7 +6167,7 @@ var ListItem = ({ name, icon, active = false }) => {
5924
6167
  };
5925
6168
 
5926
6169
  // src/components/Modal/Modal.tsx
5927
- import React58 from "react";
6170
+ import React63 from "react";
5928
6171
  import castArray from "lodash/castArray";
5929
6172
  import omit9 from "lodash/omit";
5930
6173
  import { Overlay as Overlay2, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
@@ -5934,18 +6177,18 @@ import { useId as useId2 } from "@react-aria/utils";
5934
6177
  import { useOverlayTriggerState as useOverlayTriggerState4 } from "@react-stately/overlays";
5935
6178
 
5936
6179
  // src/components/Tabs/Tabs.tsx
5937
- import React57, { useRef as useRef5, useState as useState6, useEffect as useEffect4, useLayoutEffect } from "react";
6180
+ import React62, { useRef as useRef6, useState as useState7, useEffect as useEffect5, useLayoutEffect as useLayoutEffect2 } from "react";
5938
6181
  import kebabCase from "lodash/kebabCase";
5939
6182
  import isNumber4 from "lodash/isNumber";
5940
6183
  var import_warningSign3 = __toESM(require_warningSign());
5941
- var import_chevronLeft = __toESM(require_chevronLeft());
5942
- var import_chevronRight = __toESM(require_chevronRight());
6184
+ var import_chevronLeft2 = __toESM(require_chevronLeft());
6185
+ var import_chevronRight2 = __toESM(require_chevronRight());
5943
6186
  var isTabComponent = (c) => {
5944
- return React57.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
6187
+ return React62.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
5945
6188
  };
5946
- var Tab = React57.forwardRef(
6189
+ var Tab = React62.forwardRef(
5947
6190
  ({ className, id, title, children }, ref) => {
5948
- return /* @__PURE__ */ React57.createElement("div", {
6191
+ return /* @__PURE__ */ React62.createElement("div", {
5949
6192
  ref,
5950
6193
  id: `${id != null ? id : kebabCase(title)}-panel`,
5951
6194
  className,
@@ -5957,14 +6200,14 @@ var Tab = React57.forwardRef(
5957
6200
  );
5958
6201
  var TabContainer = (_a) => {
5959
6202
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
5960
- return /* @__PURE__ */ React57.createElement("div", __spreadProps(__spreadValues({}, rest), {
6203
+ return /* @__PURE__ */ React62.createElement("div", __spreadProps(__spreadValues({}, rest), {
5961
6204
  className: classNames("py-6 z-0", className)
5962
6205
  }), children);
5963
6206
  };
5964
6207
  var ModalTab = Tab;
5965
6208
  var ModalTabContainer = TabContainer;
5966
6209
  var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
5967
- const Tab2 = React57.forwardRef(
6210
+ const Tab2 = React62.forwardRef(
5968
6211
  (_a, ref) => {
5969
6212
  var _b = _a, {
5970
6213
  id,
@@ -5994,17 +6237,17 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
5994
6237
  const _id = id != null ? id : kebabCase(title);
5995
6238
  let statusIcon = void 0;
5996
6239
  if (status === "warning") {
5997
- statusIcon = /* @__PURE__ */ React57.createElement(InlineIcon, {
6240
+ statusIcon = /* @__PURE__ */ React62.createElement(InlineIcon, {
5998
6241
  icon: import_warningSign3.default,
5999
6242
  color: "warning-80"
6000
6243
  });
6001
6244
  } else if (status === "error") {
6002
- statusIcon = /* @__PURE__ */ React57.createElement(InlineIcon, {
6245
+ statusIcon = /* @__PURE__ */ React62.createElement(InlineIcon, {
6003
6246
  icon: import_warningSign3.default,
6004
6247
  color: "error-50"
6005
6248
  });
6006
6249
  }
6007
- const tab = /* @__PURE__ */ React57.createElement(Component, __spreadValues({
6250
+ const tab = /* @__PURE__ */ React62.createElement(Component, __spreadValues({
6008
6251
  ref,
6009
6252
  id: `${_id}-tab`,
6010
6253
  onClick: () => !disabled && onSelected(value != null ? value : index),
@@ -6021,24 +6264,24 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6021
6264
  "aria-selected": selected,
6022
6265
  "aria-controls": `${_id}-panel`,
6023
6266
  tabIndex: disabled ? void 0 : 0
6024
- }, rest), /* @__PURE__ */ React57.createElement(Typography2, {
6267
+ }, rest), /* @__PURE__ */ React62.createElement(Typography2, {
6025
6268
  htmlTag: "div",
6026
6269
  variant: "body-small",
6027
6270
  color: selected ? "primary-80" : disabled ? "grey-20" : "current",
6028
6271
  className: tw("inline-flex items-center gap-3")
6029
- }, /* @__PURE__ */ React57.createElement("span", {
6272
+ }, /* @__PURE__ */ React62.createElement("span", {
6030
6273
  className: tw("whitespace-nowrap")
6031
- }, title), isNumber4(badge) && /* @__PURE__ */ React57.createElement(Typography2, {
6274
+ }, title), isNumber4(badge) && /* @__PURE__ */ React62.createElement(Typography2, {
6032
6275
  htmlTag: "span",
6033
6276
  variant: "body-small",
6034
6277
  color: selected ? "primary-80" : "grey-5",
6035
6278
  className: "leading-none"
6036
- }, /* @__PURE__ */ React57.createElement(TabBadge, {
6279
+ }, /* @__PURE__ */ React62.createElement(TabBadge, {
6037
6280
  kind: "filled",
6038
6281
  value: badge,
6039
6282
  textClassname: classNames({ "text-white": selected, "text-grey-50": !selected })
6040
6283
  })), statusIcon));
6041
- return tooltip ? /* @__PURE__ */ React57.createElement(Tooltip, {
6284
+ return tooltip ? /* @__PURE__ */ React62.createElement(Tooltip, {
6042
6285
  content: tooltip
6043
6286
  }, tab) : tab;
6044
6287
  }
@@ -6051,21 +6294,21 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6051
6294
  const Tabs2 = (props) => {
6052
6295
  var _a, _b;
6053
6296
  const { className, value, defaultValue, onChange, children } = props;
6054
- const childArr = React57.Children.toArray(children);
6297
+ const childArr = React62.Children.toArray(children);
6055
6298
  const firstTab = childArr[0];
6056
6299
  const firstTabValue = isTabComponent(firstTab) ? firstTab.props.value : -1;
6057
- const [selected, setSelected] = useState6((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
6058
- const [leftCaret, showLeftCaret] = useState6(false);
6059
- const [rightCaret, showRightCaret] = useState6(false);
6060
- const parentRef = useRef5(null);
6061
- const containerRef = useRef5(null);
6062
- const tabsRef = useRef5(null);
6063
- useEffect4(() => {
6300
+ const [selected, setSelected] = useState7((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
6301
+ const [leftCaret, showLeftCaret] = useState7(false);
6302
+ const [rightCaret, showRightCaret] = useState7(false);
6303
+ const parentRef = useRef6(null);
6304
+ const containerRef = useRef6(null);
6305
+ const tabsRef = useRef6(null);
6306
+ useEffect5(() => {
6064
6307
  if (value !== void 0) {
6065
6308
  setSelected(value);
6066
6309
  }
6067
6310
  }, [value]);
6068
- useLayoutEffect(() => {
6311
+ useLayoutEffect2(() => {
6069
6312
  var _a2;
6070
6313
  const updateCarets = () => {
6071
6314
  const pEl = parentRef.current;
@@ -6137,27 +6380,27 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6137
6380
  const handleSelected = (key) => {
6138
6381
  (onChange != null ? onChange : setSelected)(key);
6139
6382
  };
6140
- React57.Children.forEach(children, (c) => {
6383
+ React62.Children.forEach(children, (c) => {
6141
6384
  if (c && !isTabComponent(c)) {
6142
6385
  throw new Error("<Tabs> can only have <Tabs.Tab> components as children");
6143
6386
  }
6144
6387
  });
6145
- return /* @__PURE__ */ React57.createElement("div", {
6388
+ return /* @__PURE__ */ React62.createElement("div", {
6146
6389
  ref: parentRef,
6147
6390
  className: classNames(tw("h-full"), className)
6148
- }, /* @__PURE__ */ React57.createElement("div", {
6391
+ }, /* @__PURE__ */ React62.createElement("div", {
6149
6392
  className: tw("relative flex items-center h-full border-b-2 border-grey-10")
6150
- }, /* @__PURE__ */ React57.createElement("div", {
6393
+ }, /* @__PURE__ */ React62.createElement("div", {
6151
6394
  ref: containerRef,
6152
6395
  className: tw("overflow-y-auto scrollbar-hide h-full mb-[-2px]")
6153
- }, /* @__PURE__ */ React57.createElement("div", {
6396
+ }, /* @__PURE__ */ React62.createElement("div", {
6154
6397
  ref: tabsRef,
6155
6398
  role: "tablist",
6156
6399
  "aria-label": "tabs",
6157
6400
  className: tw("inline-flex items-center cursor-pointer font-normal h-full")
6158
- }, React57.Children.map(
6401
+ }, React62.Children.map(
6159
6402
  children,
6160
- (tab, index) => tab ? /* @__PURE__ */ React57.createElement(TabItemComponent, __spreadProps(__spreadValues({
6403
+ (tab, index) => tab ? /* @__PURE__ */ React62.createElement(TabItemComponent, __spreadProps(__spreadValues({
6161
6404
  key: tab.props.value
6162
6405
  }, tab.props), {
6163
6406
  index,
@@ -6165,28 +6408,28 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6165
6408
  onKeyDown: handleKeyDown,
6166
6409
  onSelected: handleSelected
6167
6410
  })) : void 0
6168
- ))), leftCaret && /* @__PURE__ */ React57.createElement("div", {
6411
+ ))), leftCaret && /* @__PURE__ */ React62.createElement("div", {
6169
6412
  className: tw("absolute left-0 bg-gradient-to-r from-white via-white z-20 py-3 pr-4")
6170
- }, /* @__PURE__ */ React57.createElement("div", {
6413
+ }, /* @__PURE__ */ React62.createElement("div", {
6171
6414
  onClick: () => handleScrollToNext("left"),
6172
6415
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
6173
- }, /* @__PURE__ */ React57.createElement(InlineIcon, {
6174
- icon: import_chevronLeft.default
6175
- }))), rightCaret && /* @__PURE__ */ React57.createElement("div", {
6416
+ }, /* @__PURE__ */ React62.createElement(InlineIcon, {
6417
+ icon: import_chevronLeft2.default
6418
+ }))), rightCaret && /* @__PURE__ */ React62.createElement("div", {
6176
6419
  onClick: () => handleScrollToNext("right"),
6177
6420
  className: tw("absolute right-0 bg-gradient-to-l from-white via-white z-20 py-3 pl-4")
6178
- }, /* @__PURE__ */ React57.createElement("div", {
6421
+ }, /* @__PURE__ */ React62.createElement("div", {
6179
6422
  onClick: () => handleScrollToNext("right"),
6180
6423
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
6181
- }, /* @__PURE__ */ React57.createElement(InlineIcon, {
6182
- icon: import_chevronRight.default
6424
+ }, /* @__PURE__ */ React62.createElement(InlineIcon, {
6425
+ icon: import_chevronRight2.default
6183
6426
  })))), renderChildren(children, selected, props));
6184
6427
  };
6185
6428
  Tabs2.displayName = displayName;
6186
6429
  Tabs2.Tab = TabComponent;
6187
6430
  return Tabs2;
6188
6431
  };
6189
- var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React57.createElement(TabContainer, null, children.find(
6432
+ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React62.createElement(TabContainer, null, children.find(
6190
6433
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
6191
6434
  )));
6192
6435
 
@@ -6202,7 +6445,7 @@ var Modal2 = ({
6202
6445
  secondaryActions,
6203
6446
  size
6204
6447
  }) => {
6205
- const ref = React58.useRef(null);
6448
+ const ref = React63.useRef(null);
6206
6449
  const state = useOverlayTriggerState4({ isOpen: open });
6207
6450
  const { modalProps, underlayProps } = useModalOverlay2({ isDismissable: false }, state, ref);
6208
6451
  const labelledBy = useId2();
@@ -6214,33 +6457,33 @@ var Modal2 = ({
6214
6457
  if (!open) {
6215
6458
  return null;
6216
6459
  }
6217
- return /* @__PURE__ */ React58.createElement(Overlay2, null, /* @__PURE__ */ React58.createElement(Modal, {
6460
+ return /* @__PURE__ */ React63.createElement(Overlay2, null, /* @__PURE__ */ React63.createElement(Modal, {
6218
6461
  open: state.isOpen
6219
- }, /* @__PURE__ */ React58.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React58.createElement(FocusScope3, {
6462
+ }, /* @__PURE__ */ React63.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React63.createElement(FocusScope3, {
6220
6463
  contain: true,
6221
6464
  restoreFocus: true,
6222
6465
  autoFocus: true
6223
- }, /* @__PURE__ */ React58.createElement(Modal.Dialog, __spreadValues(__spreadValues({
6466
+ }, /* @__PURE__ */ React63.createElement(Modal.Dialog, __spreadValues(__spreadValues({
6224
6467
  ref,
6225
6468
  size
6226
- }, modalProps), dialogProps), /* @__PURE__ */ React58.createElement(Modal.Header, {
6469
+ }, modalProps), dialogProps), /* @__PURE__ */ React63.createElement(Modal.Header, {
6227
6470
  className: tw({ "pb-3": isComponentType(children, ModalTabs) })
6228
- }, /* @__PURE__ */ React58.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React58.createElement(Modal.Title, {
6471
+ }, /* @__PURE__ */ React63.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React63.createElement(Modal.Title, {
6229
6472
  id: labelledBy
6230
- }, title), subtitle && /* @__PURE__ */ React58.createElement(Modal.Subtitle, null, subtitle)), /* @__PURE__ */ React58.createElement(IconButton, {
6473
+ }, title), subtitle && /* @__PURE__ */ React63.createElement(Modal.Subtitle, null, subtitle)), /* @__PURE__ */ React63.createElement(IconButton, {
6231
6474
  "aria-label": "Close",
6232
6475
  icon: import_cross5.default,
6233
6476
  onClick: onClose
6234
- })), isComponentType(children, ModalTabs) ? React58.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React58.createElement(Modal.Body, {
6477
+ })), isComponentType(children, ModalTabs) ? React63.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React63.createElement(Modal.Body, {
6235
6478
  id: describedBy,
6236
6479
  tabIndex: 0,
6237
6480
  noFooter: !(secondaryActions || primaryAction)
6238
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React58.createElement(Modal.Footer, null, /* @__PURE__ */ React58.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a) => {
6481
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React63.createElement(Modal.Footer, null, /* @__PURE__ */ React63.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a) => {
6239
6482
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
6240
- return /* @__PURE__ */ React58.createElement(SecondaryButton, __spreadValues({
6483
+ return /* @__PURE__ */ React63.createElement(SecondaryButton, __spreadValues({
6241
6484
  key: text
6242
6485
  }, action), text);
6243
- }), primaryAction && /* @__PURE__ */ React58.createElement(PrimaryButton, __spreadValues({
6486
+ }), primaryAction && /* @__PURE__ */ React63.createElement(PrimaryButton, __spreadValues({
6244
6487
  key: primaryAction.text
6245
6488
  }, omit9(primaryAction, "text")), primaryAction.text)))))));
6246
6489
  };
@@ -6248,9 +6491,9 @@ var ModalTabs = createTabsComponent(
6248
6491
  ModalTab,
6249
6492
  TabItem,
6250
6493
  "ModalTabs",
6251
- (children, selected, props) => /* @__PURE__ */ React58.createElement(Modal.Body, {
6494
+ (children, selected, props) => /* @__PURE__ */ React63.createElement(Modal.Body, {
6252
6495
  maxHeight: props.maxHeight
6253
- }, /* @__PURE__ */ React58.createElement(ModalTabContainer, null, children.find(
6496
+ }, /* @__PURE__ */ React63.createElement(ModalTabContainer, null, children.find(
6254
6497
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
6255
6498
  )))
6256
6499
  );
@@ -6260,12 +6503,12 @@ import castArray2 from "lodash/castArray";
6260
6503
  import identity from "lodash/identity";
6261
6504
  import uniqueId4 from "lodash/uniqueId";
6262
6505
  import omit10 from "lodash/omit";
6263
- import React60, { useEffect as useEffect5, useRef as useRef6, useState as useState7 } from "react";
6506
+ import React65, { useEffect as useEffect6, useRef as useRef7, useState as useState8 } from "react";
6264
6507
 
6265
6508
  // src/components/MultiInput/InputChip.tsx
6266
6509
  var import_smallCross = __toESM(require_smallCross());
6267
- import React59 from "react";
6268
- var InputChip = React59.forwardRef(
6510
+ import React64 from "react";
6511
+ var InputChip = React64.forwardRef(
6269
6512
  (_a, ref) => {
6270
6513
  var _b = _a, { invalid = false, disabled, readOnly, className, onClick: _onClick, children } = _b, props = __objRest(_b, ["invalid", "disabled", "readOnly", "className", "onClick", "children"]);
6271
6514
  const onClick = (e) => {
@@ -6273,7 +6516,7 @@ var InputChip = React59.forwardRef(
6273
6516
  _onClick == null ? void 0 : _onClick(e);
6274
6517
  }
6275
6518
  };
6276
- return /* @__PURE__ */ React59.createElement("div", __spreadValues({
6519
+ return /* @__PURE__ */ React64.createElement("div", __spreadValues({
6277
6520
  ref,
6278
6521
  role: "button",
6279
6522
  className: classNames(className, "inline-flex align-middle mx-1 px-2 py-1 items-center rounded-sm break-all", {
@@ -6283,10 +6526,10 @@ var InputChip = React59.forwardRef(
6283
6526
  "bg-grey-5 pointer-events-none": disabled
6284
6527
  }),
6285
6528
  onClick
6286
- }, props), /* @__PURE__ */ React59.createElement(Typography2, {
6529
+ }, props), /* @__PURE__ */ React64.createElement(Typography2, {
6287
6530
  variant: "body-small",
6288
6531
  color: invalid ? "error-80" : disabled ? "grey-40" : "grey-70"
6289
- }, children), !readOnly && /* @__PURE__ */ React59.createElement("div", null, /* @__PURE__ */ React59.createElement(Icon, {
6532
+ }, children), !readOnly && /* @__PURE__ */ React64.createElement("div", null, /* @__PURE__ */ React64.createElement(Icon, {
6290
6533
  icon: import_smallCross.default,
6291
6534
  className: tw("ml-2", {
6292
6535
  "text-error-70": invalid,
@@ -6342,11 +6585,11 @@ var MultiInputBase = (_a) => {
6342
6585
  "valid"
6343
6586
  ]);
6344
6587
  var _a2;
6345
- const inputRef = useRef6(null);
6346
- const [items, setItems] = useState7((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
6347
- const [hasFocus, setFocus] = useState7(false);
6588
+ const inputRef = useRef7(null);
6589
+ const [items, setItems] = useState8((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
6590
+ const [hasFocus, setFocus] = useState8(false);
6348
6591
  const keyCodes = [delimiter !== "enter" ? " " : null, delimiter !== "space" ? "Enter" : null].filter(identity);
6349
- useEffect5(() => {
6592
+ useEffect6(() => {
6350
6593
  const requiresUpdate = value !== void 0 || defaultValue === void 0;
6351
6594
  if (requiresUpdate && JSON.stringify(value) !== JSON.stringify(items)) {
6352
6595
  setItems(value != null ? value : []);
@@ -6422,7 +6665,7 @@ var MultiInputBase = (_a) => {
6422
6665
  };
6423
6666
  const renderChips = () => items == null ? void 0 : items.map((item, index) => {
6424
6667
  var _a3;
6425
- return /* @__PURE__ */ React60.createElement(InputChip, {
6668
+ return /* @__PURE__ */ React65.createElement(InputChip, {
6426
6669
  key: `${itemToString(item)}.${index}`,
6427
6670
  invalid: !((_a3 = isItemValid == null ? void 0 : isItemValid(item, index)) != null ? _a3 : true),
6428
6671
  readOnly,
@@ -6433,11 +6676,11 @@ var MultiInputBase = (_a) => {
6433
6676
  }
6434
6677
  }, itemToString(item));
6435
6678
  });
6436
- return /* @__PURE__ */ React60.createElement("div", null, /* @__PURE__ */ React60.createElement(Select.InputContainer, {
6679
+ return /* @__PURE__ */ React65.createElement("div", null, /* @__PURE__ */ React65.createElement(Select.InputContainer, {
6437
6680
  variant: disabled ? "disabled" : valid === false ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
6438
- }, /* @__PURE__ */ React60.createElement("div", {
6681
+ }, /* @__PURE__ */ React65.createElement("div", {
6439
6682
  className: "grow inline-flex flex-row flex-wrap gap-y-2"
6440
- }, inline && renderChips(), /* @__PURE__ */ React60.createElement(Select.Input, __spreadProps(__spreadValues({
6683
+ }, inline && renderChips(), /* @__PURE__ */ React65.createElement(Select.Input, __spreadProps(__spreadValues({
6441
6684
  ref: inputRef,
6442
6685
  id: id != null ? id : name,
6443
6686
  name,
@@ -6454,35 +6697,35 @@ var MultiInputBase = (_a) => {
6454
6697
  onFocus: handleFocus,
6455
6698
  onBlur: handleBlur,
6456
6699
  autoComplete: "off"
6457
- }))), endAdornment && /* @__PURE__ */ React60.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React60.createElement("div", {
6700
+ }))), endAdornment && /* @__PURE__ */ React65.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React65.createElement("div", {
6458
6701
  className: tw("flex flex-row flex-wrap gap-y-2 mt-2")
6459
6702
  }, renderChips()));
6460
6703
  };
6461
- var BaseMultiInputSkeleton = () => /* @__PURE__ */ React60.createElement(Skeleton, {
6704
+ var BaseMultiInputSkeleton = () => /* @__PURE__ */ React65.createElement(Skeleton, {
6462
6705
  height: 38
6463
6706
  });
6464
6707
  MultiInputBase.Skeleton = BaseMultiInputSkeleton;
6465
6708
  var MultiInput = (props) => {
6466
6709
  var _a, _b, _c, _d, _e;
6467
6710
  const maxLength = (_a = props.maxLength) != null ? _a : props.max;
6468
- const [value, setValue] = useState7((_c = (_b = props.value) != null ? _b : props.defaultValue) != null ? _c : []);
6469
- useEffect5(() => {
6711
+ const [value, setValue] = useState8((_c = (_b = props.value) != null ? _b : props.defaultValue) != null ? _c : []);
6712
+ useEffect6(() => {
6470
6713
  var _a2;
6471
6714
  setValue((_a2 = props.value) != null ? _a2 : []);
6472
6715
  }, [JSON.stringify(props.value)]);
6473
- const id = useRef6((_e = (_d = props.id) != null ? _d : props.name) != null ? _e : `multiinput-${uniqueId4()}`);
6716
+ const id = useRef7((_e = (_d = props.id) != null ? _d : props.name) != null ? _e : `multiinput-${uniqueId4()}`);
6474
6717
  const errorMessageId = uniqueId4();
6475
6718
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
6476
6719
  const labelControlProps = getLabelControlProps(props);
6477
6720
  const baseProps = omit10(props, Object.keys(labelControlProps));
6478
- return /* @__PURE__ */ React60.createElement(LabelControl, __spreadProps(__spreadValues({
6721
+ return /* @__PURE__ */ React65.createElement(LabelControl, __spreadProps(__spreadValues({
6479
6722
  id: `${id.current}-label`,
6480
6723
  htmlFor: `${id.current}-input`,
6481
6724
  messageId: errorMessageId
6482
6725
  }, labelControlProps), {
6483
6726
  length: value.length,
6484
6727
  maxLength
6485
- }), /* @__PURE__ */ React60.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
6728
+ }), /* @__PURE__ */ React65.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
6486
6729
  id: `${id.current}-input`,
6487
6730
  onChange: (value2) => {
6488
6731
  var _a2;
@@ -6494,7 +6737,7 @@ var MultiInput = (props) => {
6494
6737
  valid: props.valid
6495
6738
  })));
6496
6739
  };
6497
- var MultiInputSkeleton = () => /* @__PURE__ */ React60.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React60.createElement(MultiInputBase.Skeleton, null));
6740
+ var MultiInputSkeleton = () => /* @__PURE__ */ React65.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React65.createElement(MultiInputBase.Skeleton, null));
6498
6741
  MultiInput.Skeleton = MultiInputSkeleton;
6499
6742
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
6500
6743
 
@@ -6505,7 +6748,7 @@ import omit11 from "lodash/omit";
6505
6748
  import omitBy from "lodash/omitBy";
6506
6749
  import uniqueId5 from "lodash/uniqueId";
6507
6750
  import { matchSorter as matchSorter2 } from "match-sorter";
6508
- import React61, { useRef as useRef7, useState as useState8 } from "react";
6751
+ import React66, { useRef as useRef8, useState as useState9 } from "react";
6509
6752
  import { useOverlayPosition as useOverlayPosition5 } from "@react-aria/overlays";
6510
6753
  var MultiSelectBase = (_a) => {
6511
6754
  var _b = _a, {
@@ -6554,10 +6797,10 @@ var MultiSelectBase = (_a) => {
6554
6797
  "children"
6555
6798
  ]);
6556
6799
  var _a2;
6557
- const targetRef = useRef7(null);
6558
- const overlayRef = useRef7(null);
6559
- const [inputValue, setInputValue] = useState8("");
6560
- const [hasFocus, setFocus] = useState8(false);
6800
+ const targetRef = useRef8(null);
6801
+ const overlayRef = useRef8(null);
6802
+ const [inputValue, setInputValue] = useState9("");
6803
+ const [hasFocus, setFocus] = useState9(false);
6561
6804
  const { selectedItems, addSelectedItem, removeSelectedItem, getDropdownProps, getSelectedItemProps } = useMultipleSelection(
6562
6805
  omitBy(
6563
6806
  {
@@ -6618,7 +6861,7 @@ var MultiSelectBase = (_a) => {
6618
6861
  });
6619
6862
  const inputProps = getInputProps(getDropdownProps({ preventKeyAction: isOpen, disabled: disabled || readOnly }));
6620
6863
  const renderChips = () => {
6621
- return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React61.createElement(InputChip, __spreadProps(__spreadValues({
6864
+ return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React66.createElement(InputChip, __spreadProps(__spreadValues({
6622
6865
  key: `${itemToString(selectedItem)}.chip`,
6623
6866
  className: tw("mx-0"),
6624
6867
  disabled,
@@ -6633,14 +6876,14 @@ var MultiSelectBase = (_a) => {
6633
6876
  const hasNoResults = options.length === 0 || filteredOptions.length === 0;
6634
6877
  const width = (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth;
6635
6878
  const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
6636
- return /* @__PURE__ */ React61.createElement("div", {
6879
+ return /* @__PURE__ */ React66.createElement("div", {
6637
6880
  className: tw("relative")
6638
- }, /* @__PURE__ */ React61.createElement(Select.InputContainer, {
6881
+ }, /* @__PURE__ */ React66.createElement(Select.InputContainer, {
6639
6882
  ref: targetRef,
6640
6883
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
6641
- }, /* @__PURE__ */ React61.createElement("div", {
6884
+ }, /* @__PURE__ */ React66.createElement("div", {
6642
6885
  className: "grow inline-flex flex-row flex-wrap gap-2"
6643
- }, !hideChips && inline && renderChips(), /* @__PURE__ */ React61.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
6886
+ }, !hideChips && inline && renderChips(), /* @__PURE__ */ React66.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
6644
6887
  id,
6645
6888
  name,
6646
6889
  placeholder: selectedItems.length === 0 && !readOnly ? placeholder : "",
@@ -6656,27 +6899,27 @@ var MultiSelectBase = (_a) => {
6656
6899
  onKeyUp: (e) => e.stopPropagation(),
6657
6900
  onFocus: () => setFocus(true),
6658
6901
  onBlur: () => setFocus(false)
6659
- }))), !readOnly && /* @__PURE__ */ React61.createElement(Select.Toggle, __spreadValues({
6902
+ }))), !readOnly && /* @__PURE__ */ React66.createElement(Select.Toggle, __spreadValues({
6660
6903
  hasFocus,
6661
6904
  isOpen
6662
- }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React61.createElement("div", {
6905
+ }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React66.createElement("div", {
6663
6906
  className: tw("flex flex-row flex-wrap gap-2 mt-2")
6664
- }, renderChips()), /* @__PURE__ */ React61.createElement(PopoverWrapper, __spreadProps(__spreadValues({
6907
+ }, renderChips()), /* @__PURE__ */ React66.createElement(PopoverWrapper, __spreadProps(__spreadValues({
6665
6908
  isOpen: true,
6666
6909
  isDismissable: true,
6667
6910
  autoFocus: true
6668
6911
  }, getMenuProps({ ref: overlayRef })), {
6669
6912
  style,
6670
6913
  onClose: closeMenu
6671
- }), /* @__PURE__ */ React61.createElement(Select.Menu, {
6914
+ }), /* @__PURE__ */ React66.createElement(Select.Menu, {
6672
6915
  maxHeight
6673
- }, isOpen && hasNoResults && /* @__PURE__ */ React61.createElement(Select.NoResults, null, noResults), isOpen && filteredOptions.map((item, index) => /* @__PURE__ */ React61.createElement(Select.Item, __spreadValues({
6916
+ }, isOpen && hasNoResults && /* @__PURE__ */ React66.createElement(Select.NoResults, null, noResults), isOpen && filteredOptions.map((item, index) => /* @__PURE__ */ React66.createElement(Select.Item, __spreadValues({
6674
6917
  key: itemToString(item),
6675
6918
  highlighted: index === highlightedIndex,
6676
6919
  selected: selectedItems.includes(item)
6677
6920
  }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
6678
6921
  };
6679
- var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React61.createElement(Skeleton, {
6922
+ var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React66.createElement(Skeleton, {
6680
6923
  height: 38
6681
6924
  });
6682
6925
  MultiSelectBase.Skeleton = MultiSelectBaseSkeleton;
@@ -6689,16 +6932,16 @@ var MultiSelect = (_a) => {
6689
6932
  "noResults"
6690
6933
  ]);
6691
6934
  var _a2;
6692
- const id = useRef7((_a2 = props.id) != null ? _a2 : `multiselect-${uniqueId5()}`);
6935
+ const id = useRef8((_a2 = props.id) != null ? _a2 : `multiselect-${uniqueId5()}`);
6693
6936
  const errorMessageId = uniqueId5();
6694
6937
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
6695
6938
  const labelControlProps = getLabelControlProps(props);
6696
6939
  const baseProps = omit11(props, Object.keys(labelControlProps));
6697
- return /* @__PURE__ */ React61.createElement(LabelControl, __spreadValues({
6940
+ return /* @__PURE__ */ React66.createElement(LabelControl, __spreadValues({
6698
6941
  id: `${id.current}-label`,
6699
6942
  htmlFor: `${id.current}-input`,
6700
6943
  messageId: errorMessageId
6701
- }, labelControlProps), /* @__PURE__ */ React61.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
6944
+ }, labelControlProps), /* @__PURE__ */ React66.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
6702
6945
  id: id.current,
6703
6946
  options,
6704
6947
  noResults,
@@ -6706,28 +6949,28 @@ var MultiSelect = (_a) => {
6706
6949
  valid: props.valid
6707
6950
  })));
6708
6951
  };
6709
- var MultiSelectSkeleton = () => /* @__PURE__ */ React61.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React61.createElement(MultiSelectBase.Skeleton, null));
6952
+ var MultiSelectSkeleton = () => /* @__PURE__ */ React66.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React66.createElement(MultiSelectBase.Skeleton, null));
6710
6953
  MultiSelect.Skeleton = MultiSelectSkeleton;
6711
6954
  MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
6712
6955
 
6713
6956
  // src/components/NativeSelect/NativeSelect.tsx
6714
- import React62, { useRef as useRef8 } from "react";
6957
+ import React67, { useRef as useRef9 } from "react";
6715
6958
  import uniqueId6 from "lodash/uniqueId";
6716
6959
  import omit12 from "lodash/omit";
6717
6960
  var import_caretDown = __toESM(require_caretDown());
6718
- var NativeSelectBase = React62.forwardRef(
6961
+ var NativeSelectBase = React67.forwardRef(
6719
6962
  (_a, ref) => {
6720
6963
  var _b = _a, { children, disabled = false, required = false, valid = true, readOnly = false, emptyDefault } = _b, props = __objRest(_b, ["children", "disabled", "required", "valid", "readOnly", "emptyDefault"]);
6721
- return /* @__PURE__ */ React62.createElement("span", {
6964
+ return /* @__PURE__ */ React67.createElement("span", {
6722
6965
  className: tw("relative block")
6723
- }, !readOnly && /* @__PURE__ */ React62.createElement("span", {
6966
+ }, !readOnly && /* @__PURE__ */ React67.createElement("span", {
6724
6967
  className: tw(
6725
6968
  "absolute right-0 inset-y-0 mr-4 text-grey-40 flex ml-3 pointer-events-none typography-body-default-medium mt-4"
6726
6969
  )
6727
- }, /* @__PURE__ */ React62.createElement(Icon, {
6970
+ }, /* @__PURE__ */ React67.createElement(Icon, {
6728
6971
  icon: import_caretDown.default,
6729
6972
  "data-testid": "icon-dropdown"
6730
- })), /* @__PURE__ */ React62.createElement("select", __spreadProps(__spreadValues({
6973
+ })), /* @__PURE__ */ React67.createElement("select", __spreadProps(__spreadValues({
6731
6974
  ref,
6732
6975
  disabled: disabled || readOnly,
6733
6976
  required
@@ -6744,29 +6987,29 @@ var NativeSelectBase = React62.forwardRef(
6744
6987
  ),
6745
6988
  props.className
6746
6989
  )
6747
- }), emptyDefault && /* @__PURE__ */ React62.createElement("option", {
6990
+ }), emptyDefault && /* @__PURE__ */ React67.createElement("option", {
6748
6991
  value: "",
6749
6992
  className: tw("hidden")
6750
6993
  }), children));
6751
6994
  }
6752
6995
  );
6753
- NativeSelectBase.Skeleton = () => /* @__PURE__ */ React62.createElement(Skeleton, {
6996
+ NativeSelectBase.Skeleton = () => /* @__PURE__ */ React67.createElement(Skeleton, {
6754
6997
  height: 38
6755
6998
  });
6756
- var NativeSelect = React62.forwardRef(
6999
+ var NativeSelect = React67.forwardRef(
6757
7000
  (_a, ref) => {
6758
7001
  var _b = _a, { readOnly } = _b, props = __objRest(_b, ["readOnly"]);
6759
7002
  var _a2;
6760
- const id = useRef8((_a2 = props.id) != null ? _a2 : `nativeselect-${uniqueId6()}`);
7003
+ const id = useRef9((_a2 = props.id) != null ? _a2 : `nativeselect-${uniqueId6()}`);
6761
7004
  const errorMessageId = uniqueId6();
6762
7005
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
6763
7006
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
6764
7007
  const baseProps = omit12(props, Object.keys(labelControlProps));
6765
- return /* @__PURE__ */ React62.createElement(LabelControl, __spreadValues({
7008
+ return /* @__PURE__ */ React67.createElement(LabelControl, __spreadValues({
6766
7009
  id: `${id.current}-label`,
6767
7010
  htmlFor: id.current,
6768
7011
  messageId: errorMessageId
6769
- }, labelControlProps), /* @__PURE__ */ React62.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
7012
+ }, labelControlProps), /* @__PURE__ */ React67.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
6770
7013
  ref
6771
7014
  }, baseProps), errorProps), {
6772
7015
  id: id.current,
@@ -6778,20 +7021,20 @@ var NativeSelect = React62.forwardRef(
6778
7021
  })));
6779
7022
  }
6780
7023
  );
6781
- var Option = React62.forwardRef((_a, ref) => {
7024
+ var Option = React67.forwardRef((_a, ref) => {
6782
7025
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
6783
- return /* @__PURE__ */ React62.createElement("option", __spreadValues({
7026
+ return /* @__PURE__ */ React67.createElement("option", __spreadValues({
6784
7027
  ref
6785
7028
  }, props), children);
6786
7029
  });
6787
- var NativeSelectSkeleton = () => /* @__PURE__ */ React62.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React62.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React62.createElement("div", {
7030
+ var NativeSelectSkeleton = () => /* @__PURE__ */ React67.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React67.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React67.createElement("div", {
6788
7031
  style: { height: "1px" }
6789
7032
  }));
6790
7033
  NativeSelect.Skeleton = NativeSelectSkeleton;
6791
7034
  NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
6792
7035
 
6793
7036
  // src/components/PageHeader/PageHeader.tsx
6794
- import React63 from "react";
7037
+ import React68 from "react";
6795
7038
  import castArray3 from "lodash/castArray";
6796
7039
  import omit13 from "lodash/omit";
6797
7040
  var PageHeader = ({
@@ -6803,47 +7046,47 @@ var PageHeader = ({
6803
7046
  chips = [],
6804
7047
  breadcrumbs
6805
7048
  }) => {
6806
- return /* @__PURE__ */ React63.createElement(Flexbox, {
7049
+ return /* @__PURE__ */ React68.createElement(Flexbox, {
6807
7050
  direction: "row",
6808
7051
  gap: "4",
6809
7052
  paddingBottom: "6"
6810
- }, /* @__PURE__ */ React63.createElement(Flexbox, {
7053
+ }, /* @__PURE__ */ React68.createElement(Flexbox, {
6811
7054
  className: tw("grow"),
6812
7055
  direction: "column",
6813
7056
  gap: "0"
6814
- }, breadcrumbs && /* @__PURE__ */ React63.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React63.createElement(Flexbox, {
7057
+ }, breadcrumbs && /* @__PURE__ */ React68.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React68.createElement(Flexbox, {
6815
7058
  gap: "5"
6816
- }, image && /* @__PURE__ */ React63.createElement("img", {
7059
+ }, image && /* @__PURE__ */ React68.createElement("img", {
6817
7060
  src: image,
6818
7061
  alt: imageAlt,
6819
7062
  className: tw("w-[56px] h-[56px]")
6820
- }), /* @__PURE__ */ React63.createElement(Flexbox, {
7063
+ }), /* @__PURE__ */ React68.createElement(Flexbox, {
6821
7064
  direction: "column",
6822
7065
  justifyContent: "center"
6823
- }, /* @__PURE__ */ React63.createElement(Typography2.Heading, null, title), chips.length > 0 && /* @__PURE__ */ React63.createElement(Flexbox, {
7066
+ }, /* @__PURE__ */ React68.createElement(Typography2.Heading, null, title), chips.length > 0 && /* @__PURE__ */ React68.createElement(Flexbox, {
6824
7067
  gap: "3"
6825
- }, chips.map((chip) => /* @__PURE__ */ React63.createElement(Chip2, {
7068
+ }, chips.map((chip) => /* @__PURE__ */ React68.createElement(Chip2, {
6826
7069
  key: chip,
6827
7070
  dense: true,
6828
7071
  text: chip
6829
- })))))), (secondaryActions || primaryAction) && /* @__PURE__ */ React63.createElement(Flexbox, {
7072
+ })))))), (secondaryActions || primaryAction) && /* @__PURE__ */ React68.createElement(Flexbox, {
6830
7073
  gap: "4",
6831
7074
  className: tw("self-start")
6832
7075
  }, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a) => {
6833
7076
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
6834
- return /* @__PURE__ */ React63.createElement(SecondaryButton, __spreadValues({
7077
+ return /* @__PURE__ */ React68.createElement(SecondaryButton, __spreadValues({
6835
7078
  key: text
6836
7079
  }, action), text);
6837
- }), primaryAction && /* @__PURE__ */ React63.createElement(PrimaryButton, __spreadValues({
7080
+ }), primaryAction && /* @__PURE__ */ React68.createElement(PrimaryButton, __spreadValues({
6838
7081
  key: primaryAction.text
6839
7082
  }, omit13(primaryAction, "text")), primaryAction.text)));
6840
7083
  };
6841
7084
 
6842
7085
  // src/components/Pagination/Pagination.tsx
6843
- import React65 from "react";
7086
+ import React70 from "react";
6844
7087
 
6845
7088
  // src/components/Select/Select.tsx
6846
- import React64, { useRef as useRef9, useState as useState9 } from "react";
7089
+ import React69, { useRef as useRef10, useState as useState10 } from "react";
6847
7090
  import isNil2 from "lodash/isNil";
6848
7091
  import isArray from "lodash/isArray";
6849
7092
  import defaults from "lodash/defaults";
@@ -6860,10 +7103,10 @@ var hasOptionGroups = (val) => {
6860
7103
  };
6861
7104
  var defaultRenderOption = (item, props, { selectedItem }, { getOptionKey, getValue, optionToString = getOptionLabelBuiltin }) => {
6862
7105
  var _a, _b;
6863
- return /* @__PURE__ */ React64.createElement(Select.Item, __spreadValues({
7106
+ return /* @__PURE__ */ React69.createElement(Select.Item, __spreadValues({
6864
7107
  key: (_b = (_a = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a : getValue == null ? void 0 : getValue(item)) != null ? _b : optionToString(item),
6865
7108
  selected: item === selectedItem
6866
- }, props), hasIconProperty(item) && /* @__PURE__ */ React64.createElement(InlineIcon, {
7109
+ }, props), hasIconProperty(item) && /* @__PURE__ */ React69.createElement(InlineIcon, {
6867
7110
  icon: item.icon
6868
7111
  }), optionToString(item));
6869
7112
  };
@@ -6934,9 +7177,9 @@ var _SelectBase = (props) => {
6934
7177
  "children",
6935
7178
  "labelWrapper"
6936
7179
  ]);
6937
- const [hasFocus, setFocus] = useState9(false);
6938
- const targetRef = useRef9(null);
6939
- const overlayRef = useRef9(null);
7180
+ const [hasFocus, setFocus] = useState10(false);
7181
+ const targetRef = useRef10(null);
7182
+ const overlayRef = useRef10(null);
6940
7183
  const items = hasOptionGroups(options) ? options.flatMap((g) => g.options) : options;
6941
7184
  const findItemByValue = (val) => {
6942
7185
  if (val === null) {
@@ -6980,13 +7223,13 @@ var _SelectBase = (props) => {
6980
7223
  },
6981
7224
  withDefaults
6982
7225
  );
6983
- const renderGroup = (group) => /* @__PURE__ */ React64.createElement(React64.Fragment, {
7226
+ const renderGroup = (group) => /* @__PURE__ */ React69.createElement(React69.Fragment, {
6984
7227
  key: group.label
6985
- }, /* @__PURE__ */ React64.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
6986
- const input = /* @__PURE__ */ React64.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
7228
+ }, /* @__PURE__ */ React69.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
7229
+ const input = /* @__PURE__ */ React69.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
6987
7230
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default",
6988
7231
  tabIndex: 0
6989
- }), /* @__PURE__ */ React64.createElement(Select.Input, __spreadProps(__spreadValues({
7232
+ }), /* @__PURE__ */ React69.createElement(Select.Input, __spreadProps(__spreadValues({
6990
7233
  id,
6991
7234
  name
6992
7235
  }, rest), {
@@ -6998,27 +7241,27 @@ var _SelectBase = (props) => {
6998
7241
  tabIndex: -1,
6999
7242
  onFocus: () => setFocus(true),
7000
7243
  onBlur: () => setFocus(false)
7001
- })), !readOnly && /* @__PURE__ */ React64.createElement(Select.Toggle, {
7244
+ })), !readOnly && /* @__PURE__ */ React69.createElement(Select.Toggle, {
7002
7245
  disabled,
7003
7246
  isOpen,
7004
7247
  tabIndex: -1
7005
7248
  }));
7006
7249
  const width = (_b = targetRef.current) == null ? void 0 : _b.offsetWidth;
7007
7250
  const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
7008
- return /* @__PURE__ */ React64.createElement("div", {
7251
+ return /* @__PURE__ */ React69.createElement("div", {
7009
7252
  className: tw("relative")
7010
- }, labelWrapper ? React64.cloneElement(labelWrapper, { children: input }) : input, /* @__PURE__ */ React64.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7253
+ }, labelWrapper ? React69.cloneElement(labelWrapper, { children: input }) : input, /* @__PURE__ */ React69.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7011
7254
  isOpen: true,
7012
7255
  isDismissable: true,
7013
7256
  autoFocus: true
7014
7257
  }, getMenuProps({ ref: overlayRef })), {
7015
7258
  style,
7016
7259
  onClose: closeMenu
7017
- }), /* @__PURE__ */ React64.createElement(Select.Menu, {
7260
+ }), /* @__PURE__ */ React69.createElement(Select.Menu, {
7018
7261
  maxHeight
7019
- }, isOpen && options.length === 0 && /* @__PURE__ */ React64.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__ */ React64.createElement(React64.Fragment, null, /* @__PURE__ */ React64.createElement(Select.Divider, {
7262
+ }, isOpen && options.length === 0 && /* @__PURE__ */ React69.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__ */ React69.createElement(React69.Fragment, null, /* @__PURE__ */ React69.createElement(Select.Divider, {
7020
7263
  onMouseOver: () => setHighlightedIndex(-1)
7021
- }), actions.map((act, index) => /* @__PURE__ */ React64.createElement(Select.ActionItem, __spreadProps(__spreadValues({
7264
+ }), actions.map((act, index) => /* @__PURE__ */ React69.createElement(Select.ActionItem, __spreadProps(__spreadValues({
7022
7265
  key: `${index}`
7023
7266
  }, act), {
7024
7267
  onMouseOver: () => setHighlightedIndex(-1),
@@ -7028,10 +7271,10 @@ var _SelectBase = (props) => {
7028
7271
  }
7029
7272
  }), act.label))))));
7030
7273
  };
7031
- var SelectBase = (props) => /* @__PURE__ */ React64.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
7274
+ var SelectBase = (props) => /* @__PURE__ */ React69.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
7032
7275
  labelWrapper: void 0
7033
7276
  }));
7034
- var SelectBaseSkeleton = () => /* @__PURE__ */ React64.createElement(Skeleton, {
7277
+ var SelectBaseSkeleton = () => /* @__PURE__ */ React69.createElement(Skeleton, {
7035
7278
  height: 38
7036
7279
  });
7037
7280
  SelectBase.Skeleton = SelectBaseSkeleton;
@@ -7042,26 +7285,26 @@ var Select2 = (_a) => {
7042
7285
  "options"
7043
7286
  ]);
7044
7287
  var _a2;
7045
- const id = useRef9((_a2 = props.id) != null ? _a2 : `select-${uniqueId7()}`);
7288
+ const id = useRef10((_a2 = props.id) != null ? _a2 : `select-${uniqueId7()}`);
7046
7289
  const errorMessageId = uniqueId7();
7047
7290
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7048
7291
  const labelProps = getLabelControlProps(props);
7049
7292
  const baseProps = omit14(props, Object.keys(labelProps));
7050
7293
  const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
7051
7294
  const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
7052
- const label = /* @__PURE__ */ React64.createElement(Label, __spreadValues({
7295
+ const label = /* @__PURE__ */ React69.createElement(Label, __spreadValues({
7053
7296
  id: `${id.current}-label`,
7054
7297
  htmlFor: `${id.current}-input`,
7055
7298
  variant,
7056
7299
  messageId: errorMessageId
7057
7300
  }, labelProps));
7058
- return /* @__PURE__ */ React64.createElement(FormControl, null, /* @__PURE__ */ React64.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7301
+ return /* @__PURE__ */ React69.createElement(FormControl, null, /* @__PURE__ */ React69.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7059
7302
  id: `${id.current}-input`,
7060
7303
  options,
7061
7304
  disabled: props.disabled,
7062
7305
  valid: props.valid,
7063
7306
  labelWrapper: label
7064
- })), /* @__PURE__ */ React64.createElement(HelperText, {
7307
+ })), /* @__PURE__ */ React69.createElement(HelperText, {
7065
7308
  messageId: errorMessageId,
7066
7309
  error: !labelProps.valid,
7067
7310
  helperText: labelProps.helperText,
@@ -7070,12 +7313,12 @@ var Select2 = (_a) => {
7070
7313
  reserveSpaceForError: labelProps.reserveSpaceForError
7071
7314
  }));
7072
7315
  };
7073
- var SelectSkeleton = () => /* @__PURE__ */ React64.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React64.createElement(SelectBase.Skeleton, null));
7316
+ var SelectSkeleton = () => /* @__PURE__ */ React69.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React69.createElement(SelectBase.Skeleton, null));
7074
7317
  Select2.Skeleton = SelectSkeleton;
7075
7318
 
7076
7319
  // src/components/Pagination/Pagination.tsx
7077
- var import_chevronLeft2 = __toESM(require_chevronLeft());
7078
- var import_chevronRight2 = __toESM(require_chevronRight());
7320
+ var import_chevronLeft3 = __toESM(require_chevronLeft());
7321
+ var import_chevronRight3 = __toESM(require_chevronRight());
7079
7322
  var import_chevronForward = __toESM(require_chevronForward());
7080
7323
  var import_chevronBackward = __toESM(require_chevronBackward());
7081
7324
  import clamp from "lodash/clamp";
@@ -7089,25 +7332,25 @@ var Pagination = ({
7089
7332
  pageSizes,
7090
7333
  onPageSizeChange
7091
7334
  }) => {
7092
- const [value, setValue] = React65.useState(currentPage);
7093
- React65.useEffect(() => {
7335
+ const [value, setValue] = React70.useState(currentPage);
7336
+ React70.useEffect(() => {
7094
7337
  setValue(currentPage);
7095
7338
  }, [currentPage]);
7096
- React65.useEffect(() => {
7339
+ React70.useEffect(() => {
7097
7340
  onPageChange(1);
7098
7341
  setValue(1);
7099
7342
  }, [pageSize]);
7100
- return /* @__PURE__ */ React65.createElement(Box, {
7343
+ return /* @__PURE__ */ React70.createElement(Box, {
7101
7344
  className: tw("grid grid-cols-[200px_1fr_200px]"),
7102
7345
  backgroundColor: "grey-0",
7103
7346
  padding: "4"
7104
- }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React65.createElement(Box, {
7347
+ }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React70.createElement(Box, {
7105
7348
  display: "flex",
7106
7349
  alignItems: "center",
7107
7350
  gap: "4"
7108
- }, /* @__PURE__ */ React65.createElement(Typography2.SmallText, null, "Items per page "), /* @__PURE__ */ React65.createElement("div", {
7351
+ }, /* @__PURE__ */ React70.createElement(Typography2.SmallText, null, "Items per page "), /* @__PURE__ */ React70.createElement("div", {
7109
7352
  className: tw("max-w-[70px]")
7110
- }, /* @__PURE__ */ React65.createElement(SelectBase, {
7353
+ }, /* @__PURE__ */ React70.createElement(SelectBase, {
7111
7354
  options: pageSizes.map((size) => size.toString()),
7112
7355
  value: pageSize.toString(),
7113
7356
  onChange: (size) => {
@@ -7118,24 +7361,24 @@ var Pagination = ({
7118
7361
  }
7119
7362
  }
7120
7363
  }
7121
- }))) : /* @__PURE__ */ React65.createElement("div", null), /* @__PURE__ */ React65.createElement(Box, {
7364
+ }))) : /* @__PURE__ */ React70.createElement("div", null), /* @__PURE__ */ React70.createElement(Box, {
7122
7365
  display: "flex",
7123
7366
  justifyContent: "center",
7124
7367
  alignItems: "center",
7125
7368
  className: tw("grow")
7126
- }, /* @__PURE__ */ React65.createElement(IconButton, {
7369
+ }, /* @__PURE__ */ React70.createElement(IconButton, {
7127
7370
  "aria-label": "First",
7128
7371
  onClick: () => onPageChange(1),
7129
7372
  icon: import_chevronBackward.default,
7130
7373
  disabled: !hasPreviousPage
7131
- }), /* @__PURE__ */ React65.createElement(IconButton, {
7374
+ }), /* @__PURE__ */ React70.createElement(IconButton, {
7132
7375
  "aria-label": "Previous",
7133
7376
  onClick: () => onPageChange(currentPage - 1),
7134
- icon: import_chevronLeft2.default,
7377
+ icon: import_chevronLeft3.default,
7135
7378
  disabled: !hasPreviousPage
7136
- }), /* @__PURE__ */ React65.createElement(Box, {
7379
+ }), /* @__PURE__ */ React70.createElement(Box, {
7137
7380
  paddingX: "4"
7138
- }, /* @__PURE__ */ React65.createElement(Typography2.SmallText, null, "Page")), /* @__PURE__ */ React65.createElement(InputBase, {
7381
+ }, /* @__PURE__ */ React70.createElement(Typography2.SmallText, null, "Page")), /* @__PURE__ */ React70.createElement(InputBase, {
7139
7382
  className: classNames(tw("text-center max-w-[40px]"), "no-arrows"),
7140
7383
  type: "number",
7141
7384
  min: 1,
@@ -7158,43 +7401,43 @@ var Pagination = ({
7158
7401
  setValue(1);
7159
7402
  }
7160
7403
  }
7161
- }), /* @__PURE__ */ React65.createElement(Box, {
7404
+ }), /* @__PURE__ */ React70.createElement(Box, {
7162
7405
  paddingX: "4"
7163
- }, /* @__PURE__ */ React65.createElement(Typography2.SmallText, null, "of ", totalPages)), /* @__PURE__ */ React65.createElement(IconButton, {
7406
+ }, /* @__PURE__ */ React70.createElement(Typography2.SmallText, null, "of ", totalPages)), /* @__PURE__ */ React70.createElement(IconButton, {
7164
7407
  "aria-label": "Next",
7165
7408
  onClick: () => onPageChange(currentPage + 1),
7166
- icon: import_chevronRight2.default,
7409
+ icon: import_chevronRight3.default,
7167
7410
  disabled: !hasNextPage
7168
- }), /* @__PURE__ */ React65.createElement(IconButton, {
7411
+ }), /* @__PURE__ */ React70.createElement(IconButton, {
7169
7412
  "aria-label": "Last",
7170
7413
  onClick: () => onPageChange(totalPages),
7171
7414
  icon: import_chevronForward.default,
7172
7415
  disabled: !hasNextPage
7173
- })), /* @__PURE__ */ React65.createElement("div", null));
7416
+ })), /* @__PURE__ */ React70.createElement("div", null));
7174
7417
  };
7175
7418
 
7176
7419
  // src/components/PopoverDialog/PopoverDialog.tsx
7177
- import React67 from "react";
7420
+ import React72 from "react";
7178
7421
  import omit15 from "lodash/omit";
7179
7422
 
7180
7423
  // src/common/PopoverDialog/PopoverDialog.tsx
7181
- import React66 from "react";
7424
+ import React71 from "react";
7182
7425
  var Header = (_a) => {
7183
7426
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7184
- return /* @__PURE__ */ React66.createElement("div", __spreadProps(__spreadValues({}, rest), {
7427
+ return /* @__PURE__ */ React71.createElement("div", __spreadProps(__spreadValues({}, rest), {
7185
7428
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
7186
7429
  }), children);
7187
7430
  };
7188
7431
  var Title = (_a) => {
7189
7432
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7190
- return /* @__PURE__ */ React66.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7433
+ return /* @__PURE__ */ React71.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7191
7434
  htmlTag: "h1",
7192
7435
  variant: "body-small-medium"
7193
7436
  }), children);
7194
7437
  };
7195
7438
  var Body = (_a) => {
7196
7439
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7197
- return /* @__PURE__ */ React66.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7440
+ return /* @__PURE__ */ React71.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7198
7441
  htmlTag: "div",
7199
7442
  variant: "caption-default",
7200
7443
  className: classNames(tw("px-5 overflow-y-auto"), className)
@@ -7202,13 +7445,13 @@ var Body = (_a) => {
7202
7445
  };
7203
7446
  var Footer = (_a) => {
7204
7447
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7205
- return /* @__PURE__ */ React66.createElement("div", __spreadProps(__spreadValues({}, rest), {
7448
+ return /* @__PURE__ */ React71.createElement("div", __spreadProps(__spreadValues({}, rest), {
7206
7449
  className: classNames(tw("p-5"), className)
7207
7450
  }), children);
7208
7451
  };
7209
7452
  var Actions = (_a) => {
7210
7453
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7211
- return /* @__PURE__ */ React66.createElement("div", __spreadProps(__spreadValues({}, rest), {
7454
+ return /* @__PURE__ */ React71.createElement("div", __spreadProps(__spreadValues({}, rest), {
7212
7455
  className: classNames(tw("flex gap-4"), className)
7213
7456
  }), children);
7214
7457
  };
@@ -7224,13 +7467,13 @@ var PopoverDialog = {
7224
7467
  var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
7225
7468
  const wrapPromptWithBody = (child) => {
7226
7469
  if (isComponentType(child, PopoverDialog2.Prompt)) {
7227
- return /* @__PURE__ */ React67.createElement(Popover2.Panel, {
7470
+ return /* @__PURE__ */ React72.createElement(Popover2.Panel, {
7228
7471
  className: tw("max-w-[300px]")
7229
- }, /* @__PURE__ */ React67.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React67.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React67.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React67.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React67.createElement(Popover2.Button, __spreadValues({
7472
+ }, /* @__PURE__ */ React72.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React72.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React72.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React72.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React72.createElement(Popover2.Button, __spreadValues({
7230
7473
  kind: "secondary-ghost",
7231
7474
  key: secondaryAction.text,
7232
7475
  dense: true
7233
- }, omit15(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React67.createElement(Popover2.Button, __spreadValues({
7476
+ }, omit15(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React72.createElement(Popover2.Button, __spreadValues({
7234
7477
  kind: "ghost",
7235
7478
  key: primaryAction.text,
7236
7479
  dense: true
@@ -7238,7 +7481,7 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
7238
7481
  }
7239
7482
  return child;
7240
7483
  };
7241
- return /* @__PURE__ */ React67.createElement(Popover2, {
7484
+ return /* @__PURE__ */ React72.createElement(Popover2, {
7242
7485
  type: "dialog",
7243
7486
  isOpen: open,
7244
7487
  placement,
@@ -7246,10 +7489,10 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
7246
7489
  isKeyboardDismissDisabled: false,
7247
7490
  autoFocus: true,
7248
7491
  containFocus: true
7249
- }, React67.Children.map(children, wrapPromptWithBody));
7492
+ }, React72.Children.map(children, wrapPromptWithBody));
7250
7493
  };
7251
7494
  PopoverDialog2.Trigger = Popover2.Trigger;
7252
- var Prompt = ({ children }) => /* @__PURE__ */ React67.createElement(PopoverDialog.Body, null, children);
7495
+ var Prompt = ({ children }) => /* @__PURE__ */ React72.createElement(PopoverDialog.Body, null, children);
7253
7496
  Prompt.displayName = "PopoverDialog.Prompt";
7254
7497
  PopoverDialog2.Prompt = Prompt;
7255
7498
 
@@ -7258,14 +7501,14 @@ import { createPortal } from "react-dom";
7258
7501
  var Portal = ({ children, to }) => createPortal(children, to);
7259
7502
 
7260
7503
  // src/components/ProgressBar/ProgressBar.tsx
7261
- import React69 from "react";
7504
+ import React74 from "react";
7262
7505
 
7263
7506
  // src/common/ProgressBar/ProgressBar.tsx
7264
- import React68 from "react";
7507
+ import React73 from "react";
7265
7508
  import clamp2 from "lodash/clamp";
7266
7509
  var ProgressBar = (_a) => {
7267
7510
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7268
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
7511
+ return /* @__PURE__ */ React73.createElement("div", __spreadProps(__spreadValues({}, rest), {
7269
7512
  className: classNames(
7270
7513
  tw("relative flex items-center w-full bg-grey-0 h-2 rounded-full overflow-hidden"),
7271
7514
  className
@@ -7281,7 +7524,7 @@ var STATUS_COLORS = {
7281
7524
  ProgressBar.Indicator = (_a) => {
7282
7525
  var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
7283
7526
  const completedPercentage = clamp2((value - min) / (max - min) * 100, 0, 100);
7284
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
7527
+ return /* @__PURE__ */ React73.createElement("div", __spreadProps(__spreadValues({}, rest), {
7285
7528
  className: classNames(
7286
7529
  tw("h-2 rounded-full transition-all ease-in-out delay-150"),
7287
7530
  STATUS_COLORS[status],
@@ -7297,11 +7540,11 @@ ProgressBar.Indicator = (_a) => {
7297
7540
  };
7298
7541
  ProgressBar.Labels = (_a) => {
7299
7542
  var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
7300
- return /* @__PURE__ */ React68.createElement("div", {
7543
+ return /* @__PURE__ */ React73.createElement("div", {
7301
7544
  className: classNames(tw("flex flex-row"), className)
7302
- }, /* @__PURE__ */ React68.createElement("span", __spreadProps(__spreadValues({}, rest), {
7545
+ }, /* @__PURE__ */ React73.createElement("span", __spreadProps(__spreadValues({}, rest), {
7303
7546
  className: tw("grow text-grey-70 typography-caption-default")
7304
- }), startLabel), /* @__PURE__ */ React68.createElement("span", __spreadProps(__spreadValues({}, rest), {
7547
+ }), startLabel), /* @__PURE__ */ React73.createElement("span", __spreadProps(__spreadValues({}, rest), {
7305
7548
  className: tw("grow text-grey-70 typography-caption-default text-right")
7306
7549
  }), endLabel));
7307
7550
  };
@@ -7319,7 +7562,7 @@ var ProgressBar2 = (props) => {
7319
7562
  if (min > max) {
7320
7563
  throw new Error("`min` value provided to `ProgressBar` is greater than `max` value.");
7321
7564
  }
7322
- const progress = /* @__PURE__ */ React69.createElement(ProgressBar, null, /* @__PURE__ */ React69.createElement(ProgressBar.Indicator, {
7565
+ const progress = /* @__PURE__ */ React74.createElement(ProgressBar, null, /* @__PURE__ */ React74.createElement(ProgressBar.Indicator, {
7323
7566
  status: value === max ? completedStatus : progresStatus,
7324
7567
  min,
7325
7568
  max,
@@ -7329,20 +7572,20 @@ var ProgressBar2 = (props) => {
7329
7572
  if (props.dense) {
7330
7573
  return progress;
7331
7574
  }
7332
- return /* @__PURE__ */ React69.createElement("div", null, progress, /* @__PURE__ */ React69.createElement(ProgressBar.Labels, {
7575
+ return /* @__PURE__ */ React74.createElement("div", null, progress, /* @__PURE__ */ React74.createElement(ProgressBar.Labels, {
7333
7576
  className: tw("py-2"),
7334
7577
  startLabel: props.startLabel,
7335
7578
  endLabel: props.endLabel
7336
7579
  }));
7337
7580
  };
7338
- ProgressBar2.Skeleton = () => /* @__PURE__ */ React69.createElement(Skeleton, {
7581
+ ProgressBar2.Skeleton = () => /* @__PURE__ */ React74.createElement(Skeleton, {
7339
7582
  height: 4,
7340
7583
  display: "block"
7341
7584
  });
7342
7585
 
7343
7586
  // src/components/RadioButton/RadioButton.tsx
7344
- import React70 from "react";
7345
- var RadioButton2 = React70.forwardRef(
7587
+ import React75 from "react";
7588
+ var RadioButton2 = React75.forwardRef(
7346
7589
  (_a, ref) => {
7347
7590
  var _b = _a, {
7348
7591
  name,
@@ -7368,11 +7611,11 @@ var RadioButton2 = React70.forwardRef(
7368
7611
  "aria-label"
7369
7612
  ]);
7370
7613
  var _a2;
7371
- const [checked, setChecked] = React70.useState((_a2 = _checked != null ? _checked : defaultChecked) != null ? _a2 : false);
7614
+ const [checked, setChecked] = React75.useState((_a2 = _checked != null ? _checked : defaultChecked) != null ? _a2 : false);
7372
7615
  if (_checked !== void 0 && checked !== _checked) {
7373
7616
  setChecked(_checked);
7374
7617
  }
7375
- return !readOnly || checked ? /* @__PURE__ */ React70.createElement(ControlLabel, {
7618
+ return !readOnly || checked ? /* @__PURE__ */ React75.createElement(ControlLabel, {
7376
7619
  htmlFor: id,
7377
7620
  label: children,
7378
7621
  "aria-label": ariaLabel,
@@ -7380,7 +7623,7 @@ var RadioButton2 = React70.forwardRef(
7380
7623
  readOnly,
7381
7624
  disabled,
7382
7625
  style: { gap: "0 8px" }
7383
- }, !readOnly && /* @__PURE__ */ React70.createElement(RadioButton, __spreadProps(__spreadValues({
7626
+ }, !readOnly && /* @__PURE__ */ React75.createElement(RadioButton, __spreadProps(__spreadValues({
7384
7627
  id,
7385
7628
  ref,
7386
7629
  name
@@ -7395,22 +7638,22 @@ var RadioButton2 = React70.forwardRef(
7395
7638
  }))) : null;
7396
7639
  }
7397
7640
  );
7398
- var RadioButtonSkeleton = () => /* @__PURE__ */ React70.createElement("div", {
7641
+ var RadioButtonSkeleton = () => /* @__PURE__ */ React75.createElement("div", {
7399
7642
  className: tw("flex gap-3")
7400
- }, /* @__PURE__ */ React70.createElement(Skeleton, {
7643
+ }, /* @__PURE__ */ React75.createElement(Skeleton, {
7401
7644
  height: 20,
7402
7645
  width: 20
7403
- }), /* @__PURE__ */ React70.createElement(Skeleton, {
7646
+ }), /* @__PURE__ */ React75.createElement(Skeleton, {
7404
7647
  height: 20,
7405
7648
  width: 150
7406
7649
  }));
7407
7650
  RadioButton2.Skeleton = RadioButtonSkeleton;
7408
7651
 
7409
7652
  // src/components/RadioButtonGroup/RadioButtonGroup.tsx
7410
- import React71 from "react";
7653
+ import React76 from "react";
7411
7654
  import uniqueId8 from "lodash/uniqueId";
7412
7655
  var isRadioButton = (c) => {
7413
- return React71.isValidElement(c) && c.type === RadioButton2;
7656
+ return React76.isValidElement(c) && c.type === RadioButton2;
7414
7657
  };
7415
7658
  var RadioButtonGroup = (_a) => {
7416
7659
  var _b = _a, {
@@ -7433,7 +7676,7 @@ var RadioButtonGroup = (_a) => {
7433
7676
  "children"
7434
7677
  ]);
7435
7678
  var _a2;
7436
- const [value, setValue] = React71.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
7679
+ const [value, setValue] = React76.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
7437
7680
  const errorMessageId = uniqueId8();
7438
7681
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7439
7682
  const labelControlProps = getLabelControlProps(props);
@@ -7444,14 +7687,14 @@ var RadioButtonGroup = (_a) => {
7444
7687
  setValue(e.target.value);
7445
7688
  onChange == null ? void 0 : onChange(e.target.value);
7446
7689
  };
7447
- const content = React71.Children.map(children, (c) => {
7690
+ const content = React76.Children.map(children, (c) => {
7448
7691
  var _a3, _b2, _c;
7449
7692
  if (!isRadioButton(c)) {
7450
7693
  return null;
7451
7694
  }
7452
7695
  const defaultChecked = defaultValue === void 0 ? void 0 : c.props.value === defaultValue;
7453
7696
  const checked = value === void 0 ? void 0 : c.props.value === value;
7454
- return React71.cloneElement(c, {
7697
+ return React76.cloneElement(c, {
7455
7698
  name,
7456
7699
  defaultChecked: (_a3 = c.props.defaultChecked) != null ? _a3 : defaultChecked,
7457
7700
  checked: (_b2 = c.props.checked) != null ? _b2 : checked,
@@ -7460,11 +7703,11 @@ var RadioButtonGroup = (_a) => {
7460
7703
  readOnly
7461
7704
  });
7462
7705
  });
7463
- return /* @__PURE__ */ React71.createElement(LabelControl, __spreadValues(__spreadValues({
7706
+ return /* @__PURE__ */ React76.createElement(LabelControl, __spreadValues(__spreadValues({
7464
7707
  fieldset: true
7465
- }, labelControlProps), errorProps), cols && /* @__PURE__ */ React71.createElement(InputGroup, {
7708
+ }, labelControlProps), errorProps), cols && /* @__PURE__ */ React76.createElement(InputGroup, {
7466
7709
  cols
7467
- }, content), !cols && /* @__PURE__ */ React71.createElement(Flexbox, {
7710
+ }, content), !cols && /* @__PURE__ */ React76.createElement(Flexbox, {
7468
7711
  direction,
7469
7712
  alignItems: "flex-start",
7470
7713
  colGap: "8",
@@ -7473,64 +7716,64 @@ var RadioButtonGroup = (_a) => {
7473
7716
  }, content));
7474
7717
  };
7475
7718
  var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
7476
- return /* @__PURE__ */ React71.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React71.createElement("div", {
7719
+ return /* @__PURE__ */ React76.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React76.createElement("div", {
7477
7720
  className: tw("flex flex-wrap", {
7478
7721
  "flex-row gap-8": direction === "row",
7479
7722
  "flex-col gap-2": direction === "column"
7480
7723
  })
7481
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React71.createElement(RadioButton2.Skeleton, {
7724
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React76.createElement(RadioButton2.Skeleton, {
7482
7725
  key
7483
7726
  }))));
7484
7727
  };
7485
7728
  RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
7486
7729
 
7487
7730
  // src/components/Section/Section.tsx
7488
- import React73 from "react";
7731
+ import React78 from "react";
7489
7732
 
7490
7733
  // src/common/Section/Section.tsx
7491
- import React72 from "react";
7734
+ import React77 from "react";
7492
7735
  var Section2 = (_a) => {
7493
7736
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
7494
- return /* @__PURE__ */ React72.createElement(Box, __spreadValues({
7737
+ return /* @__PURE__ */ React77.createElement(Box, __spreadValues({
7495
7738
  borderColor: "grey-5",
7496
7739
  borderWidth: "1px"
7497
7740
  }, rest), children);
7498
7741
  };
7499
7742
  Section2.Header = (_a) => {
7500
7743
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7501
- return /* @__PURE__ */ React72.createElement("div", __spreadProps(__spreadValues({}, rest), {
7744
+ return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({}, rest), {
7502
7745
  className: classNames(tw("px-6 py-5 flex gap-5 justify-between items-center"), className)
7503
7746
  }), children);
7504
7747
  };
7505
7748
  Section2.TitleContainer = (_a) => {
7506
7749
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7507
- return /* @__PURE__ */ React72.createElement("div", __spreadProps(__spreadValues({}, rest), {
7750
+ return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({}, rest), {
7508
7751
  className: classNames(tw("flex flex-col grow gap-2"), className)
7509
7752
  }), children);
7510
7753
  };
7511
7754
  Section2.Title = (_a) => {
7512
7755
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
7513
- return /* @__PURE__ */ React72.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
7756
+ return /* @__PURE__ */ React77.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
7514
7757
  color: "black"
7515
7758
  }), children);
7516
7759
  };
7517
7760
  Section2.Subtitle = (_a) => {
7518
7761
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
7519
- return /* @__PURE__ */ React72.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
7762
+ return /* @__PURE__ */ React77.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
7520
7763
  color: "grey-70"
7521
7764
  }), children);
7522
7765
  };
7523
7766
  Section2.Actions = (_a) => {
7524
7767
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7525
- return /* @__PURE__ */ React72.createElement("div", __spreadProps(__spreadValues({}, rest), {
7768
+ return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({}, rest), {
7526
7769
  className: classNames(tw("flex gap-4 justify-end"), className)
7527
7770
  }), children);
7528
7771
  };
7529
7772
  Section2.Body = (_a) => {
7530
7773
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7531
- return /* @__PURE__ */ React72.createElement("div", __spreadProps(__spreadValues({}, rest), {
7774
+ return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({}, rest), {
7532
7775
  className: classNames(tw("p-6"), className)
7533
- }), /* @__PURE__ */ React72.createElement(Typography, {
7776
+ }), /* @__PURE__ */ React77.createElement(Typography, {
7534
7777
  htmlTag: "div",
7535
7778
  color: "grey-70"
7536
7779
  }, children));
@@ -7538,15 +7781,15 @@ Section2.Body = (_a) => {
7538
7781
 
7539
7782
  // src/components/Section/Section.tsx
7540
7783
  import castArray4 from "lodash/castArray";
7541
- var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React73.createElement(Section2, null, title && /* @__PURE__ */ React73.createElement(React73.Fragment, null, /* @__PURE__ */ React73.createElement(Section2.Header, null, /* @__PURE__ */ React73.createElement(Section2.TitleContainer, null, /* @__PURE__ */ React73.createElement(Section2.Title, null, title), /* @__PURE__ */ React73.createElement(Section2.Subtitle, null, subtitle)), /* @__PURE__ */ React73.createElement(Section2.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
7784
+ var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React78.createElement(Section2, null, title && /* @__PURE__ */ React78.createElement(React78.Fragment, null, /* @__PURE__ */ React78.createElement(Section2.Header, null, /* @__PURE__ */ React78.createElement(Section2.TitleContainer, null, /* @__PURE__ */ React78.createElement(Section2.Title, null, title), subtitle && /* @__PURE__ */ React78.createElement(Section2.Subtitle, null, subtitle)), /* @__PURE__ */ React78.createElement(Section2.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
7542
7785
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
7543
- return /* @__PURE__ */ React73.createElement(SecondaryButton, __spreadValues({
7786
+ return /* @__PURE__ */ React78.createElement(SecondaryButton, __spreadValues({
7544
7787
  key: text
7545
7788
  }, action), text);
7546
- }))), /* @__PURE__ */ React73.createElement(Divider2, null)), /* @__PURE__ */ React73.createElement(Section2.Body, null, children));
7789
+ }))), /* @__PURE__ */ React78.createElement(Divider2, null)), /* @__PURE__ */ React78.createElement(Section2.Body, null, children));
7547
7790
 
7548
7791
  // src/components/SegmentedControl/SegmentedControl.tsx
7549
- import React74 from "react";
7792
+ import React79 from "react";
7550
7793
  var SegmentedControl = (_a) => {
7551
7794
  var _b = _a, {
7552
7795
  children,
@@ -7563,7 +7806,7 @@ var SegmentedControl = (_a) => {
7563
7806
  "selected",
7564
7807
  "className"
7565
7808
  ]);
7566
- return /* @__PURE__ */ React74.createElement("button", __spreadProps(__spreadValues({
7809
+ return /* @__PURE__ */ React79.createElement("button", __spreadProps(__spreadValues({
7567
7810
  type: "button"
7568
7811
  }, rest), {
7569
7812
  className: classNames(
@@ -7594,11 +7837,11 @@ var SegmentedControlGroup = (_a) => {
7594
7837
  "border border-grey-20 text-grey-50": variant === "outlined",
7595
7838
  "bg-grey-0": variant === "raised"
7596
7839
  });
7597
- return /* @__PURE__ */ React74.createElement("div", __spreadProps(__spreadValues({}, rest), {
7840
+ return /* @__PURE__ */ React79.createElement("div", __spreadProps(__spreadValues({}, rest), {
7598
7841
  className: classNames(classes, className)
7599
- }), React74.Children.map(
7842
+ }), React79.Children.map(
7600
7843
  children,
7601
- (child) => React74.cloneElement(child, {
7844
+ (child) => React79.cloneElement(child, {
7602
7845
  dense,
7603
7846
  variant,
7604
7847
  onClick: () => onChange(child.props.value),
@@ -7636,8 +7879,8 @@ var getCommonClassNames = (dense, selected) => tw(
7636
7879
  );
7637
7880
 
7638
7881
  // src/components/Switch/Switch.tsx
7639
- import React75 from "react";
7640
- var Switch = React75.forwardRef(
7882
+ import React80 from "react";
7883
+ var Switch = React80.forwardRef(
7641
7884
  (_a, ref) => {
7642
7885
  var _b = _a, {
7643
7886
  id,
@@ -7663,11 +7906,11 @@ var Switch = React75.forwardRef(
7663
7906
  "aria-label"
7664
7907
  ]);
7665
7908
  var _a2;
7666
- const [checked, setChecked] = React75.useState((_a2 = _checked != null ? _checked : defaultChecked) != null ? _a2 : false);
7909
+ const [checked, setChecked] = React80.useState((_a2 = _checked != null ? _checked : defaultChecked) != null ? _a2 : false);
7667
7910
  if (_checked !== void 0 && checked !== _checked) {
7668
7911
  setChecked(_checked);
7669
7912
  }
7670
- return !readOnly || checked ? /* @__PURE__ */ React75.createElement(ControlLabel, {
7913
+ return !readOnly || checked ? /* @__PURE__ */ React80.createElement(ControlLabel, {
7671
7914
  htmlFor: id,
7672
7915
  label: children,
7673
7916
  "aria-label": ariaLabel,
@@ -7675,7 +7918,7 @@ var Switch = React75.forwardRef(
7675
7918
  readOnly,
7676
7919
  disabled,
7677
7920
  style: { gap: "0 8px" }
7678
- }, !readOnly && /* @__PURE__ */ React75.createElement(Box, {
7921
+ }, !readOnly && /* @__PURE__ */ React80.createElement(Box, {
7679
7922
  component: "span",
7680
7923
  display: "inline-flex",
7681
7924
  justifyContent: "center",
@@ -7686,7 +7929,7 @@ var Switch = React75.forwardRef(
7686
7929
  "text-grey-100 cursor-pointer": !disabled
7687
7930
  })
7688
7931
  )
7689
- }, /* @__PURE__ */ React75.createElement("input", __spreadProps(__spreadValues({
7932
+ }, /* @__PURE__ */ React80.createElement("input", __spreadProps(__spreadValues({
7690
7933
  id,
7691
7934
  ref,
7692
7935
  type: "checkbox",
@@ -7700,7 +7943,7 @@ var Switch = React75.forwardRef(
7700
7943
  className: tw("appearance-none peer"),
7701
7944
  readOnly,
7702
7945
  disabled
7703
- })), /* @__PURE__ */ React75.createElement("span", {
7946
+ })), /* @__PURE__ */ React80.createElement("span", {
7704
7947
  className: tw(
7705
7948
  "rounded-full inline-block w-[34px] h-[20px] transition duration-300 peer-focus:border border-info-70",
7706
7949
  {
@@ -7710,7 +7953,7 @@ var Switch = React75.forwardRef(
7710
7953
  "opacity-40": disabled && checked
7711
7954
  }
7712
7955
  )
7713
- }), /* @__PURE__ */ React75.createElement("span", {
7956
+ }), /* @__PURE__ */ React80.createElement("span", {
7714
7957
  style: {
7715
7958
  right: checked ? "20px" : void 0,
7716
7959
  left: checked ? void 0 : "4px"
@@ -7723,19 +7966,19 @@ var Switch = React75.forwardRef(
7723
7966
  }))) : null;
7724
7967
  }
7725
7968
  );
7726
- var SwitchSkeleton = () => /* @__PURE__ */ React75.createElement("div", {
7969
+ var SwitchSkeleton = () => /* @__PURE__ */ React80.createElement("div", {
7727
7970
  className: tw("flex gap-3")
7728
- }, /* @__PURE__ */ React75.createElement(Skeleton, {
7971
+ }, /* @__PURE__ */ React80.createElement(Skeleton, {
7729
7972
  height: 20,
7730
7973
  width: 35
7731
- }), /* @__PURE__ */ React75.createElement(Skeleton, {
7974
+ }), /* @__PURE__ */ React80.createElement(Skeleton, {
7732
7975
  height: 20,
7733
7976
  width: 150
7734
7977
  }));
7735
7978
  Switch.Skeleton = SwitchSkeleton;
7736
7979
 
7737
7980
  // src/components/SwitchGroup/SwitchGroup.tsx
7738
- import React76, { useState as useState10 } from "react";
7981
+ import React81, { useState as useState11 } from "react";
7739
7982
  import uniqueId9 from "lodash/uniqueId";
7740
7983
  var SwitchGroup = (_a) => {
7741
7984
  var _b = _a, {
@@ -7754,7 +7997,7 @@ var SwitchGroup = (_a) => {
7754
7997
  "children"
7755
7998
  ]);
7756
7999
  var _a2;
7757
- const [selectedItems, setSelectedItems] = useState10((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
8000
+ const [selectedItems, setSelectedItems] = useState11((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
7758
8001
  if (value !== void 0 && value !== selectedItems) {
7759
8002
  setSelectedItems(value);
7760
8003
  }
@@ -7767,11 +8010,11 @@ var SwitchGroup = (_a) => {
7767
8010
  setSelectedItems(updated);
7768
8011
  onChange == null ? void 0 : onChange(updated);
7769
8012
  };
7770
- return /* @__PURE__ */ React76.createElement(LabelControl, __spreadValues(__spreadValues({
8013
+ return /* @__PURE__ */ React81.createElement(LabelControl, __spreadValues(__spreadValues({
7771
8014
  fieldset: true
7772
- }, labelControlProps), errorProps), /* @__PURE__ */ React76.createElement(InputGroup, {
8015
+ }, labelControlProps), errorProps), /* @__PURE__ */ React81.createElement(InputGroup, {
7773
8016
  cols
7774
- }, React76.Children.map(children, (c) => {
8017
+ }, React81.Children.map(children, (c) => {
7775
8018
  var _a3, _b2, _c, _d;
7776
8019
  if (!isComponentType(c, Switch)) {
7777
8020
  return null;
@@ -7779,7 +8022,7 @@ var SwitchGroup = (_a) => {
7779
8022
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
7780
8023
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
7781
8024
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
7782
- return React76.cloneElement(c, {
8025
+ return React81.cloneElement(c, {
7783
8026
  defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
7784
8027
  checked: (_c = c.props.checked) != null ? _c : checked,
7785
8028
  onChange: (_d = c.props.onChange) != null ? _d : handleChange,
@@ -7789,19 +8032,19 @@ var SwitchGroup = (_a) => {
7789
8032
  })));
7790
8033
  };
7791
8034
  var SwitchGroupSkeleton = ({ options = 2 }) => {
7792
- return /* @__PURE__ */ React76.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React76.createElement("div", {
8035
+ return /* @__PURE__ */ React81.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React81.createElement("div", {
7793
8036
  className: tw("flex flex-wrap flex-col gap-2")
7794
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React76.createElement(Switch.Skeleton, {
8037
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React81.createElement(Switch.Skeleton, {
7795
8038
  key
7796
8039
  }))));
7797
8040
  };
7798
8041
  SwitchGroup.Skeleton = SwitchGroupSkeleton;
7799
8042
 
7800
8043
  // src/components/TagLabel/TagLabel.tsx
7801
- import React77 from "react";
8044
+ import React82 from "react";
7802
8045
  var TagLabel = (_a) => {
7803
8046
  var _b = _a, { title, dense = false } = _b, rest = __objRest(_b, ["title", "dense"]);
7804
- return /* @__PURE__ */ React77.createElement("span", __spreadProps(__spreadValues({}, rest), {
8047
+ return /* @__PURE__ */ React82.createElement("span", __spreadProps(__spreadValues({}, rest), {
7805
8048
  className: tw("rounded-full text-white bg-primary-70", {
7806
8049
  "py-2 px-4 typography-caption-default": !dense,
7807
8050
  "py-2 px-3 typography-caption-small": dense
@@ -7809,31 +8052,15 @@ var TagLabel = (_a) => {
7809
8052
  }), title);
7810
8053
  };
7811
8054
 
7812
- // src/components/Template/Template.tsx
7813
- import React78 from "react";
7814
- var Template = ({ children, columns, gap, columnGap, rowGap }) => {
7815
- const gridTemplateColumns = typeof columns === "number" ? "1fr ".repeat(columns) : columns.map((column) => typeof column === "number" ? `${column}px` : column === "auto" ? column : `${column}fr`).join(" ");
7816
- const styles = useStyle({
7817
- display: "grid",
7818
- gridTemplateColumns,
7819
- gap,
7820
- rowGap,
7821
- columnGap
7822
- });
7823
- return /* @__PURE__ */ React78.createElement("div", {
7824
- style: __spreadValues({}, styles)
7825
- }, children);
7826
- };
7827
-
7828
8055
  // src/components/Textarea/Textarea.tsx
7829
- import React79, { useRef as useRef10, useState as useState11 } from "react";
8056
+ import React83, { useRef as useRef11, useState as useState12 } from "react";
7830
8057
  import uniqueId10 from "lodash/uniqueId";
7831
8058
  import toString2 from "lodash/toString";
7832
8059
  import omit16 from "lodash/omit";
7833
- var TextareaBase = React79.forwardRef(
8060
+ var TextareaBase = React83.forwardRef(
7834
8061
  (_a, ref) => {
7835
8062
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
7836
- return /* @__PURE__ */ React79.createElement("textarea", __spreadProps(__spreadValues({
8063
+ return /* @__PURE__ */ React83.createElement("textarea", __spreadProps(__spreadValues({
7837
8064
  ref
7838
8065
  }, props), {
7839
8066
  readOnly,
@@ -7841,23 +8068,23 @@ var TextareaBase = React79.forwardRef(
7841
8068
  }));
7842
8069
  }
7843
8070
  );
7844
- TextareaBase.Skeleton = () => /* @__PURE__ */ React79.createElement(Skeleton, {
8071
+ TextareaBase.Skeleton = () => /* @__PURE__ */ React83.createElement(Skeleton, {
7845
8072
  height: 58
7846
8073
  });
7847
- var Textarea = React79.forwardRef((props, ref) => {
8074
+ var Textarea = React83.forwardRef((props, ref) => {
7848
8075
  var _a, _b, _c;
7849
- const [value, setValue] = useState11((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
7850
- const id = useRef10((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
8076
+ const [value, setValue] = useState12((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
8077
+ const id = useRef11((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
7851
8078
  const errorMessageId = uniqueId10();
7852
8079
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7853
8080
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
7854
8081
  const baseProps = omit16(props, Object.keys(labelControlProps));
7855
- return /* @__PURE__ */ React79.createElement(LabelControl, __spreadValues({
8082
+ return /* @__PURE__ */ React83.createElement(LabelControl, __spreadValues({
7856
8083
  id: `${id.current}-label`,
7857
8084
  htmlFor: id.current,
7858
8085
  messageId: errorMessageId,
7859
8086
  length: value !== void 0 ? toString2(value).length : void 0
7860
- }, labelControlProps), /* @__PURE__ */ React79.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
8087
+ }, labelControlProps), /* @__PURE__ */ React83.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
7861
8088
  ref
7862
8089
  }, baseProps), errorProps), {
7863
8090
  id: id.current,
@@ -7873,47 +8100,47 @@ var Textarea = React79.forwardRef((props, ref) => {
7873
8100
  valid: props.valid
7874
8101
  })));
7875
8102
  });
7876
- var TextAreaSkeleton = () => /* @__PURE__ */ React79.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React79.createElement(TextareaBase.Skeleton, null));
8103
+ var TextAreaSkeleton = () => /* @__PURE__ */ React83.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React83.createElement(TextareaBase.Skeleton, null));
7877
8104
  Textarea.Skeleton = TextAreaSkeleton;
7878
8105
 
7879
8106
  // src/components/Timeline/Timeline.tsx
7880
- import React81 from "react";
8107
+ import React85 from "react";
7881
8108
 
7882
8109
  // src/common/Timeline/Timeline.tsx
7883
- import React80 from "react";
8110
+ import React84 from "react";
7884
8111
  var Timeline = (_a) => {
7885
8112
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
7886
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8113
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
7887
8114
  className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
7888
8115
  }));
7889
8116
  };
7890
8117
  var Content = (_a) => {
7891
8118
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
7892
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8119
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
7893
8120
  className: classNames(tw("pb-6"), className)
7894
8121
  }));
7895
8122
  };
7896
8123
  var Separator2 = (_a) => {
7897
8124
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
7898
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8125
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
7899
8126
  className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
7900
8127
  }));
7901
8128
  };
7902
8129
  var LineContainer = (_a) => {
7903
8130
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
7904
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8131
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
7905
8132
  className: classNames(tw("flex justify-center py-1"), className)
7906
8133
  }));
7907
8134
  };
7908
8135
  var Line = (_a) => {
7909
8136
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
7910
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8137
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
7911
8138
  className: classNames(tw("w-1 bg-grey-5 h-full justify-self-center"), className)
7912
8139
  }));
7913
8140
  };
7914
8141
  var Dot = (_a) => {
7915
8142
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
7916
- return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8143
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
7917
8144
  className: classNames(tw("bg-grey-30 h-[6px] w-[6px] rounded"), className)
7918
8145
  }));
7919
8146
  };
@@ -7928,66 +8155,93 @@ var import_time = __toESM(require_time());
7928
8155
  var import_warningSign4 = __toESM(require_warningSign());
7929
8156
  var import_error4 = __toESM(require_error());
7930
8157
  var TimelineItem = () => null;
7931
- var Timeline2 = ({ children }) => /* @__PURE__ */ React81.createElement("div", null, React81.Children.map(children, (item) => {
8158
+ var Timeline2 = ({ children }) => /* @__PURE__ */ React85.createElement("div", null, React85.Children.map(children, (item) => {
7932
8159
  if (!isComponentType(item, TimelineItem)) {
7933
8160
  throw new Error("<Timeline> can only have <Timeline.Item> components as children");
7934
8161
  } else {
7935
8162
  const { props, key } = item;
7936
- return /* @__PURE__ */ React81.createElement(Timeline, {
8163
+ return /* @__PURE__ */ React85.createElement(Timeline, {
7937
8164
  key: key != null ? key : props.title
7938
- }, /* @__PURE__ */ React81.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React81.createElement(Icon, {
8165
+ }, /* @__PURE__ */ React85.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React85.createElement(Icon, {
7939
8166
  icon: import_error4.default,
7940
8167
  color: "error-30"
7941
- }) : props.variant === "warning" ? /* @__PURE__ */ React81.createElement(Icon, {
8168
+ }) : props.variant === "warning" ? /* @__PURE__ */ React85.createElement(Icon, {
7942
8169
  icon: import_warningSign4.default,
7943
8170
  color: "warning-30"
7944
- }) : props.variant === "info" ? /* @__PURE__ */ React81.createElement(Icon, {
8171
+ }) : props.variant === "info" ? /* @__PURE__ */ React85.createElement(Icon, {
7945
8172
  icon: import_time.default,
7946
8173
  color: "info-30"
7947
- }) : /* @__PURE__ */ React81.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React81.createElement(Typography2.Caption, {
8174
+ }) : /* @__PURE__ */ React85.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React85.createElement(Typography2.Caption, {
7948
8175
  fontWeight: 600
7949
- }, props.title), /* @__PURE__ */ React81.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React81.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React81.createElement(Timeline.Content, null, /* @__PURE__ */ React81.createElement(Typography2, null, props.children)));
8176
+ }, props.title), /* @__PURE__ */ React85.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React85.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React85.createElement(Timeline.Content, null, /* @__PURE__ */ React85.createElement(Typography2, null, props.children)));
7950
8177
  }
7951
8178
  }));
7952
- var TimelineItemSkeleton = () => /* @__PURE__ */ React81.createElement(Timeline, null, /* @__PURE__ */ React81.createElement(Timeline.Separator, null, /* @__PURE__ */ React81.createElement(Skeleton, {
8179
+ var TimelineItemSkeleton = () => /* @__PURE__ */ React85.createElement(Timeline, null, /* @__PURE__ */ React85.createElement(Timeline.Separator, null, /* @__PURE__ */ React85.createElement(Skeleton, {
7953
8180
  width: 6,
7954
8181
  height: 6,
7955
8182
  rounded: true
7956
- })), /* @__PURE__ */ React81.createElement(Skeleton, {
8183
+ })), /* @__PURE__ */ React85.createElement(Skeleton, {
7957
8184
  height: 12,
7958
8185
  width: 120
7959
- }), /* @__PURE__ */ React81.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React81.createElement(Skeleton, {
8186
+ }), /* @__PURE__ */ React85.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React85.createElement(Skeleton, {
7960
8187
  width: 2
7961
- })), /* @__PURE__ */ React81.createElement(Timeline.Content, null, /* @__PURE__ */ React81.createElement(Box, {
8188
+ })), /* @__PURE__ */ React85.createElement(Timeline.Content, null, /* @__PURE__ */ React85.createElement(Box, {
7962
8189
  display: "flex",
7963
8190
  flexDirection: "column",
7964
8191
  gap: "3"
7965
- }, /* @__PURE__ */ React81.createElement(Skeleton, {
8192
+ }, /* @__PURE__ */ React85.createElement(Skeleton, {
7966
8193
  height: 32,
7967
8194
  width: "100%"
7968
- }), /* @__PURE__ */ React81.createElement(Skeleton, {
8195
+ }), /* @__PURE__ */ React85.createElement(Skeleton, {
7969
8196
  height: 32,
7970
8197
  width: "73%"
7971
- }), /* @__PURE__ */ React81.createElement(Skeleton, {
8198
+ }), /* @__PURE__ */ React85.createElement(Skeleton, {
7972
8199
  height: 32,
7973
8200
  width: "80%"
7974
8201
  }))));
7975
- var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React81.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React81.createElement(TimelineItemSkeleton, {
8202
+ var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React85.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React85.createElement(TimelineItemSkeleton, {
7976
8203
  key
7977
8204
  })));
7978
8205
  Timeline2.Item = TimelineItem;
7979
8206
  Timeline2.Skeleton = TimelineSkeleton;
7980
8207
 
8208
+ // src/utils/table/useTableSelect.ts
8209
+ import React86 from "react";
8210
+ var useTableSelect = (data, { key }) => {
8211
+ const [selected, setSelected] = React86.useState([]);
8212
+ const allSelected = selected.length === data.length;
8213
+ const isSelected = (dot) => selected.includes(dot[key]);
8214
+ const selectAll = () => setSelected(data.map((dot) => dot[key]));
8215
+ const selectOnlyOne = (dot) => setSelected([dot[key]]);
8216
+ const unselectAll = () => setSelected([]);
8217
+ const toggle = (dot) => {
8218
+ if (isSelected(dot)) {
8219
+ setSelected((current) => current.filter((selectedDot) => selectedDot !== dot[key]));
8220
+ } else {
8221
+ setSelected((current) => [...current, dot[key]]);
8222
+ }
8223
+ };
8224
+ const toggleAll = () => allSelected ? unselectAll() : selectAll();
8225
+ return {
8226
+ selected,
8227
+ allSelected,
8228
+ toggle,
8229
+ toggleAll,
8230
+ isSelected,
8231
+ selectOnlyOne
8232
+ };
8233
+ };
8234
+
7981
8235
  // src/components/Pagination/usePagination.tsx
7982
- import { useState as useState12, useEffect as useEffect6 } from "react";
8236
+ import { useState as useState13, useEffect as useEffect7 } from "react";
7983
8237
  var initialState = {
7984
8238
  currentPage: 1,
7985
8239
  pageSize: 10
7986
8240
  };
7987
8241
  var getPageIndex = (currentPage, pageSize) => currentPage === 0 ? 0 : (currentPage - 1) * pageSize;
7988
8242
  var usePagination = (items, options) => {
7989
- const [currentPage, setCurrentPage] = useState12((options == null ? void 0 : options.initialPage) || initialState.currentPage);
7990
- const [pageSize, setPageSize] = useState12((options == null ? void 0 : options.initialPageSize) || initialState.pageSize);
8243
+ const [currentPage, setCurrentPage] = useState13((options == null ? void 0 : options.initialPage) || initialState.currentPage);
8244
+ const [pageSize, setPageSize] = useState13((options == null ? void 0 : options.initialPageSize) || initialState.pageSize);
7991
8245
  const totalPages = items.length > 0 ? Math.ceil(items.length / pageSize) : 1;
7992
8246
  const hasPreviousPage = currentPage > 1;
7993
8247
  const hasNextPage = currentPage < totalPages;
@@ -7996,7 +8250,7 @@ var usePagination = (items, options) => {
7996
8250
  setPageSize(pageSize2);
7997
8251
  setCurrentPage((options == null ? void 0 : options.initialPage) || initialState.currentPage);
7998
8252
  };
7999
- useEffect6(() => {
8253
+ useEffect7(() => {
8000
8254
  setCurrentPage((options == null ? void 0 : options.initialPage) || initialState.currentPage);
8001
8255
  }, [items.length]);
8002
8256
  return [
@@ -8143,6 +8397,7 @@ export {
8143
8397
  Breadcrumbs,
8144
8398
  Button,
8145
8399
  Card,
8400
+ Carousel,
8146
8401
  CharCounter,
8147
8402
  Checkbox2 as Checkbox,
8148
8403
  CheckboxGroup,
@@ -8153,6 +8408,7 @@ export {
8153
8408
  ComboboxBase,
8154
8409
  Context,
8155
8410
  ControlLabel,
8411
+ DataList2 as DataList,
8156
8412
  DataTable,
8157
8413
  DesignSystemContext,
8158
8414
  Dialog,
@@ -8244,6 +8500,7 @@ export {
8244
8500
  calcTopLeftPosition,
8245
8501
  calcTopPosition,
8246
8502
  calcTopRightPosition,
8503
+ cellProps,
8247
8504
  createComponent,
8248
8505
  createMountPointElement,
8249
8506
  createSimpleComponent,
@@ -8253,6 +8510,7 @@ export {
8253
8510
  isOutOfBounds,
8254
8511
  placementOrder,
8255
8512
  export_theme as theme,
8513
+ toSortDirection,
8256
8514
  usePagination,
8257
8515
  usePopoverContext,
8258
8516
  useScrollTarget,