@aivenio/aquarium 1.8.0 → 1.9.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 (32) hide show
  1. package/dist/_variables.scss +1 -1
  2. package/dist/_variables_timescale.scss +1 -1
  3. package/dist/atoms.cjs +31 -38
  4. package/dist/atoms.mjs +31 -38
  5. package/dist/src/common/Card/Card.d.ts +9 -2
  6. package/dist/src/common/Card/Card.js +13 -9
  7. package/dist/src/common/LineClamp/LineClamp.d.ts +9 -0
  8. package/dist/src/common/LineClamp/LineClamp.js +18 -0
  9. package/dist/src/components/Card/Card.d.ts +4 -1
  10. package/dist/src/components/Card/Card.js +29 -17
  11. package/dist/src/components/Card/Compact.d.ts +3 -0
  12. package/dist/src/components/Card/Compact.js +23 -13
  13. package/dist/src/components/Card/types.d.ts +5 -0
  14. package/dist/src/components/DataTable/DataTable.js +2 -2
  15. package/dist/src/components/LineClamp/LineClamp.d.ts +2 -1
  16. package/dist/src/components/LineClamp/LineClamp.js +4 -4
  17. package/dist/src/components/MultiSelect/MultiSelect.js +14 -4
  18. package/dist/src/components/Pagination/Pagination.js +6 -17
  19. package/dist/src/components/Pagination/usePagination.js +5 -3
  20. package/dist/src/components/Skeleton/Skeleton.d.ts +3 -3
  21. package/dist/src/components/Skeleton/Skeleton.js +3 -2
  22. package/dist/src/utils/table/types.d.ts +2 -0
  23. package/dist/src/utils/table/types.js +2 -2
  24. package/dist/styles.css +18 -0
  25. package/dist/styles_timescaledb.css +18 -0
  26. package/dist/system.cjs +836 -782
  27. package/dist/system.mjs +800 -746
  28. package/dist/tsconfig.module.tsbuildinfo +1 -1
  29. package/dist/types/DimensionProps.d.ts +3 -0
  30. package/dist/types/DimensionProps.js +2 -0
  31. package/dist/types/tailwindGenerated.d.ts +1 -1
  32. package/package.json +1 -1
package/dist/system.mjs CHANGED
@@ -1586,7 +1586,7 @@ __export(components_exports, {
1586
1586
  InlineIcon: () => InlineIcon,
1587
1587
  Input: () => Input2,
1588
1588
  InputBase: () => InputBase,
1589
- LineClamp: () => LineClamp,
1589
+ LineClamp: () => LineClamp2,
1590
1590
  Link: () => Link2,
1591
1591
  List: () => List,
1592
1592
  ListItem: () => ListItem,
@@ -1692,20 +1692,20 @@ var classNames = (...args) => {
1692
1692
  // src/components/Icon/Icon.tsx
1693
1693
  var Icon = React.forwardRef((_a, ref) => {
1694
1694
  var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
1695
- const classes = classNames(className, color && `text-${color}`);
1695
+ const classes2 = classNames(className, color && `text-${color}`);
1696
1696
  return /* @__PURE__ */ React.createElement(IconifyIconComponent, __spreadValues({
1697
1697
  ref: ref != null ? ref : void 0,
1698
- className: classes !== "" ? classes : void 0
1698
+ className: classes2 !== "" ? classes2 : void 0
1699
1699
  }, rest));
1700
1700
  });
1701
1701
  var InlineIcon = React.forwardRef((_a, ref) => {
1702
1702
  var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
1703
- const classes = classNames(color && `text-${color}`);
1703
+ const classes2 = classNames(color && `text-${color}`);
1704
1704
  return /* @__PURE__ */ React.createElement("span", {
1705
1705
  className: classNames(tw("children:inline-block inline-flex justify-center items-center"), className)
1706
1706
  }, /* @__PURE__ */ React.createElement(IconifyInlineIconComponent, __spreadValues({
1707
1707
  ref: ref != null ? ref : void 0,
1708
- className: classes !== "" ? classes : void 0
1708
+ className: classes2 !== "" ? classes2 : void 0
1709
1709
  }, rest)));
1710
1710
  });
1711
1711
 
@@ -3476,12 +3476,13 @@ var Skeleton = ({
3476
3476
  }) => {
3477
3477
  const styles = {
3478
3478
  width: isNumber(width) ? `${width}px` : width,
3479
- height: isUndefined7(height) ? "1em" : isNumber(height) ? `${height}px` : height
3479
+ height: isNumber(height) ? `${height}px` : height
3480
3480
  };
3481
3481
  return /* @__PURE__ */ React14.createElement("div", {
3482
3482
  style: styles,
3483
3483
  className: classNames(
3484
3484
  tw("bg-grey-5", {
3485
+ "h-auto before:content-['_'] whitespace-pre origin-[0%_45%] scale-[0.55]": isUndefined7(height),
3485
3486
  "rounded-full": rounded,
3486
3487
  "block": display === "block",
3487
3488
  "inline-block": display === "inline-block",
@@ -3757,7 +3758,8 @@ var ActiveCrumb = asCrumb("span", "ActiveCrumb", { isActive: true });
3757
3758
  Breadcrumbs.Crumb = Crumb;
3758
3759
 
3759
3760
  // src/components/Card/Card.tsx
3760
- import React25 from "react";
3761
+ import React26, { useRef as useRef3 } from "react";
3762
+ import { useButton as useButton2 } from "@react-aria/button";
3761
3763
  import omit5 from "lodash/omit";
3762
3764
 
3763
3765
  // src/components/Chip/Chip.tsx
@@ -3992,32 +3994,26 @@ Typography2.SmallTextBold = (_a) => {
3992
3994
 
3993
3995
  // src/common/Card/Card.tsx
3994
3996
  import React23 from "react";
3995
- var Card = (_a) => {
3996
- var _b = _a, {
3997
- disabled,
3998
- fullWidth,
3999
- clickable,
4000
- className,
4001
- children
4002
- } = _b, rest = __objRest(_b, [
4003
- "disabled",
4004
- "fullWidth",
4005
- "clickable",
4006
- "className",
4007
- "children"
4008
- ]);
4009
- return /* @__PURE__ */ React23.createElement("div", __spreadProps(__spreadValues({}, rest), {
4010
- className: classNames(
4011
- tw("border-grey-5 border-[1px] rounded-[2px] relative p-5 flex flex-col gap-5", {
4012
- "w-[280px]": !fullWidth,
4013
- "w-full min-w-[280px]": Boolean(fullWidth),
4014
- "active:bg-grey-5 cursor-pointer hover:border-grey-50 focus:border-info-70": Boolean(clickable && !disabled),
4015
- "bg-grey-0 cursor-not-allowed focus:border-transparent": Boolean(disabled)
4016
- }),
4017
- className
4018
- )
4019
- }), children);
4020
- };
3997
+ import isNumber3 from "lodash/isNumber";
3998
+ var Card = React23.forwardRef(
3999
+ (_a, ref) => {
4000
+ var _b = _a, { disabled, fullWidth, enableMinWidth = true, clickable, className, children } = _b, rest = __objRest(_b, ["disabled", "fullWidth", "enableMinWidth", "clickable", "className", "children"]);
4001
+ return /* @__PURE__ */ React23.createElement("div", __spreadProps(__spreadValues({
4002
+ ref
4003
+ }, rest), {
4004
+ className: classNames(
4005
+ tw("border-grey-5 border-[1px] rounded-[2px] relative p-5 flex flex-col gap-5", {
4006
+ "w-[280px]": !fullWidth,
4007
+ "w-full": Boolean(fullWidth),
4008
+ "min-w-[280px]": Boolean(fullWidth) && Boolean(enableMinWidth),
4009
+ "active:bg-grey-5 cursor-pointer hover:border-grey-50 focus:border-info-70": Boolean(clickable && !disabled),
4010
+ "bg-grey-0 cursor-not-allowed focus:border-transparent": Boolean(disabled)
4011
+ }),
4012
+ className
4013
+ )
4014
+ }), children);
4015
+ }
4016
+ );
4021
4017
  var ColorHighlight = (_a) => {
4022
4018
  var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
4023
4019
  return /* @__PURE__ */ React23.createElement(Box, __spreadProps(__spreadValues({}, rest), {
@@ -4036,16 +4032,15 @@ var ImageContainer = (_a) => {
4036
4032
  )
4037
4033
  }));
4038
4034
  };
4039
- var Image = ({
4040
- image,
4041
- imageAlt,
4042
- fullSize
4043
- }) => /* @__PURE__ */ React23.createElement("img", {
4035
+ var classes = "w-full bg-cover object-cover";
4036
+ var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__ */ React23.createElement("img", {
4044
4037
  src: image,
4045
4038
  alt: imageAlt,
4046
- className: tw("w-full bg-cover object-cover h-[174px]", {
4047
- "h-[225px]": Boolean(fullSize)
4048
- })
4039
+ className: tw(classes, {
4040
+ "h-[174px]": !imageHeight && !fullSize,
4041
+ "h-[225px]": !imageHeight && fullSize
4042
+ }),
4043
+ style: { height: isNumber3(imageHeight) ? `${imageHeight}px` : imageHeight }
4049
4044
  });
4050
4045
  var Content = (_a) => {
4051
4046
  var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
@@ -4065,11 +4060,25 @@ Card.ImageContainer = ImageContainer;
4065
4060
  Card.Image = Image;
4066
4061
  Card.ColorHiglight = ColorHighlight;
4067
4062
 
4068
- // src/components/Card/Compact.tsx
4063
+ // src/common/LineClamp/LineClamp.tsx
4069
4064
  import React24 from "react";
4065
+ var LineClamp = React24.forwardRef(
4066
+ (_a, ref) => {
4067
+ var _b = _a, { lines = 1, clamped = true, children, className } = _b, props = __objRest(_b, ["lines", "clamped", "children", "className"]);
4068
+ return /* @__PURE__ */ React24.createElement("div", __spreadValues({
4069
+ ref,
4070
+ className: classNames(className, "break-all", { [`line-clamp-${lines}`]: clamped })
4071
+ }, props), children);
4072
+ }
4073
+ );
4074
+
4075
+ // src/components/Card/Compact.tsx
4076
+ import React25, { useRef as useRef2 } from "react";
4077
+ import { useButton } from "@react-aria/button";
4070
4078
  import { omit as omit4 } from "lodash";
4071
4079
  var CompactCard = ({
4072
4080
  title,
4081
+ clampTitle,
4073
4082
  chips = [],
4074
4083
  icon,
4075
4084
  color,
@@ -4079,68 +4088,76 @@ var CompactCard = ({
4079
4088
  disabled,
4080
4089
  fullWidth,
4081
4090
  children
4082
- }) => /* @__PURE__ */ React24.createElement(Card, {
4083
- onClick: disabled ? void 0 : onClick,
4084
- disabled,
4085
- fullWidth,
4086
- clickable: Boolean(onClick),
4087
- tabIndex: onClick ? 0 : -1
4088
- }, color && /* @__PURE__ */ React24.createElement(Card.ColorHiglight, {
4089
- color
4090
- }), chips.length > 0 && /* @__PURE__ */ React24.createElement(ChipContainer, {
4091
- dense: true
4092
- }, chips.map((chip) => /* @__PURE__ */ React24.createElement(Chip2, {
4093
- key: chip,
4094
- text: chip
4095
- }))), /* @__PURE__ */ React24.createElement(Box, {
4096
- display: "flex",
4097
- gap: "5"
4098
- }, icon && /* @__PURE__ */ React24.createElement(Avatar, {
4099
- image: icon
4100
- }), /* @__PURE__ */ React24.createElement(Card.Content, {
4101
- dense: true
4102
- }, /* @__PURE__ */ React24.createElement(Typography2.SmallStrong, {
4103
- color: "black"
4104
- }, title), /* @__PURE__ */ React24.createElement(Typography2.Caption, {
4105
- color: "grey-70"
4106
- }, children))), (action || link) && /* @__PURE__ */ React24.createElement(Card.Actions, {
4107
- dense: true
4108
- }, action && /* @__PURE__ */ React24.createElement(SecondaryButton, __spreadValues({
4109
- dense: true
4110
- }, omit4(action, "text")), action.text), link && /* @__PURE__ */ React24.createElement(ExternalLinkButton, __spreadValues({
4111
- dense: true,
4112
- kind: "ghost"
4113
- }, omit4(link, "text")), link.text)));
4091
+ }) => {
4092
+ const ref = useRef2(null);
4093
+ const { buttonProps } = useButton({ elementType: "div", onPress: onClick, isDisabled: disabled }, ref);
4094
+ const titleContent = /* @__PURE__ */ React25.createElement(Typography2.SmallStrong, {
4095
+ color: "black"
4096
+ }, title);
4097
+ return /* @__PURE__ */ React25.createElement(Card, __spreadProps(__spreadValues({
4098
+ ref,
4099
+ clickable: Boolean(onClick),
4100
+ fullWidth,
4101
+ enableMinWidth: Boolean(action || link || chips.length)
4102
+ }, onClick ? buttonProps : {}), {
4103
+ disabled
4104
+ }), color && /* @__PURE__ */ React25.createElement(Card.ColorHiglight, {
4105
+ color
4106
+ }), chips.length > 0 && /* @__PURE__ */ React25.createElement(ChipContainer, {
4107
+ dense: true
4108
+ }, chips.map((chip) => /* @__PURE__ */ React25.createElement(Chip2, {
4109
+ key: chip,
4110
+ text: chip
4111
+ }))), /* @__PURE__ */ React25.createElement(Box, {
4112
+ display: "flex",
4113
+ gap: "5"
4114
+ }, icon && /* @__PURE__ */ React25.createElement(Avatar, {
4115
+ image: icon
4116
+ }), /* @__PURE__ */ React25.createElement(Card.Content, {
4117
+ dense: true
4118
+ }, clampTitle ? /* @__PURE__ */ React25.createElement(LineClamp, {
4119
+ lines: clampTitle
4120
+ }, titleContent) : titleContent, /* @__PURE__ */ React25.createElement(Typography2.Caption, {
4121
+ color: "grey-70"
4122
+ }, children))), (action || link) && /* @__PURE__ */ React25.createElement(Card.Actions, {
4123
+ dense: true
4124
+ }, action && /* @__PURE__ */ React25.createElement(SecondaryButton, __spreadValues({
4125
+ dense: true
4126
+ }, omit4(action, "text")), action.text), link && /* @__PURE__ */ React25.createElement(ExternalLinkButton, __spreadValues({
4127
+ dense: true,
4128
+ kind: "ghost"
4129
+ }, omit4(link, "text")), link.text)));
4130
+ };
4114
4131
  var CompactSkeleton = ({
4115
4132
  chips = true,
4116
4133
  icon = true,
4117
4134
  actions = true,
4118
4135
  fullWidth = false
4119
- }) => /* @__PURE__ */ React24.createElement(Card, {
4136
+ }) => /* @__PURE__ */ React25.createElement(Card, {
4120
4137
  fullWidth
4121
- }, chips && /* @__PURE__ */ React24.createElement(ChipContainer, {
4138
+ }, chips && /* @__PURE__ */ React25.createElement(ChipContainer, {
4122
4139
  dense: true
4123
- }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React24.createElement(Chip2.Skeleton, {
4140
+ }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React25.createElement(Chip2.Skeleton, {
4124
4141
  key: idx
4125
- }))), /* @__PURE__ */ React24.createElement(Box, {
4142
+ }))), /* @__PURE__ */ React25.createElement(Box, {
4126
4143
  display: "flex",
4127
4144
  gap: "5"
4128
- }, icon && /* @__PURE__ */ React24.createElement(Avatar.Skeleton, null), /* @__PURE__ */ React24.createElement(Card.Content, {
4145
+ }, icon && /* @__PURE__ */ React25.createElement(Avatar.Skeleton, null), /* @__PURE__ */ React25.createElement(Card.Content, {
4129
4146
  dense: true
4130
- }, /* @__PURE__ */ React24.createElement(Skeleton, {
4147
+ }, /* @__PURE__ */ React25.createElement(Skeleton, {
4131
4148
  width: 80,
4132
4149
  height: 20
4133
- }), /* @__PURE__ */ React24.createElement(Box, {
4150
+ }), /* @__PURE__ */ React25.createElement(Box, {
4134
4151
  height: "1"
4135
- }), /* @__PURE__ */ React24.createElement(Skeleton, {
4152
+ }), /* @__PURE__ */ React25.createElement(Skeleton, {
4136
4153
  width: 145,
4137
4154
  height: 16
4138
- }))), actions && /* @__PURE__ */ React24.createElement(Card.Actions, {
4155
+ }))), actions && /* @__PURE__ */ React25.createElement(Card.Actions, {
4139
4156
  dense: true
4140
- }, /* @__PURE__ */ React24.createElement(Skeleton, {
4157
+ }, /* @__PURE__ */ React25.createElement(Skeleton, {
4141
4158
  width: 115,
4142
4159
  height: 25
4143
- }), /* @__PURE__ */ React24.createElement(Skeleton, {
4160
+ }), /* @__PURE__ */ React25.createElement(Skeleton, {
4144
4161
  width: 60,
4145
4162
  height: 25
4146
4163
  })));
@@ -4149,11 +4166,13 @@ CompactCard.Skeleton = CompactSkeleton;
4149
4166
  // src/components/Card/Card.tsx
4150
4167
  var Card2 = ({
4151
4168
  title,
4169
+ clampTitle,
4152
4170
  description,
4153
4171
  chips = [],
4154
4172
  icons = [],
4155
4173
  image,
4156
4174
  imageAlt,
4175
+ imageHeight,
4157
4176
  color,
4158
4177
  action,
4159
4178
  link,
@@ -4161,84 +4180,108 @@ var Card2 = ({
4161
4180
  disabled,
4162
4181
  fullWidth,
4163
4182
  children
4164
- }) => /* @__PURE__ */ React25.createElement(Card, {
4165
- onClick: disabled ? void 0 : onClick,
4166
- disabled,
4167
- fullWidth,
4168
- clickable: Boolean(onClick),
4169
- tabIndex: onClick ? 0 : -1
4170
- }, color && /* @__PURE__ */ React25.createElement(Card.ColorHiglight, {
4171
- color
4172
- }), chips.length > 0 && /* @__PURE__ */ React25.createElement(ChipContainer, {
4173
- dense: true
4174
- }, chips.map((chip) => /* @__PURE__ */ React25.createElement(Chip2, {
4175
- key: chip,
4176
- text: chip
4177
- }))), icons.length > 0 && /* @__PURE__ */ React25.createElement(AvatarStack, {
4178
- images: icons
4179
- }), image !== void 0 && /* @__PURE__ */ React25.createElement(CardImage, {
4180
- image,
4181
- imageAlt,
4182
- fullSize: chips.length === 0
4183
- }), /* @__PURE__ */ React25.createElement(Card.Content, null, /* @__PURE__ */ React25.createElement(Typography2.DefaultStrong, {
4184
- color: "black"
4185
- }, title), /* @__PURE__ */ React25.createElement(Typography2.Caption, {
4186
- color: "grey-70"
4187
- }, children || description)), (action || link) && /* @__PURE__ */ React25.createElement(Card.Actions, null, action && /* @__PURE__ */ React25.createElement(SecondaryButton, __spreadValues({
4188
- dense: true
4189
- }, omit5(action, "text")), action.text), link && /* @__PURE__ */ React25.createElement(ExternalLinkButton, __spreadValues({
4190
- dense: true,
4191
- kind: "ghost"
4192
- }, omit5(link, "text")), link.text)));
4183
+ }) => {
4184
+ const ref = useRef3(null);
4185
+ const { buttonProps } = useButton2({ elementType: "div", onPress: onClick, isDisabled: disabled }, ref);
4186
+ const titleContent = /* @__PURE__ */ React26.createElement(Typography2.DefaultStrong, {
4187
+ color: "black"
4188
+ }, title);
4189
+ return /* @__PURE__ */ React26.createElement(Card, __spreadProps(__spreadValues({
4190
+ ref,
4191
+ clickable: Boolean(onClick),
4192
+ fullWidth,
4193
+ enableMinWidth: Boolean(image || action || link || chips.length || icons.length)
4194
+ }, onClick ? buttonProps : {}), {
4195
+ disabled
4196
+ }), color && /* @__PURE__ */ React26.createElement(Card.ColorHiglight, {
4197
+ color
4198
+ }), chips.length > 0 && /* @__PURE__ */ React26.createElement(ChipContainer, {
4199
+ dense: true
4200
+ }, chips.map((chip) => /* @__PURE__ */ React26.createElement(Chip2, {
4201
+ key: chip,
4202
+ text: chip
4203
+ }))), icons.length > 0 && /* @__PURE__ */ React26.createElement(AvatarStack, {
4204
+ images: icons
4205
+ }), image !== void 0 && (imageHeight ? /* @__PURE__ */ React26.createElement(CardImage, {
4206
+ image,
4207
+ imageAlt,
4208
+ imageHeight
4209
+ }) : /* @__PURE__ */ React26.createElement(CardImage, {
4210
+ image,
4211
+ imageAlt,
4212
+ fullSize: chips.length === 0
4213
+ })), /* @__PURE__ */ React26.createElement(Card.Content, null, clampTitle ? /* @__PURE__ */ React26.createElement(LineClamp, {
4214
+ lines: clampTitle
4215
+ }, titleContent) : titleContent, /* @__PURE__ */ React26.createElement(Typography2.Caption, {
4216
+ color: "grey-70"
4217
+ }, children || description)), (action || link) && /* @__PURE__ */ React26.createElement(Card.Actions, null, action && /* @__PURE__ */ React26.createElement(SecondaryButton, __spreadValues({
4218
+ dense: true
4219
+ }, omit5(action, "text")), action.text), link && /* @__PURE__ */ React26.createElement(ExternalLinkButton, __spreadValues({
4220
+ dense: true,
4221
+ kind: "ghost"
4222
+ }, omit5(link, "text")), link.text)));
4223
+ };
4193
4224
  var CardSkeleton = ({
4194
4225
  chips = true,
4195
4226
  icons = false,
4196
4227
  image = !icons,
4197
4228
  actions = true,
4198
- fullWidth = false
4199
- }) => /* @__PURE__ */ React25.createElement(Card, {
4229
+ fullWidth = false,
4230
+ imageHeight
4231
+ }) => /* @__PURE__ */ React26.createElement(Card, {
4200
4232
  fullWidth
4201
- }, chips && /* @__PURE__ */ React25.createElement(ChipContainer, {
4233
+ }, chips && /* @__PURE__ */ React26.createElement(ChipContainer, {
4202
4234
  dense: true
4203
- }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React25.createElement(Chip2.Skeleton, {
4235
+ }, Array.from({ length: 5 }).map((_, idx) => /* @__PURE__ */ React26.createElement(Chip2.Skeleton, {
4204
4236
  key: idx
4205
- }))), icons && /* @__PURE__ */ React25.createElement(AvatarStack, {
4237
+ }))), icons && /* @__PURE__ */ React26.createElement(AvatarStack, {
4206
4238
  images: [null]
4207
- }), image && /* @__PURE__ */ React25.createElement(CardImage, {
4239
+ }), image && (imageHeight ? /* @__PURE__ */ React26.createElement(CardImage, {
4240
+ image: null,
4241
+ imageHeight
4242
+ }) : /* @__PURE__ */ React26.createElement(CardImage, {
4208
4243
  image: null,
4209
4244
  fullSize: !chips
4210
- }), /* @__PURE__ */ React25.createElement(Card.Content, null, /* @__PURE__ */ React25.createElement(Skeleton, {
4245
+ })), /* @__PURE__ */ React26.createElement(Card.Content, null, /* @__PURE__ */ React26.createElement(Skeleton, {
4211
4246
  width: 145,
4212
4247
  height: 25
4213
- }), /* @__PURE__ */ React25.createElement(Skeleton, {
4248
+ }), /* @__PURE__ */ React26.createElement(Skeleton, {
4214
4249
  width: 145,
4215
4250
  height: 16
4216
- })), actions && /* @__PURE__ */ React25.createElement(Card.Actions, null, /* @__PURE__ */ React25.createElement(Skeleton, {
4251
+ })), actions && /* @__PURE__ */ React26.createElement(Card.Actions, null, /* @__PURE__ */ React26.createElement(Skeleton, {
4217
4252
  width: 115,
4218
4253
  height: 25
4219
- }), /* @__PURE__ */ React25.createElement(Skeleton, {
4254
+ }), /* @__PURE__ */ React26.createElement(Skeleton, {
4220
4255
  width: 60,
4221
4256
  height: 25
4222
4257
  })));
4223
4258
  Card2.Skeleton = CardSkeleton;
4224
4259
  Card2.Compact = CompactCard;
4225
- var CardImage = ({ image, imageAlt, fullSize }) => /* @__PURE__ */ React25.createElement(Card.ImageContainer, {
4260
+ var CardImage = ({ image, imageAlt, imageHeight, fullSize = false }) => /* @__PURE__ */ React26.createElement(Card.ImageContainer, {
4226
4261
  fullSize
4227
- }, image ? /* @__PURE__ */ React25.createElement(Card.Image, {
4262
+ }, image ? imageHeight ? /* @__PURE__ */ React26.createElement(Card.Image, {
4263
+ image,
4264
+ imageAlt,
4265
+ imageHeight
4266
+ }) : /* @__PURE__ */ React26.createElement(Card.Image, {
4228
4267
  image,
4229
4268
  imageAlt,
4230
4269
  fullSize
4231
- }) : /* @__PURE__ */ React25.createElement(CardImage.Skeleton, {
4232
- fullSize
4270
+ }) : /* @__PURE__ */ React26.createElement(CardImage.Skeleton, {
4271
+ fullSize,
4272
+ imageHeight
4233
4273
  }));
4234
- var CardImageSkeleton = ({ fullSize }) => /* @__PURE__ */ React25.createElement(Skeleton, {
4274
+ var CardImageSkeleton = ({ imageHeight, fullSize }) => imageHeight ? /* @__PURE__ */ React26.createElement(Skeleton, {
4275
+ height: imageHeight,
4276
+ width: "100%"
4277
+ }) : /* @__PURE__ */ React26.createElement(Skeleton, {
4235
4278
  height: fullSize ? 225 : 174,
4236
4279
  width: "100%"
4237
4280
  });
4238
4281
  CardImage.Skeleton = CardImageSkeleton;
4239
4282
 
4240
4283
  // src/components/Carousel/Carousel.tsx
4241
- import React26, { useEffect as useEffect3, useLayoutEffect, useRef as useRef2, useState as useState2 } from "react";
4284
+ import React27, { useEffect as useEffect3, useLayoutEffect, useRef as useRef4, useState as useState2 } from "react";
4242
4285
  var import_chevronLeft = __toESM(require_chevronLeft());
4243
4286
  var import_chevronRight = __toESM(require_chevronRight());
4244
4287
  var Carousel = ({
@@ -4247,9 +4290,9 @@ var Carousel = ({
4247
4290
  onPageChange,
4248
4291
  children
4249
4292
  }) => {
4250
- const containerRef = useRef2(null);
4251
- const scrollbarContainerRef = useRef2(null);
4252
- const items = React26.Children.toArray(children);
4293
+ const containerRef = useRef4(null);
4294
+ const scrollbarContainerRef = useRef4(null);
4295
+ const items = React27.Children.toArray(children);
4253
4296
  const [width, setWidth] = useState2(0);
4254
4297
  const [isUpdating, setIsUpdating] = useState2(false);
4255
4298
  const [currentPage, setCurrentPage] = useState2(currentPageProp != null ? currentPageProp : defaultPage);
@@ -4299,30 +4342,30 @@ var Carousel = ({
4299
4342
  onPageChange && onPageChange(newPage);
4300
4343
  }
4301
4344
  };
4302
- return items.length > 0 ? /* @__PURE__ */ React26.createElement("div", {
4345
+ return items.length > 0 ? /* @__PURE__ */ React27.createElement("div", {
4303
4346
  className: tw("w-full flex flex-col"),
4304
4347
  ref: containerRef
4305
- }, containerRef !== null && /* @__PURE__ */ React26.createElement("ul", {
4348
+ }, containerRef !== null && /* @__PURE__ */ React27.createElement("ul", {
4306
4349
  ref: scrollbarContainerRef,
4307
4350
  tabIndex: 0,
4308
4351
  onScroll: handleScroll,
4309
4352
  className: tw(
4310
4353
  "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"
4311
4354
  )
4312
- }, width !== 0 && React26.Children.map(children, (child, index) => /* @__PURE__ */ React26.createElement(CarouselItem, {
4355
+ }, width !== 0 && React27.Children.map(children, (child, index) => /* @__PURE__ */ React27.createElement(CarouselItem, {
4313
4356
  key: index,
4314
4357
  width,
4315
4358
  ariaHidden: index + 1 === currentPage ? void 0 : true
4316
- }, child))), /* @__PURE__ */ React26.createElement(Flexbox, {
4359
+ }, child))), /* @__PURE__ */ React27.createElement(Flexbox, {
4317
4360
  direction: "row",
4318
4361
  justifyContent: "flex-end",
4319
4362
  alignItems: "center"
4320
- }, /* @__PURE__ */ React26.createElement(IconButton, {
4363
+ }, /* @__PURE__ */ React27.createElement(IconButton, {
4321
4364
  "aria-label": "Previous",
4322
4365
  onClick: () => handleNavigationClick("left"),
4323
4366
  icon: import_chevronLeft.default,
4324
4367
  disabled: currentPage === 1
4325
- }), /* @__PURE__ */ React26.createElement(Typography2.Caption, null, `${currentPage}/${React26.Children.count(children)}`), /* @__PURE__ */ React26.createElement(IconButton, {
4368
+ }), /* @__PURE__ */ React27.createElement(Typography2.Caption, null, `${currentPage}/${React27.Children.count(children)}`), /* @__PURE__ */ React27.createElement(IconButton, {
4326
4369
  "aria-label": "Next",
4327
4370
  onClick: () => handleNavigationClick("right"),
4328
4371
  icon: import_chevronRight.default,
@@ -4330,7 +4373,7 @@ var Carousel = ({
4330
4373
  }))) : null;
4331
4374
  };
4332
4375
  var CarouselItem = ({ width, children, ariaHidden }) => {
4333
- return /* @__PURE__ */ React26.createElement("li", {
4376
+ return /* @__PURE__ */ React27.createElement("li", {
4334
4377
  style: { width },
4335
4378
  "aria-hidden": ariaHidden,
4336
4379
  className: tw("flex justify-center snap-start")
@@ -4338,10 +4381,10 @@ var CarouselItem = ({ width, children, ariaHidden }) => {
4338
4381
  };
4339
4382
 
4340
4383
  // src/components/Checkbox/Checkbox.tsx
4341
- import React29 from "react";
4384
+ import React30 from "react";
4342
4385
 
4343
4386
  // src/components/ControlLabel/ControlLabel.tsx
4344
- import React27 from "react";
4387
+ import React28 from "react";
4345
4388
  var ControlLabel = (_a) => {
4346
4389
  var _b = _a, {
4347
4390
  label,
@@ -4359,7 +4402,7 @@ var ControlLabel = (_a) => {
4359
4402
  "style"
4360
4403
  ]);
4361
4404
  const textClass = disabled ? "text-grey-40" : "text-grey-100";
4362
- return /* @__PURE__ */ React27.createElement("label", __spreadValues({
4405
+ return /* @__PURE__ */ React28.createElement("label", __spreadValues({
4363
4406
  className: tw(
4364
4407
  "inline-grid grid-cols-[auto_1fr]",
4365
4408
  {
@@ -4369,9 +4412,9 @@ var ControlLabel = (_a) => {
4369
4412
  textClass
4370
4413
  ),
4371
4414
  style: __spreadValues({}, style)
4372
- }, rest), children, label && /* @__PURE__ */ React27.createElement("span", {
4415
+ }, rest), children, label && /* @__PURE__ */ React28.createElement("span", {
4373
4416
  className: tw("typography-small self-center")
4374
- }, label), caption && /* @__PURE__ */ React27.createElement(Typography2, {
4417
+ }, label), caption && /* @__PURE__ */ React28.createElement(Typography2, {
4375
4418
  className: tw("col-start-2"),
4376
4419
  variant: "caption",
4377
4420
  color: disabled ? "grey-40" : "grey-50"
@@ -4379,18 +4422,18 @@ var ControlLabel = (_a) => {
4379
4422
  };
4380
4423
 
4381
4424
  // src/common/Checkbox/Checkbox.tsx
4382
- import React28 from "react";
4425
+ import React29 from "react";
4383
4426
  var import_minus = __toESM(require_minus());
4384
4427
  var import_tick2 = __toESM(require_tick());
4385
- var Checkbox = React28.forwardRef(
4428
+ var Checkbox = React29.forwardRef(
4386
4429
  (_a, ref) => {
4387
4430
  var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
4388
- return /* @__PURE__ */ React28.createElement("span", {
4431
+ return /* @__PURE__ */ React29.createElement("span", {
4389
4432
  className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
4390
4433
  "hover:border-grey-50 peer-checked:border-navyBlue-100": !disabled,
4391
4434
  "border-grey-5": disabled
4392
4435
  })
4393
- }, /* @__PURE__ */ React28.createElement("input", __spreadProps(__spreadValues({
4436
+ }, /* @__PURE__ */ React29.createElement("input", __spreadProps(__spreadValues({
4394
4437
  id,
4395
4438
  ref,
4396
4439
  type: "checkbox",
@@ -4404,7 +4447,7 @@ var Checkbox = React28.forwardRef(
4404
4447
  ),
4405
4448
  readOnly,
4406
4449
  disabled
4407
- })), /* @__PURE__ */ React28.createElement(Icon, {
4450
+ })), /* @__PURE__ */ React29.createElement(Icon, {
4408
4451
  icon: indeterminate ? import_minus.default : import_tick2.default,
4409
4452
  className: classNames(
4410
4453
  tw(
@@ -4423,12 +4466,12 @@ var Checkbox = React28.forwardRef(
4423
4466
  );
4424
4467
 
4425
4468
  // src/components/Checkbox/Checkbox.tsx
4426
- var Checkbox2 = React29.forwardRef(
4469
+ var Checkbox2 = React30.forwardRef(
4427
4470
  (_a, ref) => {
4428
4471
  var _b = _a, { id, name, caption, readOnly = false, disabled = false, children, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["id", "name", "caption", "readOnly", "disabled", "children", "aria-label"]);
4429
4472
  var _a2;
4430
4473
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
4431
- return !readOnly || isChecked ? /* @__PURE__ */ React29.createElement(ControlLabel, {
4474
+ return !readOnly || isChecked ? /* @__PURE__ */ React30.createElement(ControlLabel, {
4432
4475
  htmlFor: id,
4433
4476
  label: children,
4434
4477
  "aria-label": ariaLabel,
@@ -4436,7 +4479,7 @@ var Checkbox2 = React29.forwardRef(
4436
4479
  readOnly,
4437
4480
  disabled,
4438
4481
  style: { gap: "0 8px" }
4439
- }, !readOnly && /* @__PURE__ */ React29.createElement(Checkbox, __spreadProps(__spreadValues({
4482
+ }, !readOnly && /* @__PURE__ */ React30.createElement(Checkbox, __spreadProps(__spreadValues({
4440
4483
  id,
4441
4484
  ref,
4442
4485
  name
@@ -4447,12 +4490,12 @@ var Checkbox2 = React29.forwardRef(
4447
4490
  }
4448
4491
  );
4449
4492
  Checkbox2.displayName = "Checkbox";
4450
- var CheckboxSkeleton = () => /* @__PURE__ */ React29.createElement("div", {
4493
+ var CheckboxSkeleton = () => /* @__PURE__ */ React30.createElement("div", {
4451
4494
  className: tw("flex gap-3")
4452
- }, /* @__PURE__ */ React29.createElement(Skeleton, {
4495
+ }, /* @__PURE__ */ React30.createElement(Skeleton, {
4453
4496
  height: 20,
4454
4497
  width: 20
4455
- }), /* @__PURE__ */ React29.createElement(Skeleton, {
4498
+ }), /* @__PURE__ */ React30.createElement(Skeleton, {
4456
4499
  height: 20,
4457
4500
  width: 150
4458
4501
  }));
@@ -4460,14 +4503,14 @@ Checkbox2.Skeleton = CheckboxSkeleton;
4460
4503
  Checkbox2.Skeleton.displayName = "Checkbox.Skeleton";
4461
4504
 
4462
4505
  // src/components/CheckboxGroup/CheckboxGroup.tsx
4463
- import React36, { useState as useState3 } from "react";
4506
+ import React37, { useState as useState3 } from "react";
4464
4507
  import uniqueId from "lodash/uniqueId";
4465
4508
 
4466
4509
  // src/common/InputGroup/InputGroup.tsx
4467
- import React31 from "react";
4510
+ import React32 from "react";
4468
4511
 
4469
4512
  // src/components/Grid/Grid.tsx
4470
- import React30 from "react";
4513
+ import React31 from "react";
4471
4514
  var Grid = Tailwindify(
4472
4515
  ({
4473
4516
  htmlTag = "div",
@@ -4520,7 +4563,7 @@ var Grid = Tailwindify(
4520
4563
  gridRowEnd: rowEnd
4521
4564
  });
4522
4565
  const HtmlElement = htmlTag;
4523
- return /* @__PURE__ */ React30.createElement(HtmlElement, {
4566
+ return /* @__PURE__ */ React31.createElement(HtmlElement, {
4524
4567
  style: __spreadValues(__spreadValues({}, hookStyle), style),
4525
4568
  className
4526
4569
  }, children);
@@ -4536,7 +4579,7 @@ var gridColumnStyles = {
4536
4579
  };
4537
4580
  var InputGroup = (_a) => {
4538
4581
  var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
4539
- return /* @__PURE__ */ React31.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
4582
+ return /* @__PURE__ */ React32.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
4540
4583
  display: "inline-grid",
4541
4584
  colGap: "l4",
4542
4585
  rowGap: "3",
@@ -4546,12 +4589,12 @@ var InputGroup = (_a) => {
4546
4589
  };
4547
4590
 
4548
4591
  // src/utils/form/Label/Label.tsx
4549
- import React35 from "react";
4592
+ import React36 from "react";
4550
4593
 
4551
4594
  // src/utils/form/FormControl/FormControl.tsx
4552
- import React32 from "react";
4595
+ import React33 from "react";
4553
4596
  var FormControl = ({ className, inline, children }) => {
4554
- return /* @__PURE__ */ React32.createElement(Flexbox, {
4597
+ return /* @__PURE__ */ React33.createElement(Flexbox, {
4555
4598
  direction: "column",
4556
4599
  display: inline ? "inline-flex" : "flex",
4557
4600
  className
@@ -4559,14 +4602,14 @@ var FormControl = ({ className, inline, children }) => {
4559
4602
  };
4560
4603
 
4561
4604
  // src/utils/form/HelperText/HelperText.tsx
4562
- import React34 from "react";
4605
+ import React35 from "react";
4563
4606
  import classNames3 from "classnames";
4564
- import isNumber3 from "lodash/isNumber";
4607
+ import isNumber4 from "lodash/isNumber";
4565
4608
 
4566
4609
  // src/utils/form/CharCounter/CharCounter.tsx
4567
- import React33 from "react";
4610
+ import React34 from "react";
4568
4611
  var CharCounter = ({ dense = true, length, maxLength, valid = true }) => {
4569
- return /* @__PURE__ */ React33.createElement("span", {
4612
+ return /* @__PURE__ */ React34.createElement("span", {
4570
4613
  className: tw(
4571
4614
  `whitespace-nowrap`,
4572
4615
  valid ? "text-grey-50" : "text-error-70",
@@ -4585,37 +4628,37 @@ var HelperText = ({
4585
4628
  reserveSpaceForError = true
4586
4629
  }) => {
4587
4630
  const hasError = error2 && helperText;
4588
- const hasMaxLength = isNumber3(maxLength) && maxLength > 0;
4631
+ const hasMaxLength = isNumber4(maxLength) && maxLength > 0;
4589
4632
  const showMessage = hasError || hasMaxLength;
4590
4633
  if (!showMessage) {
4591
- return reserveSpaceForError ? /* @__PURE__ */ React34.createElement("p", {
4634
+ return reserveSpaceForError ? /* @__PURE__ */ React35.createElement("p", {
4592
4635
  className: tw("block mt-1 mb-3 typography-caption")
4593
4636
  }, "\xA0") : null;
4594
4637
  }
4595
- return /* @__PURE__ */ React34.createElement(Grid, {
4638
+ return /* @__PURE__ */ React35.createElement(Grid, {
4596
4639
  cols: "1",
4597
4640
  rows: "1",
4598
4641
  colGap: "3",
4599
4642
  alignItems: "start",
4600
4643
  autoCols: "min",
4601
4644
  className: tw("mt-1 mb-3")
4602
- }, /* @__PURE__ */ React34.createElement(GridItem, {
4645
+ }, /* @__PURE__ */ React35.createElement(GridItem, {
4603
4646
  colStart: "1",
4604
4647
  colEnd: "2"
4605
- }, hasError && /* @__PURE__ */ React34.createElement("p", {
4648
+ }, hasError && /* @__PURE__ */ React35.createElement("p", {
4606
4649
  id: messageId,
4607
4650
  className: tw("text-error-50 block typography-caption")
4608
- }, helperText)), /* @__PURE__ */ React34.createElement(GridItem, {
4651
+ }, helperText)), /* @__PURE__ */ React35.createElement(GridItem, {
4609
4652
  colStart: "2",
4610
4653
  colEnd: "3",
4611
4654
  display: "flex"
4612
- }, isNumber3(length) && hasMaxLength && /* @__PURE__ */ React34.createElement(CharCounter, {
4655
+ }, isNumber4(length) && hasMaxLength && /* @__PURE__ */ React35.createElement(CharCounter, {
4613
4656
  length,
4614
4657
  maxLength,
4615
4658
  valid: !error2
4616
4659
  })));
4617
4660
  };
4618
- var Skeleton2 = ({ className, children }) => /* @__PURE__ */ React34.createElement("div", {
4661
+ var Skeleton2 = ({ className, children }) => /* @__PURE__ */ React35.createElement("div", {
4619
4662
  className: classNames3(className, "h-[25px]")
4620
4663
  }, children);
4621
4664
  HelperText.Skeleton = Skeleton2;
@@ -4630,35 +4673,35 @@ var LabelText = ({
4630
4673
  helpTooltip,
4631
4674
  helpTooltipPlacement
4632
4675
  }) => {
4633
- return /* @__PURE__ */ React35.createElement("span", {
4676
+ return /* @__PURE__ */ React36.createElement("span", {
4634
4677
  className: tw("inline-block mb-2 typography-small-strong", {
4635
4678
  "text-grey-60": variant === "default",
4636
4679
  "text-error-50": variant === "error",
4637
4680
  "text-grey-40": variant === "disabled"
4638
4681
  })
4639
- }, labelText, required && /* @__PURE__ */ React35.createElement("span", {
4682
+ }, labelText, required && /* @__PURE__ */ React36.createElement("span", {
4640
4683
  className: tw("text-error-50")
4641
- }, "*"), helpTooltip && /* @__PURE__ */ React35.createElement(Tooltip, {
4684
+ }, "*"), helpTooltip && /* @__PURE__ */ React36.createElement(Tooltip, {
4642
4685
  content: helpTooltip,
4643
4686
  placement: helpTooltipPlacement
4644
- }, /* @__PURE__ */ React35.createElement("span", {
4687
+ }, /* @__PURE__ */ React36.createElement("span", {
4645
4688
  className: tw("text-grey-30 flex items-center cursor-pointer ml-2")
4646
- }, /* @__PURE__ */ React35.createElement(InlineIcon, {
4689
+ }, /* @__PURE__ */ React36.createElement(InlineIcon, {
4647
4690
  icon: import_questionMark.default,
4648
4691
  "data-testid": "icon-info"
4649
4692
  }))));
4650
4693
  };
4651
4694
  var Label = (props) => {
4652
4695
  const _a = props, { id, htmlFor, labelText, labelProps: _b = {} } = _a, labelProps = __objRest(_b, []), { "data-testid": dataTestid, children } = _a;
4653
- return /* @__PURE__ */ React35.createElement("label", __spreadValues({
4696
+ return /* @__PURE__ */ React36.createElement("label", __spreadValues({
4654
4697
  id,
4655
4698
  className: tw("w-full"),
4656
4699
  "data-testid": dataTestid,
4657
4700
  htmlFor
4658
- }, labelProps), labelText && /* @__PURE__ */ React35.createElement(LabelText, __spreadValues({}, props)), children);
4701
+ }, labelProps), labelText && /* @__PURE__ */ React36.createElement(LabelText, __spreadValues({}, props)), children);
4659
4702
  };
4660
4703
  var LabelSkeleton = () => {
4661
- return /* @__PURE__ */ React35.createElement(Skeleton, {
4704
+ return /* @__PURE__ */ React36.createElement(Skeleton, {
4662
4705
  height: 20,
4663
4706
  width: 100,
4664
4707
  className: tw("mb-[7px]")
@@ -4691,15 +4734,15 @@ var LabelControl = (_a) => {
4691
4734
  ]);
4692
4735
  const legacyError = error2 !== void 0 && valid === false;
4693
4736
  const variant = !valid || legacyError ? "error" : disabled ? "disabled" : "default";
4694
- return /* @__PURE__ */ React35.createElement(FormControl, null, !fieldset && /* @__PURE__ */ React35.createElement(Label, __spreadProps(__spreadValues({}, rest), {
4737
+ return /* @__PURE__ */ React36.createElement(FormControl, null, !fieldset && /* @__PURE__ */ React36.createElement(Label, __spreadProps(__spreadValues({}, rest), {
4695
4738
  variant
4696
- }), children), fieldset && /* @__PURE__ */ React35.createElement("fieldset", {
4739
+ }), children), fieldset && /* @__PURE__ */ React36.createElement("fieldset", {
4697
4740
  id: rest.id
4698
- }, /* @__PURE__ */ React35.createElement("legend", {
4741
+ }, /* @__PURE__ */ React36.createElement("legend", {
4699
4742
  className: tw("w-full mb-2")
4700
- }, /* @__PURE__ */ React35.createElement(LabelText, __spreadProps(__spreadValues({}, rest), {
4743
+ }, /* @__PURE__ */ React36.createElement(LabelText, __spreadProps(__spreadValues({}, rest), {
4701
4744
  variant
4702
- }))), children), /* @__PURE__ */ React35.createElement(HelperText, {
4745
+ }))), children), /* @__PURE__ */ React36.createElement(HelperText, {
4703
4746
  messageId,
4704
4747
  error: !valid,
4705
4748
  helperText,
@@ -4708,7 +4751,7 @@ var LabelControl = (_a) => {
4708
4751
  reserveSpaceForError
4709
4752
  }));
4710
4753
  };
4711
- var LabelControlSkeleton = ({ children }) => /* @__PURE__ */ React35.createElement("div", null, /* @__PURE__ */ React35.createElement(Label.Skeleton, null), children, /* @__PURE__ */ React35.createElement(HelperText.Skeleton, null));
4754
+ var LabelControlSkeleton = ({ children }) => /* @__PURE__ */ React36.createElement("div", null, /* @__PURE__ */ React36.createElement(Label.Skeleton, null), children, /* @__PURE__ */ React36.createElement(HelperText.Skeleton, null));
4712
4755
  LabelControl.Skeleton = LabelControlSkeleton;
4713
4756
  var getLabelControlProps = (_a) => {
4714
4757
  var _b = _a, {
@@ -4744,7 +4787,7 @@ var getLabelControlProps = (_a) => {
4744
4787
 
4745
4788
  // src/components/CheckboxGroup/CheckboxGroup.tsx
4746
4789
  var isCheckbox = (c) => {
4747
- return React36.isValidElement(c) && c.type === Checkbox2;
4790
+ return React37.isValidElement(c) && c.type === Checkbox2;
4748
4791
  };
4749
4792
  var CheckboxGroup = (_a) => {
4750
4793
  var _b = _a, {
@@ -4776,11 +4819,11 @@ var CheckboxGroup = (_a) => {
4776
4819
  setSelectedItems(updated);
4777
4820
  onChange == null ? void 0 : onChange(updated);
4778
4821
  };
4779
- return /* @__PURE__ */ React36.createElement(LabelControl, __spreadValues(__spreadValues({
4822
+ return /* @__PURE__ */ React37.createElement(LabelControl, __spreadValues(__spreadValues({
4780
4823
  fieldset: true
4781
- }, labelControlProps), errorProps), /* @__PURE__ */ React36.createElement(InputGroup, {
4824
+ }, labelControlProps), errorProps), /* @__PURE__ */ React37.createElement(InputGroup, {
4782
4825
  cols
4783
- }, React36.Children.map(children, (c) => {
4826
+ }, React37.Children.map(children, (c) => {
4784
4827
  var _a3, _b2;
4785
4828
  if (!isCheckbox(c)) {
4786
4829
  return null;
@@ -4788,7 +4831,7 @@ var CheckboxGroup = (_a) => {
4788
4831
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
4789
4832
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
4790
4833
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
4791
- return React36.cloneElement(c, {
4834
+ return React37.cloneElement(c, {
4792
4835
  defaultChecked,
4793
4836
  checked,
4794
4837
  onChange: (_b2 = c.props.onChange) != null ? _b2 : handleChange,
@@ -4798,9 +4841,9 @@ var CheckboxGroup = (_a) => {
4798
4841
  })));
4799
4842
  };
4800
4843
  var CheckboxGroupSkeleton = ({ options = 2 }) => {
4801
- return /* @__PURE__ */ React36.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React36.createElement("div", {
4844
+ return /* @__PURE__ */ React37.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React37.createElement("div", {
4802
4845
  className: tw("flex flex-wrap flex-col gap-2")
4803
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React36.createElement(Checkbox2.Skeleton, {
4846
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React37.createElement(Checkbox2.Skeleton, {
4804
4847
  key
4805
4848
  }))));
4806
4849
  };
@@ -4808,7 +4851,7 @@ CheckboxGroup.Skeleton = CheckboxGroupSkeleton;
4808
4851
  CheckboxGroup.Skeleton.displayName = "CheckboxGroup.Skeleton";
4809
4852
 
4810
4853
  // src/components/ChoiceChip/ChoiceChip.tsx
4811
- import React37, { useState as useState4 } from "react";
4854
+ import React38, { useState as useState4 } from "react";
4812
4855
  var ChoiceChip = (_a) => {
4813
4856
  var _b = _a, { text, dense, defaultValue, value, onChange } = _b, rest = __objRest(_b, ["text", "dense", "defaultValue", "value", "onChange"]);
4814
4857
  var _a2;
@@ -4822,7 +4865,7 @@ var ChoiceChip = (_a) => {
4822
4865
  setSelected(!selected);
4823
4866
  onChange == null ? void 0 : onChange(!selected);
4824
4867
  };
4825
- return /* @__PURE__ */ React37.createElement("span", __spreadProps(__spreadValues({
4868
+ return /* @__PURE__ */ React38.createElement("span", __spreadProps(__spreadValues({
4826
4869
  role: "button",
4827
4870
  "aria-pressed": selected
4828
4871
  }, rest), {
@@ -4837,7 +4880,7 @@ var ChoiceChip = (_a) => {
4837
4880
  };
4838
4881
 
4839
4882
  // src/components/Combobox/Combobox.tsx
4840
- import React40, { useEffect as useEffect4, useRef as useRef3, useState as useState5 } from "react";
4883
+ import React41, { useEffect as useEffect4, useRef as useRef5, useState as useState5 } from "react";
4841
4884
  import { useOverlayPosition as useOverlayPosition2 } from "@react-aria/overlays";
4842
4885
  import { useCombobox } from "downshift";
4843
4886
  import omit6 from "lodash/omit";
@@ -4845,16 +4888,16 @@ import uniqueId2 from "lodash/uniqueId";
4845
4888
  import { matchSorter } from "match-sorter";
4846
4889
 
4847
4890
  // src/components/Popover/PopoverWrapper.tsx
4848
- import React39 from "react";
4891
+ import React40 from "react";
4849
4892
  import { FocusScope } from "@react-aria/focus";
4850
4893
  import { DismissButton, OverlayContainer as OverlayContainer2, useModal, useOverlay } from "@react-aria/overlays";
4851
4894
  import { mergeProps as mergeProps2 } from "@react-aria/utils";
4852
4895
 
4853
4896
  // src/common/Popover/Popover.tsx
4854
- import React38 from "react";
4855
- var PopoverPanel = React38.forwardRef((_a, ref) => {
4897
+ import React39 from "react";
4898
+ var PopoverPanel = React39.forwardRef((_a, ref) => {
4856
4899
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
4857
- return /* @__PURE__ */ React38.createElement("div", __spreadValues({
4900
+ return /* @__PURE__ */ React39.createElement("div", __spreadValues({
4858
4901
  ref,
4859
4902
  className: classNames(
4860
4903
  className,
@@ -4869,7 +4912,7 @@ var Popover = {
4869
4912
  };
4870
4913
 
4871
4914
  // src/components/Popover/PopoverWrapper.tsx
4872
- var PopoverWrapper = React39.forwardRef((props, ref) => {
4915
+ var PopoverWrapper = React40.forwardRef((props, ref) => {
4873
4916
  const _a = props, {
4874
4917
  id,
4875
4918
  children,
@@ -4909,17 +4952,17 @@ var PopoverWrapper = React39.forwardRef((props, ref) => {
4909
4952
  if (!props.isOpen) {
4910
4953
  return null;
4911
4954
  }
4912
- return /* @__PURE__ */ React39.createElement(OverlayContainer2, null, /* @__PURE__ */ React39.createElement(FocusScope, {
4955
+ return /* @__PURE__ */ React40.createElement(OverlayContainer2, null, /* @__PURE__ */ React40.createElement(FocusScope, {
4913
4956
  restoreFocus: true,
4914
4957
  autoFocus,
4915
4958
  contain: containFocus
4916
- }, /* @__PURE__ */ React39.createElement(Popover.Panel, __spreadProps(__spreadValues({
4959
+ }, /* @__PURE__ */ React40.createElement(Popover.Panel, __spreadProps(__spreadValues({
4917
4960
  ref,
4918
4961
  role: "dialog"
4919
4962
  }, mergeProps2(otherProps, modalProps, overlayProps)), {
4920
4963
  id: id != null ? id : overlayProps.id,
4921
4964
  className
4922
- }), children, /* @__PURE__ */ React39.createElement(DismissButton, {
4965
+ }), children, /* @__PURE__ */ React40.createElement(DismissButton, {
4923
4966
  onDismiss: props.onClose
4924
4967
  }))));
4925
4968
  });
@@ -4966,8 +5009,8 @@ var ComboboxBase = (_a) => {
4966
5009
  "readOnly"
4967
5010
  ]);
4968
5011
  var _a2;
4969
- const targetRef = useRef3(null);
4970
- const overlayRef = useRef3(null);
5012
+ const targetRef = useRef5(null);
5013
+ const overlayRef = useRef5(null);
4971
5014
  const [inputItems, setInputItems] = useState5(options);
4972
5015
  const [hasFocus, setFocus] = useState5(false);
4973
5016
  const updateInputItems = (query) => {
@@ -5019,12 +5062,12 @@ var ComboboxBase = (_a) => {
5019
5062
  const hasNoResults = options.length === 0 || inputItems.length === 0;
5020
5063
  const width = (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth;
5021
5064
  const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
5022
- return /* @__PURE__ */ React40.createElement("div", {
5065
+ return /* @__PURE__ */ React41.createElement("div", {
5023
5066
  className: tw("relative")
5024
- }, /* @__PURE__ */ React40.createElement(Select.InputContainer, {
5067
+ }, /* @__PURE__ */ React41.createElement(Select.InputContainer, {
5025
5068
  ref: targetRef,
5026
5069
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
5027
- }, /* @__PURE__ */ React40.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
5070
+ }, /* @__PURE__ */ React41.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
5028
5071
  id,
5029
5072
  name,
5030
5073
  placeholder: readOnly ? void 0 : placeholder
@@ -5046,10 +5089,10 @@ var ComboboxBase = (_a) => {
5046
5089
  (_a3 = inputProps.onKeyDown) == null ? void 0 : _a3.call(inputProps, e);
5047
5090
  },
5048
5091
  onKeyUp: (e) => e.stopPropagation()
5049
- })), !readOnly && /* @__PURE__ */ React40.createElement(Select.Toggle, __spreadValues({
5092
+ })), !readOnly && /* @__PURE__ */ React41.createElement(Select.Toggle, __spreadValues({
5050
5093
  hasFocus,
5051
5094
  isOpen
5052
- }, getToggleButtonProps({ disabled })))), /* @__PURE__ */ React40.createElement(PopoverWrapper, __spreadProps(__spreadValues({
5095
+ }, getToggleButtonProps({ disabled })))), /* @__PURE__ */ React41.createElement(PopoverWrapper, __spreadProps(__spreadValues({
5053
5096
  isOpen: true,
5054
5097
  isDismissable: true,
5055
5098
  autoFocus: true
@@ -5057,15 +5100,15 @@ var ComboboxBase = (_a) => {
5057
5100
  style,
5058
5101
  onClose: closeMenu,
5059
5102
  className: tw("overflow-y-auto")
5060
- }), /* @__PURE__ */ React40.createElement(Select.Menu, {
5103
+ }), /* @__PURE__ */ React41.createElement(Select.Menu, {
5061
5104
  maxHeight
5062
- }, isOpen && hasNoResults && /* @__PURE__ */ React40.createElement(Select.NoResults, null, noResults), isOpen && inputItems.map((item, index) => /* @__PURE__ */ React40.createElement(Select.Item, __spreadValues({
5105
+ }, isOpen && hasNoResults && /* @__PURE__ */ React41.createElement(Select.NoResults, null, noResults), isOpen && inputItems.map((item, index) => /* @__PURE__ */ React41.createElement(Select.Item, __spreadValues({
5063
5106
  key: itemToString(item),
5064
5107
  selected: item === selectedItem,
5065
5108
  highlighted: index === highlightedIndex
5066
5109
  }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
5067
5110
  };
5068
- var ComboboxBaseSkeleton = () => /* @__PURE__ */ React40.createElement(Skeleton, {
5111
+ var ComboboxBaseSkeleton = () => /* @__PURE__ */ React41.createElement(Skeleton, {
5069
5112
  height: 38
5070
5113
  });
5071
5114
  ComboboxBase.Skeleton = ComboboxBaseSkeleton;
@@ -5078,16 +5121,16 @@ var Combobox = (_a) => {
5078
5121
  "noResults"
5079
5122
  ]);
5080
5123
  var _a2;
5081
- const id = useRef3((_a2 = props.id) != null ? _a2 : `combobox-${uniqueId2()}`);
5124
+ const id = useRef5((_a2 = props.id) != null ? _a2 : `combobox-${uniqueId2()}`);
5082
5125
  const errorMessageId = uniqueId2();
5083
5126
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
5084
5127
  const labelControlProps = getLabelControlProps(props);
5085
5128
  const baseProps = omit6(props, Object.keys(labelControlProps));
5086
- return /* @__PURE__ */ React40.createElement(LabelControl, __spreadValues({
5129
+ return /* @__PURE__ */ React41.createElement(LabelControl, __spreadValues({
5087
5130
  id: `${id.current}-label`,
5088
5131
  htmlFor: `${id.current}-input`,
5089
5132
  messageId: errorMessageId
5090
- }, labelControlProps), /* @__PURE__ */ React40.createElement(ComboboxBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
5133
+ }, labelControlProps), /* @__PURE__ */ React41.createElement(ComboboxBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
5091
5134
  id: id.current,
5092
5135
  options,
5093
5136
  noResults,
@@ -5095,13 +5138,13 @@ var Combobox = (_a) => {
5095
5138
  valid: props.valid
5096
5139
  })));
5097
5140
  };
5098
- var ComboboxSkeleton = () => /* @__PURE__ */ React40.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React40.createElement(ComboboxBase.Skeleton, null));
5141
+ var ComboboxSkeleton = () => /* @__PURE__ */ React41.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React41.createElement(ComboboxBase.Skeleton, null));
5099
5142
  Combobox.Skeleton = ComboboxSkeleton;
5100
5143
  Combobox.Skeleton.displayName = "Combobox.Skeleton";
5101
5144
 
5102
5145
  // src/components/Container/Container.tsx
5103
- import React41 from "react";
5104
- var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React41.createElement(Box, {
5146
+ import React42 from "react";
5147
+ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React42.createElement(Box, {
5105
5148
  marginLeft: "auto",
5106
5149
  marginRight: "auto",
5107
5150
  width: "full",
@@ -5115,11 +5158,11 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React41.crea
5115
5158
  }, children);
5116
5159
 
5117
5160
  // src/components/DataList/DataList.tsx
5118
- import React47 from "react";
5161
+ import React48 from "react";
5119
5162
  import orderBy2 from "lodash/orderBy";
5120
5163
 
5121
5164
  // src/components/Template/Template.tsx
5122
- import React42 from "react";
5165
+ import React43 from "react";
5123
5166
  var Template = ({
5124
5167
  children,
5125
5168
  columns,
@@ -5145,23 +5188,23 @@ var Template = ({
5145
5188
  rowGap,
5146
5189
  columnGap
5147
5190
  });
5148
- return /* @__PURE__ */ React42.createElement("div", {
5191
+ return /* @__PURE__ */ React43.createElement("div", {
5149
5192
  style: __spreadValues({}, styles)
5150
5193
  }, children);
5151
5194
  };
5152
5195
 
5153
5196
  // src/common/DataList/DataList.tsx
5154
- import React45 from "react";
5197
+ import React46 from "react";
5155
5198
 
5156
5199
  // src/common/Table/Table.tsx
5157
- import React44 from "react";
5200
+ import React45 from "react";
5158
5201
 
5159
5202
  // src/common/RadioButton/RadioButton.tsx
5160
- import React43 from "react";
5161
- var RadioButton = React43.forwardRef(
5203
+ import React44 from "react";
5204
+ var RadioButton = React44.forwardRef(
5162
5205
  (_a, ref) => {
5163
5206
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
5164
- return /* @__PURE__ */ React43.createElement("input", __spreadProps(__spreadValues({
5207
+ return /* @__PURE__ */ React44.createElement("input", __spreadProps(__spreadValues({
5165
5208
  id,
5166
5209
  ref,
5167
5210
  type: "radio",
@@ -5187,29 +5230,29 @@ var RadioButton = React43.forwardRef(
5187
5230
  // src/common/Table/Table.tsx
5188
5231
  var import_chevronDown3 = __toESM(require_chevronDown());
5189
5232
  var import_chevronUp2 = __toESM(require_chevronUp());
5190
- var HeadContext = React44.createContext(null);
5233
+ var HeadContext = React45.createContext(null);
5191
5234
  var tableClassNames = tw("w-full relative typography-default border-spacing-0");
5192
5235
  var Table = (_a) => {
5193
5236
  var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
5194
- return /* @__PURE__ */ React44.createElement("table", __spreadProps(__spreadValues({}, rest), {
5237
+ return /* @__PURE__ */ React45.createElement("table", __spreadProps(__spreadValues({}, rest), {
5195
5238
  className: classNames(tableClassNames, className),
5196
5239
  "aria-label": ariaLabel
5197
5240
  }), children);
5198
5241
  };
5199
5242
  var TableHead = (_a) => {
5200
5243
  var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
5201
- return /* @__PURE__ */ React44.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React44.createElement("tr", null, /* @__PURE__ */ React44.createElement(HeadContext.Provider, {
5244
+ return /* @__PURE__ */ React45.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React45.createElement("tr", null, /* @__PURE__ */ React45.createElement(HeadContext.Provider, {
5202
5245
  value: { children, sticky }
5203
5246
  }, children)));
5204
5247
  };
5205
5248
  var TableBody = (_a) => {
5206
5249
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
5207
- return /* @__PURE__ */ React44.createElement("tbody", __spreadValues({}, rest), children);
5250
+ return /* @__PURE__ */ React45.createElement("tbody", __spreadValues({}, rest), children);
5208
5251
  };
5209
5252
  var rowClassNames = tw("children:border-grey-10 children:last:border-b-0 hover:bg-grey-0");
5210
5253
  var TableRow = (_a) => {
5211
5254
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5212
- return /* @__PURE__ */ React44.createElement("tr", __spreadProps(__spreadValues({}, rest), {
5255
+ return /* @__PURE__ */ React45.createElement("tr", __spreadProps(__spreadValues({}, rest), {
5213
5256
  className: classNames(rowClassNames, className)
5214
5257
  }), children);
5215
5258
  };
@@ -5225,25 +5268,25 @@ var getHeadCellClassNames = (sticky = true) => {
5225
5268
  };
5226
5269
  var TableCell = (_a) => {
5227
5270
  var _b = _a, { children, className, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "align"]);
5228
- const headContext = React44.useContext(HeadContext);
5229
- return headContext ? /* @__PURE__ */ React44.createElement("th", __spreadProps(__spreadValues({}, rest), {
5271
+ const headContext = React45.useContext(HeadContext);
5272
+ return headContext ? /* @__PURE__ */ React45.createElement("th", __spreadProps(__spreadValues({}, rest), {
5230
5273
  className: classNames(
5231
5274
  cellClassNames,
5232
5275
  getHeadCellClassNames(headContext.sticky),
5233
5276
  getAlignClassNames(align),
5234
5277
  className
5235
5278
  )
5236
- }), children) : /* @__PURE__ */ React44.createElement("td", __spreadProps(__spreadValues({}, rest), {
5279
+ }), children) : /* @__PURE__ */ React45.createElement("td", __spreadProps(__spreadValues({}, rest), {
5237
5280
  className: classNames(cellClassNames, getBodyCellClassNames(), getAlignClassNames(align), className)
5238
5281
  }), children);
5239
5282
  };
5240
5283
  var TableSelectCell = (_a) => {
5241
5284
  var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
5242
- return /* @__PURE__ */ React44.createElement(Table.Cell, {
5285
+ return /* @__PURE__ */ React45.createElement(Table.Cell, {
5243
5286
  className: tw("leading-[0px]")
5244
- }, props.type === "radio" ? /* @__PURE__ */ React44.createElement(RadioButton, __spreadValues({
5287
+ }, props.type === "radio" ? /* @__PURE__ */ React45.createElement(RadioButton, __spreadValues({
5245
5288
  "aria-label": ariaLabel
5246
- }, props)) : /* @__PURE__ */ React44.createElement(Checkbox, __spreadValues({
5289
+ }, props)) : /* @__PURE__ */ React45.createElement(Checkbox, __spreadValues({
5247
5290
  "aria-label": ariaLabel
5248
5291
  }, props)));
5249
5292
  };
@@ -5253,39 +5296,39 @@ var getSortCellIconClassNames = (active) => {
5253
5296
  };
5254
5297
  var TableSortCell = (_a) => {
5255
5298
  var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
5256
- return /* @__PURE__ */ React44.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
5299
+ return /* @__PURE__ */ React45.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
5257
5300
  "aria-sort": direction
5258
- }), /* @__PURE__ */ React44.createElement("span", {
5301
+ }), /* @__PURE__ */ React45.createElement("span", {
5259
5302
  className: getSortCellButtonClassNames(rest.align),
5260
5303
  role: "button",
5261
5304
  tabIndex: -1,
5262
5305
  onClick
5263
- }, children, /* @__PURE__ */ React44.createElement("div", {
5306
+ }, children, /* @__PURE__ */ React45.createElement("div", {
5264
5307
  "data-sort-icons": true,
5265
5308
  className: tw("flex flex-col", {
5266
5309
  "invisible group-hover:visible": direction === "none"
5267
5310
  })
5268
- }, /* @__PURE__ */ React44.createElement(InlineIcon, {
5311
+ }, /* @__PURE__ */ React45.createElement(InlineIcon, {
5269
5312
  icon: import_chevronUp2.default,
5270
5313
  className: getSortCellIconClassNames(direction === "descending")
5271
- }), /* @__PURE__ */ React44.createElement(InlineIcon, {
5314
+ }), /* @__PURE__ */ React45.createElement(InlineIcon, {
5272
5315
  icon: import_chevronDown3.default,
5273
5316
  className: getSortCellIconClassNames(direction === "ascending")
5274
5317
  }))));
5275
5318
  };
5276
- var Item2 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React44.createElement("div", {
5319
+ var Item2 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React45.createElement("div", {
5277
5320
  className: tw("flex gap-4 items-center")
5278
- }, image && /* @__PURE__ */ React44.createElement("img", {
5321
+ }, image && /* @__PURE__ */ React45.createElement("img", {
5279
5322
  src: image,
5280
5323
  alt: imageAlt,
5281
5324
  style: { width: imageSize, height: imageSize }
5282
- }), /* @__PURE__ */ React44.createElement("div", null, title, caption && /* @__PURE__ */ React44.createElement(Typography2.Caption, null, caption)));
5283
- Table.Head = React44.memo(TableHead);
5284
- Table.Body = React44.memo(TableBody);
5285
- Table.Row = React44.memo(TableRow);
5286
- Table.Cell = React44.memo(TableCell);
5287
- Table.SortCell = React44.memo(TableSortCell);
5288
- Table.SelectCell = React44.memo(TableSelectCell);
5325
+ }), /* @__PURE__ */ React45.createElement("div", null, title, caption && /* @__PURE__ */ React45.createElement(Typography2.Caption, null, caption)));
5326
+ Table.Head = React45.memo(TableHead);
5327
+ Table.Body = React45.memo(TableBody);
5328
+ Table.Row = React45.memo(TableRow);
5329
+ Table.Cell = React45.memo(TableCell);
5330
+ Table.SortCell = React45.memo(TableSortCell);
5331
+ Table.SelectCell = React45.memo(TableSelectCell);
5289
5332
 
5290
5333
  // src/common/DataList/DataList.tsx
5291
5334
  var import_chevronDown4 = __toESM(require_chevronDown());
@@ -5297,7 +5340,7 @@ var getAlignClassNames2 = (align) => tw("flex items-center", {
5297
5340
  });
5298
5341
  var DataList = (_a) => {
5299
5342
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
5300
- return /* @__PURE__ */ React45.createElement("div", __spreadValues({}, rest));
5343
+ return /* @__PURE__ */ React46.createElement("div", __spreadValues({}, rest));
5301
5344
  };
5302
5345
  var HeadCell = (_a) => {
5303
5346
  var _b = _a, {
@@ -5309,14 +5352,14 @@ var HeadCell = (_a) => {
5309
5352
  "sticky",
5310
5353
  "align"
5311
5354
  ]);
5312
- return /* @__PURE__ */ React45.createElement("div", __spreadProps(__spreadValues({}, rest), {
5355
+ return /* @__PURE__ */ React46.createElement("div", __spreadProps(__spreadValues({}, rest), {
5313
5356
  role: "cell",
5314
5357
  className: classNames(cellClassNames, getHeadCellClassNames(sticky), getAlignClassNames2(align), className)
5315
5358
  }));
5316
5359
  };
5317
5360
  var Cell = (_a) => {
5318
5361
  var _b = _a, { className, align } = _b, rest = __objRest(_b, ["className", "align"]);
5319
- return /* @__PURE__ */ React45.createElement("div", __spreadProps(__spreadValues({}, rest), {
5362
+ return /* @__PURE__ */ React46.createElement("div", __spreadProps(__spreadValues({}, rest), {
5320
5363
  role: "cell",
5321
5364
  className: classNames(
5322
5365
  cellClassNames,
@@ -5329,31 +5372,31 @@ var Cell = (_a) => {
5329
5372
  };
5330
5373
  var Row = (_a) => {
5331
5374
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
5332
- return /* @__PURE__ */ React45.createElement("div", __spreadProps(__spreadValues({}, rest), {
5375
+ return /* @__PURE__ */ React46.createElement("div", __spreadProps(__spreadValues({}, rest), {
5333
5376
  className: classNames(tw("contents group"), className),
5334
5377
  role: "row"
5335
5378
  }));
5336
5379
  };
5337
5380
  var SortCell = (_a) => {
5338
5381
  var _b = _a, { children, direction = "none", onClick, sticky } = _b, rest = __objRest(_b, ["children", "direction", "onClick", "sticky"]);
5339
- return /* @__PURE__ */ React45.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
5382
+ return /* @__PURE__ */ React46.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
5340
5383
  "aria-sort": direction,
5341
5384
  role: "cell",
5342
5385
  sticky
5343
- }), /* @__PURE__ */ React45.createElement("span", {
5386
+ }), /* @__PURE__ */ React46.createElement("span", {
5344
5387
  className: getSortCellButtonClassNames(rest.align),
5345
5388
  role: "button",
5346
5389
  tabIndex: -1,
5347
5390
  onClick
5348
- }, children, /* @__PURE__ */ React45.createElement("div", {
5391
+ }, children, /* @__PURE__ */ React46.createElement("div", {
5349
5392
  "data-sort-icons": true,
5350
5393
  className: tw("flex flex-col", {
5351
5394
  "invisible group-hover:visible": direction === "none"
5352
5395
  })
5353
- }, /* @__PURE__ */ React45.createElement(InlineIcon, {
5396
+ }, /* @__PURE__ */ React46.createElement(InlineIcon, {
5354
5397
  icon: import_chevronUp3.default,
5355
5398
  className: getSortCellIconClassNames(direction === "descending")
5356
- }), /* @__PURE__ */ React45.createElement(InlineIcon, {
5399
+ }), /* @__PURE__ */ React46.createElement(InlineIcon, {
5357
5400
  icon: import_chevronDown4.default,
5358
5401
  className: getSortCellIconClassNames(direction === "ascending")
5359
5402
  }))));
@@ -5374,14 +5417,14 @@ var renameProperty = (oldProp, newProp, _a) => {
5374
5417
  // src/utils/table/types.ts
5375
5418
  var toSortDirection = (direction) => direction === "ascending" ? "asc" : direction === "descending" ? "desc" : false;
5376
5419
  var cellProps = (column) => ({
5377
- key: column.headerName,
5420
+ key: column.key || column.headerName,
5378
5421
  align: column.type === "number" || column.type === "action" ? "right" : "left"
5379
5422
  });
5380
5423
 
5381
5424
  // src/utils/table/useTableSort.tsx
5382
- import React46 from "react";
5425
+ import React47 from "react";
5383
5426
  var useTableSort = () => {
5384
- const [sort, setSort] = React46.useState();
5427
+ const [sort, setSort] = React47.useState();
5385
5428
  const handleSortClick = (field) => {
5386
5429
  if ((sort == null ? void 0 : sort.key) === field) {
5387
5430
  if (sort.direction === "ascending") {
@@ -5404,43 +5447,43 @@ var DataList2 = ({ columns, rows, sticky }) => {
5404
5447
  var _a;
5405
5448
  return (_a = column.width) != null ? _a : "auto";
5406
5449
  });
5407
- return /* @__PURE__ */ React47.createElement(Template, {
5450
+ return /* @__PURE__ */ React48.createElement(Template, {
5408
5451
  columns: templateColumns
5409
5452
  }, columns.map(
5410
- (column) => (column.type === "text" || column.type === "number") && column.sortable ? /* @__PURE__ */ React47.createElement(DataList.SortCell, __spreadValues({
5453
+ (column) => (column.type === "text" || column.type === "number") && column.sortable ? /* @__PURE__ */ React48.createElement(DataList.SortCell, __spreadValues({
5411
5454
  direction: sort && sort.key === column.field ? sort.direction : "none",
5412
5455
  onClick: () => updateSort(column.field),
5413
5456
  sticky
5414
- }, cellProps(column)), column.headerName) : /* @__PURE__ */ React47.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
5457
+ }, cellProps(column)), column.headerName) : /* @__PURE__ */ React48.createElement(DataList.HeadCell, __spreadProps(__spreadValues({}, cellProps(column)), {
5415
5458
  sticky
5416
5459
  }), column.headerName)
5417
- ), /* @__PURE__ */ React47.createElement(List, {
5460
+ ), /* @__PURE__ */ React48.createElement(List, {
5418
5461
  items: sortedRows,
5419
- renderItem: (row, index) => /* @__PURE__ */ React47.createElement(DataList.Row, {
5462
+ renderItem: (row, index) => /* @__PURE__ */ React48.createElement(DataList.Row, {
5420
5463
  key: row.id
5421
- }, /* @__PURE__ */ React47.createElement(List, {
5464
+ }, /* @__PURE__ */ React48.createElement(List, {
5422
5465
  items: columns,
5423
- renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React47.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React47.createElement(StatusChip, __spreadValues({
5466
+ renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React48.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React48.createElement(StatusChip, __spreadValues({
5424
5467
  dense: true
5425
- }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React47.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React47.createElement(SecondaryButton, __spreadValues({
5468
+ }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React48.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React48.createElement(SecondaryButton, __spreadValues({
5426
5469
  dense: true
5427
- }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React47.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React47.createElement(DataList.Cell, null, /* @__PURE__ */ React47.createElement(Item2, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React47.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
5470
+ }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React48.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React48.createElement(DataList.Cell, null, /* @__PURE__ */ React48.createElement(Item2, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React48.createElement(DataList.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
5428
5471
  }))
5429
5472
  }));
5430
5473
  };
5431
5474
 
5432
5475
  // src/components/DataTable/DataTable.tsx
5433
- import React50 from "react";
5476
+ import React51 from "react";
5434
5477
  import orderBy3 from "lodash/orderBy";
5435
5478
 
5436
5479
  // src/components/Table/Table.tsx
5437
- import React49 from "react";
5480
+ import React50 from "react";
5438
5481
 
5439
5482
  // src/utils/table/useScrollTarget.ts
5440
- import React48 from "react";
5483
+ import React49 from "react";
5441
5484
  var useScrollTarget = (callback) => {
5442
- const targetRef = React48.useRef(null);
5443
- React48.useLayoutEffect(() => {
5485
+ const targetRef = React49.useRef(null);
5486
+ React49.useLayoutEffect(() => {
5444
5487
  const observer = new IntersectionObserver((entries) => entries[0].isIntersecting && callback && callback(), {
5445
5488
  root: null,
5446
5489
  rootMargin: `0px 0px 200px 0px`
@@ -5458,12 +5501,12 @@ var Table2 = (_a) => {
5458
5501
  var _b = _a, { children, onPrev, onNext } = _b, rest = __objRest(_b, ["children", "onPrev", "onNext"]);
5459
5502
  const bottomRef = useScrollTarget(onNext);
5460
5503
  const topRef = useScrollTarget(onPrev);
5461
- return /* @__PURE__ */ React49.createElement("div", {
5504
+ return /* @__PURE__ */ React50.createElement("div", {
5462
5505
  className: "relative w-full"
5463
- }, /* @__PURE__ */ React49.createElement("div", {
5506
+ }, /* @__PURE__ */ React50.createElement("div", {
5464
5507
  ref: topRef,
5465
5508
  className: tw("absolute top-0 h-1 w-full left-0 bg-transparent")
5466
- }), /* @__PURE__ */ React49.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React49.createElement("div", {
5509
+ }), /* @__PURE__ */ React50.createElement(Table, __spreadValues({}, rest), children), /* @__PURE__ */ React50.createElement("div", {
5467
5510
  ref: bottomRef,
5468
5511
  className: tw("absolute bottom-0 h-1 w-full left-0 bg-transparent")
5469
5512
  }));
@@ -5492,39 +5535,41 @@ var DataTable = (_a) => {
5492
5535
  ]);
5493
5536
  const [sort, updateSort] = useTableSort();
5494
5537
  const sortedRows = orderBy3(rows, [sort == null ? void 0 : sort.key], [toSortDirection(sort == null ? void 0 : sort.direction)]);
5495
- return /* @__PURE__ */ React50.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
5538
+ return /* @__PURE__ */ React51.createElement(Table2, __spreadProps(__spreadValues({}, rest), {
5496
5539
  className: tw({
5497
5540
  "whitespace-nowrap": noWrap,
5498
5541
  "table-auto": layout === "auto",
5499
5542
  "table-fixed": layout === "fixed"
5500
5543
  })
5501
- }), /* @__PURE__ */ React50.createElement(Table2.Head, {
5544
+ }), /* @__PURE__ */ React51.createElement(Table2.Head, {
5502
5545
  sticky
5503
5546
  }, columns.map(
5504
- (column) => (column.type === "text" || column.type === "number") && column.sortable ? /* @__PURE__ */ React50.createElement(Table2.SortCell, __spreadValues({
5547
+ (column) => (column.type === "text" || column.type === "number") && column.sortable ? /* @__PURE__ */ React51.createElement(Table2.SortCell, __spreadValues({
5505
5548
  direction: sort && sort.key === column.field ? sort.direction : "none",
5506
5549
  onClick: () => updateSort(column.field),
5507
- style: { width: column.width }
5508
- }, cellProps(column)), column.headerName) : /* @__PURE__ */ React50.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
5509
- style: { width: column.width }
5510
- }), column.headerName)
5511
- )), /* @__PURE__ */ React50.createElement(Table2.Body, null, /* @__PURE__ */ React50.createElement(List, {
5550
+ style: { width: column.width },
5551
+ "aria-label": column.headerInvisible ? column.headerName : void 0
5552
+ }, cellProps(column)), !column.headerInvisible && column.headerName) : /* @__PURE__ */ React51.createElement(Table2.Cell, __spreadProps(__spreadValues({}, cellProps(column)), {
5553
+ style: { width: column.width },
5554
+ "aria-label": column.headerInvisible ? column.headerName : void 0
5555
+ }), !column.headerInvisible && column.headerName)
5556
+ )), /* @__PURE__ */ React51.createElement(Table2.Body, null, /* @__PURE__ */ React51.createElement(List, {
5512
5557
  items: sortedRows,
5513
- renderItem: (row, index) => /* @__PURE__ */ React50.createElement(Table2.Row, {
5558
+ renderItem: (row, index) => /* @__PURE__ */ React51.createElement(Table2.Row, {
5514
5559
  key: row.id
5515
- }, /* @__PURE__ */ React50.createElement(List, {
5560
+ }, /* @__PURE__ */ React51.createElement(List, {
5516
5561
  items: columns,
5517
- renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React50.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React50.createElement(StatusChip, __spreadValues({
5562
+ renderItem: (column) => column.type === "status" ? /* @__PURE__ */ React51.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React51.createElement(StatusChip, __spreadValues({
5518
5563
  dense: true
5519
- }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React50.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React50.createElement(SecondaryButton, __spreadValues({
5564
+ }, column.status(row, index, sortedRows)))) : column.type === "action" ? /* @__PURE__ */ React51.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React51.createElement(SecondaryButton, __spreadValues({
5520
5565
  dense: true
5521
- }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React50.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React50.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React50.createElement(Item2, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React50.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
5566
+ }, renameProperty("text", "children", column.action(row, index, sortedRows))))) : column.type === "custom" ? /* @__PURE__ */ React51.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.UNSAFE_render(row, index, sortedRows)) : column.type === "item" ? /* @__PURE__ */ React51.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), /* @__PURE__ */ React51.createElement(Item2, __spreadValues({}, column.item(row, index, sortedRows)))) : /* @__PURE__ */ React51.createElement(Table2.Cell, __spreadValues({}, cellProps(column)), column.formatter ? column.formatter(row[column.field], row, index, sortedRows) : row[column.field])
5522
5567
  }))
5523
5568
  })));
5524
5569
  };
5525
5570
 
5526
5571
  // src/components/Dialog/Dialog.tsx
5527
- import React52 from "react";
5572
+ import React53 from "react";
5528
5573
  import { useDialog } from "@react-aria/dialog";
5529
5574
  import { FocusScope as FocusScope2 } from "@react-aria/focus";
5530
5575
  import { Overlay, useModalOverlay } from "@react-aria/overlays";
@@ -5552,10 +5597,10 @@ var DIALOG_ICONS_AND_COLORS = {
5552
5597
  };
5553
5598
 
5554
5599
  // src/common/Modal/Modal.tsx
5555
- import React51 from "react";
5600
+ import React52 from "react";
5556
5601
  var Modal = (_a) => {
5557
5602
  var _b = _a, { children, className, open } = _b, rest = __objRest(_b, ["children", "className", "open"]);
5558
- return open ? /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5603
+ return open ? /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
5559
5604
  className: classNames(
5560
5605
  tw("inset-0 overflow-y-auto z-modal flex justify-center items-center fixed py-7"),
5561
5606
  className
@@ -5564,14 +5609,14 @@ var Modal = (_a) => {
5564
5609
  };
5565
5610
  Modal.BackDrop = (_a) => {
5566
5611
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
5567
- return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5612
+ return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
5568
5613
  className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-navyBlue-100 opacity-70"), className)
5569
5614
  }));
5570
5615
  };
5571
- Modal.Dialog = React51.forwardRef(
5616
+ Modal.Dialog = React52.forwardRef(
5572
5617
  (_a, ref) => {
5573
5618
  var _b = _a, { children, className, size = "sm" } = _b, rest = __objRest(_b, ["children", "className", "size"]);
5574
- return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({
5619
+ return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({
5575
5620
  ref,
5576
5621
  "aria-modal": "true"
5577
5622
  }, rest), {
@@ -5589,31 +5634,31 @@ Modal.Dialog = React51.forwardRef(
5589
5634
  );
5590
5635
  Modal.Header = (_a) => {
5591
5636
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5592
- return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5637
+ return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
5593
5638
  className: classNames(tw("px-7 py-6 gap-3 flex items-center"), className)
5594
5639
  }), children);
5595
5640
  };
5596
5641
  Modal.HeaderImage = (_a) => {
5597
5642
  var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
5598
5643
  const common = tw("h-[120px] min-h-[120px] w-full ");
5599
- return backgroundImage ? /* @__PURE__ */ React51.createElement("img", __spreadProps(__spreadValues({
5644
+ return backgroundImage ? /* @__PURE__ */ React52.createElement("img", __spreadProps(__spreadValues({
5600
5645
  "aria-hidden": true,
5601
5646
  src: backgroundImage != null ? backgroundImage : void 0
5602
5647
  }, rest), {
5603
5648
  className: classNames(common, tw("object-cover"), className)
5604
- })) : /* @__PURE__ */ React51.createElement("div", {
5649
+ })) : /* @__PURE__ */ React52.createElement("div", {
5605
5650
  className: classNames(common, tw("bg-grey-5"), className)
5606
5651
  });
5607
5652
  };
5608
5653
  Modal.CloseButtonContainer = (_a) => {
5609
5654
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
5610
- return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5655
+ return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
5611
5656
  className: classNames(tw("absolute top-[20px] right-[28px]"), className)
5612
5657
  }));
5613
5658
  };
5614
5659
  Modal.Title = (_a) => {
5615
5660
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5616
- return /* @__PURE__ */ React51.createElement(Typography, __spreadValues({
5661
+ return /* @__PURE__ */ React52.createElement(Typography, __spreadValues({
5617
5662
  htmlTag: "h2",
5618
5663
  variant: "subheading",
5619
5664
  color: "grey-90",
@@ -5622,33 +5667,33 @@ Modal.Title = (_a) => {
5622
5667
  };
5623
5668
  Modal.Subtitle = (_a) => {
5624
5669
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
5625
- return /* @__PURE__ */ React51.createElement(Typography, __spreadValues({
5670
+ return /* @__PURE__ */ React52.createElement(Typography, __spreadValues({
5626
5671
  variant: "small",
5627
5672
  color: "grey-60"
5628
5673
  }, rest), children);
5629
5674
  };
5630
5675
  Modal.TitleContainer = (_a) => {
5631
5676
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5632
- return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5677
+ return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
5633
5678
  className: classNames(tw("flex flex-col grow gap-2"), className)
5634
5679
  }), children);
5635
5680
  };
5636
5681
  Modal.Body = (_a) => {
5637
5682
  var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
5638
- return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5683
+ return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
5639
5684
  className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
5640
5685
  style: __spreadValues({ maxHeight }, style)
5641
5686
  }), children);
5642
5687
  };
5643
5688
  Modal.Footer = (_a) => {
5644
5689
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5645
- return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5690
+ return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
5646
5691
  className: classNames(tw("px-7 py-6"), className)
5647
5692
  }), children);
5648
5693
  };
5649
5694
  Modal.Actions = (_a) => {
5650
5695
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
5651
- return /* @__PURE__ */ React51.createElement("div", __spreadProps(__spreadValues({}, rest), {
5696
+ return /* @__PURE__ */ React52.createElement("div", __spreadProps(__spreadValues({}, rest), {
5652
5697
  className: classNames(tw("flex gap-4 justify-end"), className)
5653
5698
  }), children);
5654
5699
  };
@@ -5662,7 +5707,7 @@ var Dialog = ({
5662
5707
  primaryAction,
5663
5708
  secondaryAction
5664
5709
  }) => {
5665
- const ref = React52.useRef(null);
5710
+ const ref = React53.useRef(null);
5666
5711
  const state = useOverlayTriggerState2({ isOpen: open });
5667
5712
  const { modalProps, underlayProps } = useModalOverlay({ isDismissable: false }, state, ref);
5668
5713
  const labelledBy = useId();
@@ -5674,34 +5719,34 @@ var Dialog = ({
5674
5719
  if (!open) {
5675
5720
  return null;
5676
5721
  }
5677
- return /* @__PURE__ */ React52.createElement(Overlay, null, /* @__PURE__ */ React52.createElement(Modal, {
5722
+ return /* @__PURE__ */ React53.createElement(Overlay, null, /* @__PURE__ */ React53.createElement(Modal, {
5678
5723
  open
5679
- }, /* @__PURE__ */ React52.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React52.createElement(FocusScope2, {
5724
+ }, /* @__PURE__ */ React53.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React53.createElement(FocusScope2, {
5680
5725
  contain: true,
5681
5726
  restoreFocus: true,
5682
5727
  autoFocus: true
5683
- }, /* @__PURE__ */ React52.createElement(Modal.Dialog, __spreadValues(__spreadValues({
5728
+ }, /* @__PURE__ */ React53.createElement(Modal.Dialog, __spreadValues(__spreadValues({
5684
5729
  ref,
5685
5730
  size: "sm"
5686
- }, modalProps), dialogProps), /* @__PURE__ */ React52.createElement(Modal.Header, null, /* @__PURE__ */ React52.createElement(Icon, {
5731
+ }, modalProps), dialogProps), /* @__PURE__ */ React53.createElement(Modal.Header, null, /* @__PURE__ */ React53.createElement(Icon, {
5687
5732
  icon: DIALOG_ICONS_AND_COLORS[type].icon,
5688
5733
  color: DIALOG_ICONS_AND_COLORS[type].color,
5689
5734
  fontSize: 20
5690
- }), /* @__PURE__ */ React52.createElement(Modal.Title, {
5735
+ }), /* @__PURE__ */ React53.createElement(Modal.Title, {
5691
5736
  id: labelledBy,
5692
5737
  variant: "large-strong",
5693
5738
  color: DIALOG_ICONS_AND_COLORS[type].color
5694
- }, title)), /* @__PURE__ */ React52.createElement(Modal.Body, {
5739
+ }, title)), /* @__PURE__ */ React53.createElement(Modal.Body, {
5695
5740
  id: describedBy
5696
- }, children), /* @__PURE__ */ React52.createElement(Modal.Footer, null, /* @__PURE__ */ React52.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React52.createElement(GhostButton, __spreadValues({
5741
+ }, children), /* @__PURE__ */ React53.createElement(Modal.Footer, null, /* @__PURE__ */ React53.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ React53.createElement(GhostButton, __spreadValues({
5697
5742
  key: secondaryAction.text
5698
- }, omit7(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React52.createElement(SecondaryButton, __spreadValues({
5743
+ }, omit7(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React53.createElement(SecondaryButton, __spreadValues({
5699
5744
  key: primaryAction.text
5700
5745
  }, omit7(primaryAction, "text")), primaryAction.text)))))));
5701
5746
  };
5702
5747
 
5703
5748
  // src/components/Divider/Divider.tsx
5704
- import React53 from "react";
5749
+ import React54 from "react";
5705
5750
  var sizeClasses = {
5706
5751
  horizontal: {
5707
5752
  1: "h-1px",
@@ -5723,7 +5768,7 @@ var sizeClasses = {
5723
5768
  var Divider2 = (_a) => {
5724
5769
  var _b = _a, { direction = "horizontal", size = 1 } = _b, props = __objRest(_b, ["direction", "size"]);
5725
5770
  const sizeClass = sizeClasses[direction][size];
5726
- return /* @__PURE__ */ React53.createElement("div", __spreadProps(__spreadValues({}, props), {
5771
+ return /* @__PURE__ */ React54.createElement("div", __spreadProps(__spreadValues({}, props), {
5727
5772
  className: tw(`bg-grey-5 ${sizeClass}`, {
5728
5773
  "block w-full": direction === "horizontal",
5729
5774
  "inline-block h-full": direction === "vertical"
@@ -5732,10 +5777,10 @@ var Divider2 = (_a) => {
5732
5777
  };
5733
5778
 
5734
5779
  // src/components/Dropdown/Dropdown.tsx
5735
- import React55 from "react";
5780
+ import React56 from "react";
5736
5781
 
5737
5782
  // src/components/Popover/Popover.tsx
5738
- import React54, { useRef as useRef4 } from "react";
5783
+ import React55, { useRef as useRef6 } from "react";
5739
5784
  import { PressResponder, usePress } from "@react-aria/interactions";
5740
5785
  import { useOverlayPosition as useOverlayPosition3, useOverlayTrigger } from "@react-aria/overlays";
5741
5786
  import { mergeProps as mergeProps3 } from "@react-aria/utils";
@@ -5764,8 +5809,8 @@ var Popover2 = (props) => {
5764
5809
  containFocus = false,
5765
5810
  targetRef
5766
5811
  } = props;
5767
- const triggerRef = useRef4(null);
5768
- const overlayRef = useRef4(null);
5812
+ const triggerRef = useRef6(null);
5813
+ const overlayRef = useRef6(null);
5769
5814
  const state = useOverlayTriggerState3(props);
5770
5815
  const {
5771
5816
  overlayProps: popoverProps,
@@ -5784,22 +5829,22 @@ var Popover2 = (props) => {
5784
5829
  state,
5785
5830
  triggerRef
5786
5831
  );
5787
- return /* @__PURE__ */ React54.createElement(PopoverContext.Provider, {
5832
+ return /* @__PURE__ */ React55.createElement(PopoverContext.Provider, {
5788
5833
  value: {
5789
5834
  state
5790
5835
  }
5791
- }, React54.Children.map(props.children, (child) => {
5836
+ }, React55.Children.map(props.children, (child) => {
5792
5837
  if (isComponentType(child, Popover2.Trigger)) {
5793
- return /* @__PURE__ */ React54.createElement(PressResponder, __spreadValues({
5838
+ return /* @__PURE__ */ React55.createElement(PressResponder, __spreadValues({
5794
5839
  ref: triggerRef,
5795
5840
  onPress: state.toggle
5796
- }, triggerProps), /* @__PURE__ */ React54.createElement(PopoverTriggerWrapper, {
5841
+ }, triggerProps), /* @__PURE__ */ React55.createElement(PopoverTriggerWrapper, {
5797
5842
  "data-testid": props["data-testid"],
5798
5843
  "aria-controls": id
5799
5844
  }, child.props.children));
5800
5845
  }
5801
5846
  if (isComponentType(child, Popover2.Panel)) {
5802
- return /* @__PURE__ */ React54.createElement(PopoverWrapper, __spreadProps(__spreadValues(__spreadValues({
5847
+ return /* @__PURE__ */ React55.createElement(PopoverWrapper, __spreadProps(__spreadValues(__spreadValues({
5803
5848
  ref: overlayRef,
5804
5849
  isOpen: state.isOpen,
5805
5850
  onClose: state.close,
@@ -5831,7 +5876,7 @@ var asPopoverButton = (Component, displayName) => {
5831
5876
  state.close();
5832
5877
  onClick == null ? void 0 : onClick(e);
5833
5878
  };
5834
- return /* @__PURE__ */ React54.createElement(Component, __spreadProps(__spreadValues({}, props), {
5879
+ return /* @__PURE__ */ React55.createElement(Component, __spreadProps(__spreadValues({}, props), {
5835
5880
  onClick: handleClick
5836
5881
  }));
5837
5882
  };
@@ -5843,10 +5888,10 @@ Popover2.Button = PopoverButton;
5843
5888
  var PopoverTriggerWrapper = (_a) => {
5844
5889
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
5845
5890
  var _a2;
5846
- const ref = useRef4(null);
5847
- const trigger = React54.Children.only(children);
5891
+ const ref = useRef6(null);
5892
+ const trigger = React55.Children.only(children);
5848
5893
  const { pressProps } = usePress(__spreadProps(__spreadValues({}, rest), { ref }));
5849
- return React54.cloneElement(trigger, __spreadProps(__spreadValues({
5894
+ return React55.cloneElement(trigger, __spreadProps(__spreadValues({
5850
5895
  "ref": ref
5851
5896
  }, mergeProps3(pressProps, trigger.props)), {
5852
5897
  "aria-controls": (_a2 = rest["aria-controls"]) != null ? _a2 : pressProps["aria-controls"]
@@ -5855,11 +5900,11 @@ var PopoverTriggerWrapper = (_a) => {
5855
5900
 
5856
5901
  // src/components/Dropdown/Dropdown.tsx
5857
5902
  var Dropdown = ({ children, content, placement = "bottom-left" }) => {
5858
- return /* @__PURE__ */ React55.createElement(Popover2, {
5903
+ return /* @__PURE__ */ React56.createElement(Popover2, {
5859
5904
  type: "menu",
5860
5905
  placement,
5861
5906
  autoFocus: true
5862
- }, /* @__PURE__ */ React55.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React55.createElement(Popover2.Panel, null, content));
5907
+ }, /* @__PURE__ */ React56.createElement(Popover2.Trigger, null, children), /* @__PURE__ */ React56.createElement(Popover2.Panel, null, content));
5863
5908
  };
5864
5909
  var DropdownMenu = ({
5865
5910
  title,
@@ -5868,26 +5913,26 @@ var DropdownMenu = ({
5868
5913
  triggerId,
5869
5914
  setClose = () => void 0
5870
5915
  }) => {
5871
- const menuRef = React55.useRef(null);
5872
- React55.useEffect(() => {
5916
+ const menuRef = React56.useRef(null);
5917
+ React56.useEffect(() => {
5873
5918
  const id = setTimeout(() => {
5874
5919
  var _a, _b, _c;
5875
5920
  return (_c = (_b = (_a = menuRef.current) == null ? void 0 : _a.children) == null ? void 0 : _b[0]) == null ? void 0 : _c.focus();
5876
5921
  });
5877
5922
  return () => clearTimeout(id);
5878
5923
  }, [menuRef.current]);
5879
- return /* @__PURE__ */ React55.createElement("div", {
5924
+ return /* @__PURE__ */ React56.createElement("div", {
5880
5925
  style: { minWidth: "250px" },
5881
5926
  className: tw("py-3 bg-white")
5882
- }, !!title && /* @__PURE__ */ React55.createElement("div", {
5927
+ }, !!title && /* @__PURE__ */ React56.createElement("div", {
5883
5928
  className: tw("px-4 py-4 text-left text-grey-100 typography-default-strong")
5884
- }, title), /* @__PURE__ */ React55.createElement("ol", {
5929
+ }, title), /* @__PURE__ */ React56.createElement("ol", {
5885
5930
  role: "menu",
5886
5931
  ref: menuRef,
5887
5932
  id: contentId,
5888
5933
  "aria-labelledby": triggerId
5889
- }, React55.Children.map(children, (child) => {
5890
- return React55.cloneElement(child, { setClose });
5934
+ }, React56.Children.map(children, (child) => {
5935
+ return React56.cloneElement(child, { setClose });
5891
5936
  })));
5892
5937
  };
5893
5938
  var DropdownItem = (_a) => {
@@ -5942,10 +5987,10 @@ var DropdownItem = (_a) => {
5942
5987
  handleSelect();
5943
5988
  }
5944
5989
  };
5945
- const itemContent = /* @__PURE__ */ React55.createElement("div", {
5990
+ const itemContent = /* @__PURE__ */ React56.createElement("div", {
5946
5991
  className: tw("py-3 px-4")
5947
5992
  }, children);
5948
- return /* @__PURE__ */ React55.createElement("li", __spreadProps(__spreadValues({
5993
+ return /* @__PURE__ */ React56.createElement("li", __spreadProps(__spreadValues({
5949
5994
  role: "menuitem",
5950
5995
  tabIndex: -1,
5951
5996
  onClick: handleClick,
@@ -5956,7 +6001,7 @@ var DropdownItem = (_a) => {
5956
6001
  "text-grey-10 cursor-not-allowed": disabled,
5957
6002
  "text-primary-70 hover:text-primary-80": color === "danger" && !disabled
5958
6003
  })
5959
- }), tooltip ? /* @__PURE__ */ React55.createElement(Tooltip, {
6004
+ }), tooltip ? /* @__PURE__ */ React56.createElement(Tooltip, {
5960
6005
  content: tooltip,
5961
6006
  placement: tooltipPlacement,
5962
6007
  inline: false
@@ -5966,7 +6011,7 @@ Dropdown.Menu = DropdownMenu;
5966
6011
  Dropdown.Item = DropdownItem;
5967
6012
 
5968
6013
  // src/components/DropdownMenu/DropdownMenu.tsx
5969
- import React59 from "react";
6014
+ import React60 from "react";
5970
6015
  import { useFilter } from "@react-aria/i18n";
5971
6016
  import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
5972
6017
  import { useMenu, useMenuItem, useMenuSection, useMenuTrigger } from "@react-aria/menu";
@@ -5978,37 +6023,37 @@ import { useMenuTriggerState } from "@react-stately/menu";
5978
6023
  import { useTreeState } from "@react-stately/tree";
5979
6024
 
5980
6025
  // src/components/Input/Input.tsx
5981
- import React57, { forwardRef, useImperativeHandle, useRef as useRef5, useState as useState6 } from "react";
6026
+ import React58, { forwardRef, useImperativeHandle, useRef as useRef7, useState as useState6 } from "react";
5982
6027
  import omit8 from "lodash/omit";
5983
6028
  import toString from "lodash/toString";
5984
6029
  import uniqueId3 from "lodash/uniqueId";
5985
6030
 
5986
6031
  // src/utils/form/InputAdornment/InputAdornment.tsx
5987
- import React56 from "react";
6032
+ import React57 from "react";
5988
6033
  var import_cross4 = __toESM(require_cross());
5989
6034
  var import_error3 = __toESM(require_error());
5990
6035
  var import_search2 = __toESM(require_search());
5991
6036
  var import_tick3 = __toESM(require_tick());
5992
6037
  var InputAdornment = ({ placement = "right", className, dense, children }) => {
5993
- return /* @__PURE__ */ React56.createElement("span", {
6038
+ return /* @__PURE__ */ React57.createElement("span", {
5994
6039
  className: classNames(className, "absolute inset-y-0 grow-0 text-grey-40 flex items-center mx-3", {
5995
6040
  "right-0": placement === "right",
5996
6041
  "left-0": placement === "left",
5997
6042
  "typography-small": dense,
5998
6043
  "typography-default-strong": !dense
5999
6044
  })
6000
- }, /* @__PURE__ */ React56.createElement(Flexbox, {
6045
+ }, /* @__PURE__ */ React57.createElement(Flexbox, {
6001
6046
  gap: "3",
6002
6047
  wrap: "wrap"
6003
6048
  }, children));
6004
6049
  };
6005
- var SearchIcon = ({ onClick }) => /* @__PURE__ */ React56.createElement(Icon, {
6050
+ var SearchIcon = ({ onClick }) => /* @__PURE__ */ React57.createElement(Icon, {
6006
6051
  icon: import_search2.default,
6007
6052
  color: "grey-30",
6008
6053
  "data-testid": "icon-search",
6009
6054
  onClick
6010
6055
  });
6011
- var ResetIcon = ({ onClick }) => /* @__PURE__ */ React56.createElement(Icon, {
6056
+ var ResetIcon = ({ onClick }) => /* @__PURE__ */ React57.createElement(Icon, {
6012
6057
  className: "hover:cursor-pointer",
6013
6058
  icon: import_cross4.default,
6014
6059
  color: "grey-30",
@@ -6038,7 +6083,7 @@ var createInput = (displayName, opts = {}) => {
6038
6083
  "readOnly"
6039
6084
  ]);
6040
6085
  var _a2;
6041
- const inputRef = React57.useRef(null);
6086
+ const inputRef = React58.useRef(null);
6042
6087
  useImperativeHandle(ref, () => inputRef.current);
6043
6088
  const handleReset = () => {
6044
6089
  var _a3;
@@ -6051,11 +6096,11 @@ var createInput = (displayName, opts = {}) => {
6051
6096
  el.focus();
6052
6097
  }
6053
6098
  };
6054
- return /* @__PURE__ */ React57.createElement("span", {
6099
+ return /* @__PURE__ */ React58.createElement("span", {
6055
6100
  className: tw("relative block")
6056
- }, opts.adornment && /* @__PURE__ */ React57.createElement(InputAdornment, {
6101
+ }, opts.adornment && /* @__PURE__ */ React58.createElement(InputAdornment, {
6057
6102
  placement: "left"
6058
- }, opts.adornment), /* @__PURE__ */ React57.createElement("input", __spreadProps(__spreadValues({
6103
+ }, opts.adornment), /* @__PURE__ */ React58.createElement("input", __spreadProps(__spreadValues({
6059
6104
  ref: inputRef,
6060
6105
  type
6061
6106
  }, props), {
@@ -6070,34 +6115,34 @@ var createInput = (displayName, opts = {}) => {
6070
6115
  getCommonInputStyles({ readOnly, valid }),
6071
6116
  props.className
6072
6117
  )
6073
- })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React57.createElement(InputAdornment, null, /* @__PURE__ */ React57.createElement(ResetIcon, {
6118
+ })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ React58.createElement(InputAdornment, null, /* @__PURE__ */ React58.createElement(ResetIcon, {
6074
6119
  onClick: handleReset
6075
- })), !opts.canReset && endAdornment && /* @__PURE__ */ React57.createElement(InputAdornment, null, endAdornment));
6120
+ })), !opts.canReset && endAdornment && /* @__PURE__ */ React58.createElement(InputAdornment, null, endAdornment));
6076
6121
  }
6077
6122
  );
6078
6123
  InputComponent.displayName = displayName;
6079
- InputComponent.Skeleton = () => /* @__PURE__ */ React57.createElement(Skeleton, {
6124
+ InputComponent.Skeleton = () => /* @__PURE__ */ React58.createElement(Skeleton, {
6080
6125
  height: 38
6081
6126
  });
6082
6127
  return InputComponent;
6083
6128
  };
6084
6129
  var InputBase = createInput("InputBase");
6085
- var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React57.createElement(SearchIcon, null), canReset: true });
6086
- var Input2 = React57.forwardRef((_a, ref) => {
6130
+ var SearchInput = createInput("SearchInput", { adornment: /* @__PURE__ */ React58.createElement(SearchIcon, null), canReset: true });
6131
+ var Input2 = React58.forwardRef((_a, ref) => {
6087
6132
  var _b = _a, { readOnly = false } = _b, props = __objRest(_b, ["readOnly"]);
6088
6133
  var _a2, _b2, _c;
6089
6134
  const [value, setValue] = useState6((_b2 = (_a2 = props.value) != null ? _a2 : props.defaultValue) != null ? _b2 : "");
6090
- const id = useRef5((_c = props.id) != null ? _c : `input-${uniqueId3()}`);
6135
+ const id = useRef7((_c = props.id) != null ? _c : `input-${uniqueId3()}`);
6091
6136
  const errorMessageId = uniqueId3();
6092
6137
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
6093
6138
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
6094
6139
  const baseProps = omit8(props, Object.keys(labelControlProps));
6095
- return /* @__PURE__ */ React57.createElement(LabelControl, __spreadValues({
6140
+ return /* @__PURE__ */ React58.createElement(LabelControl, __spreadValues({
6096
6141
  id: `${id.current}-label`,
6097
6142
  htmlFor: id.current,
6098
6143
  messageId: errorMessageId,
6099
6144
  length: value !== void 0 ? toString(value).length : void 0
6100
- }, labelControlProps), /* @__PURE__ */ React57.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
6145
+ }, labelControlProps), /* @__PURE__ */ React58.createElement(InputBase, __spreadProps(__spreadValues(__spreadValues({
6101
6146
  ref
6102
6147
  }, baseProps), errorProps), {
6103
6148
  id: id.current,
@@ -6115,16 +6160,16 @@ var Input2 = React57.forwardRef((_a, ref) => {
6115
6160
  })));
6116
6161
  });
6117
6162
  Input2.displayName = "Input";
6118
- Input2.Skeleton = () => /* @__PURE__ */ React57.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React57.createElement(InputBase.Skeleton, null));
6163
+ Input2.Skeleton = () => /* @__PURE__ */ React58.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React58.createElement(InputBase.Skeleton, null));
6119
6164
  Input2.Skeleton.displayName = "Input.Skeleton";
6120
6165
 
6121
6166
  // src/common/DropdownMenu/DropdownMenu.tsx
6122
- import React58 from "react";
6167
+ import React59 from "react";
6123
6168
  var import_tick4 = __toESM(require_tick());
6124
- var DropdownMenu2 = React58.forwardRef(
6169
+ var DropdownMenu2 = React59.forwardRef(
6125
6170
  (_a, ref) => {
6126
6171
  var _b = _a, { maxHeight = "450px", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["maxHeight", "minWidth", "maxWidth", "className", "children"]);
6127
- return /* @__PURE__ */ React58.createElement("div", __spreadValues({
6172
+ return /* @__PURE__ */ React59.createElement("div", __spreadValues({
6128
6173
  ref,
6129
6174
  style: { maxHeight, minWidth, maxWidth },
6130
6175
  className: classNames(
@@ -6134,25 +6179,25 @@ var DropdownMenu2 = React58.forwardRef(
6134
6179
  }, props), children);
6135
6180
  }
6136
6181
  );
6137
- var ContentContainer = ({ children }) => /* @__PURE__ */ React58.createElement("div", {
6182
+ var ContentContainer = ({ children }) => /* @__PURE__ */ React59.createElement("div", {
6138
6183
  className: tw("p-3")
6139
6184
  }, children);
6140
6185
  DropdownMenu2.ContentContainer = ContentContainer;
6141
- var List2 = React58.forwardRef(
6186
+ var List2 = React59.forwardRef(
6142
6187
  (_a, ref) => {
6143
6188
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
6144
- return /* @__PURE__ */ React58.createElement("ul", __spreadValues({
6189
+ return /* @__PURE__ */ React59.createElement("ul", __spreadValues({
6145
6190
  ref
6146
6191
  }, props), children);
6147
6192
  }
6148
6193
  );
6149
6194
  DropdownMenu2.List = List2;
6150
- var Group2 = React58.forwardRef(
6195
+ var Group2 = React59.forwardRef(
6151
6196
  (_a, ref) => {
6152
6197
  var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
6153
- return /* @__PURE__ */ React58.createElement("li", __spreadValues({
6198
+ return /* @__PURE__ */ React59.createElement("li", __spreadValues({
6154
6199
  ref
6155
- }, props), title && /* @__PURE__ */ React58.createElement("div", __spreadValues({
6200
+ }, props), title && /* @__PURE__ */ React59.createElement("div", __spreadValues({
6156
6201
  className: classNames(className, "p-3 text-grey-40 uppercase cursor-default typography-caption", {
6157
6202
  "text-grey-20": props.disabled
6158
6203
  })
@@ -6160,10 +6205,10 @@ var Group2 = React58.forwardRef(
6160
6205
  }
6161
6206
  );
6162
6207
  DropdownMenu2.Group = Group2;
6163
- var Item3 = React58.forwardRef(
6208
+ var Item3 = React59.forwardRef(
6164
6209
  (_a, ref) => {
6165
6210
  var _b = _a, { kind, highlighted, selected, className, icon, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "children"]);
6166
- return /* @__PURE__ */ React58.createElement("li", __spreadValues({
6211
+ return /* @__PURE__ */ React59.createElement("li", __spreadValues({
6167
6212
  ref,
6168
6213
  className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
6169
6214
  "cursor-pointer hover:bg-grey-0": !props.disabled,
@@ -6171,30 +6216,30 @@ var Item3 = React58.forwardRef(
6171
6216
  "text-primary-80": kind === "action",
6172
6217
  "text-grey-20 cursor-not-allowed": props.disabled
6173
6218
  })
6174
- }, props), icon && /* @__PURE__ */ React58.createElement(InlineIcon, {
6219
+ }, props), icon && /* @__PURE__ */ React59.createElement(InlineIcon, {
6175
6220
  icon
6176
- }), /* @__PURE__ */ React58.createElement("span", {
6221
+ }), /* @__PURE__ */ React59.createElement("span", {
6177
6222
  className: tw("grow")
6178
- }, children), selected && /* @__PURE__ */ React58.createElement(InlineIcon, {
6223
+ }, children), selected && /* @__PURE__ */ React59.createElement(InlineIcon, {
6179
6224
  icon: import_tick4.default
6180
6225
  }));
6181
6226
  }
6182
6227
  );
6183
6228
  DropdownMenu2.Item = Item3;
6184
- var Description = ({ disabled, children }) => /* @__PURE__ */ React58.createElement(Typography2.Caption, {
6229
+ var Description = ({ disabled, children }) => /* @__PURE__ */ React59.createElement(Typography2.Caption, {
6185
6230
  color: disabled ? "grey-20" : "grey-40"
6186
6231
  }, children);
6187
6232
  DropdownMenu2.Description = Description;
6188
6233
  var Separator = (_a) => {
6189
6234
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6190
- return /* @__PURE__ */ React58.createElement("li", __spreadProps(__spreadValues({}, props), {
6235
+ return /* @__PURE__ */ React59.createElement("li", __spreadProps(__spreadValues({}, props), {
6191
6236
  className: classNames(className, tw("m-3 block bg-grey-5 h-[1px]"))
6192
6237
  }));
6193
6238
  };
6194
6239
  DropdownMenu2.Separator = Separator;
6195
6240
  var EmptyStateContainer2 = (_a) => {
6196
6241
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6197
- return /* @__PURE__ */ React58.createElement("div", __spreadValues({
6242
+ return /* @__PURE__ */ React59.createElement("div", __spreadValues({
6198
6243
  className: classNames(tw("border border-dashed border-grey-10 p-3"), className)
6199
6244
  }, props), children);
6200
6245
  };
@@ -6249,8 +6294,8 @@ var DropdownMenu3 = (_a) => {
6249
6294
  "footer",
6250
6295
  "children"
6251
6296
  ]);
6252
- const triggerRef = React59.useRef(null);
6253
- const overlayRef = React59.useRef(null);
6297
+ const triggerRef = React60.useRef(null);
6298
+ const overlayRef = React60.useRef(null);
6254
6299
  const [trigger, items] = extractTriggerAndItems(children);
6255
6300
  const state = useMenuTriggerState(props);
6256
6301
  const { menuTriggerProps, menuProps } = useMenuTrigger({}, state, triggerRef);
@@ -6261,17 +6306,17 @@ var DropdownMenu3 = (_a) => {
6261
6306
  shouldFlip: true,
6262
6307
  isOpen: state.isOpen
6263
6308
  });
6264
- return /* @__PURE__ */ React59.createElement("div", null, /* @__PURE__ */ React59.createElement(PressResponder2, __spreadValues({
6309
+ return /* @__PURE__ */ React60.createElement("div", null, /* @__PURE__ */ React60.createElement(PressResponder2, __spreadValues({
6265
6310
  ref: triggerRef,
6266
6311
  onPress: () => state.toggle()
6267
- }, menuTriggerProps), /* @__PURE__ */ React59.createElement(TriggerWrapper, null, trigger.props.children)), /* @__PURE__ */ React59.createElement(PopoverWrapper, __spreadValues({
6312
+ }, menuTriggerProps), /* @__PURE__ */ React60.createElement(TriggerWrapper, null, trigger.props.children)), /* @__PURE__ */ React60.createElement(PopoverWrapper, __spreadValues({
6268
6313
  ref: overlayRef,
6269
6314
  isDismissable: true,
6270
6315
  autoFocus: true,
6271
6316
  containFocus: true,
6272
6317
  isOpen: state.isOpen,
6273
6318
  onClose: state.close
6274
- }, overlayProps), /* @__PURE__ */ React59.createElement(MenuWrapper, __spreadValues({
6319
+ }, overlayProps), /* @__PURE__ */ React60.createElement(MenuWrapper, __spreadValues({
6275
6320
  onAction,
6276
6321
  selectionMode,
6277
6322
  selection,
@@ -6296,13 +6341,13 @@ DropdownMenu3.Section = Section;
6296
6341
  DropdownMenu3.Section.displayName = "DropdownMenu.Section";
6297
6342
  var TriggerWrapper = (_a) => {
6298
6343
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
6299
- const ref = React59.useRef(null);
6344
+ const ref = React60.useRef(null);
6300
6345
  const { pressProps } = usePress2(__spreadProps(__spreadValues({}, props), { ref }));
6301
- const trigger = React59.Children.only(children);
6302
- if (!trigger || !React59.isValidElement(trigger)) {
6346
+ const trigger = React60.Children.only(children);
6347
+ if (!trigger || !React60.isValidElement(trigger)) {
6303
6348
  throw new Error("<DropdownMenu.Trigger> must have valid child");
6304
6349
  }
6305
- return React59.cloneElement(trigger, __spreadValues({ ref }, mergeProps4(pressProps, props)));
6350
+ return React60.cloneElement(trigger, __spreadValues({ ref }, mergeProps4(pressProps, props)));
6306
6351
  };
6307
6352
  var isSectionNode = (item) => item.type === "section";
6308
6353
  var isItemNode = (item) => item.type === "item";
@@ -6324,7 +6369,7 @@ var MenuWrapper = (_a) => {
6324
6369
  "header",
6325
6370
  "footer"
6326
6371
  ]);
6327
- const ref = React59.useRef(null);
6372
+ const ref = React60.useRef(null);
6328
6373
  const disabledKeys = getDisabledItemKeys(props.children);
6329
6374
  const state = useTreeState(__spreadValues({
6330
6375
  disabledKeys,
@@ -6332,30 +6377,30 @@ var MenuWrapper = (_a) => {
6332
6377
  }, props));
6333
6378
  const { menuProps } = useMenu(props, state, ref);
6334
6379
  const { contains } = useFilter({ sensitivity: "base" });
6335
- const [search, setSearch] = React59.useState("");
6336
- const filteredCollection = React59.useMemo(
6380
+ const [search, setSearch] = React60.useState("");
6381
+ const filteredCollection = React60.useMemo(
6337
6382
  () => searchable ? filterCollection(state.collection, search, contains) : state.collection,
6338
6383
  [state.collection, search, contains]
6339
6384
  );
6340
- return /* @__PURE__ */ React59.createElement(DropdownMenu2, {
6385
+ return /* @__PURE__ */ React60.createElement(DropdownMenu2, {
6341
6386
  minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
6342
6387
  maxWidth: maxWidth !== void 0 ? `${maxWidth}px` : void 0
6343
- }, header, /* @__PURE__ */ React59.createElement(DropdownMenu2.ContentContainer, null, searchable && /* @__PURE__ */ React59.createElement(SearchInput, {
6388
+ }, header, /* @__PURE__ */ React60.createElement(DropdownMenu2.ContentContainer, null, searchable && /* @__PURE__ */ React60.createElement(SearchInput, {
6344
6389
  "aria-label": "search",
6345
6390
  value: search,
6346
6391
  onChange: (e) => setSearch(e.target.value),
6347
6392
  className: tw("mb-5")
6348
- }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React59.createElement(DropdownMenu2.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React59.createElement(DropdownMenu2.List, __spreadValues({
6393
+ }), filteredCollection.size === 0 && emptyState && /* @__PURE__ */ React60.createElement(DropdownMenu2.EmptyStateContainer, null, emptyState), /* @__PURE__ */ React60.createElement(DropdownMenu2.List, __spreadValues({
6349
6394
  ref
6350
6395
  }, menuProps), Array.from(filteredCollection).map((item) => {
6351
6396
  if (isSectionNode(item)) {
6352
- return /* @__PURE__ */ React59.createElement(SectionWrapper, {
6397
+ return /* @__PURE__ */ React60.createElement(SectionWrapper, {
6353
6398
  key: item.key,
6354
6399
  section: item,
6355
6400
  state
6356
6401
  });
6357
6402
  } else if (isItemNode(item)) {
6358
- return /* @__PURE__ */ React59.createElement(ItemWrapper, {
6403
+ return /* @__PURE__ */ React60.createElement(ItemWrapper, {
6359
6404
  key: item.key,
6360
6405
  item,
6361
6406
  state
@@ -6364,14 +6409,14 @@ var MenuWrapper = (_a) => {
6364
6409
  }))), footer);
6365
6410
  };
6366
6411
  var ItemWrapper = ({ item, state }) => {
6367
- const ref = React59.useRef(null);
6412
+ const ref = React60.useRef(null);
6368
6413
  const { menuItemProps, descriptionProps, isSelected, isFocused, isDisabled } = useMenuItem(
6369
6414
  { key: item.key, closeOnSelect: item.props.closeOnSelect },
6370
6415
  state,
6371
6416
  ref
6372
6417
  );
6373
6418
  const { icon, description, kind = "default" } = item.props;
6374
- return /* @__PURE__ */ React59.createElement(DropdownMenu2.Item, __spreadProps(__spreadValues({
6419
+ return /* @__PURE__ */ React60.createElement(DropdownMenu2.Item, __spreadProps(__spreadValues({
6375
6420
  ref
6376
6421
  }, menuItemProps), {
6377
6422
  kind,
@@ -6379,7 +6424,7 @@ var ItemWrapper = ({ item, state }) => {
6379
6424
  highlighted: isFocused,
6380
6425
  disabled: isDisabled,
6381
6426
  icon
6382
- }), item.rendered, description && /* @__PURE__ */ React59.createElement(DropdownMenu2.Description, __spreadValues({
6427
+ }), item.rendered, description && /* @__PURE__ */ React60.createElement(DropdownMenu2.Description, __spreadValues({
6383
6428
  disabled: isDisabled
6384
6429
  }, descriptionProps), description));
6385
6430
  };
@@ -6391,24 +6436,24 @@ var SectionWrapper = ({ section, state }) => {
6391
6436
  const { separatorProps } = useSeparator({
6392
6437
  elementType: "li"
6393
6438
  });
6394
- return /* @__PURE__ */ React59.createElement(React59.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React59.createElement(DropdownMenu2.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React59.createElement(DropdownMenu2.Group, __spreadValues({
6439
+ return /* @__PURE__ */ React60.createElement(React60.Fragment, null, section.key !== state.collection.getFirstKey() && /* @__PURE__ */ React60.createElement(DropdownMenu2.Separator, __spreadValues({}, separatorProps)), /* @__PURE__ */ React60.createElement(DropdownMenu2.Group, __spreadValues({
6395
6440
  title: section.rendered,
6396
6441
  titleProps: headingProps
6397
- }, itemProps), /* @__PURE__ */ React59.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React59.createElement(ItemWrapper, {
6442
+ }, itemProps), /* @__PURE__ */ React60.createElement("ul", __spreadValues({}, groupProps), Array.from(section.childNodes).map((node) => /* @__PURE__ */ React60.createElement(ItemWrapper, {
6398
6443
  key: node.key,
6399
6444
  item: node,
6400
6445
  state
6401
6446
  })))));
6402
6447
  };
6403
6448
  var extractTriggerAndItems = (children) => {
6404
- const [trigger, items] = React59.Children.toArray(children);
6449
+ const [trigger, items] = React60.Children.toArray(children);
6405
6450
  if (!isComponentType(trigger, MenuTrigger) || !isComponentType(items, MenuItems)) {
6406
6451
  throw new Error("<DropdownMenu> must have <DropdownMenu.Trigger> and <DropdownMenu.Items> defined");
6407
6452
  }
6408
6453
  return [trigger, items];
6409
6454
  };
6410
6455
  var getDisabledItemKeys = (children) => {
6411
- const keys = React59.Children.map(children, (child) => {
6456
+ const keys = React60.Children.map(children, (child) => {
6412
6457
  var _a, _b;
6413
6458
  if (!child || typeof child === "function") {
6414
6459
  return null;
@@ -6425,11 +6470,11 @@ var getDisabledItemKeys = (children) => {
6425
6470
  };
6426
6471
 
6427
6472
  // src/components/EmptyState/EmptyState.tsx
6428
- import React61 from "react";
6473
+ import React62 from "react";
6429
6474
  import omit9 from "lodash/omit";
6430
6475
 
6431
6476
  // src/components/Flexbox/FlexboxItem.tsx
6432
- import React60 from "react";
6477
+ import React61 from "react";
6433
6478
  var FlexboxItem = Tailwindify(
6434
6479
  ({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
6435
6480
  const hookStyle = useStyle({
@@ -6441,7 +6486,7 @@ var FlexboxItem = Tailwindify(
6441
6486
  alignSelf
6442
6487
  });
6443
6488
  const HtmlElement = htmlTag;
6444
- return /* @__PURE__ */ React60.createElement(HtmlElement, {
6489
+ return /* @__PURE__ */ React61.createElement(HtmlElement, {
6445
6490
  style: __spreadValues(__spreadValues({}, hookStyle), style),
6446
6491
  className
6447
6492
  }, children);
@@ -6499,7 +6544,7 @@ var EmptyState = ({
6499
6544
  borderStyle = "dashed"
6500
6545
  }) => {
6501
6546
  const template = layoutStyle(layout);
6502
- return /* @__PURE__ */ React61.createElement(Box, {
6547
+ return /* @__PURE__ */ React62.createElement(Box, {
6503
6548
  className: classNames(
6504
6549
  tw("rounded", {
6505
6550
  "border border-dashed": borderStyle === "dashed",
@@ -6511,38 +6556,38 @@ var EmptyState = ({
6511
6556
  backgroundColor: "transparent",
6512
6557
  borderColor: "grey-10",
6513
6558
  padding: "9"
6514
- }, /* @__PURE__ */ React61.createElement(Flexbox, {
6559
+ }, /* @__PURE__ */ React62.createElement(Flexbox, {
6515
6560
  direction: template.layout,
6516
6561
  justifyContent: template.justifyContent,
6517
6562
  alignItems: template.layout === "row" ? "center" : template.alignItems,
6518
6563
  colGap: "l5",
6519
6564
  rowGap: "8"
6520
- }, image && /* @__PURE__ */ React61.createElement(FlexboxItem, null, /* @__PURE__ */ React61.createElement("img", {
6565
+ }, image && /* @__PURE__ */ React62.createElement(FlexboxItem, null, /* @__PURE__ */ React62.createElement("img", {
6521
6566
  src: image,
6522
6567
  alt: imageAlt,
6523
6568
  style: { width: imageWidth ? `${imageWidth}px` : void 0, height: "auto" }
6524
- })), /* @__PURE__ */ React61.createElement(Flexbox, {
6569
+ })), /* @__PURE__ */ React62.createElement(Flexbox, {
6525
6570
  style: { maxWidth: "610px" },
6526
6571
  direction: "column",
6527
6572
  justifyContent: template.justifyContent,
6528
6573
  alignItems: template.alignItems
6529
- }, /* @__PURE__ */ React61.createElement(Typography2, {
6574
+ }, /* @__PURE__ */ React62.createElement(Typography2, {
6530
6575
  variant: "heading",
6531
6576
  htmlTag: "h2"
6532
- }, title), (description || children) && /* @__PURE__ */ React61.createElement(Box, {
6577
+ }, title), (description || children) && /* @__PURE__ */ React62.createElement(Box, {
6533
6578
  marginTop: "5"
6534
- }, /* @__PURE__ */ React61.createElement(Typography2, {
6579
+ }, /* @__PURE__ */ React62.createElement(Typography2, {
6535
6580
  variant: "default",
6536
6581
  color: "grey-60"
6537
- }, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React61.createElement(Flexbox, {
6582
+ }, children || description)), (secondaryAction || primaryAction) && /* @__PURE__ */ React62.createElement(Flexbox, {
6538
6583
  marginTop: "7",
6539
6584
  gap: "4",
6540
6585
  justifyContent: "center",
6541
6586
  alignItems: "center",
6542
6587
  wrap: "wrap"
6543
- }, primaryAction && /* @__PURE__ */ React61.createElement(PrimaryButton, __spreadValues({}, omit9(primaryAction, "text")), primaryAction.text), secondaryAction && /* @__PURE__ */ React61.createElement(SecondaryButton, __spreadValues({}, omit9(secondaryAction, "text")), secondaryAction.text)), footer && /* @__PURE__ */ React61.createElement(Box, {
6588
+ }, primaryAction && /* @__PURE__ */ React62.createElement(PrimaryButton, __spreadValues({}, omit9(primaryAction, "text")), primaryAction.text), secondaryAction && /* @__PURE__ */ React62.createElement(SecondaryButton, __spreadValues({}, omit9(secondaryAction, "text")), secondaryAction.text)), footer && /* @__PURE__ */ React62.createElement(Box, {
6544
6589
  marginTop: "7"
6545
- }, /* @__PURE__ */ React61.createElement(Typography2, {
6590
+ }, /* @__PURE__ */ React62.createElement(Typography2, {
6546
6591
  htmlTag: "div",
6547
6592
  variant: "small",
6548
6593
  color: "grey-60"
@@ -6550,7 +6595,7 @@ var EmptyState = ({
6550
6595
  };
6551
6596
 
6552
6597
  // src/components/Grid/GridItem.tsx
6553
- import React62 from "react";
6598
+ import React63 from "react";
6554
6599
  var GridItem = Tailwindify(
6555
6600
  ({
6556
6601
  htmlTag = "div",
@@ -6581,7 +6626,7 @@ var GridItem = Tailwindify(
6581
6626
  gridRowEnd: rowEnd
6582
6627
  });
6583
6628
  const HtmlElement = htmlTag;
6584
- return /* @__PURE__ */ React62.createElement(HtmlElement, {
6629
+ return /* @__PURE__ */ React63.createElement(HtmlElement, {
6585
6630
  style: __spreadValues(__spreadValues({}, hookStyle), style),
6586
6631
  className
6587
6632
  }, children);
@@ -6589,58 +6634,59 @@ var GridItem = Tailwindify(
6589
6634
  );
6590
6635
 
6591
6636
  // src/components/LineClamp/LineClamp.tsx
6592
- import React63 from "react";
6593
- var LineClamp = ({ lines, children, expandLabel, collapseLabel }) => {
6594
- const ref = React63.useRef(null);
6595
- const [clamped, setClamped] = React63.useState(true);
6596
- const [isClampingEnabled, setClampingEnabled] = React63.useState(false);
6597
- React63.useEffect(() => {
6637
+ import React64 from "react";
6638
+ var LineClamp2 = ({ lines, children, expandLabel, collapseLabel }) => {
6639
+ const ref = React64.useRef(null);
6640
+ const [clamped, setClamped] = React64.useState(true);
6641
+ const [isClampingEnabled, setClampingEnabled] = React64.useState(false);
6642
+ React64.useEffect(() => {
6598
6643
  var _a, _b;
6599
6644
  const el = ref.current;
6600
6645
  setClampingEnabled(((_a = el == null ? void 0 : el.scrollHeight) != null ? _a : 0) > ((_b = el == null ? void 0 : el.clientHeight) != null ? _b : 0));
6601
6646
  }, [ref.current]);
6602
- return /* @__PURE__ */ React63.createElement("div", null, /* @__PURE__ */ React63.createElement("div", {
6647
+ return /* @__PURE__ */ React64.createElement("div", null, /* @__PURE__ */ React64.createElement(LineClamp, {
6603
6648
  ref,
6604
- className: classNames({ [`line-clamp-${lines}`]: clamped })
6605
- }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React63.createElement(GhostButton, {
6649
+ lines,
6650
+ clamped
6651
+ }, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React64.createElement(GhostButton, {
6606
6652
  dense: true,
6607
6653
  onClick: () => setClamped(!clamped)
6608
6654
  }, clamped ? expandLabel : collapseLabel));
6609
6655
  };
6610
6656
 
6611
6657
  // src/components/Link/Link.tsx
6612
- import React65 from "react";
6658
+ import React66 from "react";
6613
6659
 
6614
6660
  // src/common/Link/Link.tsx
6615
- import React64 from "react";
6661
+ import React65 from "react";
6616
6662
  var Link = (_a) => {
6617
6663
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
6618
- return /* @__PURE__ */ React64.createElement("a", __spreadValues({
6664
+ return /* @__PURE__ */ React65.createElement("a", __spreadValues({
6619
6665
  className: classNames(className, linkStyle)
6620
6666
  }, props), children);
6621
6667
  };
6622
6668
 
6623
6669
  // src/components/Link/Link.tsx
6624
- var Link2 = (props) => /* @__PURE__ */ React65.createElement(Link, __spreadValues({}, props));
6670
+ var Link2 = (props) => /* @__PURE__ */ React66.createElement(Link, __spreadValues({}, props));
6625
6671
 
6626
6672
  // src/components/List/List.tsx
6627
- import React66 from "react";
6628
- var List = ({ items, renderItem, container = React66.Fragment }) => {
6673
+ import React67 from "react";
6674
+ var List = ({ items, renderItem, container = React67.Fragment }) => {
6629
6675
  const Component = container;
6630
- return /* @__PURE__ */ React66.createElement(Component, null, items.map(renderItem));
6676
+ return /* @__PURE__ */ React67.createElement(Component, null, items.map(renderItem));
6631
6677
  };
6632
6678
 
6633
6679
  // src/components/ListItem/ListItem.tsx
6634
- import React67 from "react";
6680
+ import React68 from "react";
6635
6681
  var ListItem = ({ name, icon, active = false }) => {
6636
- return /* @__PURE__ */ React67.createElement(Flexbox, {
6682
+ return /* @__PURE__ */ React68.createElement(Flexbox, {
6637
6683
  alignItems: "center"
6638
- }, /* @__PURE__ */ React67.createElement(Typography2, {
6684
+ }, /* @__PURE__ */ React68.createElement(Typography2, {
6639
6685
  variant: active ? "small-strong" : "small",
6640
6686
  color: "grey-70",
6641
6687
  htmlTag: "span",
6642
6688
  className: `px-4 py-2 rounded-full ${active ? "bg-grey-5" : "hover:bg-grey-0"}`
6643
- }, /* @__PURE__ */ React67.createElement("img", {
6689
+ }, /* @__PURE__ */ React68.createElement("img", {
6644
6690
  src: icon,
6645
6691
  alt: name,
6646
6692
  className: "inline mr-4",
@@ -6650,7 +6696,7 @@ var ListItem = ({ name, icon, active = false }) => {
6650
6696
  };
6651
6697
 
6652
6698
  // src/components/Modal/Modal.tsx
6653
- import React69 from "react";
6699
+ import React70 from "react";
6654
6700
  import { useDialog as useDialog2 } from "@react-aria/dialog";
6655
6701
  import { FocusScope as FocusScope3 } from "@react-aria/focus";
6656
6702
  import { Overlay as Overlay2, useModalOverlay as useModalOverlay2 } from "@react-aria/overlays";
@@ -6660,18 +6706,18 @@ import castArray from "lodash/castArray";
6660
6706
  import omit10 from "lodash/omit";
6661
6707
 
6662
6708
  // src/components/Tabs/Tabs.tsx
6663
- import React68, { useEffect as useEffect5, useLayoutEffect as useLayoutEffect2, useRef as useRef6, useState as useState7 } from "react";
6664
- import isNumber4 from "lodash/isNumber";
6709
+ import React69, { useEffect as useEffect5, useLayoutEffect as useLayoutEffect2, useRef as useRef8, useState as useState7 } from "react";
6710
+ import isNumber5 from "lodash/isNumber";
6665
6711
  import kebabCase from "lodash/kebabCase";
6666
6712
  var import_chevronLeft2 = __toESM(require_chevronLeft());
6667
6713
  var import_chevronRight2 = __toESM(require_chevronRight());
6668
6714
  var import_warningSign3 = __toESM(require_warningSign());
6669
6715
  var isTabComponent = (c) => {
6670
- return React68.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
6716
+ return React69.isValidElement(c) && (c.type === Tab || c.type === ModalTab);
6671
6717
  };
6672
- var Tab = React68.forwardRef(
6718
+ var Tab = React69.forwardRef(
6673
6719
  ({ className, id, title, children }, ref) => {
6674
- return /* @__PURE__ */ React68.createElement("div", {
6720
+ return /* @__PURE__ */ React69.createElement("div", {
6675
6721
  ref,
6676
6722
  id: `${id != null ? id : kebabCase(title)}-panel`,
6677
6723
  className,
@@ -6683,14 +6729,14 @@ var Tab = React68.forwardRef(
6683
6729
  );
6684
6730
  var TabContainer = (_a) => {
6685
6731
  var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
6686
- return /* @__PURE__ */ React68.createElement("div", __spreadProps(__spreadValues({}, rest), {
6732
+ return /* @__PURE__ */ React69.createElement("div", __spreadProps(__spreadValues({}, rest), {
6687
6733
  className: classNames("py-6 z-0", className)
6688
6734
  }), children);
6689
6735
  };
6690
6736
  var ModalTab = Tab;
6691
6737
  var ModalTabContainer = TabContainer;
6692
6738
  var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6693
- const Tab2 = React68.forwardRef(
6739
+ const Tab2 = React69.forwardRef(
6694
6740
  (_a, ref) => {
6695
6741
  var _b = _a, {
6696
6742
  id,
@@ -6720,17 +6766,17 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6720
6766
  const _id = id != null ? id : kebabCase(title);
6721
6767
  let statusIcon = void 0;
6722
6768
  if (status === "warning") {
6723
- statusIcon = /* @__PURE__ */ React68.createElement(InlineIcon, {
6769
+ statusIcon = /* @__PURE__ */ React69.createElement(InlineIcon, {
6724
6770
  icon: import_warningSign3.default,
6725
6771
  color: "warning-80"
6726
6772
  });
6727
6773
  } else if (status === "error") {
6728
- statusIcon = /* @__PURE__ */ React68.createElement(InlineIcon, {
6774
+ statusIcon = /* @__PURE__ */ React69.createElement(InlineIcon, {
6729
6775
  icon: import_warningSign3.default,
6730
6776
  color: "error-50"
6731
6777
  });
6732
6778
  }
6733
- const tab = /* @__PURE__ */ React68.createElement(Component, __spreadValues({
6779
+ const tab = /* @__PURE__ */ React69.createElement(Component, __spreadValues({
6734
6780
  ref,
6735
6781
  id: `${_id}-tab`,
6736
6782
  onClick: () => !disabled && onSelected(value != null ? value : index),
@@ -6747,24 +6793,24 @@ var asTabItem = (Component, displayName, { defaultUnderlineHidden } = {}) => {
6747
6793
  "aria-selected": selected,
6748
6794
  "aria-controls": `${_id}-panel`,
6749
6795
  tabIndex: disabled ? void 0 : 0
6750
- }, rest), /* @__PURE__ */ React68.createElement(Typography2, {
6796
+ }, rest), /* @__PURE__ */ React69.createElement(Typography2, {
6751
6797
  htmlTag: "div",
6752
6798
  variant: "small",
6753
6799
  color: selected ? "primary-80" : disabled ? "grey-20" : "current",
6754
6800
  className: tw("inline-flex items-center gap-3")
6755
- }, /* @__PURE__ */ React68.createElement("span", {
6801
+ }, /* @__PURE__ */ React69.createElement("span", {
6756
6802
  className: tw("whitespace-nowrap")
6757
- }, title), isNumber4(badge) && /* @__PURE__ */ React68.createElement(Typography2, {
6803
+ }, title), isNumber5(badge) && /* @__PURE__ */ React69.createElement(Typography2, {
6758
6804
  htmlTag: "span",
6759
6805
  variant: "small",
6760
6806
  color: selected ? "primary-80" : "grey-5",
6761
6807
  className: "leading-none"
6762
- }, /* @__PURE__ */ React68.createElement(TabBadge, {
6808
+ }, /* @__PURE__ */ React69.createElement(TabBadge, {
6763
6809
  kind: "filled",
6764
6810
  value: badge,
6765
6811
  textClassname: classNames({ "text-white": selected, "text-grey-50": !selected })
6766
6812
  })), statusIcon));
6767
- return tooltip ? /* @__PURE__ */ React68.createElement(Tooltip, {
6813
+ return tooltip ? /* @__PURE__ */ React69.createElement(Tooltip, {
6768
6814
  content: tooltip
6769
6815
  }, tab) : tab;
6770
6816
  }
@@ -6778,20 +6824,20 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6778
6824
  const Tabs2 = (props) => {
6779
6825
  var _a, _b;
6780
6826
  const { className, value, defaultValue, onChange, children } = props;
6781
- const childArr = React68.Children.toArray(children);
6827
+ const childArr = React69.Children.toArray(children);
6782
6828
  const firstTab = childArr[0];
6783
6829
  const firstTabValue = isTabComponent(firstTab) ? firstTab.props.value : -1;
6784
6830
  const [selected, setSelected] = useState7((_b = (_a = value != null ? value : defaultValue) != null ? _a : firstTabValue) != null ? _b : 0);
6785
6831
  const [leftCaret, showLeftCaret] = useState7(false);
6786
6832
  const [rightCaret, showRightCaret] = useState7(false);
6787
- const parentRef = useRef6(null);
6788
- const containerRef = useRef6(null);
6789
- const tabsRef = useRef6(null);
6833
+ const parentRef = useRef8(null);
6834
+ const containerRef = useRef8(null);
6835
+ const tabsRef = useRef8(null);
6790
6836
  const revealSelectedTab = ({ smooth }) => {
6791
6837
  var _a2, _b2;
6792
6838
  const container = containerRef.current;
6793
6839
  const tabs = tabsRef.current;
6794
- const values = React68.Children.map(
6840
+ const values = React69.Children.map(
6795
6841
  children,
6796
6842
  (tab, i) => {
6797
6843
  var _a3;
@@ -6832,7 +6878,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6832
6878
  updateCarets();
6833
6879
  setSelected(value);
6834
6880
  revealSelectedTab({ smooth: value !== selected });
6835
- }, [value, React68.Children.count(children)]);
6881
+ }, [value, React69.Children.count(children)]);
6836
6882
  useLayoutEffect2(() => {
6837
6883
  var _a2;
6838
6884
  updateCarets();
@@ -6896,27 +6942,27 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6896
6942
  const handleSelected = (key) => {
6897
6943
  (onChange != null ? onChange : setSelected)(key);
6898
6944
  };
6899
- React68.Children.forEach(children, (c) => {
6945
+ React69.Children.forEach(children, (c) => {
6900
6946
  if (c && !isTabComponent(c)) {
6901
6947
  throw new Error("<Tabs> can only have <Tabs.Tab> components as children");
6902
6948
  }
6903
6949
  });
6904
- return /* @__PURE__ */ React68.createElement("div", {
6950
+ return /* @__PURE__ */ React69.createElement("div", {
6905
6951
  ref: parentRef,
6906
6952
  className: classNames(tw("h-full"), className)
6907
- }, /* @__PURE__ */ React68.createElement("div", {
6953
+ }, /* @__PURE__ */ React69.createElement("div", {
6908
6954
  className: tw("relative flex items-center h-full border-b-2 border-grey-10")
6909
- }, /* @__PURE__ */ React68.createElement("div", {
6955
+ }, /* @__PURE__ */ React69.createElement("div", {
6910
6956
  ref: containerRef,
6911
6957
  className: tw("overflow-y-auto scrollbar-hide h-full mb-[-2px]")
6912
- }, /* @__PURE__ */ React68.createElement("div", {
6958
+ }, /* @__PURE__ */ React69.createElement("div", {
6913
6959
  ref: tabsRef,
6914
6960
  role: "tablist",
6915
6961
  "aria-label": "tabs",
6916
6962
  className: tw("inline-flex items-center cursor-pointer font-normal h-full")
6917
- }, React68.Children.map(
6963
+ }, React69.Children.map(
6918
6964
  children,
6919
- (tab, index) => tab ? /* @__PURE__ */ React68.createElement(TabItemComponent, __spreadProps(__spreadValues({
6965
+ (tab, index) => tab ? /* @__PURE__ */ React69.createElement(TabItemComponent, __spreadProps(__spreadValues({
6920
6966
  key: tab.props.value
6921
6967
  }, tab.props), {
6922
6968
  index,
@@ -6924,20 +6970,20 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6924
6970
  onKeyDown: handleKeyDown,
6925
6971
  onSelected: handleSelected
6926
6972
  })) : void 0
6927
- ))), leftCaret && /* @__PURE__ */ React68.createElement("div", {
6973
+ ))), leftCaret && /* @__PURE__ */ React69.createElement("div", {
6928
6974
  className: tw("absolute left-0 bg-gradient-to-r from-white via-white z-20 py-3 pr-4")
6929
- }, /* @__PURE__ */ React68.createElement("div", {
6975
+ }, /* @__PURE__ */ React69.createElement("div", {
6930
6976
  onClick: () => handleScrollToNext("left"),
6931
6977
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
6932
- }, /* @__PURE__ */ React68.createElement(InlineIcon, {
6978
+ }, /* @__PURE__ */ React69.createElement(InlineIcon, {
6933
6979
  icon: import_chevronLeft2.default
6934
- }))), rightCaret && /* @__PURE__ */ React68.createElement("div", {
6980
+ }))), rightCaret && /* @__PURE__ */ React69.createElement("div", {
6935
6981
  onClick: () => handleScrollToNext("right"),
6936
6982
  className: tw("absolute right-0 bg-gradient-to-l from-white via-white z-20 py-3 pl-4")
6937
- }, /* @__PURE__ */ React68.createElement("div", {
6983
+ }, /* @__PURE__ */ React69.createElement("div", {
6938
6984
  onClick: () => handleScrollToNext("right"),
6939
6985
  className: tw("hover:bg-grey-0 p-2 leading-none cursor-pointer")
6940
- }, /* @__PURE__ */ React68.createElement(InlineIcon, {
6986
+ }, /* @__PURE__ */ React69.createElement(InlineIcon, {
6941
6987
  icon: import_chevronRight2.default
6942
6988
  })))), renderChildren(children, selected, props));
6943
6989
  };
@@ -6945,7 +6991,7 @@ var createTabsComponent = (TabComponent, TabItemComponent, displayName, renderCh
6945
6991
  Tabs2.Tab = TabComponent;
6946
6992
  return Tabs2;
6947
6993
  };
6948
- var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React68.createElement(TabContainer, null, children.find(
6994
+ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /* @__PURE__ */ React69.createElement(TabContainer, null, children.find(
6949
6995
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
6950
6996
  )));
6951
6997
 
@@ -6962,7 +7008,7 @@ var Modal2 = ({
6962
7008
  secondaryActions,
6963
7009
  size
6964
7010
  }) => {
6965
- const ref = React69.useRef(null);
7011
+ const ref = React70.useRef(null);
6966
7012
  const state = useOverlayTriggerState4({ isOpen: open });
6967
7013
  const { modalProps, underlayProps } = useModalOverlay2({ isDismissable: false }, state, ref);
6968
7014
  const labelledBy = useId2();
@@ -6974,35 +7020,35 @@ var Modal2 = ({
6974
7020
  if (!open) {
6975
7021
  return null;
6976
7022
  }
6977
- return /* @__PURE__ */ React69.createElement(Overlay2, null, /* @__PURE__ */ React69.createElement(Modal, {
7023
+ return /* @__PURE__ */ React70.createElement(Overlay2, null, /* @__PURE__ */ React70.createElement(Modal, {
6978
7024
  open: state.isOpen
6979
- }, /* @__PURE__ */ React69.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React69.createElement(FocusScope3, {
7025
+ }, /* @__PURE__ */ React70.createElement(Modal.BackDrop, __spreadValues({}, underlayProps)), /* @__PURE__ */ React70.createElement(FocusScope3, {
6980
7026
  contain: true,
6981
7027
  restoreFocus: true,
6982
7028
  autoFocus: true
6983
- }, /* @__PURE__ */ React69.createElement(Modal.Dialog, __spreadValues(__spreadValues({
7029
+ }, /* @__PURE__ */ React70.createElement(Modal.Dialog, __spreadValues(__spreadValues({
6984
7030
  ref,
6985
7031
  size
6986
- }, modalProps), dialogProps), /* @__PURE__ */ React69.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React69.createElement(IconButton, {
7032
+ }, modalProps), dialogProps), /* @__PURE__ */ React70.createElement(Modal.CloseButtonContainer, null, /* @__PURE__ */ React70.createElement(IconButton, {
6987
7033
  "aria-label": "Close",
6988
7034
  icon: import_cross5.default,
6989
7035
  onClick: onClose
6990
- })), headerImage !== void 0 && /* @__PURE__ */ React69.createElement(Modal.HeaderImage, {
7036
+ })), headerImage !== void 0 && /* @__PURE__ */ React70.createElement(Modal.HeaderImage, {
6991
7037
  backgroundImage: headerImage
6992
- }), /* @__PURE__ */ React69.createElement(Modal.Header, {
7038
+ }), /* @__PURE__ */ React70.createElement(Modal.Header, {
6993
7039
  className: tw({ "pb-3": isComponentType(children, ModalTabs) })
6994
- }, /* @__PURE__ */ React69.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React69.createElement(Modal.Title, {
7040
+ }, /* @__PURE__ */ React70.createElement(Modal.TitleContainer, null, /* @__PURE__ */ React70.createElement(Modal.Title, {
6995
7041
  id: labelledBy
6996
- }, title), subtitle && /* @__PURE__ */ React69.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React69.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React69.createElement(Modal.Body, {
7042
+ }, title), subtitle && /* @__PURE__ */ React70.createElement(Modal.Subtitle, null, subtitle))), isComponentType(children, ModalTabs) ? React70.cloneElement(children, { className: tw("[&>div:first-child]:px-5 grow") }) : /* @__PURE__ */ React70.createElement(Modal.Body, {
6997
7043
  id: describedBy,
6998
7044
  tabIndex: 0,
6999
7045
  noFooter: !(secondaryActions || primaryAction)
7000
- }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React69.createElement(Modal.Footer, null, /* @__PURE__ */ React69.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a) => {
7046
+ }, children), (secondaryActions || primaryAction) && /* @__PURE__ */ React70.createElement(Modal.Footer, null, /* @__PURE__ */ React70.createElement(Modal.Actions, null, secondaryActions && castArray(secondaryActions).filter(Boolean).map((_a) => {
7001
7047
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
7002
- return /* @__PURE__ */ React69.createElement(SecondaryButton, __spreadValues({
7048
+ return /* @__PURE__ */ React70.createElement(SecondaryButton, __spreadValues({
7003
7049
  key: text
7004
7050
  }, action), text);
7005
- }), primaryAction && /* @__PURE__ */ React69.createElement(PrimaryButton, __spreadValues({
7051
+ }), primaryAction && /* @__PURE__ */ React70.createElement(PrimaryButton, __spreadValues({
7006
7052
  key: primaryAction.text
7007
7053
  }, omit10(primaryAction, "text")), primaryAction.text)))))));
7008
7054
  };
@@ -7010,24 +7056,24 @@ var ModalTabs = createTabsComponent(
7010
7056
  ModalTab,
7011
7057
  TabItem,
7012
7058
  "ModalTabs",
7013
- (children, selected, props) => /* @__PURE__ */ React69.createElement(Modal.Body, {
7059
+ (children, selected, props) => /* @__PURE__ */ React70.createElement(Modal.Body, {
7014
7060
  maxHeight: props.maxHeight
7015
- }, /* @__PURE__ */ React69.createElement(ModalTabContainer, null, children.find(
7061
+ }, /* @__PURE__ */ React70.createElement(ModalTabContainer, null, children.find(
7016
7062
  (node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
7017
7063
  )))
7018
7064
  );
7019
7065
 
7020
7066
  // src/components/MultiInput/MultiInput.tsx
7021
- import React71, { useEffect as useEffect6, useRef as useRef7, useState as useState8 } from "react";
7067
+ import React72, { useEffect as useEffect6, useRef as useRef9, useState as useState8 } from "react";
7022
7068
  import castArray2 from "lodash/castArray";
7023
7069
  import identity from "lodash/identity";
7024
7070
  import omit11 from "lodash/omit";
7025
7071
  import uniqueId4 from "lodash/uniqueId";
7026
7072
 
7027
7073
  // src/components/MultiInput/InputChip.tsx
7028
- import React70 from "react";
7074
+ import React71 from "react";
7029
7075
  var import_smallCross = __toESM(require_smallCross());
7030
- var InputChip = React70.forwardRef(
7076
+ var InputChip = React71.forwardRef(
7031
7077
  (_a, ref) => {
7032
7078
  var _b = _a, { invalid = false, disabled, readOnly, className, onClick: _onClick, children } = _b, props = __objRest(_b, ["invalid", "disabled", "readOnly", "className", "onClick", "children"]);
7033
7079
  const onClick = (e) => {
@@ -7035,7 +7081,7 @@ var InputChip = React70.forwardRef(
7035
7081
  _onClick == null ? void 0 : _onClick(e);
7036
7082
  }
7037
7083
  };
7038
- return /* @__PURE__ */ React70.createElement("div", __spreadValues({
7084
+ return /* @__PURE__ */ React71.createElement("div", __spreadValues({
7039
7085
  ref,
7040
7086
  role: "button",
7041
7087
  className: classNames(className, "inline-flex align-middle mx-1 px-2 py-1 items-center rounded-sm break-all", {
@@ -7045,10 +7091,10 @@ var InputChip = React70.forwardRef(
7045
7091
  "bg-grey-5 pointer-events-none": disabled
7046
7092
  }),
7047
7093
  onClick
7048
- }, props), /* @__PURE__ */ React70.createElement(Typography2, {
7094
+ }, props), /* @__PURE__ */ React71.createElement(Typography2, {
7049
7095
  variant: "small",
7050
7096
  color: invalid ? "error-80" : disabled ? "grey-40" : "grey-70"
7051
- }, children), !readOnly && /* @__PURE__ */ React70.createElement("div", null, /* @__PURE__ */ React70.createElement(Icon, {
7097
+ }, children), !readOnly && /* @__PURE__ */ React71.createElement("div", null, /* @__PURE__ */ React71.createElement(Icon, {
7052
7098
  icon: import_smallCross.default,
7053
7099
  className: tw("ml-2", {
7054
7100
  "text-error-70": invalid,
@@ -7106,7 +7152,7 @@ var MultiInputBase = (_a) => {
7106
7152
  "valid"
7107
7153
  ]);
7108
7154
  var _a2;
7109
- const inputRef = useRef7(null);
7155
+ const inputRef = useRef9(null);
7110
7156
  const [items, setItems] = useState8((_a2 = value != null ? value : defaultValue) != null ? _a2 : []);
7111
7157
  const [hasFocus, setFocus] = useState8(false);
7112
7158
  const keyCodes = [delimiter !== "enter" ? " " : null, delimiter !== "space" ? "Enter" : null].filter(identity);
@@ -7189,7 +7235,7 @@ var MultiInputBase = (_a) => {
7189
7235
  };
7190
7236
  const renderChips = () => items == null ? void 0 : items.map((item, index) => {
7191
7237
  var _a3;
7192
- return /* @__PURE__ */ React71.createElement(InputChip, {
7238
+ return /* @__PURE__ */ React72.createElement(InputChip, {
7193
7239
  key: `${itemToString(item)}.${index}`,
7194
7240
  invalid: !((_a3 = isItemValid == null ? void 0 : isItemValid(item, index)) != null ? _a3 : true),
7195
7241
  readOnly,
@@ -7200,11 +7246,11 @@ var MultiInputBase = (_a) => {
7200
7246
  }
7201
7247
  }, itemToString(item));
7202
7248
  });
7203
- return /* @__PURE__ */ React71.createElement("div", null, /* @__PURE__ */ React71.createElement(Select.InputContainer, {
7249
+ return /* @__PURE__ */ React72.createElement("div", null, /* @__PURE__ */ React72.createElement(Select.InputContainer, {
7204
7250
  variant: disabled ? "disabled" : valid === false ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
7205
- }, /* @__PURE__ */ React71.createElement("div", {
7251
+ }, /* @__PURE__ */ React72.createElement("div", {
7206
7252
  className: "grow inline-flex flex-row flex-wrap gap-y-2"
7207
- }, inline && renderChips(), /* @__PURE__ */ React71.createElement(Select.Input, __spreadProps(__spreadValues({
7253
+ }, inline && renderChips(), /* @__PURE__ */ React72.createElement(Select.Input, __spreadProps(__spreadValues({
7208
7254
  ref: inputRef,
7209
7255
  id: id != null ? id : name,
7210
7256
  name,
@@ -7222,11 +7268,11 @@ var MultiInputBase = (_a) => {
7222
7268
  onFocus: handleFocus,
7223
7269
  onBlur: handleBlur,
7224
7270
  autoComplete: "off"
7225
- }))), endAdornment && /* @__PURE__ */ React71.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React71.createElement("div", {
7271
+ }))), endAdornment && /* @__PURE__ */ React72.createElement(InputAdornment, null, endAdornment)), !inline && /* @__PURE__ */ React72.createElement("div", {
7226
7272
  className: tw("flex flex-row flex-wrap gap-y-2 mt-2")
7227
7273
  }, renderChips()));
7228
7274
  };
7229
- var BaseMultiInputSkeleton = () => /* @__PURE__ */ React71.createElement(Skeleton, {
7275
+ var BaseMultiInputSkeleton = () => /* @__PURE__ */ React72.createElement(Skeleton, {
7230
7276
  height: 38
7231
7277
  });
7232
7278
  MultiInputBase.Skeleton = BaseMultiInputSkeleton;
@@ -7238,19 +7284,19 @@ var MultiInput = (props) => {
7238
7284
  var _a2;
7239
7285
  setValue((_a2 = props.value) != null ? _a2 : []);
7240
7286
  }, [JSON.stringify(props.value)]);
7241
- const id = useRef7((_e = (_d = props.id) != null ? _d : props.name) != null ? _e : `multiinput-${uniqueId4()}`);
7287
+ const id = useRef9((_e = (_d = props.id) != null ? _d : props.name) != null ? _e : `multiinput-${uniqueId4()}`);
7242
7288
  const errorMessageId = uniqueId4();
7243
7289
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7244
7290
  const labelControlProps = getLabelControlProps(props);
7245
7291
  const baseProps = omit11(props, Object.keys(labelControlProps));
7246
- return /* @__PURE__ */ React71.createElement(LabelControl, __spreadProps(__spreadValues({
7292
+ return /* @__PURE__ */ React72.createElement(LabelControl, __spreadProps(__spreadValues({
7247
7293
  id: `${id.current}-label`,
7248
7294
  htmlFor: `${id.current}-input`,
7249
7295
  messageId: errorMessageId
7250
7296
  }, labelControlProps), {
7251
7297
  length: value.length,
7252
7298
  maxLength
7253
- }), /* @__PURE__ */ React71.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7299
+ }), /* @__PURE__ */ React72.createElement(MultiInputBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7254
7300
  id: `${id.current}-input`,
7255
7301
  onChange: (value2) => {
7256
7302
  var _a2;
@@ -7262,14 +7308,15 @@ var MultiInput = (props) => {
7262
7308
  valid: props.valid
7263
7309
  })));
7264
7310
  };
7265
- var MultiInputSkeleton = () => /* @__PURE__ */ React71.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React71.createElement(MultiInputBase.Skeleton, null));
7311
+ var MultiInputSkeleton = () => /* @__PURE__ */ React72.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React72.createElement(MultiInputBase.Skeleton, null));
7266
7312
  MultiInput.Skeleton = MultiInputSkeleton;
7267
7313
  MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
7268
7314
 
7269
7315
  // src/components/MultiSelect/MultiSelect.tsx
7270
- import React72, { useRef as useRef8, useState as useState9 } from "react";
7316
+ import React73, { useRef as useRef10, useState as useState9 } from "react";
7271
7317
  import { useOverlayPosition as useOverlayPosition5 } from "@react-aria/overlays";
7272
7318
  import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
7319
+ import isEqual from "lodash/isEqual";
7273
7320
  import isNil from "lodash/isNil";
7274
7321
  import omit12 from "lodash/omit";
7275
7322
  import omitBy from "lodash/omitBy";
@@ -7322,8 +7369,8 @@ var MultiSelectBase = (_a) => {
7322
7369
  "children"
7323
7370
  ]);
7324
7371
  var _a2;
7325
- const targetRef = useRef8(null);
7326
- const overlayRef = useRef8(null);
7372
+ const targetRef = useRef10(null);
7373
+ const overlayRef = useRef10(null);
7327
7374
  const [inputValue, setInputValue] = useState9("");
7328
7375
  const [hasFocus, setFocus] = useState9(false);
7329
7376
  const { selectedItems, addSelectedItem, removeSelectedItem, getDropdownProps, getSelectedItemProps } = useMultipleSelection(
@@ -7357,14 +7404,23 @@ var MultiSelectBase = (_a) => {
7357
7404
  selectedItem: null,
7358
7405
  items: filteredOptions,
7359
7406
  stateReducer: (_, actionChanges) => {
7407
+ var _a3, _b2;
7360
7408
  const { changes, type } = actionChanges;
7361
7409
  switch (type) {
7362
7410
  case useCombobox2.stateChangeTypes.InputKeyDownEnter:
7363
7411
  case useCombobox2.stateChangeTypes.ItemClick: {
7412
+ const selectedItem = (_a3 = changes.selectedItem) != null ? _a3 : changes.inputValue ? createOption == null ? void 0 : createOption(changes.inputValue) : null;
7364
7413
  return __spreadProps(__spreadValues({}, changes), {
7414
+ selectedItem,
7365
7415
  isOpen: !closeOnSelect
7366
7416
  });
7367
7417
  }
7418
+ case useCombobox2.stateChangeTypes.InputBlur: {
7419
+ const selectedItem = (_b2 = changes.selectedItem) != null ? _b2 : changes.inputValue ? createOption == null ? void 0 : createOption(changes.inputValue) : null;
7420
+ return __spreadProps(__spreadValues({}, changes), {
7421
+ selectedItem
7422
+ });
7423
+ }
7368
7424
  }
7369
7425
  return changes;
7370
7426
  },
@@ -7377,8 +7433,8 @@ var MultiSelectBase = (_a) => {
7377
7433
  case useCombobox2.stateChangeTypes.InputKeyDownEnter:
7378
7434
  case useCombobox2.stateChangeTypes.ItemClick:
7379
7435
  case useCombobox2.stateChangeTypes.InputBlur: {
7380
- if (selectedItem && !isOptionDisabled(selectedItem, options.indexOf(selectedItem))) {
7381
- setInputValue("");
7436
+ setInputValue("");
7437
+ if (selectedItem && !isOptionDisabled(selectedItem, options.indexOf(selectedItem)) && !selectedItems.some((val) => isEqual(val, selectedItem))) {
7382
7438
  addSelectedItem(selectedItem);
7383
7439
  }
7384
7440
  break;
@@ -7395,7 +7451,7 @@ var MultiSelectBase = (_a) => {
7395
7451
  });
7396
7452
  const inputProps = getInputProps(getDropdownProps({ disabled: disabled || readOnly }));
7397
7453
  const renderChips = () => {
7398
- return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React72.createElement(InputChip, __spreadProps(__spreadValues({
7454
+ return selectedItems.map((selectedItem, index) => /* @__PURE__ */ React73.createElement(InputChip, __spreadProps(__spreadValues({
7399
7455
  key: `${itemToString(selectedItem)}.chip`,
7400
7456
  className: tw("mx-0"),
7401
7457
  disabled,
@@ -7411,14 +7467,14 @@ var MultiSelectBase = (_a) => {
7411
7467
  const hasNoResults = options.length === 0 || filteredOptions.length === 0;
7412
7468
  const width = (_a2 = targetRef.current) == null ? void 0 : _a2.offsetWidth;
7413
7469
  const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
7414
- return /* @__PURE__ */ React72.createElement("div", {
7470
+ return /* @__PURE__ */ React73.createElement("div", {
7415
7471
  className: tw("relative")
7416
- }, /* @__PURE__ */ React72.createElement(Select.InputContainer, {
7472
+ }, /* @__PURE__ */ React73.createElement(Select.InputContainer, {
7417
7473
  ref: targetRef,
7418
7474
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default"
7419
- }, /* @__PURE__ */ React72.createElement("div", {
7475
+ }, /* @__PURE__ */ React73.createElement("div", {
7420
7476
  className: "grow inline-flex flex-row flex-wrap gap-2"
7421
- }, !hideChips && inline && renderChips(), /* @__PURE__ */ React72.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
7477
+ }, !hideChips && inline && renderChips(), /* @__PURE__ */ React73.createElement(Select.Input, __spreadProps(__spreadValues(__spreadValues({
7422
7478
  id,
7423
7479
  name,
7424
7480
  placeholder: selectedItems.length === 0 && !readOnly ? placeholder : "",
@@ -7439,12 +7495,12 @@ var MultiSelectBase = (_a) => {
7439
7495
  setFocus(false);
7440
7496
  (_a3 = inputProps.onBlur) == null ? void 0 : _a3.call(inputProps, e);
7441
7497
  }
7442
- }))), !readOnly && /* @__PURE__ */ React72.createElement(Select.Toggle, __spreadValues({
7498
+ }))), !readOnly && /* @__PURE__ */ React73.createElement(Select.Toggle, __spreadValues({
7443
7499
  hasFocus,
7444
7500
  isOpen
7445
- }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React72.createElement("div", {
7501
+ }, getToggleButtonProps({ disabled })))), !hideChips && !inline && /* @__PURE__ */ React73.createElement("div", {
7446
7502
  className: tw("flex flex-row flex-wrap gap-2 mt-2")
7447
- }, renderChips()), /* @__PURE__ */ React72.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7503
+ }, renderChips()), /* @__PURE__ */ React73.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7448
7504
  isOpen: true,
7449
7505
  isDismissable: true,
7450
7506
  autoFocus: true
@@ -7452,15 +7508,15 @@ var MultiSelectBase = (_a) => {
7452
7508
  style,
7453
7509
  onClose: closeMenu,
7454
7510
  className: tw("overflow-y-auto")
7455
- }), /* @__PURE__ */ React72.createElement(Select.Menu, {
7511
+ }), /* @__PURE__ */ React73.createElement(Select.Menu, {
7456
7512
  maxHeight
7457
- }, isOpen && hasNoResults && /* @__PURE__ */ React72.createElement(Select.NoResults, null, noResults), isOpen && filteredOptions.map((item, index) => /* @__PURE__ */ React72.createElement(Select.Item, __spreadValues({
7513
+ }, isOpen && hasNoResults && /* @__PURE__ */ React73.createElement(Select.NoResults, null, noResults), isOpen && filteredOptions.map((item, index) => /* @__PURE__ */ React73.createElement(Select.Item, __spreadValues({
7458
7514
  key: itemToString(item),
7459
7515
  highlighted: index === highlightedIndex,
7460
7516
  selected: selectedItems.includes(item)
7461
7517
  }, getItemProps({ item, index, disabled: isOptionDisabled(item, index) })), renderOption(item))))));
7462
7518
  };
7463
- var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React72.createElement(Skeleton, {
7519
+ var MultiSelectBaseSkeleton = () => /* @__PURE__ */ React73.createElement(Skeleton, {
7464
7520
  height: 38
7465
7521
  });
7466
7522
  MultiSelectBase.Skeleton = MultiSelectBaseSkeleton;
@@ -7473,16 +7529,16 @@ var MultiSelect = (_a) => {
7473
7529
  "noResults"
7474
7530
  ]);
7475
7531
  var _a2;
7476
- const id = useRef8((_a2 = props.id) != null ? _a2 : `multiselect-${uniqueId5()}`);
7532
+ const id = useRef10((_a2 = props.id) != null ? _a2 : `multiselect-${uniqueId5()}`);
7477
7533
  const errorMessageId = uniqueId5();
7478
7534
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7479
7535
  const labelControlProps = getLabelControlProps(props);
7480
7536
  const baseProps = omit12(props, Object.keys(labelControlProps));
7481
- return /* @__PURE__ */ React72.createElement(LabelControl, __spreadValues({
7537
+ return /* @__PURE__ */ React73.createElement(LabelControl, __spreadValues({
7482
7538
  id: `${id.current}-label`,
7483
7539
  htmlFor: `${id.current}-input`,
7484
7540
  messageId: errorMessageId
7485
- }, labelControlProps), /* @__PURE__ */ React72.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7541
+ }, labelControlProps), /* @__PURE__ */ React73.createElement(MultiSelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7486
7542
  id: id.current,
7487
7543
  options,
7488
7544
  noResults,
@@ -7490,16 +7546,16 @@ var MultiSelect = (_a) => {
7490
7546
  valid: props.valid
7491
7547
  })));
7492
7548
  };
7493
- var MultiSelectSkeleton = () => /* @__PURE__ */ React72.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React72.createElement(MultiSelectBase.Skeleton, null));
7549
+ var MultiSelectSkeleton = () => /* @__PURE__ */ React73.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React73.createElement(MultiSelectBase.Skeleton, null));
7494
7550
  MultiSelect.Skeleton = MultiSelectSkeleton;
7495
7551
  MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
7496
7552
 
7497
7553
  // src/components/NativeSelect/NativeSelect.tsx
7498
- import React73, { useRef as useRef9 } from "react";
7554
+ import React74, { useRef as useRef11 } from "react";
7499
7555
  import omit13 from "lodash/omit";
7500
7556
  import uniqueId6 from "lodash/uniqueId";
7501
7557
  var import_caretDown = __toESM(require_caretDown());
7502
- var NativeSelectBase = React73.forwardRef(
7558
+ var NativeSelectBase = React74.forwardRef(
7503
7559
  (_a, ref) => {
7504
7560
  var _b = _a, { children, disabled = false, required = false, valid = true, readOnly = false } = _b, props = __objRest(_b, ["children", "disabled", "required", "valid", "readOnly"]);
7505
7561
  const placeholderValue = uniqueId6("default_value_for_placeholder");
@@ -7516,16 +7572,16 @@ var NativeSelectBase = React73.forwardRef(
7516
7572
  (_b2 = props.onBlur) == null ? void 0 : _b2.call(props, event);
7517
7573
  }
7518
7574
  };
7519
- return /* @__PURE__ */ React73.createElement("span", {
7575
+ return /* @__PURE__ */ React74.createElement("span", {
7520
7576
  className: tw("relative block")
7521
- }, !readOnly && /* @__PURE__ */ React73.createElement("span", {
7577
+ }, !readOnly && /* @__PURE__ */ React74.createElement("span", {
7522
7578
  className: tw(
7523
7579
  "absolute right-0 inset-y-0 mr-4 text-grey-40 flex ml-3 pointer-events-none typography-default-strong mt-4"
7524
7580
  )
7525
- }, /* @__PURE__ */ React73.createElement(Icon, {
7581
+ }, /* @__PURE__ */ React74.createElement(Icon, {
7526
7582
  icon: import_caretDown.default,
7527
7583
  "data-testid": "icon-dropdown"
7528
- })), /* @__PURE__ */ React73.createElement("select", __spreadProps(__spreadValues({
7584
+ })), /* @__PURE__ */ React74.createElement("select", __spreadProps(__spreadValues({
7529
7585
  ref,
7530
7586
  disabled: disabled || readOnly,
7531
7587
  required
@@ -7544,29 +7600,29 @@ var NativeSelectBase = React73.forwardRef(
7544
7600
  ),
7545
7601
  props.className
7546
7602
  )
7547
- }), props.placeholder && /* @__PURE__ */ React73.createElement("option", {
7603
+ }), props.placeholder && /* @__PURE__ */ React74.createElement("option", {
7548
7604
  value: placeholderValue,
7549
7605
  disabled: true
7550
7606
  }, props.placeholder), children));
7551
7607
  }
7552
7608
  );
7553
- NativeSelectBase.Skeleton = () => /* @__PURE__ */ React73.createElement(Skeleton, {
7609
+ NativeSelectBase.Skeleton = () => /* @__PURE__ */ React74.createElement(Skeleton, {
7554
7610
  height: 38
7555
7611
  });
7556
- var NativeSelect = React73.forwardRef(
7612
+ var NativeSelect = React74.forwardRef(
7557
7613
  (_a, ref) => {
7558
7614
  var _b = _a, { readOnly } = _b, props = __objRest(_b, ["readOnly"]);
7559
7615
  var _a2;
7560
- const id = useRef9((_a2 = props.id) != null ? _a2 : `nativeselect-${uniqueId6()}`);
7616
+ const id = useRef11((_a2 = props.id) != null ? _a2 : `nativeselect-${uniqueId6()}`);
7561
7617
  const errorMessageId = uniqueId6();
7562
7618
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7563
7619
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
7564
7620
  const baseProps = omit13(props, Object.keys(labelControlProps));
7565
- return /* @__PURE__ */ React73.createElement(LabelControl, __spreadValues({
7621
+ return /* @__PURE__ */ React74.createElement(LabelControl, __spreadValues({
7566
7622
  id: `${id.current}-label`,
7567
7623
  htmlFor: id.current,
7568
7624
  messageId: errorMessageId
7569
- }, labelControlProps), /* @__PURE__ */ React73.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
7625
+ }, labelControlProps), /* @__PURE__ */ React74.createElement(NativeSelectBase, __spreadProps(__spreadValues(__spreadValues({
7570
7626
  ref
7571
7627
  }, baseProps), errorProps), {
7572
7628
  id: id.current,
@@ -7580,21 +7636,21 @@ var NativeSelect = React73.forwardRef(
7580
7636
  }
7581
7637
  );
7582
7638
  NativeSelect.displayName = "NativeSelect";
7583
- var Option = React73.forwardRef((_a, ref) => {
7639
+ var Option = React74.forwardRef((_a, ref) => {
7584
7640
  var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
7585
- return /* @__PURE__ */ React73.createElement("option", __spreadValues({
7641
+ return /* @__PURE__ */ React74.createElement("option", __spreadValues({
7586
7642
  ref
7587
7643
  }, props), children);
7588
7644
  });
7589
7645
  Option.displayName = "Option";
7590
- var NativeSelectSkeleton = () => /* @__PURE__ */ React73.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React73.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React73.createElement("div", {
7646
+ var NativeSelectSkeleton = () => /* @__PURE__ */ React74.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React74.createElement(NativeSelectBase.Skeleton, null), /* @__PURE__ */ React74.createElement("div", {
7591
7647
  style: { height: "1px" }
7592
7648
  }));
7593
7649
  NativeSelect.Skeleton = NativeSelectSkeleton;
7594
7650
  NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
7595
7651
 
7596
7652
  // src/components/PageHeader/PageHeader.tsx
7597
- import React74 from "react";
7653
+ import React75 from "react";
7598
7654
  import castArray3 from "lodash/castArray";
7599
7655
  import omit14 from "lodash/omit";
7600
7656
  var PageHeader = ({
@@ -7606,48 +7662,48 @@ var PageHeader = ({
7606
7662
  chips = [],
7607
7663
  breadcrumbs
7608
7664
  }) => {
7609
- return /* @__PURE__ */ React74.createElement(Flexbox, {
7665
+ return /* @__PURE__ */ React75.createElement(Flexbox, {
7610
7666
  direction: "row",
7611
7667
  gap: "4",
7612
7668
  paddingBottom: "6"
7613
- }, /* @__PURE__ */ React74.createElement(Flexbox, {
7669
+ }, /* @__PURE__ */ React75.createElement(Flexbox, {
7614
7670
  className: tw("grow"),
7615
7671
  direction: "column",
7616
7672
  gap: "0"
7617
- }, breadcrumbs && /* @__PURE__ */ React74.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React74.createElement(Flexbox, {
7673
+ }, breadcrumbs && /* @__PURE__ */ React75.createElement(Breadcrumbs, null, breadcrumbs), /* @__PURE__ */ React75.createElement(Flexbox, {
7618
7674
  gap: "5"
7619
- }, image && /* @__PURE__ */ React74.createElement("img", {
7675
+ }, image && /* @__PURE__ */ React75.createElement("img", {
7620
7676
  src: image,
7621
7677
  alt: imageAlt,
7622
7678
  className: tw("w-[56px] h-[56px]")
7623
- }), /* @__PURE__ */ React74.createElement(Flexbox, {
7679
+ }), /* @__PURE__ */ React75.createElement(Flexbox, {
7624
7680
  direction: "column",
7625
7681
  justifyContent: "center"
7626
- }, /* @__PURE__ */ React74.createElement(Typography2.Heading, null, title), chips.length > 0 && /* @__PURE__ */ React74.createElement(Flexbox, {
7682
+ }, /* @__PURE__ */ React75.createElement(Typography2.Heading, null, title), chips.length > 0 && /* @__PURE__ */ React75.createElement(Flexbox, {
7627
7683
  gap: "3"
7628
- }, chips.map((chip) => /* @__PURE__ */ React74.createElement(Chip2, {
7684
+ }, chips.map((chip) => /* @__PURE__ */ React75.createElement(Chip2, {
7629
7685
  key: chip,
7630
7686
  dense: true,
7631
7687
  text: chip
7632
- })))))), (secondaryActions || primaryAction) && /* @__PURE__ */ React74.createElement(Flexbox, {
7688
+ })))))), (secondaryActions || primaryAction) && /* @__PURE__ */ React75.createElement(Flexbox, {
7633
7689
  gap: "4",
7634
7690
  className: tw("self-start")
7635
7691
  }, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a) => {
7636
7692
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
7637
- return /* @__PURE__ */ React74.createElement(SecondaryButton, __spreadValues({
7693
+ return /* @__PURE__ */ React75.createElement(SecondaryButton, __spreadValues({
7638
7694
  key: text
7639
7695
  }, action), text);
7640
- }), primaryAction && /* @__PURE__ */ React74.createElement(PrimaryButton, __spreadValues({
7696
+ }), primaryAction && /* @__PURE__ */ React75.createElement(PrimaryButton, __spreadValues({
7641
7697
  key: primaryAction.text
7642
7698
  }, omit14(primaryAction, "text")), primaryAction.text)));
7643
7699
  };
7644
7700
 
7645
7701
  // src/components/Pagination/Pagination.tsx
7646
- import React76 from "react";
7702
+ import React77 from "react";
7647
7703
  import clamp from "lodash/clamp";
7648
7704
 
7649
7705
  // src/components/Select/Select.tsx
7650
- import React75, { useRef as useRef10, useState as useState10 } from "react";
7706
+ import React76, { useRef as useRef12, useState as useState10 } from "react";
7651
7707
  import { useOverlayPosition as useOverlayPosition6 } from "@react-aria/overlays";
7652
7708
  import { useSelect } from "downshift";
7653
7709
  import defaults from "lodash/defaults";
@@ -7664,10 +7720,10 @@ var hasOptionGroups = (val) => {
7664
7720
  };
7665
7721
  var defaultRenderOption = (item, props, { selectedItem }, { getOptionKey, getValue, optionToString = getOptionLabelBuiltin }) => {
7666
7722
  var _a, _b;
7667
- return /* @__PURE__ */ React75.createElement(Select.Item, __spreadValues({
7723
+ return /* @__PURE__ */ React76.createElement(Select.Item, __spreadValues({
7668
7724
  key: (_b = (_a = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a : getValue == null ? void 0 : getValue(item)) != null ? _b : optionToString(item),
7669
7725
  selected: item === selectedItem
7670
- }, props), hasIconProperty(item) && /* @__PURE__ */ React75.createElement(InlineIcon, {
7726
+ }, props), hasIconProperty(item) && /* @__PURE__ */ React76.createElement(InlineIcon, {
7671
7727
  icon: item.icon
7672
7728
  }), optionToString(item));
7673
7729
  };
@@ -7739,8 +7795,8 @@ var _SelectBase = (props) => {
7739
7795
  "labelWrapper"
7740
7796
  ]);
7741
7797
  const [hasFocus, setFocus] = useState10(false);
7742
- const targetRef = useRef10(null);
7743
- const overlayRef = useRef10(null);
7798
+ const targetRef = useRef12(null);
7799
+ const overlayRef = useRef12(null);
7744
7800
  const items = hasOptionGroups(options) ? options.flatMap((g) => g.options) : options;
7745
7801
  const findItemByValue = (val) => {
7746
7802
  if (val === null) {
@@ -7784,13 +7840,13 @@ var _SelectBase = (props) => {
7784
7840
  },
7785
7841
  withDefaults
7786
7842
  );
7787
- const renderGroup = (group) => /* @__PURE__ */ React75.createElement(React75.Fragment, {
7843
+ const renderGroup = (group) => /* @__PURE__ */ React76.createElement(React76.Fragment, {
7788
7844
  key: group.label
7789
- }, /* @__PURE__ */ React75.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
7790
- const input = /* @__PURE__ */ React75.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
7845
+ }, /* @__PURE__ */ React76.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
7846
+ const input = /* @__PURE__ */ React76.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
7791
7847
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default",
7792
7848
  tabIndex: 0
7793
- }), /* @__PURE__ */ React75.createElement(Select.Input, __spreadProps(__spreadValues({
7849
+ }), /* @__PURE__ */ React76.createElement(Select.Input, __spreadProps(__spreadValues({
7794
7850
  id,
7795
7851
  name
7796
7852
  }, rest), {
@@ -7802,16 +7858,16 @@ var _SelectBase = (props) => {
7802
7858
  tabIndex: -1,
7803
7859
  onFocus: () => setFocus(true),
7804
7860
  onBlur: () => setFocus(false)
7805
- })), !readOnly && /* @__PURE__ */ React75.createElement(Select.Toggle, {
7861
+ })), !readOnly && /* @__PURE__ */ React76.createElement(Select.Toggle, {
7806
7862
  disabled,
7807
7863
  isOpen,
7808
7864
  tabIndex: -1
7809
7865
  }));
7810
7866
  const width = (_b = targetRef.current) == null ? void 0 : _b.offsetWidth;
7811
7867
  const style = isOpen ? __spreadProps(__spreadValues({}, overlayProps.style), { width }) : { display: "none" };
7812
- return /* @__PURE__ */ React75.createElement("div", {
7868
+ return /* @__PURE__ */ React76.createElement("div", {
7813
7869
  className: tw("relative")
7814
- }, labelWrapper ? React75.cloneElement(labelWrapper, { children: input }) : input, /* @__PURE__ */ React75.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7870
+ }, labelWrapper ? React76.cloneElement(labelWrapper, { children: input }) : input, /* @__PURE__ */ React76.createElement(PopoverWrapper, __spreadProps(__spreadValues({
7815
7871
  isOpen: true,
7816
7872
  isDismissable: true,
7817
7873
  autoFocus: true
@@ -7819,11 +7875,11 @@ var _SelectBase = (props) => {
7819
7875
  style,
7820
7876
  onClose: closeMenu,
7821
7877
  className: tw("overflow-y-auto")
7822
- }), /* @__PURE__ */ React75.createElement(Select.Menu, {
7878
+ }), /* @__PURE__ */ React76.createElement(Select.Menu, {
7823
7879
  maxHeight
7824
- }, isOpen && options.length === 0 && /* @__PURE__ */ React75.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__ */ React75.createElement(React75.Fragment, null, /* @__PURE__ */ React75.createElement(Select.Divider, {
7880
+ }, isOpen && options.length === 0 && /* @__PURE__ */ React76.createElement(Select.EmptyStateContainer, null, emptyState), isOpen && options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), isOpen && options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), isOpen && actions.length > 0 && /* @__PURE__ */ React76.createElement(React76.Fragment, null, /* @__PURE__ */ React76.createElement(Select.Divider, {
7825
7881
  onMouseOver: () => setHighlightedIndex(-1)
7826
- }), actions.map((act, index) => /* @__PURE__ */ React75.createElement(Select.ActionItem, __spreadProps(__spreadValues({
7882
+ }), actions.map((act, index) => /* @__PURE__ */ React76.createElement(Select.ActionItem, __spreadProps(__spreadValues({
7827
7883
  key: `${index}`
7828
7884
  }, act), {
7829
7885
  onMouseOver: () => setHighlightedIndex(-1),
@@ -7833,10 +7889,10 @@ var _SelectBase = (props) => {
7833
7889
  }
7834
7890
  }), act.label))))));
7835
7891
  };
7836
- var SelectBase = (props) => /* @__PURE__ */ React75.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
7892
+ var SelectBase = (props) => /* @__PURE__ */ React76.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
7837
7893
  labelWrapper: void 0
7838
7894
  }));
7839
- var SelectBaseSkeleton = () => /* @__PURE__ */ React75.createElement(Skeleton, {
7895
+ var SelectBaseSkeleton = () => /* @__PURE__ */ React76.createElement(Skeleton, {
7840
7896
  height: 38
7841
7897
  });
7842
7898
  SelectBase.Skeleton = SelectBaseSkeleton;
@@ -7847,26 +7903,26 @@ var Select2 = (_a) => {
7847
7903
  "options"
7848
7904
  ]);
7849
7905
  var _a2;
7850
- const id = useRef10((_a2 = props.id) != null ? _a2 : `select-${uniqueId7()}`);
7906
+ const id = useRef12((_a2 = props.id) != null ? _a2 : `select-${uniqueId7()}`);
7851
7907
  const errorMessageId = uniqueId7();
7852
7908
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
7853
7909
  const labelProps = getLabelControlProps(props);
7854
7910
  const baseProps = omit15(props, Object.keys(labelProps));
7855
7911
  const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
7856
7912
  const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
7857
- const label = /* @__PURE__ */ React75.createElement(Label, __spreadValues({
7913
+ const label = /* @__PURE__ */ React76.createElement(Label, __spreadValues({
7858
7914
  id: `${id.current}-label`,
7859
7915
  htmlFor: `${id.current}-input`,
7860
7916
  variant,
7861
7917
  messageId: errorMessageId
7862
7918
  }, labelProps));
7863
- return /* @__PURE__ */ React75.createElement(FormControl, null, /* @__PURE__ */ React75.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7919
+ return /* @__PURE__ */ React76.createElement(FormControl, null, /* @__PURE__ */ React76.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
7864
7920
  id: `${id.current}-input`,
7865
7921
  options,
7866
7922
  disabled: props.disabled,
7867
7923
  valid: props.valid,
7868
7924
  labelWrapper: label
7869
- })), /* @__PURE__ */ React75.createElement(HelperText, {
7925
+ })), /* @__PURE__ */ React76.createElement(HelperText, {
7870
7926
  messageId: errorMessageId,
7871
7927
  error: !labelProps.valid,
7872
7928
  helperText: labelProps.helperText,
@@ -7875,7 +7931,7 @@ var Select2 = (_a) => {
7875
7931
  reserveSpaceForError: labelProps.reserveSpaceForError
7876
7932
  }));
7877
7933
  };
7878
- var SelectSkeleton = () => /* @__PURE__ */ React75.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React75.createElement(SelectBase.Skeleton, null));
7934
+ var SelectSkeleton = () => /* @__PURE__ */ React76.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React76.createElement(SelectBase.Skeleton, null));
7879
7935
  Select2.Skeleton = SelectSkeleton;
7880
7936
  Select2.Skeleton.displayName = "Select.Skeleton";
7881
7937
 
@@ -7894,25 +7950,23 @@ var Pagination = ({
7894
7950
  pageSizes,
7895
7951
  onPageSizeChange
7896
7952
  }) => {
7897
- const [value, setValue] = React76.useState(currentPage);
7898
- React76.useEffect(() => {
7953
+ const [value, setValue] = React77.useState(currentPage);
7954
+ React77.useEffect(() => {
7899
7955
  setValue(currentPage);
7900
7956
  }, [currentPage]);
7901
- React76.useEffect(() => {
7902
- onPageChange(1);
7903
- setValue(1);
7904
- }, [pageSize]);
7905
- return /* @__PURE__ */ React76.createElement(Box, {
7957
+ return /* @__PURE__ */ React77.createElement(Box, {
7906
7958
  className: tw("grid grid-cols-[200px_1fr_200px]"),
7907
7959
  backgroundColor: "grey-0",
7908
7960
  padding: "4"
7909
- }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React76.createElement(Box, {
7961
+ }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React77.createElement(Box, {
7910
7962
  display: "flex",
7911
7963
  alignItems: "center",
7912
7964
  gap: "4"
7913
- }, /* @__PURE__ */ React76.createElement(Typography2.SmallText, null, "Items per page "), /* @__PURE__ */ React76.createElement("div", {
7965
+ }, /* @__PURE__ */ React77.createElement(Typography2.Small, {
7966
+ color: "grey-50"
7967
+ }, "Items per page "), /* @__PURE__ */ React77.createElement("div", {
7914
7968
  className: tw("max-w-[70px]")
7915
- }, /* @__PURE__ */ React76.createElement(SelectBase, {
7969
+ }, /* @__PURE__ */ React77.createElement(SelectBase, {
7916
7970
  options: pageSizes.map((size) => size.toString()),
7917
7971
  value: pageSize.toString(),
7918
7972
  onChange: (size) => {
@@ -7923,24 +7977,26 @@ var Pagination = ({
7923
7977
  }
7924
7978
  }
7925
7979
  }
7926
- }))) : /* @__PURE__ */ React76.createElement("div", null), /* @__PURE__ */ React76.createElement(Box, {
7980
+ }))) : /* @__PURE__ */ React77.createElement("div", null), /* @__PURE__ */ React77.createElement(Box, {
7927
7981
  display: "flex",
7928
7982
  justifyContent: "center",
7929
7983
  alignItems: "center",
7930
7984
  className: tw("grow")
7931
- }, /* @__PURE__ */ React76.createElement(IconButton, {
7985
+ }, /* @__PURE__ */ React77.createElement(IconButton, {
7932
7986
  "aria-label": "First",
7933
7987
  onClick: () => onPageChange(1),
7934
7988
  icon: import_chevronBackward.default,
7935
7989
  disabled: !hasPreviousPage
7936
- }), /* @__PURE__ */ React76.createElement(IconButton, {
7990
+ }), /* @__PURE__ */ React77.createElement(IconButton, {
7937
7991
  "aria-label": "Previous",
7938
7992
  onClick: () => onPageChange(currentPage - 1),
7939
7993
  icon: import_chevronLeft3.default,
7940
7994
  disabled: !hasPreviousPage
7941
- }), /* @__PURE__ */ React76.createElement(Box, {
7995
+ }), /* @__PURE__ */ React77.createElement(Box, {
7942
7996
  paddingX: "4"
7943
- }, /* @__PURE__ */ React76.createElement(Typography2.SmallText, null, "Page")), /* @__PURE__ */ React76.createElement(InputBase, {
7997
+ }, /* @__PURE__ */ React77.createElement(Typography2.Small, {
7998
+ color: "grey-60"
7999
+ }, "Page")), /* @__PURE__ */ React77.createElement(InputBase, {
7944
8000
  className: classNames(tw("text-center max-w-[40px]"), "no-arrows"),
7945
8001
  type: "number",
7946
8002
  min: 1,
@@ -7954,52 +8010,48 @@ var Pagination = ({
7954
8010
  },
7955
8011
  onBlur: ({ target: { value: value2 } }) => {
7956
8012
  const numberValue = parseInt(value2);
7957
- if (!isNaN(numberValue)) {
7958
- const newPage = clamp(numberValue, 1, totalPages);
7959
- onPageChange(newPage);
7960
- setValue(newPage);
7961
- } else {
7962
- onPageChange(1);
7963
- setValue(1);
7964
- }
8013
+ const newPage = !isNaN(numberValue) ? clamp(numberValue, 1, totalPages) : 1;
8014
+ onPageChange(newPage);
7965
8015
  }
7966
- }), /* @__PURE__ */ React76.createElement(Box, {
8016
+ }), /* @__PURE__ */ React77.createElement(Box, {
7967
8017
  paddingX: "4"
7968
- }, /* @__PURE__ */ React76.createElement(Typography2.SmallText, null, "of ", totalPages)), /* @__PURE__ */ React76.createElement(IconButton, {
8018
+ }, /* @__PURE__ */ React77.createElement(Typography2.Small, {
8019
+ color: "grey-60"
8020
+ }, "of ", totalPages)), /* @__PURE__ */ React77.createElement(IconButton, {
7969
8021
  "aria-label": "Next",
7970
8022
  onClick: () => onPageChange(currentPage + 1),
7971
8023
  icon: import_chevronRight3.default,
7972
8024
  disabled: !hasNextPage
7973
- }), /* @__PURE__ */ React76.createElement(IconButton, {
8025
+ }), /* @__PURE__ */ React77.createElement(IconButton, {
7974
8026
  "aria-label": "Last",
7975
8027
  onClick: () => onPageChange(totalPages),
7976
8028
  icon: import_chevronForward.default,
7977
8029
  disabled: !hasNextPage
7978
- })), /* @__PURE__ */ React76.createElement("div", null));
8030
+ })), /* @__PURE__ */ React77.createElement("div", null));
7979
8031
  };
7980
8032
 
7981
8033
  // src/components/PopoverDialog/PopoverDialog.tsx
7982
- import React78 from "react";
8034
+ import React79 from "react";
7983
8035
  import omit16 from "lodash/omit";
7984
8036
 
7985
8037
  // src/common/PopoverDialog/PopoverDialog.tsx
7986
- import React77 from "react";
8038
+ import React78 from "react";
7987
8039
  var Header = (_a) => {
7988
8040
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7989
- return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({}, rest), {
8041
+ return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({}, rest), {
7990
8042
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
7991
8043
  }), children);
7992
8044
  };
7993
8045
  var Title = (_a) => {
7994
8046
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7995
- return /* @__PURE__ */ React77.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8047
+ return /* @__PURE__ */ React78.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
7996
8048
  htmlTag: "h1",
7997
8049
  variant: "small-strong"
7998
8050
  }), children);
7999
8051
  };
8000
8052
  var Body = (_a) => {
8001
8053
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8002
- return /* @__PURE__ */ React77.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8054
+ return /* @__PURE__ */ React78.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8003
8055
  htmlTag: "div",
8004
8056
  variant: "caption",
8005
8057
  className: classNames(tw("px-5 overflow-y-auto"), className)
@@ -8007,13 +8059,13 @@ var Body = (_a) => {
8007
8059
  };
8008
8060
  var Footer = (_a) => {
8009
8061
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8010
- return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({}, rest), {
8062
+ return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({}, rest), {
8011
8063
  className: classNames(tw("p-5"), className)
8012
8064
  }), children);
8013
8065
  };
8014
8066
  var Actions2 = (_a) => {
8015
8067
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8016
- return /* @__PURE__ */ React77.createElement("div", __spreadProps(__spreadValues({}, rest), {
8068
+ return /* @__PURE__ */ React78.createElement("div", __spreadProps(__spreadValues({}, rest), {
8017
8069
  className: classNames(tw("flex gap-4"), className)
8018
8070
  }), children);
8019
8071
  };
@@ -8029,13 +8081,13 @@ var PopoverDialog = {
8029
8081
  var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
8030
8082
  const wrapPromptWithBody = (child) => {
8031
8083
  if (isComponentType(child, PopoverDialog2.Prompt)) {
8032
- return /* @__PURE__ */ React78.createElement(Popover2.Panel, {
8084
+ return /* @__PURE__ */ React79.createElement(Popover2.Panel, {
8033
8085
  className: tw("max-w-[300px]")
8034
- }, /* @__PURE__ */ React78.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React78.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React78.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React78.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React78.createElement(Popover2.Button, __spreadValues({
8086
+ }, /* @__PURE__ */ React79.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React79.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React79.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React79.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React79.createElement(Popover2.Button, __spreadValues({
8035
8087
  kind: "secondary-ghost",
8036
8088
  key: secondaryAction.text,
8037
8089
  dense: true
8038
- }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React78.createElement(Popover2.Button, __spreadValues({
8090
+ }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React79.createElement(Popover2.Button, __spreadValues({
8039
8091
  kind: "ghost",
8040
8092
  key: primaryAction.text,
8041
8093
  dense: true
@@ -8043,7 +8095,7 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
8043
8095
  }
8044
8096
  return child;
8045
8097
  };
8046
- return /* @__PURE__ */ React78.createElement(Popover2, {
8098
+ return /* @__PURE__ */ React79.createElement(Popover2, {
8047
8099
  type: "dialog",
8048
8100
  isOpen: open,
8049
8101
  placement,
@@ -8051,10 +8103,10 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
8051
8103
  isKeyboardDismissDisabled: false,
8052
8104
  autoFocus: true,
8053
8105
  containFocus: true
8054
- }, React78.Children.map(children, wrapPromptWithBody));
8106
+ }, React79.Children.map(children, wrapPromptWithBody));
8055
8107
  };
8056
8108
  PopoverDialog2.Trigger = Popover2.Trigger;
8057
- var Prompt = ({ children }) => /* @__PURE__ */ React78.createElement(PopoverDialog.Body, null, children);
8109
+ var Prompt = ({ children }) => /* @__PURE__ */ React79.createElement(PopoverDialog.Body, null, children);
8058
8110
  Prompt.displayName = "PopoverDialog.Prompt";
8059
8111
  PopoverDialog2.Prompt = Prompt;
8060
8112
 
@@ -8063,14 +8115,14 @@ import { createPortal } from "react-dom";
8063
8115
  var Portal = ({ children, to }) => createPortal(children, to);
8064
8116
 
8065
8117
  // src/components/ProgressBar/ProgressBar.tsx
8066
- import React80 from "react";
8118
+ import React81 from "react";
8067
8119
 
8068
8120
  // src/common/ProgressBar/ProgressBar.tsx
8069
- import React79 from "react";
8121
+ import React80 from "react";
8070
8122
  import clamp2 from "lodash/clamp";
8071
8123
  var ProgressBar = (_a) => {
8072
8124
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8073
- return /* @__PURE__ */ React79.createElement("div", __spreadProps(__spreadValues({}, rest), {
8125
+ return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8074
8126
  className: classNames(
8075
8127
  tw("relative flex items-center w-full bg-grey-0 h-2 rounded-full overflow-hidden"),
8076
8128
  className
@@ -8086,7 +8138,7 @@ var STATUS_COLORS = {
8086
8138
  ProgressBar.Indicator = (_a) => {
8087
8139
  var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
8088
8140
  const completedPercentage = clamp2((value - min) / (max - min) * 100, 0, 100);
8089
- return /* @__PURE__ */ React79.createElement("div", __spreadProps(__spreadValues({}, rest), {
8141
+ return /* @__PURE__ */ React80.createElement("div", __spreadProps(__spreadValues({}, rest), {
8090
8142
  className: classNames(
8091
8143
  tw("h-2 rounded-full transition-all ease-in-out delay-150"),
8092
8144
  STATUS_COLORS[status],
@@ -8102,11 +8154,11 @@ ProgressBar.Indicator = (_a) => {
8102
8154
  };
8103
8155
  ProgressBar.Labels = (_a) => {
8104
8156
  var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
8105
- return /* @__PURE__ */ React79.createElement("div", {
8157
+ return /* @__PURE__ */ React80.createElement("div", {
8106
8158
  className: classNames(tw("flex flex-row"), className)
8107
- }, /* @__PURE__ */ React79.createElement("span", __spreadProps(__spreadValues({}, rest), {
8159
+ }, /* @__PURE__ */ React80.createElement("span", __spreadProps(__spreadValues({}, rest), {
8108
8160
  className: tw("grow text-grey-70 typography-caption")
8109
- }), startLabel), /* @__PURE__ */ React79.createElement("span", __spreadProps(__spreadValues({}, rest), {
8161
+ }), startLabel), /* @__PURE__ */ React80.createElement("span", __spreadProps(__spreadValues({}, rest), {
8110
8162
  className: tw("grow text-grey-70 typography-caption text-right")
8111
8163
  }), endLabel));
8112
8164
  };
@@ -8124,7 +8176,7 @@ var ProgressBar2 = (props) => {
8124
8176
  if (min > max) {
8125
8177
  throw new Error("`min` value provided to `ProgressBar` is greater than `max` value.");
8126
8178
  }
8127
- const progress = /* @__PURE__ */ React80.createElement(ProgressBar, null, /* @__PURE__ */ React80.createElement(ProgressBar.Indicator, {
8179
+ const progress = /* @__PURE__ */ React81.createElement(ProgressBar, null, /* @__PURE__ */ React81.createElement(ProgressBar.Indicator, {
8128
8180
  status: value === max ? completedStatus : progresStatus,
8129
8181
  min,
8130
8182
  max,
@@ -8134,13 +8186,13 @@ var ProgressBar2 = (props) => {
8134
8186
  if (props.dense) {
8135
8187
  return progress;
8136
8188
  }
8137
- return /* @__PURE__ */ React80.createElement("div", null, progress, /* @__PURE__ */ React80.createElement(ProgressBar.Labels, {
8189
+ return /* @__PURE__ */ React81.createElement("div", null, progress, /* @__PURE__ */ React81.createElement(ProgressBar.Labels, {
8138
8190
  className: tw("py-2"),
8139
8191
  startLabel: props.startLabel,
8140
8192
  endLabel: props.endLabel
8141
8193
  }));
8142
8194
  };
8143
- var ProgressBarSkeleton = () => /* @__PURE__ */ React80.createElement(Skeleton, {
8195
+ var ProgressBarSkeleton = () => /* @__PURE__ */ React81.createElement(Skeleton, {
8144
8196
  height: 4,
8145
8197
  display: "block"
8146
8198
  });
@@ -8148,13 +8200,13 @@ ProgressBar2.Skeleton = ProgressBarSkeleton;
8148
8200
  ProgressBar2.Skeleton.displayName = "ProgressBar.Skeleton";
8149
8201
 
8150
8202
  // src/components/RadioButton/RadioButton.tsx
8151
- import React81 from "react";
8152
- var RadioButton2 = React81.forwardRef(
8203
+ import React82 from "react";
8204
+ var RadioButton2 = React82.forwardRef(
8153
8205
  (_a, ref) => {
8154
8206
  var _b = _a, { name, id, readOnly = false, disabled = false, caption, children, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["name", "id", "readOnly", "disabled", "caption", "children", "aria-label"]);
8155
8207
  var _a2;
8156
8208
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
8157
- return !readOnly || isChecked ? /* @__PURE__ */ React81.createElement(ControlLabel, {
8209
+ return !readOnly || isChecked ? /* @__PURE__ */ React82.createElement(ControlLabel, {
8158
8210
  htmlFor: id,
8159
8211
  label: children,
8160
8212
  "aria-label": ariaLabel,
@@ -8162,7 +8214,7 @@ var RadioButton2 = React81.forwardRef(
8162
8214
  readOnly,
8163
8215
  disabled,
8164
8216
  style: { gap: "0 8px" }
8165
- }, !readOnly && /* @__PURE__ */ React81.createElement(RadioButton, __spreadProps(__spreadValues({
8217
+ }, !readOnly && /* @__PURE__ */ React82.createElement(RadioButton, __spreadProps(__spreadValues({
8166
8218
  id,
8167
8219
  ref,
8168
8220
  name
@@ -8173,12 +8225,12 @@ var RadioButton2 = React81.forwardRef(
8173
8225
  }
8174
8226
  );
8175
8227
  RadioButton2.displayName = "RadioButton";
8176
- var RadioButtonSkeleton = () => /* @__PURE__ */ React81.createElement("div", {
8228
+ var RadioButtonSkeleton = () => /* @__PURE__ */ React82.createElement("div", {
8177
8229
  className: tw("flex gap-3")
8178
- }, /* @__PURE__ */ React81.createElement(Skeleton, {
8230
+ }, /* @__PURE__ */ React82.createElement(Skeleton, {
8179
8231
  height: 20,
8180
8232
  width: 20
8181
- }), /* @__PURE__ */ React81.createElement(Skeleton, {
8233
+ }), /* @__PURE__ */ React82.createElement(Skeleton, {
8182
8234
  height: 20,
8183
8235
  width: 150
8184
8236
  }));
@@ -8186,10 +8238,10 @@ RadioButton2.Skeleton = RadioButtonSkeleton;
8186
8238
  RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
8187
8239
 
8188
8240
  // src/components/RadioButtonGroup/RadioButtonGroup.tsx
8189
- import React82 from "react";
8241
+ import React83 from "react";
8190
8242
  import uniqueId8 from "lodash/uniqueId";
8191
8243
  var isRadioButton = (c) => {
8192
- return React82.isValidElement(c) && c.type === RadioButton2;
8244
+ return React83.isValidElement(c) && c.type === RadioButton2;
8193
8245
  };
8194
8246
  var RadioButtonGroup = (_a) => {
8195
8247
  var _b = _a, {
@@ -8212,7 +8264,7 @@ var RadioButtonGroup = (_a) => {
8212
8264
  "children"
8213
8265
  ]);
8214
8266
  var _a2;
8215
- const [value, setValue] = React82.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
8267
+ const [value, setValue] = React83.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
8216
8268
  const errorMessageId = uniqueId8();
8217
8269
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8218
8270
  const labelControlProps = getLabelControlProps(props);
@@ -8223,14 +8275,14 @@ var RadioButtonGroup = (_a) => {
8223
8275
  setValue(e.target.value);
8224
8276
  onChange == null ? void 0 : onChange(e.target.value);
8225
8277
  };
8226
- const content = React82.Children.map(children, (c) => {
8278
+ const content = React83.Children.map(children, (c) => {
8227
8279
  var _a3, _b2, _c;
8228
8280
  if (!isRadioButton(c)) {
8229
8281
  return null;
8230
8282
  }
8231
8283
  const defaultChecked = defaultValue === void 0 ? void 0 : c.props.value === defaultValue;
8232
8284
  const checked = value === void 0 ? void 0 : c.props.value === value;
8233
- return React82.cloneElement(c, {
8285
+ return React83.cloneElement(c, {
8234
8286
  name,
8235
8287
  defaultChecked: (_a3 = c.props.defaultChecked) != null ? _a3 : defaultChecked,
8236
8288
  checked: (_b2 = c.props.checked) != null ? _b2 : checked,
@@ -8239,11 +8291,11 @@ var RadioButtonGroup = (_a) => {
8239
8291
  readOnly
8240
8292
  });
8241
8293
  });
8242
- return /* @__PURE__ */ React82.createElement(LabelControl, __spreadValues(__spreadValues({
8294
+ return /* @__PURE__ */ React83.createElement(LabelControl, __spreadValues(__spreadValues({
8243
8295
  fieldset: true
8244
- }, labelControlProps), errorProps), cols && /* @__PURE__ */ React82.createElement(InputGroup, {
8296
+ }, labelControlProps), errorProps), cols && /* @__PURE__ */ React83.createElement(InputGroup, {
8245
8297
  cols
8246
- }, content), !cols && /* @__PURE__ */ React82.createElement(Flexbox, {
8298
+ }, content), !cols && /* @__PURE__ */ React83.createElement(Flexbox, {
8247
8299
  direction,
8248
8300
  alignItems: "flex-start",
8249
8301
  colGap: "8",
@@ -8252,12 +8304,12 @@ var RadioButtonGroup = (_a) => {
8252
8304
  }, content));
8253
8305
  };
8254
8306
  var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
8255
- return /* @__PURE__ */ React82.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React82.createElement("div", {
8307
+ return /* @__PURE__ */ React83.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React83.createElement("div", {
8256
8308
  className: tw("flex flex-wrap", {
8257
8309
  "flex-row gap-8": direction === "row",
8258
8310
  "flex-col gap-2": direction === "column"
8259
8311
  })
8260
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React82.createElement(RadioButton2.Skeleton, {
8312
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React83.createElement(RadioButton2.Skeleton, {
8261
8313
  key
8262
8314
  }))));
8263
8315
  };
@@ -8265,68 +8317,68 @@ RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
8265
8317
  RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
8266
8318
 
8267
8319
  // src/components/Section/Section.tsx
8268
- import React84 from "react";
8320
+ import React85 from "react";
8269
8321
  import castArray4 from "lodash/castArray";
8270
8322
 
8271
8323
  // src/common/Section/Section.tsx
8272
- import React83 from "react";
8324
+ import React84 from "react";
8273
8325
  var Section2 = (_a) => {
8274
8326
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8275
- return /* @__PURE__ */ React83.createElement(Box, __spreadValues({
8327
+ return /* @__PURE__ */ React84.createElement(Box, __spreadValues({
8276
8328
  borderColor: "grey-5",
8277
8329
  borderWidth: "1px"
8278
8330
  }, rest), children);
8279
8331
  };
8280
8332
  Section2.Header = (_a) => {
8281
8333
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8282
- return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8334
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8283
8335
  className: classNames(tw("px-6 py-5 flex gap-5 justify-between items-center"), className)
8284
8336
  }), children);
8285
8337
  };
8286
8338
  Section2.TitleContainer = (_a) => {
8287
8339
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8288
- return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8340
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8289
8341
  className: classNames(tw("flex flex-col grow gap-2"), className)
8290
8342
  }), children);
8291
8343
  };
8292
8344
  Section2.Title = (_a) => {
8293
8345
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8294
- return /* @__PURE__ */ React83.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
8346
+ return /* @__PURE__ */ React84.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
8295
8347
  color: "black"
8296
8348
  }), children);
8297
8349
  };
8298
8350
  Section2.Subtitle = (_a) => {
8299
8351
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8300
- return /* @__PURE__ */ React83.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
8352
+ return /* @__PURE__ */ React84.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
8301
8353
  color: "grey-70"
8302
8354
  }), children);
8303
8355
  };
8304
8356
  Section2.Actions = (_a) => {
8305
8357
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8306
- return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8358
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8307
8359
  className: classNames(tw("flex gap-4 justify-end"), className)
8308
8360
  }), children);
8309
8361
  };
8310
8362
  Section2.Body = (_a) => {
8311
8363
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8312
- return /* @__PURE__ */ React83.createElement("div", __spreadProps(__spreadValues({}, rest), {
8364
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8313
8365
  className: classNames(tw("p-6"), className)
8314
- }), /* @__PURE__ */ React83.createElement(Typography, {
8366
+ }), /* @__PURE__ */ React84.createElement(Typography, {
8315
8367
  htmlTag: "div",
8316
8368
  color: "grey-70"
8317
8369
  }, children));
8318
8370
  };
8319
8371
 
8320
8372
  // src/components/Section/Section.tsx
8321
- var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React84.createElement(Section2, null, title && /* @__PURE__ */ React84.createElement(React84.Fragment, null, /* @__PURE__ */ React84.createElement(Section2.Header, null, /* @__PURE__ */ React84.createElement(Section2.TitleContainer, null, /* @__PURE__ */ React84.createElement(Section2.Title, null, title), subtitle && /* @__PURE__ */ React84.createElement(Section2.Subtitle, null, subtitle)), /* @__PURE__ */ React84.createElement(Section2.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8373
+ var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React85.createElement(Section2, null, title && /* @__PURE__ */ React85.createElement(React85.Fragment, null, /* @__PURE__ */ React85.createElement(Section2.Header, null, /* @__PURE__ */ React85.createElement(Section2.TitleContainer, null, /* @__PURE__ */ React85.createElement(Section2.Title, null, title), subtitle && /* @__PURE__ */ React85.createElement(Section2.Subtitle, null, subtitle)), /* @__PURE__ */ React85.createElement(Section2.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8322
8374
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
8323
- return /* @__PURE__ */ React84.createElement(SecondaryButton, __spreadValues({
8375
+ return /* @__PURE__ */ React85.createElement(SecondaryButton, __spreadValues({
8324
8376
  key: text
8325
8377
  }, action), text);
8326
- }))), /* @__PURE__ */ React84.createElement(Divider2, null)), /* @__PURE__ */ React84.createElement(Section2.Body, null, children));
8378
+ }))), /* @__PURE__ */ React85.createElement(Divider2, null)), /* @__PURE__ */ React85.createElement(Section2.Body, null, children));
8327
8379
 
8328
8380
  // src/components/SegmentedControl/SegmentedControl.tsx
8329
- import React85 from "react";
8381
+ import React86 from "react";
8330
8382
  var SegmentedControl = (_a) => {
8331
8383
  var _b = _a, {
8332
8384
  children,
@@ -8343,7 +8395,7 @@ var SegmentedControl = (_a) => {
8343
8395
  "selected",
8344
8396
  "className"
8345
8397
  ]);
8346
- return /* @__PURE__ */ React85.createElement("button", __spreadProps(__spreadValues({
8398
+ return /* @__PURE__ */ React86.createElement("button", __spreadProps(__spreadValues({
8347
8399
  type: "button"
8348
8400
  }, rest), {
8349
8401
  className: classNames(
@@ -8370,15 +8422,15 @@ var SegmentedControlGroup = (_a) => {
8370
8422
  "children",
8371
8423
  "className"
8372
8424
  ]);
8373
- const classes = tw("rounded flex", {
8425
+ const classes2 = tw("rounded flex", {
8374
8426
  "border border-grey-20 text-grey-50": variant === "outlined",
8375
8427
  "bg-grey-0": variant === "raised"
8376
8428
  });
8377
- return /* @__PURE__ */ React85.createElement("div", __spreadProps(__spreadValues({}, rest), {
8378
- className: classNames(classes, className)
8379
- }), React85.Children.map(
8429
+ return /* @__PURE__ */ React86.createElement("div", __spreadProps(__spreadValues({}, rest), {
8430
+ className: classNames(classes2, className)
8431
+ }), React86.Children.map(
8380
8432
  children,
8381
- (child) => React85.cloneElement(child, {
8433
+ (child) => React86.cloneElement(child, {
8382
8434
  dense,
8383
8435
  variant,
8384
8436
  onClick: () => onChange(child.props.value),
@@ -8416,14 +8468,14 @@ var getCommonClassNames = (dense, selected) => tw(
8416
8468
  );
8417
8469
 
8418
8470
  // src/components/Stepper/Stepper.tsx
8419
- import React87 from "react";
8471
+ import React88 from "react";
8420
8472
 
8421
8473
  // src/common/Stepper/Stepper.tsx
8422
- import React86 from "react";
8474
+ import React87 from "react";
8423
8475
  var import_tick5 = __toESM(require_tick());
8424
8476
  var Stepper = (_a) => {
8425
8477
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8426
- return /* @__PURE__ */ React86.createElement("div", __spreadProps(__spreadValues({}, rest), {
8478
+ return /* @__PURE__ */ React87.createElement("div", __spreadProps(__spreadValues({}, rest), {
8427
8479
  className: classNames(className)
8428
8480
  }));
8429
8481
  };
@@ -8437,7 +8489,7 @@ var ConnectorContainer = (_a) => {
8437
8489
  "completed",
8438
8490
  "dense"
8439
8491
  ]);
8440
- return /* @__PURE__ */ React86.createElement("div", __spreadProps(__spreadValues({}, rest), {
8492
+ return /* @__PURE__ */ React87.createElement("div", __spreadProps(__spreadValues({}, rest), {
8441
8493
  className: classNames(
8442
8494
  tw("absolute w-full -left-1/2", {
8443
8495
  "top-[3px] px-[14px]": Boolean(dense),
@@ -8449,7 +8501,7 @@ var ConnectorContainer = (_a) => {
8449
8501
  };
8450
8502
  var Connector = (_a) => {
8451
8503
  var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
8452
- return /* @__PURE__ */ React86.createElement("div", __spreadProps(__spreadValues({}, rest), {
8504
+ return /* @__PURE__ */ React87.createElement("div", __spreadProps(__spreadValues({}, rest), {
8453
8505
  className: classNames(
8454
8506
  tw("w-full", {
8455
8507
  "bg-grey-20": !completed,
@@ -8463,7 +8515,7 @@ var Connector = (_a) => {
8463
8515
  };
8464
8516
  var Step = (_a) => {
8465
8517
  var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
8466
- return /* @__PURE__ */ React86.createElement("div", __spreadProps(__spreadValues({}, rest), {
8518
+ return /* @__PURE__ */ React87.createElement("div", __spreadProps(__spreadValues({}, rest), {
8467
8519
  className: classNames(
8468
8520
  tw("flex flex-col items-center text-grey-90 relative text-center", {
8469
8521
  "text-grey-20": state === "inactive"
@@ -8484,13 +8536,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
8484
8536
  });
8485
8537
  var Indicator = (_a) => {
8486
8538
  var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
8487
- return /* @__PURE__ */ React86.createElement("div", __spreadProps(__spreadValues({}, rest), {
8539
+ return /* @__PURE__ */ React87.createElement("div", __spreadProps(__spreadValues({}, rest), {
8488
8540
  className: classNames(
8489
8541
  tw("rounded-full flex justify-center items-center mx-2 mb-3"),
8490
8542
  dense ? getDenseClassNames(state) : getClassNames(state),
8491
8543
  className
8492
8544
  )
8493
- }), state === "completed" ? /* @__PURE__ */ React86.createElement(InlineIcon, {
8545
+ }), state === "completed" ? /* @__PURE__ */ React87.createElement(InlineIcon, {
8494
8546
  icon: import_tick5.default
8495
8547
  }) : dense ? null : children);
8496
8548
  };
@@ -8501,25 +8553,25 @@ Stepper.ConnectorContainer = ConnectorContainer;
8501
8553
 
8502
8554
  // src/components/Stepper/Stepper.tsx
8503
8555
  var Stepper2 = ({ children, activeIndex, dense }) => {
8504
- const steps = React87.Children.count(children);
8505
- return /* @__PURE__ */ React87.createElement(Stepper, {
8556
+ const steps = React88.Children.count(children);
8557
+ return /* @__PURE__ */ React88.createElement(Stepper, {
8506
8558
  role: "list"
8507
- }, /* @__PURE__ */ React87.createElement(Template, {
8559
+ }, /* @__PURE__ */ React88.createElement(Template, {
8508
8560
  columns: steps
8509
- }, React87.Children.map(children, (child, index) => {
8561
+ }, React88.Children.map(children, (child, index) => {
8510
8562
  if (!isComponentType(child, Step2)) {
8511
8563
  return new Error("<Stepper> can only have <Stepper.Step> components as children");
8512
8564
  } else {
8513
8565
  const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
8514
- return /* @__PURE__ */ React87.createElement(Stepper.Step, {
8566
+ return /* @__PURE__ */ React88.createElement(Stepper.Step, {
8515
8567
  state,
8516
8568
  "aria-current": state === "active" ? "step" : false,
8517
8569
  role: "listitem"
8518
- }, index > 0 && index <= steps && /* @__PURE__ */ React87.createElement(Stepper.ConnectorContainer, {
8570
+ }, index > 0 && index <= steps && /* @__PURE__ */ React88.createElement(Stepper.ConnectorContainer, {
8519
8571
  dense
8520
- }, /* @__PURE__ */ React87.createElement(Stepper.ConnectorContainer.Connector, {
8572
+ }, /* @__PURE__ */ React88.createElement(Stepper.ConnectorContainer.Connector, {
8521
8573
  completed: state === "completed" || state === "active"
8522
- })), /* @__PURE__ */ React87.createElement(Stepper.Step.Indicator, {
8574
+ })), /* @__PURE__ */ React88.createElement(Stepper.Step.Indicator, {
8523
8575
  state,
8524
8576
  dense
8525
8577
  }, index + 1), child.props.children);
@@ -8531,16 +8583,16 @@ Step2.displayName = "Stepper.Step";
8531
8583
  Stepper2.Step = Step2;
8532
8584
 
8533
8585
  // src/components/Switch/Switch.tsx
8534
- import React89 from "react";
8586
+ import React90 from "react";
8535
8587
 
8536
8588
  // src/common/Switch/Switch.tsx
8537
- import React88 from "react";
8538
- var Switch = React88.forwardRef(
8589
+ import React89 from "react";
8590
+ var Switch = React89.forwardRef(
8539
8591
  (_a, ref) => {
8540
8592
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
8541
- return /* @__PURE__ */ React88.createElement("span", {
8593
+ return /* @__PURE__ */ React89.createElement("span", {
8542
8594
  className: tw("relative inline-flex justify-center items-center self-center group")
8543
- }, /* @__PURE__ */ React88.createElement("input", __spreadProps(__spreadValues({
8595
+ }, /* @__PURE__ */ React89.createElement("input", __spreadProps(__spreadValues({
8544
8596
  id,
8545
8597
  ref,
8546
8598
  type: "checkbox",
@@ -8559,7 +8611,7 @@ var Switch = React88.forwardRef(
8559
8611
  ),
8560
8612
  readOnly,
8561
8613
  disabled
8562
- })), /* @__PURE__ */ React88.createElement("span", {
8614
+ })), /* @__PURE__ */ React89.createElement("span", {
8563
8615
  className: tw(
8564
8616
  "pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
8565
8617
  "bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
@@ -8572,12 +8624,12 @@ var Switch = React88.forwardRef(
8572
8624
  );
8573
8625
 
8574
8626
  // src/components/Switch/Switch.tsx
8575
- var Switch2 = React89.forwardRef(
8627
+ var Switch2 = React90.forwardRef(
8576
8628
  (_a, ref) => {
8577
8629
  var _b = _a, { id, name, caption, readOnly = false, disabled = false, children, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["id", "name", "caption", "readOnly", "disabled", "children", "aria-label"]);
8578
8630
  var _a2;
8579
8631
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
8580
- return !readOnly || isChecked ? /* @__PURE__ */ React89.createElement(ControlLabel, {
8632
+ return !readOnly || isChecked ? /* @__PURE__ */ React90.createElement(ControlLabel, {
8581
8633
  htmlFor: id,
8582
8634
  label: children,
8583
8635
  "aria-label": ariaLabel,
@@ -8585,7 +8637,7 @@ var Switch2 = React89.forwardRef(
8585
8637
  readOnly,
8586
8638
  disabled,
8587
8639
  style: { gap: "0 8px" }
8588
- }, !readOnly && /* @__PURE__ */ React89.createElement(Switch, __spreadProps(__spreadValues({
8640
+ }, !readOnly && /* @__PURE__ */ React90.createElement(Switch, __spreadProps(__spreadValues({
8589
8641
  id,
8590
8642
  ref,
8591
8643
  name
@@ -8596,12 +8648,12 @@ var Switch2 = React89.forwardRef(
8596
8648
  }
8597
8649
  );
8598
8650
  Switch2.displayName = "Switch";
8599
- var SwitchSkeleton = () => /* @__PURE__ */ React89.createElement("div", {
8651
+ var SwitchSkeleton = () => /* @__PURE__ */ React90.createElement("div", {
8600
8652
  className: tw("flex gap-3")
8601
- }, /* @__PURE__ */ React89.createElement(Skeleton, {
8653
+ }, /* @__PURE__ */ React90.createElement(Skeleton, {
8602
8654
  height: 20,
8603
8655
  width: 35
8604
- }), /* @__PURE__ */ React89.createElement(Skeleton, {
8656
+ }), /* @__PURE__ */ React90.createElement(Skeleton, {
8605
8657
  height: 20,
8606
8658
  width: 150
8607
8659
  }));
@@ -8609,7 +8661,7 @@ Switch2.Skeleton = SwitchSkeleton;
8609
8661
  Switch2.Skeleton.displayName = "Switch.Skeleton ";
8610
8662
 
8611
8663
  // src/components/SwitchGroup/SwitchGroup.tsx
8612
- import React90, { useState as useState11 } from "react";
8664
+ import React91, { useState as useState11 } from "react";
8613
8665
  import uniqueId9 from "lodash/uniqueId";
8614
8666
  var SwitchGroup = (_a) => {
8615
8667
  var _b = _a, {
@@ -8641,11 +8693,11 @@ var SwitchGroup = (_a) => {
8641
8693
  setSelectedItems(updated);
8642
8694
  onChange == null ? void 0 : onChange(updated);
8643
8695
  };
8644
- return /* @__PURE__ */ React90.createElement(LabelControl, __spreadValues(__spreadValues({
8696
+ return /* @__PURE__ */ React91.createElement(LabelControl, __spreadValues(__spreadValues({
8645
8697
  fieldset: true
8646
- }, labelControlProps), errorProps), /* @__PURE__ */ React90.createElement(InputGroup, {
8698
+ }, labelControlProps), errorProps), /* @__PURE__ */ React91.createElement(InputGroup, {
8647
8699
  cols
8648
- }, React90.Children.map(children, (c) => {
8700
+ }, React91.Children.map(children, (c) => {
8649
8701
  var _a3, _b2, _c, _d;
8650
8702
  if (!isComponentType(c, Switch2)) {
8651
8703
  return null;
@@ -8653,7 +8705,7 @@ var SwitchGroup = (_a) => {
8653
8705
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
8654
8706
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
8655
8707
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
8656
- return React90.cloneElement(c, {
8708
+ return React91.cloneElement(c, {
8657
8709
  defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
8658
8710
  checked: (_c = c.props.checked) != null ? _c : checked,
8659
8711
  onChange: (_d = c.props.onChange) != null ? _d : handleChange,
@@ -8663,9 +8715,9 @@ var SwitchGroup = (_a) => {
8663
8715
  })));
8664
8716
  };
8665
8717
  var SwitchGroupSkeleton = ({ options = 2 }) => {
8666
- return /* @__PURE__ */ React90.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React90.createElement("div", {
8718
+ return /* @__PURE__ */ React91.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React91.createElement("div", {
8667
8719
  className: tw("flex flex-wrap flex-col gap-2")
8668
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React90.createElement(Switch2.Skeleton, {
8720
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React91.createElement(Switch2.Skeleton, {
8669
8721
  key
8670
8722
  }))));
8671
8723
  };
@@ -8673,10 +8725,10 @@ SwitchGroup.Skeleton = SwitchGroupSkeleton;
8673
8725
  SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
8674
8726
 
8675
8727
  // src/components/TagLabel/TagLabel.tsx
8676
- import React91 from "react";
8728
+ import React92 from "react";
8677
8729
  var TagLabel = (_a) => {
8678
8730
  var _b = _a, { title, dense = false } = _b, rest = __objRest(_b, ["title", "dense"]);
8679
- return /* @__PURE__ */ React91.createElement("span", __spreadProps(__spreadValues({}, rest), {
8731
+ return /* @__PURE__ */ React92.createElement("span", __spreadProps(__spreadValues({}, rest), {
8680
8732
  className: tw("rounded-full text-white bg-primary-70", {
8681
8733
  "py-2 px-4 typography-caption": !dense,
8682
8734
  "py-2 px-3 typography-caption-small": dense
@@ -8685,14 +8737,14 @@ var TagLabel = (_a) => {
8685
8737
  };
8686
8738
 
8687
8739
  // src/components/Textarea/Textarea.tsx
8688
- import React92, { useRef as useRef11, useState as useState12 } from "react";
8740
+ import React93, { useRef as useRef13, useState as useState12 } from "react";
8689
8741
  import omit17 from "lodash/omit";
8690
8742
  import toString2 from "lodash/toString";
8691
8743
  import uniqueId10 from "lodash/uniqueId";
8692
- var TextareaBase = React92.forwardRef(
8744
+ var TextareaBase = React93.forwardRef(
8693
8745
  (_a, ref) => {
8694
8746
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
8695
- return /* @__PURE__ */ React92.createElement("textarea", __spreadProps(__spreadValues({
8747
+ return /* @__PURE__ */ React93.createElement("textarea", __spreadProps(__spreadValues({
8696
8748
  ref
8697
8749
  }, props), {
8698
8750
  readOnly,
@@ -8700,23 +8752,23 @@ var TextareaBase = React92.forwardRef(
8700
8752
  }));
8701
8753
  }
8702
8754
  );
8703
- TextareaBase.Skeleton = () => /* @__PURE__ */ React92.createElement(Skeleton, {
8755
+ TextareaBase.Skeleton = () => /* @__PURE__ */ React93.createElement(Skeleton, {
8704
8756
  height: 58
8705
8757
  });
8706
- var Textarea = React92.forwardRef((props, ref) => {
8758
+ var Textarea = React93.forwardRef((props, ref) => {
8707
8759
  var _a, _b, _c;
8708
8760
  const [value, setValue] = useState12((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
8709
- const id = useRef11((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
8761
+ const id = useRef13((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
8710
8762
  const errorMessageId = uniqueId10();
8711
8763
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8712
8764
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
8713
8765
  const baseProps = omit17(props, Object.keys(labelControlProps));
8714
- return /* @__PURE__ */ React92.createElement(LabelControl, __spreadValues({
8766
+ return /* @__PURE__ */ React93.createElement(LabelControl, __spreadValues({
8715
8767
  id: `${id.current}-label`,
8716
8768
  htmlFor: id.current,
8717
8769
  messageId: errorMessageId,
8718
8770
  length: value !== void 0 ? toString2(value).length : void 0
8719
- }, labelControlProps), /* @__PURE__ */ React92.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
8771
+ }, labelControlProps), /* @__PURE__ */ React93.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
8720
8772
  ref
8721
8773
  }, baseProps), errorProps), {
8722
8774
  id: id.current,
@@ -8733,48 +8785,48 @@ var Textarea = React92.forwardRef((props, ref) => {
8733
8785
  })));
8734
8786
  });
8735
8787
  Textarea.displayName = "Textarea";
8736
- var TextAreaSkeleton = () => /* @__PURE__ */ React92.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React92.createElement(TextareaBase.Skeleton, null));
8788
+ var TextAreaSkeleton = () => /* @__PURE__ */ React93.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React93.createElement(TextareaBase.Skeleton, null));
8737
8789
  Textarea.Skeleton = TextAreaSkeleton;
8738
8790
  Textarea.Skeleton.displayName = "Textarea.Skeleton";
8739
8791
 
8740
8792
  // src/components/Timeline/Timeline.tsx
8741
- import React94 from "react";
8793
+ import React95 from "react";
8742
8794
 
8743
8795
  // src/common/Timeline/Timeline.tsx
8744
- import React93 from "react";
8796
+ import React94 from "react";
8745
8797
  var Timeline = (_a) => {
8746
8798
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8747
- return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
8799
+ return /* @__PURE__ */ React94.createElement("div", __spreadProps(__spreadValues({}, rest), {
8748
8800
  className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
8749
8801
  }));
8750
8802
  };
8751
8803
  var Content2 = (_a) => {
8752
8804
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8753
- return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
8805
+ return /* @__PURE__ */ React94.createElement("div", __spreadProps(__spreadValues({}, rest), {
8754
8806
  className: classNames(tw("pb-6"), className)
8755
8807
  }));
8756
8808
  };
8757
8809
  var Separator2 = (_a) => {
8758
8810
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8759
- return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
8811
+ return /* @__PURE__ */ React94.createElement("div", __spreadProps(__spreadValues({}, rest), {
8760
8812
  className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
8761
8813
  }));
8762
8814
  };
8763
8815
  var LineContainer = (_a) => {
8764
8816
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8765
- return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
8817
+ return /* @__PURE__ */ React94.createElement("div", __spreadProps(__spreadValues({}, rest), {
8766
8818
  className: classNames(tw("flex justify-center py-1"), className)
8767
8819
  }));
8768
8820
  };
8769
8821
  var Line = (_a) => {
8770
8822
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8771
- return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
8823
+ return /* @__PURE__ */ React94.createElement("div", __spreadProps(__spreadValues({}, rest), {
8772
8824
  className: classNames(tw("w-1 bg-grey-5 h-full justify-self-center"), className)
8773
8825
  }));
8774
8826
  };
8775
8827
  var Dot = (_a) => {
8776
8828
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8777
- return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
8829
+ return /* @__PURE__ */ React94.createElement("div", __spreadProps(__spreadValues({}, rest), {
8778
8830
  className: classNames(tw("bg-grey-30 h-[6px] w-[6px] rounded"), className)
8779
8831
  }));
8780
8832
  };
@@ -8789,52 +8841,52 @@ var import_error4 = __toESM(require_error());
8789
8841
  var import_time = __toESM(require_time());
8790
8842
  var import_warningSign4 = __toESM(require_warningSign());
8791
8843
  var TimelineItem = () => null;
8792
- var Timeline2 = ({ children }) => /* @__PURE__ */ React94.createElement("div", null, React94.Children.map(children, (item) => {
8844
+ var Timeline2 = ({ children }) => /* @__PURE__ */ React95.createElement("div", null, React95.Children.map(children, (item) => {
8793
8845
  if (!isComponentType(item, TimelineItem)) {
8794
8846
  throw new Error("<Timeline> can only have <Timeline.Item> components as children");
8795
8847
  } else {
8796
8848
  const { props, key } = item;
8797
- return /* @__PURE__ */ React94.createElement(Timeline, {
8849
+ return /* @__PURE__ */ React95.createElement(Timeline, {
8798
8850
  key: key != null ? key : props.title
8799
- }, /* @__PURE__ */ React94.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React94.createElement(Icon, {
8851
+ }, /* @__PURE__ */ React95.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React95.createElement(Icon, {
8800
8852
  icon: import_error4.default,
8801
8853
  color: "error-30"
8802
- }) : props.variant === "warning" ? /* @__PURE__ */ React94.createElement(Icon, {
8854
+ }) : props.variant === "warning" ? /* @__PURE__ */ React95.createElement(Icon, {
8803
8855
  icon: import_warningSign4.default,
8804
8856
  color: "warning-30"
8805
- }) : props.variant === "info" ? /* @__PURE__ */ React94.createElement(Icon, {
8857
+ }) : props.variant === "info" ? /* @__PURE__ */ React95.createElement(Icon, {
8806
8858
  icon: import_time.default,
8807
8859
  color: "info-30"
8808
- }) : /* @__PURE__ */ React94.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React94.createElement(Typography2.Caption, {
8860
+ }) : /* @__PURE__ */ React95.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React95.createElement(Typography2.Caption, {
8809
8861
  color: "grey-50"
8810
- }, props.title), /* @__PURE__ */ React94.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React94.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React94.createElement(Timeline.Content, null, /* @__PURE__ */ React94.createElement(Typography2.Small, null, props.children)));
8862
+ }, props.title), /* @__PURE__ */ React95.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React95.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React95.createElement(Timeline.Content, null, /* @__PURE__ */ React95.createElement(Typography2.Small, null, props.children)));
8811
8863
  }
8812
8864
  }));
8813
- var TimelineItemSkeleton = () => /* @__PURE__ */ React94.createElement(Timeline, null, /* @__PURE__ */ React94.createElement(Timeline.Separator, null, /* @__PURE__ */ React94.createElement(Skeleton, {
8865
+ var TimelineItemSkeleton = () => /* @__PURE__ */ React95.createElement(Timeline, null, /* @__PURE__ */ React95.createElement(Timeline.Separator, null, /* @__PURE__ */ React95.createElement(Skeleton, {
8814
8866
  width: 6,
8815
8867
  height: 6,
8816
8868
  rounded: true
8817
- })), /* @__PURE__ */ React94.createElement(Skeleton, {
8869
+ })), /* @__PURE__ */ React95.createElement(Skeleton, {
8818
8870
  height: 12,
8819
8871
  width: 120
8820
- }), /* @__PURE__ */ React94.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React94.createElement(Skeleton, {
8872
+ }), /* @__PURE__ */ React95.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React95.createElement(Skeleton, {
8821
8873
  width: 2,
8822
8874
  height: "100%"
8823
- })), /* @__PURE__ */ React94.createElement(Timeline.Content, null, /* @__PURE__ */ React94.createElement(Box, {
8875
+ })), /* @__PURE__ */ React95.createElement(Timeline.Content, null, /* @__PURE__ */ React95.createElement(Box, {
8824
8876
  display: "flex",
8825
8877
  flexDirection: "column",
8826
8878
  gap: "3"
8827
- }, /* @__PURE__ */ React94.createElement(Skeleton, {
8879
+ }, /* @__PURE__ */ React95.createElement(Skeleton, {
8828
8880
  height: 32,
8829
8881
  width: "100%"
8830
- }), /* @__PURE__ */ React94.createElement(Skeleton, {
8882
+ }), /* @__PURE__ */ React95.createElement(Skeleton, {
8831
8883
  height: 32,
8832
8884
  width: "73%"
8833
- }), /* @__PURE__ */ React94.createElement(Skeleton, {
8885
+ }), /* @__PURE__ */ React95.createElement(Skeleton, {
8834
8886
  height: 32,
8835
8887
  width: "80%"
8836
8888
  }))));
8837
- var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React94.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React94.createElement(TimelineItemSkeleton, {
8889
+ var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React95.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React95.createElement(TimelineItemSkeleton, {
8838
8890
  key
8839
8891
  })));
8840
8892
  Timeline2.Item = TimelineItem;
@@ -8842,9 +8894,9 @@ Timeline2.Skeleton = TimelineSkeleton;
8842
8894
  Timeline2.Skeleton.displayName = "Timeline.Skeleton";
8843
8895
 
8844
8896
  // src/utils/table/useTableSelect.ts
8845
- import React95 from "react";
8897
+ import React96 from "react";
8846
8898
  var useTableSelect = (data, { key }) => {
8847
- const [selected, setSelected] = React95.useState([]);
8899
+ const [selected, setSelected] = React96.useState([]);
8848
8900
  const allSelected = selected.length === data.length;
8849
8901
  const isSelected = (dot) => selected.includes(dot[key]);
8850
8902
  const selectAll = () => setSelected(data.map((dot) => dot[key]));
@@ -8870,6 +8922,7 @@ var useTableSelect = (data, { key }) => {
8870
8922
 
8871
8923
  // src/components/Pagination/usePagination.tsx
8872
8924
  import { useEffect as useEffect7, useState as useState13 } from "react";
8925
+ import clamp3 from "lodash/clamp";
8873
8926
  var initialState = {
8874
8927
  currentPage: 1,
8875
8928
  pageSize: 10
@@ -8883,11 +8936,12 @@ var usePagination = (items, options) => {
8883
8936
  const hasNextPage = currentPage < totalPages;
8884
8937
  const pageIndex = getPageIndex(currentPage, pageSize);
8885
8938
  const onPageSizeChange = (pageSize2) => {
8939
+ const newTotalPages = items.length > 0 ? Math.ceil(items.length / pageSize2) : 1;
8886
8940
  setPageSize(pageSize2);
8887
- setCurrentPage((options == null ? void 0 : options.initialPage) || initialState.currentPage);
8941
+ setCurrentPage(clamp3((options == null ? void 0 : options.initialPage) || initialState.currentPage, 1, newTotalPages));
8888
8942
  };
8889
8943
  useEffect7(() => {
8890
- setCurrentPage((options == null ? void 0 : options.initialPage) || initialState.currentPage);
8944
+ setCurrentPage(clamp3((options == null ? void 0 : options.initialPage) || initialState.currentPage, 1, totalPages));
8891
8945
  }, [items.length]);
8892
8946
  return [
8893
8947
  items.slice(pageIndex, Math.min(pageIndex + pageSize, items.length)),
@@ -8907,7 +8961,7 @@ var usePagination = (items, options) => {
8907
8961
  var SelectItem = Select.Item;
8908
8962
 
8909
8963
  // src/utils/positioner.ts
8910
- import clamp3 from "lodash/clamp";
8964
+ import clamp4 from "lodash/clamp";
8911
8965
  var PositionerPlacement = /* @__PURE__ */ ((PositionerPlacement2) => {
8912
8966
  PositionerPlacement2["top"] = "top";
8913
8967
  PositionerPlacement2["left"] = "left";
@@ -9010,7 +9064,7 @@ function calcBestPosition(triggerRect, contentRect, placement, padding) {
9010
9064
  return _calcBestPosition(triggerRect2, contentRect2, nextPlacementAttempt, padding2);
9011
9065
  } else {
9012
9066
  return {
9013
- x: clamp3(position.x + window.scrollX, 0, window.innerWidth),
9067
+ x: clamp4(position.x + window.scrollX, 0, window.innerWidth),
9014
9068
  y: position.y + window.scrollY
9015
9069
  };
9016
9070
  }
@@ -9072,7 +9126,7 @@ export {
9072
9126
  InputBase,
9073
9127
  Label,
9074
9128
  LabelControl,
9075
- LineClamp,
9129
+ LineClamp2 as LineClamp,
9076
9130
  Link2 as Link,
9077
9131
  List,
9078
9132
  ListItem,